blob: 5e4b3d2e80384f80eec5b64be1244f3ecd1185e5 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
mark@chromium.orge9165f42013-11-23 01:45:20 +00003# Generated by GNU Autoconf 2.69 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#
mark@chromium.orge9165f42013-11-23 01:45:20 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
jimblandydc4029a2010-02-02 17:39:51 +00009#
jimblandy92b1f832009-12-23 22:23:49 +000010#
brynercb91a2f2006-08-25 21:14:45 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jimblandy92b1f832009-12-23 22:23:49 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000016
mmentovaiaf3c43f2007-05-17 18:34:37 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000020 emulate sh
21 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000025 setopt NO_GLOB_SUBST
26else
jimblandy92b1f832009-12-23 22:23:49 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000032esac
brynercb91a2f2006-08-25 21:14:45 +000033fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000034
35
jimblandy92b1f832009-12-23 22:23:49 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
brynercb91a2f2006-08-25 21:14:45 +000073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
mmentovai8c2a4de2006-09-20 16:20:15 +000081fi
brynercb91a2f2006-08-25 21:14:45 +000082
mmentovai8c2a4de2006-09-20 16:20:15 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
mark@chromium.orge9165f42013-11-23 01:45:20 +000092as_myself=
jimblandy92b1f832009-12-23 22:23:49 +000093case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000096for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
mmentovai8c2a4de2006-09-20 16:20:15 +0000102IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +0000103
mmentovai8c2a4de2006-09-20 16:20:15 +0000104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +0000112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +0000114fi
115
jimblandy92b1f832009-12-23 22:23:49 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +0000133
jimblandy92b1f832009-12-23 22:23:49 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
mark@chromium.orge9165f42013-11-23 01:45:20 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
jimblandy92b1f832009-12-23 22:23:49 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
mark@chromium.orge9165f42013-11-23 01:45:20 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
jimblandy92b1f832009-12-23 22:23:49 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
mark@chromium.orge9165f42013-11-23 01:45:20 +0000241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
jimblandy92b1f832009-12-23 22:23:49 +0000260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000270$0: google-breakpad-dev@googlegroups.com about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
jimblandy92b1f832009-12-23 22:23:49 +0000274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
mark@chromium.orge9165f42013-11-23 01:45:20 +0000358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +0000359
360
361} # as_fn_mkdir_p
mark@chromium.orge9165f42013-11-23 01:45:20 +0000362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
jimblandy92b1f832009-12-23 22:23:49 +0000370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
mark@chromium.orge9165f42013-11-23 01:45:20 +0000406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
jimblandy92b1f832009-12-23 22:23:49 +0000408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
mark@chromium.orge9165f42013-11-23 01:45:20 +0000410# script with STATUS, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +0000411as_fn_error ()
412{
mark@chromium.orge9165f42013-11-23 01:45:20 +0000413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
jimblandy92b1f832009-12-23 22:23:49 +0000417 fi
mark@chromium.orge9165f42013-11-23 01:45:20 +0000418 $as_echo "$as_me: error: $2" >&2
jimblandy92b1f832009-12-23 22:23:49 +0000419 as_fn_exit $as_status
420} # as_fn_error
421
mmentovai8c2a4de2006-09-20 16:20:15 +0000422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
jimblandy92b1f832009-12-23 22:23:49 +0000435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000440
mmentovai8c2a4de2006-09-20 16:20:15 +0000441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +0000445$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +0000446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
jimblandy92b1f832009-12-23 22:23:49 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +0000466
467
jimblandy92b1f832009-12-23 22:23:49 +0000468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
mmentovai8c2a4de2006-09-20 16:20:15 +0000473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000477 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000482 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000485 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000486 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000487 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000488 chmod +x "$as_me.lineno" ||
jimblandy92b1f832009-12-23 22:23:49 +0000489 { $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 +0000490
mark@chromium.orge9165f42013-11-23 01:45:20 +0000491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
brynercb91a2f2006-08-25 21:14:45 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000499 # Exit status is that of the last command.
500 exit
501}
502
mmentovai8c2a4de2006-09-20 16:20:15 +0000503ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +0000504case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +0000505-n*)
jimblandy92b1f832009-12-23 22:23:49 +0000506 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +0000507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +0000508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +0000511 esac;;
512*)
513 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000514esac
515
brynercb91a2f2006-08-25 21:14:45 +0000516rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +0000521 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +0000522fi
jimblandy92b1f832009-12-23 22:23:49 +0000523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mark@chromium.orge9165f42013-11-23 01:45:20 +0000529 # In both cases, we have to default to `cp -pR'.
jimblandy92b1f832009-12-23 22:23:49 +0000530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
mark@chromium.orge9165f42013-11-23 01:45:20 +0000531 as_ln_s='cp -pR'
jimblandy92b1f832009-12-23 22:23:49 +0000532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
mark@chromium.orge9165f42013-11-23 01:45:20 +0000535 as_ln_s='cp -pR'
jimblandy92b1f832009-12-23 22:23:49 +0000536 fi
brynercb91a2f2006-08-25 21:14:45 +0000537else
mark@chromium.orge9165f42013-11-23 01:45:20 +0000538 as_ln_s='cp -pR'
brynercb91a2f2006-08-25 21:14:45 +0000539fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000542
543if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +0000544 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +0000545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
mark@chromium.orge9165f42013-11-23 01:45:20 +0000550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
brynercb91a2f2006-08-25 21:14:45 +0000552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
jimblandydc4029a2010-02-02 17:39:51 +0000560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
mmentovai8c2a4de2006-09-20 16:20:15 +0000562
brynercb91a2f2006-08-25 21:14:45 +0000563# Name of the host.
mark@chromium.orge9165f42013-11-23 01:45:20 +0000564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
brynercb91a2f2006-08-25 21:14:45 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
brynercb91a2f2006-08-25 21:14:45 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000572ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000573ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000574LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
brynercb91a2f2006-08-25 21:14:45 +0000579
brynercb91a2f2006-08-25 21:14:45 +0000580# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000581PACKAGE_NAME='breakpad'
582PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000583PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000584PACKAGE_STRING='breakpad 0.1'
thestig@chromium.org43e6db72010-11-08 19:49:41 +0000585PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com'
jimblandy92b1f832009-12-23 22:23:49 +0000586PACKAGE_URL=''
brynercb91a2f2006-08-25 21:14:45 +0000587
Mark Mentovaif74c85d2015-09-23 10:46:55 -0400588ac_unique_file="README.md"
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603# include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
jimblandy92b1f832009-12-23 22:23:49 +0000625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
mmentovai8c2a4de2006-09-20 16:20:15 +0000628LIBOBJS
Lars Volker49907e12018-01-31 13:29:11 -0800629TESTS_AS_ROOT_FALSE
630TESTS_AS_ROOT_TRUE
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -0400631RUST_DEMANGLE_LIBS
632RUST_DEMANGLE_CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +0000633SELFTEST_FALSE
634SELFTEST_TRUE
Mike Frysingerf820ead2016-01-25 19:27:56 -0500635GTEST_LIBS
636GTEST_CFLAGS
Mike Frysingerf820ead2016-01-25 19:27:56 -0500637GMOCK_LIBS
638GMOCK_CFLAGS
Mike Frysingerf820ead2016-01-25 19:27:56 -0500639SYSTEM_TEST_LIBS_FALSE
640SYSTEM_TEST_LIBS_TRUE
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000641DISABLE_TOOLS_FALSE
642DISABLE_TOOLS_TRUE
ted.mielczareke574a2a2010-10-05 19:38:22 +0000643DISABLE_PROCESSOR_FALSE
644DISABLE_PROCESSOR_TRUE
Mike Frysinger3f736ce2016-01-27 16:45:21 -0500645X86_HOST_FALSE
646X86_HOST_TRUE
digit@chromium.org62d486b2012-08-21 14:34:48 +0000647ANDROID_HOST_FALSE
648ANDROID_HOST_TRUE
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000649LINUX_HOST_FALSE
650LINUX_HOST_TRUE
Mike Frysinger6cc03752017-02-06 15:10:13 -0500651WARN_CXXFLAGS
Lei Zhang728bcdf2016-01-08 00:27:48 -0800652HAVE_CXX11
Michael Forneye780d582020-03-16 12:56:56 -0700653HAVE_GETCONTEXT_FALSE
654HAVE_GETCONTEXT_TRUE
nealsidde545c02010-03-02 00:39:48 +0000655PTHREAD_CFLAGS
656PTHREAD_LIBS
657PTHREAD_CC
658ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000659EGREP
660GREP
ted.mielczarekd192a712010-10-05 19:38:51 +0000661RANLIB
jimblandy92b1f832009-12-23 22:23:49 +0000662am__fastdepCXX_FALSE
663am__fastdepCXX_TRUE
664CXXDEPMODE
665ac_ct_CXX
666CXXFLAGS
667CXX
668CPP
digit@chromium.org7e3c5382012-08-31 18:38:29 +0000669am__fastdepCCAS_FALSE
670am__fastdepCCAS_TRUE
671CCASDEPMODE
672CCASFLAGS
673CCAS
jimblandy92b1f832009-12-23 22:23:49 +0000674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
digit@chromium.org5bce3b42013-09-25 13:47:44 +0000677am__nodep
jimblandy92b1f832009-12-23 22:23:49 +0000678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
Mike Frysingerf217ae42015-11-11 13:43:14 -0500691ac_ct_AR
692AR
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +0000693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
mark@chromium.orge9165f42013-11-23 01:45:20 +0000696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
jimblandy92b1f832009-12-23 22:23:49 +0000700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
jimblandy92b1f832009-12-23 22:23:49 +0000731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000769ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000770ac_user_opts='
771enable_option_checking
mark@chromium.orge9165f42013-11-23 01:45:20 +0000772enable_silent_rules
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +0000773enable_maintainer_mode
jimblandy92b1f832009-12-23 22:23:49 +0000774enable_dependency_tracking
nealsidde545c02010-03-02 00:39:48 +0000775enable_m32
vapier@chromium.org302124a2013-12-10 06:28:08 +0000776enable_largefile
ted.mielczareke574a2a2010-10-05 19:38:22 +0000777enable_processor
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000778enable_tools
Mike Frysingerf820ead2016-01-25 19:27:56 -0500779enable_system_test_libs
jimblandy92b1f832009-12-23 22:23:49 +0000780enable_selftest
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -0400781with_rust_demangle
Lars Volker49907e12018-01-31 13:29:11 -0800782with_tests_as_root
jimblandy92b1f832009-12-23 22:23:49 +0000783'
mmentovai8c2a4de2006-09-20 16:20:15 +0000784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000790LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000791CPPFLAGS
digit@chromium.org7e3c5382012-08-31 18:38:29 +0000792CCAS
793CCASFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +0000794CPP
795CXX
796CXXFLAGS
Mike Frysingerf820ead2016-01-25 19:27:56 -0500797CCC
Mike Frysingerf820ead2016-01-25 19:27:56 -0500798GMOCK_CFLAGS
799GMOCK_LIBS
Mike Frysingerf820ead2016-01-25 19:27:56 -0500800GTEST_CFLAGS
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -0400801GTEST_LIBS
802RUST_DEMANGLE_CFLAGS
803RUST_DEMANGLE_LIBS'
mmentovai8c2a4de2006-09-20 16:20:15 +0000804
brynercb91a2f2006-08-25 21:14:45 +0000805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000809ac_unrecognized_opts=
810ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000833# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000842includedir='${prefix}/include'
843oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000853
854ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000855ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000856for ac_option
857do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000860 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000861 ac_prev=
862 continue
863 fi
864
mmentovai8c2a4de2006-09-20 16:20:15 +0000865 case $ac_option in
mark@chromium.orge9165f42013-11-23 01:45:20 +0000866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000869 esac
brynercb91a2f2006-08-25 21:14:45 +0000870
871 # Accept the important Cygnus configure options, so we can diagnose typos.
872
mmentovai8c2a4de2006-09-20 16:20:15 +0000873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
mmentovai8c2a4de2006-09-20 16:20:15 +0000897 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000898 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000900 datadir=$ac_optarg ;;
901
mmentovai8c2a4de2006-09-20 16:20:15 +0000902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
brynercb91a2f2006-08-25 21:14:45 +0000909 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000911 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
mark@chromium.orge9165f42013-11-23 01:45:20 +0000913 as_fn_error $? "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000934
935 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000937 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
mark@chromium.orge9165f42013-11-23 01:45:20 +0000939 as_fn_error $? "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
mmentovai8c2a4de2006-09-20 16:20:15 +0000976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
brynercb91a2f2006-08-25 21:14:45 +0000982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
mmentovai8c2a4de2006-09-20 16:20:15 +00001006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
brynercb91a2f2006-08-25 21:14:45 +00001011 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001012 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
mmentovai8c2a4de2006-09-20 16:20:15 +00001080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
brynercb91a2f2006-08-25 21:14:45 +00001090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001141 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00001143 as_fn_error $? "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148"with_$ac_useropt"
1149"*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001154
1155 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001157 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00001159 as_fn_error $? "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164"with_$ac_useropt"
1165"*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
mark@chromium.orge9165f42013-11-23 01:45:20 +00001189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190Try \`$0 --help' for more information"
brynercb91a2f2006-08-25 21:14:45 +00001191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
mark@chromium.orge9165f42013-11-23 01:45:20 +00001198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001199 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001200 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
mark@chromium.orge9165f42013-11-23 01:45:20 +00001208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
brynercb91a2f2006-08-25 21:14:45 +00001209 ;;
1210
1211 esac
1212done
1213
1214if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
mark@chromium.orge9165f42013-11-23 01:45:20 +00001216 as_fn_error $? "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001217fi
1218
jimblandy92b1f832009-12-23 22:23:49 +00001219if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00001222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225fi
1226
1227# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001228for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001232do
mmentovai8c2a4de2006-09-20 16:20:15 +00001233 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001241 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001244 esac
mark@chromium.orge9165f42013-11-23 01:45:20 +00001245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001246done
1247
1248# There might be people who depend on the old broken behavior: `$host'
1249# used to hold the argument of --host etc.
1250# FIXME: To remove some day.
1251build=$build_alias
1252host=$host_alias
1253target=$target_alias
1254
1255# FIXME: To remove some day.
1256if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
brynercb91a2f2006-08-25 21:14:45 +00001259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262fi
1263
1264ac_tool_prefix=
1265test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267test "$silent" = yes && exec 6>/dev/null
1268
1269
mmentovai8c2a4de2006-09-20 16:20:15 +00001270ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271ac_ls_di=`ls -di .` &&
1272ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00001273 as_fn_error $? "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001274test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00001275 as_fn_error $? "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001276
1277
brynercb91a2f2006-08-25 21:14:45 +00001278# Find the source files, if location was not specified.
1279if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001281 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001305 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001306 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001307 srcdir=..
1308 fi
1309else
1310 ac_srcdir_defaulted=no
1311fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001312if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
mark@chromium.orge9165f42013-11-23 01:45:20 +00001314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001315fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001316ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317ac_abs_confdir=`(
mark@chromium.orge9165f42013-11-23 01:45:20 +00001318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001319 pwd)`
1320# When building in place, set srcdir=.
1321if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323fi
1324# Remove unnecessary trailing slashes from srcdir.
1325# Double slashes in file names in object file debugging info
1326# mess up M-x gdb in Emacs.
1327case $srcdir in
1328*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329esac
1330for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335done
brynercb91a2f2006-08-25 21:14:45 +00001336
1337#
1338# Report the --help message.
1339#
1340if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001344\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001345
1346Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351Defaults for the options are specified in brackets.
1352
1353Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
mark@chromium.orge9165f42013-11-23 01:45:20 +00001358 -q, --quiet, --silent do not print \`checking ...' messages
brynercb91a2f2006-08-25 21:14:45 +00001359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
brynercb91a2f2006-08-25 21:14:45 +00001364Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001366 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001368 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001369
1370By default, \`make install' will install all the files in
1371\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373for instance \`--prefix=\$HOME'.
1374
1375For better control, use the options below.
1376
1377Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001397_ACEOF
1398
1399 cat <<\_ACEOF
1400
1401Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
1413 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001414 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001415 esac
1416 cat <<\_ACEOF
1417
1418Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001419 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mark@chromium.orge9165f42013-11-23 01:45:20 +00001422 --enable-silent-rules less verbose build output (undo: "make V=1")
1423 --disable-silent-rules verbose build output (undo: "make V=0")
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +00001424 --enable-maintainer-mode
1425 enable make rules and dependencies not useful (and
1426 sometimes confusing) to the casual installer
mark@chromium.orge9165f42013-11-23 01:45:20 +00001427 --enable-dependency-tracking
1428 do not reject slow dependency extractors
1429 --disable-dependency-tracking
1430 speeds up one-time build
nealsidde545c02010-03-02 00:39:48 +00001431 --enable-m32 Compile/build with -m32 (default is no)
vapier@chromium.org302124a2013-12-10 06:28:08 +00001432 --disable-largefile omit support for large files
ted.mielczareke574a2a2010-10-05 19:38:22 +00001433 --disable-processor Don't build processor library (default is no)
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001434 --disable-tools Don't build tool binaries (default is no)
Mike Frysingerf820ead2016-01-25 19:27:56 -05001435 --enable-system-test-libs
1436 Use gtest/gmock/etc... from the system instead of
1437 the local copies (default is local)
mmentovai0dbedc92006-09-25 21:16:15 +00001438 --enable-selftest Run extra tests with "make check" (may conflict with
1439 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001440
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -04001441Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-rust-demangle=/path/to/rust-demangle-capi
1445 Link against the rust-demangle library to demangle
1446 Rust language symbols during symbol dumping (default
1447 is no) Pass the path to the crate root.
Lars Volker49907e12018-01-31 13:29:11 -08001448 --with-tests-as-root Run the tests as root. Use this on platforms like
1449 travis-ci.org that require root privileges to use
1450 ptrace (default is no)
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -04001451
brynercb91a2f2006-08-25 21:14:45 +00001452Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001457 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001459 you have headers in a nonstandard directory <include dir>
digit@chromium.org7e3c5382012-08-31 18:38:29 +00001460 CCAS assembler compiler command (defaults to CC)
1461 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
brynercb91a2f2006-08-25 21:14:45 +00001462 CPP C preprocessor
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
Mike Frysingerf820ead2016-01-25 19:27:56 -05001465 GMOCK_CFLAGS
1466 Compiler flags for gmock
1467 GMOCK_LIBS Linker flags for gmock
Mike Frysingerf820ead2016-01-25 19:27:56 -05001468 GTEST_CFLAGS
1469 Compiler flags for gtest
1470 GTEST_LIBS Linker flags for gtest
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -04001471 RUST_DEMANGLE_CFLAGS
1472 Compiler flags for rust-demangle
1473 RUST_DEMANGLE_LIBS
1474 Linker flags for rust-demangle
brynercb91a2f2006-08-25 21:14:45 +00001475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
thestig@chromium.org43e6db72010-11-08 19:49:41 +00001479Report bugs to <google-breakpad-dev@googlegroups.com>.
brynercb91a2f2006-08-25 21:14:45 +00001480_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001481ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
brynercb91a2f2006-08-25 21:14:45 +00001490 ac_builddir=.
1491
mmentovai8c2a4de2006-09-20 16:20:15 +00001492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
jimblandy92b1f832009-12-23 22:23:49 +00001495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001496 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001507
1508case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001509 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001510 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001514 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001521esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001523
mmentovai8c2a4de2006-09-20 16:20:15 +00001524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001532 else
jimblandy92b1f832009-12-23 22:23:49 +00001533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001536 done
1537fi
1538
mmentovai8c2a4de2006-09-20 16:20:15 +00001539test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001540if $ac_init_version; then
1541 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001542breakpad configure 0.1
mark@chromium.orge9165f42013-11-23 01:45:20 +00001543generated by GNU Autoconf 2.69
brynercb91a2f2006-08-25 21:14:45 +00001544
mark@chromium.orge9165f42013-11-23 01:45:20 +00001545Copyright (C) 2012 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001549 exit
brynercb91a2f2006-08-25 21:14:45 +00001550fi
jimblandy92b1f832009-12-23 22:23:49 +00001551
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
1555
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583else
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
jimblandydc4029a2010-02-02 17:39:51 +00001590 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001591
1592} # ac_fn_c_try_compile
1593
1594# ac_fn_c_try_cpp LINENO
1595# ----------------------
1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_cpp ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
mark@chromium.orge9165f42013-11-23 01:45:20 +00001615 test $ac_status = 0; } > conftest.i && {
jimblandy92b1f832009-12-23 22:23:49 +00001616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
jimblandydc4029a2010-02-02 17:39:51 +00001627 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001628
1629} # ac_fn_c_try_cpp
1630
1631# ac_fn_cxx_try_compile LINENO
1632# ----------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
jimblandydc4029a2010-02-02 17:39:51 +00001665 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001666
1667} # ac_fn_cxx_try_compile
1668
ted.mielczarekd192a712010-10-05 19:38:51 +00001669# ac_fn_c_try_run LINENO
1670# ----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672# that executables *can* be run.
1673ac_fn_c_try_run ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687 { { case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_try") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; }; }; then :
1697 ac_retval=0
1698else
1699 $as_echo "$as_me: program exited with status $ac_status" >&5
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=$ac_status
1704fi
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
mark@chromium.orge9165f42013-11-23 01:45:20 +00001706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ted.mielczarekd192a712010-10-05 19:38:51 +00001707 as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_run
1710
jimblandy92b1f832009-12-23 22:23:49 +00001711# ac_fn_c_try_link LINENO
1712# -----------------------
1713# Try to link conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_link ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest$ac_exeext && {
1737 test "$cross_compiling" = yes ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00001738 test -x conftest$ac_exeext
jimblandy92b1f832009-12-23 22:23:49 +00001739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
mark@chromium.orge9165f42013-11-23 01:45:20 +00001752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
jimblandydc4029a2010-02-02 17:39:51 +00001753 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001754
1755} # ac_fn_c_try_link
1756
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001757# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1760# the include files in INCLUDES and setting the cache variable VAR
1761# accordingly.
1762ac_fn_c_check_header_mongrel ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
mark@chromium.orge9165f42013-11-23 01:45:20 +00001765 if eval \${$3+:} false; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00001768if eval \${$3+:} false; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001769 $as_echo_n "(cached) " >&6
1770fi
1771eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774else
1775 # Is the header compilable?
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1777$as_echo_n "checking $2 usability... " >&6; }
1778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h. */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784 ac_header_compiler=yes
1785else
1786 ac_header_compiler=no
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1790$as_echo "$ac_header_compiler" >&6; }
1791
1792# Is the header present?
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1794$as_echo_n "checking $2 presence... " >&6; }
1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_cpp "$LINENO"; then :
1800 ac_header_preproc=yes
1801else
1802 ac_header_preproc=no
1803fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001804rm -f conftest.err conftest.i conftest.$ac_ext
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1806$as_echo "$ac_header_preproc" >&6; }
1807
1808# So? What about this header?
1809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1810 yes:no: )
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1812$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ;;
1816 no:yes:* )
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1818$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1820$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1822$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1824$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00001827( $as_echo "## --------------------------------------------------- ##
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001828## Report this to google-breakpad-dev@googlegroups.com ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00001829## --------------------------------------------------- ##"
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001830 ) | sed "s/^/$as_me: WARNING: /" >&2
1831 ;;
1832esac
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00001835if eval \${$3+:} false; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001836 $as_echo_n "(cached) " >&6
1837else
1838 eval "$3=\$ac_header_compiler"
1839fi
1840eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001845
1846} # ac_fn_c_check_header_mongrel
1847
1848# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1849# -------------------------------------------------------
1850# Tests whether HEADER exists and can be compiled using the include files in
1851# INCLUDES, setting the cache variable VAR accordingly.
1852ac_fn_c_check_header_compile ()
1853{
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00001857if eval \${$3+:} false; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001858 $as_echo_n "(cached) " >&6
1859else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861/* end confdefs.h. */
1862$4
1863#include <$2>
1864_ACEOF
1865if ac_fn_c_try_compile "$LINENO"; then :
1866 eval "$3=yes"
1867else
1868 eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00001875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001876
1877} # ac_fn_c_check_header_compile
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02001878
1879# ac_fn_c_check_func LINENO FUNC VAR
1880# ----------------------------------
1881# Tests whether FUNC exists, setting the cache variable VAR accordingly
1882ac_fn_c_check_func ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889else
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h. */
1892/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894#define $2 innocuous_$2
1895
1896/* System header to define __stub macros and hopefully few prototypes,
1897 which can conflict with char $2 (); below.
1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899 <limits.h> exists even on freestanding compilers. */
1900
1901#ifdef __STDC__
1902# include <limits.h>
1903#else
1904# include <assert.h>
1905#endif
1906
1907#undef $2
1908
1909/* Override any GCC internal prototype to avoid an error.
1910 Use char because int might match the return type of a GCC
1911 builtin and then its argument prototype would still apply. */
1912#ifdef __cplusplus
1913extern "C"
1914#endif
1915char $2 ();
1916/* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919#if defined __stub_$2 || defined __stub___$2
1920choke me
1921#endif
1922
1923int
1924main ()
1925{
1926return $2 ();
1927 ;
1928 return 0;
1929}
1930_ACEOF
1931if ac_fn_c_try_link "$LINENO"; then :
1932 eval "$3=yes"
1933else
1934 eval "$3=no"
1935fi
1936rm -f core conftest.err conftest.$ac_objext \
1937 conftest$ac_exeext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944} # ac_fn_c_check_func
mmentovai8c2a4de2006-09-20 16:20:15 +00001945cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001946This file contains any messages produced by compilers while
1947running configure, to aid debugging if configure makes a mistake.
1948
mmentovaie5dc6082007-02-14 19:51:05 +00001949It was created by breakpad $as_me 0.1, which was
mark@chromium.orge9165f42013-11-23 01:45:20 +00001950generated by GNU Autoconf 2.69. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001951
1952 $ $0 $@
1953
1954_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001955exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001956{
1957cat <<_ASUNAME
1958## --------- ##
1959## Platform. ##
1960## --------- ##
1961
1962hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1963uname -m = `(uname -m) 2>/dev/null || echo unknown`
1964uname -r = `(uname -r) 2>/dev/null || echo unknown`
1965uname -s = `(uname -s) 2>/dev/null || echo unknown`
1966uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967
1968/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1969/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1970
1971/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1972/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1973/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001974/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001975/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1976/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1977/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1978
1979_ASUNAME
1980
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00001986 $as_echo "PATH: $as_dir"
1987 done
mmentovai8c2a4de2006-09-20 16:20:15 +00001988IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001989
1990} >&5
1991
1992cat >&5 <<_ACEOF
1993
1994
1995## ----------- ##
1996## Core tests. ##
1997## ----------- ##
1998
1999_ACEOF
2000
2001
2002# Keep a trace of the command line.
2003# Strip out --no-create and --no-recursion so they do not pile up.
2004# Strip out --silent because we don't want to record it for future runs.
2005# Also quote any args containing shell meta-characters.
2006# Make two passes to allow for proper duplicate-argument suppression.
2007ac_configure_args=
2008ac_configure_args0=
2009ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002010ac_must_keep_next=false
2011for ac_pass in 1 2
2012do
2013 for ac_arg
2014 do
2015 case $ac_arg in
2016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2018 | -silent | --silent | --silen | --sile | --sil)
2019 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002020 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002021 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002022 esac
2023 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002024 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002025 2)
jimblandy92b1f832009-12-23 22:23:49 +00002026 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002027 if test $ac_must_keep_next = true; then
2028 ac_must_keep_next=false # Got value, back to normal.
2029 else
2030 case $ac_arg in
2031 *=* | --config-cache | -C | -disable-* | --disable-* \
2032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2034 | -with-* | --with-* | -without-* | --without-* | --x)
2035 case "$ac_configure_args0 " in
2036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2037 esac
2038 ;;
2039 -* ) ac_must_keep_next=true ;;
2040 esac
2041 fi
jimblandy92b1f832009-12-23 22:23:49 +00002042 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002043 ;;
2044 esac
2045 done
2046done
jimblandy92b1f832009-12-23 22:23:49 +00002047{ ac_configure_args0=; unset ac_configure_args0;}
2048{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002049
2050# When interrupted or exit'd, cleanup temporary files, and complete
2051# config.log. We remove comments because anyway the quotes in there
2052# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002053# WARNING: Use '\'' to represent an apostrophe within the trap.
2054# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002055trap 'exit_status=$?
2056 # Save into config.log some information that might help in debugging.
2057 {
2058 echo
2059
mark@chromium.orge9165f42013-11-23 01:45:20 +00002060 $as_echo "## ---------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002061## Cache variables. ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00002062## ---------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002063 echo
2064 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002065(
2066 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in #(
2069 *${as_nl}*)
2070 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002071 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2072$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002073 esac
2074 case $ac_var in #(
2075 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002078 esac ;;
2079 esac
2080 done
brynercb91a2f2006-08-25 21:14:45 +00002081 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002082 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002084 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002085 "s/'\''/'\''\\\\'\'''\''/g;
2086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002088 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002090 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002091 esac |
2092 sort
2093)
brynercb91a2f2006-08-25 21:14:45 +00002094 echo
2095
mark@chromium.orge9165f42013-11-23 01:45:20 +00002096 $as_echo "## ----------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002097## Output variables. ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00002098## ----------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002099 echo
2100 for ac_var in $ac_subst_vars
2101 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002102 eval ac_val=\$$ac_var
2103 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002104 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002105 esac
jimblandy92b1f832009-12-23 22:23:49 +00002106 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002107 done | sort
2108 echo
2109
2110 if test -n "$ac_subst_files"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002111 $as_echo "## ------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002112## File substitutions. ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00002113## ------------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002114 echo
2115 for ac_var in $ac_subst_files
2116 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002117 eval ac_val=\$$ac_var
2118 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002119 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002120 esac
jimblandy92b1f832009-12-23 22:23:49 +00002121 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002122 done | sort
2123 echo
2124 fi
2125
2126 if test -s confdefs.h; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002127 $as_echo "## ----------- ##
brynercb91a2f2006-08-25 21:14:45 +00002128## confdefs.h. ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00002129## ----------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002130 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002131 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002132 echo
2133 fi
2134 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002135 $as_echo "$as_me: caught signal $ac_signal"
2136 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002137 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002138 rm -f core *.core core.conftest.* &&
2139 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002140 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002141' 0
brynercb91a2f2006-08-25 21:14:45 +00002142for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002143 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002144done
2145ac_signal=0
2146
2147# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002148rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002149
jimblandy92b1f832009-12-23 22:23:49 +00002150$as_echo "/* confdefs.h */" > confdefs.h
2151
brynercb91a2f2006-08-25 21:14:45 +00002152# Predefined preprocessor variables.
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_NAME "$PACKAGE_NAME"
2156_ACEOF
2157
brynercb91a2f2006-08-25 21:14:45 +00002158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2160_ACEOF
2161
brynercb91a2f2006-08-25 21:14:45 +00002162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_VERSION "$PACKAGE_VERSION"
2164_ACEOF
2165
brynercb91a2f2006-08-25 21:14:45 +00002166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_STRING "$PACKAGE_STRING"
2168_ACEOF
2169
brynercb91a2f2006-08-25 21:14:45 +00002170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2172_ACEOF
2173
jimblandy92b1f832009-12-23 22:23:49 +00002174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_URL "$PACKAGE_URL"
2176_ACEOF
2177
brynercb91a2f2006-08-25 21:14:45 +00002178
2179# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002180# Prefer an explicitly selected file to automatically selected ones.
2181ac_site_file1=NONE
2182ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002183if test -n "$CONFIG_SITE"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002184 # We do not want a PATH search for config.site.
2185 case $CONFIG_SITE in #((
2186 -*) ac_site_file1=./$CONFIG_SITE;;
2187 */*) ac_site_file1=$CONFIG_SITE;;
2188 *) ac_site_file1=./$CONFIG_SITE;;
2189 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00002190elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002191 ac_site_file1=$prefix/share/config.site
2192 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002193else
jimblandy92b1f832009-12-23 22:23:49 +00002194 ac_site_file1=$ac_default_prefix/share/config.site
2195 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002196fi
jimblandy92b1f832009-12-23 22:23:49 +00002197for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002198do
jimblandy92b1f832009-12-23 22:23:49 +00002199 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002200 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002201 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2202$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002203 sed 's/^/| /' "$ac_site_file" >&5
mark@chromium.orge9165f42013-11-23 01:45:20 +00002204 . "$ac_site_file" \
2205 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207as_fn_error $? "failed to load site script $ac_site_file
2208See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00002209 fi
2210done
2211
2212if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002213 # Some versions of bash will fail to source /dev/null (special files
2214 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2215 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2217$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002218 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002219 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2220 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002221 esac
2222 fi
2223else
jimblandy92b1f832009-12-23 22:23:49 +00002224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2225$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002226 >$cache_file
2227fi
2228
2229# Check that the precious variables saved in the cache have kept the same
2230# value.
2231ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002232for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2234 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002235 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2236 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002237 case $ac_old_set,$ac_new_set in
2238 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2240$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002241 ac_cache_corrupted=: ;;
2242 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2244$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002245 ac_cache_corrupted=: ;;
2246 ,);;
2247 *)
2248 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002249 # differences in whitespace do not lead to failure.
2250 ac_old_val_w=`echo x $ac_old_val`
2251 ac_new_val_w=`echo x $ac_new_val`
2252 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2254$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2255 ac_cache_corrupted=:
2256 else
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2258$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2259 eval $ac_var=\$ac_old_val
2260 fi
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2262$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2264$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002265 fi;;
2266 esac
2267 # Pass precious variables to config.status.
2268 if test "$ac_new_set" = set; then
2269 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002270 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002271 *) ac_arg=$ac_var=$ac_new_val ;;
2272 esac
2273 case " $ac_configure_args " in
2274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002275 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002276 esac
2277 fi
2278done
2279if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2283$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00002284 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002285fi
jimblandy92b1f832009-12-23 22:23:49 +00002286## -------------------- ##
2287## Main body of script. ##
2288## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002289
brynercb91a2f2006-08-25 21:14:45 +00002290ac_ext=c
2291ac_cpp='$CPP $CPPFLAGS'
2292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295
2296
2297
brynercb91a2f2006-08-25 21:14:45 +00002298ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002299for ac_dir in autotools "$srcdir"/autotools; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002300 if test -f "$ac_dir/install-sh"; then
2301 ac_aux_dir=$ac_dir
2302 ac_install_sh="$ac_aux_dir/install-sh -c"
2303 break
2304 elif test -f "$ac_dir/install.sh"; then
2305 ac_aux_dir=$ac_dir
2306 ac_install_sh="$ac_aux_dir/install.sh -c"
2307 break
2308 elif test -f "$ac_dir/shtool"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/shtool install -c"
2311 break
2312 fi
brynercb91a2f2006-08-25 21:14:45 +00002313done
2314if test -z "$ac_aux_dir"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002315 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002316fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002317
2318# These three variables are undocumented and unsupported,
2319# and are intended to be withdrawn in a future Autoconf release.
2320# They can cause serious problems if a builder's source tree is in a directory
2321# whose full name contains unusual characters.
2322ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2323ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2324ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2325
brynercb91a2f2006-08-25 21:14:45 +00002326
mmentovai425d2562006-08-30 20:05:05 +00002327
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002328# Make sure we can run config.sub.
2329$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00002330 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002331
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2333$as_echo_n "checking build system type... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002334if ${ac_cv_build+:} false; then :
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002335 $as_echo_n "(cached) " >&6
2336else
2337 ac_build_alias=$build_alias
2338test "x$ac_build_alias" = x &&
2339 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2340test "x$ac_build_alias" = x &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00002341 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002342ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00002343 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002344
2345fi
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2347$as_echo "$ac_cv_build" >&6; }
2348case $ac_cv_build in
2349*-*-*) ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00002350*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002351esac
2352build=$ac_cv_build
2353ac_save_IFS=$IFS; IFS='-'
2354set x $ac_cv_build
2355shift
2356build_cpu=$1
2357build_vendor=$2
2358shift; shift
2359# Remember, the first character of IFS is used to create $*,
2360# except with old shells:
2361build_os=$*
2362IFS=$ac_save_IFS
2363case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2364
2365
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2367$as_echo_n "checking host system type... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002368if ${ac_cv_host+:} false; then :
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002369 $as_echo_n "(cached) " >&6
2370else
2371 if test "x$host_alias" = x; then
2372 ac_cv_host=$ac_cv_build
2373else
2374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00002375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002376fi
2377
2378fi
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2380$as_echo "$ac_cv_host" >&6; }
2381case $ac_cv_host in
2382*-*-*) ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00002383*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002384esac
2385host=$ac_cv_host
2386ac_save_IFS=$IFS; IFS='-'
2387set x $ac_cv_host
2388shift
2389host_cpu=$1
2390host_vendor=$2
2391shift; shift
2392# Remember, the first character of IFS is used to create $*,
2393# except with old shells:
2394host_os=$*
2395IFS=$ac_save_IFS
2396case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2397
2398
2399
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00002400am__api_version='1.15'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002401
brynercb91a2f2006-08-25 21:14:45 +00002402# Find a good install program. We prefer a C program (faster),
2403# so one script is as good as another. But avoid the broken or
2404# incompatible versions:
2405# SysV /etc/install, /usr/sbin/install
2406# SunOS /usr/etc/install
2407# IRIX /sbin/install
2408# AIX /bin/install
2409# AmigaOS /C/install, which installs bootblocks on floppy discs
2410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2413# OS/2's system install, which has a completely different semantic
2414# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002415# Reject install programs that cannot install multiple files.
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2417$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002418if test -z "$INSTALL"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002419if ${ac_cv_path_install+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002420 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002421else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002427 # Account for people who put trailing slashes in PATH elements.
2428case $as_dir/ in #((
2429 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002430 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002431 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002432 /usr/ucb/* ) ;;
2433 *)
2434 # OSF1 and SCO ODT 3.0 have their own names for install.
2435 # Don't use installbsd from OSF since it installs stuff as root
2436 # by default.
2437 for ac_prog in ginstall scoinst install; do
2438 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002439 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00002440 if test $ac_prog = install &&
2441 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2442 # AIX install. It has an incompatible calling convention.
2443 :
2444 elif test $ac_prog = install &&
2445 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446 # program-specific install script used by HP pwplus--don't use.
2447 :
2448 else
jimblandy92b1f832009-12-23 22:23:49 +00002449 rm -rf conftest.one conftest.two conftest.dir
2450 echo one > conftest.one
2451 echo two > conftest.two
2452 mkdir conftest.dir
2453 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2454 test -s conftest.one && test -s conftest.two &&
2455 test -s conftest.dir/conftest.one &&
2456 test -s conftest.dir/conftest.two
2457 then
2458 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2459 break 3
2460 fi
brynercb91a2f2006-08-25 21:14:45 +00002461 fi
2462 fi
2463 done
2464 done
2465 ;;
2466esac
jimblandy92b1f832009-12-23 22:23:49 +00002467
2468 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002469IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002470
jimblandy92b1f832009-12-23 22:23:49 +00002471rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002472
2473fi
2474 if test "${ac_cv_path_install+set}" = set; then
2475 INSTALL=$ac_cv_path_install
2476 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002477 # As a last resort, use the slow shell script. Don't cache a
2478 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002479 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002480 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002481 INSTALL=$ac_install_sh
2482 fi
2483fi
jimblandy92b1f832009-12-23 22:23:49 +00002484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2485$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002486
2487# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2488# It thinks the first close brace ends the variable substitution.
2489test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2490
2491test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2492
2493test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2494
jimblandy92b1f832009-12-23 22:23:49 +00002495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2496$as_echo_n "checking whether build environment is sane... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00002497# Reject unsafe characters in $srcdir or the absolute working directory
2498# name. Accept space and tab only in the latter.
2499am_lf='
2500'
2501case `pwd` in
2502 *[\\\"\#\$\&\'\`$am_lf]*)
mark@chromium.orge9165f42013-11-23 01:45:20 +00002503 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002504esac
2505case $srcdir in
2506 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
mark@chromium.orge9165f42013-11-23 01:45:20 +00002507 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002508esac
2509
mark@chromium.orge9165f42013-11-23 01:45:20 +00002510# Do 'set' in a subshell so we don't clobber the current shell's
brynercb91a2f2006-08-25 21:14:45 +00002511# arguments. Must try -L first in case configure is actually a
2512# symlink; some systems play weird games with the mod time of symlinks
2513# (eg FreeBSD returns the mod time of the symlink's containing
2514# directory).
2515if (
mark@chromium.orge9165f42013-11-23 01:45:20 +00002516 am_has_slept=no
2517 for am_try in 1 2; do
2518 echo "timestamp, slept: $am_has_slept" > conftest.file
2519 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2520 if test "$*" = "X"; then
2521 # -L didn't work.
2522 set X `ls -t "$srcdir/configure" conftest.file`
2523 fi
2524 if test "$*" != "X $srcdir/configure conftest.file" \
2525 && test "$*" != "X conftest.file $srcdir/configure"; then
brynercb91a2f2006-08-25 21:14:45 +00002526
mark@chromium.orge9165f42013-11-23 01:45:20 +00002527 # If neither matched, then we have a broken ls. This can happen
2528 # if, for instance, CONFIG_SHELL is bash and it inherits a
2529 # broken ls alias from the environment. This has actually
2530 # happened. Such a system could not be considered "sane".
2531 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2532 alias in your environment" "$LINENO" 5
2533 fi
2534 if test "$2" = conftest.file || test $am_try -eq 2; then
2535 break
2536 fi
2537 # Just in case.
2538 sleep 1
2539 am_has_slept=yes
2540 done
brynercb91a2f2006-08-25 21:14:45 +00002541 test "$2" = conftest.file
2542 )
2543then
2544 # Ok.
2545 :
2546else
mark@chromium.orge9165f42013-11-23 01:45:20 +00002547 as_fn_error $? "newly created file is older than distributed files!
jimblandy92b1f832009-12-23 22:23:49 +00002548Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002549fi
jimblandy92b1f832009-12-23 22:23:49 +00002550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551$as_echo "yes" >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002552# If we didn't sleep, we still need to ensure time stamps of config.status and
2553# generated files are strictly newer.
2554am_sleep_pid=
2555if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2556 ( sleep 1 ) &
2557 am_sleep_pid=$!
2558fi
2559
2560rm -f conftest.file
2561
brynercb91a2f2006-08-25 21:14:45 +00002562test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002563 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002564# Use a double $ so make ignores it.
2565test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002566 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002567# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002568# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002569ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2570program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002571
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00002572# Expand $ac_aux_dir to an absolute path.
2573am_aux_dir=`cd "$ac_aux_dir" && pwd`
brynercb91a2f2006-08-25 21:14:45 +00002574
jimblandy92b1f832009-12-23 22:23:49 +00002575if test x"${MISSING+set}" != xset; then
2576 case $am_aux_dir in
2577 *\ * | *\ *)
2578 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2579 *)
2580 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2581 esac
2582fi
brynercb91a2f2006-08-25 21:14:45 +00002583# Use eval to expand $SHELL
mark@chromium.orge9165f42013-11-23 01:45:20 +00002584if eval "$MISSING --is-lightweight"; then
2585 am_missing_run="$MISSING "
brynercb91a2f2006-08-25 21:14:45 +00002586else
2587 am_missing_run=
mark@chromium.orge9165f42013-11-23 01:45:20 +00002588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2589$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002590fi
2591
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00002592if test x"${install_sh+set}" != xset; then
jimblandy92b1f832009-12-23 22:23:49 +00002593 case $am_aux_dir in
2594 *\ * | *\ *)
2595 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2596 *)
2597 install_sh="\${SHELL} $am_aux_dir/install-sh"
2598 esac
2599fi
2600
mark@chromium.orge9165f42013-11-23 01:45:20 +00002601# Installed binaries are usually stripped using 'strip' when the user
2602# run "make install-strip". However 'strip' might not be the right
jimblandy92b1f832009-12-23 22:23:49 +00002603# tool to use in cross-compilation environments, therefore Automake
mark@chromium.orge9165f42013-11-23 01:45:20 +00002604# will honor the 'STRIP' environment variable to overrule this program.
jimblandy92b1f832009-12-23 22:23:49 +00002605if test "$cross_compiling" != no; then
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2608set dummy ${ac_tool_prefix}strip; ac_word=$2
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002611if ${ac_cv_prog_STRIP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002612 $as_echo_n "(cached) " >&6
2613else
2614 if test -n "$STRIP"; then
2615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jimblandy92b1f832009-12-23 22:23:49 +00002624 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628done
2629 done
2630IFS=$as_save_IFS
2631
2632fi
2633fi
2634STRIP=$ac_cv_prog_STRIP
2635if test -n "$STRIP"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2637$as_echo "$STRIP" >&6; }
2638else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640$as_echo "no" >&6; }
2641fi
2642
2643
2644fi
2645if test -z "$ac_cv_prog_STRIP"; then
2646 ac_ct_STRIP=$STRIP
2647 # Extract the first word of "strip", so it can be a program name with args.
2648set dummy strip; ac_word=$2
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002651if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002652 $as_echo_n "(cached) " >&6
2653else
2654 if test -n "$ac_ct_STRIP"; then
2655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jimblandy92b1f832009-12-23 22:23:49 +00002664 ac_cv_prog_ac_ct_STRIP="strip"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668done
2669 done
2670IFS=$as_save_IFS
2671
2672fi
2673fi
2674ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2675if test -n "$ac_ct_STRIP"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2677$as_echo "$ac_ct_STRIP" >&6; }
2678else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680$as_echo "no" >&6; }
2681fi
2682
2683 if test "x$ac_ct_STRIP" = x; then
2684 STRIP=":"
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687yes:)
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2690ac_tool_warned=yes ;;
2691esac
2692 STRIP=$ac_ct_STRIP
2693 fi
2694else
2695 STRIP="$ac_cv_prog_STRIP"
2696fi
2697
2698fi
2699INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2700
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2702$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002703if test -z "$MKDIR_P"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002704 if ${ac_cv_path_mkdir+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002705 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002706else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002712 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002713 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002714 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
mmentovaiaf3c43f2007-05-17 18:34:37 +00002715 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2716 'mkdir (GNU coreutils) '* | \
2717 'mkdir (coreutils) '* | \
2718 'mkdir (fileutils) '4.1*)
2719 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2720 break 3;;
2721 esac
2722 done
2723 done
jimblandy92b1f832009-12-23 22:23:49 +00002724 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002725IFS=$as_save_IFS
2726
2727fi
2728
jimblandydc4029a2010-02-02 17:39:51 +00002729 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002730 if test "${ac_cv_path_mkdir+set}" = set; then
2731 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002732 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002733 # As a last resort, use the slow shell script. Don't cache a
2734 # value for MKDIR_P within a source directory, because that will
2735 # break other packages using the cache if that directory is
2736 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002737 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002738 fi
2739fi
jimblandy92b1f832009-12-23 22:23:49 +00002740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2741$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002742
brynercb91a2f2006-08-25 21:14:45 +00002743for ac_prog in gawk mawk nawk awk
2744do
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002749if ${ac_cv_prog_AWK+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002750 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002751else
2752 if test -n "$AWK"; then
2753 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002760 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00002762 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002764 break 2
2765 fi
2766done
jimblandy92b1f832009-12-23 22:23:49 +00002767 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002768IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002769
2770fi
2771fi
2772AWK=$ac_cv_prog_AWK
2773if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2775$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002776else
jimblandy92b1f832009-12-23 22:23:49 +00002777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002779fi
2780
mmentovai8c2a4de2006-09-20 16:20:15 +00002781
brynercb91a2f2006-08-25 21:14:45 +00002782 test -n "$AWK" && break
2783done
2784
jimblandy92b1f832009-12-23 22:23:49 +00002785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2786$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2787set x ${MAKE-make}
2788ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
mark@chromium.orge9165f42013-11-23 01:45:20 +00002789if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002790 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002791else
2792 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002793SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002794all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002795 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002796_ACEOF
mark@chromium.orge9165f42013-11-23 01:45:20 +00002797# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002798case `${MAKE-make} -f conftest.make 2>/dev/null` in
2799 *@@@%%%=?*=@@@%%%*)
2800 eval ac_cv_prog_make_${ac_make}_set=yes;;
2801 *)
2802 eval ac_cv_prog_make_${ac_make}_set=no;;
2803esac
brynercb91a2f2006-08-25 21:14:45 +00002804rm -f conftest.make
2805fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002806if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2808$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002809 SET_MAKE=
2810else
jimblandy92b1f832009-12-23 22:23:49 +00002811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002813 SET_MAKE="MAKE=${MAKE-make}"
2814fi
2815
2816rm -rf .tst 2>/dev/null
2817mkdir .tst 2>/dev/null
2818if test -d .tst; then
2819 am__leading_dot=.
2820else
2821 am__leading_dot=_
2822fi
2823rmdir .tst 2>/dev/null
2824
mark@chromium.orge9165f42013-11-23 01:45:20 +00002825# Check whether --enable-silent-rules was given.
2826if test "${enable_silent_rules+set}" = set; then :
2827 enableval=$enable_silent_rules;
2828fi
2829
2830case $enable_silent_rules in # (((
2831 yes) AM_DEFAULT_VERBOSITY=0;;
2832 no) AM_DEFAULT_VERBOSITY=1;;
2833 *) AM_DEFAULT_VERBOSITY=1;;
2834esac
2835am_make=${MAKE-make}
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2837$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2838if ${am_cv_make_support_nested_variables+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840else
2841 if $as_echo 'TRUE=$(BAR$(V))
2842BAR0=false
2843BAR1=true
2844V=1
2845am__doit:
2846 @$(TRUE)
2847.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2848 am_cv_make_support_nested_variables=yes
2849else
2850 am_cv_make_support_nested_variables=no
2851fi
2852fi
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2854$as_echo "$am_cv_make_support_nested_variables" >&6; }
2855if test $am_cv_make_support_nested_variables = yes; then
2856 AM_V='$(V)'
2857 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2858else
2859 AM_V=$AM_DEFAULT_VERBOSITY
2860 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2861fi
2862AM_BACKSLASH='\'
2863
mmentovaiaf3c43f2007-05-17 18:34:37 +00002864if test "`cd $srcdir && pwd`" != "`pwd`"; then
2865 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2866 # is not polluted with repeated "-I."
2867 am__isrc=' -I$(srcdir)'
2868 # test to see if srcdir already configured
2869 if test -f $srcdir/config.status; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002870 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002871 fi
brynercb91a2f2006-08-25 21:14:45 +00002872fi
2873
2874# test whether we have cygpath
2875if test -z "$CYGPATH_W"; then
2876 if (cygpath --version) >/dev/null 2>/dev/null; then
2877 CYGPATH_W='cygpath -w'
2878 else
2879 CYGPATH_W=echo
2880 fi
2881fi
2882
2883
2884# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002885 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002886 VERSION='0.1'
2887
2888
2889cat >>confdefs.h <<_ACEOF
2890#define PACKAGE "$PACKAGE"
2891_ACEOF
2892
2893
2894cat >>confdefs.h <<_ACEOF
2895#define VERSION "$VERSION"
2896_ACEOF
2897
2898# Some tools Automake needs.
2899
2900ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2901
2902
2903AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2904
2905
2906AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2907
2908
2909AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2910
2911
2912MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2913
mark@chromium.orge9165f42013-11-23 01:45:20 +00002914# For better backward compatibility. To be removed once Automake 1.9.x
2915# dies out for good. For more background, see:
2916# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2917# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2918mkdir_p='$(MKDIR_P)'
2919
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00002920# We need awk for the "check" target (and possibly the TAP driver). The
2921# system "awk" is bad on some platforms.
digit@chromium.org5bce3b42013-09-25 13:47:44 +00002922# Always define AMTAR for backward compatibility. Yes, it's still used
2923# in the wild :-( We should find a proper way to deprecate it ...
2924AMTAR='$${TAR-tar}'
brynercb91a2f2006-08-25 21:14:45 +00002925
mmentovaidb3342a2006-12-05 22:52:28 +00002926
mark@chromium.orge9165f42013-11-23 01:45:20 +00002927# We'll loop over all known methods to create a tar archive until one works.
mmentovaidb3342a2006-12-05 22:52:28 +00002928_am_tools='gnutar plaintar pax cpio none'
mark@chromium.orge9165f42013-11-23 01:45:20 +00002929
2930# The POSIX 1988 'ustar' format is defined with fixed-size fields.
2931 # There is notably a 21 bits limit for the UID and the GID. In fact,
2932 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2933 # and bug#13588).
2934 am_max_uid=2097151 # 2^21 - 1
2935 am_max_gid=$am_max_uid
2936 # The $UID and $GID variables are not portable, so we need to resort
2937 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2938 # below are definitely unexpected, so allow the users to see them
2939 # (that is, avoid stderr redirection).
2940 am_uid=`id -u || echo unknown`
2941 am_gid=`id -g || echo unknown`
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2943$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2944 if test $am_uid -le $am_max_uid; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946$as_echo "yes" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950 _am_tools=none
2951 fi
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2953$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2954 if test $am_gid -le $am_max_gid; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2956$as_echo "yes" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960 _am_tools=none
2961 fi
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2964$as_echo_n "checking how to create a ustar tar archive... " >&6; }
2965
2966 # Go ahead even if we have the value already cached. We do so because we
2967 # need to set the values for the 'am__tar' and 'am__untar' variables.
2968 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2969
2970 for _am_tool in $_am_tools; do
2971 case $_am_tool in
2972 gnutar)
2973 for _am_tar in tar gnutar gtar; do
2974 { echo "$as_me:$LINENO: $_am_tar --version" >&5
mmentovaidb3342a2006-12-05 22:52:28 +00002975 ($_am_tar --version) >&5 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && break
mark@chromium.orge9165f42013-11-23 01:45:20 +00002979 done
2980 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2981 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2982 am__untar="$_am_tar -xf -"
2983 ;;
2984 plaintar)
2985 # Must skip GNU tar: if it does not support --format= it doesn't create
2986 # ustar tarball either.
2987 (tar --version) >/dev/null 2>&1 && continue
2988 am__tar='tar chf - "$$tardir"'
2989 am__tar_='tar chf - "$tardir"'
2990 am__untar='tar xf -'
2991 ;;
2992 pax)
2993 am__tar='pax -L -x ustar -w "$$tardir"'
2994 am__tar_='pax -L -x ustar -w "$tardir"'
2995 am__untar='pax -r'
2996 ;;
2997 cpio)
2998 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2999 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3000 am__untar='cpio -i -H ustar -d'
3001 ;;
3002 none)
3003 am__tar=false
3004 am__tar_=false
3005 am__untar=false
3006 ;;
3007 esac
mmentovaidb3342a2006-12-05 22:52:28 +00003008
mark@chromium.orge9165f42013-11-23 01:45:20 +00003009 # If the value was cached, stop now. We just wanted to have am__tar
3010 # and am__untar set.
3011 test -n "${am_cv_prog_tar_ustar}" && break
mmentovaidb3342a2006-12-05 22:52:28 +00003012
mark@chromium.orge9165f42013-11-23 01:45:20 +00003013 # tar/untar a dummy directory, and stop if the command works.
3014 rm -rf conftest.dir
3015 mkdir conftest.dir
3016 echo GrepMe > conftest.dir/file
3017 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
mmentovaidb3342a2006-12-05 22:52:28 +00003018 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003022 rm -rf conftest.dir
3023 if test -s conftest.tar; then
3024 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
mmentovaidb3342a2006-12-05 22:52:28 +00003025 ($am__untar <conftest.tar) >&5 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003029 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3030 (cat conftest.dir/file) >&5 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3035 fi
3036 done
3037 rm -rf conftest.dir
mmentovaidb3342a2006-12-05 22:52:28 +00003038
mark@chromium.orge9165f42013-11-23 01:45:20 +00003039 if ${am_cv_prog_tar_ustar+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003040 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00003041else
3042 am_cv_prog_tar_ustar=$_am_tool
3043fi
3044
mark@chromium.orge9165f42013-11-23 01:45:20 +00003045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
jimblandy92b1f832009-12-23 22:23:49 +00003046$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003047
3048
3049
3050
3051
mark@chromium.orge9165f42013-11-23 01:45:20 +00003052
3053# POSIX will say in a future version that running "rm -f" with no argument
3054# is OK; and we want to be able to make that assumption in our Makefile
3055# recipes. So use an aggressive probe to check that the usage we want is
3056# actually supported "in the wild" to an acceptable degree.
3057# See automake bug#10828.
3058# To make any issue more visible, cause the running configure to be aborted
3059# by default if the 'rm' program in use doesn't match our expectations; the
3060# user can still override this though.
3061if rm -f && rm -fr && rm -rf; then : OK; else
3062 cat >&2 <<'END'
3063Oops!
3064
3065Your 'rm' program seems unable to run without file operands specified
3066on the command line, even when the '-f' option is present. This is contrary
3067to the behaviour of most rm programs out there, and not conforming with
3068the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3069
3070Please tell bug-automake@gnu.org about your system, including the value
3071of your $PATH and any error possibly output before this message. This
3072can help us improve future automake versions.
3073
3074END
3075 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3076 echo 'Configuration will proceed anyway, since you have set the' >&2
3077 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3078 echo >&2
3079 else
3080 cat >&2 <<'END'
3081Aborting the configuration process, to ensure you take notice of the issue.
3082
3083You can download and install GNU coreutils to get an 'rm' implementation
3084that behaves properly: <http://www.gnu.org/software/coreutils/>.
3085
3086If you want to complete the configuration process using your problematic
3087'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3088to "yes", and re-run configure.
3089
3090END
3091 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3092 fi
3093fi
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00003094
mmentovai8c2a4de2006-09-20 16:20:15 +00003095ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00003096
3097
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +00003098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3099$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3100 # Check whether --enable-maintainer-mode was given.
3101if test "${enable_maintainer_mode+set}" = set; then :
3102 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3103else
3104 USE_MAINTAINER_MODE=no
3105fi
3106
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3108$as_echo "$USE_MAINTAINER_MODE" >&6; }
3109 if test $USE_MAINTAINER_MODE = yes; then
3110 MAINTAINER_MODE_TRUE=
3111 MAINTAINER_MODE_FALSE='#'
3112else
3113 MAINTAINER_MODE_TRUE='#'
3114 MAINTAINER_MODE_FALSE=
3115fi
3116
3117 MAINT=$MAINTAINER_MODE_TRUE
3118
3119
3120
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003121DEPDIR="${am__leading_dot}deps"
3122
3123ac_config_commands="$ac_config_commands depfiles"
3124
3125
3126am_make=${MAKE-make}
3127cat > confinc << 'END'
3128am__doit:
3129 @echo this is the am__doit target
3130.PHONY: am__doit
3131END
3132# If we don't find an include directive, just comment out the code.
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3134$as_echo_n "checking for style of include used by $am_make... " >&6; }
3135am__include="#"
3136am__quote=
3137_am_result=none
3138# First try GNU make style include.
3139echo "include confinc" > confmf
mark@chromium.orge9165f42013-11-23 01:45:20 +00003140# Ignore all kinds of additional output from 'make'.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003141case `$am_make -s -f confmf 2> /dev/null` in #(
3142*the\ am__doit\ target*)
3143 am__include=include
3144 am__quote=
3145 _am_result=GNU
3146 ;;
3147esac
3148# Now try BSD make style include.
3149if test "$am__include" = "#"; then
3150 echo '.include "confinc"' > confmf
3151 case `$am_make -s -f confmf 2> /dev/null` in #(
3152 *the\ am__doit\ target*)
3153 am__include=.include
3154 am__quote="\""
3155 _am_result=BSD
3156 ;;
3157 esac
3158fi
3159
3160
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3162$as_echo "$_am_result" >&6; }
3163rm -f confinc confmf
3164
3165# Check whether --enable-dependency-tracking was given.
3166if test "${enable_dependency_tracking+set}" = set; then :
3167 enableval=$enable_dependency_tracking;
3168fi
3169
3170if test "x$enable_dependency_tracking" != xno; then
3171 am_depcomp="$ac_aux_dir/depcomp"
3172 AMDEPBACKSLASH='\'
digit@chromium.org5bce3b42013-09-25 13:47:44 +00003173 am__nodep='_no'
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003174fi
3175 if test "x$enable_dependency_tracking" != xno; then
3176 AMDEP_TRUE=
3177 AMDEP_FALSE='#'
3178else
3179 AMDEP_TRUE='#'
3180 AMDEP_FALSE=
3181fi
3182
3183
brynercb91a2f2006-08-25 21:14:45 +00003184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003194if ${ac_cv_prog_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003195 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003196else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199else
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003205 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003209 break 2
3210 fi
3211done
jimblandy92b1f832009-12-23 22:23:49 +00003212 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003213IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003214
3215fi
3216fi
3217CC=$ac_cv_prog_CC
3218if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003221else
jimblandy92b1f832009-12-23 22:23:49 +00003222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003224fi
3225
mmentovai8c2a4de2006-09-20 16:20:15 +00003226
brynercb91a2f2006-08-25 21:14:45 +00003227fi
3228if test -z "$ac_cv_prog_CC"; then
3229 ac_ct_CC=$CC
3230 # Extract the first word of "gcc", so it can be a program name with args.
3231set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003234if ${ac_cv_prog_ac_ct_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003235 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003236else
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3239else
3240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241for as_dir in $PATH
3242do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003245 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003247 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003249 break 2
3250 fi
3251done
jimblandy92b1f832009-12-23 22:23:49 +00003252 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003253IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003254
3255fi
3256fi
3257ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3260$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003261else
jimblandy92b1f832009-12-23 22:23:49 +00003262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003264fi
3265
mmentovai8c2a4de2006-09-20 16:20:15 +00003266 if test "x$ac_ct_CC" = x; then
3267 CC=""
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003273ac_tool_warned=yes ;;
3274esac
3275 CC=$ac_ct_CC
3276 fi
brynercb91a2f2006-08-25 21:14:45 +00003277else
3278 CC="$ac_cv_prog_CC"
3279fi
3280
3281if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003284set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003287if ${ac_cv_prog_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003288 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003289else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292else
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003298 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003300 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003302 break 2
3303 fi
3304done
jimblandy92b1f832009-12-23 22:23:49 +00003305 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003306IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003307
3308fi
3309fi
3310CC=$ac_cv_prog_CC
3311if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003314else
jimblandy92b1f832009-12-23 22:23:49 +00003315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003317fi
3318
mmentovai8c2a4de2006-09-20 16:20:15 +00003319
brynercb91a2f2006-08-25 21:14:45 +00003320 fi
brynercb91a2f2006-08-25 21:14:45 +00003321fi
3322if test -z "$CC"; then
3323 # Extract the first word of "cc", so it can be a program name with args.
3324set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003327if ${ac_cv_prog_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003328 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003329else
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3332else
3333 ac_prog_rejected=no
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003339 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected=yes
3343 continue
3344 fi
3345 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003347 break 2
3348 fi
3349done
jimblandy92b1f832009-12-23 22:23:49 +00003350 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003351IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003352
3353if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy $ac_cv_prog_CC
3356 shift
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3361 shift
3362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3363 fi
3364fi
3365fi
3366fi
3367CC=$ac_cv_prog_CC
3368if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003371else
jimblandy92b1f832009-12-23 22:23:49 +00003372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003374fi
3375
mmentovai8c2a4de2006-09-20 16:20:15 +00003376
brynercb91a2f2006-08-25 21:14:45 +00003377fi
3378if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003380 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003381 do
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003386if ${ac_cv_prog_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003387 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003388else
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003397 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003401 break 2
3402 fi
3403done
jimblandy92b1f832009-12-23 22:23:49 +00003404 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003405IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003406
3407fi
3408fi
3409CC=$ac_cv_prog_CC
3410if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003413else
jimblandy92b1f832009-12-23 22:23:49 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003416fi
3417
mmentovai8c2a4de2006-09-20 16:20:15 +00003418
brynercb91a2f2006-08-25 21:14:45 +00003419 test -n "$CC" && break
3420 done
3421fi
3422if test -z "$CC"; then
3423 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003424 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003425do
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003430if ${ac_cv_prog_ac_ct_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003431 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003432else
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435else
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003441 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003443 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003445 break 2
3446 fi
3447done
jimblandy92b1f832009-12-23 22:23:49 +00003448 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003449IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003450
3451fi
3452fi
3453ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3456$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003457else
jimblandy92b1f832009-12-23 22:23:49 +00003458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003460fi
3461
mmentovai8c2a4de2006-09-20 16:20:15 +00003462
brynercb91a2f2006-08-25 21:14:45 +00003463 test -n "$ac_ct_CC" && break
3464done
3465
mmentovai8c2a4de2006-09-20 16:20:15 +00003466 if test "x$ac_ct_CC" = x; then
3467 CC=""
3468 else
3469 case $cross_compiling:$ac_tool_warned in
3470yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003473ac_tool_warned=yes ;;
3474esac
3475 CC=$ac_ct_CC
3476 fi
brynercb91a2f2006-08-25 21:14:45 +00003477fi
3478
3479fi
3480
3481
jimblandy92b1f832009-12-23 22:23:49 +00003482test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003484as_fn_error $? "no acceptable C compiler found in \$PATH
3485See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003486
3487# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003488$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3489set X $ac_compile
3490ac_compiler=$2
3491for ac_option in --version -v -V -qversion; do
3492 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003493case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
jimblandy92b1f832009-12-23 22:23:49 +00003497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498$as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003500 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003501 if test -s conftest.err; then
3502 sed '10a\
3503... rest of stderr output deleted ...
3504 10q' conftest.err >conftest.er1
3505 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003506 fi
jimblandydc4029a2010-02-02 17:39:51 +00003507 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }
3510done
brynercb91a2f2006-08-25 21:14:45 +00003511
jimblandy92b1f832009-12-23 22:23:49 +00003512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003513/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003514
brynercb91a2f2006-08-25 21:14:45 +00003515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003524ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003525# Try to create an executable without -o first, disregard a.out.
3526# It will help us diagnose broken compilers, and finding out an intuition
3527# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3529$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003530ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3531
3532# The possible output files:
3533ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3534
mmentovai8c2a4de2006-09-20 16:20:15 +00003535ac_rmfiles=
3536for ac_file in $ac_files
3537do
3538 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003540 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3541 esac
3542done
3543rm -f $ac_rmfiles
3544
jimblandy92b1f832009-12-23 22:23:49 +00003545if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003546case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
jimblandy92b1f832009-12-23 22:23:49 +00003550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003552 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003553 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003556 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3557# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3558# in a Makefile. We should not override ac_cv_exeext if it was cached,
3559# so that the user can short-circuit this test for compilers unknown to
3560# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003561for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003562do
3563 test -f "$ac_file" || continue
3564 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003566 ;;
3567 [ab].out )
3568 # We found the default executable, but exeext='' is most
3569 # certainly right.
3570 break;;
3571 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003572 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003573 then :; else
3574 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3575 fi
3576 # We set ac_cv_exeext here because the later test for it is not
3577 # safe: cross compilers may not add the suffix if given an `-o'
3578 # argument, so we may need to know it at that point already.
3579 # Even if this section looks crufty: it has the advantage of
3580 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003581 break;;
3582 * )
3583 break;;
3584 esac
3585done
mmentovai8c2a4de2006-09-20 16:20:15 +00003586test "$ac_cv_exeext" = no && ac_cv_exeext=
3587
brynercb91a2f2006-08-25 21:14:45 +00003588else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003589 ac_file=''
3590fi
jimblandy92b1f832009-12-23 22:23:49 +00003591if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593$as_echo "no" >&6; }
3594$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003595sed 's/^/| /' conftest.$ac_ext >&5
3596
jimblandy92b1f832009-12-23 22:23:49 +00003597{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003599as_fn_error 77 "C compiler cannot create executables
3600See \`config.log' for more details" "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003601else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3603$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003604fi
jimblandydc4029a2010-02-02 17:39:51 +00003605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3606$as_echo_n "checking for C compiler default output file name... " >&6; }
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3608$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003609ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003610
jimblandydc4029a2010-02-02 17:39:51 +00003611rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003612ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3614$as_echo_n "checking for suffix of executables... " >&6; }
3615if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003616case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619esac
jimblandy92b1f832009-12-23 22:23:49 +00003620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003622 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003623 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3627# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3628# work properly (i.e., refer to `conftest.exe'), while it won't with
3629# `rm'.
3630for ac_file in conftest.exe conftest conftest.*; do
3631 test -f "$ac_file" || continue
3632 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003635 break;;
3636 * ) break;;
3637 esac
3638done
3639else
jimblandy92b1f832009-12-23 22:23:49 +00003640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003642as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3643See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003644fi
jimblandydc4029a2010-02-02 17:39:51 +00003645rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3647$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003648
3649rm -f conftest.$ac_ext
3650EXEEXT=$ac_cv_exeext
3651ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654#include <stdio.h>
3655int
3656main ()
3657{
3658FILE *f = fopen ("conftest.out", "w");
3659 return ferror (f) || fclose (f) != 0;
3660
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665ac_clean_files="$ac_clean_files conftest.out"
3666# Check that the compiler produces executables we can run. If not, either
3667# the compiler is broken, or we cross compile.
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3669$as_echo_n "checking whether we are cross compiling... " >&6; }
3670if test "$cross_compiling" != yes; then
3671 { { ac_try="$ac_link"
3672case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675esac
3676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677$as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_link") 2>&5
3679 ac_status=$?
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }
3682 if { ac_try='./conftest$ac_cv_exeext'
3683 { { case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686esac
3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688$as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_try") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; }; then
3693 cross_compiling=no
3694 else
3695 if test "$cross_compiling" = maybe; then
3696 cross_compiling=yes
3697 else
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003700as_fn_error $? "cannot run C compiled programs.
jimblandydc4029a2010-02-02 17:39:51 +00003701If you meant to cross compile, use \`--host'.
mark@chromium.orge9165f42013-11-23 01:45:20 +00003702See \`config.log' for more details" "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003703 fi
3704 fi
3705fi
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3707$as_echo "$cross_compiling" >&6; }
3708
3709rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3710ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3712$as_echo_n "checking for suffix of object files... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003713if ${ac_cv_objext+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003714 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003715else
jimblandy92b1f832009-12-23 22:23:49 +00003716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003717/* end confdefs.h. */
3718
3719int
3720main ()
3721{
3722
3723 ;
3724 return 0;
3725}
3726_ACEOF
3727rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003728if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003729case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732esac
jimblandy92b1f832009-12-23 22:23:49 +00003733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003735 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003736 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003739 for ac_file in conftest.o conftest.obj conftest.*; do
3740 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003741 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3744 break;;
3745 esac
3746done
3747else
jimblandy92b1f832009-12-23 22:23:49 +00003748 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003749sed 's/^/| /' conftest.$ac_ext >&5
3750
jimblandy92b1f832009-12-23 22:23:49 +00003751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003753as_fn_error $? "cannot compute suffix of object files: cannot compile
3754See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003755fi
brynercb91a2f2006-08-25 21:14:45 +00003756rm -f conftest.$ac_cv_objext conftest.$ac_ext
3757fi
jimblandy92b1f832009-12-23 22:23:49 +00003758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3759$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003760OBJEXT=$ac_cv_objext
3761ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3763$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003764if ${ac_cv_c_compiler_gnu+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003765 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003766else
jimblandy92b1f832009-12-23 22:23:49 +00003767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003768/* end confdefs.h. */
3769
3770int
3771main ()
3772{
3773#ifndef __GNUC__
3774 choke me
3775#endif
3776
3777 ;
3778 return 0;
3779}
3780_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003781if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003782 ac_compiler_gnu=yes
3783else
jimblandy92b1f832009-12-23 22:23:49 +00003784 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003785fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003787ac_cv_c_compiler_gnu=$ac_compiler_gnu
3788
3789fi
jimblandy92b1f832009-12-23 22:23:49 +00003790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3791$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3792if test $ac_compiler_gnu = yes; then
3793 GCC=yes
3794else
3795 GCC=
3796fi
brynercb91a2f2006-08-25 21:14:45 +00003797ac_test_CFLAGS=${CFLAGS+set}
3798ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3800$as_echo_n "checking whether $CC accepts -g... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003801if ${ac_cv_prog_cc_g+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003802 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003803else
mmentovai8c2a4de2006-09-20 16:20:15 +00003804 ac_save_c_werror_flag=$ac_c_werror_flag
3805 ac_c_werror_flag=yes
3806 ac_cv_prog_cc_g=no
3807 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003809/* end confdefs.h. */
3810
3811int
3812main ()
3813{
3814
3815 ;
3816 return 0;
3817}
3818_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003819if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003820 ac_cv_prog_cc_g=yes
3821else
jimblandy92b1f832009-12-23 22:23:49 +00003822 CFLAGS=""
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003824/* end confdefs.h. */
3825
3826int
3827main ()
3828{
3829
3830 ;
3831 return 0;
3832}
3833_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003834if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003835
jimblandy92b1f832009-12-23 22:23:49 +00003836else
3837 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003838 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003840/* end confdefs.h. */
3841
3842int
3843main ()
3844{
3845
3846 ;
3847 return 0;
3848}
3849_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003850if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003851 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003852fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003854fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_c_werror_flag=$ac_save_c_werror_flag
3859fi
jimblandy92b1f832009-12-23 22:23:49 +00003860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3861$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003862if test "$ac_test_CFLAGS" = set; then
3863 CFLAGS=$ac_save_CFLAGS
3864elif test $ac_cv_prog_cc_g = yes; then
3865 if test "$GCC" = yes; then
3866 CFLAGS="-g -O2"
3867 else
3868 CFLAGS="-g"
3869 fi
3870else
3871 if test "$GCC" = yes; then
3872 CFLAGS="-O2"
3873 else
3874 CFLAGS=
3875 fi
3876fi
jimblandy92b1f832009-12-23 22:23:49 +00003877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3878$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003879if ${ac_cv_prog_cc_c89+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003880 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003881else
mmentovai8c2a4de2006-09-20 16:20:15 +00003882 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003883ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003885/* end confdefs.h. */
3886#include <stdarg.h>
3887#include <stdio.h>
mark@chromium.orge9165f42013-11-23 01:45:20 +00003888struct stat;
brynercb91a2f2006-08-25 21:14:45 +00003889/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3890struct buf { int x; };
3891FILE * (*rcsopen) (struct buf *, struct stat *, int);
3892static char *e (p, i)
3893 char **p;
3894 int i;
3895{
3896 return p[i];
3897}
3898static char *f (char * (*g) (char **, int), char **p, ...)
3899{
3900 char *s;
3901 va_list v;
3902 va_start (v,p);
3903 s = g (p, va_arg (v,int));
3904 va_end (v);
3905 return s;
3906}
3907
3908/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3909 function prototypes and stuff, but not '\xHH' hex character constants.
3910 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003911 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3913 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003914 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003915int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3916
mmentovai8c2a4de2006-09-20 16:20:15 +00003917/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3918 inside strings and character constants. */
3919#define FOO(x) 'x'
3920int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3921
brynercb91a2f2006-08-25 21:14:45 +00003922int test (int i, double x);
3923struct s1 {int (*f) (int a);};
3924struct s2 {int (*f) (double a);};
3925int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3926int argc;
3927char **argv;
3928int
3929main ()
3930{
3931return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3932 ;
3933 return 0;
3934}
3935_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003936for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3937 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003938do
3939 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003940 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003941 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003942fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003943rm -f core conftest.err conftest.$ac_objext
3944 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003945done
mmentovai8c2a4de2006-09-20 16:20:15 +00003946rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003947CC=$ac_save_CC
3948
3949fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003950# AC_CACHE_VAL
3951case "x$ac_cv_prog_cc_c89" in
3952 x)
jimblandy92b1f832009-12-23 22:23:49 +00003953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3954$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003955 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3957$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003958 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003959 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3961$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003962esac
jimblandy92b1f832009-12-23 22:23:49 +00003963if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003964
jimblandy92b1f832009-12-23 22:23:49 +00003965fi
brynercb91a2f2006-08-25 21:14:45 +00003966
brynercb91a2f2006-08-25 21:14:45 +00003967ac_ext=c
3968ac_cpp='$CPP $CPPFLAGS'
3969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00003972
mark@chromium.orge9165f42013-11-23 01:45:20 +00003973ac_ext=c
3974ac_cpp='$CPP $CPPFLAGS'
3975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3979$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3980if ${am_cv_prog_cc_c_o+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982else
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h. */
3985
3986int
3987main ()
3988{
3989
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994 # Make sure it works both with $CC and with simple cc.
3995 # Following AC_PROG_CC_C_O, we do the test twice because some
3996 # compilers refuse to overwrite an existing .o file with -o,
3997 # though they will create one.
3998 am_cv_prog_cc_c_o=yes
3999 for am_i in 1 2; do
4000 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4001 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } \
4005 && test -f conftest2.$ac_objext; then
4006 : OK
4007 else
4008 am_cv_prog_cc_c_o=no
4009 break
4010 fi
4011 done
4012 rm -f core conftest*
4013 unset am_i
4014fi
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4016$as_echo "$am_cv_prog_cc_c_o" >&6; }
4017if test "$am_cv_prog_cc_c_o" != yes; then
4018 # Losing compiler, so override with the script.
4019 # FIXME: It is wrong to rewrite CC.
4020 # But if we don't then we get into trouble of one sort or another.
4021 # A longer-term fix would be to have automake use am__CC in this case,
4022 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4023 CC="$am_aux_dir/compile $CC"
4024fi
4025ac_ext=c
4026ac_cpp='$CPP $CPPFLAGS'
4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030
4031
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004032depcc="$CC" am_compiler_list=
brynercb91a2f2006-08-25 21:14:45 +00004033
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4035$as_echo_n "checking dependency style of $depcc... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004036if ${am_cv_CC_dependencies_compiler_type+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004037 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004038else
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4040 # We make a subdir and do the tests there. Otherwise we can end up
4041 # making bogus files that we don't know about and never remove. For
4042 # instance it was reported that on HP-UX the gcc test will end up
mark@chromium.orge9165f42013-11-23 01:45:20 +00004043 # making a dummy file named 'D' -- because '-MD' means "put the output
4044 # in D".
digit@chromium.org5bce3b42013-09-25 13:47:44 +00004045 rm -rf conftest.dir
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004046 mkdir conftest.dir
4047 # Copy depcomp to subdir because otherwise we won't find it if we're
4048 # using a relative directory.
4049 cp "$am_depcomp" conftest.dir
4050 cd conftest.dir
4051 # We will build objects and dependencies in a subdirectory because
4052 # it helps to detect inapplicable dependency modes. For instance
4053 # both Tru64's cc and ICC support -MD to output dependencies as a
4054 # side effect of compilation, but ICC will put the dependencies in
4055 # the current directory while Tru64 will put them in the object
4056 # directory.
4057 mkdir sub
4058
4059 am_cv_CC_dependencies_compiler_type=none
4060 if test "$am_compiler_list" = ""; then
4061 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4062 fi
4063 am__universal=false
4064 case " $depcc " in #(
4065 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4066 esac
4067
4068 for depmode in $am_compiler_list; do
4069 # Setup a source with many dependencies, because some compilers
4070 # like to wrap large dependency lists on column 80 (with \), and
4071 # we should not choose a depcomp mode which is confused by this.
4072 #
4073 # We need to recreate these files for each test, as the compiler may
4074 # overwrite some of them when testing with obscure command lines.
4075 # This happens at least with the AIX C compiler.
4076 : > sub/conftest.c
4077 for i in 1 2 3 4 5 6; do
4078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
mark@chromium.orge9165f42013-11-23 01:45:20 +00004079 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4080 # Solaris 10 /bin/sh.
4081 echo '/* dummy */' > sub/conftst$i.h
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004082 done
4083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4084
mark@chromium.orge9165f42013-11-23 01:45:20 +00004085 # We check with '-c' and '-o' for the sake of the "dashmstdout"
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004086 # mode. It turns out that the SunPro C++ compiler does not properly
mark@chromium.orge9165f42013-11-23 01:45:20 +00004087 # handle '-M -o', and we need to detect this. Also, some Intel
4088 # versions had trouble with output in subdirs.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004089 am__obj=sub/conftest.${OBJEXT-o}
4090 am__minus_obj="-o $am__obj"
4091 case $depmode in
4092 gcc)
4093 # This depmode causes a compiler race in universal mode.
4094 test "$am__universal" = false || continue
4095 ;;
4096 nosideeffect)
mark@chromium.orge9165f42013-11-23 01:45:20 +00004097 # After this tag, mechanisms are not by side-effect, so they'll
4098 # only be used when explicitly requested.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004099 if test "x$enable_dependency_tracking" = xyes; then
4100 continue
4101 else
4102 break
4103 fi
4104 ;;
digit@chromium.org5bce3b42013-09-25 13:47:44 +00004105 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
mark@chromium.orge9165f42013-11-23 01:45:20 +00004106 # This compiler won't grok '-c -o', but also, the minuso test has
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004107 # not run yet. These depmodes are late enough in the game, and
4108 # so weak that their functioning should not be impacted.
4109 am__obj=conftest.${OBJEXT-o}
4110 am__minus_obj=
4111 ;;
4112 none) break ;;
4113 esac
4114 if depmode=$depmode \
4115 source=sub/conftest.c object=$am__obj \
4116 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4117 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4118 >/dev/null 2>conftest.err &&
4119 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4120 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4121 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4122 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4123 # icc doesn't choke on unknown options, it will just issue warnings
4124 # or remarks (even with -Werror). So we grep stderr for any message
4125 # that says an option was ignored or not supported.
4126 # When given -MP, icc 7.0 and 7.1 complain thusly:
4127 # icc: Command line warning: ignoring option '-M'; no argument required
4128 # The diagnosis changed in icc 8.0:
4129 # icc: Command line remark: option '-MP' not supported
4130 if (grep 'ignoring option' conftest.err ||
4131 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4132 am_cv_CC_dependencies_compiler_type=$depmode
4133 break
4134 fi
4135 fi
4136 done
4137
4138 cd ..
4139 rm -rf conftest.dir
4140else
4141 am_cv_CC_dependencies_compiler_type=none
4142fi
4143
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4146$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4147CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4148
4149 if
4150 test "x$enable_dependency_tracking" != xno \
4151 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4152 am__fastdepCC_TRUE=
4153 am__fastdepCC_FALSE='#'
4154else
4155 am__fastdepCC_TRUE='#'
4156 am__fastdepCC_FALSE=
brynercb91a2f2006-08-25 21:14:45 +00004157fi
4158
4159
Mike Frysingerf217ae42015-11-11 13:43:14 -05004160
4161if test -n "$ac_tool_prefix"; then
4162 for ac_prog in ar lib "link -lib"
4163 do
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if ${ac_cv_prog_AR+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170else
4171 if test -n "$AR"; then
4172 ac_cv_prog_AR="$AR" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185done
4186 done
4187IFS=$as_save_IFS
4188
4189fi
4190fi
4191AR=$ac_cv_prog_AR
4192if test -n "$AR"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4194$as_echo "$AR" >&6; }
4195else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
4198fi
4199
4200
4201 test -n "$AR" && break
4202 done
4203fi
4204if test -z "$AR"; then
4205 ac_ct_AR=$AR
4206 for ac_prog in ar lib "link -lib"
4207do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209set dummy $ac_prog; ac_word=$2
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if ${ac_cv_prog_ac_ct_AR+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214else
4215 if test -n "$ac_ct_AR"; then
4216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225 ac_cv_prog_ac_ct_AR="$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229done
4230 done
4231IFS=$as_save_IFS
4232
4233fi
4234fi
4235ac_ct_AR=$ac_cv_prog_ac_ct_AR
4236if test -n "$ac_ct_AR"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4238$as_echo "$ac_ct_AR" >&6; }
4239else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
4242fi
4243
4244
4245 test -n "$ac_ct_AR" && break
4246done
4247
4248 if test "x$ac_ct_AR" = x; then
4249 AR="false"
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 AR=$ac_ct_AR
4258 fi
4259fi
4260
4261: ${AR=ar}
4262
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4264$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4265if ${am_cv_ar_interface+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267else
4268 ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274 am_cv_ar_interface=ar
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h. */
4277int some_variable = 0;
4278_ACEOF
4279if ac_fn_c_try_compile "$LINENO"; then :
4280 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4282 (eval $am_ar_try) 2>&5
4283 ac_status=$?
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }
4286 if test "$ac_status" -eq 0; then
4287 am_cv_ar_interface=ar
4288 else
4289 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4291 (eval $am_ar_try) 2>&5
4292 ac_status=$?
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; }
4295 if test "$ac_status" -eq 0; then
4296 am_cv_ar_interface=lib
4297 else
4298 am_cv_ar_interface=unknown
4299 fi
4300 fi
4301 rm -f conftest.lib libconftest.a
4302
4303fi
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_ext=c
4306ac_cpp='$CPP $CPPFLAGS'
4307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4313$as_echo "$am_cv_ar_interface" >&6; }
4314
4315case $am_cv_ar_interface in
4316ar)
4317 ;;
4318lib)
4319 # Microsoft lib, so override with the ar-lib wrapper script.
4320 # FIXME: It is wrong to rewrite AR.
4321 # But if we don't then we get into trouble of one sort or another.
4322 # A longer-term fix would be to have automake use am__AR in this case,
4323 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4324 # similar.
4325 AR="$am_aux_dir/ar-lib $AR"
4326 ;;
4327unknown)
4328 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4329 ;;
4330esac
4331
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004332# By default we simply use the C compiler to build assembly code.
4333
4334test "${CCAS+set}" = set || CCAS=$CC
4335test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4336
4337
4338
4339depcc="$CCAS" am_compiler_list=
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4342$as_echo_n "checking dependency style of $depcc... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004343if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004344 $as_echo_n "(cached) " >&6
4345else
4346 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4347 # We make a subdir and do the tests there. Otherwise we can end up
4348 # making bogus files that we don't know about and never remove. For
4349 # instance it was reported that on HP-UX the gcc test will end up
mark@chromium.orge9165f42013-11-23 01:45:20 +00004350 # making a dummy file named 'D' -- because '-MD' means "put the output
4351 # in D".
digit@chromium.org5bce3b42013-09-25 13:47:44 +00004352 rm -rf conftest.dir
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004353 mkdir conftest.dir
4354 # Copy depcomp to subdir because otherwise we won't find it if we're
4355 # using a relative directory.
4356 cp "$am_depcomp" conftest.dir
4357 cd conftest.dir
4358 # We will build objects and dependencies in a subdirectory because
4359 # it helps to detect inapplicable dependency modes. For instance
4360 # both Tru64's cc and ICC support -MD to output dependencies as a
4361 # side effect of compilation, but ICC will put the dependencies in
4362 # the current directory while Tru64 will put them in the object
4363 # directory.
4364 mkdir sub
4365
4366 am_cv_CCAS_dependencies_compiler_type=none
4367 if test "$am_compiler_list" = ""; then
4368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4369 fi
4370 am__universal=false
4371
4372
4373 for depmode in $am_compiler_list; do
4374 # Setup a source with many dependencies, because some compilers
4375 # like to wrap large dependency lists on column 80 (with \), and
4376 # we should not choose a depcomp mode which is confused by this.
4377 #
4378 # We need to recreate these files for each test, as the compiler may
4379 # overwrite some of them when testing with obscure command lines.
4380 # This happens at least with the AIX C compiler.
4381 : > sub/conftest.c
4382 for i in 1 2 3 4 5 6; do
4383 echo '#include "conftst'$i'.h"' >> sub/conftest.c
mark@chromium.orge9165f42013-11-23 01:45:20 +00004384 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4385 # Solaris 10 /bin/sh.
4386 echo '/* dummy */' > sub/conftst$i.h
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004387 done
4388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4389
mark@chromium.orge9165f42013-11-23 01:45:20 +00004390 # We check with '-c' and '-o' for the sake of the "dashmstdout"
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004391 # mode. It turns out that the SunPro C++ compiler does not properly
mark@chromium.orge9165f42013-11-23 01:45:20 +00004392 # handle '-M -o', and we need to detect this. Also, some Intel
4393 # versions had trouble with output in subdirs.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004394 am__obj=sub/conftest.${OBJEXT-o}
4395 am__minus_obj="-o $am__obj"
4396 case $depmode in
4397 gcc)
4398 # This depmode causes a compiler race in universal mode.
4399 test "$am__universal" = false || continue
4400 ;;
4401 nosideeffect)
mark@chromium.orge9165f42013-11-23 01:45:20 +00004402 # After this tag, mechanisms are not by side-effect, so they'll
4403 # only be used when explicitly requested.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004404 if test "x$enable_dependency_tracking" = xyes; then
4405 continue
4406 else
4407 break
4408 fi
4409 ;;
digit@chromium.org5bce3b42013-09-25 13:47:44 +00004410 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
mark@chromium.orge9165f42013-11-23 01:45:20 +00004411 # This compiler won't grok '-c -o', but also, the minuso test has
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004412 # not run yet. These depmodes are late enough in the game, and
4413 # so weak that their functioning should not be impacted.
4414 am__obj=conftest.${OBJEXT-o}
4415 am__minus_obj=
4416 ;;
4417 none) break ;;
4418 esac
4419 if depmode=$depmode \
4420 source=sub/conftest.c object=$am__obj \
4421 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4422 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4423 >/dev/null 2>conftest.err &&
4424 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4425 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4426 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4427 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4428 # icc doesn't choke on unknown options, it will just issue warnings
4429 # or remarks (even with -Werror). So we grep stderr for any message
4430 # that says an option was ignored or not supported.
4431 # When given -MP, icc 7.0 and 7.1 complain thusly:
4432 # icc: Command line warning: ignoring option '-M'; no argument required
4433 # The diagnosis changed in icc 8.0:
4434 # icc: Command line remark: option '-MP' not supported
4435 if (grep 'ignoring option' conftest.err ||
4436 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4437 am_cv_CCAS_dependencies_compiler_type=$depmode
4438 break
4439 fi
4440 fi
4441 done
4442
4443 cd ..
4444 rm -rf conftest.dir
4445else
4446 am_cv_CCAS_dependencies_compiler_type=none
4447fi
4448
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4451$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4452CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4453
4454 if
4455 test "x$enable_dependency_tracking" != xno \
4456 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4457 am__fastdepCCAS_TRUE=
4458 am__fastdepCCAS_FALSE='#'
4459else
4460 am__fastdepCCAS_TRUE='#'
4461 am__fastdepCCAS_FALSE=
4462fi
4463
4464
4465ac_ext=c
4466ac_cpp='$CPP $CPPFLAGS'
4467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470if test -n "$ac_tool_prefix"; then
4471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4472set dummy ${ac_tool_prefix}gcc; ac_word=$2
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004475if ${ac_cv_prog_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004476 $as_echo_n "(cached) " >&6
4477else
4478 if test -n "$CC"; then
4479 ac_cv_prog_CC="$CC" # Let the user override the test.
4480else
4481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482for as_dir in $PATH
4483do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492done
4493 done
4494IFS=$as_save_IFS
4495
4496fi
4497fi
4498CC=$ac_cv_prog_CC
4499if test -n "$CC"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4501$as_echo "$CC" >&6; }
4502else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
4505fi
4506
4507
4508fi
4509if test -z "$ac_cv_prog_CC"; then
4510 ac_ct_CC=$CC
4511 # Extract the first word of "gcc", so it can be a program name with args.
4512set dummy gcc; ac_word=$2
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004515if ${ac_cv_prog_ac_ct_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004516 $as_echo_n "(cached) " >&6
4517else
4518 if test -n "$ac_ct_CC"; then
4519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004528 ac_cv_prog_ac_ct_CC="gcc"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532done
4533 done
4534IFS=$as_save_IFS
4535
4536fi
4537fi
4538ac_ct_CC=$ac_cv_prog_ac_ct_CC
4539if test -n "$ac_ct_CC"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4541$as_echo "$ac_ct_CC" >&6; }
4542else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546
4547 if test "x$ac_ct_CC" = x; then
4548 CC=""
4549 else
4550 case $cross_compiling:$ac_tool_warned in
4551yes:)
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4554ac_tool_warned=yes ;;
4555esac
4556 CC=$ac_ct_CC
4557 fi
4558else
4559 CC="$ac_cv_prog_CC"
4560fi
4561
4562if test -z "$CC"; then
4563 if test -n "$ac_tool_prefix"; then
4564 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4565set dummy ${ac_tool_prefix}cc; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004568if ${ac_cv_prog_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004569 $as_echo_n "(cached) " >&6
4570else
4571 if test -n "$CC"; then
4572 ac_cv_prog_CC="$CC" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004581 ac_cv_prog_CC="${ac_tool_prefix}cc"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586 done
4587IFS=$as_save_IFS
4588
4589fi
4590fi
4591CC=$ac_cv_prog_CC
4592if test -n "$CC"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4594$as_echo "$CC" >&6; }
4595else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597$as_echo "no" >&6; }
4598fi
4599
4600
4601 fi
4602fi
4603if test -z "$CC"; then
4604 # Extract the first word of "cc", so it can be a program name with args.
4605set dummy cc; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004608if ${ac_cv_prog_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004609 $as_echo_n "(cached) " >&6
4610else
4611 if test -n "$CC"; then
4612 ac_cv_prog_CC="$CC" # Let the user override the test.
4613else
4614 ac_prog_rejected=no
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4623 ac_prog_rejected=yes
4624 continue
4625 fi
4626 ac_cv_prog_CC="cc"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630done
4631 done
4632IFS=$as_save_IFS
4633
4634if test $ac_prog_rejected = yes; then
4635 # We found a bogon in the path, so make sure we never use it.
4636 set dummy $ac_cv_prog_CC
4637 shift
4638 if test $# != 0; then
4639 # We chose a different compiler from the bogus one.
4640 # However, it has the same basename, so the bogon will be chosen
4641 # first if we set CC to just the basename; use the full file name.
4642 shift
4643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4644 fi
4645fi
4646fi
4647fi
4648CC=$ac_cv_prog_CC
4649if test -n "$CC"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4651$as_echo "$CC" >&6; }
4652else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654$as_echo "no" >&6; }
4655fi
4656
4657
4658fi
4659if test -z "$CC"; then
4660 if test -n "$ac_tool_prefix"; then
4661 for ac_prog in cl.exe
4662 do
4663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004667if ${ac_cv_prog_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004668 $as_echo_n "(cached) " >&6
4669else
4670 if test -n "$CC"; then
4671 ac_cv_prog_CC="$CC" # Let the user override the test.
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684done
4685 done
4686IFS=$as_save_IFS
4687
4688fi
4689fi
4690CC=$ac_cv_prog_CC
4691if test -n "$CC"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4693$as_echo "$CC" >&6; }
4694else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696$as_echo "no" >&6; }
4697fi
4698
4699
4700 test -n "$CC" && break
4701 done
4702fi
4703if test -z "$CC"; then
4704 ac_ct_CC=$CC
4705 for ac_prog in cl.exe
4706do
4707 # Extract the first word of "$ac_prog", so it can be a program name with args.
4708set dummy $ac_prog; ac_word=$2
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004711if ${ac_cv_prog_ac_ct_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004712 $as_echo_n "(cached) " >&6
4713else
4714 if test -n "$ac_ct_CC"; then
4715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4716else
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004724 ac_cv_prog_ac_ct_CC="$ac_prog"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
4729 done
4730IFS=$as_save_IFS
4731
4732fi
4733fi
4734ac_ct_CC=$ac_cv_prog_ac_ct_CC
4735if test -n "$ac_ct_CC"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4737$as_echo "$ac_ct_CC" >&6; }
4738else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740$as_echo "no" >&6; }
4741fi
4742
4743
4744 test -n "$ac_ct_CC" && break
4745done
4746
4747 if test "x$ac_ct_CC" = x; then
4748 CC=""
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751yes:)
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754ac_tool_warned=yes ;;
4755esac
4756 CC=$ac_ct_CC
4757 fi
4758fi
4759
4760fi
4761
4762
4763test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00004765as_fn_error $? "no acceptable C compiler found in \$PATH
4766See \`config.log' for more details" "$LINENO" 5; }
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004767
4768# Provide some information about the compiler.
4769$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4770set X $ac_compile
4771ac_compiler=$2
4772for ac_option in --version -v -V -qversion; do
4773 { { ac_try="$ac_compiler $ac_option >&5"
4774case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777esac
4778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779$as_echo "$ac_try_echo"; } >&5
4780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4781 ac_status=$?
4782 if test -s conftest.err; then
4783 sed '10a\
4784... rest of stderr output deleted ...
4785 10q' conftest.err >conftest.er1
4786 cat conftest.er1 >&5
4787 fi
4788 rm -f conftest.er1 conftest.err
4789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4790 test $ac_status = 0; }
4791done
4792
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4794$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004795if ${ac_cv_c_compiler_gnu+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004796 $as_echo_n "(cached) " >&6
4797else
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h. */
4800
4801int
4802main ()
4803{
4804#ifndef __GNUC__
4805 choke me
4806#endif
4807
4808 ;
4809 return 0;
4810}
4811_ACEOF
4812if ac_fn_c_try_compile "$LINENO"; then :
4813 ac_compiler_gnu=yes
4814else
4815 ac_compiler_gnu=no
4816fi
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818ac_cv_c_compiler_gnu=$ac_compiler_gnu
4819
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4822$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4823if test $ac_compiler_gnu = yes; then
4824 GCC=yes
4825else
4826 GCC=
4827fi
4828ac_test_CFLAGS=${CFLAGS+set}
4829ac_save_CFLAGS=$CFLAGS
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4831$as_echo_n "checking whether $CC accepts -g... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004832if ${ac_cv_prog_cc_g+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004833 $as_echo_n "(cached) " >&6
4834else
4835 ac_save_c_werror_flag=$ac_c_werror_flag
4836 ac_c_werror_flag=yes
4837 ac_cv_prog_cc_g=no
4838 CFLAGS="-g"
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840/* end confdefs.h. */
4841
4842int
4843main ()
4844{
4845
4846 ;
4847 return 0;
4848}
4849_ACEOF
4850if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_prog_cc_g=yes
4852else
4853 CFLAGS=""
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h. */
4856
4857int
4858main ()
4859{
4860
4861 ;
4862 return 0;
4863}
4864_ACEOF
4865if ac_fn_c_try_compile "$LINENO"; then :
4866
4867else
4868 ac_c_werror_flag=$ac_save_c_werror_flag
4869 CFLAGS="-g"
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871/* end confdefs.h. */
4872
4873int
4874main ()
4875{
4876
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881if ac_fn_c_try_compile "$LINENO"; then :
4882 ac_cv_prog_cc_g=yes
4883fi
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885fi
4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887fi
4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 ac_c_werror_flag=$ac_save_c_werror_flag
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4892$as_echo "$ac_cv_prog_cc_g" >&6; }
4893if test "$ac_test_CFLAGS" = set; then
4894 CFLAGS=$ac_save_CFLAGS
4895elif test $ac_cv_prog_cc_g = yes; then
4896 if test "$GCC" = yes; then
4897 CFLAGS="-g -O2"
4898 else
4899 CFLAGS="-g"
4900 fi
4901else
4902 if test "$GCC" = yes; then
4903 CFLAGS="-O2"
4904 else
4905 CFLAGS=
4906 fi
4907fi
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4909$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004910if ${ac_cv_prog_cc_c89+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004911 $as_echo_n "(cached) " >&6
4912else
4913 ac_cv_prog_cc_c89=no
4914ac_save_CC=$CC
4915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h. */
4917#include <stdarg.h>
4918#include <stdio.h>
mark@chromium.orge9165f42013-11-23 01:45:20 +00004919struct stat;
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004920/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4921struct buf { int x; };
4922FILE * (*rcsopen) (struct buf *, struct stat *, int);
4923static char *e (p, i)
4924 char **p;
4925 int i;
4926{
4927 return p[i];
4928}
4929static char *f (char * (*g) (char **, int), char **p, ...)
4930{
4931 char *s;
4932 va_list v;
4933 va_start (v,p);
4934 s = g (p, va_arg (v,int));
4935 va_end (v);
4936 return s;
4937}
4938
4939/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4940 function prototypes and stuff, but not '\xHH' hex character constants.
4941 These don't provoke an error unfortunately, instead are silently treated
4942 as 'x'. The following induces an error, until -std is added to get
4943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4944 array size at least. It's necessary to write '\x00'==0 to get something
4945 that's true only with -std. */
4946int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4947
4948/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4949 inside strings and character constants. */
4950#define FOO(x) 'x'
4951int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4952
4953int test (int i, double x);
4954struct s1 {int (*f) (int a);};
4955struct s2 {int (*f) (double a);};
4956int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4957int argc;
4958char **argv;
4959int
4960main ()
4961{
4962return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4963 ;
4964 return 0;
4965}
4966_ACEOF
4967for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4969do
4970 CC="$ac_save_CC $ac_arg"
4971 if ac_fn_c_try_compile "$LINENO"; then :
4972 ac_cv_prog_cc_c89=$ac_arg
4973fi
4974rm -f core conftest.err conftest.$ac_objext
4975 test "x$ac_cv_prog_cc_c89" != "xno" && break
4976done
4977rm -f conftest.$ac_ext
4978CC=$ac_save_CC
4979
4980fi
4981# AC_CACHE_VAL
4982case "x$ac_cv_prog_cc_c89" in
4983 x)
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4985$as_echo "none needed" >&6; } ;;
4986 xno)
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4988$as_echo "unsupported" >&6; } ;;
4989 *)
4990 CC="$CC $ac_cv_prog_cc_c89"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4992$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4993esac
4994if test "x$ac_cv_prog_cc_c89" != xno; then :
4995
4996fi
4997
4998ac_ext=c
4999ac_cpp='$CPP $CPPFLAGS'
5000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00005003
mark@chromium.orge9165f42013-11-23 01:45:20 +00005004ac_ext=c
5005ac_cpp='$CPP $CPPFLAGS'
5006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5010$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5011if ${am_cv_prog_cc_c_o+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013else
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015/* end confdefs.h. */
5016
5017int
5018main ()
5019{
5020
5021 ;
5022 return 0;
5023}
5024_ACEOF
5025 # Make sure it works both with $CC and with simple cc.
5026 # Following AC_PROG_CC_C_O, we do the test twice because some
5027 # compilers refuse to overwrite an existing .o file with -o,
5028 # though they will create one.
5029 am_cv_prog_cc_c_o=yes
5030 for am_i in 1 2; do
5031 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5032 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } \
5036 && test -f conftest2.$ac_objext; then
5037 : OK
5038 else
5039 am_cv_prog_cc_c_o=no
5040 break
5041 fi
5042 done
5043 rm -f core conftest*
5044 unset am_i
5045fi
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5047$as_echo "$am_cv_prog_cc_c_o" >&6; }
5048if test "$am_cv_prog_cc_c_o" != yes; then
5049 # Losing compiler, so override with the script.
5050 # FIXME: It is wrong to rewrite CC.
5051 # But if we don't then we get into trouble of one sort or another.
5052 # A longer-term fix would be to have automake use am__CC in this case,
5053 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5054 CC="$am_aux_dir/compile $CC"
5055fi
5056ac_ext=c
5057ac_cpp='$CPP $CPPFLAGS'
5058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061
5062
brynercb91a2f2006-08-25 21:14:45 +00005063depcc="$CC" am_compiler_list=
5064
jimblandy92b1f832009-12-23 22:23:49 +00005065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5066$as_echo_n "checking dependency style of $depcc... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005067if ${am_cv_CC_dependencies_compiler_type+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005068 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005069else
5070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5071 # We make a subdir and do the tests there. Otherwise we can end up
5072 # making bogus files that we don't know about and never remove. For
5073 # instance it was reported that on HP-UX the gcc test will end up
mark@chromium.orge9165f42013-11-23 01:45:20 +00005074 # making a dummy file named 'D' -- because '-MD' means "put the output
5075 # in D".
digit@chromium.org5bce3b42013-09-25 13:47:44 +00005076 rm -rf conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00005077 mkdir conftest.dir
5078 # Copy depcomp to subdir because otherwise we won't find it if we're
5079 # using a relative directory.
5080 cp "$am_depcomp" conftest.dir
5081 cd conftest.dir
5082 # We will build objects and dependencies in a subdirectory because
5083 # it helps to detect inapplicable dependency modes. For instance
5084 # both Tru64's cc and ICC support -MD to output dependencies as a
5085 # side effect of compilation, but ICC will put the dependencies in
5086 # the current directory while Tru64 will put them in the object
5087 # directory.
5088 mkdir sub
5089
5090 am_cv_CC_dependencies_compiler_type=none
5091 if test "$am_compiler_list" = ""; then
5092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5093 fi
jimblandy92b1f832009-12-23 22:23:49 +00005094 am__universal=false
5095 case " $depcc " in #(
5096 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5097 esac
5098
brynercb91a2f2006-08-25 21:14:45 +00005099 for depmode in $am_compiler_list; do
5100 # Setup a source with many dependencies, because some compilers
5101 # like to wrap large dependency lists on column 80 (with \), and
5102 # we should not choose a depcomp mode which is confused by this.
5103 #
5104 # We need to recreate these files for each test, as the compiler may
5105 # overwrite some of them when testing with obscure command lines.
5106 # This happens at least with the AIX C compiler.
5107 : > sub/conftest.c
5108 for i in 1 2 3 4 5 6; do
5109 echo '#include "conftst'$i'.h"' >> sub/conftest.c
mark@chromium.orge9165f42013-11-23 01:45:20 +00005110 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5111 # Solaris 10 /bin/sh.
5112 echo '/* dummy */' > sub/conftst$i.h
brynercb91a2f2006-08-25 21:14:45 +00005113 done
5114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5115
mark@chromium.orge9165f42013-11-23 01:45:20 +00005116 # We check with '-c' and '-o' for the sake of the "dashmstdout"
jimblandy92b1f832009-12-23 22:23:49 +00005117 # mode. It turns out that the SunPro C++ compiler does not properly
mark@chromium.orge9165f42013-11-23 01:45:20 +00005118 # handle '-M -o', and we need to detect this. Also, some Intel
5119 # versions had trouble with output in subdirs.
jimblandy92b1f832009-12-23 22:23:49 +00005120 am__obj=sub/conftest.${OBJEXT-o}
5121 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00005122 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00005123 gcc)
5124 # This depmode causes a compiler race in universal mode.
5125 test "$am__universal" = false || continue
5126 ;;
brynercb91a2f2006-08-25 21:14:45 +00005127 nosideeffect)
mark@chromium.orge9165f42013-11-23 01:45:20 +00005128 # After this tag, mechanisms are not by side-effect, so they'll
5129 # only be used when explicitly requested.
brynercb91a2f2006-08-25 21:14:45 +00005130 if test "x$enable_dependency_tracking" = xyes; then
5131 continue
5132 else
5133 break
5134 fi
5135 ;;
digit@chromium.org5bce3b42013-09-25 13:47:44 +00005136 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
mark@chromium.orge9165f42013-11-23 01:45:20 +00005137 # This compiler won't grok '-c -o', but also, the minuso test has
jimblandy92b1f832009-12-23 22:23:49 +00005138 # not run yet. These depmodes are late enough in the game, and
5139 # so weak that their functioning should not be impacted.
5140 am__obj=conftest.${OBJEXT-o}
5141 am__minus_obj=
5142 ;;
brynercb91a2f2006-08-25 21:14:45 +00005143 none) break ;;
5144 esac
brynercb91a2f2006-08-25 21:14:45 +00005145 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00005146 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00005147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00005148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00005149 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00005150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00005152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5154 # icc doesn't choke on unknown options, it will just issue warnings
5155 # or remarks (even with -Werror). So we grep stderr for any message
5156 # that says an option was ignored or not supported.
5157 # When given -MP, icc 7.0 and 7.1 complain thusly:
5158 # icc: Command line warning: ignoring option '-M'; no argument required
5159 # The diagnosis changed in icc 8.0:
5160 # icc: Command line remark: option '-MP' not supported
5161 if (grep 'ignoring option' conftest.err ||
5162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5163 am_cv_CC_dependencies_compiler_type=$depmode
5164 break
5165 fi
5166 fi
5167 done
5168
5169 cd ..
5170 rm -rf conftest.dir
5171else
5172 am_cv_CC_dependencies_compiler_type=none
5173fi
5174
5175fi
jimblandy92b1f832009-12-23 22:23:49 +00005176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5177$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5179
mmentovaiaf3c43f2007-05-17 18:34:37 +00005180 if
brynercb91a2f2006-08-25 21:14:45 +00005181 test "x$enable_dependency_tracking" != xno \
5182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5183 am__fastdepCC_TRUE=
5184 am__fastdepCC_FALSE='#'
5185else
5186 am__fastdepCC_TRUE='#'
5187 am__fastdepCC_FALSE=
5188fi
5189
5190
ted.mielczarekd192a712010-10-05 19:38:51 +00005191
brynercb91a2f2006-08-25 21:14:45 +00005192ac_ext=c
5193ac_cpp='$CPP $CPPFLAGS'
5194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00005197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5198$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005199# On Suns, sometimes $CPP names a directory.
5200if test -n "$CPP" && test -d "$CPP"; then
5201 CPP=
5202fi
5203if test -z "$CPP"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00005204 if ${ac_cv_prog_CPP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005205 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005206else
5207 # Double quotes because CPP needs to be expanded
5208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5209 do
5210 ac_preproc_ok=false
5211for ac_c_preproc_warn_flag in '' yes
5212do
5213 # Use a header file that comes with gcc, so configuring glibc
5214 # with a fresh cross-compiler works.
5215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5216 # <limits.h> exists even on freestanding compilers.
5217 # On the NeXT, cc -E runs the code through the compiler's parser,
5218 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00005219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005220/* end confdefs.h. */
5221#ifdef __STDC__
5222# include <limits.h>
5223#else
5224# include <assert.h>
5225#endif
5226 Syntax error
5227_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005228if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005229
jimblandy92b1f832009-12-23 22:23:49 +00005230else
brynercb91a2f2006-08-25 21:14:45 +00005231 # Broken: fails on valid input.
5232continue
5233fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00005234rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005235
mmentovai8c2a4de2006-09-20 16:20:15 +00005236 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005237 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00005238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005239/* end confdefs.h. */
5240#include <ac_nonexistent.h>
5241_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005242if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005243 # Broken: success on invalid input.
5244continue
5245else
brynercb91a2f2006-08-25 21:14:45 +00005246 # Passes both tests.
5247ac_preproc_ok=:
5248break
5249fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00005250rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005251
5252done
5253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
mark@chromium.orge9165f42013-11-23 01:45:20 +00005254rm -f conftest.i conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00005255if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00005256 break
5257fi
5258
5259 done
5260 ac_cv_prog_CPP=$CPP
5261
5262fi
5263 CPP=$ac_cv_prog_CPP
5264else
5265 ac_cv_prog_CPP=$CPP
5266fi
jimblandy92b1f832009-12-23 22:23:49 +00005267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5268$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005269ac_preproc_ok=false
5270for ac_c_preproc_warn_flag in '' yes
5271do
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00005278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005279/* end confdefs.h. */
5280#ifdef __STDC__
5281# include <limits.h>
5282#else
5283# include <assert.h>
5284#endif
5285 Syntax error
5286_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005287if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005288
jimblandy92b1f832009-12-23 22:23:49 +00005289else
brynercb91a2f2006-08-25 21:14:45 +00005290 # Broken: fails on valid input.
5291continue
5292fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00005293rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005294
mmentovai8c2a4de2006-09-20 16:20:15 +00005295 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005296 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00005297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005298/* end confdefs.h. */
5299#include <ac_nonexistent.h>
5300_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005301if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005302 # Broken: success on invalid input.
5303continue
5304else
brynercb91a2f2006-08-25 21:14:45 +00005305 # Passes both tests.
5306ac_preproc_ok=:
5307break
5308fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00005309rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005310
5311done
5312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
mark@chromium.orge9165f42013-11-23 01:45:20 +00005313rm -f conftest.i conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00005314if $ac_preproc_ok; then :
5315
brynercb91a2f2006-08-25 21:14:45 +00005316else
jimblandy92b1f832009-12-23 22:23:49 +00005317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00005319as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5320See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00005321fi
5322
5323ac_ext=c
5324ac_cpp='$CPP $CPPFLAGS'
5325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328
mmentovai8c2a4de2006-09-20 16:20:15 +00005329ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005330ac_cpp='$CXXCPP $CPPFLAGS'
5331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00005334if test -z "$CXX"; then
5335 if test -n "$CCC"; then
5336 CXX=$CCC
5337 else
5338 if test -n "$ac_tool_prefix"; then
5339 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 +00005340 do
5341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00005343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005345if ${ac_cv_prog_CXX+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005346 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005347else
5348 if test -n "$CXX"; then
5349 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5350else
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005356 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00005357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00005358 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00005359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00005360 break 2
5361 fi
5362done
jimblandy92b1f832009-12-23 22:23:49 +00005363 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005364IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005365
5366fi
5367fi
5368CXX=$ac_cv_prog_CXX
5369if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00005370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5371$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005372else
jimblandy92b1f832009-12-23 22:23:49 +00005373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005375fi
5376
mmentovai8c2a4de2006-09-20 16:20:15 +00005377
brynercb91a2f2006-08-25 21:14:45 +00005378 test -n "$CXX" && break
5379 done
5380fi
5381if test -z "$CXX"; then
5382 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00005383 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 +00005384do
5385 # Extract the first word of "$ac_prog", so it can be a program name with args.
5386set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00005387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005389if ${ac_cv_prog_ac_ct_CXX+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005390 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005391else
5392 if test -n "$ac_ct_CXX"; then
5393 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005400 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00005401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00005402 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00005403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00005404 break 2
5405 fi
5406done
jimblandy92b1f832009-12-23 22:23:49 +00005407 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005408IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005409
5410fi
5411fi
5412ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5413if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00005414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5415$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005416else
jimblandy92b1f832009-12-23 22:23:49 +00005417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005419fi
5420
mmentovai8c2a4de2006-09-20 16:20:15 +00005421
brynercb91a2f2006-08-25 21:14:45 +00005422 test -n "$ac_ct_CXX" && break
5423done
brynercb91a2f2006-08-25 21:14:45 +00005424
mmentovai8c2a4de2006-09-20 16:20:15 +00005425 if test "x$ac_ct_CXX" = x; then
5426 CXX="g++"
5427 else
5428 case $cross_compiling:$ac_tool_warned in
5429yes:)
jimblandy92b1f832009-12-23 22:23:49 +00005430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00005432ac_tool_warned=yes ;;
5433esac
5434 CXX=$ac_ct_CXX
5435 fi
brynercb91a2f2006-08-25 21:14:45 +00005436fi
5437
mmentovai8c2a4de2006-09-20 16:20:15 +00005438 fi
5439fi
brynercb91a2f2006-08-25 21:14:45 +00005440# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00005441$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5442set X $ac_compile
5443ac_compiler=$2
5444for ac_option in --version -v -V -qversion; do
5445 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00005446case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449esac
jimblandy92b1f832009-12-23 22:23:49 +00005450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5451$as_echo "$ac_try_echo"; } >&5
5452 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00005453 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00005454 if test -s conftest.err; then
5455 sed '10a\
5456... rest of stderr output deleted ...
5457 10q' conftest.err >conftest.er1
5458 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00005459 fi
jimblandydc4029a2010-02-02 17:39:51 +00005460 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00005461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; }
5463done
brynercb91a2f2006-08-25 21:14:45 +00005464
jimblandy92b1f832009-12-23 22:23:49 +00005465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5466$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005467if ${ac_cv_cxx_compiler_gnu+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005468 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005469else
jimblandy92b1f832009-12-23 22:23:49 +00005470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005471/* end confdefs.h. */
5472
5473int
5474main ()
5475{
5476#ifndef __GNUC__
5477 choke me
5478#endif
5479
5480 ;
5481 return 0;
5482}
5483_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005484if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005485 ac_compiler_gnu=yes
5486else
jimblandy92b1f832009-12-23 22:23:49 +00005487 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00005488fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005490ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5491
5492fi
jimblandy92b1f832009-12-23 22:23:49 +00005493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5494$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5495if test $ac_compiler_gnu = yes; then
5496 GXX=yes
5497else
5498 GXX=
5499fi
brynercb91a2f2006-08-25 21:14:45 +00005500ac_test_CXXFLAGS=${CXXFLAGS+set}
5501ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00005502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5503$as_echo_n "checking whether $CXX accepts -g... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005504if ${ac_cv_prog_cxx_g+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005505 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005506else
mmentovai8c2a4de2006-09-20 16:20:15 +00005507 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5508 ac_cxx_werror_flag=yes
5509 ac_cv_prog_cxx_g=no
5510 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00005511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005512/* end confdefs.h. */
5513
5514int
5515main ()
5516{
5517
5518 ;
5519 return 0;
5520}
5521_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005522if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005523 ac_cv_prog_cxx_g=yes
5524else
jimblandy92b1f832009-12-23 22:23:49 +00005525 CXXFLAGS=""
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005527/* end confdefs.h. */
5528
5529int
5530main ()
5531{
5532
5533 ;
5534 return 0;
5535}
5536_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005537if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00005538
jimblandy92b1f832009-12-23 22:23:49 +00005539else
5540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00005541 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00005542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005543/* end confdefs.h. */
5544
5545int
5546main ()
5547{
5548
5549 ;
5550 return 0;
5551}
5552_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005553if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00005554 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00005555fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005557fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5562fi
jimblandy92b1f832009-12-23 22:23:49 +00005563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5564$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005565if test "$ac_test_CXXFLAGS" = set; then
5566 CXXFLAGS=$ac_save_CXXFLAGS
5567elif test $ac_cv_prog_cxx_g = yes; then
5568 if test "$GXX" = yes; then
5569 CXXFLAGS="-g -O2"
5570 else
5571 CXXFLAGS="-g"
5572 fi
5573else
5574 if test "$GXX" = yes; then
5575 CXXFLAGS="-O2"
5576 else
5577 CXXFLAGS=
5578 fi
5579fi
brynercb91a2f2006-08-25 21:14:45 +00005580ac_ext=c
5581ac_cpp='$CPP $CPPFLAGS'
5582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5584ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585
5586depcc="$CXX" am_compiler_list=
5587
jimblandy92b1f832009-12-23 22:23:49 +00005588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5589$as_echo_n "checking dependency style of $depcc... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005590if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005591 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005592else
5593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5594 # We make a subdir and do the tests there. Otherwise we can end up
5595 # making bogus files that we don't know about and never remove. For
5596 # instance it was reported that on HP-UX the gcc test will end up
mark@chromium.orge9165f42013-11-23 01:45:20 +00005597 # making a dummy file named 'D' -- because '-MD' means "put the output
5598 # in D".
digit@chromium.org5bce3b42013-09-25 13:47:44 +00005599 rm -rf conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00005600 mkdir conftest.dir
5601 # Copy depcomp to subdir because otherwise we won't find it if we're
5602 # using a relative directory.
5603 cp "$am_depcomp" conftest.dir
5604 cd conftest.dir
5605 # We will build objects and dependencies in a subdirectory because
5606 # it helps to detect inapplicable dependency modes. For instance
5607 # both Tru64's cc and ICC support -MD to output dependencies as a
5608 # side effect of compilation, but ICC will put the dependencies in
5609 # the current directory while Tru64 will put them in the object
5610 # directory.
5611 mkdir sub
5612
5613 am_cv_CXX_dependencies_compiler_type=none
5614 if test "$am_compiler_list" = ""; then
5615 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5616 fi
jimblandy92b1f832009-12-23 22:23:49 +00005617 am__universal=false
5618 case " $depcc " in #(
5619 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5620 esac
5621
brynercb91a2f2006-08-25 21:14:45 +00005622 for depmode in $am_compiler_list; do
5623 # Setup a source with many dependencies, because some compilers
5624 # like to wrap large dependency lists on column 80 (with \), and
5625 # we should not choose a depcomp mode which is confused by this.
5626 #
5627 # We need to recreate these files for each test, as the compiler may
5628 # overwrite some of them when testing with obscure command lines.
5629 # This happens at least with the AIX C compiler.
5630 : > sub/conftest.c
5631 for i in 1 2 3 4 5 6; do
5632 echo '#include "conftst'$i'.h"' >> sub/conftest.c
mark@chromium.orge9165f42013-11-23 01:45:20 +00005633 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5634 # Solaris 10 /bin/sh.
5635 echo '/* dummy */' > sub/conftst$i.h
brynercb91a2f2006-08-25 21:14:45 +00005636 done
5637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5638
mark@chromium.orge9165f42013-11-23 01:45:20 +00005639 # We check with '-c' and '-o' for the sake of the "dashmstdout"
jimblandy92b1f832009-12-23 22:23:49 +00005640 # mode. It turns out that the SunPro C++ compiler does not properly
mark@chromium.orge9165f42013-11-23 01:45:20 +00005641 # handle '-M -o', and we need to detect this. Also, some Intel
5642 # versions had trouble with output in subdirs.
jimblandy92b1f832009-12-23 22:23:49 +00005643 am__obj=sub/conftest.${OBJEXT-o}
5644 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00005645 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00005646 gcc)
5647 # This depmode causes a compiler race in universal mode.
5648 test "$am__universal" = false || continue
5649 ;;
brynercb91a2f2006-08-25 21:14:45 +00005650 nosideeffect)
mark@chromium.orge9165f42013-11-23 01:45:20 +00005651 # After this tag, mechanisms are not by side-effect, so they'll
5652 # only be used when explicitly requested.
brynercb91a2f2006-08-25 21:14:45 +00005653 if test "x$enable_dependency_tracking" = xyes; then
5654 continue
5655 else
5656 break
5657 fi
5658 ;;
digit@chromium.org5bce3b42013-09-25 13:47:44 +00005659 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
mark@chromium.orge9165f42013-11-23 01:45:20 +00005660 # This compiler won't grok '-c -o', but also, the minuso test has
jimblandy92b1f832009-12-23 22:23:49 +00005661 # not run yet. These depmodes are late enough in the game, and
5662 # so weak that their functioning should not be impacted.
5663 am__obj=conftest.${OBJEXT-o}
5664 am__minus_obj=
5665 ;;
brynercb91a2f2006-08-25 21:14:45 +00005666 none) break ;;
5667 esac
brynercb91a2f2006-08-25 21:14:45 +00005668 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00005669 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00005670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00005671 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00005672 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00005673 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00005675 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5677 # icc doesn't choke on unknown options, it will just issue warnings
5678 # or remarks (even with -Werror). So we grep stderr for any message
5679 # that says an option was ignored or not supported.
5680 # When given -MP, icc 7.0 and 7.1 complain thusly:
5681 # icc: Command line warning: ignoring option '-M'; no argument required
5682 # The diagnosis changed in icc 8.0:
5683 # icc: Command line remark: option '-MP' not supported
5684 if (grep 'ignoring option' conftest.err ||
5685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5686 am_cv_CXX_dependencies_compiler_type=$depmode
5687 break
5688 fi
5689 fi
5690 done
5691
5692 cd ..
5693 rm -rf conftest.dir
5694else
5695 am_cv_CXX_dependencies_compiler_type=none
5696fi
5697
5698fi
jimblandy92b1f832009-12-23 22:23:49 +00005699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5700$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005701CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5702
mmentovaiaf3c43f2007-05-17 18:34:37 +00005703 if
brynercb91a2f2006-08-25 21:14:45 +00005704 test "x$enable_dependency_tracking" != xno \
5705 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5706 am__fastdepCXX_TRUE=
5707 am__fastdepCXX_FALSE='#'
5708else
5709 am__fastdepCXX_TRUE='#'
5710 am__fastdepCXX_FALSE=
5711fi
5712
5713
ted.mielczarekd192a712010-10-05 19:38:51 +00005714if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5716set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005719if ${ac_cv_prog_RANLIB+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005720 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005721else
ted.mielczarekd192a712010-10-05 19:38:51 +00005722 if test -n "$RANLIB"; then
5723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00005726for as_dir in $PATH
5727do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
brynercb91a2f2006-08-25 21:14:45 +00005730 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00005731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ted.mielczarekd192a712010-10-05 19:38:51 +00005732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736done
brynercb91a2f2006-08-25 21:14:45 +00005737 done
jimblandy92b1f832009-12-23 22:23:49 +00005738IFS=$as_save_IFS
ted.mielczarekd192a712010-10-05 19:38:51 +00005739
5740fi
5741fi
5742RANLIB=$ac_cv_prog_RANLIB
5743if test -n "$RANLIB"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5745$as_echo "$RANLIB" >&6; }
5746else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749fi
5750
5751
5752fi
5753if test -z "$ac_cv_prog_RANLIB"; then
5754 ac_ct_RANLIB=$RANLIB
5755 # Extract the first word of "ranlib", so it can be a program name with args.
5756set dummy ranlib; ac_word=$2
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005759if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
ted.mielczarekd192a712010-10-05 19:38:51 +00005760 $as_echo_n "(cached) " >&6
5761else
5762 if test -n "$ac_ct_RANLIB"; then
5763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00005771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ted.mielczarekd192a712010-10-05 19:38:51 +00005772 ac_cv_prog_ac_ct_RANLIB="ranlib"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776done
5777 done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5783if test -n "$ac_ct_RANLIB"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5785$as_echo "$ac_ct_RANLIB" >&6; }
5786else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791 if test "x$ac_ct_RANLIB" = x; then
5792 RANLIB=":"
5793 else
5794 case $cross_compiling:$ac_tool_warned in
5795yes:)
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798ac_tool_warned=yes ;;
5799esac
5800 RANLIB=$ac_ct_RANLIB
jimblandy92b1f832009-12-23 22:23:49 +00005801 fi
5802else
ted.mielczarekd192a712010-10-05 19:38:51 +00005803 RANLIB="$ac_cv_prog_RANLIB"
brynercb91a2f2006-08-25 21:14:45 +00005804fi
5805
jimblandy92b1f832009-12-23 22:23:49 +00005806
vapier@chromium.org302124a2013-12-10 06:28:08 +00005807# Check whether --enable-m32 was given.
5808if test "${enable_m32+set}" = set; then :
5809 enableval=$enable_m32; case "${enableval}" in
5810 yes)
5811 CFLAGS="${CFLAGS} -m32"
5812 CXXFLAGS="${CXXFLAGS} -m32"
5813 usem32=true
5814 ;;
5815 no)
5816 usem32=false
5817 ;;
5818 *)
5819 as_fn_error $? "bad value ${enableval} for --enable-m32" "$LINENO" 5
5820 ;;
5821 esac
5822else
5823 usem32=false
5824fi
5825
5826
jimblandy92b1f832009-12-23 22:23:49 +00005827
jimblandy92b1f832009-12-23 22:23:49 +00005828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5829$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005830if ${ac_cv_path_GREP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005831 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005832else
jimblandy92b1f832009-12-23 22:23:49 +00005833 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005834 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00005835 # Loop through the user's path and test for each of PROGNAME-LIST
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00005837for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005841 for ac_prog in grep ggrep; do
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
mark@chromium.orge9165f42013-11-23 01:45:20 +00005844 as_fn_executable_p "$ac_path_GREP" || continue
jimblandy92b1f832009-12-23 22:23:49 +00005845# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00005846 # Check for GNU $ac_path_GREP
5847case `"$ac_path_GREP" --version 2>&1` in
5848*GNU*)
5849 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5850*)
5851 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00005852 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00005853 while :
5854 do
5855 cat "conftest.in" "conftest.in" >"conftest.tmp"
5856 mv "conftest.tmp" "conftest.in"
5857 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00005858 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00005859 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00005861 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00005862 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5863 # Best one so far, save it but keep looking for a better one
5864 ac_cv_path_GREP="$ac_path_GREP"
5865 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00005866 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005867 # 10*(2^10) chars as input seems more than enough
5868 test $ac_count -gt 10 && break
5869 done
5870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5871esac
5872
jimblandy92b1f832009-12-23 22:23:49 +00005873 $ac_path_GREP_found && break 3
5874 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005875 done
jimblandy92b1f832009-12-23 22:23:49 +00005876 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005877IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00005878 if test -z "$ac_cv_path_GREP"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00005879 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00005880 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005881else
5882 ac_cv_path_GREP=$GREP
5883fi
5884
mmentovai8c2a4de2006-09-20 16:20:15 +00005885fi
jimblandy92b1f832009-12-23 22:23:49 +00005886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5887$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00005888 GREP="$ac_cv_path_GREP"
5889
5890
jimblandy92b1f832009-12-23 22:23:49 +00005891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5892$as_echo_n "checking for egrep... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005893if ${ac_cv_path_EGREP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005894 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00005895else
5896 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5897 then ac_cv_path_EGREP="$GREP -E"
5898 else
jimblandy92b1f832009-12-23 22:23:49 +00005899 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005900 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00005901 # Loop through the user's path and test for each of PROGNAME-LIST
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00005903for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5904do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005907 for ac_prog in egrep; do
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
mark@chromium.orge9165f42013-11-23 01:45:20 +00005910 as_fn_executable_p "$ac_path_EGREP" || continue
jimblandy92b1f832009-12-23 22:23:49 +00005911# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00005912 # Check for GNU $ac_path_EGREP
5913case `"$ac_path_EGREP" --version 2>&1` in
5914*GNU*)
5915 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5916*)
5917 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00005918 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00005919 while :
5920 do
5921 cat "conftest.in" "conftest.in" >"conftest.tmp"
5922 mv "conftest.tmp" "conftest.in"
5923 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00005924 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00005925 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00005927 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00005928 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5929 # Best one so far, save it but keep looking for a better one
5930 ac_cv_path_EGREP="$ac_path_EGREP"
5931 ac_path_EGREP_max=$ac_count
5932 fi
5933 # 10*(2^10) chars as input seems more than enough
5934 test $ac_count -gt 10 && break
5935 done
5936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5937esac
5938
jimblandy92b1f832009-12-23 22:23:49 +00005939 $ac_path_EGREP_found && break 3
5940 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005941 done
jimblandy92b1f832009-12-23 22:23:49 +00005942 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005943IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00005944 if test -z "$ac_cv_path_EGREP"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00005945 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00005946 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005947else
5948 ac_cv_path_EGREP=$EGREP
5949fi
5950
jimblandy92b1f832009-12-23 22:23:49 +00005951 fi
5952fi
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5954$as_echo "$ac_cv_path_EGREP" >&6; }
5955 EGREP="$ac_cv_path_EGREP"
5956
5957
jimblandy92b1f832009-12-23 22:23:49 +00005958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5959$as_echo_n "checking for ANSI C header files... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005960if ${ac_cv_header_stdc+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005961 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005962else
jimblandy92b1f832009-12-23 22:23:49 +00005963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005964/* end confdefs.h. */
5965#include <stdlib.h>
5966#include <stdarg.h>
5967#include <string.h>
5968#include <float.h>
5969
5970int
5971main ()
5972{
5973
5974 ;
5975 return 0;
5976}
5977_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005978if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005979 ac_cv_header_stdc=yes
5980else
jimblandy92b1f832009-12-23 22:23:49 +00005981 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005982fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005984
5985if test $ac_cv_header_stdc = yes; then
5986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00005987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005988/* end confdefs.h. */
5989#include <string.h>
5990
5991_ACEOF
5992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00005993 $EGREP "memchr" >/dev/null 2>&1; then :
5994
brynercb91a2f2006-08-25 21:14:45 +00005995else
5996 ac_cv_header_stdc=no
5997fi
5998rm -f conftest*
5999
6000fi
6001
6002if test $ac_cv_header_stdc = yes; then
6003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00006004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006005/* end confdefs.h. */
6006#include <stdlib.h>
6007
6008_ACEOF
6009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00006010 $EGREP "free" >/dev/null 2>&1; then :
6011
brynercb91a2f2006-08-25 21:14:45 +00006012else
6013 ac_cv_header_stdc=no
6014fi
6015rm -f conftest*
6016
6017fi
6018
6019if test $ac_cv_header_stdc = yes; then
6020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +00006021 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +00006022 :
6023else
jimblandy92b1f832009-12-23 22:23:49 +00006024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006025/* end confdefs.h. */
6026#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00006027#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00006028#if ((' ' & 0x0FF) == 0x020)
6029# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6030# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6031#else
6032# define ISLOWER(c) \
6033 (('a' <= (c) && (c) <= 'i') \
6034 || ('j' <= (c) && (c) <= 'r') \
6035 || ('s' <= (c) && (c) <= 'z'))
6036# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6037#endif
6038
6039#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6040int
6041main ()
6042{
6043 int i;
6044 for (i = 0; i < 256; i++)
6045 if (XOR (islower (i), ISLOWER (i))
6046 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00006047 return 2;
6048 return 0;
brynercb91a2f2006-08-25 21:14:45 +00006049}
6050_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006051if ac_fn_c_try_run "$LINENO"; then :
6052
brynercb91a2f2006-08-25 21:14:45 +00006053else
jimblandy92b1f832009-12-23 22:23:49 +00006054 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00006055fi
jimblandy92b1f832009-12-23 22:23:49 +00006056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6057 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00006058fi
6059
brynercb91a2f2006-08-25 21:14:45 +00006060fi
6061fi
jimblandy92b1f832009-12-23 22:23:49 +00006062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6063$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006064if test $ac_cv_header_stdc = yes; then
6065
jimblandy92b1f832009-12-23 22:23:49 +00006066$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00006067
6068fi
6069
vapier@chromium.org302124a2013-12-10 06:28:08 +00006070# Check whether --enable-largefile was given.
6071if test "${enable_largefile+set}" = set; then :
6072 enableval=$enable_largefile;
6073fi
6074
6075if test "$enable_largefile" != no; then
6076
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6078$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6079if ${ac_cv_sys_largefile_CC+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081else
6082 ac_cv_sys_largefile_CC=no
6083 if test "$GCC" != yes; then
6084 ac_save_CC=$CC
6085 while :; do
6086 # IRIX 6.2 and later do not support large files by default,
6087 # so use the C compiler's -n32 option if that helps.
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h. */
6090#include <sys/types.h>
6091 /* Check that off_t can represent 2**63 - 1 correctly.
6092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6093 since some C++ compilers masquerading as C compilers
6094 incorrectly reject 9223372036854775807. */
Gabriele Svelto16e08522018-08-04 00:59:34 +02006095#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6097 && LARGE_OFF_T % 2147483647 == 1)
6098 ? 1 : -1];
6099int
6100main ()
6101{
6102
6103 ;
6104 return 0;
6105}
6106_ACEOF
6107 if ac_fn_c_try_compile "$LINENO"; then :
6108 break
6109fi
6110rm -f core conftest.err conftest.$ac_objext
6111 CC="$CC -n32"
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 ac_cv_sys_largefile_CC=' -n32'; break
6114fi
6115rm -f core conftest.err conftest.$ac_objext
6116 break
6117 done
6118 CC=$ac_save_CC
6119 rm -f conftest.$ac_ext
6120 fi
6121fi
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6123$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6124 if test "$ac_cv_sys_largefile_CC" != no; then
6125 CC=$CC$ac_cv_sys_largefile_CC
6126 fi
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6129$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6130if ${ac_cv_sys_file_offset_bits+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132else
6133 while :; do
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135/* end confdefs.h. */
6136#include <sys/types.h>
6137 /* Check that off_t can represent 2**63 - 1 correctly.
6138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6139 since some C++ compilers masquerading as C compilers
6140 incorrectly reject 9223372036854775807. */
Gabriele Svelto16e08522018-08-04 00:59:34 +02006141#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6143 && LARGE_OFF_T % 2147483647 == 1)
6144 ? 1 : -1];
6145int
6146main ()
6147{
6148
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153if ac_fn_c_try_compile "$LINENO"; then :
6154 ac_cv_sys_file_offset_bits=no; break
6155fi
6156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158/* end confdefs.h. */
6159#define _FILE_OFFSET_BITS 64
6160#include <sys/types.h>
6161 /* Check that off_t can represent 2**63 - 1 correctly.
6162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6163 since some C++ compilers masquerading as C compilers
6164 incorrectly reject 9223372036854775807. */
Gabriele Svelto16e08522018-08-04 00:59:34 +02006165#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6167 && LARGE_OFF_T % 2147483647 == 1)
6168 ? 1 : -1];
6169int
6170main ()
6171{
6172
6173 ;
6174 return 0;
6175}
6176_ACEOF
6177if ac_fn_c_try_compile "$LINENO"; then :
6178 ac_cv_sys_file_offset_bits=64; break
6179fi
6180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 ac_cv_sys_file_offset_bits=unknown
6182 break
6183done
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6186$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6187case $ac_cv_sys_file_offset_bits in #(
6188 no | unknown) ;;
6189 *)
6190cat >>confdefs.h <<_ACEOF
6191#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6192_ACEOF
6193;;
6194esac
6195rm -rf conftest*
6196 if test $ac_cv_sys_file_offset_bits = unknown; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6198$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6199if ${ac_cv_sys_large_files+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201else
6202 while :; do
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h. */
6205#include <sys/types.h>
6206 /* Check that off_t can represent 2**63 - 1 correctly.
6207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6208 since some C++ compilers masquerading as C compilers
6209 incorrectly reject 9223372036854775807. */
Gabriele Svelto16e08522018-08-04 00:59:34 +02006210#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6212 && LARGE_OFF_T % 2147483647 == 1)
6213 ? 1 : -1];
6214int
6215main ()
6216{
6217
6218 ;
6219 return 0;
6220}
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223 ac_cv_sys_large_files=no; break
6224fi
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h. */
6228#define _LARGE_FILES 1
6229#include <sys/types.h>
6230 /* Check that off_t can represent 2**63 - 1 correctly.
6231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6232 since some C++ compilers masquerading as C compilers
6233 incorrectly reject 9223372036854775807. */
Gabriele Svelto16e08522018-08-04 00:59:34 +02006234#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6236 && LARGE_OFF_T % 2147483647 == 1)
6237 ? 1 : -1];
6238int
6239main ()
6240{
6241
6242 ;
6243 return 0;
6244}
6245_ACEOF
6246if ac_fn_c_try_compile "$LINENO"; then :
6247 ac_cv_sys_large_files=1; break
6248fi
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 ac_cv_sys_large_files=unknown
6251 break
6252done
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6255$as_echo "$ac_cv_sys_large_files" >&6; }
6256case $ac_cv_sys_large_files in #(
6257 no | unknown) ;;
6258 *)
6259cat >>confdefs.h <<_ACEOF
6260#define _LARGE_FILES $ac_cv_sys_large_files
6261_ACEOF
6262;;
6263esac
6264rm -rf conftest*
6265 fi
6266
6267
6268fi
6269
nealsidde545c02010-03-02 00:39:48 +00006270
6271
6272
6273ac_ext=c
6274ac_cpp='$CPP $CPPFLAGS'
6275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278
6279ax_pthread_ok=no
6280
6281# We used to check for pthread.h first, but this fails if pthread.h
6282# requires special compiler flags (e.g. on True64 or Sequent).
6283# It gets checked for in the link test anyway.
6284
6285# First of all, check if the user has set any of the PTHREAD_LIBS,
6286# etcetera environment variables, and if threads linking works using
6287# them:
6288if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
6289 save_CFLAGS="$CFLAGS"
6290 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6291 save_LIBS="$LIBS"
6292 LIBS="$PTHREAD_LIBS $LIBS"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
6294$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h. */
6297
6298/* Override any GCC internal prototype to avoid an error.
6299 Use char because int might match the return type of a GCC
6300 builtin and then its argument prototype would still apply. */
6301#ifdef __cplusplus
6302extern "C"
6303#endif
6304char pthread_join ();
6305int
6306main ()
6307{
6308return pthread_join ();
6309 ;
6310 return 0;
6311}
6312_ACEOF
6313if ac_fn_c_try_link "$LINENO"; then :
6314 ax_pthread_ok=yes
6315fi
6316rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6319$as_echo "$ax_pthread_ok" >&6; }
6320 if test x"$ax_pthread_ok" = xno; then
6321 PTHREAD_LIBS=""
6322 PTHREAD_CFLAGS=""
6323 fi
6324 LIBS="$save_LIBS"
6325 CFLAGS="$save_CFLAGS"
6326fi
6327
6328# We must check for the threads library under a number of different
6329# names; the ordering is very important because some systems
6330# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6331# libraries is broken (non-POSIX).
6332
6333# Create a list of thread flags to try. Items starting with a "-" are
6334# C compiler flags, and other items are library names, except for "none"
6335# which indicates that we try without any flags at all, and "pthread-config"
6336# which is a program returning the flags for the Pth emulation library.
6337
6338ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6339
6340# The ordering *is* (sometimes) important. Some notes on the
6341# individual items follow:
6342
6343# pthreads: AIX (must check this before -lpthread)
6344# none: in case threads are in libc; should be tried before -Kthread and
6345# other compiler flags to prevent continual compiler warnings
6346# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6347# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6348# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6349# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
6350# -pthreads: Solaris/gcc
6351# -mthreads: Mingw32/gcc, Lynx/gcc
6352# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6353# doesn't hurt to check since this sometimes defines pthreads too;
6354# also defines -D_REENTRANT)
6355# ... -mt is also the pthreads flag for HP/aCC
6356# pthread: Linux, etcetera
6357# --thread-safe: KAI C++
6358# pthread-config: use pthread-config program (for GNU Pth library)
6359
6360case "${host_cpu}-${host_os}" in
6361 *solaris*)
6362
6363 # On Solaris (at least, for some versions), libc contains stubbed
6364 # (non-functional) versions of the pthreads routines, so link-based
6365 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
6366 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
6367 # a function called by this macro, so we could check for that, but
6368 # who knows whether they'll stub that too in a future libc.) So,
6369 # we'll just look for -pthreads and -lpthread first:
6370
6371 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
6372 ;;
6373
6374 *-darwin*)
6375 acx_pthread_flags="-pthread $acx_pthread_flags"
6376 ;;
6377esac
6378
6379if test x"$ax_pthread_ok" = xno; then
6380for flag in $ax_pthread_flags; do
6381
6382 case $flag in
6383 none)
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6385$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6386 ;;
6387
6388 -*)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
6390$as_echo_n "checking whether pthreads work with $flag... " >&6; }
6391 PTHREAD_CFLAGS="$flag"
6392 ;;
6393
6394 pthread-config)
6395 # Extract the first word of "pthread-config", so it can be a program name with args.
6396set dummy pthread-config; ac_word=$2
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00006399if ${ac_cv_prog_ax_pthread_config+:} false; then :
nealsidde545c02010-03-02 00:39:48 +00006400 $as_echo_n "(cached) " >&6
6401else
6402 if test -n "$ax_pthread_config"; then
6403 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00006411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
nealsidde545c02010-03-02 00:39:48 +00006412 ac_cv_prog_ax_pthread_config="yes"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416done
6417 done
6418IFS=$as_save_IFS
6419
6420 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6421fi
6422fi
6423ax_pthread_config=$ac_cv_prog_ax_pthread_config
6424if test -n "$ax_pthread_config"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6426$as_echo "$ax_pthread_config" >&6; }
6427else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432
6433 if test x"$ax_pthread_config" = xno; then continue; fi
6434 PTHREAD_CFLAGS="`pthread-config --cflags`"
6435 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6436 ;;
6437
6438 *)
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
6440$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
6441 PTHREAD_LIBS="-l$flag"
6442 ;;
6443 esac
6444
6445 save_LIBS="$LIBS"
6446 save_CFLAGS="$CFLAGS"
6447 LIBS="$PTHREAD_LIBS $LIBS"
6448 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6449
6450 # Check for various functions. We must include pthread.h,
6451 # since some functions may be macros. (On the Sequent, we
6452 # need a special flag -Kthread to make this header compile.)
6453 # We check for pthread_join because it is in -lpthread on IRIX
6454 # while pthread_create is in libc. We check for pthread_attr_init
6455 # due to DEC craziness with -lpthreads. We check for
6456 # pthread_cleanup_push because it is one of the few pthread
6457 # functions on Solaris that doesn't have a non-functional libc stub.
6458 # We try pthread_create on general principles.
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h. */
6461#include <pthread.h>
6462 static void routine(void* a) {a=0;}
6463 static void* start_routine(void* a) {return a;}
6464int
6465main ()
6466{
6467pthread_t th; pthread_attr_t attr;
6468 pthread_join(th, 0);
6469 pthread_attr_init(&attr);
6470 pthread_cleanup_push(routine, 0);
6471 pthread_create(&th,0,start_routine,0);
6472 pthread_cleanup_pop(0);
6473 ;
6474 return 0;
6475}
6476_ACEOF
6477if ac_fn_c_try_link "$LINENO"; then :
6478 ax_pthread_ok=yes
6479fi
6480rm -f core conftest.err conftest.$ac_objext \
6481 conftest$ac_exeext conftest.$ac_ext
6482
6483 LIBS="$save_LIBS"
6484 CFLAGS="$save_CFLAGS"
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6487$as_echo "$ax_pthread_ok" >&6; }
6488 if test "x$ax_pthread_ok" = xyes; then
6489 break;
6490 fi
6491
6492 PTHREAD_LIBS=""
6493 PTHREAD_CFLAGS=""
6494done
6495fi
6496
6497# Various other checks:
6498if test "x$ax_pthread_ok" = xyes; then
6499 save_LIBS="$LIBS"
6500 LIBS="$PTHREAD_LIBS $LIBS"
6501 save_CFLAGS="$CFLAGS"
6502 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6503
6504 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6506$as_echo_n "checking for joinable pthread attribute... " >&6; }
6507 attr_name=unknown
6508 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h. */
6511#include <pthread.h>
6512int
6513main ()
6514{
6515int attr=$attr; return attr;
6516 ;
6517 return 0;
6518}
6519_ACEOF
6520if ac_fn_c_try_link "$LINENO"; then :
6521 attr_name=$attr; break
6522fi
6523rm -f core conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6525 done
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
6527$as_echo "$attr_name" >&6; }
6528 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
6529
6530cat >>confdefs.h <<_ACEOF
6531#define PTHREAD_CREATE_JOINABLE $attr_name
6532_ACEOF
6533
6534 fi
6535
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
6537$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
6538 flag=no
6539 case "${host_cpu}-${host_os}" in
6540 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
6541 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
6542 esac
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
6544$as_echo "${flag}" >&6; }
6545 if test "x$flag" != xno; then
6546 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
6547 fi
6548
6549 LIBS="$save_LIBS"
6550 CFLAGS="$save_CFLAGS"
6551
6552 # More AIX lossage: must compile with xlc_r or cc_r
6553 if test x"$GCC" != xyes; then
6554 for ac_prog in xlc_r cc_r
6555do
6556 # Extract the first word of "$ac_prog", so it can be a program name with args.
6557set dummy $ac_prog; ac_word=$2
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00006560if ${ac_cv_prog_PTHREAD_CC+:} false; then :
nealsidde545c02010-03-02 00:39:48 +00006561 $as_echo_n "(cached) " >&6
6562else
6563 if test -n "$PTHREAD_CC"; then
6564 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6565else
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00006572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
nealsidde545c02010-03-02 00:39:48 +00006573 ac_cv_prog_PTHREAD_CC="$ac_prog"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577done
6578 done
6579IFS=$as_save_IFS
6580
6581fi
6582fi
6583PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6584if test -n "$PTHREAD_CC"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6586$as_echo "$PTHREAD_CC" >&6; }
6587else
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589$as_echo "no" >&6; }
6590fi
6591
6592
6593 test -n "$PTHREAD_CC" && break
6594done
6595test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
6596
6597 else
6598 PTHREAD_CC=$CC
6599 fi
6600else
6601 PTHREAD_CC="$CC"
6602fi
6603
6604
6605
6606
6607
6608# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6609if test x"$ax_pthread_ok" = xyes; then
6610
6611$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6612
6613 :
6614else
6615 ax_pthread_ok=no
6616
6617fi
6618ac_ext=c
6619ac_cpp='$CPP $CPPFLAGS'
6620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
6624
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006625# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6626for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6627 inttypes.h stdint.h unistd.h
6628do :
6629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6630ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6631"
mark@chromium.orge9165f42013-11-23 01:45:20 +00006632if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006633 cat >>confdefs.h <<_ACEOF
6634#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6635_ACEOF
6636
6637fi
6638
6639done
6640
6641
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02006642for ac_header in a.out.h sys/random.h
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006643do :
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02006644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6645ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6646if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006647 cat >>confdefs.h <<_ACEOF
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02006648#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006649_ACEOF
6650
6651fi
6652
6653done
6654
Michael Forneye780d582020-03-16 12:56:56 -07006655for ac_func in arc4random getcontext getrandom
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02006656do :
6657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6658ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6659if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6660 cat >>confdefs.h <<_ACEOF
6661#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6662_ACEOF
6663
6664fi
6665done
6666
Michael Forneye780d582020-03-16 12:56:56 -07006667 if test "x$ac_cv_func_getcontext" = xyes; then
6668 HAVE_GETCONTEXT_TRUE=
6669 HAVE_GETCONTEXT_FALSE='#'
6670else
6671 HAVE_GETCONTEXT_TRUE='#'
6672 HAVE_GETCONTEXT_FALSE=
6673fi
6674
nealsidde545c02010-03-02 00:39:48 +00006675
Lei Zhang728bcdf2016-01-08 00:27:48 -08006676
6677 ax_cxx_compile_cxx11_required=true
6678 ac_ext=cpp
6679ac_cpp='$CXXCPP $CPPFLAGS'
6680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6683 ac_success=no
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6685$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6686if ${ax_cv_cxx_compile_cxx11+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h. */
6691
6692
6693// If the compiler admits that it is not ready for C++11, why torture it?
6694// Hopefully, this will speed up the test.
6695
6696#ifndef __cplusplus
6697
6698#error "This is not a C++ compiler"
6699
6700#elif __cplusplus < 201103L
6701
6702#error "This is not a C++11 compiler"
6703
6704#else
6705
6706namespace cxx11
6707{
6708
6709 namespace test_static_assert
6710 {
6711
6712 template <typename T>
6713 struct check
6714 {
6715 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6716 };
6717
6718 }
6719
6720 namespace test_final_override
6721 {
6722
6723 struct Base
6724 {
6725 virtual void f() {}
6726 };
6727
6728 struct Derived : public Base
6729 {
6730 virtual void f() override {}
6731 };
6732
6733 }
6734
6735 namespace test_double_right_angle_brackets
6736 {
6737
6738 template < typename T >
6739 struct check {};
6740
6741 typedef check<void> single_type;
6742 typedef check<check<void>> double_type;
6743 typedef check<check<check<void>>> triple_type;
6744 typedef check<check<check<check<void>>>> quadruple_type;
6745
6746 }
6747
6748 namespace test_decltype
6749 {
6750
6751 int
6752 f()
6753 {
6754 int a = 1;
6755 decltype(a) b = 2;
6756 return a + b;
6757 }
6758
6759 }
6760
6761 namespace test_type_deduction
6762 {
6763
6764 template < typename T1, typename T2 >
6765 struct is_same
6766 {
6767 static const bool value = false;
6768 };
6769
6770 template < typename T >
6771 struct is_same<T, T>
6772 {
6773 static const bool value = true;
6774 };
6775
6776 template < typename T1, typename T2 >
6777 auto
6778 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6779 {
6780 return a1 + a2;
6781 }
6782
6783 int
6784 test(const int c, volatile int v)
6785 {
6786 static_assert(is_same<int, decltype(0)>::value == true, "");
6787 static_assert(is_same<int, decltype(c)>::value == false, "");
6788 static_assert(is_same<int, decltype(v)>::value == false, "");
6789 auto ac = c;
6790 auto av = v;
6791 auto sumi = ac + av + 'x';
6792 auto sumf = ac + av + 1.0;
6793 static_assert(is_same<int, decltype(ac)>::value == true, "");
6794 static_assert(is_same<int, decltype(av)>::value == true, "");
6795 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6796 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6797 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6798 return (sumf > 0.0) ? sumi : add(c, v);
6799 }
6800
6801 }
6802
6803 namespace test_noexcept
6804 {
6805
6806 int f() { return 0; }
6807 int g() noexcept { return 0; }
6808
6809 static_assert(noexcept(f()) == false, "");
6810 static_assert(noexcept(g()) == true, "");
6811
6812 }
6813
6814 namespace test_constexpr
6815 {
6816
6817 template < typename CharT >
6818 unsigned long constexpr
6819 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6820 {
6821 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6822 }
6823
6824 template < typename CharT >
6825 unsigned long constexpr
6826 strlen_c(const CharT *const s) noexcept
6827 {
6828 return strlen_c_r(s, 0UL);
6829 }
6830
6831 static_assert(strlen_c("") == 0UL, "");
6832 static_assert(strlen_c("1") == 1UL, "");
6833 static_assert(strlen_c("example") == 7UL, "");
6834 static_assert(strlen_c("another\0example") == 7UL, "");
6835
6836 }
6837
6838 namespace test_rvalue_references
6839 {
6840
6841 template < int N >
6842 struct answer
6843 {
6844 static constexpr int value = N;
6845 };
6846
6847 answer<1> f(int&) { return answer<1>(); }
6848 answer<2> f(const int&) { return answer<2>(); }
6849 answer<3> f(int&&) { return answer<3>(); }
6850
6851 void
6852 test()
6853 {
6854 int i = 0;
6855 const int c = 0;
6856 static_assert(decltype(f(i))::value == 1, "");
6857 static_assert(decltype(f(c))::value == 2, "");
6858 static_assert(decltype(f(0))::value == 3, "");
6859 }
6860
6861 }
6862
6863 namespace test_uniform_initialization
6864 {
6865
6866 struct test
6867 {
6868 static const int zero {};
6869 static const int one {1};
6870 };
6871
6872 static_assert(test::zero == 0, "");
6873 static_assert(test::one == 1, "");
6874
6875 }
6876
6877 namespace test_lambdas
6878 {
6879
6880 void
6881 test1()
6882 {
6883 auto lambda1 = [](){};
6884 auto lambda2 = lambda1;
6885 lambda1();
6886 lambda2();
6887 }
6888
6889 int
6890 test2()
6891 {
6892 auto a = [](int i, int j){ return i + j; }(1, 2);
6893 auto b = []() -> int { return '0'; }();
6894 auto c = [=](){ return a + b; }();
6895 auto d = [&](){ return c; }();
6896 auto e = [a, &b](int x) mutable {
6897 const auto identity = [](int y){ return y; };
6898 for (auto i = 0; i < a; ++i)
6899 a += b--;
6900 return x + identity(a + b);
6901 }(0);
6902 return a + b + c + d + e;
6903 }
6904
6905 int
6906 test3()
6907 {
6908 const auto nullary = [](){ return 0; };
6909 const auto unary = [](int x){ return x; };
6910 using nullary_t = decltype(nullary);
6911 using unary_t = decltype(unary);
6912 const auto higher1st = [](nullary_t f){ return f(); };
6913 const auto higher2nd = [unary](nullary_t f1){
6914 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6915 };
6916 return higher1st(nullary) + higher2nd(nullary)(unary);
6917 }
6918
6919 }
6920
6921 namespace test_variadic_templates
6922 {
6923
6924 template <int...>
6925 struct sum;
6926
6927 template <int N0, int... N1toN>
6928 struct sum<N0, N1toN...>
6929 {
6930 static constexpr auto value = N0 + sum<N1toN...>::value;
6931 };
6932
6933 template <>
6934 struct sum<>
6935 {
6936 static constexpr auto value = 0;
6937 };
6938
6939 static_assert(sum<>::value == 0, "");
6940 static_assert(sum<1>::value == 1, "");
6941 static_assert(sum<23>::value == 23, "");
6942 static_assert(sum<1, 2>::value == 3, "");
6943 static_assert(sum<5, 5, 11>::value == 21, "");
6944 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6945
6946 }
6947
6948 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6949 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6950 // because of this.
6951 namespace test_template_alias_sfinae
6952 {
6953
6954 struct foo {};
6955
6956 template<typename T>
6957 using member = typename T::member_type;
6958
6959 template<typename T>
6960 void func(...) {}
6961
6962 template<typename T>
6963 void func(member<T>*) {}
6964
6965 void test();
6966
6967 void test() { func<foo>(0); }
6968
6969 }
6970
6971} // namespace cxx11
6972
6973#endif // __cplusplus >= 201103L
6974
6975
6976
6977_ACEOF
6978if ac_fn_cxx_try_compile "$LINENO"; then :
6979 ax_cv_cxx_compile_cxx11=yes
6980else
6981 ax_cv_cxx_compile_cxx11=no
6982fi
6983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984fi
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6986$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6987 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6988 ac_success=yes
6989 fi
6990
6991
6992
6993 if test x$ac_success = xno; then
6994 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
6995 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6997$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6998if eval \${$cachevar+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000else
7001 ac_save_CXXFLAGS="$CXXFLAGS"
7002 CXXFLAGS="$CXXFLAGS $switch"
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004/* end confdefs.h. */
7005
7006
7007// If the compiler admits that it is not ready for C++11, why torture it?
7008// Hopefully, this will speed up the test.
7009
7010#ifndef __cplusplus
7011
7012#error "This is not a C++ compiler"
7013
7014#elif __cplusplus < 201103L
7015
7016#error "This is not a C++11 compiler"
7017
7018#else
7019
7020namespace cxx11
7021{
7022
7023 namespace test_static_assert
7024 {
7025
7026 template <typename T>
7027 struct check
7028 {
7029 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7030 };
7031
7032 }
7033
7034 namespace test_final_override
7035 {
7036
7037 struct Base
7038 {
7039 virtual void f() {}
7040 };
7041
7042 struct Derived : public Base
7043 {
7044 virtual void f() override {}
7045 };
7046
7047 }
7048
7049 namespace test_double_right_angle_brackets
7050 {
7051
7052 template < typename T >
7053 struct check {};
7054
7055 typedef check<void> single_type;
7056 typedef check<check<void>> double_type;
7057 typedef check<check<check<void>>> triple_type;
7058 typedef check<check<check<check<void>>>> quadruple_type;
7059
7060 }
7061
7062 namespace test_decltype
7063 {
7064
7065 int
7066 f()
7067 {
7068 int a = 1;
7069 decltype(a) b = 2;
7070 return a + b;
7071 }
7072
7073 }
7074
7075 namespace test_type_deduction
7076 {
7077
7078 template < typename T1, typename T2 >
7079 struct is_same
7080 {
7081 static const bool value = false;
7082 };
7083
7084 template < typename T >
7085 struct is_same<T, T>
7086 {
7087 static const bool value = true;
7088 };
7089
7090 template < typename T1, typename T2 >
7091 auto
7092 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7093 {
7094 return a1 + a2;
7095 }
7096
7097 int
7098 test(const int c, volatile int v)
7099 {
7100 static_assert(is_same<int, decltype(0)>::value == true, "");
7101 static_assert(is_same<int, decltype(c)>::value == false, "");
7102 static_assert(is_same<int, decltype(v)>::value == false, "");
7103 auto ac = c;
7104 auto av = v;
7105 auto sumi = ac + av + 'x';
7106 auto sumf = ac + av + 1.0;
7107 static_assert(is_same<int, decltype(ac)>::value == true, "");
7108 static_assert(is_same<int, decltype(av)>::value == true, "");
7109 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7110 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7111 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7112 return (sumf > 0.0) ? sumi : add(c, v);
7113 }
7114
7115 }
7116
7117 namespace test_noexcept
7118 {
7119
7120 int f() { return 0; }
7121 int g() noexcept { return 0; }
7122
7123 static_assert(noexcept(f()) == false, "");
7124 static_assert(noexcept(g()) == true, "");
7125
7126 }
7127
7128 namespace test_constexpr
7129 {
7130
7131 template < typename CharT >
7132 unsigned long constexpr
7133 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7134 {
7135 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7136 }
7137
7138 template < typename CharT >
7139 unsigned long constexpr
7140 strlen_c(const CharT *const s) noexcept
7141 {
7142 return strlen_c_r(s, 0UL);
7143 }
7144
7145 static_assert(strlen_c("") == 0UL, "");
7146 static_assert(strlen_c("1") == 1UL, "");
7147 static_assert(strlen_c("example") == 7UL, "");
7148 static_assert(strlen_c("another\0example") == 7UL, "");
7149
7150 }
7151
7152 namespace test_rvalue_references
7153 {
7154
7155 template < int N >
7156 struct answer
7157 {
7158 static constexpr int value = N;
7159 };
7160
7161 answer<1> f(int&) { return answer<1>(); }
7162 answer<2> f(const int&) { return answer<2>(); }
7163 answer<3> f(int&&) { return answer<3>(); }
7164
7165 void
7166 test()
7167 {
7168 int i = 0;
7169 const int c = 0;
7170 static_assert(decltype(f(i))::value == 1, "");
7171 static_assert(decltype(f(c))::value == 2, "");
7172 static_assert(decltype(f(0))::value == 3, "");
7173 }
7174
7175 }
7176
7177 namespace test_uniform_initialization
7178 {
7179
7180 struct test
7181 {
7182 static const int zero {};
7183 static const int one {1};
7184 };
7185
7186 static_assert(test::zero == 0, "");
7187 static_assert(test::one == 1, "");
7188
7189 }
7190
7191 namespace test_lambdas
7192 {
7193
7194 void
7195 test1()
7196 {
7197 auto lambda1 = [](){};
7198 auto lambda2 = lambda1;
7199 lambda1();
7200 lambda2();
7201 }
7202
7203 int
7204 test2()
7205 {
7206 auto a = [](int i, int j){ return i + j; }(1, 2);
7207 auto b = []() -> int { return '0'; }();
7208 auto c = [=](){ return a + b; }();
7209 auto d = [&](){ return c; }();
7210 auto e = [a, &b](int x) mutable {
7211 const auto identity = [](int y){ return y; };
7212 for (auto i = 0; i < a; ++i)
7213 a += b--;
7214 return x + identity(a + b);
7215 }(0);
7216 return a + b + c + d + e;
7217 }
7218
7219 int
7220 test3()
7221 {
7222 const auto nullary = [](){ return 0; };
7223 const auto unary = [](int x){ return x; };
7224 using nullary_t = decltype(nullary);
7225 using unary_t = decltype(unary);
7226 const auto higher1st = [](nullary_t f){ return f(); };
7227 const auto higher2nd = [unary](nullary_t f1){
7228 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7229 };
7230 return higher1st(nullary) + higher2nd(nullary)(unary);
7231 }
7232
7233 }
7234
7235 namespace test_variadic_templates
7236 {
7237
7238 template <int...>
7239 struct sum;
7240
7241 template <int N0, int... N1toN>
7242 struct sum<N0, N1toN...>
7243 {
7244 static constexpr auto value = N0 + sum<N1toN...>::value;
7245 };
7246
7247 template <>
7248 struct sum<>
7249 {
7250 static constexpr auto value = 0;
7251 };
7252
7253 static_assert(sum<>::value == 0, "");
7254 static_assert(sum<1>::value == 1, "");
7255 static_assert(sum<23>::value == 23, "");
7256 static_assert(sum<1, 2>::value == 3, "");
7257 static_assert(sum<5, 5, 11>::value == 21, "");
7258 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7259
7260 }
7261
7262 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7263 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7264 // because of this.
7265 namespace test_template_alias_sfinae
7266 {
7267
7268 struct foo {};
7269
7270 template<typename T>
7271 using member = typename T::member_type;
7272
7273 template<typename T>
7274 void func(...) {}
7275
7276 template<typename T>
7277 void func(member<T>*) {}
7278
7279 void test();
7280
7281 void test() { func<foo>(0); }
7282
7283 }
7284
7285} // namespace cxx11
7286
7287#endif // __cplusplus >= 201103L
7288
7289
7290
7291_ACEOF
7292if ac_fn_cxx_try_compile "$LINENO"; then :
7293 eval $cachevar=yes
7294else
7295 eval $cachevar=no
7296fi
7297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 CXXFLAGS="$ac_save_CXXFLAGS"
7299fi
7300eval ac_res=\$$cachevar
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7302$as_echo "$ac_res" >&6; }
7303 if eval test x\$$cachevar = xyes; then
7304 CXXFLAGS="$CXXFLAGS $switch"
7305 ac_success=yes
7306 break
7307 fi
7308 done
7309 fi
7310 ac_ext=c
7311ac_cpp='$CPP $CPPFLAGS'
7312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315
7316 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7317 if test x$ac_success = xno; then
7318 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7319 fi
7320 else
7321 if test x$ac_success = xno; then
7322 HAVE_CXX11=0
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7324$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7325 else
7326 HAVE_CXX11=1
7327
7328$as_echo "#define HAVE_CXX11 1" >>confdefs.h
7329
7330 fi
7331
7332
7333 fi
7334
7335
Mike Frysinger6cc03752017-02-06 15:10:13 -05007336WARN_CXXFLAGS=
7337ac_ext=cpp
7338ac_cpp='$CXXCPP $CPPFLAGS'
7339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7342
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
7344$as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
7345if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347else
7348
7349 ax_check_save_flags=$CXXFLAGS
7350 CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option"
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352/* end confdefs.h. */
7353
7354int
7355main ()
7356{
7357
7358 ;
7359 return 0;
7360}
7361_ACEOF
7362if ac_fn_cxx_try_compile "$LINENO"; then :
7363 ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
7364else
7365 ax_cv_check_cxxflags___Werror_unknown_warning_option=no
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 CXXFLAGS=$ax_check_save_flags
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
7371$as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
7372if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then :
7373
7374 ax_compiler_flags_test="-Werror=unknown-warning-option"
7375
7376else
7377
7378 ax_compiler_flags_test=""
7379
7380fi
7381
7382
7383
7384
7385
Tobias Sargeantb37547b2017-03-24 12:51:47 +00007386for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-local-typedefs -Wunused-variable -Wvla ; do
Mike Frysinger6cc03752017-02-06 15:10:13 -05007387 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_${ax_compiler_flags_test}_$flag" | $as_tr_sh`
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
7389$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
7390if eval \${$as_CACHEVAR+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392else
7393
7394 ax_check_save_flags=$CXXFLAGS
7395 CXXFLAGS="$CXXFLAGS ${ax_compiler_flags_test} $flag"
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h. */
7398
7399int
7400main ()
7401{
7402
7403 ;
7404 return 0;
7405}
7406_ACEOF
7407if ac_fn_cxx_try_compile "$LINENO"; then :
7408 eval "$as_CACHEVAR=yes"
7409else
7410 eval "$as_CACHEVAR=no"
7411fi
7412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 CXXFLAGS=$ax_check_save_flags
7414fi
7415eval ac_res=\$$as_CACHEVAR
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7417$as_echo "$ac_res" >&6; }
7418if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7419
7420if ${WARN_CXXFLAGS+:} false; then :
7421
7422 case " $WARN_CXXFLAGS " in #(
7423 *" $flag "*) :
7424 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
7425 (: WARN_CXXFLAGS already contains $flag) 2>&5
7426 ac_status=$?
7427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428 test $ac_status = 0; } ;; #(
7429 *) :
7430
7431 as_fn_append WARN_CXXFLAGS " $flag"
7432 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
7433 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
7434 ac_status=$?
7435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436 test $ac_status = 0; }
7437 ;;
7438esac
7439
7440else
7441
7442 WARN_CXXFLAGS=$flag
7443 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
7444 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
7445 ac_status=$?
7446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7447 test $ac_status = 0; }
7448
7449fi
7450
7451else
7452 :
7453fi
7454
7455done
7456
7457as_fn_append WARN_CXXFLAGS " -Werror"
7458ac_ext=c
7459ac_cpp='$CPP $CPPFLAGS'
7460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463
7464
7465
Lars Volkerffe3e472017-05-10 22:50:32 +02007466
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC defined in fcntl.h" >&5
7468$as_echo_n "checking for O_CLOEXEC defined in fcntl.h... " >&6; }
7469if ${ac_cv_defined_O_CLOEXEC_fcntl_h+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471else
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h. */
7474#include <fcntl.h>
7475int
7476main ()
7477{
7478
7479 #ifdef O_CLOEXEC
7480 int ok;
7481 #else
7482 choke me
7483 #endif
7484
7485 ;
7486 return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_compile "$LINENO"; then :
7490 ac_cv_defined_O_CLOEXEC_fcntl_h=yes
7491else
7492 ac_cv_defined_O_CLOEXEC_fcntl_h=no
7493fi
7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_O_CLOEXEC_fcntl_h" >&5
7497$as_echo "$ac_cv_defined_O_CLOEXEC_fcntl_h" >&6; }
7498if test $ac_cv_defined_O_CLOEXEC_fcntl_h != "no"; then :
7499
7500else
7501
7502$as_echo "#define O_CLOEXEC 0" >>confdefs.h
7503
7504fi
7505
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00007506# Only build Linux client libs when compiling for Linux
7507case $host in
digit@chromium.org62d486b2012-08-21 14:34:48 +00007508 *-*-linux* | *-android* )
7509 LINUX_HOST=true
7510 ;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00007511esac
7512 if test x$LINUX_HOST = xtrue; then
7513 LINUX_HOST_TRUE=
7514 LINUX_HOST_FALSE='#'
7515else
7516 LINUX_HOST_TRUE='#'
7517 LINUX_HOST_FALSE=
7518fi
7519
7520
digit@chromium.org62d486b2012-08-21 14:34:48 +00007521# Only use Android support headers when compiling for Android
7522case $host in
7523 *-android*)
7524 ANDROID_HOST=true
7525 ;;
7526esac
7527 if test x$ANDROID_HOST = xtrue; then
7528 ANDROID_HOST_TRUE=
7529 ANDROID_HOST_FALSE='#'
7530else
7531 ANDROID_HOST_TRUE='#'
7532 ANDROID_HOST_FALSE=
7533fi
7534
7535
Mike Frysinger3f736ce2016-01-27 16:45:21 -05007536# Some tools (like mac ones) only support x86 currently.
7537case $host_cpu in
7538 i?86|x86_64)
7539 X86_HOST=true
7540 ;;
7541esac
7542 if test x$X86_HOST = xtrue; then
7543 X86_HOST_TRUE=
7544 X86_HOST_FALSE='#'
7545else
7546 X86_HOST_TRUE='#'
7547 X86_HOST_FALSE=
7548fi
7549
7550
ted.mielczareke574a2a2010-10-05 19:38:22 +00007551# Check whether --enable-processor was given.
7552if test "${enable_processor+set}" = set; then :
7553 enableval=$enable_processor; case "${enableval}" in
7554 yes)
7555 disable_processor=false
7556 ;;
7557 no)
7558 disable_processor=true
7559 ;;
7560 *)
mark@chromium.orge9165f42013-11-23 01:45:20 +00007561 as_fn_error $? "bad value ${enableval} for --disable-processor" "$LINENO" 5
ted.mielczareke574a2a2010-10-05 19:38:22 +00007562 ;;
7563 esac
7564else
7565 disable_processor=false
7566fi
7567
7568 if test x$disable_processor = xtrue; then
7569 DISABLE_PROCESSOR_TRUE=
7570 DISABLE_PROCESSOR_FALSE='#'
7571else
7572 DISABLE_PROCESSOR_TRUE='#'
7573 DISABLE_PROCESSOR_FALSE=
7574fi
7575
7576
ted.mielczarekdbf409c2011-02-28 14:05:22 +00007577# Check whether --enable-tools was given.
7578if test "${enable_tools+set}" = set; then :
7579 enableval=$enable_tools; case "${enableval}" in
7580 yes)
7581 disable_tools=false
7582 ;;
7583 no)
7584 disable_tools=true
7585 ;;
7586 *)
mark@chromium.orge9165f42013-11-23 01:45:20 +00007587 as_fn_error $? "bad value ${enableval} for --disable-tools" "$LINENO" 5
ted.mielczarekdbf409c2011-02-28 14:05:22 +00007588 ;;
7589 esac
7590else
7591 disable_tools=false
7592fi
7593
7594 if test x$disable_tools = xtrue; then
7595 DISABLE_TOOLS_TRUE=
7596 DISABLE_TOOLS_FALSE='#'
7597else
7598 DISABLE_TOOLS_TRUE='#'
7599 DISABLE_TOOLS_FALSE=
7600fi
7601
7602
7603if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007604 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 +00007605fi
7606
Mike Frysingerf820ead2016-01-25 19:27:56 -05007607# Check whether --enable-system-test-libs was given.
7608if test "${enable_system_test_libs+set}" = set; then :
7609 enableval=$enable_system_test_libs; case "${enableval}" in
7610 yes)
7611 system_test_libs=true
7612 ;;
7613 no)
7614 system_test_libs=false
7615 ;;
7616 *)
7617 as_fn_error $? "bad value ${enableval} for --enable-system-test-libs" "$LINENO" 5
7618 ;;
7619 esac
7620else
7621 system_test_libs=false
7622fi
7623
7624 if test x$system_test_libs = xtrue; then
7625 SYSTEM_TEST_LIBS_TRUE=
7626 SYSTEM_TEST_LIBS_FALSE='#'
7627else
7628 SYSTEM_TEST_LIBS_TRUE='#'
7629 SYSTEM_TEST_LIBS_FALSE=
7630fi
7631
7632
7633
7634
7635
7636
Mike Frysingerf820ead2016-01-25 19:27:56 -05007637if test x$system_test_libs = xtrue; then
Allen Webb488566d2019-06-14 13:06:07 -07007638 : "${GMOCK_CFLAGS:=-pthread}"
7639 : "${GMOCK_LIBS:=-lgmock -lgtest -pthread -lpthread}"
7640 : "${GTEST_CFLAGS:=-pthread}"
7641 : "${GTEST_LIBS:=-lgtest -pthread -lpthread}"
Mike Frysingerf820ead2016-01-25 19:27:56 -05007642fi
7643
mmentovai0dbedc92006-09-25 21:16:15 +00007644# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +00007645if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +00007646 enableval=$enable_selftest; case "${enableval}" in
7647 yes)
7648 selftest=true
7649 ;;
7650 no)
7651 selftest=false
7652 ;;
7653 *)
mark@chromium.orge9165f42013-11-23 01:45:20 +00007654 as_fn_error $? "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00007655 ;;
7656 esac
7657else
7658 selftest=false
7659fi
7660
mmentovaiaf3c43f2007-05-17 18:34:37 +00007661 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +00007662 SELFTEST_TRUE=
7663 SELFTEST_FALSE='#'
7664else
7665 SELFTEST_TRUE='#'
7666 SELFTEST_FALSE=
7667fi
7668
7669
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -04007670
7671# Check whether --with-rust-demangle was given.
7672if test "${with_rust_demangle+set}" = set; then :
7673 withval=$with_rust_demangle; case "${withval}" in
7674 yes)
7675 as_fn_error $? "You must pass the path to the rust-demangle-capi crate for --with-rust-demangle" "$LINENO" 5
7676 ;;
7677 no)
7678 rust_demangle=false
7679 ;;
7680 *)
7681 if ! test -f "${withval}/Cargo.toml"; then
7682 as_fn_error $? "You must pass the path to the rust-demangle-capi crate for --with-rust-demangle" "$LINENO" 5
7683 fi
7684 RUST_DEMANGLE_CFLAGS="-DHAVE_RUST_DEMANGLE -I${withval}/target/include"
7685 RUST_DEMANGLE_LIBS="-L${withval}/target/release -lrust_demangle -lpthread -ldl"
7686 ;;
7687 esac
7688else
7689 rust_demangle=false
7690fi
7691
7692
7693
7694
Lars Volker49907e12018-01-31 13:29:11 -08007695
7696# Check whether --with-tests-as-root was given.
7697if test "${with_tests_as_root+set}" = set; then :
7698 withval=$with_tests_as_root; case "${withval}" in
7699 yes)
7700 tests_as_root=true
7701 ;;
7702 no)
7703 tests_as_root=false
7704 ;;
7705 *)
7706 as_fn_error $? "--with-tests-as-root can only be \"yes\" or \"no\"" "$LINENO" 5
7707 ;;
7708 esac
7709else
7710 tests_as_root=false
7711fi
7712
7713 if test x$tests_as_root = xtrue; then
7714 TESTS_AS_ROOT_TRUE=
7715 TESTS_AS_ROOT_FALSE='#'
7716else
7717 TESTS_AS_ROOT_TRUE='#'
7718 TESTS_AS_ROOT_FALSE=
7719fi
7720
7721
vapier@chromium.org1b309ed2014-08-27 02:10:55 +00007722ac_config_files="$ac_config_files breakpad.pc breakpad-client.pc Makefile"
7723
brynercb91a2f2006-08-25 21:14:45 +00007724
7725cat >confcache <<\_ACEOF
7726# This file is a shell script that caches the results of configure
7727# tests run on this system so they can be shared between configure
7728# scripts and configure runs, see configure's option --config-cache.
7729# It is not useful on other systems. If it contains results you don't
7730# want to keep, you may remove or edit it.
7731#
7732# config.status only pays attention to the cache file if you give it
7733# the --recheck option to rerun configure.
7734#
7735# `ac_cv_env_foo' variables (set or unset) will be overridden when
7736# loading this file, other *unset* `ac_cv_foo' will be assigned the
7737# following values.
7738
7739_ACEOF
7740
7741# The following way of writing the cache mishandles newlines in values,
7742# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +00007743# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +00007744# Ultrix sh set writes to stderr and can't be redirected directly,
7745# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +00007746(
7747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7748 eval ac_val=\$$ac_var
7749 case $ac_val in #(
7750 *${as_nl}*)
7751 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00007752 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7753$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007754 esac
7755 case $ac_var in #(
7756 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00007757 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7758 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007759 esac ;;
7760 esac
7761 done
7762
brynercb91a2f2006-08-25 21:14:45 +00007763 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00007764 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7765 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +00007766 # `set' does not quote correctly, so add quotes: double-quote
7767 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +00007768 sed -n \
7769 "s/'/'\\\\''/g;
7770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +00007771 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00007772 *)
7773 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +00007774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00007775 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007776 esac |
7777 sort
7778) |
brynercb91a2f2006-08-25 21:14:45 +00007779 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +00007780 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +00007781 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +00007782 :clear
brynercb91a2f2006-08-25 21:14:45 +00007783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7784 t end
mmentovai8c2a4de2006-09-20 16:20:15 +00007785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7786 :end' >>confcache
7787if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7788 if test -w "$cache_file"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007789 if test "x$cache_file" != "x/dev/null"; then
jimblandy92b1f832009-12-23 22:23:49 +00007790 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7791$as_echo "$as_me: updating cache $cache_file" >&6;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00007792 if test ! -f "$cache_file" || test -h "$cache_file"; then
7793 cat confcache >"$cache_file"
7794 else
7795 case $cache_file in #(
7796 */* | ?:*)
7797 mv -f confcache "$cache_file"$$ &&
7798 mv -f "$cache_file"$$ "$cache_file" ;; #(
7799 *)
7800 mv -f confcache "$cache_file" ;;
7801 esac
7802 fi
7803 fi
brynercb91a2f2006-08-25 21:14:45 +00007804 else
jimblandy92b1f832009-12-23 22:23:49 +00007805 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7806$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00007807 fi
7808fi
7809rm -f confcache
7810
7811test "x$prefix" = xNONE && prefix=$ac_default_prefix
7812# Let make expand exec_prefix.
7813test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7814
brynercb91a2f2006-08-25 21:14:45 +00007815DEFS=-DHAVE_CONFIG_H
7816
7817ac_libobjs=
7818ac_ltlibobjs=
7819for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7820 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +00007821 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +00007822 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +00007823 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7824 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +00007825 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7826 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +00007827done
7828LIBOBJS=$ac_libobjs
7829
7830LTLIBOBJS=$ac_ltlibobjs
7831
7832
mark@chromium.orge9165f42013-11-23 01:45:20 +00007833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7834$as_echo_n "checking that generated files are newer than configure... " >&6; }
7835 if test -n "$am_sleep_pid"; then
7836 # Hide warnings about reused PIDs.
7837 wait $am_sleep_pid 2>/dev/null
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7840$as_echo "done" >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00007841 if test -n "$EXEEXT"; then
7842 am__EXEEXT_TRUE=
7843 am__EXEEXT_FALSE='#'
7844else
7845 am__EXEEXT_TRUE='#'
7846 am__EXEEXT_FALSE=
7847fi
7848
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +00007849if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7850 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7851Usually this means the macro was only invoked conditionally." "$LINENO" 5
7852fi
brynercb91a2f2006-08-25 21:14:45 +00007853if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007854 as_fn_error $? "conditional \"AMDEP\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00007855Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00007856fi
7857if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007858 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00007859Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00007860fi
digit@chromium.org7e3c5382012-08-31 18:38:29 +00007861if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007862 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00007863Usually this means the macro was only invoked conditionally." "$LINENO" 5
7864fi
7865if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007866 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00007867Usually this means the macro was only invoked conditionally." "$LINENO" 5
7868fi
brynercb91a2f2006-08-25 21:14:45 +00007869if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007870 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00007871Usually this means the macro was only invoked conditionally." "$LINENO" 5
7872fi
Michael Forneye780d582020-03-16 12:56:56 -07007873if test -z "${HAVE_GETCONTEXT_TRUE}" && test -z "${HAVE_GETCONTEXT_FALSE}"; then
7874 as_fn_error $? "conditional \"HAVE_GETCONTEXT\" was never defined.
7875Usually this means the macro was only invoked conditionally." "$LINENO" 5
7876fi
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00007877if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007878 as_fn_error $? "conditional \"LINUX_HOST\" was never defined.
ted.mielczareke574a2a2010-10-05 19:38:22 +00007879Usually this means the macro was only invoked conditionally." "$LINENO" 5
7880fi
digit@chromium.org62d486b2012-08-21 14:34:48 +00007881if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007882 as_fn_error $? "conditional \"ANDROID_HOST\" was never defined.
digit@chromium.org62d486b2012-08-21 14:34:48 +00007883Usually this means the macro was only invoked conditionally." "$LINENO" 5
7884fi
Mike Frysinger3f736ce2016-01-27 16:45:21 -05007885if test -z "${X86_HOST_TRUE}" && test -z "${X86_HOST_FALSE}"; then
7886 as_fn_error $? "conditional \"X86_HOST\" was never defined.
7887Usually this means the macro was only invoked conditionally." "$LINENO" 5
7888fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00007889if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007890 as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined.
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00007891Usually this means the macro was only invoked conditionally." "$LINENO" 5
7892fi
ted.mielczarekdbf409c2011-02-28 14:05:22 +00007893if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007894 as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined.
ted.mielczarekdbf409c2011-02-28 14:05:22 +00007895Usually this means the macro was only invoked conditionally." "$LINENO" 5
7896fi
Mike Frysingerf820ead2016-01-25 19:27:56 -05007897if test -z "${SYSTEM_TEST_LIBS_TRUE}" && test -z "${SYSTEM_TEST_LIBS_FALSE}"; then
7898 as_fn_error $? "conditional \"SYSTEM_TEST_LIBS\" was never defined.
7899Usually this means the macro was only invoked conditionally." "$LINENO" 5
7900fi
mmentovai0dbedc92006-09-25 21:16:15 +00007901if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007902 as_fn_error $? "conditional \"SELFTEST\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00007903Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00007904fi
Lars Volker49907e12018-01-31 13:29:11 -08007905if test -z "${TESTS_AS_ROOT_TRUE}" && test -z "${TESTS_AS_ROOT_FALSE}"; then
7906 as_fn_error $? "conditional \"TESTS_AS_ROOT\" was never defined.
7907Usually this means the macro was only invoked conditionally." "$LINENO" 5
7908fi
brynercb91a2f2006-08-25 21:14:45 +00007909
mark@chromium.orge9165f42013-11-23 01:45:20 +00007910: "${CONFIG_STATUS=./config.status}"
jimblandy92b1f832009-12-23 22:23:49 +00007911ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +00007912ac_clean_files_save=$ac_clean_files
7913ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +00007914{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7915$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7916as_write_fail=0
7917cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00007918#! $SHELL
7919# Generated by $as_me.
7920# Run this file to recreate the current configuration.
7921# Compiler output produced by configure, useful for debugging
7922# configure, is in config.log if it exists.
7923
7924debug=false
7925ac_cs_recheck=false
7926ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +00007927
jimblandy92b1f832009-12-23 22:23:49 +00007928SHELL=\${CONFIG_SHELL-$SHELL}
7929export SHELL
7930_ASEOF
7931cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7932## -------------------- ##
7933## M4sh Initialization. ##
7934## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00007935
mmentovaiaf3c43f2007-05-17 18:34:37 +00007936# Be more Bourne compatible
7937DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +00007938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +00007939 emulate sh
7940 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +00007941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +00007942 # is contrary to our usage. Disable this feature.
7943 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +00007944 setopt NO_GLOB_SUBST
7945else
jimblandy92b1f832009-12-23 22:23:49 +00007946 case `(set -o) 2>/dev/null` in #(
7947 *posix*) :
7948 set -o posix ;; #(
7949 *) :
7950 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +00007951esac
brynercb91a2f2006-08-25 21:14:45 +00007952fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00007953
7954
jimblandy92b1f832009-12-23 22:23:49 +00007955as_nl='
7956'
7957export as_nl
7958# Printing a long string crashes Solaris 7 /usr/bin/printf.
7959as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7960as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7961as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7962# Prefer a ksh shell builtin over an external printf program on Solaris,
7963# but without wasting forks for bash or zsh.
7964if test -z "$BASH_VERSION$ZSH_VERSION" \
7965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7966 as_echo='print -r --'
7967 as_echo_n='print -rn --'
7968elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7969 as_echo='printf %s\n'
7970 as_echo_n='printf %s'
7971else
7972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7974 as_echo_n='/usr/ucb/echo -n'
7975 else
7976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7977 as_echo_n_body='eval
7978 arg=$1;
7979 case $arg in #(
7980 *"$as_nl"*)
7981 expr "X$arg" : "X\\(.*\\)$as_nl";
7982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7983 esac;
7984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7985 '
7986 export as_echo_n_body
7987 as_echo_n='sh -c $as_echo_n_body as_echo'
7988 fi
7989 export as_echo_body
7990 as_echo='sh -c $as_echo_body as_echo'
7991fi
brynercb91a2f2006-08-25 21:14:45 +00007992
7993# The user is always right.
7994if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +00007995 PATH_SEPARATOR=:
7996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7998 PATH_SEPARATOR=';'
7999 }
mmentovai8c2a4de2006-09-20 16:20:15 +00008000fi
brynercb91a2f2006-08-25 21:14:45 +00008001
mmentovai8c2a4de2006-09-20 16:20:15 +00008002
8003# IFS
8004# We need space, tab and new line, in precisely that order. Quoting is
8005# there to prevent editors from complaining about space-tab.
8006# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8007# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +00008008IFS=" "" $as_nl"
8009
8010# Find who we are. Look in the path if we contain no directory separator.
mark@chromium.orge9165f42013-11-23 01:45:20 +00008011as_myself=
jimblandy92b1f832009-12-23 22:23:49 +00008012case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +00008013 *[\\/]* ) as_myself=$0 ;;
8014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00008015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00008019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8020 done
mmentovai8c2a4de2006-09-20 16:20:15 +00008021IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00008022
mmentovai8c2a4de2006-09-20 16:20:15 +00008023 ;;
8024esac
8025# We did not find ourselves, most probably we were run as `sh COMMAND'
8026# in which case we are not to be found in the path.
8027if test "x$as_myself" = x; then
8028 as_myself=$0
8029fi
8030if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +00008031 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8032 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +00008033fi
8034
jimblandy92b1f832009-12-23 22:23:49 +00008035# Unset variables that we do not need and which cause bugs (e.g. in
8036# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8037# suppresses any "Segmentation fault" message there. '((' could
8038# trigger a bug in pdksh 5.2.14.
8039for as_var in BASH_ENV ENV MAIL MAILPATH
8040do eval test x\${$as_var+set} = xset \
8041 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +00008042done
8043PS1='$ '
8044PS2='> '
8045PS4='+ '
8046
8047# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +00008048LC_ALL=C
8049export LC_ALL
8050LANGUAGE=C
8051export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +00008052
jimblandy92b1f832009-12-23 22:23:49 +00008053# CDPATH.
8054(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8055
8056
mark@chromium.orge9165f42013-11-23 01:45:20 +00008057# as_fn_error STATUS ERROR [LINENO LOG_FD]
8058# ----------------------------------------
jimblandy92b1f832009-12-23 22:23:49 +00008059# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8060# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
mark@chromium.orge9165f42013-11-23 01:45:20 +00008061# script with STATUS, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +00008062as_fn_error ()
8063{
mark@chromium.orge9165f42013-11-23 01:45:20 +00008064 as_status=$1; test $as_status -eq 0 && as_status=1
8065 if test "$4"; then
8066 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8067 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
jimblandy92b1f832009-12-23 22:23:49 +00008068 fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00008069 $as_echo "$as_me: error: $2" >&2
jimblandy92b1f832009-12-23 22:23:49 +00008070 as_fn_exit $as_status
8071} # as_fn_error
8072
8073
8074# as_fn_set_status STATUS
8075# -----------------------
8076# Set $? to STATUS, without forking.
8077as_fn_set_status ()
8078{
8079 return $1
8080} # as_fn_set_status
8081
8082# as_fn_exit STATUS
8083# -----------------
8084# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8085as_fn_exit ()
8086{
8087 set +e
8088 as_fn_set_status $1
8089 exit $1
8090} # as_fn_exit
8091
8092# as_fn_unset VAR
8093# ---------------
8094# Portably unset VAR.
8095as_fn_unset ()
8096{
8097 { eval $1=; unset $1;}
8098}
8099as_unset=as_fn_unset
8100# as_fn_append VAR VALUE
8101# ----------------------
8102# Append the text in VALUE to the end of the definition contained in VAR. Take
8103# advantage of any shell optimizations that allow amortized linear growth over
8104# repeated appends, instead of the typical quadratic growth present in naive
8105# implementations.
8106if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8107 eval 'as_fn_append ()
8108 {
8109 eval $1+=\$2
8110 }'
8111else
8112 as_fn_append ()
8113 {
8114 eval $1=\$$1\$2
8115 }
8116fi # as_fn_append
8117
8118# as_fn_arith ARG...
8119# ------------------
8120# Perform arithmetic evaluation on the ARGs, and store the result in the
8121# global $as_val. Take advantage of shells that can avoid forks. The arguments
8122# must be portable across $(()) and expr.
8123if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8124 eval 'as_fn_arith ()
8125 {
8126 as_val=$(( $* ))
8127 }'
8128else
8129 as_fn_arith ()
8130 {
8131 as_val=`expr "$@" || test $? -eq 1`
8132 }
8133fi # as_fn_arith
8134
8135
mmentovai8c2a4de2006-09-20 16:20:15 +00008136if expr a : '\(a\)' >/dev/null 2>&1 &&
8137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8138 as_expr=expr
8139else
8140 as_expr=false
8141fi
8142
8143if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8144 as_basename=basename
8145else
8146 as_basename=false
8147fi
8148
jimblandy92b1f832009-12-23 22:23:49 +00008149if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8150 as_dirname=dirname
8151else
8152 as_dirname=false
8153fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008154
mmentovai8c2a4de2006-09-20 16:20:15 +00008155as_me=`$as_basename -- "$0" ||
8156$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8157 X"$0" : 'X\(//\)$' \| \
8158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00008159$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00008160 sed '/^.*\/\([^/][^/]*\)\/*$/{
8161 s//\1/
8162 q
8163 }
8164 /^X\/\(\/\/\)$/{
8165 s//\1/
8166 q
8167 }
8168 /^X\/\(\/\).*/{
8169 s//\1/
8170 q
8171 }
8172 s/.*/./; q'`
8173
jimblandy92b1f832009-12-23 22:23:49 +00008174# Avoid depending upon Character Ranges.
8175as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8177as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8178as_cr_digits='0123456789'
8179as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +00008180
8181ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +00008182case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +00008183-n*)
jimblandy92b1f832009-12-23 22:23:49 +00008184 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +00008185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +00008186 xy) ECHO_C='\c';;
8187 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8188 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +00008189 esac;;
8190*)
8191 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +00008192esac
8193
brynercb91a2f2006-08-25 21:14:45 +00008194rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +00008195if test -d conf$$.dir; then
8196 rm -f conf$$.dir/conf$$.file
8197else
8198 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +00008199 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +00008200fi
jimblandy92b1f832009-12-23 22:23:49 +00008201if (echo >conf$$.file) 2>/dev/null; then
8202 if ln -s conf$$.file conf$$ 2>/dev/null; then
8203 as_ln_s='ln -s'
8204 # ... but there are two gotchas:
8205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mark@chromium.orge9165f42013-11-23 01:45:20 +00008207 # In both cases, we have to default to `cp -pR'.
jimblandy92b1f832009-12-23 22:23:49 +00008208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00008209 as_ln_s='cp -pR'
jimblandy92b1f832009-12-23 22:23:49 +00008210 elif ln conf$$.file conf$$ 2>/dev/null; then
8211 as_ln_s=ln
8212 else
mark@chromium.orge9165f42013-11-23 01:45:20 +00008213 as_ln_s='cp -pR'
jimblandy92b1f832009-12-23 22:23:49 +00008214 fi
brynercb91a2f2006-08-25 21:14:45 +00008215else
mark@chromium.orge9165f42013-11-23 01:45:20 +00008216 as_ln_s='cp -pR'
brynercb91a2f2006-08-25 21:14:45 +00008217fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008218rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8219rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008220
jimblandy92b1f832009-12-23 22:23:49 +00008221
8222# as_fn_mkdir_p
8223# -------------
8224# Create "$as_dir" as a directory, including parents if necessary.
8225as_fn_mkdir_p ()
8226{
8227
8228 case $as_dir in #(
8229 -*) as_dir=./$as_dir;;
8230 esac
8231 test -d "$as_dir" || eval $as_mkdir_p || {
8232 as_dirs=
8233 while :; do
8234 case $as_dir in #(
8235 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8236 *) as_qdir=$as_dir;;
8237 esac
8238 as_dirs="'$as_qdir' $as_dirs"
8239 as_dir=`$as_dirname -- "$as_dir" ||
8240$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8241 X"$as_dir" : 'X\(//\)[^/]' \| \
8242 X"$as_dir" : 'X\(//\)$' \| \
8243 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8244$as_echo X"$as_dir" |
8245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8246 s//\1/
8247 q
8248 }
8249 /^X\(\/\/\)[^/].*/{
8250 s//\1/
8251 q
8252 }
8253 /^X\(\/\/\)$/{
8254 s//\1/
8255 q
8256 }
8257 /^X\(\/\).*/{
8258 s//\1/
8259 q
8260 }
8261 s/.*/./; q'`
8262 test -d "$as_dir" && break
8263 done
8264 test -z "$as_dirs" || eval "mkdir $as_dirs"
mark@chromium.orge9165f42013-11-23 01:45:20 +00008265 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +00008266
8267
8268} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00008269if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +00008270 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +00008271else
8272 test -d ./-p && rmdir ./-p
8273 as_mkdir_p=false
8274fi
8275
mark@chromium.orge9165f42013-11-23 01:45:20 +00008276
8277# as_fn_executable_p FILE
8278# -----------------------
8279# Test if FILE is an executable regular file.
8280as_fn_executable_p ()
8281{
8282 test -f "$1" && test -x "$1"
8283} # as_fn_executable_p
8284as_test_x='test -x'
8285as_executable_p=as_fn_executable_p
brynercb91a2f2006-08-25 21:14:45 +00008286
8287# Sed expression to map a string onto a valid CPP name.
8288as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8289
8290# Sed expression to map a string onto a valid variable name.
8291as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8292
8293
brynercb91a2f2006-08-25 21:14:45 +00008294exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +00008295## ----------------------------------- ##
8296## Main body of $CONFIG_STATUS script. ##
8297## ----------------------------------- ##
8298_ASEOF
8299test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008300
jimblandy92b1f832009-12-23 22:23:49 +00008301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8302# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +00008303# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +00008304# values after options handling.
8305ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +00008306This file was extended by breakpad $as_me 0.1, which was
mark@chromium.orge9165f42013-11-23 01:45:20 +00008307generated by GNU Autoconf 2.69. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00008308
8309 CONFIG_FILES = $CONFIG_FILES
8310 CONFIG_HEADERS = $CONFIG_HEADERS
8311 CONFIG_LINKS = $CONFIG_LINKS
8312 CONFIG_COMMANDS = $CONFIG_COMMANDS
8313 $ $0 $@
8314
mmentovai8c2a4de2006-09-20 16:20:15 +00008315on `(hostname || uname -n) 2>/dev/null | sed 1q`
8316"
8317
brynercb91a2f2006-08-25 21:14:45 +00008318_ACEOF
8319
jimblandy92b1f832009-12-23 22:23:49 +00008320case $ac_config_files in *"
8321"*) set x $ac_config_files; shift; ac_config_files=$*;;
8322esac
8323
8324case $ac_config_headers in *"
8325"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8326esac
8327
8328
8329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008330# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +00008331config_files="$ac_config_files"
8332config_headers="$ac_config_headers"
8333config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +00008334
mmentovai8c2a4de2006-09-20 16:20:15 +00008335_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00008336
jimblandy92b1f832009-12-23 22:23:49 +00008337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008338ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +00008339\`$as_me' instantiates files and other configuration actions
8340from templates according to the current configuration. Unless the files
8341and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +00008342
jimblandy92b1f832009-12-23 22:23:49 +00008343Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +00008344
8345 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +00008346 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +00008347 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +00008348 -q, --quiet, --silent
8349 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +00008350 -d, --debug don't remove temporary files
8351 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +00008352 --file=FILE[:TEMPLATE]
8353 instantiate the configuration file FILE
8354 --header=FILE[:TEMPLATE]
8355 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +00008356
8357Configuration files:
8358$config_files
8359
8360Configuration headers:
8361$config_headers
8362
8363Configuration commands:
8364$config_commands
8365
thestig@chromium.org43e6db72010-11-08 19:49:41 +00008366Report bugs to <google-breakpad-dev@googlegroups.com>."
brynercb91a2f2006-08-25 21:14:45 +00008367
mmentovai8c2a4de2006-09-20 16:20:15 +00008368_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +00008370ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +00008371ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +00008372breakpad config.status 0.1
mark@chromium.orge9165f42013-11-23 01:45:20 +00008373configured by $0, generated by GNU Autoconf 2.69,
jimblandydc4029a2010-02-02 17:39:51 +00008374 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +00008375
mark@chromium.orge9165f42013-11-23 01:45:20 +00008376Copyright (C) 2012 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00008377This config.status script is free software; the Free Software Foundation
8378gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +00008379
8380ac_pwd='$ac_pwd'
8381srcdir='$srcdir'
8382INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +00008383MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +00008384AWK='$AWK'
8385test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +00008386_ACEOF
8387
jimblandy92b1f832009-12-23 22:23:49 +00008388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8389# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +00008390ac_need_defaults=:
8391while test $# != 0
8392do
8393 case $1 in
mark@chromium.orge9165f42013-11-23 01:45:20 +00008394 --*=?*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00008397 ac_shift=:
8398 ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00008399 --*=)
8400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8401 ac_optarg=
8402 ac_shift=:
8403 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008404 *)
brynercb91a2f2006-08-25 21:14:45 +00008405 ac_option=$1
8406 ac_optarg=$2
8407 ac_shift=shift
8408 ;;
brynercb91a2f2006-08-25 21:14:45 +00008409 esac
8410
8411 case $ac_option in
8412 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +00008413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8414 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +00008416 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +00008417 --config | --confi | --conf | --con | --co | --c )
8418 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008419 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +00008420 debug=: ;;
8421 --file | --fil | --fi | --f )
8422 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00008423 case $ac_optarg in
8424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00008425 '') as_fn_error $? "missing file argument" ;;
jimblandy92b1f832009-12-23 22:23:49 +00008426 esac
8427 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00008428 ac_need_defaults=false;;
8429 --header | --heade | --head | --hea )
8430 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00008431 case $ac_optarg in
8432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8433 esac
8434 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00008435 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008436 --he | --h)
8437 # Conflict between --help and --header
mark@chromium.orge9165f42013-11-23 01:45:20 +00008438 as_fn_error $? "ambiguous option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00008439Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +00008440 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +00008441 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +00008442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8444 ac_cs_silent=: ;;
8445
8446 # This is an error.
mark@chromium.orge9165f42013-11-23 01:45:20 +00008447 -*) as_fn_error $? "unrecognized option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00008448Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +00008449
jimblandy92b1f832009-12-23 22:23:49 +00008450 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +00008451 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +00008452
8453 esac
8454 shift
8455done
8456
8457ac_configure_extra_args=
8458
8459if $ac_cs_silent; then
8460 exec 6>/dev/null
8461 ac_configure_extra_args="$ac_configure_extra_args --silent"
8462fi
8463
8464_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008466if \$ac_cs_recheck; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008467 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
jimblandy92b1f832009-12-23 22:23:49 +00008468 shift
8469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8470 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +00008471 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +00008472 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +00008473fi
8474
8475_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00008477exec 5>>config.log
8478{
8479 echo
8480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8481## Running $as_me. ##
8482_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +00008483 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +00008484} >&5
brynercb91a2f2006-08-25 21:14:45 +00008485
mmentovai8c2a4de2006-09-20 16:20:15 +00008486_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008488#
mmentovai8c2a4de2006-09-20 16:20:15 +00008489# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +00008490#
brynercb91a2f2006-08-25 21:14:45 +00008491AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8492
8493_ACEOF
8494
jimblandy92b1f832009-12-23 22:23:49 +00008495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00008496
8497# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +00008498for ac_config_target in $ac_config_targets
8499do
mmentovai8c2a4de2006-09-20 16:20:15 +00008500 case $ac_config_target in
8501 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8502 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
vapier@chromium.org1b309ed2014-08-27 02:10:55 +00008503 "breakpad.pc") CONFIG_FILES="$CONFIG_FILES breakpad.pc" ;;
8504 "breakpad-client.pc") CONFIG_FILES="$CONFIG_FILES breakpad-client.pc" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008505 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8506
mark@chromium.orge9165f42013-11-23 01:45:20 +00008507 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +00008508 esac
8509done
8510
mmentovai8c2a4de2006-09-20 16:20:15 +00008511
brynercb91a2f2006-08-25 21:14:45 +00008512# If the user did not use the arguments to specify the items to instantiate,
8513# then the envvar interface is used. Set only those that are not.
8514# We use the long form for the default assignment because of an extremely
8515# bizarre bug on SunOS 4.1.3.
8516if $ac_need_defaults; then
8517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8518 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8520fi
8521
8522# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +00008523# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +00008524# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +00008525# Hook for its removal unless debugging.
8526# Note that there is a small window in which the directory will not be cleaned:
8527# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +00008528$debug ||
8529{
mark@chromium.orge9165f42013-11-23 01:45:20 +00008530 tmp= ac_tmp=
mmentovai8c2a4de2006-09-20 16:20:15 +00008531 trap 'exit_status=$?
mark@chromium.orge9165f42013-11-23 01:45:20 +00008532 : "${ac_tmp:=$tmp}"
8533 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00008534' 0
jimblandy92b1f832009-12-23 22:23:49 +00008535 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +00008536}
brynercb91a2f2006-08-25 21:14:45 +00008537# Create a (secure) tmp directory for tmp files.
8538
8539{
mmentovai8c2a4de2006-09-20 16:20:15 +00008540 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00008541 test -d "$tmp"
brynercb91a2f2006-08-25 21:14:45 +00008542} ||
8543{
mmentovai8c2a4de2006-09-20 16:20:15 +00008544 tmp=./conf$$-$RANDOM
8545 (umask 077 && mkdir "$tmp")
mark@chromium.orge9165f42013-11-23 01:45:20 +00008546} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8547ac_tmp=$tmp
brynercb91a2f2006-08-25 21:14:45 +00008548
jimblandy92b1f832009-12-23 22:23:49 +00008549# Set up the scripts for CONFIG_FILES section.
8550# No need to generate them if there are no CONFIG_FILES.
8551# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +00008552if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +00008553
jimblandy92b1f832009-12-23 22:23:49 +00008554
8555ac_cr=`echo X | tr X '\015'`
8556# On cygwin, bash can eat \r inside `` if the user requested igncr.
8557# But we know of no other shell where ac_cr would be empty at this
8558# point, so we can use a bashism as a fallback.
8559if test "x$ac_cr" = x; then
8560 eval ac_cr=\$\'\\r\'
8561fi
8562ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8563if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008564 ac_cs_awk_cr='\\r'
jimblandy92b1f832009-12-23 22:23:49 +00008565else
8566 ac_cs_awk_cr=$ac_cr
8567fi
8568
mark@chromium.orge9165f42013-11-23 01:45:20 +00008569echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +00008570_ACEOF
8571
mmentovai8c2a4de2006-09-20 16:20:15 +00008572
jimblandy92b1f832009-12-23 22:23:49 +00008573{
8574 echo "cat >conf$$subs.awk <<_ACEOF" &&
8575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8576 echo "_ACEOF"
8577} >conf$$subs.sh ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00008578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8579ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
mmentovai8c2a4de2006-09-20 16:20:15 +00008580ac_delim='%!_!# '
8581for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +00008582 . ./conf$$subs.sh ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00008583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00008584
jimblandy92b1f832009-12-23 22:23:49 +00008585 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8586 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008587 break
8588 elif $ac_last_try; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00008590 else
8591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +00008592 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008593done
jimblandy92b1f832009-12-23 22:23:49 +00008594rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +00008595
jimblandy92b1f832009-12-23 22:23:49 +00008596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mark@chromium.orge9165f42013-11-23 01:45:20 +00008597cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +00008598_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008599sed -n '
8600h
8601s/^/S["/; s/!.*/"]=/
8602p
8603g
8604s/^[^!]*!//
8605:repl
8606t repl
8607s/'"$ac_delim"'$//
8608t delim
8609:nl
8610h
jimblandydc4029a2010-02-02 17:39:51 +00008611s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00008612t more1
8613s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8614p
8615n
8616b repl
8617:more1
8618s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8619p
8620g
8621s/.\{148\}//
8622t nl
8623:delim
8624h
jimblandydc4029a2010-02-02 17:39:51 +00008625s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00008626t more2
8627s/["\\]/\\&/g; s/^/"/; s/$/"/
8628p
8629b
8630:more2
8631s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8632p
8633g
8634s/.\{148\}//
8635t delim
8636' <conf$$subs.awk | sed '
8637/^[^""]/{
8638 N
8639 s/\n//
8640}
8641' >>$CONFIG_STATUS || ac_write_fail=1
8642rm -f conf$$subs.awk
8643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8644_ACAWK
mark@chromium.orge9165f42013-11-23 01:45:20 +00008645cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
jimblandy92b1f832009-12-23 22:23:49 +00008646 for (key in S) S_is_set[key] = 1
8647 FS = ""
8648
8649}
8650{
8651 line = $ 0
8652 nfields = split(line, field, "@")
8653 substed = 0
8654 len = length(field[1])
8655 for (i = 2; i < nfields; i++) {
8656 key = field[i]
8657 keylen = length(key)
8658 if (S_is_set[key]) {
8659 value = S[key]
8660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8661 len += length(value) + length(field[++i])
8662 substed = 1
8663 } else
8664 len += 1 + keylen
8665 }
8666
8667 print line
8668}
8669
8670_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +00008671_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8673if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8674 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8675else
8676 cat
mark@chromium.orge9165f42013-11-23 01:45:20 +00008677fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8678 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00008679_ACEOF
8680
mark@chromium.orge9165f42013-11-23 01:45:20 +00008681# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8682# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
mmentovai8c2a4de2006-09-20 16:20:15 +00008683# trailing colons and then remove the whole line if VPATH becomes empty
8684# (actually we leave an empty line to preserve line numbers).
8685if test "x$srcdir" = x.; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008686 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8687h
8688s///
8689s/^/:/
8690s/[ ]*$/:/
8691s/:\$(srcdir):/:/g
8692s/:\${srcdir}:/:/g
8693s/:@srcdir@:/:/g
8694s/^:*//
mmentovai8c2a4de2006-09-20 16:20:15 +00008695s/:*$//
mark@chromium.orge9165f42013-11-23 01:45:20 +00008696x
8697s/\(=[ ]*\).*/\1/
8698G
8699s/\n//
mmentovai8c2a4de2006-09-20 16:20:15 +00008700s/^[^=]*=[ ]*$//
8701}'
8702fi
8703
jimblandy92b1f832009-12-23 22:23:49 +00008704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008705fi # test -n "$CONFIG_FILES"
8706
jimblandy92b1f832009-12-23 22:23:49 +00008707# Set up the scripts for CONFIG_HEADERS section.
8708# No need to generate them if there are no CONFIG_HEADERS.
8709# This happens for instance with `./config.status Makefile'.
8710if test -n "$CONFIG_HEADERS"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008711cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
jimblandy92b1f832009-12-23 22:23:49 +00008712BEGIN {
8713_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00008714
jimblandy92b1f832009-12-23 22:23:49 +00008715# Transform confdefs.h into an awk script `defines.awk', embedded as
8716# here-document in config.status, that substitutes the proper values into
8717# config.h.in to produce config.h.
8718
8719# Create a delimiter string that does not exist in confdefs.h, to ease
8720# handling of long lines.
8721ac_delim='%!_!# '
8722for ac_last_try in false false :; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00008723 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8724 if test -z "$ac_tt"; then
jimblandy92b1f832009-12-23 22:23:49 +00008725 break
8726 elif $ac_last_try; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008727 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00008728 else
8729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8730 fi
8731done
8732
8733# For the awk script, D is an array of macro values keyed by name,
8734# likewise P contains macro parameters if any. Preserve backslash
8735# newline sequences.
8736
8737ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8738sed -n '
8739s/.\{148\}/&'"$ac_delim"'/g
8740t rset
8741:rset
8742s/^[ ]*#[ ]*define[ ][ ]*/ /
8743t def
8744d
8745:def
8746s/\\$//
8747t bsnl
8748s/["\\]/\\&/g
8749s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8750D["\1"]=" \3"/p
8751s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8752d
8753:bsnl
8754s/["\\]/\\&/g
8755s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8756D["\1"]=" \3\\\\\\n"\\/p
8757t cont
8758s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8759t cont
8760d
8761:cont
8762n
8763s/.\{148\}/&'"$ac_delim"'/g
8764t clear
8765:clear
8766s/\\$//
8767t bsnlc
8768s/["\\]/\\&/g; s/^/"/; s/$/"/p
8769d
8770:bsnlc
8771s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8772b cont
8773' <confdefs.h | sed '
8774s/'"$ac_delim"'/"\\\
8775"/g' >>$CONFIG_STATUS || ac_write_fail=1
8776
8777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8778 for (key in D) D_is_set[key] = 1
8779 FS = ""
8780}
8781/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8782 line = \$ 0
8783 split(line, arg, " ")
8784 if (arg[1] == "#") {
8785 defundef = arg[2]
8786 mac1 = arg[3]
8787 } else {
8788 defundef = substr(arg[1], 2)
8789 mac1 = arg[2]
8790 }
8791 split(mac1, mac2, "(") #)
8792 macro = mac2[1]
8793 prefix = substr(line, 1, index(line, defundef) - 1)
8794 if (D_is_set[macro]) {
8795 # Preserve the white space surrounding the "#".
8796 print prefix "define", macro P[macro] D[macro]
8797 next
8798 } else {
8799 # Replace #undef with comments. This is necessary, for example,
8800 # in the case of _POSIX_SOURCE, which is predefined and required
8801 # on some systems where configure will not decide to define it.
8802 if (defundef == "undef") {
8803 print "/*", prefix defundef, macro, "*/"
8804 next
8805 }
8806 }
8807}
8808{ print }
8809_ACAWK
8810_ACEOF
8811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mark@chromium.orge9165f42013-11-23 01:45:20 +00008812 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00008813fi # test -n "$CONFIG_HEADERS"
8814
8815
8816eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8817shift
8818for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +00008819do
8820 case $ac_tag in
8821 :[FHLC]) ac_mode=$ac_tag; continue;;
8822 esac
8823 case $ac_mode$ac_tag in
8824 :[FHL]*:*);;
mark@chromium.orge9165f42013-11-23 01:45:20 +00008825 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008826 :[FH]-) ac_tag=-:-;;
8827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8828 esac
8829 ac_save_IFS=$IFS
8830 IFS=:
8831 set x $ac_tag
8832 IFS=$ac_save_IFS
8833 shift
8834 ac_file=$1
8835 shift
8836
8837 case $ac_mode in
8838 :L) ac_source=$1;;
8839 :[FH])
8840 ac_file_inputs=
8841 for ac_f
8842 do
8843 case $ac_f in
mark@chromium.orge9165f42013-11-23 01:45:20 +00008844 -) ac_f="$ac_tmp/stdin";;
mmentovai8c2a4de2006-09-20 16:20:15 +00008845 *) # Look for the file first in the build tree, then in the source tree
8846 # (if the path is not absolute). The absolute path cannot be DOS-style,
8847 # because $ac_f cannot contain `:'.
8848 test -f "$ac_f" ||
8849 case $ac_f in
8850 [\\/$]*) false;;
8851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8852 esac ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00008853 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008854 esac
jimblandy92b1f832009-12-23 22:23:49 +00008855 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8856 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +00008857 done
8858
8859 # Let's still pretend it is `configure' which instantiates (i.e., don't
8860 # use $as_me), people would be surprised to read:
8861 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +00008862 configure_input='Generated from '`
8863 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8864 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +00008865 if test x"$ac_file" != x-; then
8866 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +00008867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8868$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00008869 fi
jimblandy92b1f832009-12-23 22:23:49 +00008870 # Neutralize special characters interpreted by sed in replacement strings.
8871 case $configure_input in #(
8872 *\&* | *\|* | *\\* )
8873 ac_sed_conf_input=`$as_echo "$configure_input" |
8874 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8875 *) ac_sed_conf_input=$configure_input;;
8876 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00008877
8878 case $ac_tag in
mark@chromium.orge9165f42013-11-23 01:45:20 +00008879 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008881 esac
8882 ;;
brynercb91a2f2006-08-25 21:14:45 +00008883 esac
8884
mmentovai8c2a4de2006-09-20 16:20:15 +00008885 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +00008886$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8887 X"$ac_file" : 'X\(//\)[^/]' \| \
8888 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00008889 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00008890$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00008891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8892 s//\1/
8893 q
8894 }
8895 /^X\(\/\/\)[^/].*/{
8896 s//\1/
8897 q
8898 }
8899 /^X\(\/\/\)$/{
8900 s//\1/
8901 q
8902 }
8903 /^X\(\/\).*/{
8904 s//\1/
8905 q
8906 }
8907 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00008908 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00008909 ac_builddir=.
8910
mmentovai8c2a4de2006-09-20 16:20:15 +00008911case "$ac_dir" in
8912.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8913*)
jimblandy92b1f832009-12-23 22:23:49 +00008914 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00008915 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00008916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00008917 case $ac_top_builddir_sub in
8918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8920 esac ;;
8921esac
8922ac_abs_top_builddir=$ac_pwd
8923ac_abs_builddir=$ac_pwd$ac_dir_suffix
8924# for backward compatibility:
8925ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00008926
8927case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00008928 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00008929 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00008930 ac_top_srcdir=$ac_top_builddir_sub
8931 ac_abs_top_srcdir=$ac_pwd ;;
8932 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00008933 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00008934 ac_top_srcdir=$srcdir
8935 ac_abs_top_srcdir=$srcdir ;;
8936 *) # Relative name.
8937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8938 ac_top_srcdir=$ac_top_build_prefix$srcdir
8939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00008940esac
mmentovai8c2a4de2006-09-20 16:20:15 +00008941ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00008942
brynercb91a2f2006-08-25 21:14:45 +00008943
mmentovai8c2a4de2006-09-20 16:20:15 +00008944 case $ac_mode in
8945 :F)
8946 #
8947 # CONFIG_FILE
8948 #
brynercb91a2f2006-08-25 21:14:45 +00008949
8950 case $INSTALL in
8951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008952 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +00008953 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +00008954 ac_MKDIR_P=$MKDIR_P
8955 case $MKDIR_P in
8956 [\\/$]* | ?:[\\/]* ) ;;
8957 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8958 esac
brynercb91a2f2006-08-25 21:14:45 +00008959_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00008960
jimblandy92b1f832009-12-23 22:23:49 +00008961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00008962# If the template does not know about datarootdir, expand it.
8963# FIXME: This hack should be removed a few years after 2.60.
8964ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +00008965ac_sed_dataroot='
8966/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +00008967 p
8968 q
8969}
8970/@datadir@/p
8971/@docdir@/p
8972/@infodir@/p
8973/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +00008974/@mandir@/p'
8975case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +00008976*datarootdir*) ac_datarootdir_seen=yes;;
8977*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +00008978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8979$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00008980_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00008982 ac_datarootdir_hack='
8983 s&@datadir@&$datadir&g
8984 s&@docdir@&$docdir&g
8985 s&@infodir@&$infodir&g
8986 s&@localedir@&$localedir&g
8987 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +00008988 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008989esac
8990_ACEOF
8991
8992# Neutralize VPATH when `$srcdir' = `.'.
8993# Shell code in configure.ac might set extrasub.
8994# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +00008995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8996ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +00008997$extrasub
8998_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00009000:t
9001/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +00009002s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00009003s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +00009004s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00009005s&@srcdir@&$ac_srcdir&;t t
9006s&@abs_srcdir@&$ac_abs_srcdir&;t t
9007s&@top_srcdir@&$ac_top_srcdir&;t t
9008s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9009s&@builddir@&$ac_builddir&;t t
9010s&@abs_builddir@&$ac_abs_builddir&;t t
9011s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9012s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +00009013s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00009014$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +00009015"
mark@chromium.orge9165f42013-11-23 01:45:20 +00009016eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9017 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00009018
mmentovai8c2a4de2006-09-20 16:20:15 +00009019test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00009020 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9021 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9022 "$ac_tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +00009023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mark@chromium.orge9165f42013-11-23 01:45:20 +00009024which seems to be undefined. Please make sure it is defined" >&5
jimblandy92b1f832009-12-23 22:23:49 +00009025$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mark@chromium.orge9165f42013-11-23 01:45:20 +00009026which seems to be undefined. Please make sure it is defined" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00009027
mark@chromium.orge9165f42013-11-23 01:45:20 +00009028 rm -f "$ac_tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +00009029 case $ac_file in
mark@chromium.orge9165f42013-11-23 01:45:20 +00009030 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9031 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
jimblandy92b1f832009-12-23 22:23:49 +00009032 esac \
mark@chromium.orge9165f42013-11-23 01:45:20 +00009033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00009034 ;;
9035 :H)
9036 #
9037 # CONFIG_HEADER
9038 #
brynercb91a2f2006-08-25 21:14:45 +00009039 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +00009040 {
9041 $as_echo "/* $configure_input */" \
mark@chromium.orge9165f42013-11-23 01:45:20 +00009042 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9043 } >"$ac_tmp/config.h" \
9044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9045 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
jimblandy92b1f832009-12-23 22:23:49 +00009046 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9047$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00009048 else
jimblandy92b1f832009-12-23 22:23:49 +00009049 rm -f "$ac_file"
mark@chromium.orge9165f42013-11-23 01:45:20 +00009050 mv "$ac_tmp/config.h" "$ac_file" \
9051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00009052 fi
9053 else
jimblandy92b1f832009-12-23 22:23:49 +00009054 $as_echo "/* $configure_input */" \
mark@chromium.orge9165f42013-11-23 01:45:20 +00009055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9056 || as_fn_error $? "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00009057 fi
jimblandy92b1f832009-12-23 22:23:49 +00009058# Compute "$ac_file"'s index in $config_headers.
9059_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +00009060_am_stamp_count=1
9061for _am_header in $config_headers :; do
9062 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +00009063 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +00009064 break ;;
9065 * )
9066 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9067 esac
9068done
jimblandy92b1f832009-12-23 22:23:49 +00009069echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9070$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9071 X"$_am_arg" : 'X\(//\)[^/]' \| \
9072 X"$_am_arg" : 'X\(//\)$' \| \
9073 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9074$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +00009075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9076 s//\1/
9077 q
9078 }
9079 /^X\(\/\/\)[^/].*/{
9080 s//\1/
9081 q
9082 }
9083 /^X\(\/\/\)$/{
9084 s//\1/
9085 q
9086 }
9087 /^X\(\/\).*/{
9088 s//\1/
9089 q
9090 }
9091 s/.*/./; q'`/stamp-h$_am_stamp_count
9092 ;;
brynercb91a2f2006-08-25 21:14:45 +00009093
jimblandy92b1f832009-12-23 22:23:49 +00009094 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9095$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00009096 ;;
9097 esac
brynercb91a2f2006-08-25 21:14:45 +00009098
9099
mmentovai8c2a4de2006-09-20 16:20:15 +00009100 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +00009101 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
mark@chromium.orge9165f42013-11-23 01:45:20 +00009102 # Older Autoconf quotes --file arguments for eval, but not when files
jimblandy92b1f832009-12-23 22:23:49 +00009103 # are listed without --file. Let's play safe and only enable the eval
9104 # if we detect the quoting.
9105 case $CONFIG_FILES in
9106 *\'*) eval set x "$CONFIG_FILES" ;;
9107 *) set x $CONFIG_FILES ;;
9108 esac
9109 shift
9110 for mf
9111 do
9112 # Strip MF so we end up with the name of the file.
9113 mf=`echo "$mf" | sed -e 's/:.*$//'`
9114 # Check whether this is an Automake generated Makefile or not.
mark@chromium.orge9165f42013-11-23 01:45:20 +00009115 # We used to match only the files named 'Makefile.in', but
jimblandy92b1f832009-12-23 22:23:49 +00009116 # some people rename them; so instead we look at the file content.
9117 # Grep'ing the first line is not enough: some people post-process
9118 # each Makefile.in and add a new line on top of each file to say so.
9119 # Grep'ing the whole file is not good either: AIX grep has a line
9120 # limit of 2048, but all sed's we know have understand at least 4000.
9121 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9122 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +00009123$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9124 X"$mf" : 'X\(//\)[^/]' \| \
9125 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00009126 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00009127$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +00009128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9129 s//\1/
9130 q
9131 }
9132 /^X\(\/\/\)[^/].*/{
9133 s//\1/
9134 q
9135 }
9136 /^X\(\/\/\)$/{
9137 s//\1/
9138 q
9139 }
9140 /^X\(\/\).*/{
9141 s//\1/
9142 q
9143 }
9144 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00009145 else
9146 continue
9147 fi
9148 # Extract the definition of DEPDIR, am__include, and am__quote
mark@chromium.orge9165f42013-11-23 01:45:20 +00009149 # from the Makefile without running 'make'.
jimblandy92b1f832009-12-23 22:23:49 +00009150 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9151 test -z "$DEPDIR" && continue
9152 am__include=`sed -n 's/^am__include = //p' < "$mf"`
mark@chromium.orge9165f42013-11-23 01:45:20 +00009153 test -z "$am__include" && continue
jimblandy92b1f832009-12-23 22:23:49 +00009154 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
jimblandy92b1f832009-12-23 22:23:49 +00009155 # Find all dependency output files, they are included files with
9156 # $(DEPDIR) in their names. We invoke sed twice because it is the
9157 # simplest approach to changing $(DEPDIR) to its actual value in the
9158 # expansion.
9159 for file in `sed -n "
9160 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
mark@chromium.orge9165f42013-11-23 01:45:20 +00009161 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
jimblandy92b1f832009-12-23 22:23:49 +00009162 # Make sure the directory exists.
9163 test -f "$dirpart/$file" && continue
9164 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +00009165$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9166 X"$file" : 'X\(//\)[^/]' \| \
9167 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00009168 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00009169$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00009170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9171 s//\1/
9172 q
9173 }
9174 /^X\(\/\/\)[^/].*/{
9175 s//\1/
9176 q
9177 }
9178 /^X\(\/\/\)$/{
9179 s//\1/
9180 q
9181 }
9182 /^X\(\/\).*/{
9183 s//\1/
9184 q
9185 }
9186 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00009187 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9188 # echo "creating $dirpart/$file"
9189 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +00009190 done
brynercb91a2f2006-08-25 21:14:45 +00009191 done
jimblandy92b1f832009-12-23 22:23:49 +00009192}
9193 ;;
brynercb91a2f2006-08-25 21:14:45 +00009194
mmentovai8c2a4de2006-09-20 16:20:15 +00009195 esac
9196done # for ac_tag
9197
brynercb91a2f2006-08-25 21:14:45 +00009198
jimblandy92b1f832009-12-23 22:23:49 +00009199as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +00009200_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00009201ac_clean_files=$ac_clean_files_save
9202
jimblandy92b1f832009-12-23 22:23:49 +00009203test $ac_write_fail = 0 ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00009204 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00009205
brynercb91a2f2006-08-25 21:14:45 +00009206
9207# configure is writing to config.log, and then calls config.status.
9208# config.status does its own redirection, appending to config.log.
9209# Unfortunately, on DOS this fails, as config.log is still kept open
9210# by configure, so config.status won't be able to write to it; its
9211# output is simply discarded. So we exec the FD to /dev/null,
9212# effectively closing config.log, so it can be properly (re)opened and
9213# appended to by config.status. When coming back to configure, we
9214# need to make the FD available again.
9215if test "$no_create" != yes; then
9216 ac_cs_success=:
9217 ac_config_status_args=
9218 test "$silent" = yes &&
9219 ac_config_status_args="$ac_config_status_args --quiet"
9220 exec 5>/dev/null
9221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9222 exec 5>>config.log
9223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9224 # would make configure fail if this is the last instruction.
mark@chromium.orge9165f42013-11-23 01:45:20 +00009225 $ac_cs_success || as_fn_exit 1
jimblandy92b1f832009-12-23 22:23:49 +00009226fi
9227if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9229$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00009230fi
9231