blob: eaa623f7587bb767e77f1faa0208417201604a02 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ted.mielczareke574a2a2010-10-05 19:38:22 +00003# Generated by GNU Autoconf 2.65 for breakpad 0.1.
brynercb91a2f2006-08-25 21:14:45 +00004#
5# Report bugs to <opensource@google.com>.
6#
jimblandydc4029a2010-02-02 17:39:51 +00007#
mmentovai8c2a4de2006-09-20 16:20:15 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ted.mielczareke574a2a2010-10-05 19:38:22 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
jimblandydc4029a2010-02-02 17:39:51 +000011#
jimblandy92b1f832009-12-23 22:23:49 +000012#
brynercb91a2f2006-08-25 21:14:45 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
jimblandy92b1f832009-12-23 22:23:49 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000018
mmentovaiaf3c43f2007-05-17 18:34:37 +000019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000022 emulate sh
23 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000027 setopt NO_GLOB_SUBST
28else
jimblandy92b1f832009-12-23 22:23:49 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000034esac
brynercb91a2f2006-08-25 21:14:45 +000035fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000036
37
jimblandy92b1f832009-12-23 22:23:49 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
brynercb91a2f2006-08-25 21:14:45 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
mmentovai8c2a4de2006-09-20 16:20:15 +000083fi
brynercb91a2f2006-08-25 21:14:45 +000084
mmentovai8c2a4de2006-09-20 16:20:15 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000094case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
mmentovai8c2a4de2006-09-20 16:20:15 +0000103IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +0000104
mmentovai8c2a4de2006-09-20 16:20:15 +0000105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +0000115fi
116
jimblandy92b1f832009-12-23 22:23:49 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +0000134
jimblandy92b1f832009-12-23 22:23:49 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: opensource@google.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
ted.mielczareke574a2a2010-10-05 19:38:22 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +0000323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
ted.mielczareke574a2a2010-10-05 19:38:22 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
jimblandy92b1f832009-12-23 22:23:49 +0000364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ted.mielczareke574a2a2010-10-05 19:38:22 +0000366# script with status $?, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +0000367as_fn_error ()
368{
ted.mielczareke574a2a2010-10-05 19:38:22 +0000369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
jimblandy92b1f832009-12-23 22:23:49 +0000373 fi
ted.mielczareke574a2a2010-10-05 19:38:22 +0000374 $as_echo "$as_me: error: $1" >&2
jimblandy92b1f832009-12-23 22:23:49 +0000375 as_fn_exit $as_status
376} # as_fn_error
377
mmentovai8c2a4de2006-09-20 16:20:15 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
jimblandy92b1f832009-12-23 22:23:49 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000396
mmentovai8c2a4de2006-09-20 16:20:15 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +0000401$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +0000402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
jimblandy92b1f832009-12-23 22:23:49 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +0000422
423
jimblandy92b1f832009-12-23 22:23:49 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
mmentovai8c2a4de2006-09-20 16:20:15 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000433 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000438 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000441 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000442 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000443 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000444 chmod +x "$as_me.lineno" ||
jimblandy92b1f832009-12-23 22:23:49 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
brynercb91a2f2006-08-25 21:14:45 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000451 # Exit status is that of the last command.
452 exit
453}
454
mmentovai8c2a4de2006-09-20 16:20:15 +0000455ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +0000456case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +0000457-n*)
jimblandy92b1f832009-12-23 22:23:49 +0000458 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +0000463 esac;;
464*)
465 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000466esac
467
brynercb91a2f2006-08-25 21:14:45 +0000468rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +0000473 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +0000474fi
jimblandy92b1f832009-12-23 22:23:49 +0000475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
brynercb91a2f2006-08-25 21:14:45 +0000487 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +0000488 fi
brynercb91a2f2006-08-25 21:14:45 +0000489else
490 as_ln_s='cp -p'
491fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000494
495if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
mmentovaiaf3c43f2007-05-17 18:34:37 +0000502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +0000504else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +0000513 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +0000514 else
jimblandy92b1f832009-12-23 22:23:49 +0000515 case $1 in #(
516 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +0000517 esac;
jimblandy92b1f832009-12-23 22:23:49 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
mmentovai8c2a4de2006-09-20 16:20:15 +0000522fi
mmentovaiaf3c43f2007-05-17 18:34:37 +0000523as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +0000524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
jimblandydc4029a2010-02-02 17:39:51 +0000532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
mmentovai8c2a4de2006-09-20 16:20:15 +0000534
brynercb91a2f2006-08-25 21:14:45 +0000535# Name of the host.
ted.mielczareke574a2a2010-10-05 19:38:22 +0000536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
brynercb91a2f2006-08-25 21:14:45 +0000537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
brynercb91a2f2006-08-25 21:14:45 +0000540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000544ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000545ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000546LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
brynercb91a2f2006-08-25 21:14:45 +0000551
brynercb91a2f2006-08-25 21:14:45 +0000552# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000553PACKAGE_NAME='breakpad'
554PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000555PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000556PACKAGE_STRING='breakpad 0.1'
brynercb91a2f2006-08-25 21:14:45 +0000557PACKAGE_BUGREPORT='opensource@google.com'
jimblandy92b1f832009-12-23 22:23:49 +0000558PACKAGE_URL=''
brynercb91a2f2006-08-25 21:14:45 +0000559
560ac_unique_file="README"
jimblandy92b1f832009-12-23 22:23:49 +0000561ac_subst_vars='am__EXEEXT_FALSE
562am__EXEEXT_TRUE
563LTLIBOBJS
mmentovai8c2a4de2006-09-20 16:20:15 +0000564LIBOBJS
jimblandy92b1f832009-12-23 22:23:49 +0000565SELFTEST_FALSE
566SELFTEST_TRUE
ted.mielczareke574a2a2010-10-05 19:38:22 +0000567DISABLE_PROCESSOR_FALSE
568DISABLE_PROCESSOR_TRUE
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000569LINUX_HOST_FALSE
570LINUX_HOST_TRUE
nealsidde545c02010-03-02 00:39:48 +0000571PTHREAD_CFLAGS
572PTHREAD_LIBS
573PTHREAD_CC
574ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000575EGREP
576GREP
ted.mielczarekd192a712010-10-05 19:38:51 +0000577RANLIB
jimblandy92b1f832009-12-23 22:23:49 +0000578am__fastdepCXX_FALSE
579am__fastdepCXX_TRUE
580CXXDEPMODE
581ac_ct_CXX
582CXXFLAGS
583CXX
584CPP
585am__fastdepCC_FALSE
586am__fastdepCC_TRUE
587CCDEPMODE
588AMDEPBACKSLASH
589AMDEP_FALSE
590AMDEP_TRUE
591am__quote
592am__include
593DEPDIR
594OBJEXT
595EXEEXT
596ac_ct_CC
597CPPFLAGS
598LDFLAGS
599CFLAGS
600CC
601am__untar
602am__tar
603AMTAR
604am__leading_dot
605SET_MAKE
606AWK
607mkdir_p
608MKDIR_P
609INSTALL_STRIP_PROGRAM
610STRIP
611install_sh
612MAKEINFO
613AUTOHEADER
614AUTOMAKE
615AUTOCONF
616ACLOCAL
617VERSION
618PACKAGE
619CYGPATH_W
620am__isrc
621INSTALL_DATA
622INSTALL_SCRIPT
623INSTALL_PROGRAM
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000624host_os
625host_vendor
626host_cpu
627host
628build_os
629build_vendor
630build_cpu
631build
jimblandy92b1f832009-12-23 22:23:49 +0000632target_alias
633host_alias
634build_alias
635LIBS
636ECHO_T
637ECHO_N
638ECHO_C
639DEFS
640mandir
641localedir
642libdir
643psdir
644pdfdir
645dvidir
646htmldir
647infodir
648docdir
649oldincludedir
650includedir
651localstatedir
652sharedstatedir
653sysconfdir
654datadir
655datarootdir
656libexecdir
657sbindir
658bindir
659program_transform_name
660prefix
661exec_prefix
662PACKAGE_URL
663PACKAGE_BUGREPORT
664PACKAGE_STRING
665PACKAGE_VERSION
666PACKAGE_TARNAME
667PACKAGE_NAME
668PATH_SEPARATOR
669SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000670ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000671ac_user_opts='
672enable_option_checking
673enable_dependency_tracking
nealsidde545c02010-03-02 00:39:48 +0000674enable_m32
ted.mielczareke574a2a2010-10-05 19:38:22 +0000675enable_processor
jimblandy92b1f832009-12-23 22:23:49 +0000676enable_selftest
677'
mmentovai8c2a4de2006-09-20 16:20:15 +0000678 ac_precious_vars='build_alias
679host_alias
680target_alias
681CC
682CFLAGS
683LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000684LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000685CPPFLAGS
686CPP
687CXX
688CXXFLAGS
ted.mielczarekd192a712010-10-05 19:38:51 +0000689CCC'
mmentovai8c2a4de2006-09-20 16:20:15 +0000690
brynercb91a2f2006-08-25 21:14:45 +0000691
692# Initialize some variables set by options.
693ac_init_help=
694ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000695ac_unrecognized_opts=
696ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000697# The variables have the same names as the options, with
698# dashes changed to underlines.
699cache_file=/dev/null
700exec_prefix=NONE
701no_create=
702no_recursion=
703prefix=NONE
704program_prefix=NONE
705program_suffix=NONE
706program_transform_name=s,x,x,
707silent=
708site=
709srcdir=
710verbose=
711x_includes=NONE
712x_libraries=NONE
713
714# Installation directory options.
715# These are left unexpanded so users can "make install exec_prefix=/foo"
716# and all the variables that are supposed to be based on exec_prefix
717# by default will actually change.
718# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000719# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000720bindir='${exec_prefix}/bin'
721sbindir='${exec_prefix}/sbin'
722libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000723datarootdir='${prefix}/share'
724datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000725sysconfdir='${prefix}/etc'
726sharedstatedir='${prefix}/com'
727localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000728includedir='${prefix}/include'
729oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000730docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
731infodir='${datarootdir}/info'
732htmldir='${docdir}'
733dvidir='${docdir}'
734pdfdir='${docdir}'
735psdir='${docdir}'
736libdir='${exec_prefix}/lib'
737localedir='${datarootdir}/locale'
738mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000739
740ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000741ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000742for ac_option
743do
744 # If the previous option needs an argument, assign it.
745 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000746 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000747 ac_prev=
748 continue
749 fi
750
mmentovai8c2a4de2006-09-20 16:20:15 +0000751 case $ac_option in
ted.mielczareke574a2a2010-10-05 19:38:22 +0000752 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
753 *) ac_optarg=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000754 esac
brynercb91a2f2006-08-25 21:14:45 +0000755
756 # Accept the important Cygnus configure options, so we can diagnose typos.
757
mmentovai8c2a4de2006-09-20 16:20:15 +0000758 case $ac_dashdash$ac_option in
759 --)
760 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000761
762 -bindir | --bindir | --bindi | --bind | --bin | --bi)
763 ac_prev=bindir ;;
764 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
765 bindir=$ac_optarg ;;
766
767 -build | --build | --buil | --bui | --bu)
768 ac_prev=build_alias ;;
769 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
770 build_alias=$ac_optarg ;;
771
772 -cache-file | --cache-file | --cache-fil | --cache-fi \
773 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
774 ac_prev=cache_file ;;
775 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
776 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
777 cache_file=$ac_optarg ;;
778
779 --config-cache | -C)
780 cache_file=config.cache ;;
781
mmentovai8c2a4de2006-09-20 16:20:15 +0000782 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000783 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000784 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000785 datadir=$ac_optarg ;;
786
mmentovai8c2a4de2006-09-20 16:20:15 +0000787 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
788 | --dataroo | --dataro | --datar)
789 ac_prev=datarootdir ;;
790 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
791 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
792 datarootdir=$ac_optarg ;;
793
brynercb91a2f2006-08-25 21:14:45 +0000794 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000795 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000796 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +0000798 as_fn_error "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000799 ac_useropt_orig=$ac_useropt
800 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
801 case $ac_user_opts in
802 *"
803"enable_$ac_useropt"
804"*) ;;
805 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
806 ac_unrecognized_sep=', ';;
807 esac
808 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000809
810 -docdir | --docdir | --docdi | --doc | --do)
811 ac_prev=docdir ;;
812 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
813 docdir=$ac_optarg ;;
814
815 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
816 ac_prev=dvidir ;;
817 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
818 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000819
820 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000821 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000822 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +0000824 as_fn_error "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000825 ac_useropt_orig=$ac_useropt
826 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
828 *"
829"enable_$ac_useropt"
830"*) ;;
831 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
832 ac_unrecognized_sep=', ';;
833 esac
834 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000835
836 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838 | --exec | --exe | --ex)
839 ac_prev=exec_prefix ;;
840 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842 | --exec=* | --exe=* | --ex=*)
843 exec_prefix=$ac_optarg ;;
844
845 -gas | --gas | --ga | --g)
846 # Obsolete; use --with-gas.
847 with_gas=yes ;;
848
849 -help | --help | --hel | --he | -h)
850 ac_init_help=long ;;
851 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852 ac_init_help=recursive ;;
853 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854 ac_init_help=short ;;
855
856 -host | --host | --hos | --ho)
857 ac_prev=host_alias ;;
858 -host=* | --host=* | --hos=* | --ho=*)
859 host_alias=$ac_optarg ;;
860
mmentovai8c2a4de2006-09-20 16:20:15 +0000861 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
862 ac_prev=htmldir ;;
863 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
864 | --ht=*)
865 htmldir=$ac_optarg ;;
866
brynercb91a2f2006-08-25 21:14:45 +0000867 -includedir | --includedir | --includedi | --included | --include \
868 | --includ | --inclu | --incl | --inc)
869 ac_prev=includedir ;;
870 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871 | --includ=* | --inclu=* | --incl=* | --inc=*)
872 includedir=$ac_optarg ;;
873
874 -infodir | --infodir | --infodi | --infod | --info | --inf)
875 ac_prev=infodir ;;
876 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877 infodir=$ac_optarg ;;
878
879 -libdir | --libdir | --libdi | --libd)
880 ac_prev=libdir ;;
881 -libdir=* | --libdir=* | --libdi=* | --libd=*)
882 libdir=$ac_optarg ;;
883
884 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885 | --libexe | --libex | --libe)
886 ac_prev=libexecdir ;;
887 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888 | --libexe=* | --libex=* | --libe=*)
889 libexecdir=$ac_optarg ;;
890
mmentovai8c2a4de2006-09-20 16:20:15 +0000891 -localedir | --localedir | --localedi | --localed | --locale)
892 ac_prev=localedir ;;
893 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894 localedir=$ac_optarg ;;
895
brynercb91a2f2006-08-25 21:14:45 +0000896 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +0000897 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +0000898 ac_prev=localstatedir ;;
899 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +0000900 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +0000901 localstatedir=$ac_optarg ;;
902
903 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
904 ac_prev=mandir ;;
905 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
906 mandir=$ac_optarg ;;
907
908 -nfp | --nfp | --nf)
909 # Obsolete; use --without-fp.
910 with_fp=no ;;
911
912 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913 | --no-cr | --no-c | -n)
914 no_create=yes ;;
915
916 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
918 no_recursion=yes ;;
919
920 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922 | --oldin | --oldi | --old | --ol | --o)
923 ac_prev=oldincludedir ;;
924 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927 oldincludedir=$ac_optarg ;;
928
929 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
930 ac_prev=prefix ;;
931 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
932 prefix=$ac_optarg ;;
933
934 -program-prefix | --program-prefix | --program-prefi | --program-pref \
935 | --program-pre | --program-pr | --program-p)
936 ac_prev=program_prefix ;;
937 -program-prefix=* | --program-prefix=* | --program-prefi=* \
938 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939 program_prefix=$ac_optarg ;;
940
941 -program-suffix | --program-suffix | --program-suffi | --program-suff \
942 | --program-suf | --program-su | --program-s)
943 ac_prev=program_suffix ;;
944 -program-suffix=* | --program-suffix=* | --program-suffi=* \
945 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946 program_suffix=$ac_optarg ;;
947
948 -program-transform-name | --program-transform-name \
949 | --program-transform-nam | --program-transform-na \
950 | --program-transform-n | --program-transform- \
951 | --program-transform | --program-transfor \
952 | --program-transfo | --program-transf \
953 | --program-trans | --program-tran \
954 | --progr-tra | --program-tr | --program-t)
955 ac_prev=program_transform_name ;;
956 -program-transform-name=* | --program-transform-name=* \
957 | --program-transform-nam=* | --program-transform-na=* \
958 | --program-transform-n=* | --program-transform-=* \
959 | --program-transform=* | --program-transfor=* \
960 | --program-transfo=* | --program-transf=* \
961 | --program-trans=* | --program-tran=* \
962 | --progr-tra=* | --program-tr=* | --program-t=*)
963 program_transform_name=$ac_optarg ;;
964
mmentovai8c2a4de2006-09-20 16:20:15 +0000965 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
966 ac_prev=pdfdir ;;
967 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
968 pdfdir=$ac_optarg ;;
969
970 -psdir | --psdir | --psdi | --psd | --ps)
971 ac_prev=psdir ;;
972 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
973 psdir=$ac_optarg ;;
974
brynercb91a2f2006-08-25 21:14:45 +0000975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976 | -silent | --silent | --silen | --sile | --sil)
977 silent=yes ;;
978
979 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
980 ac_prev=sbindir ;;
981 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
982 | --sbi=* | --sb=*)
983 sbindir=$ac_optarg ;;
984
985 -sharedstatedir | --sharedstatedir | --sharedstatedi \
986 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987 | --sharedst | --shareds | --shared | --share | --shar \
988 | --sha | --sh)
989 ac_prev=sharedstatedir ;;
990 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
993 | --sha=* | --sh=*)
994 sharedstatedir=$ac_optarg ;;
995
996 -site | --site | --sit)
997 ac_prev=site ;;
998 -site=* | --site=* | --sit=*)
999 site=$ac_optarg ;;
1000
1001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1002 ac_prev=srcdir ;;
1003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004 srcdir=$ac_optarg ;;
1005
1006 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1007 | --syscon | --sysco | --sysc | --sys | --sy)
1008 ac_prev=sysconfdir ;;
1009 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1010 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1011 sysconfdir=$ac_optarg ;;
1012
1013 -target | --target | --targe | --targ | --tar | --ta | --t)
1014 ac_prev=target_alias ;;
1015 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1016 target_alias=$ac_optarg ;;
1017
1018 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1019 verbose=yes ;;
1020
1021 -version | --version | --versio | --versi | --vers | -V)
1022 ac_init_version=: ;;
1023
1024 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001025 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001026 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00001028 as_fn_error "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033"with_$ac_useropt"
1034"*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001039
1040 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001041 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001042 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00001044 as_fn_error "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"with_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001055
1056 --x)
1057 # Obsolete; use --with-x.
1058 with_x=yes ;;
1059
1060 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061 | --x-incl | --x-inc | --x-in | --x-i)
1062 ac_prev=x_includes ;;
1063 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065 x_includes=$ac_optarg ;;
1066
1067 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1068 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069 ac_prev=x_libraries ;;
1070 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072 x_libraries=$ac_optarg ;;
1073
ted.mielczareke574a2a2010-10-05 19:38:22 +00001074 -*) as_fn_error "unrecognized option: \`$ac_option'
1075Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001076 ;;
1077
1078 *=*)
1079 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1080 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001081 case $ac_envvar in #(
1082 '' | [0-9]* | *[!_$as_cr_alnum]* )
ted.mielczareke574a2a2010-10-05 19:38:22 +00001083 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001084 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001085 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001086 export $ac_envvar ;;
1087
1088 *)
1089 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001090 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001091 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001092 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001093 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094 ;;
1095
1096 esac
1097done
1098
1099if test -n "$ac_prev"; then
1100 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00001101 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001102fi
1103
jimblandy92b1f832009-12-23 22:23:49 +00001104if test -n "$ac_unrecognized_opts"; then
1105 case $enable_option_checking in
1106 no) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00001107 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001108 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1109 esac
1110fi
1111
1112# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001113for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1114 datadir sysconfdir sharedstatedir localstatedir includedir \
1115 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1116 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001117do
mmentovai8c2a4de2006-09-20 16:20:15 +00001118 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001119 # Remove trailing slashes.
1120 case $ac_val in
1121 */ )
1122 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1123 eval $ac_var=\$ac_val;;
1124 esac
1125 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001126 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001127 [\\/$]* | ?:[\\/]* ) continue;;
1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001129 esac
ted.mielczareke574a2a2010-10-05 19:38:22 +00001130 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001131done
1132
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142 if test "x$build_alias" = x; then
1143 cross_compiling=maybe
ted.mielczareke574a2a2010-10-05 19:38:22 +00001144 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145 If a cross compiler is detected then cross compile mode will be used." >&2
brynercb91a2f2006-08-25 21:14:45 +00001146 elif test "x$build_alias" != "x$host_alias"; then
1147 cross_compiling=yes
1148 fi
1149fi
1150
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
1155
1156
mmentovai8c2a4de2006-09-20 16:20:15 +00001157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00001160 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001161test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00001162 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001163
1164
brynercb91a2f2006-08-25 21:14:45 +00001165# Find the source files, if location was not specified.
1166if test -z "$srcdir"; then
1167 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001168 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001169 ac_confdir=`$as_dirname -- "$as_myself" ||
1170$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171 X"$as_myself" : 'X\(//\)[^/]' \| \
1172 X"$as_myself" : 'X\(//\)$' \| \
1173 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1174$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1176 s//\1/
1177 q
1178 }
1179 /^X\(\/\/\)[^/].*/{
1180 s//\1/
1181 q
1182 }
1183 /^X\(\/\/\)$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\).*/{
1188 s//\1/
1189 q
1190 }
1191 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001192 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001193 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001194 srcdir=..
1195 fi
1196else
1197 ac_srcdir_defaulted=no
1198fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001199if test ! -r "$srcdir/$ac_unique_file"; then
1200 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ted.mielczareke574a2a2010-10-05 19:38:22 +00001201 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001202fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001203ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204ac_abs_confdir=`(
ted.mielczareke574a2a2010-10-05 19:38:22 +00001205 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001206 pwd)`
1207# When building in place, set srcdir=.
1208if test "$ac_abs_confdir" = "$ac_pwd"; then
1209 srcdir=.
1210fi
1211# Remove unnecessary trailing slashes from srcdir.
1212# Double slashes in file names in object file debugging info
1213# mess up M-x gdb in Emacs.
1214case $srcdir in
1215*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216esac
1217for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1222done
brynercb91a2f2006-08-25 21:14:45 +00001223
1224#
1225# Report the --help message.
1226#
1227if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1230 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001231\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001232
1233Usage: $0 [OPTION]... [VAR=VALUE]...
1234
1235To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236VAR=VALUE. See below for descriptions of some of the useful variables.
1237
1238Defaults for the options are specified in brackets.
1239
1240Configuration:
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
ted.mielczareke574a2a2010-10-05 19:38:22 +00001245 -q, --quiet, --silent do not print \`checking...' messages
brynercb91a2f2006-08-25 21:14:45 +00001246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1250
brynercb91a2f2006-08-25 21:14:45 +00001251Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001253 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001255 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001256
1257By default, \`make install' will install all the files in
1258\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260for instance \`--prefix=\$HOME'.
1261
1262For better control, use the options below.
1263
1264Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001284_ACEOF
1285
1286 cat <<\_ACEOF
1287
1288Program names:
1289 --program-prefix=PREFIX prepend PREFIX to installed program names
1290 --program-suffix=SUFFIX append SUFFIX to installed program names
1291 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1292
1293System types:
1294 --build=BUILD configure for building on BUILD [guessed]
1295 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1296_ACEOF
1297fi
1298
1299if test -n "$ac_init_help"; then
1300 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001301 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001302 esac
1303 cat <<\_ACEOF
1304
1305Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001306 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001307 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1308 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1309 --disable-dependency-tracking speeds up one-time build
1310 --enable-dependency-tracking do not reject slow dependency extractors
nealsidde545c02010-03-02 00:39:48 +00001311 --enable-m32 Compile/build with -m32 (default is no)
ted.mielczareke574a2a2010-10-05 19:38:22 +00001312 --disable-processor Don't build processor library (default is no)
mmentovai0dbedc92006-09-25 21:16:15 +00001313 --enable-selftest Run extra tests with "make check" (may conflict with
1314 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001315
brynercb91a2f2006-08-25 21:14:45 +00001316Some influential environment variables:
1317 CC C compiler command
1318 CFLAGS C compiler flags
1319 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1320 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001321 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001322 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001323 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001324 CPP C preprocessor
1325 CXX C++ compiler command
1326 CXXFLAGS C++ compiler flags
brynercb91a2f2006-08-25 21:14:45 +00001327
1328Use these variables to override the choices made by `configure' or to help
1329it to find libraries and programs with nonstandard names/locations.
1330
1331Report bugs to <opensource@google.com>.
1332_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001333ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001334fi
1335
1336if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001339 test -d "$ac_dir" ||
1340 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1341 continue
brynercb91a2f2006-08-25 21:14:45 +00001342 ac_builddir=.
1343
mmentovai8c2a4de2006-09-20 16:20:15 +00001344case "$ac_dir" in
1345.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346*)
jimblandy92b1f832009-12-23 22:23:49 +00001347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001348 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001350 case $ac_top_builddir_sub in
1351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1353 esac ;;
1354esac
1355ac_abs_top_builddir=$ac_pwd
1356ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357# for backward compatibility:
1358ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001359
1360case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001361 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001362 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001363 ac_top_srcdir=$ac_top_builddir_sub
1364 ac_abs_top_srcdir=$ac_pwd ;;
1365 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001366 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001367 ac_top_srcdir=$srcdir
1368 ac_abs_top_srcdir=$srcdir ;;
1369 *) # Relative name.
1370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371 ac_top_srcdir=$ac_top_build_prefix$srcdir
1372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001373esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001374ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001375
mmentovai8c2a4de2006-09-20 16:20:15 +00001376 cd "$ac_dir" || { ac_status=$?; continue; }
1377 # Check for guested configure.
1378 if test -f "$ac_srcdir/configure.gnu"; then
1379 echo &&
1380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381 elif test -f "$ac_srcdir/configure"; then
1382 echo &&
1383 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001384 else
jimblandy92b1f832009-12-23 22:23:49 +00001385 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001386 fi || ac_status=$?
1387 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001388 done
1389fi
1390
mmentovai8c2a4de2006-09-20 16:20:15 +00001391test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001392if $ac_init_version; then
1393 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001394breakpad configure 0.1
ted.mielczareke574a2a2010-10-05 19:38:22 +00001395generated by GNU Autoconf 2.65
brynercb91a2f2006-08-25 21:14:45 +00001396
ted.mielczareke574a2a2010-10-05 19:38:22 +00001397Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001398This configure script is free software; the Free Software Foundation
1399gives unlimited permission to copy, distribute and modify it.
1400_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001401 exit
brynercb91a2f2006-08-25 21:14:45 +00001402fi
jimblandy92b1f832009-12-23 22:23:49 +00001403
1404## ------------------------ ##
1405## Autoconf initialization. ##
1406## ------------------------ ##
1407
1408# ac_fn_c_try_compile LINENO
1409# --------------------------
1410# Try to compile conftest.$ac_ext, and return whether this succeeded.
1411ac_fn_c_try_compile ()
1412{
1413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1414 rm -f conftest.$ac_objext
1415 if { { ac_try="$ac_compile"
1416case "(($ac_try" in
1417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1418 *) ac_try_echo=$ac_try;;
1419esac
1420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1421$as_echo "$ac_try_echo"; } >&5
1422 (eval "$ac_compile") 2>conftest.err
1423 ac_status=$?
1424 if test -s conftest.err; then
1425 grep -v '^ *+' conftest.err >conftest.er1
1426 cat conftest.er1 >&5
1427 mv -f conftest.er1 conftest.err
1428 fi
1429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1430 test $ac_status = 0; } && {
1431 test -z "$ac_c_werror_flag" ||
1432 test ! -s conftest.err
1433 } && test -s conftest.$ac_objext; then :
1434 ac_retval=0
1435else
1436 $as_echo "$as_me: failed program was:" >&5
1437sed 's/^/| /' conftest.$ac_ext >&5
1438
1439 ac_retval=1
1440fi
1441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001442 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001443
1444} # ac_fn_c_try_compile
1445
1446# ac_fn_c_try_cpp LINENO
1447# ----------------------
1448# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1449ac_fn_c_try_cpp ()
1450{
1451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1452 if { { ac_try="$ac_cpp conftest.$ac_ext"
1453case "(($ac_try" in
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1456esac
1457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458$as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1460 ac_status=$?
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1465 fi
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00001467 test $ac_status = 0; } >/dev/null && {
jimblandy92b1f832009-12-23 22:23:49 +00001468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 }; then :
1471 ac_retval=0
1472else
1473 $as_echo "$as_me: failed program was:" >&5
1474sed 's/^/| /' conftest.$ac_ext >&5
1475
1476 ac_retval=1
1477fi
1478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001479 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001480
1481} # ac_fn_c_try_cpp
1482
1483# ac_fn_cxx_try_compile LINENO
1484# ----------------------------
1485# Try to compile conftest.$ac_ext, and return whether this succeeded.
1486ac_fn_cxx_try_compile ()
1487{
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1491case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494esac
1495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496$as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1498 ac_status=$?
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1503 fi
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_cxx_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.$ac_objext; then :
1509 ac_retval=0
1510else
1511 $as_echo "$as_me: failed program was:" >&5
1512sed 's/^/| /' conftest.$ac_ext >&5
1513
1514 ac_retval=1
1515fi
1516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001517 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001518
1519} # ac_fn_cxx_try_compile
1520
ted.mielczarekd192a712010-10-05 19:38:51 +00001521# ac_fn_c_try_run LINENO
1522# ----------------------
1523# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1524# that executables *can* be run.
1525ac_fn_c_try_run ()
1526{
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 if { { ac_try="$ac_link"
1529case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_link") 2>&5
1536 ac_status=$?
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1539 { { case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_try") 2>&5
1546 ac_status=$?
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; }; }; then :
1549 ac_retval=0
1550else
1551 $as_echo "$as_me: program exited with status $ac_status" >&5
1552 $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=$ac_status
1556fi
1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 as_fn_set_status $ac_retval
1560
1561} # ac_fn_c_try_run
1562
jimblandy92b1f832009-12-23 22:23:49 +00001563# ac_fn_c_try_link LINENO
1564# -----------------------
1565# Try to link conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_link ()
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest$ac_exeext
1570 if { { ac_try="$ac_link"
1571case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 $as_test_x conftest$ac_exeext
1591 }; then :
1592 ac_retval=0
1593else
1594 $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598fi
1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601 # interfere with the next link command; also delete a directory that is
1602 # left behind by Apple's compiler. We do this before executing the actions.
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001605 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001606
1607} # ac_fn_c_try_link
1608
ted.mielczarekb2236272010-04-08 23:06:23 +00001609# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1610# ----------------------------------------------------
1611# Tries to find if the field MEMBER exists in type AGGR, after including
1612# INCLUDES, setting cache variable VAR accordingly.
1613ac_fn_c_check_member ()
1614{
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1617$as_echo_n "checking for $2.$3... " >&6; }
ted.mielczareke574a2a2010-10-05 19:38:22 +00001618if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
ted.mielczarekb2236272010-04-08 23:06:23 +00001619 $as_echo_n "(cached) " >&6
1620else
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h. */
1623$5
1624int
1625main ()
1626{
1627static $2 ac_aggr;
1628if (ac_aggr.$3)
1629return 0;
1630 ;
1631 return 0;
1632}
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$4=yes"
1636else
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h. */
1639$5
1640int
1641main ()
1642{
1643static $2 ac_aggr;
1644if (sizeof ac_aggr.$3)
1645return 0;
1646 ;
1647 return 0;
1648}
1649_ACEOF
1650if ac_fn_c_try_compile "$LINENO"; then :
1651 eval "$4=yes"
1652else
1653 eval "$4=no"
1654fi
1655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656fi
1657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658fi
1659eval ac_res=\$$4
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663
1664} # ac_fn_c_check_member
mmentovai8c2a4de2006-09-20 16:20:15 +00001665cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001666This file contains any messages produced by compilers while
1667running configure, to aid debugging if configure makes a mistake.
1668
mmentovaie5dc6082007-02-14 19:51:05 +00001669It was created by breakpad $as_me 0.1, which was
ted.mielczareke574a2a2010-10-05 19:38:22 +00001670generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001671
1672 $ $0 $@
1673
1674_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001675exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001676{
1677cat <<_ASUNAME
1678## --------- ##
1679## Platform. ##
1680## --------- ##
1681
1682hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690
1691/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001694/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001695/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1698
1699_ASUNAME
1700
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00001706 $as_echo "PATH: $as_dir"
1707 done
mmentovai8c2a4de2006-09-20 16:20:15 +00001708IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001709
1710} >&5
1711
1712cat >&5 <<_ACEOF
1713
1714
1715## ----------- ##
1716## Core tests. ##
1717## ----------- ##
1718
1719_ACEOF
1720
1721
1722# Keep a trace of the command line.
1723# Strip out --no-create and --no-recursion so they do not pile up.
1724# Strip out --silent because we don't want to record it for future runs.
1725# Also quote any args containing shell meta-characters.
1726# Make two passes to allow for proper duplicate-argument suppression.
1727ac_configure_args=
1728ac_configure_args0=
1729ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00001730ac_must_keep_next=false
1731for ac_pass in 1 2
1732do
1733 for ac_arg
1734 do
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001740 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00001741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001742 esac
1743 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00001744 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00001745 2)
jimblandy92b1f832009-12-23 22:23:49 +00001746 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1758 ;;
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1761 fi
jimblandy92b1f832009-12-23 22:23:49 +00001762 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001763 ;;
1764 esac
1765 done
1766done
jimblandy92b1f832009-12-23 22:23:49 +00001767{ ac_configure_args0=; unset ac_configure_args0;}
1768{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00001769
1770# When interrupted or exit'd, cleanup temporary files, and complete
1771# config.log. We remove comments because anyway the quotes in there
1772# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00001773# WARNING: Use '\'' to represent an apostrophe within the trap.
1774# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00001775trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1777 {
1778 echo
1779
ted.mielczareke574a2a2010-10-05 19:38:22 +00001780 cat <<\_ASBOX
1781## ---------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001782## Cache variables. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00001783## ---------------- ##
1784_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001785 echo
1786 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00001787(
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00001793 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1794$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00001798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001800 esac ;;
1801 esac
1802 done
brynercb91a2f2006-08-25 21:14:45 +00001803 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00001804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00001806 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00001807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00001810 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00001811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00001812 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001813 esac |
1814 sort
1815)
brynercb91a2f2006-08-25 21:14:45 +00001816 echo
1817
ted.mielczareke574a2a2010-10-05 19:38:22 +00001818 cat <<\_ASBOX
1819## ----------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001820## Output variables. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00001821## ----------------- ##
1822_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001823 echo
1824 for ac_var in $ac_subst_vars
1825 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001826 eval ac_val=\$$ac_var
1827 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00001828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001829 esac
jimblandy92b1f832009-12-23 22:23:49 +00001830 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001831 done | sort
1832 echo
1833
1834 if test -n "$ac_subst_files"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00001835 cat <<\_ASBOX
1836## ------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00001837## File substitutions. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00001838## ------------------- ##
1839_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001840 echo
1841 for ac_var in $ac_subst_files
1842 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001843 eval ac_val=\$$ac_var
1844 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00001845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001846 esac
jimblandy92b1f832009-12-23 22:23:49 +00001847 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001848 done | sort
1849 echo
1850 fi
1851
1852 if test -s confdefs.h; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00001853 cat <<\_ASBOX
1854## ----------- ##
brynercb91a2f2006-08-25 21:14:45 +00001855## confdefs.h. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00001856## ----------- ##
1857_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001858 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00001859 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001860 echo
1861 fi
1862 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00001863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00001865 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00001866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00001868 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00001869' 0
brynercb91a2f2006-08-25 21:14:45 +00001870for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00001871 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00001872done
1873ac_signal=0
1874
1875# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00001876rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001877
jimblandy92b1f832009-12-23 22:23:49 +00001878$as_echo "/* confdefs.h */" > confdefs.h
1879
brynercb91a2f2006-08-25 21:14:45 +00001880# Predefined preprocessor variables.
1881
1882cat >>confdefs.h <<_ACEOF
1883#define PACKAGE_NAME "$PACKAGE_NAME"
1884_ACEOF
1885
brynercb91a2f2006-08-25 21:14:45 +00001886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888_ACEOF
1889
brynercb91a2f2006-08-25 21:14:45 +00001890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_VERSION "$PACKAGE_VERSION"
1892_ACEOF
1893
brynercb91a2f2006-08-25 21:14:45 +00001894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_STRING "$PACKAGE_STRING"
1896_ACEOF
1897
brynercb91a2f2006-08-25 21:14:45 +00001898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900_ACEOF
1901
jimblandy92b1f832009-12-23 22:23:49 +00001902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_URL "$PACKAGE_URL"
1904_ACEOF
1905
brynercb91a2f2006-08-25 21:14:45 +00001906
1907# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00001908# Prefer an explicitly selected file to automatically selected ones.
1909ac_site_file1=NONE
1910ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00001911if test -n "$CONFIG_SITE"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00001912 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00001913elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00001914 ac_site_file1=$prefix/share/config.site
1915 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00001916else
jimblandy92b1f832009-12-23 22:23:49 +00001917 ac_site_file1=$ac_default_prefix/share/config.site
1918 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00001919fi
jimblandy92b1f832009-12-23 22:23:49 +00001920for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00001921do
jimblandy92b1f832009-12-23 22:23:49 +00001922 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00001923 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00001924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1925$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00001926 sed 's/^/| /' "$ac_site_file" >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00001927 . "$ac_site_file"
brynercb91a2f2006-08-25 21:14:45 +00001928 fi
1929done
1930
1931if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00001932 # Some versions of bash will fail to source /dev/null (special files
1933 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1934 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00001935 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1936$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00001937 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00001938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00001940 esac
1941 fi
1942else
jimblandy92b1f832009-12-23 22:23:49 +00001943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1944$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00001945 >$cache_file
1946fi
1947
1948# Check that the precious variables saved in the cache have kept the same
1949# value.
1950ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00001951for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00001952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00001954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00001956 case $ac_old_set,$ac_new_set in
1957 set,)
jimblandy92b1f832009-12-23 22:23:49 +00001958 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001960 ac_cache_corrupted=: ;;
1961 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00001962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1963$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001964 ac_cache_corrupted=: ;;
1965 ,);;
1966 *)
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00001968 # differences in whitespace do not lead to failure.
1969 ac_old_val_w=`echo x $ac_old_val`
1970 ac_new_val_w=`echo x $ac_new_val`
1971 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1973$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 ac_cache_corrupted=:
1975 else
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1977$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1978 eval $ac_var=\$ac_old_val
1979 fi
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1981$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1983$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001984 fi;;
1985 esac
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1988 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00001989 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001990 *) ac_arg=$ac_var=$ac_new_val ;;
1991 esac
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00001994 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00001995 esac
1996 fi
1997done
1998if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00001999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2002$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00002003 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002004fi
jimblandy92b1f832009-12-23 22:23:49 +00002005## -------------------- ##
2006## Main body of script. ##
2007## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002008
brynercb91a2f2006-08-25 21:14:45 +00002009ac_ext=c
2010ac_cpp='$CPP $CPPFLAGS'
2011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014
2015
2016
brynercb91a2f2006-08-25 21:14:45 +00002017ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002018for ac_dir in autotools "$srcdir"/autotools; do
ted.mielczareke574a2a2010-10-05 19:38:22 +00002019 for ac_t in install-sh install.sh shtool; do
2020 if test -f "$ac_dir/$ac_t"; then
2021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/$ac_t -c"
2023 break 2
2024 fi
2025 done
brynercb91a2f2006-08-25 21:14:45 +00002026done
2027if test -z "$ac_aux_dir"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002028 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002029fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002030
2031# These three variables are undocumented and unsupported,
2032# and are intended to be withdrawn in a future Autoconf release.
2033# They can cause serious problems if a builder's source tree is in a directory
2034# whose full name contains unusual characters.
2035ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2036ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2037ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2038
brynercb91a2f2006-08-25 21:14:45 +00002039
mmentovai425d2562006-08-30 20:05:05 +00002040
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002041# Make sure we can run config.sub.
2042$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002043 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002044
2045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2046$as_echo_n "checking build system type... " >&6; }
2047if test "${ac_cv_build+set}" = set; then :
2048 $as_echo_n "(cached) " >&6
2049else
2050 ac_build_alias=$build_alias
2051test "x$ac_build_alias" = x &&
2052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2053test "x$ac_build_alias" = x &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00002054 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002055ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002056 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002057
2058fi
2059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2060$as_echo "$ac_cv_build" >&6; }
2061case $ac_cv_build in
2062*-*-*) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00002063*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002064esac
2065build=$ac_cv_build
2066ac_save_IFS=$IFS; IFS='-'
2067set x $ac_cv_build
2068shift
2069build_cpu=$1
2070build_vendor=$2
2071shift; shift
2072# Remember, the first character of IFS is used to create $*,
2073# except with old shells:
2074build_os=$*
2075IFS=$ac_save_IFS
2076case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2077
2078
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2080$as_echo_n "checking host system type... " >&6; }
2081if test "${ac_cv_host+set}" = set; then :
2082 $as_echo_n "(cached) " >&6
2083else
2084 if test "x$host_alias" = x; then
2085 ac_cv_host=$ac_cv_build
2086else
2087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002088 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002089fi
2090
2091fi
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2093$as_echo "$ac_cv_host" >&6; }
2094case $ac_cv_host in
2095*-*-*) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00002096*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002097esac
2098host=$ac_cv_host
2099ac_save_IFS=$IFS; IFS='-'
2100set x $ac_cv_host
2101shift
2102host_cpu=$1
2103host_vendor=$2
2104shift; shift
2105# Remember, the first character of IFS is used to create $*,
2106# except with old shells:
2107host_os=$*
2108IFS=$ac_save_IFS
2109case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2110
2111
2112
jimblandy92b1f832009-12-23 22:23:49 +00002113am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002114
brynercb91a2f2006-08-25 21:14:45 +00002115# Find a good install program. We prefer a C program (faster),
2116# so one script is as good as another. But avoid the broken or
2117# incompatible versions:
2118# SysV /etc/install, /usr/sbin/install
2119# SunOS /usr/etc/install
2120# IRIX /sbin/install
2121# AIX /bin/install
2122# AmigaOS /C/install, which installs bootblocks on floppy discs
2123# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2124# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2125# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2126# OS/2's system install, which has a completely different semantic
2127# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002128# Reject install programs that cannot install multiple files.
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2130$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002131if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002132if test "${ac_cv_path_install+set}" = set; then :
2133 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002134else
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002140 # Account for people who put trailing slashes in PATH elements.
2141case $as_dir/ in #((
2142 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002144 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002145 /usr/ucb/* ) ;;
2146 *)
2147 # OSF1 and SCO ODT 3.0 have their own names for install.
2148 # Don't use installbsd from OSF since it installs stuff as root
2149 # by default.
2150 for ac_prog in ginstall scoinst install; do
2151 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002152 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002153 if test $ac_prog = install &&
2154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2155 # AIX install. It has an incompatible calling convention.
2156 :
2157 elif test $ac_prog = install &&
2158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159 # program-specific install script used by HP pwplus--don't use.
2160 :
2161 else
jimblandy92b1f832009-12-23 22:23:49 +00002162 rm -rf conftest.one conftest.two conftest.dir
2163 echo one > conftest.one
2164 echo two > conftest.two
2165 mkdir conftest.dir
2166 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2167 test -s conftest.one && test -s conftest.two &&
2168 test -s conftest.dir/conftest.one &&
2169 test -s conftest.dir/conftest.two
2170 then
2171 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2172 break 3
2173 fi
brynercb91a2f2006-08-25 21:14:45 +00002174 fi
2175 fi
2176 done
2177 done
2178 ;;
2179esac
jimblandy92b1f832009-12-23 22:23:49 +00002180
2181 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002182IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002183
jimblandy92b1f832009-12-23 22:23:49 +00002184rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002185
2186fi
2187 if test "${ac_cv_path_install+set}" = set; then
2188 INSTALL=$ac_cv_path_install
2189 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002190 # As a last resort, use the slow shell script. Don't cache a
2191 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002192 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002193 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002194 INSTALL=$ac_install_sh
2195 fi
2196fi
jimblandy92b1f832009-12-23 22:23:49 +00002197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2198$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002199
2200# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2201# It thinks the first close brace ends the variable substitution.
2202test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2203
2204test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2205
2206test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2207
jimblandy92b1f832009-12-23 22:23:49 +00002208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2209$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002210# Just in case
2211sleep 1
2212echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002213# Reject unsafe characters in $srcdir or the absolute working directory
2214# name. Accept space and tab only in the latter.
2215am_lf='
2216'
2217case `pwd` in
2218 *[\\\"\#\$\&\'\`$am_lf]*)
ted.mielczareke574a2a2010-10-05 19:38:22 +00002219 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002220esac
2221case $srcdir in
2222 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
ted.mielczareke574a2a2010-10-05 19:38:22 +00002223 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002224esac
2225
brynercb91a2f2006-08-25 21:14:45 +00002226# Do `set' in a subshell so we don't clobber the current shell's
2227# arguments. Must try -L first in case configure is actually a
2228# symlink; some systems play weird games with the mod time of symlinks
2229# (eg FreeBSD returns the mod time of the symlink's containing
2230# directory).
2231if (
jimblandy92b1f832009-12-23 22:23:49 +00002232 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002233 if test "$*" = "X"; then
2234 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002235 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002236 fi
2237 rm -f conftest.file
2238 if test "$*" != "X $srcdir/configure conftest.file" \
2239 && test "$*" != "X conftest.file $srcdir/configure"; then
2240
2241 # If neither matched, then we have a broken ls. This can happen
2242 # if, for instance, CONFIG_SHELL is bash and it inherits a
2243 # broken ls alias from the environment. This has actually
2244 # happened. Such a system could not be considered "sane".
ted.mielczareke574a2a2010-10-05 19:38:22 +00002245 as_fn_error "ls -t appears to fail. Make sure there is not a broken
jimblandy92b1f832009-12-23 22:23:49 +00002246alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002247 fi
2248
2249 test "$2" = conftest.file
2250 )
2251then
2252 # Ok.
2253 :
2254else
ted.mielczareke574a2a2010-10-05 19:38:22 +00002255 as_fn_error "newly created file is older than distributed files!
jimblandy92b1f832009-12-23 22:23:49 +00002256Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002257fi
jimblandy92b1f832009-12-23 22:23:49 +00002258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2259$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002260test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002261 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002262# Use a double $ so make ignores it.
2263test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002264 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002265# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002266# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002267ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2268program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002269
2270# expand $ac_aux_dir to an absolute path
2271am_aux_dir=`cd $ac_aux_dir && pwd`
2272
jimblandy92b1f832009-12-23 22:23:49 +00002273if test x"${MISSING+set}" != xset; then
2274 case $am_aux_dir in
2275 *\ * | *\ *)
2276 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2277 *)
2278 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2279 esac
2280fi
brynercb91a2f2006-08-25 21:14:45 +00002281# Use eval to expand $SHELL
2282if eval "$MISSING --run true"; then
2283 am_missing_run="$MISSING --run "
2284else
2285 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2287$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002288fi
2289
jimblandy92b1f832009-12-23 22:23:49 +00002290if test x"${install_sh}" != xset; then
2291 case $am_aux_dir in
2292 *\ * | *\ *)
2293 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2294 *)
2295 install_sh="\${SHELL} $am_aux_dir/install-sh"
2296 esac
2297fi
2298
2299# Installed binaries are usually stripped using `strip' when the user
2300# run `make install-strip'. However `strip' might not be the right
2301# tool to use in cross-compilation environments, therefore Automake
2302# will honor the `STRIP' environment variable to overrule this program.
2303if test "$cross_compiling" != no; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306set dummy ${ac_tool_prefix}strip; ac_word=$2
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2308$as_echo_n "checking for $ac_word... " >&6; }
2309if test "${ac_cv_prog_STRIP+set}" = set; then :
2310 $as_echo_n "(cached) " >&6
2311else
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314else
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2325 fi
2326done
2327 done
2328IFS=$as_save_IFS
2329
2330fi
2331fi
2332STRIP=$ac_cv_prog_STRIP
2333if test -n "$STRIP"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2335$as_echo "$STRIP" >&6; }
2336else
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2338$as_echo "no" >&6; }
2339fi
2340
2341
2342fi
2343if test -z "$ac_cv_prog_STRIP"; then
2344 ac_ct_STRIP=$STRIP
2345 # Extract the first word of "strip", so it can be a program name with args.
2346set dummy strip; ac_word=$2
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2348$as_echo_n "checking for $ac_word... " >&6; }
2349if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2350 $as_echo_n "(cached) " >&6
2351else
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_STRIP="strip"
2363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366done
2367 done
2368IFS=$as_save_IFS
2369
2370fi
2371fi
2372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373if test -n "$ac_ct_STRIP"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2375$as_echo "$ac_ct_STRIP" >&6; }
2376else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2378$as_echo "no" >&6; }
2379fi
2380
2381 if test "x$ac_ct_STRIP" = x; then
2382 STRIP=":"
2383 else
2384 case $cross_compiling:$ac_tool_warned in
2385yes:)
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2388ac_tool_warned=yes ;;
2389esac
2390 STRIP=$ac_ct_STRIP
2391 fi
2392else
2393 STRIP="$ac_cv_prog_STRIP"
2394fi
2395
2396fi
2397INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2398
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2400$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002401if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002402 if test "${ac_cv_path_mkdir+set}" = set; then :
2403 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002404else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002410 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2413 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2414 'mkdir (GNU coreutils) '* | \
2415 'mkdir (coreutils) '* | \
2416 'mkdir (fileutils) '4.1*)
2417 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2418 break 3;;
2419 esac
2420 done
2421 done
jimblandy92b1f832009-12-23 22:23:49 +00002422 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002423IFS=$as_save_IFS
2424
2425fi
2426
jimblandydc4029a2010-02-02 17:39:51 +00002427 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002428 if test "${ac_cv_path_mkdir+set}" = set; then
2429 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002430 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002431 # As a last resort, use the slow shell script. Don't cache a
2432 # value for MKDIR_P within a source directory, because that will
2433 # break other packages using the cache if that directory is
2434 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002435 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002436 fi
2437fi
jimblandy92b1f832009-12-23 22:23:49 +00002438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2439$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002440
2441mkdir_p="$MKDIR_P"
2442case $mkdir_p in
2443 [\\/$]* | ?:[\\/]*) ;;
2444 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2445esac
brynercb91a2f2006-08-25 21:14:45 +00002446
2447for ac_prog in gawk mawk nawk awk
2448do
2449 # Extract the first word of "$ac_prog", so it can be a program name with args.
2450set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452$as_echo_n "checking for $ac_word... " >&6; }
2453if test "${ac_cv_prog_AWK+set}" = set; then :
2454 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002455else
2456 if test -n "$AWK"; then
2457 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002464 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002466 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002468 break 2
2469 fi
2470done
jimblandy92b1f832009-12-23 22:23:49 +00002471 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002472IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002473
2474fi
2475fi
2476AWK=$ac_cv_prog_AWK
2477if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2479$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002480else
jimblandy92b1f832009-12-23 22:23:49 +00002481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002483fi
2484
mmentovai8c2a4de2006-09-20 16:20:15 +00002485
brynercb91a2f2006-08-25 21:14:45 +00002486 test -n "$AWK" && break
2487done
2488
jimblandy92b1f832009-12-23 22:23:49 +00002489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2490$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2491set x ${MAKE-make}
2492ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00002493if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
jimblandy92b1f832009-12-23 22:23:49 +00002494 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002495else
2496 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002497SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002498all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002499 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002500_ACEOF
ted.mielczareke574a2a2010-10-05 19:38:22 +00002501# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002502case `${MAKE-make} -f conftest.make 2>/dev/null` in
2503 *@@@%%%=?*=@@@%%%*)
2504 eval ac_cv_prog_make_${ac_make}_set=yes;;
2505 *)
2506 eval ac_cv_prog_make_${ac_make}_set=no;;
2507esac
brynercb91a2f2006-08-25 21:14:45 +00002508rm -f conftest.make
2509fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002510if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2512$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002513 SET_MAKE=
2514else
jimblandy92b1f832009-12-23 22:23:49 +00002515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002517 SET_MAKE="MAKE=${MAKE-make}"
2518fi
2519
2520rm -rf .tst 2>/dev/null
2521mkdir .tst 2>/dev/null
2522if test -d .tst; then
2523 am__leading_dot=.
2524else
2525 am__leading_dot=_
2526fi
2527rmdir .tst 2>/dev/null
2528
mmentovaiaf3c43f2007-05-17 18:34:37 +00002529if test "`cd $srcdir && pwd`" != "`pwd`"; then
2530 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2531 # is not polluted with repeated "-I."
2532 am__isrc=' -I$(srcdir)'
2533 # test to see if srcdir already configured
2534 if test -f $srcdir/config.status; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002535 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002536 fi
brynercb91a2f2006-08-25 21:14:45 +00002537fi
2538
2539# test whether we have cygpath
2540if test -z "$CYGPATH_W"; then
2541 if (cygpath --version) >/dev/null 2>/dev/null; then
2542 CYGPATH_W='cygpath -w'
2543 else
2544 CYGPATH_W=echo
2545 fi
2546fi
2547
2548
2549# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002550 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002551 VERSION='0.1'
2552
2553
2554cat >>confdefs.h <<_ACEOF
2555#define PACKAGE "$PACKAGE"
2556_ACEOF
2557
2558
2559cat >>confdefs.h <<_ACEOF
2560#define VERSION "$VERSION"
2561_ACEOF
2562
2563# Some tools Automake needs.
2564
2565ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2566
2567
2568AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2569
2570
2571AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2572
2573
2574AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2575
2576
2577MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2578
brynercb91a2f2006-08-25 21:14:45 +00002579# We need awk for the "check" target. The system "awk" is bad on
2580# some platforms.
2581# Always define AMTAR for backward compatibility.
2582
2583AMTAR=${AMTAR-"${am_missing_run}tar"}
2584
mmentovaidb3342a2006-12-05 22:52:28 +00002585
jimblandy92b1f832009-12-23 22:23:49 +00002586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2587$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002588# Loop over all known methods to create a tar archive until one works.
2589_am_tools='gnutar plaintar pax cpio none'
2590_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2591# Do not fold the above two line into one, because Tru64 sh and
2592# Solaris sh will not grok spaces in the rhs of `-'.
2593for _am_tool in $_am_tools
2594do
2595 case $_am_tool in
2596 gnutar)
2597 for _am_tar in tar gnutar gtar;
2598 do
2599 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2600 ($_am_tar --version) >&5 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } && break
2604 done
2605 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2606 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2607 am__untar="$_am_tar -xf -"
2608 ;;
2609 plaintar)
2610 # Must skip GNU tar: if it does not support --format= it doesn't create
2611 # ustar tarball either.
2612 (tar --version) >/dev/null 2>&1 && continue
2613 am__tar='tar chf - "$$tardir"'
2614 am__tar_='tar chf - "$tardir"'
2615 am__untar='tar xf -'
2616 ;;
2617 pax)
2618 am__tar='pax -L -x ustar -w "$$tardir"'
2619 am__tar_='pax -L -x ustar -w "$tardir"'
2620 am__untar='pax -r'
2621 ;;
2622 cpio)
2623 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2624 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2625 am__untar='cpio -i -H ustar -d'
2626 ;;
2627 none)
2628 am__tar=false
2629 am__tar_=false
2630 am__untar=false
2631 ;;
2632 esac
2633
2634 # If the value was cached, stop now. We just wanted to have am__tar
2635 # and am__untar set.
2636 test -n "${am_cv_prog_tar_ustar}" && break
2637
2638 # tar/untar a dummy directory, and stop if the command works
2639 rm -rf conftest.dir
2640 mkdir conftest.dir
2641 echo GrepMe > conftest.dir/file
2642 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2643 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }
2647 rm -rf conftest.dir
2648 if test -s conftest.tar; then
2649 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2650 ($am__untar <conftest.tar) >&5 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }
2654 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2655 fi
2656done
2657rm -rf conftest.dir
2658
jimblandy92b1f832009-12-23 22:23:49 +00002659if test "${am_cv_prog_tar_ustar+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00002661else
2662 am_cv_prog_tar_ustar=$_am_tool
2663fi
2664
jimblandy92b1f832009-12-23 22:23:49 +00002665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2666$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002667
2668
2669
2670
2671
mmentovai8c2a4de2006-09-20 16:20:15 +00002672ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002673
2674
brynercb91a2f2006-08-25 21:14:45 +00002675ac_ext=c
2676ac_cpp='$CPP $CPPFLAGS'
2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680if test -n "$ac_tool_prefix"; then
2681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2682set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
2685if test "${ac_cv_prog_CC+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002687else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002696 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002698 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002700 break 2
2701 fi
2702done
jimblandy92b1f832009-12-23 22:23:49 +00002703 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002704IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002705
2706fi
2707fi
2708CC=$ac_cv_prog_CC
2709if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002712else
jimblandy92b1f832009-12-23 22:23:49 +00002713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002715fi
2716
mmentovai8c2a4de2006-09-20 16:20:15 +00002717
brynercb91a2f2006-08-25 21:14:45 +00002718fi
2719if test -z "$ac_cv_prog_CC"; then
2720 ac_ct_CC=$CC
2721 # Extract the first word of "gcc", so it can be a program name with args.
2722set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2726 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002727else
2728 if test -n "$ac_ct_CC"; then
2729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2730else
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002736 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002738 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002740 break 2
2741 fi
2742done
jimblandy92b1f832009-12-23 22:23:49 +00002743 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002744IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002745
2746fi
2747fi
2748ac_ct_CC=$ac_cv_prog_ac_ct_CC
2749if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2751$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002752else
jimblandy92b1f832009-12-23 22:23:49 +00002753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002755fi
2756
mmentovai8c2a4de2006-09-20 16:20:15 +00002757 if test "x$ac_ct_CC" = x; then
2758 CC=""
2759 else
2760 case $cross_compiling:$ac_tool_warned in
2761yes:)
jimblandy92b1f832009-12-23 22:23:49 +00002762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00002764ac_tool_warned=yes ;;
2765esac
2766 CC=$ac_ct_CC
2767 fi
brynercb91a2f2006-08-25 21:14:45 +00002768else
2769 CC="$ac_cv_prog_CC"
2770fi
2771
2772if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00002775set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if test "${ac_cv_prog_CC+set}" = set; then :
2779 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002780else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002789 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002791 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00002792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002793 break 2
2794 fi
2795done
jimblandy92b1f832009-12-23 22:23:49 +00002796 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002797IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002798
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002805else
jimblandy92b1f832009-12-23 22:23:49 +00002806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002808fi
2809
mmentovai8c2a4de2006-09-20 16:20:15 +00002810
brynercb91a2f2006-08-25 21:14:45 +00002811 fi
brynercb91a2f2006-08-25 21:14:45 +00002812fi
2813if test -z "$CC"; then
2814 # Extract the first word of "cc", so it can be a program name with args.
2815set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817$as_echo_n "checking for $ac_word... " >&6; }
2818if test "${ac_cv_prog_CC+set}" = set; then :
2819 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002820else
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2823else
2824 ac_prog_rejected=no
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002830 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002832 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2833 ac_prog_rejected=yes
2834 continue
2835 fi
2836 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00002837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002838 break 2
2839 fi
2840done
jimblandy92b1f832009-12-23 22:23:49 +00002841 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002842IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002843
2844if test $ac_prog_rejected = yes; then
2845 # We found a bogon in the path, so make sure we never use it.
2846 set dummy $ac_cv_prog_CC
2847 shift
2848 if test $# != 0; then
2849 # We chose a different compiler from the bogus one.
2850 # However, it has the same basename, so the bogon will be chosen
2851 # first if we set CC to just the basename; use the full file name.
2852 shift
2853 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2854 fi
2855fi
2856fi
2857fi
2858CC=$ac_cv_prog_CC
2859if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002862else
jimblandy92b1f832009-12-23 22:23:49 +00002863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002865fi
2866
mmentovai8c2a4de2006-09-20 16:20:15 +00002867
brynercb91a2f2006-08-25 21:14:45 +00002868fi
2869if test -z "$CC"; then
2870 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002871 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002872 do
2873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2874set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876$as_echo_n "checking for $ac_word... " >&6; }
2877if test "${ac_cv_prog_CC+set}" = set; then :
2878 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002879else
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002888 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002890 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002892 break 2
2893 fi
2894done
jimblandy92b1f832009-12-23 22:23:49 +00002895 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002896IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002897
2898fi
2899fi
2900CC=$ac_cv_prog_CC
2901if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002904else
jimblandy92b1f832009-12-23 22:23:49 +00002905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002907fi
2908
mmentovai8c2a4de2006-09-20 16:20:15 +00002909
brynercb91a2f2006-08-25 21:14:45 +00002910 test -n "$CC" && break
2911 done
2912fi
2913if test -z "$CC"; then
2914 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00002915 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002916do
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920$as_echo_n "checking for $ac_word... " >&6; }
2921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002923else
2924 if test -n "$ac_ct_CC"; then
2925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002932 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002934 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002936 break 2
2937 fi
2938done
jimblandy92b1f832009-12-23 22:23:49 +00002939 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002940IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002941
2942fi
2943fi
2944ac_ct_CC=$ac_cv_prog_ac_ct_CC
2945if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2947$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002948else
jimblandy92b1f832009-12-23 22:23:49 +00002949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002951fi
2952
mmentovai8c2a4de2006-09-20 16:20:15 +00002953
brynercb91a2f2006-08-25 21:14:45 +00002954 test -n "$ac_ct_CC" && break
2955done
2956
mmentovai8c2a4de2006-09-20 16:20:15 +00002957 if test "x$ac_ct_CC" = x; then
2958 CC=""
2959 else
2960 case $cross_compiling:$ac_tool_warned in
2961yes:)
jimblandy92b1f832009-12-23 22:23:49 +00002962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00002964ac_tool_warned=yes ;;
2965esac
2966 CC=$ac_ct_CC
2967 fi
brynercb91a2f2006-08-25 21:14:45 +00002968fi
2969
2970fi
2971
2972
jimblandy92b1f832009-12-23 22:23:49 +00002973test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00002975as_fn_error "no acceptable C compiler found in \$PATH
2976See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00002977
2978# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00002979$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2980set X $ac_compile
2981ac_compiler=$2
2982for ac_option in --version -v -V -qversion; do
2983 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00002984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
jimblandy92b1f832009-12-23 22:23:49 +00002988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989$as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00002991 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00002992 if test -s conftest.err; then
2993 sed '10a\
2994... rest of stderr output deleted ...
2995 10q' conftest.err >conftest.er1
2996 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00002997 fi
jimblandydc4029a2010-02-02 17:39:51 +00002998 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00002999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }
3001done
brynercb91a2f2006-08-25 21:14:45 +00003002
jimblandy92b1f832009-12-23 22:23:49 +00003003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003004/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003005
brynercb91a2f2006-08-25 21:14:45 +00003006int
3007main ()
3008{
3009
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003015ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003016# Try to create an executable without -o first, disregard a.out.
3017# It will help us diagnose broken compilers, and finding out an intuition
3018# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3020$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003021ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3022
3023# The possible output files:
3024ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3025
mmentovai8c2a4de2006-09-20 16:20:15 +00003026ac_rmfiles=
3027for ac_file in $ac_files
3028do
3029 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003031 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3032 esac
3033done
3034rm -f $ac_rmfiles
3035
jimblandy92b1f832009-12-23 22:23:49 +00003036if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003037case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
jimblandy92b1f832009-12-23 22:23:49 +00003041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3042$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003043 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003044 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3046 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003047 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3048# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3049# in a Makefile. We should not override ac_cv_exeext if it was cached,
3050# so that the user can short-circuit this test for compilers unknown to
3051# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003052for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003053do
3054 test -f "$ac_file" || continue
3055 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003057 ;;
3058 [ab].out )
3059 # We found the default executable, but exeext='' is most
3060 # certainly right.
3061 break;;
3062 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003063 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003064 then :; else
3065 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 fi
3067 # We set ac_cv_exeext here because the later test for it is not
3068 # safe: cross compilers may not add the suffix if given an `-o'
3069 # argument, so we may need to know it at that point already.
3070 # Even if this section looks crufty: it has the advantage of
3071 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003072 break;;
3073 * )
3074 break;;
3075 esac
3076done
mmentovai8c2a4de2006-09-20 16:20:15 +00003077test "$ac_cv_exeext" = no && ac_cv_exeext=
3078
brynercb91a2f2006-08-25 21:14:45 +00003079else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003080 ac_file=''
3081fi
jimblandy92b1f832009-12-23 22:23:49 +00003082if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
3085$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003086sed 's/^/| /' conftest.$ac_ext >&5
3087
jimblandy92b1f832009-12-23 22:23:49 +00003088{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003090{ as_fn_set_status 77
3091as_fn_error "C compiler cannot create executables
3092See \`config.log' for more details." "$LINENO" 5; }; }
jimblandydc4029a2010-02-02 17:39:51 +00003093else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003096fi
jimblandydc4029a2010-02-02 17:39:51 +00003097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3098$as_echo_n "checking for C compiler default output file name... " >&6; }
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3100$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003101ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003102
jimblandydc4029a2010-02-02 17:39:51 +00003103rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003104ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106$as_echo_n "checking for suffix of executables... " >&6; }
3107if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003108case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
jimblandy92b1f832009-12-23 22:23:49 +00003112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003114 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003115 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3120# work properly (i.e., refer to `conftest.exe'), while it won't with
3121# `rm'.
3122for ac_file in conftest.exe conftest conftest.*; do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003127 break;;
3128 * ) break;;
3129 esac
3130done
3131else
jimblandy92b1f832009-12-23 22:23:49 +00003132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003134as_fn_error "cannot compute suffix of executables: cannot compile and link
3135See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003136fi
jimblandydc4029a2010-02-02 17:39:51 +00003137rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003140
3141rm -f conftest.$ac_ext
3142EXEEXT=$ac_cv_exeext
3143ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145/* end confdefs.h. */
3146#include <stdio.h>
3147int
3148main ()
3149{
3150FILE *f = fopen ("conftest.out", "w");
3151 return ferror (f) || fclose (f) != 0;
3152
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157ac_clean_files="$ac_clean_files conftest.out"
3158# Check that the compiler produces executables we can run. If not, either
3159# the compiler is broken, or we cross compile.
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3161$as_echo_n "checking whether we are cross compiling... " >&6; }
3162if test "$cross_compiling" != yes; then
3163 { { ac_try="$ac_link"
3164case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174 if { ac_try='./conftest$ac_cv_exeext'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3182 ac_status=$?
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3185 cross_compiling=no
3186 else
3187 if test "$cross_compiling" = maybe; then
3188 cross_compiling=yes
3189 else
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003192as_fn_error "cannot run C compiled programs.
jimblandydc4029a2010-02-02 17:39:51 +00003193If you meant to cross compile, use \`--host'.
ted.mielczareke574a2a2010-10-05 19:38:22 +00003194See \`config.log' for more details." "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003195 fi
3196 fi
3197fi
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3199$as_echo "$cross_compiling" >&6; }
3200
3201rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3202ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3204$as_echo_n "checking for suffix of object files... " >&6; }
3205if test "${ac_cv_objext+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003207else
jimblandy92b1f832009-12-23 22:23:49 +00003208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003209/* end confdefs.h. */
3210
3211int
3212main ()
3213{
3214
3215 ;
3216 return 0;
3217}
3218_ACEOF
3219rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003220if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003221case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224esac
jimblandy92b1f832009-12-23 22:23:49 +00003225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003227 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003228 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003231 for ac_file in conftest.o conftest.obj conftest.*; do
3232 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003233 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3236 break;;
3237 esac
3238done
3239else
jimblandy92b1f832009-12-23 22:23:49 +00003240 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003241sed 's/^/| /' conftest.$ac_ext >&5
3242
jimblandy92b1f832009-12-23 22:23:49 +00003243{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003245as_fn_error "cannot compute suffix of object files: cannot compile
3246See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003247fi
brynercb91a2f2006-08-25 21:14:45 +00003248rm -f conftest.$ac_cv_objext conftest.$ac_ext
3249fi
jimblandy92b1f832009-12-23 22:23:49 +00003250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3251$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003252OBJEXT=$ac_cv_objext
3253ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3255$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3256if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003258else
jimblandy92b1f832009-12-23 22:23:49 +00003259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003260/* end confdefs.h. */
3261
3262int
3263main ()
3264{
3265#ifndef __GNUC__
3266 choke me
3267#endif
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003273if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003274 ac_compiler_gnu=yes
3275else
jimblandy92b1f832009-12-23 22:23:49 +00003276 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003277fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003279ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280
3281fi
jimblandy92b1f832009-12-23 22:23:49 +00003282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3283$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3284if test $ac_compiler_gnu = yes; then
3285 GCC=yes
3286else
3287 GCC=
3288fi
brynercb91a2f2006-08-25 21:14:45 +00003289ac_test_CFLAGS=${CFLAGS+set}
3290ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3292$as_echo_n "checking whether $CC accepts -g... " >&6; }
3293if test "${ac_cv_prog_cc_g+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003295else
mmentovai8c2a4de2006-09-20 16:20:15 +00003296 ac_save_c_werror_flag=$ac_c_werror_flag
3297 ac_c_werror_flag=yes
3298 ac_cv_prog_cc_g=no
3299 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003301/* end confdefs.h. */
3302
3303int
3304main ()
3305{
3306
3307 ;
3308 return 0;
3309}
3310_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003311if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003312 ac_cv_prog_cc_g=yes
3313else
jimblandy92b1f832009-12-23 22:23:49 +00003314 CFLAGS=""
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003316/* end confdefs.h. */
3317
3318int
3319main ()
3320{
3321
3322 ;
3323 return 0;
3324}
3325_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003326if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003327
jimblandy92b1f832009-12-23 22:23:49 +00003328else
3329 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003330 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003332/* end confdefs.h. */
3333
3334int
3335main ()
3336{
3337
3338 ;
3339 return 0;
3340}
3341_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003342if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003343 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003344fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003346fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3351fi
jimblandy92b1f832009-12-23 22:23:49 +00003352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003354if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3358 CFLAGS="-g -O2"
3359 else
3360 CFLAGS="-g"
3361 fi
3362else
3363 if test "$GCC" = yes; then
3364 CFLAGS="-O2"
3365 else
3366 CFLAGS=
3367 fi
3368fi
jimblandy92b1f832009-12-23 22:23:49 +00003369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371if test "${ac_cv_prog_cc_c89+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003373else
mmentovai8c2a4de2006-09-20 16:20:15 +00003374 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003375ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003377/* end confdefs.h. */
3378#include <stdarg.h>
3379#include <stdio.h>
3380#include <sys/types.h>
3381#include <sys/stat.h>
3382/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383struct buf { int x; };
3384FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385static char *e (p, i)
3386 char **p;
3387 int i;
3388{
3389 return p[i];
3390}
3391static char *f (char * (*g) (char **, int), char **p, ...)
3392{
3393 char *s;
3394 va_list v;
3395 va_start (v,p);
3396 s = g (p, va_arg (v,int));
3397 va_end (v);
3398 return s;
3399}
3400
3401/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003404 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003407 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003408int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3409
mmentovai8c2a4de2006-09-20 16:20:15 +00003410/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3412#define FOO(x) 'x'
3413int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3414
brynercb91a2f2006-08-25 21:14:45 +00003415int test (int i, double x);
3416struct s1 {int (*f) (int a);};
3417struct s2 {int (*f) (double a);};
3418int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3419int argc;
3420char **argv;
3421int
3422main ()
3423{
3424return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 ;
3426 return 0;
3427}
3428_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003429for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003431do
3432 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003433 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003434 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003435fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003436rm -f core conftest.err conftest.$ac_objext
3437 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003438done
mmentovai8c2a4de2006-09-20 16:20:15 +00003439rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003440CC=$ac_save_CC
3441
3442fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003443# AC_CACHE_VAL
3444case "x$ac_cv_prog_cc_c89" in
3445 x)
jimblandy92b1f832009-12-23 22:23:49 +00003446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3447$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003448 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003451 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003452 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3454$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003455esac
jimblandy92b1f832009-12-23 22:23:49 +00003456if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003457
jimblandy92b1f832009-12-23 22:23:49 +00003458fi
brynercb91a2f2006-08-25 21:14:45 +00003459
brynercb91a2f2006-08-25 21:14:45 +00003460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465DEPDIR="${am__leading_dot}deps"
3466
mmentovai8c2a4de2006-09-20 16:20:15 +00003467ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003468
3469
3470am_make=${MAKE-make}
3471cat > confinc << 'END'
3472am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003473 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003474.PHONY: am__doit
3475END
3476# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3478$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003479am__include="#"
3480am__quote=
3481_am_result=none
3482# First try GNU make style include.
3483echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003484# Ignore all kinds of additional output from `make'.
3485case `$am_make -s -f confmf 2> /dev/null` in #(
3486*the\ am__doit\ target*)
3487 am__include=include
3488 am__quote=
3489 _am_result=GNU
3490 ;;
3491esac
brynercb91a2f2006-08-25 21:14:45 +00003492# Now try BSD make style include.
3493if test "$am__include" = "#"; then
3494 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003495 case `$am_make -s -f confmf 2> /dev/null` in #(
3496 *the\ am__doit\ target*)
3497 am__include=.include
3498 am__quote="\""
3499 _am_result=BSD
3500 ;;
3501 esac
brynercb91a2f2006-08-25 21:14:45 +00003502fi
3503
3504
jimblandy92b1f832009-12-23 22:23:49 +00003505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3506$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003507rm -f confinc confmf
3508
mmentovai8c2a4de2006-09-20 16:20:15 +00003509# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003510if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003511 enableval=$enable_dependency_tracking;
3512fi
brynercb91a2f2006-08-25 21:14:45 +00003513
brynercb91a2f2006-08-25 21:14:45 +00003514if test "x$enable_dependency_tracking" != xno; then
3515 am_depcomp="$ac_aux_dir/depcomp"
3516 AMDEPBACKSLASH='\'
3517fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003518 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003519 AMDEP_TRUE=
3520 AMDEP_FALSE='#'
3521else
3522 AMDEP_TRUE='#'
3523 AMDEP_FALSE=
3524fi
3525
3526
3527
brynercb91a2f2006-08-25 21:14:45 +00003528depcc="$CC" am_compiler_list=
3529
jimblandy92b1f832009-12-23 22:23:49 +00003530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3531$as_echo_n "checking dependency style of $depcc... " >&6; }
3532if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003534else
3535 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3536 # We make a subdir and do the tests there. Otherwise we can end up
3537 # making bogus files that we don't know about and never remove. For
3538 # instance it was reported that on HP-UX the gcc test will end up
3539 # making a dummy file named `D' -- because `-MD' means `put the output
3540 # in D'.
3541 mkdir conftest.dir
3542 # Copy depcomp to subdir because otherwise we won't find it if we're
3543 # using a relative directory.
3544 cp "$am_depcomp" conftest.dir
3545 cd conftest.dir
3546 # We will build objects and dependencies in a subdirectory because
3547 # it helps to detect inapplicable dependency modes. For instance
3548 # both Tru64's cc and ICC support -MD to output dependencies as a
3549 # side effect of compilation, but ICC will put the dependencies in
3550 # the current directory while Tru64 will put them in the object
3551 # directory.
3552 mkdir sub
3553
3554 am_cv_CC_dependencies_compiler_type=none
3555 if test "$am_compiler_list" = ""; then
3556 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3557 fi
jimblandy92b1f832009-12-23 22:23:49 +00003558 am__universal=false
3559 case " $depcc " in #(
3560 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3561 esac
3562
brynercb91a2f2006-08-25 21:14:45 +00003563 for depmode in $am_compiler_list; do
3564 # Setup a source with many dependencies, because some compilers
3565 # like to wrap large dependency lists on column 80 (with \), and
3566 # we should not choose a depcomp mode which is confused by this.
3567 #
3568 # We need to recreate these files for each test, as the compiler may
3569 # overwrite some of them when testing with obscure command lines.
3570 # This happens at least with the AIX C compiler.
3571 : > sub/conftest.c
3572 for i in 1 2 3 4 5 6; do
3573 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3575 # Solaris 8's {/usr,}/bin/sh.
3576 touch sub/conftst$i.h
3577 done
3578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3579
jimblandy92b1f832009-12-23 22:23:49 +00003580 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3581 # mode. It turns out that the SunPro C++ compiler does not properly
3582 # handle `-M -o', and we need to detect this. Also, some Intel
3583 # versions had trouble with output in subdirs
3584 am__obj=sub/conftest.${OBJEXT-o}
3585 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003586 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003587 gcc)
3588 # This depmode causes a compiler race in universal mode.
3589 test "$am__universal" = false || continue
3590 ;;
brynercb91a2f2006-08-25 21:14:45 +00003591 nosideeffect)
3592 # after this tag, mechanisms are not by side-effect, so they'll
3593 # only be used when explicitly requested
3594 if test "x$enable_dependency_tracking" = xyes; then
3595 continue
3596 else
3597 break
3598 fi
3599 ;;
jimblandy92b1f832009-12-23 22:23:49 +00003600 msvisualcpp | msvcmsys)
3601 # This compiler won't grok `-c -o', but also, the minuso test has
3602 # not run yet. These depmodes are late enough in the game, and
3603 # so weak that their functioning should not be impacted.
3604 am__obj=conftest.${OBJEXT-o}
3605 am__minus_obj=
3606 ;;
brynercb91a2f2006-08-25 21:14:45 +00003607 none) break ;;
3608 esac
brynercb91a2f2006-08-25 21:14:45 +00003609 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00003610 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00003611 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00003612 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00003613 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00003614 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003615 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00003616 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003617 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3618 # icc doesn't choke on unknown options, it will just issue warnings
3619 # or remarks (even with -Werror). So we grep stderr for any message
3620 # that says an option was ignored or not supported.
3621 # When given -MP, icc 7.0 and 7.1 complain thusly:
3622 # icc: Command line warning: ignoring option '-M'; no argument required
3623 # The diagnosis changed in icc 8.0:
3624 # icc: Command line remark: option '-MP' not supported
3625 if (grep 'ignoring option' conftest.err ||
3626 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627 am_cv_CC_dependencies_compiler_type=$depmode
3628 break
3629 fi
3630 fi
3631 done
3632
3633 cd ..
3634 rm -rf conftest.dir
3635else
3636 am_cv_CC_dependencies_compiler_type=none
3637fi
3638
3639fi
jimblandy92b1f832009-12-23 22:23:49 +00003640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3641$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003642CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
mmentovaiaf3c43f2007-05-17 18:34:37 +00003644 if
brynercb91a2f2006-08-25 21:14:45 +00003645 test "x$enable_dependency_tracking" != xno \
3646 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3647 am__fastdepCC_TRUE=
3648 am__fastdepCC_FALSE='#'
3649else
3650 am__fastdepCC_TRUE='#'
3651 am__fastdepCC_FALSE=
3652fi
3653
3654
ted.mielczarekd192a712010-10-05 19:38:51 +00003655if test "x$CC" != xcc; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3657$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3658else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3660$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3661fi
3662set dummy $CC; ac_cc=`$as_echo "$2" |
3663 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3664if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3665 $as_echo_n "(cached) " >&6
3666else
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h. */
3669
3670int
3671main ()
3672{
3673
3674 ;
3675 return 0;
3676}
3677_ACEOF
3678# Make sure it works both with $CC and with simple cc.
3679# We do the test twice because some compilers refuse to overwrite an
3680# existing .o file with -o, though they will create one.
3681ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3682rm -f conftest2.*
3683if { { 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; } &&
3693 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696esac
3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698$as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_try") 2>&5
3700 ac_status=$?
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; };
3703then
3704 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3705 if test "x$CC" != xcc; then
3706 # Test first that cc exists at all.
3707 if { ac_try='cc -c conftest.$ac_ext >&5'
3708 { { case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_try") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; }; then
3718 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3719 rm -f conftest2.*
3720 if { { case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
3724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725$as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_try") 2>&5
3727 ac_status=$?
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; } &&
3730 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733esac
3734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735$as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_try") 2>&5
3737 ac_status=$?
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; };
3740 then
3741 # cc works too.
3742 :
3743 else
3744 # cc exists but doesn't like -o.
3745 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3746 fi
3747 fi
3748 fi
3749else
3750 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3751fi
3752rm -f core conftest*
3753
3754fi
3755if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757$as_echo "yes" >&6; }
3758else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
3761
3762$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3763
3764fi
3765
3766# FIXME: we rely on the cache variable name because
3767# there is no other way.
3768set dummy $CC
3769am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3770eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3771if test "$am_t" != yes; then
3772 # Losing compiler, so override with the script.
3773 # FIXME: It is wrong to rewrite CC.
3774 # But if we don't then we get into trouble of one sort or another.
3775 # A longer-term fix would be to have automake use am__CC in this case,
3776 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3777 CC="$am_aux_dir/compile $CC"
3778fi
3779
3780
brynercb91a2f2006-08-25 21:14:45 +00003781ac_ext=c
3782ac_cpp='$CPP $CPPFLAGS'
3783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00003786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3787$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003788# On Suns, sometimes $CPP names a directory.
3789if test -n "$CPP" && test -d "$CPP"; then
3790 CPP=
3791fi
3792if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00003793 if test "${ac_cv_prog_CPP+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003795else
3796 # Double quotes because CPP needs to be expanded
3797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3798 do
3799 ac_preproc_ok=false
3800for ac_c_preproc_warn_flag in '' yes
3801do
3802 # Use a header file that comes with gcc, so configuring glibc
3803 # with a fresh cross-compiler works.
3804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3805 # <limits.h> exists even on freestanding compilers.
3806 # On the NeXT, cc -E runs the code through the compiler's parser,
3807 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
3811# include <limits.h>
3812#else
3813# include <assert.h>
3814#endif
3815 Syntax error
3816_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003817if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003818
jimblandy92b1f832009-12-23 22:23:49 +00003819else
brynercb91a2f2006-08-25 21:14:45 +00003820 # Broken: fails on valid input.
3821continue
3822fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00003823rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003824
mmentovai8c2a4de2006-09-20 16:20:15 +00003825 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003826 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00003827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003828/* end confdefs.h. */
3829#include <ac_nonexistent.h>
3830_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003831if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003832 # Broken: success on invalid input.
3833continue
3834else
brynercb91a2f2006-08-25 21:14:45 +00003835 # Passes both tests.
3836ac_preproc_ok=:
3837break
3838fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00003839rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003840
3841done
3842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ted.mielczareke574a2a2010-10-05 19:38:22 +00003843rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00003844if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00003845 break
3846fi
3847
3848 done
3849 ac_cv_prog_CPP=$CPP
3850
3851fi
3852 CPP=$ac_cv_prog_CPP
3853else
3854 ac_cv_prog_CPP=$CPP
3855fi
jimblandy92b1f832009-12-23 22:23:49 +00003856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3857$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003858ac_preproc_ok=false
3859for ac_c_preproc_warn_flag in '' yes
3860do
3861 # Use a header file that comes with gcc, so configuring glibc
3862 # with a fresh cross-compiler works.
3863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864 # <limits.h> exists even on freestanding compilers.
3865 # On the NeXT, cc -E runs the code through the compiler's parser,
3866 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00003867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003868/* end confdefs.h. */
3869#ifdef __STDC__
3870# include <limits.h>
3871#else
3872# include <assert.h>
3873#endif
3874 Syntax error
3875_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003876if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003877
jimblandy92b1f832009-12-23 22:23:49 +00003878else
brynercb91a2f2006-08-25 21:14:45 +00003879 # Broken: fails on valid input.
3880continue
3881fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00003882rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003883
mmentovai8c2a4de2006-09-20 16:20:15 +00003884 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003885 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00003886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003887/* end confdefs.h. */
3888#include <ac_nonexistent.h>
3889_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003890if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003891 # Broken: success on invalid input.
3892continue
3893else
brynercb91a2f2006-08-25 21:14:45 +00003894 # Passes both tests.
3895ac_preproc_ok=:
3896break
3897fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00003898rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003899
3900done
3901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ted.mielczareke574a2a2010-10-05 19:38:22 +00003902rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00003903if $ac_preproc_ok; then :
3904
brynercb91a2f2006-08-25 21:14:45 +00003905else
jimblandy92b1f832009-12-23 22:23:49 +00003906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003908as_fn_error "C preprocessor \"$CPP\" fails sanity check
3909See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003910fi
3911
3912ac_ext=c
3913ac_cpp='$CPP $CPPFLAGS'
3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917
mmentovai8c2a4de2006-09-20 16:20:15 +00003918ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00003919ac_cpp='$CXXCPP $CPPFLAGS'
3920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003923if test -z "$CXX"; then
3924 if test -n "$CCC"; then
3925 CXX=$CCC
3926 else
3927 if test -n "$ac_tool_prefix"; then
3928 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 +00003929 do
3930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3931set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933$as_echo_n "checking for $ac_word... " >&6; }
3934if test "${ac_cv_prog_CXX+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003936else
3937 if test -n "$CXX"; then
3938 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003945 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003947 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003949 break 2
3950 fi
3951done
jimblandy92b1f832009-12-23 22:23:49 +00003952 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003953IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003954
3955fi
3956fi
3957CXX=$ac_cv_prog_CXX
3958if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00003959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3960$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003961else
jimblandy92b1f832009-12-23 22:23:49 +00003962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003964fi
3965
mmentovai8c2a4de2006-09-20 16:20:15 +00003966
brynercb91a2f2006-08-25 21:14:45 +00003967 test -n "$CXX" && break
3968 done
3969fi
3970if test -z "$CXX"; then
3971 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00003972 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 +00003973do
3974 # Extract the first word of "$ac_prog", so it can be a program name with args.
3975set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977$as_echo_n "checking for $ac_word... " >&6; }
3978if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003980else
3981 if test -n "$ac_ct_CXX"; then
3982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003989 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003991 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003993 break 2
3994 fi
3995done
jimblandy92b1f832009-12-23 22:23:49 +00003996 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003997IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003998
3999fi
4000fi
4001ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4002if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4004$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004005else
jimblandy92b1f832009-12-23 22:23:49 +00004006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004008fi
4009
mmentovai8c2a4de2006-09-20 16:20:15 +00004010
brynercb91a2f2006-08-25 21:14:45 +00004011 test -n "$ac_ct_CXX" && break
4012done
brynercb91a2f2006-08-25 21:14:45 +00004013
mmentovai8c2a4de2006-09-20 16:20:15 +00004014 if test "x$ac_ct_CXX" = x; then
4015 CXX="g++"
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004021ac_tool_warned=yes ;;
4022esac
4023 CXX=$ac_ct_CXX
4024 fi
brynercb91a2f2006-08-25 21:14:45 +00004025fi
4026
mmentovai8c2a4de2006-09-20 16:20:15 +00004027 fi
4028fi
brynercb91a2f2006-08-25 21:14:45 +00004029# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004030$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4031set X $ac_compile
4032ac_compiler=$2
4033for ac_option in --version -v -V -qversion; do
4034 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004035case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
jimblandy92b1f832009-12-23 22:23:49 +00004039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040$as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004042 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004043 if test -s conftest.err; then
4044 sed '10a\
4045... rest of stderr output deleted ...
4046 10q' conftest.err >conftest.er1
4047 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004048 fi
jimblandydc4029a2010-02-02 17:39:51 +00004049 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }
4052done
brynercb91a2f2006-08-25 21:14:45 +00004053
jimblandy92b1f832009-12-23 22:23:49 +00004054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4055$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4056if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004058else
jimblandy92b1f832009-12-23 22:23:49 +00004059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004060/* end confdefs.h. */
4061
4062int
4063main ()
4064{
4065#ifndef __GNUC__
4066 choke me
4067#endif
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004073if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004074 ac_compiler_gnu=yes
4075else
jimblandy92b1f832009-12-23 22:23:49 +00004076 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004077fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004079ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4080
4081fi
jimblandy92b1f832009-12-23 22:23:49 +00004082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4083$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4084if test $ac_compiler_gnu = yes; then
4085 GXX=yes
4086else
4087 GXX=
4088fi
brynercb91a2f2006-08-25 21:14:45 +00004089ac_test_CXXFLAGS=${CXXFLAGS+set}
4090ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4092$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4093if test "${ac_cv_prog_cxx_g+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004095else
mmentovai8c2a4de2006-09-20 16:20:15 +00004096 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4097 ac_cxx_werror_flag=yes
4098 ac_cv_prog_cxx_g=no
4099 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004101/* end confdefs.h. */
4102
4103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004111if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004112 ac_cv_prog_cxx_g=yes
4113else
jimblandy92b1f832009-12-23 22:23:49 +00004114 CXXFLAGS=""
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004116/* end confdefs.h. */
4117
4118int
4119main ()
4120{
4121
4122 ;
4123 return 0;
4124}
4125_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004126if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004127
jimblandy92b1f832009-12-23 22:23:49 +00004128else
4129 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004130 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004132/* end confdefs.h. */
4133
4134int
4135main ()
4136{
4137
4138 ;
4139 return 0;
4140}
4141_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004142if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004143 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004144fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004146fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4151fi
jimblandy92b1f832009-12-23 22:23:49 +00004152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4153$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004154if test "$ac_test_CXXFLAGS" = set; then
4155 CXXFLAGS=$ac_save_CXXFLAGS
4156elif test $ac_cv_prog_cxx_g = yes; then
4157 if test "$GXX" = yes; then
4158 CXXFLAGS="-g -O2"
4159 else
4160 CXXFLAGS="-g"
4161 fi
4162else
4163 if test "$GXX" = yes; then
4164 CXXFLAGS="-O2"
4165 else
4166 CXXFLAGS=
4167 fi
4168fi
brynercb91a2f2006-08-25 21:14:45 +00004169ac_ext=c
4170ac_cpp='$CPP $CPPFLAGS'
4171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
4175depcc="$CXX" am_compiler_list=
4176
jimblandy92b1f832009-12-23 22:23:49 +00004177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4178$as_echo_n "checking dependency style of $depcc... " >&6; }
4179if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004181else
4182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4183 # We make a subdir and do the tests there. Otherwise we can end up
4184 # making bogus files that we don't know about and never remove. For
4185 # instance it was reported that on HP-UX the gcc test will end up
4186 # making a dummy file named `D' -- because `-MD' means `put the output
4187 # in D'.
4188 mkdir conftest.dir
4189 # Copy depcomp to subdir because otherwise we won't find it if we're
4190 # using a relative directory.
4191 cp "$am_depcomp" conftest.dir
4192 cd conftest.dir
4193 # We will build objects and dependencies in a subdirectory because
4194 # it helps to detect inapplicable dependency modes. For instance
4195 # both Tru64's cc and ICC support -MD to output dependencies as a
4196 # side effect of compilation, but ICC will put the dependencies in
4197 # the current directory while Tru64 will put them in the object
4198 # directory.
4199 mkdir sub
4200
4201 am_cv_CXX_dependencies_compiler_type=none
4202 if test "$am_compiler_list" = ""; then
4203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4204 fi
jimblandy92b1f832009-12-23 22:23:49 +00004205 am__universal=false
4206 case " $depcc " in #(
4207 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4208 esac
4209
brynercb91a2f2006-08-25 21:14:45 +00004210 for depmode in $am_compiler_list; do
4211 # Setup a source with many dependencies, because some compilers
4212 # like to wrap large dependency lists on column 80 (with \), and
4213 # we should not choose a depcomp mode which is confused by this.
4214 #
4215 # We need to recreate these files for each test, as the compiler may
4216 # overwrite some of them when testing with obscure command lines.
4217 # This happens at least with the AIX C compiler.
4218 : > sub/conftest.c
4219 for i in 1 2 3 4 5 6; do
4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4222 # Solaris 8's {/usr,}/bin/sh.
4223 touch sub/conftst$i.h
4224 done
4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4226
jimblandy92b1f832009-12-23 22:23:49 +00004227 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4228 # mode. It turns out that the SunPro C++ compiler does not properly
4229 # handle `-M -o', and we need to detect this. Also, some Intel
4230 # versions had trouble with output in subdirs
4231 am__obj=sub/conftest.${OBJEXT-o}
4232 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004233 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004234 gcc)
4235 # This depmode causes a compiler race in universal mode.
4236 test "$am__universal" = false || continue
4237 ;;
brynercb91a2f2006-08-25 21:14:45 +00004238 nosideeffect)
4239 # after this tag, mechanisms are not by side-effect, so they'll
4240 # only be used when explicitly requested
4241 if test "x$enable_dependency_tracking" = xyes; then
4242 continue
4243 else
4244 break
4245 fi
4246 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004247 msvisualcpp | msvcmsys)
4248 # This compiler won't grok `-c -o', but also, the minuso test has
4249 # not run yet. These depmodes are late enough in the game, and
4250 # so weak that their functioning should not be impacted.
4251 am__obj=conftest.${OBJEXT-o}
4252 am__minus_obj=
4253 ;;
brynercb91a2f2006-08-25 21:14:45 +00004254 none) break ;;
4255 esac
brynercb91a2f2006-08-25 21:14:45 +00004256 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004257 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004260 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265 # icc doesn't choke on unknown options, it will just issue warnings
4266 # or remarks (even with -Werror). So we grep stderr for any message
4267 # that says an option was ignored or not supported.
4268 # When given -MP, icc 7.0 and 7.1 complain thusly:
4269 # icc: Command line warning: ignoring option '-M'; no argument required
4270 # The diagnosis changed in icc 8.0:
4271 # icc: Command line remark: option '-MP' not supported
4272 if (grep 'ignoring option' conftest.err ||
4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4274 am_cv_CXX_dependencies_compiler_type=$depmode
4275 break
4276 fi
4277 fi
4278 done
4279
4280 cd ..
4281 rm -rf conftest.dir
4282else
4283 am_cv_CXX_dependencies_compiler_type=none
4284fi
4285
4286fi
jimblandy92b1f832009-12-23 22:23:49 +00004287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4288$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004289CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4290
mmentovaiaf3c43f2007-05-17 18:34:37 +00004291 if
brynercb91a2f2006-08-25 21:14:45 +00004292 test "x$enable_dependency_tracking" != xno \
4293 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4294 am__fastdepCXX_TRUE=
4295 am__fastdepCXX_FALSE='#'
4296else
4297 am__fastdepCXX_TRUE='#'
4298 am__fastdepCXX_FALSE=
4299fi
4300
4301
ted.mielczarekd192a712010-10-05 19:38:51 +00004302if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_RANLIB+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00004308 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004309else
ted.mielczarekd192a712010-10-05 19:38:51 +00004310 if test -n "$RANLIB"; then
4311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
brynercb91a2f2006-08-25 21:14:45 +00004318 for ac_exec_ext in '' $ac_executable_extensions; do
ted.mielczarekd192a712010-10-05 19:38:51 +00004319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
brynercb91a2f2006-08-25 21:14:45 +00004325 done
jimblandy92b1f832009-12-23 22:23:49 +00004326IFS=$as_save_IFS
ted.mielczarekd192a712010-10-05 19:38:51 +00004327
4328fi
4329fi
4330RANLIB=$ac_cv_prog_RANLIB
4331if test -n "$RANLIB"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4333$as_echo "$RANLIB" >&6; }
4334else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340fi
4341if test -z "$ac_cv_prog_RANLIB"; then
4342 ac_ct_RANLIB=$RANLIB
4343 # Extract the first word of "ranlib", so it can be a program name with args.
4344set dummy ranlib; ac_word=$2
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346$as_echo_n "checking for $ac_word... " >&6; }
4347if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349else
4350 if test -n "$ac_ct_RANLIB"; then
4351 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4352else
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_ac_ct_RANLIB="ranlib"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364done
4365 done
4366IFS=$as_save_IFS
4367
4368fi
4369fi
4370ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4371if test -n "$ac_ct_RANLIB"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4373$as_echo "$ac_ct_RANLIB" >&6; }
4374else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377fi
4378
4379 if test "x$ac_ct_RANLIB" = x; then
4380 RANLIB=":"
4381 else
4382 case $cross_compiling:$ac_tool_warned in
4383yes:)
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386ac_tool_warned=yes ;;
4387esac
4388 RANLIB=$ac_ct_RANLIB
jimblandy92b1f832009-12-23 22:23:49 +00004389 fi
4390else
ted.mielczarekd192a712010-10-05 19:38:51 +00004391 RANLIB="$ac_cv_prog_RANLIB"
brynercb91a2f2006-08-25 21:14:45 +00004392fi
4393
jimblandy92b1f832009-12-23 22:23:49 +00004394
4395
4396
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4398$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4399if test "${ac_cv_path_GREP+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004401else
jimblandy92b1f832009-12-23 22:23:49 +00004402 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004403 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004410 for ac_prog in grep ggrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4414# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004415 # Check for GNU $ac_path_GREP
4416case `"$ac_path_GREP" --version 2>&1` in
4417*GNU*)
4418 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4419*)
4420 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004421 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004422 while :
4423 do
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004427 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004428 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004430 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004431 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_GREP="$ac_path_GREP"
4434 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004435 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4438 done
4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440esac
4441
jimblandy92b1f832009-12-23 22:23:49 +00004442 $ac_path_GREP_found && break 3
4443 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004444 done
jimblandy92b1f832009-12-23 22:23:49 +00004445 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004446IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004447 if test -z "$ac_cv_path_GREP"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00004448 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004449 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004450else
4451 ac_cv_path_GREP=$GREP
4452fi
4453
mmentovai8c2a4de2006-09-20 16:20:15 +00004454fi
jimblandy92b1f832009-12-23 22:23:49 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4456$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004457 GREP="$ac_cv_path_GREP"
4458
4459
jimblandy92b1f832009-12-23 22:23:49 +00004460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4461$as_echo_n "checking for egrep... " >&6; }
4462if test "${ac_cv_path_EGREP+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004464else
4465 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4466 then ac_cv_path_EGREP="$GREP -E"
4467 else
jimblandy92b1f832009-12-23 22:23:49 +00004468 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004469 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004470 # Loop through the user's path and test for each of PROGNAME-LIST
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004476 for ac_prog in egrep; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4479 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4480# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004481 # Check for GNU $ac_path_EGREP
4482case `"$ac_path_EGREP" --version 2>&1` in
4483*GNU*)
4484 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4485*)
4486 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004487 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004488 while :
4489 do
4490 cat "conftest.in" "conftest.in" >"conftest.tmp"
4491 mv "conftest.tmp" "conftest.in"
4492 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004493 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004494 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004496 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004497 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4498 # Best one so far, save it but keep looking for a better one
4499 ac_cv_path_EGREP="$ac_path_EGREP"
4500 ac_path_EGREP_max=$ac_count
4501 fi
4502 # 10*(2^10) chars as input seems more than enough
4503 test $ac_count -gt 10 && break
4504 done
4505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4506esac
4507
jimblandy92b1f832009-12-23 22:23:49 +00004508 $ac_path_EGREP_found && break 3
4509 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004510 done
jimblandy92b1f832009-12-23 22:23:49 +00004511 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004512IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004513 if test -z "$ac_cv_path_EGREP"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00004514 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004515 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004516else
4517 ac_cv_path_EGREP=$EGREP
4518fi
4519
jimblandy92b1f832009-12-23 22:23:49 +00004520 fi
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4523$as_echo "$ac_cv_path_EGREP" >&6; }
4524 EGREP="$ac_cv_path_EGREP"
4525
4526
jimblandy92b1f832009-12-23 22:23:49 +00004527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4528$as_echo_n "checking for ANSI C header files... " >&6; }
4529if test "${ac_cv_header_stdc+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004531else
jimblandy92b1f832009-12-23 22:23:49 +00004532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004533/* end confdefs.h. */
4534#include <stdlib.h>
4535#include <stdarg.h>
4536#include <string.h>
4537#include <float.h>
4538
4539int
4540main ()
4541{
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004547if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004548 ac_cv_header_stdc=yes
4549else
jimblandy92b1f832009-12-23 22:23:49 +00004550 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00004551fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004553
4554if test $ac_cv_header_stdc = yes; then
4555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00004556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004557/* end confdefs.h. */
4558#include <string.h>
4559
4560_ACEOF
4561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00004562 $EGREP "memchr" >/dev/null 2>&1; then :
4563
brynercb91a2f2006-08-25 21:14:45 +00004564else
4565 ac_cv_header_stdc=no
4566fi
4567rm -f conftest*
4568
4569fi
4570
4571if test $ac_cv_header_stdc = yes; then
4572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00004573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004574/* end confdefs.h. */
4575#include <stdlib.h>
4576
4577_ACEOF
4578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00004579 $EGREP "free" >/dev/null 2>&1; then :
4580
brynercb91a2f2006-08-25 21:14:45 +00004581else
4582 ac_cv_header_stdc=no
4583fi
4584rm -f conftest*
4585
4586fi
4587
4588if test $ac_cv_header_stdc = yes; then
4589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +00004590 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +00004591 :
4592else
jimblandy92b1f832009-12-23 22:23:49 +00004593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004594/* end confdefs.h. */
4595#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00004596#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00004597#if ((' ' & 0x0FF) == 0x020)
4598# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4599# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4600#else
4601# define ISLOWER(c) \
4602 (('a' <= (c) && (c) <= 'i') \
4603 || ('j' <= (c) && (c) <= 'r') \
4604 || ('s' <= (c) && (c) <= 'z'))
4605# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4606#endif
4607
4608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4609int
4610main ()
4611{
4612 int i;
4613 for (i = 0; i < 256; i++)
4614 if (XOR (islower (i), ISLOWER (i))
4615 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00004616 return 2;
4617 return 0;
brynercb91a2f2006-08-25 21:14:45 +00004618}
4619_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004620if ac_fn_c_try_run "$LINENO"; then :
4621
brynercb91a2f2006-08-25 21:14:45 +00004622else
jimblandy92b1f832009-12-23 22:23:49 +00004623 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00004624fi
jimblandy92b1f832009-12-23 22:23:49 +00004625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4626 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004627fi
4628
brynercb91a2f2006-08-25 21:14:45 +00004629fi
4630fi
jimblandy92b1f832009-12-23 22:23:49 +00004631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4632$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004633if test $ac_cv_header_stdc = yes; then
4634
jimblandy92b1f832009-12-23 22:23:49 +00004635$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00004636
4637fi
4638
nealsidde545c02010-03-02 00:39:48 +00004639# ===========================================================================
4640# http://www.nongnu.org/autoconf-archive/ax_pthread.html
4641# ===========================================================================
4642#
4643# SYNOPSIS
4644#
4645# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
4646#
4647# DESCRIPTION
4648#
4649# This macro figures out how to build C programs using POSIX threads. It
4650# sets the PTHREAD_LIBS output variable to the threads library and linker
4651# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
4652# flags that are needed. (The user can also force certain compiler
4653# flags/libs to be tested by setting these environment variables.)
4654#
4655# Also sets PTHREAD_CC to any special C compiler that is needed for
4656# multi-threaded programs (defaults to the value of CC otherwise). (This
4657# is necessary on AIX to use the special cc_r compiler alias.)
4658#
4659# NOTE: You are assumed to not only compile your program with these flags,
4660# but also link it with them as well. e.g. you should link with
4661# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
4662#
4663# If you are only building threads programs, you may wish to use these
4664# variables in your default LIBS, CFLAGS, and CC:
4665#
4666# LIBS="$PTHREAD_LIBS $LIBS"
4667# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4668# CC="$PTHREAD_CC"
4669#
4670# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
4671# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
4672# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
4673#
4674# ACTION-IF-FOUND is a list of shell commands to run if a threads library
4675# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
4676# is not found. If ACTION-IF-FOUND is not specified, the default action
4677# will define HAVE_PTHREAD.
4678#
4679# Please let the authors know if this macro fails on any platform, or if
4680# you have any other suggestions or comments. This macro was based on work
4681# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
4682# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
4683# Alejandro Forero Cuervo to the autoconf macro repository. We are also
4684# grateful for the helpful feedback of numerous users.
4685#
4686# LICENSE
4687#
4688# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
4689#
4690# This program is free software: you can redistribute it and/or modify it
4691# under the terms of the GNU General Public License as published by the
4692# Free Software Foundation, either version 3 of the License, or (at your
4693# option) any later version.
4694#
4695# This program is distributed in the hope that it will be useful, but
4696# WITHOUT ANY WARRANTY; without even the implied warranty of
4697# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
4698# Public License for more details.
4699#
4700# You should have received a copy of the GNU General Public License along
4701# with this program. If not, see <http://www.gnu.org/licenses/>.
4702#
4703# As a special exception, the respective Autoconf Macro's copyright owner
4704# gives unlimited permission to copy, distribute and modify the configure
4705# scripts that are the output of Autoconf when processing the Macro. You
4706# need not follow the terms of the GNU General Public License when using
4707# or distributing such scripts, even though portions of the text of the
4708# Macro appear in them. The GNU General Public License (GPL) does govern
4709# all other use of the material that constitutes the Autoconf Macro.
4710#
4711# This special exception to the GPL applies to versions of the Autoconf
4712# Macro released by the Autoconf Archive. When you make and distribute a
4713# modified version of the Autoconf Macro, you may extend this special
4714# exception to the GPL to apply to your modified version as well.
4715
4716#serial 6
4717
4718# This is what autoupdate's m4 run will expand. It fires
4719# the warning (with _au_warn_XXX), outputs it into the
4720# updated configure.ac (with AC_DIAGNOSE), and then outputs
4721# the replacement expansion.
4722
4723
4724# This is an auxiliary macro that is also run when
4725# autoupdate runs m4. It simply calls m4_warning, but
4726# we need a wrapper so that each warning is emitted only
4727# once. We break the quoting in m4_warning's argument in
4728# order to expand this macro's arguments, not AU_DEFUN's.
4729
4730
4731# Finally, this is the expansion that is picked up by
4732# autoconf. It tells the user to run autoupdate, and
4733# then outputs the replacement expansion. We do not care
4734# about autoupdate's warning because that contains
4735# information on what to do *after* running autoupdate.
4736
4737
4738
4739
4740ac_ext=c
4741ac_cpp='$CPP $CPPFLAGS'
4742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745
4746ax_pthread_ok=no
4747
4748# We used to check for pthread.h first, but this fails if pthread.h
4749# requires special compiler flags (e.g. on True64 or Sequent).
4750# It gets checked for in the link test anyway.
4751
4752# First of all, check if the user has set any of the PTHREAD_LIBS,
4753# etcetera environment variables, and if threads linking works using
4754# them:
4755if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4756 save_CFLAGS="$CFLAGS"
4757 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4758 save_LIBS="$LIBS"
4759 LIBS="$PTHREAD_LIBS $LIBS"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4761$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763/* end confdefs.h. */
4764
4765/* Override any GCC internal prototype to avoid an error.
4766 Use char because int might match the return type of a GCC
4767 builtin and then its argument prototype would still apply. */
4768#ifdef __cplusplus
4769extern "C"
4770#endif
4771char pthread_join ();
4772int
4773main ()
4774{
4775return pthread_join ();
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780if ac_fn_c_try_link "$LINENO"; then :
4781 ax_pthread_ok=yes
4782fi
4783rm -f core conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4786$as_echo "$ax_pthread_ok" >&6; }
4787 if test x"$ax_pthread_ok" = xno; then
4788 PTHREAD_LIBS=""
4789 PTHREAD_CFLAGS=""
4790 fi
4791 LIBS="$save_LIBS"
4792 CFLAGS="$save_CFLAGS"
4793fi
4794
4795# We must check for the threads library under a number of different
4796# names; the ordering is very important because some systems
4797# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4798# libraries is broken (non-POSIX).
4799
4800# Create a list of thread flags to try. Items starting with a "-" are
4801# C compiler flags, and other items are library names, except for "none"
4802# which indicates that we try without any flags at all, and "pthread-config"
4803# which is a program returning the flags for the Pth emulation library.
4804
4805ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4806
4807# The ordering *is* (sometimes) important. Some notes on the
4808# individual items follow:
4809
4810# pthreads: AIX (must check this before -lpthread)
4811# none: in case threads are in libc; should be tried before -Kthread and
4812# other compiler flags to prevent continual compiler warnings
4813# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4814# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4815# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4816# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4817# -pthreads: Solaris/gcc
4818# -mthreads: Mingw32/gcc, Lynx/gcc
4819# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4820# doesn't hurt to check since this sometimes defines pthreads too;
4821# also defines -D_REENTRANT)
4822# ... -mt is also the pthreads flag for HP/aCC
4823# pthread: Linux, etcetera
4824# --thread-safe: KAI C++
4825# pthread-config: use pthread-config program (for GNU Pth library)
4826
4827case "${host_cpu}-${host_os}" in
4828 *solaris*)
4829
4830 # On Solaris (at least, for some versions), libc contains stubbed
4831 # (non-functional) versions of the pthreads routines, so link-based
4832 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4833 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4834 # a function called by this macro, so we could check for that, but
4835 # who knows whether they'll stub that too in a future libc.) So,
4836 # we'll just look for -pthreads and -lpthread first:
4837
4838 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
4839 ;;
4840
4841 *-darwin*)
4842 acx_pthread_flags="-pthread $acx_pthread_flags"
4843 ;;
4844esac
4845
4846if test x"$ax_pthread_ok" = xno; then
4847for flag in $ax_pthread_flags; do
4848
4849 case $flag in
4850 none)
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4852$as_echo_n "checking whether pthreads work without any flags... " >&6; }
4853 ;;
4854
4855 -*)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4857$as_echo_n "checking whether pthreads work with $flag... " >&6; }
4858 PTHREAD_CFLAGS="$flag"
4859 ;;
4860
4861 pthread-config)
4862 # Extract the first word of "pthread-config", so it can be a program name with args.
4863set dummy pthread-config; ac_word=$2
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
4866if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868else
4869 if test -n "$ax_pthread_config"; then
4870 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ax_pthread_config="yes"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883done
4884 done
4885IFS=$as_save_IFS
4886
4887 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
4888fi
4889fi
4890ax_pthread_config=$ac_cv_prog_ax_pthread_config
4891if test -n "$ax_pthread_config"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
4893$as_echo "$ax_pthread_config" >&6; }
4894else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896$as_echo "no" >&6; }
4897fi
4898
4899
4900 if test x"$ax_pthread_config" = xno; then continue; fi
4901 PTHREAD_CFLAGS="`pthread-config --cflags`"
4902 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4903 ;;
4904
4905 *)
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4907$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4908 PTHREAD_LIBS="-l$flag"
4909 ;;
4910 esac
4911
4912 save_LIBS="$LIBS"
4913 save_CFLAGS="$CFLAGS"
4914 LIBS="$PTHREAD_LIBS $LIBS"
4915 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4916
4917 # Check for various functions. We must include pthread.h,
4918 # since some functions may be macros. (On the Sequent, we
4919 # need a special flag -Kthread to make this header compile.)
4920 # We check for pthread_join because it is in -lpthread on IRIX
4921 # while pthread_create is in libc. We check for pthread_attr_init
4922 # due to DEC craziness with -lpthreads. We check for
4923 # pthread_cleanup_push because it is one of the few pthread
4924 # functions on Solaris that doesn't have a non-functional libc stub.
4925 # We try pthread_create on general principles.
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h. */
4928#include <pthread.h>
4929 static void routine(void* a) {a=0;}
4930 static void* start_routine(void* a) {return a;}
4931int
4932main ()
4933{
4934pthread_t th; pthread_attr_t attr;
4935 pthread_join(th, 0);
4936 pthread_attr_init(&attr);
4937 pthread_cleanup_push(routine, 0);
4938 pthread_create(&th,0,start_routine,0);
4939 pthread_cleanup_pop(0);
4940 ;
4941 return 0;
4942}
4943_ACEOF
4944if ac_fn_c_try_link "$LINENO"; then :
4945 ax_pthread_ok=yes
4946fi
4947rm -f core conftest.err conftest.$ac_objext \
4948 conftest$ac_exeext conftest.$ac_ext
4949
4950 LIBS="$save_LIBS"
4951 CFLAGS="$save_CFLAGS"
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4954$as_echo "$ax_pthread_ok" >&6; }
4955 if test "x$ax_pthread_ok" = xyes; then
4956 break;
4957 fi
4958
4959 PTHREAD_LIBS=""
4960 PTHREAD_CFLAGS=""
4961done
4962fi
4963
4964# Various other checks:
4965if test "x$ax_pthread_ok" = xyes; then
4966 save_LIBS="$LIBS"
4967 LIBS="$PTHREAD_LIBS $LIBS"
4968 save_CFLAGS="$CFLAGS"
4969 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4970
4971 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4973$as_echo_n "checking for joinable pthread attribute... " >&6; }
4974 attr_name=unknown
4975 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h. */
4978#include <pthread.h>
4979int
4980main ()
4981{
4982int attr=$attr; return attr;
4983 ;
4984 return 0;
4985}
4986_ACEOF
4987if ac_fn_c_try_link "$LINENO"; then :
4988 attr_name=$attr; break
4989fi
4990rm -f core conftest.err conftest.$ac_objext \
4991 conftest$ac_exeext conftest.$ac_ext
4992 done
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4994$as_echo "$attr_name" >&6; }
4995 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4996
4997cat >>confdefs.h <<_ACEOF
4998#define PTHREAD_CREATE_JOINABLE $attr_name
4999_ACEOF
5000
5001 fi
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
5004$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
5005 flag=no
5006 case "${host_cpu}-${host_os}" in
5007 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
5008 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5009 esac
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
5011$as_echo "${flag}" >&6; }
5012 if test "x$flag" != xno; then
5013 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5014 fi
5015
5016 LIBS="$save_LIBS"
5017 CFLAGS="$save_CFLAGS"
5018
5019 # More AIX lossage: must compile with xlc_r or cc_r
5020 if test x"$GCC" != xyes; then
5021 for ac_prog in xlc_r cc_r
5022do
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024set dummy $ac_prog; ac_word=$2
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029else
5030 if test -n "$PTHREAD_CC"; then
5031 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_PTHREAD_CC="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045 done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5051if test -n "$PTHREAD_CC"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5053$as_echo "$PTHREAD_CC" >&6; }
5054else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060 test -n "$PTHREAD_CC" && break
5061done
5062test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
5063
5064 else
5065 PTHREAD_CC=$CC
5066 fi
5067else
5068 PTHREAD_CC="$CC"
5069fi
5070
5071
5072
5073
5074
5075# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5076if test x"$ax_pthread_ok" = xyes; then
5077
5078$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5079
5080 :
5081else
5082 ax_pthread_ok=no
5083
5084fi
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091
5092
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005093# Only build Linux client libs when compiling for Linux
5094case $host in
ted.mielczarekcfc86282010-10-20 15:51:38 +00005095 *-*-linux* | *-android* )
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005096 LINUX_HOST=true
5097 ;;
5098esac
5099 if test x$LINUX_HOST = xtrue; then
5100 LINUX_HOST_TRUE=
5101 LINUX_HOST_FALSE='#'
5102else
5103 LINUX_HOST_TRUE='#'
5104 LINUX_HOST_FALSE=
5105fi
5106
5107
nealsidde545c02010-03-02 00:39:48 +00005108# Check whether --enable-m32 was given.
5109if test "${enable_m32+set}" = set; then :
5110 enableval=$enable_m32; case "${enableval}" in
5111 yes)
ted.mielczarekefa30c12010-09-17 13:36:11 +00005112 CFLAGS="${CFLAGS} -m32"
5113 CXXFLAGS="${CXXFLAGS} -m32"
nealsidde545c02010-03-02 00:39:48 +00005114 usem32=true
5115 ;;
5116 no)
5117 usem32=false
5118 ;;
5119 *)
ted.mielczareke574a2a2010-10-05 19:38:22 +00005120 as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5
nealsidde545c02010-03-02 00:39:48 +00005121 ;;
5122 esac
5123else
5124 usem32=false
5125fi
5126
brynercb91a2f2006-08-25 21:14:45 +00005127
ted.mielczareke574a2a2010-10-05 19:38:22 +00005128# Check whether --enable-processor was given.
5129if test "${enable_processor+set}" = set; then :
5130 enableval=$enable_processor; case "${enableval}" in
5131 yes)
5132 disable_processor=false
5133 ;;
5134 no)
5135 disable_processor=true
5136 ;;
5137 *)
5138 as_fn_error "bad value ${enableval} for --disable-processor" "$LINENO" 5
5139 ;;
5140 esac
5141else
5142 disable_processor=false
5143fi
5144
5145 if test x$disable_processor = xtrue; then
5146 DISABLE_PROCESSOR_TRUE=
5147 DISABLE_PROCESSOR_FALSE='#'
5148else
5149 DISABLE_PROCESSOR_TRUE='#'
5150 DISABLE_PROCESSOR_FALSE=
5151fi
5152
5153
5154if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue; then
5155 as_fn_error "--disable-processor was specified, and not building for Linux. Nothing to build!" "$LINENO" 5
5156fi
5157
ted.mielczarekb2236272010-04-08 23:06:23 +00005158ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
5159"
5160if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
5161
5162$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h
5163
5164else
5165
5166$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\
5167 ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h
5168
5169fi
5170
5171
mmentovai0dbedc92006-09-25 21:16:15 +00005172# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +00005173if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +00005174 enableval=$enable_selftest; case "${enableval}" in
5175 yes)
5176 selftest=true
5177 ;;
5178 no)
5179 selftest=false
5180 ;;
5181 *)
ted.mielczareke574a2a2010-10-05 19:38:22 +00005182 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00005183 ;;
5184 esac
5185else
5186 selftest=false
5187fi
5188
mmentovaiaf3c43f2007-05-17 18:34:37 +00005189 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +00005190 SELFTEST_TRUE=
5191 SELFTEST_FALSE='#'
5192else
5193 SELFTEST_TRUE='#'
5194 SELFTEST_FALSE=
5195fi
5196
5197
mmentovai8c2a4de2006-09-20 16:20:15 +00005198ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +00005199
5200cat >confcache <<\_ACEOF
5201# This file is a shell script that caches the results of configure
5202# tests run on this system so they can be shared between configure
5203# scripts and configure runs, see configure's option --config-cache.
5204# It is not useful on other systems. If it contains results you don't
5205# want to keep, you may remove or edit it.
5206#
5207# config.status only pays attention to the cache file if you give it
5208# the --recheck option to rerun configure.
5209#
5210# `ac_cv_env_foo' variables (set or unset) will be overridden when
5211# loading this file, other *unset* `ac_cv_foo' will be assigned the
5212# following values.
5213
5214_ACEOF
5215
5216# The following way of writing the cache mishandles newlines in values,
5217# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +00005218# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +00005219# Ultrix sh set writes to stderr and can't be redirected directly,
5220# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +00005221(
5222 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5223 eval ac_val=\$$ac_var
5224 case $ac_val in #(
5225 *${as_nl}*)
5226 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00005227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5228$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005229 esac
5230 case $ac_var in #(
5231 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00005232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5233 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005234 esac ;;
5235 esac
5236 done
5237
brynercb91a2f2006-08-25 21:14:45 +00005238 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00005239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5240 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +00005241 # `set' does not quote correctly, so add quotes: double-quote
5242 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +00005243 sed -n \
5244 "s/'/'\\\\''/g;
5245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +00005246 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00005247 *)
5248 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +00005249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00005250 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005251 esac |
5252 sort
5253) |
brynercb91a2f2006-08-25 21:14:45 +00005254 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +00005255 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +00005256 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +00005257 :clear
brynercb91a2f2006-08-25 21:14:45 +00005258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5259 t end
mmentovai8c2a4de2006-09-20 16:20:15 +00005260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5261 :end' >>confcache
5262if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5263 if test -w "$cache_file"; then
5264 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +00005265 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5266$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00005267 cat confcache >$cache_file
5268 else
jimblandy92b1f832009-12-23 22:23:49 +00005269 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5270$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00005271 fi
5272fi
5273rm -f confcache
5274
5275test "x$prefix" = xNONE && prefix=$ac_default_prefix
5276# Let make expand exec_prefix.
5277test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5278
brynercb91a2f2006-08-25 21:14:45 +00005279DEFS=-DHAVE_CONFIG_H
5280
5281ac_libobjs=
5282ac_ltlibobjs=
5283for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5284 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +00005285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +00005286 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +00005287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5288 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +00005289 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5290 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +00005291done
5292LIBOBJS=$ac_libobjs
5293
5294LTLIBOBJS=$ac_ltlibobjs
5295
5296
jimblandy92b1f832009-12-23 22:23:49 +00005297 if test -n "$EXEEXT"; then
5298 am__EXEEXT_TRUE=
5299 am__EXEEXT_FALSE='#'
5300else
5301 am__EXEEXT_TRUE='#'
5302 am__EXEEXT_FALSE=
5303fi
5304
brynercb91a2f2006-08-25 21:14:45 +00005305if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005306 as_fn_error "conditional \"AMDEP\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00005307Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00005308fi
5309if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005310 as_fn_error "conditional \"am__fastdepCC\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00005311Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00005312fi
5313if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005314 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00005315Usually this means the macro was only invoked conditionally." "$LINENO" 5
5316fi
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005317if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005318 as_fn_error "conditional \"LINUX_HOST\" was never defined.
5319Usually this means the macro was only invoked conditionally." "$LINENO" 5
5320fi
5321if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
5322 as_fn_error "conditional \"DISABLE_PROCESSOR\" was never defined.
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005323Usually this means the macro was only invoked conditionally." "$LINENO" 5
5324fi
mmentovai0dbedc92006-09-25 21:16:15 +00005325if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005326 as_fn_error "conditional \"SELFTEST\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00005327Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00005328fi
brynercb91a2f2006-08-25 21:14:45 +00005329
5330: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +00005331ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +00005332ac_clean_files_save=$ac_clean_files
5333ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +00005334{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5335$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5336as_write_fail=0
5337cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005338#! $SHELL
5339# Generated by $as_me.
5340# Run this file to recreate the current configuration.
5341# Compiler output produced by configure, useful for debugging
5342# configure, is in config.log if it exists.
5343
5344debug=false
5345ac_cs_recheck=false
5346ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +00005347
jimblandy92b1f832009-12-23 22:23:49 +00005348SHELL=\${CONFIG_SHELL-$SHELL}
5349export SHELL
5350_ASEOF
5351cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5352## -------------------- ##
5353## M4sh Initialization. ##
5354## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00005355
mmentovaiaf3c43f2007-05-17 18:34:37 +00005356# Be more Bourne compatible
5357DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +00005358if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +00005359 emulate sh
5360 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +00005361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +00005362 # is contrary to our usage. Disable this feature.
5363 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +00005364 setopt NO_GLOB_SUBST
5365else
jimblandy92b1f832009-12-23 22:23:49 +00005366 case `(set -o) 2>/dev/null` in #(
5367 *posix*) :
5368 set -o posix ;; #(
5369 *) :
5370 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +00005371esac
brynercb91a2f2006-08-25 21:14:45 +00005372fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00005373
5374
jimblandy92b1f832009-12-23 22:23:49 +00005375as_nl='
5376'
5377export as_nl
5378# Printing a long string crashes Solaris 7 /usr/bin/printf.
5379as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5380as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5382# Prefer a ksh shell builtin over an external printf program on Solaris,
5383# but without wasting forks for bash or zsh.
5384if test -z "$BASH_VERSION$ZSH_VERSION" \
5385 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5386 as_echo='print -r --'
5387 as_echo_n='print -rn --'
5388elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5389 as_echo='printf %s\n'
5390 as_echo_n='printf %s'
5391else
5392 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5393 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5394 as_echo_n='/usr/ucb/echo -n'
5395 else
5396 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5397 as_echo_n_body='eval
5398 arg=$1;
5399 case $arg in #(
5400 *"$as_nl"*)
5401 expr "X$arg" : "X\\(.*\\)$as_nl";
5402 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5403 esac;
5404 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5405 '
5406 export as_echo_n_body
5407 as_echo_n='sh -c $as_echo_n_body as_echo'
5408 fi
5409 export as_echo_body
5410 as_echo='sh -c $as_echo_body as_echo'
5411fi
brynercb91a2f2006-08-25 21:14:45 +00005412
5413# The user is always right.
5414if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +00005415 PATH_SEPARATOR=:
5416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5418 PATH_SEPARATOR=';'
5419 }
mmentovai8c2a4de2006-09-20 16:20:15 +00005420fi
brynercb91a2f2006-08-25 21:14:45 +00005421
mmentovai8c2a4de2006-09-20 16:20:15 +00005422
5423# IFS
5424# We need space, tab and new line, in precisely that order. Quoting is
5425# there to prevent editors from complaining about space-tab.
5426# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5427# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +00005428IFS=" "" $as_nl"
5429
5430# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +00005431case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +00005432 *[\\/]* ) as_myself=$0 ;;
5433 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00005434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005438 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5439 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005440IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005441
mmentovai8c2a4de2006-09-20 16:20:15 +00005442 ;;
5443esac
5444# We did not find ourselves, most probably we were run as `sh COMMAND'
5445# in which case we are not to be found in the path.
5446if test "x$as_myself" = x; then
5447 as_myself=$0
5448fi
5449if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +00005450 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5451 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +00005452fi
5453
jimblandy92b1f832009-12-23 22:23:49 +00005454# Unset variables that we do not need and which cause bugs (e.g. in
5455# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5456# suppresses any "Segmentation fault" message there. '((' could
5457# trigger a bug in pdksh 5.2.14.
5458for as_var in BASH_ENV ENV MAIL MAILPATH
5459do eval test x\${$as_var+set} = xset \
5460 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +00005461done
5462PS1='$ '
5463PS2='> '
5464PS4='+ '
5465
5466# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +00005467LC_ALL=C
5468export LC_ALL
5469LANGUAGE=C
5470export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +00005471
jimblandy92b1f832009-12-23 22:23:49 +00005472# CDPATH.
5473(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5474
5475
ted.mielczareke574a2a2010-10-05 19:38:22 +00005476# as_fn_error ERROR [LINENO LOG_FD]
5477# ---------------------------------
jimblandy92b1f832009-12-23 22:23:49 +00005478# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5479# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ted.mielczareke574a2a2010-10-05 19:38:22 +00005480# script with status $?, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +00005481as_fn_error ()
5482{
ted.mielczareke574a2a2010-10-05 19:38:22 +00005483 as_status=$?; test $as_status -eq 0 && as_status=1
5484 if test "$3"; then
5485 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5486 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
jimblandy92b1f832009-12-23 22:23:49 +00005487 fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00005488 $as_echo "$as_me: error: $1" >&2
jimblandy92b1f832009-12-23 22:23:49 +00005489 as_fn_exit $as_status
5490} # as_fn_error
5491
5492
5493# as_fn_set_status STATUS
5494# -----------------------
5495# Set $? to STATUS, without forking.
5496as_fn_set_status ()
5497{
5498 return $1
5499} # as_fn_set_status
5500
5501# as_fn_exit STATUS
5502# -----------------
5503# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5504as_fn_exit ()
5505{
5506 set +e
5507 as_fn_set_status $1
5508 exit $1
5509} # as_fn_exit
5510
5511# as_fn_unset VAR
5512# ---------------
5513# Portably unset VAR.
5514as_fn_unset ()
5515{
5516 { eval $1=; unset $1;}
5517}
5518as_unset=as_fn_unset
5519# as_fn_append VAR VALUE
5520# ----------------------
5521# Append the text in VALUE to the end of the definition contained in VAR. Take
5522# advantage of any shell optimizations that allow amortized linear growth over
5523# repeated appends, instead of the typical quadratic growth present in naive
5524# implementations.
5525if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5526 eval 'as_fn_append ()
5527 {
5528 eval $1+=\$2
5529 }'
5530else
5531 as_fn_append ()
5532 {
5533 eval $1=\$$1\$2
5534 }
5535fi # as_fn_append
5536
5537# as_fn_arith ARG...
5538# ------------------
5539# Perform arithmetic evaluation on the ARGs, and store the result in the
5540# global $as_val. Take advantage of shells that can avoid forks. The arguments
5541# must be portable across $(()) and expr.
5542if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5543 eval 'as_fn_arith ()
5544 {
5545 as_val=$(( $* ))
5546 }'
5547else
5548 as_fn_arith ()
5549 {
5550 as_val=`expr "$@" || test $? -eq 1`
5551 }
5552fi # as_fn_arith
5553
5554
mmentovai8c2a4de2006-09-20 16:20:15 +00005555if expr a : '\(a\)' >/dev/null 2>&1 &&
5556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5557 as_expr=expr
5558else
5559 as_expr=false
5560fi
5561
5562if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5563 as_basename=basename
5564else
5565 as_basename=false
5566fi
5567
jimblandy92b1f832009-12-23 22:23:49 +00005568if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5569 as_dirname=dirname
5570else
5571 as_dirname=false
5572fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005573
mmentovai8c2a4de2006-09-20 16:20:15 +00005574as_me=`$as_basename -- "$0" ||
5575$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5576 X"$0" : 'X\(//\)$' \| \
5577 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00005578$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00005579 sed '/^.*\/\([^/][^/]*\)\/*$/{
5580 s//\1/
5581 q
5582 }
5583 /^X\/\(\/\/\)$/{
5584 s//\1/
5585 q
5586 }
5587 /^X\/\(\/\).*/{
5588 s//\1/
5589 q
5590 }
5591 s/.*/./; q'`
5592
jimblandy92b1f832009-12-23 22:23:49 +00005593# Avoid depending upon Character Ranges.
5594as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5595as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5596as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5597as_cr_digits='0123456789'
5598as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +00005599
5600ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +00005601case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +00005602-n*)
jimblandy92b1f832009-12-23 22:23:49 +00005603 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +00005604 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +00005605 xy) ECHO_C='\c';;
5606 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5607 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +00005608 esac;;
5609*)
5610 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +00005611esac
5612
brynercb91a2f2006-08-25 21:14:45 +00005613rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +00005614if test -d conf$$.dir; then
5615 rm -f conf$$.dir/conf$$.file
5616else
5617 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +00005618 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +00005619fi
jimblandy92b1f832009-12-23 22:23:49 +00005620if (echo >conf$$.file) 2>/dev/null; then
5621 if ln -s conf$$.file conf$$ 2>/dev/null; then
5622 as_ln_s='ln -s'
5623 # ... but there are two gotchas:
5624 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5625 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5626 # In both cases, we have to default to `cp -p'.
5627 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5628 as_ln_s='cp -p'
5629 elif ln conf$$.file conf$$ 2>/dev/null; then
5630 as_ln_s=ln
5631 else
brynercb91a2f2006-08-25 21:14:45 +00005632 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +00005633 fi
brynercb91a2f2006-08-25 21:14:45 +00005634else
5635 as_ln_s='cp -p'
5636fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005637rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5638rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00005639
jimblandy92b1f832009-12-23 22:23:49 +00005640
5641# as_fn_mkdir_p
5642# -------------
5643# Create "$as_dir" as a directory, including parents if necessary.
5644as_fn_mkdir_p ()
5645{
5646
5647 case $as_dir in #(
5648 -*) as_dir=./$as_dir;;
5649 esac
5650 test -d "$as_dir" || eval $as_mkdir_p || {
5651 as_dirs=
5652 while :; do
5653 case $as_dir in #(
5654 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5655 *) as_qdir=$as_dir;;
5656 esac
5657 as_dirs="'$as_qdir' $as_dirs"
5658 as_dir=`$as_dirname -- "$as_dir" ||
5659$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5660 X"$as_dir" : 'X\(//\)[^/]' \| \
5661 X"$as_dir" : 'X\(//\)$' \| \
5662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5663$as_echo X"$as_dir" |
5664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5665 s//\1/
5666 q
5667 }
5668 /^X\(\/\/\)[^/].*/{
5669 s//\1/
5670 q
5671 }
5672 /^X\(\/\/\)$/{
5673 s//\1/
5674 q
5675 }
5676 /^X\(\/\).*/{
5677 s//\1/
5678 q
5679 }
5680 s/.*/./; q'`
5681 test -d "$as_dir" && break
5682 done
5683 test -z "$as_dirs" || eval "mkdir $as_dirs"
ted.mielczareke574a2a2010-10-05 19:38:22 +00005684 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +00005685
5686
5687} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00005688if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +00005689 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +00005690else
5691 test -d ./-p && rmdir ./-p
5692 as_mkdir_p=false
5693fi
5694
mmentovaiaf3c43f2007-05-17 18:34:37 +00005695if test -x / >/dev/null 2>&1; then
5696 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +00005697else
mmentovaiaf3c43f2007-05-17 18:34:37 +00005698 if ls -dL / >/dev/null 2>&1; then
5699 as_ls_L_option=L
5700 else
5701 as_ls_L_option=
5702 fi
5703 as_test_x='
5704 eval sh -c '\''
5705 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +00005706 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +00005707 else
jimblandy92b1f832009-12-23 22:23:49 +00005708 case $1 in #(
5709 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +00005710 esac;
jimblandy92b1f832009-12-23 22:23:49 +00005711 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +00005712 ???[sx]*):;;*)false;;esac;fi
5713 '\'' sh
5714 '
mmentovai8c2a4de2006-09-20 16:20:15 +00005715fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00005716as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +00005717
5718# Sed expression to map a string onto a valid CPP name.
5719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5720
5721# Sed expression to map a string onto a valid variable name.
5722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5723
5724
brynercb91a2f2006-08-25 21:14:45 +00005725exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +00005726## ----------------------------------- ##
5727## Main body of $CONFIG_STATUS script. ##
5728## ----------------------------------- ##
5729_ASEOF
5730test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005731
jimblandy92b1f832009-12-23 22:23:49 +00005732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5733# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +00005734# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +00005735# values after options handling.
5736ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +00005737This file was extended by breakpad $as_me 0.1, which was
ted.mielczareke574a2a2010-10-05 19:38:22 +00005738generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00005739
5740 CONFIG_FILES = $CONFIG_FILES
5741 CONFIG_HEADERS = $CONFIG_HEADERS
5742 CONFIG_LINKS = $CONFIG_LINKS
5743 CONFIG_COMMANDS = $CONFIG_COMMANDS
5744 $ $0 $@
5745
mmentovai8c2a4de2006-09-20 16:20:15 +00005746on `(hostname || uname -n) 2>/dev/null | sed 1q`
5747"
5748
brynercb91a2f2006-08-25 21:14:45 +00005749_ACEOF
5750
jimblandy92b1f832009-12-23 22:23:49 +00005751case $ac_config_files in *"
5752"*) set x $ac_config_files; shift; ac_config_files=$*;;
5753esac
5754
5755case $ac_config_headers in *"
5756"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5757esac
5758
5759
5760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005761# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +00005762config_files="$ac_config_files"
5763config_headers="$ac_config_headers"
5764config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +00005765
mmentovai8c2a4de2006-09-20 16:20:15 +00005766_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00005767
jimblandy92b1f832009-12-23 22:23:49 +00005768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005769ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +00005770\`$as_me' instantiates files and other configuration actions
5771from templates according to the current configuration. Unless the files
5772and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +00005773
jimblandy92b1f832009-12-23 22:23:49 +00005774Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +00005775
5776 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +00005777 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +00005778 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +00005779 -q, --quiet, --silent
5780 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +00005781 -d, --debug don't remove temporary files
5782 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +00005783 --file=FILE[:TEMPLATE]
5784 instantiate the configuration file FILE
5785 --header=FILE[:TEMPLATE]
5786 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +00005787
5788Configuration files:
5789$config_files
5790
5791Configuration headers:
5792$config_headers
5793
5794Configuration commands:
5795$config_commands
5796
jimblandy92b1f832009-12-23 22:23:49 +00005797Report bugs to <opensource@google.com>."
brynercb91a2f2006-08-25 21:14:45 +00005798
mmentovai8c2a4de2006-09-20 16:20:15 +00005799_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +00005801ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +00005802ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +00005803breakpad config.status 0.1
ted.mielczareke574a2a2010-10-05 19:38:22 +00005804configured by $0, generated by GNU Autoconf 2.65,
jimblandydc4029a2010-02-02 17:39:51 +00005805 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +00005806
ted.mielczareke574a2a2010-10-05 19:38:22 +00005807Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00005808This config.status script is free software; the Free Software Foundation
5809gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +00005810
5811ac_pwd='$ac_pwd'
5812srcdir='$srcdir'
5813INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +00005814MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +00005815AWK='$AWK'
5816test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +00005817_ACEOF
5818
jimblandy92b1f832009-12-23 22:23:49 +00005819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5820# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +00005821ac_need_defaults=:
5822while test $# != 0
5823do
5824 case $1 in
ted.mielczareke574a2a2010-10-05 19:38:22 +00005825 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +00005826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5827 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00005828 ac_shift=:
5829 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005830 *)
brynercb91a2f2006-08-25 21:14:45 +00005831 ac_option=$1
5832 ac_optarg=$2
5833 ac_shift=shift
5834 ;;
brynercb91a2f2006-08-25 21:14:45 +00005835 esac
5836
5837 case $ac_option in
5838 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +00005839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5840 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +00005842 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +00005843 --config | --confi | --conf | --con | --co | --c )
5844 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005845 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +00005846 debug=: ;;
5847 --file | --fil | --fi | --f )
5848 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00005849 case $ac_optarg in
5850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5851 esac
5852 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00005853 ac_need_defaults=false;;
5854 --header | --heade | --head | --hea )
5855 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00005856 case $ac_optarg in
5857 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5858 esac
5859 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00005860 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005861 --he | --h)
5862 # Conflict between --help and --header
ted.mielczareke574a2a2010-10-05 19:38:22 +00005863 as_fn_error "ambiguous option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00005864Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +00005865 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +00005866 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +00005867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5868 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5869 ac_cs_silent=: ;;
5870
5871 # This is an error.
ted.mielczareke574a2a2010-10-05 19:38:22 +00005872 -*) as_fn_error "unrecognized option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00005873Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +00005874
jimblandy92b1f832009-12-23 22:23:49 +00005875 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +00005876 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +00005877
5878 esac
5879 shift
5880done
5881
5882ac_configure_extra_args=
5883
5884if $ac_cs_silent; then
5885 exec 6>/dev/null
5886 ac_configure_extra_args="$ac_configure_extra_args --silent"
5887fi
5888
5889_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005891if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +00005892 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5893 shift
5894 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5895 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +00005896 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +00005897 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +00005898fi
5899
5900_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00005902exec 5>>config.log
5903{
5904 echo
5905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5906## Running $as_me. ##
5907_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +00005908 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +00005909} >&5
brynercb91a2f2006-08-25 21:14:45 +00005910
mmentovai8c2a4de2006-09-20 16:20:15 +00005911_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005913#
mmentovai8c2a4de2006-09-20 16:20:15 +00005914# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +00005915#
brynercb91a2f2006-08-25 21:14:45 +00005916AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5917
5918_ACEOF
5919
jimblandy92b1f832009-12-23 22:23:49 +00005920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00005921
5922# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +00005923for ac_config_target in $ac_config_targets
5924do
mmentovai8c2a4de2006-09-20 16:20:15 +00005925 case $ac_config_target in
5926 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5927 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5929
ted.mielczareke574a2a2010-10-05 19:38:22 +00005930 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +00005931 esac
5932done
5933
mmentovai8c2a4de2006-09-20 16:20:15 +00005934
brynercb91a2f2006-08-25 21:14:45 +00005935# If the user did not use the arguments to specify the items to instantiate,
5936# then the envvar interface is used. Set only those that are not.
5937# We use the long form for the default assignment because of an extremely
5938# bizarre bug on SunOS 4.1.3.
5939if $ac_need_defaults; then
5940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5943fi
5944
5945# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +00005946# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +00005947# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +00005948# Hook for its removal unless debugging.
5949# Note that there is a small window in which the directory will not be cleaned:
5950# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +00005951$debug ||
5952{
mmentovai8c2a4de2006-09-20 16:20:15 +00005953 tmp=
5954 trap 'exit_status=$?
5955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5956' 0
jimblandy92b1f832009-12-23 22:23:49 +00005957 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +00005958}
brynercb91a2f2006-08-25 21:14:45 +00005959# Create a (secure) tmp directory for tmp files.
5960
5961{
mmentovai8c2a4de2006-09-20 16:20:15 +00005962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +00005963 test -n "$tmp" && test -d "$tmp"
5964} ||
5965{
mmentovai8c2a4de2006-09-20 16:20:15 +00005966 tmp=./conf$$-$RANDOM
5967 (umask 077 && mkdir "$tmp")
ted.mielczareke574a2a2010-10-05 19:38:22 +00005968} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00005969
jimblandy92b1f832009-12-23 22:23:49 +00005970# Set up the scripts for CONFIG_FILES section.
5971# No need to generate them if there are no CONFIG_FILES.
5972# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +00005973if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +00005974
jimblandy92b1f832009-12-23 22:23:49 +00005975
5976ac_cr=`echo X | tr X '\015'`
5977# On cygwin, bash can eat \r inside `` if the user requested igncr.
5978# But we know of no other shell where ac_cr would be empty at this
5979# point, so we can use a bashism as a fallback.
5980if test "x$ac_cr" = x; then
5981 eval ac_cr=\$\'\\r\'
5982fi
5983ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5984if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005985 ac_cs_awk_cr='\r'
jimblandy92b1f832009-12-23 22:23:49 +00005986else
5987 ac_cs_awk_cr=$ac_cr
5988fi
5989
5990echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +00005991_ACEOF
5992
mmentovai8c2a4de2006-09-20 16:20:15 +00005993
jimblandy92b1f832009-12-23 22:23:49 +00005994{
5995 echo "cat >conf$$subs.awk <<_ACEOF" &&
5996 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5997 echo "_ACEOF"
5998} >conf$$subs.sh ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00005999 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6000ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +00006001ac_delim='%!_!# '
6002for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +00006003 . ./conf$$subs.sh ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00006004 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00006005
jimblandy92b1f832009-12-23 22:23:49 +00006006 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6007 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006008 break
6009 elif $ac_last_try; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00006010 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00006011 else
6012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +00006013 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006014done
jimblandy92b1f832009-12-23 22:23:49 +00006015rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +00006016
jimblandy92b1f832009-12-23 22:23:49 +00006017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6018cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +00006019_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006020sed -n '
6021h
6022s/^/S["/; s/!.*/"]=/
6023p
6024g
6025s/^[^!]*!//
6026:repl
6027t repl
6028s/'"$ac_delim"'$//
6029t delim
6030:nl
6031h
jimblandydc4029a2010-02-02 17:39:51 +00006032s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00006033t more1
6034s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6035p
6036n
6037b repl
6038:more1
6039s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6040p
6041g
6042s/.\{148\}//
6043t nl
6044:delim
6045h
jimblandydc4029a2010-02-02 17:39:51 +00006046s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00006047t more2
6048s/["\\]/\\&/g; s/^/"/; s/$/"/
6049p
6050b
6051:more2
6052s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6053p
6054g
6055s/.\{148\}//
6056t delim
6057' <conf$$subs.awk | sed '
6058/^[^""]/{
6059 N
6060 s/\n//
6061}
6062' >>$CONFIG_STATUS || ac_write_fail=1
6063rm -f conf$$subs.awk
6064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6065_ACAWK
6066cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6067 for (key in S) S_is_set[key] = 1
6068 FS = ""
6069
6070}
6071{
6072 line = $ 0
6073 nfields = split(line, field, "@")
6074 substed = 0
6075 len = length(field[1])
6076 for (i = 2; i < nfields; i++) {
6077 key = field[i]
6078 keylen = length(key)
6079 if (S_is_set[key]) {
6080 value = S[key]
6081 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6082 len += length(value) + length(field[++i])
6083 substed = 1
6084 } else
6085 len += 1 + keylen
6086 }
6087
6088 print line
6089}
6090
6091_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +00006092_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6094if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6095 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6096else
6097 cat
6098fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006099 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00006100_ACEOF
6101
ted.mielczareke574a2a2010-10-05 19:38:22 +00006102# VPATH may cause trouble with some makes, so we remove $(srcdir),
6103# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
mmentovai8c2a4de2006-09-20 16:20:15 +00006104# trailing colons and then remove the whole line if VPATH becomes empty
6105# (actually we leave an empty line to preserve line numbers).
6106if test "x$srcdir" = x.; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00006107 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6108s/:*\$(srcdir):*/:/
6109s/:*\${srcdir}:*/:/
6110s/:*@srcdir@:*/:/
6111s/^\([^=]*=[ ]*\):*/\1/
mmentovai8c2a4de2006-09-20 16:20:15 +00006112s/:*$//
6113s/^[^=]*=[ ]*$//
6114}'
6115fi
6116
jimblandy92b1f832009-12-23 22:23:49 +00006117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006118fi # test -n "$CONFIG_FILES"
6119
jimblandy92b1f832009-12-23 22:23:49 +00006120# Set up the scripts for CONFIG_HEADERS section.
6121# No need to generate them if there are no CONFIG_HEADERS.
6122# This happens for instance with `./config.status Makefile'.
6123if test -n "$CONFIG_HEADERS"; then
6124cat >"$tmp/defines.awk" <<\_ACAWK ||
6125BEGIN {
6126_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00006127
jimblandy92b1f832009-12-23 22:23:49 +00006128# Transform confdefs.h into an awk script `defines.awk', embedded as
6129# here-document in config.status, that substitutes the proper values into
6130# config.h.in to produce config.h.
6131
6132# Create a delimiter string that does not exist in confdefs.h, to ease
6133# handling of long lines.
6134ac_delim='%!_!# '
6135for ac_last_try in false false :; do
6136 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6137 if test -z "$ac_t"; then
6138 break
6139 elif $ac_last_try; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00006140 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00006141 else
6142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6143 fi
6144done
6145
6146# For the awk script, D is an array of macro values keyed by name,
6147# likewise P contains macro parameters if any. Preserve backslash
6148# newline sequences.
6149
6150ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6151sed -n '
6152s/.\{148\}/&'"$ac_delim"'/g
6153t rset
6154:rset
6155s/^[ ]*#[ ]*define[ ][ ]*/ /
6156t def
6157d
6158:def
6159s/\\$//
6160t bsnl
6161s/["\\]/\\&/g
6162s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6163D["\1"]=" \3"/p
6164s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6165d
6166:bsnl
6167s/["\\]/\\&/g
6168s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6169D["\1"]=" \3\\\\\\n"\\/p
6170t cont
6171s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6172t cont
6173d
6174:cont
6175n
6176s/.\{148\}/&'"$ac_delim"'/g
6177t clear
6178:clear
6179s/\\$//
6180t bsnlc
6181s/["\\]/\\&/g; s/^/"/; s/$/"/p
6182d
6183:bsnlc
6184s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6185b cont
6186' <confdefs.h | sed '
6187s/'"$ac_delim"'/"\\\
6188"/g' >>$CONFIG_STATUS || ac_write_fail=1
6189
6190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6191 for (key in D) D_is_set[key] = 1
6192 FS = ""
6193}
6194/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6195 line = \$ 0
6196 split(line, arg, " ")
6197 if (arg[1] == "#") {
6198 defundef = arg[2]
6199 mac1 = arg[3]
6200 } else {
6201 defundef = substr(arg[1], 2)
6202 mac1 = arg[2]
6203 }
6204 split(mac1, mac2, "(") #)
6205 macro = mac2[1]
6206 prefix = substr(line, 1, index(line, defundef) - 1)
6207 if (D_is_set[macro]) {
6208 # Preserve the white space surrounding the "#".
6209 print prefix "define", macro P[macro] D[macro]
6210 next
6211 } else {
6212 # Replace #undef with comments. This is necessary, for example,
6213 # in the case of _POSIX_SOURCE, which is predefined and required
6214 # on some systems where configure will not decide to define it.
6215 if (defundef == "undef") {
6216 print "/*", prefix defundef, macro, "*/"
6217 next
6218 }
6219 }
6220}
6221{ print }
6222_ACAWK
6223_ACEOF
6224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ted.mielczareke574a2a2010-10-05 19:38:22 +00006225 as_fn_error "could not setup config headers machinery" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00006226fi # test -n "$CONFIG_HEADERS"
6227
6228
6229eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6230shift
6231for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +00006232do
6233 case $ac_tag in
6234 :[FHLC]) ac_mode=$ac_tag; continue;;
6235 esac
6236 case $ac_mode$ac_tag in
6237 :[FHL]*:*);;
ted.mielczareke574a2a2010-10-05 19:38:22 +00006238 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006239 :[FH]-) ac_tag=-:-;;
6240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6241 esac
6242 ac_save_IFS=$IFS
6243 IFS=:
6244 set x $ac_tag
6245 IFS=$ac_save_IFS
6246 shift
6247 ac_file=$1
6248 shift
6249
6250 case $ac_mode in
6251 :L) ac_source=$1;;
6252 :[FH])
6253 ac_file_inputs=
6254 for ac_f
6255 do
6256 case $ac_f in
6257 -) ac_f="$tmp/stdin";;
6258 *) # Look for the file first in the build tree, then in the source tree
6259 # (if the path is not absolute). The absolute path cannot be DOS-style,
6260 # because $ac_f cannot contain `:'.
6261 test -f "$ac_f" ||
6262 case $ac_f in
6263 [\\/$]*) false;;
6264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6265 esac ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00006266 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006267 esac
jimblandy92b1f832009-12-23 22:23:49 +00006268 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6269 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +00006270 done
6271
6272 # Let's still pretend it is `configure' which instantiates (i.e., don't
6273 # use $as_me), people would be surprised to read:
6274 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +00006275 configure_input='Generated from '`
6276 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6277 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +00006278 if test x"$ac_file" != x-; then
6279 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +00006280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6281$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00006282 fi
jimblandy92b1f832009-12-23 22:23:49 +00006283 # Neutralize special characters interpreted by sed in replacement strings.
6284 case $configure_input in #(
6285 *\&* | *\|* | *\\* )
6286 ac_sed_conf_input=`$as_echo "$configure_input" |
6287 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6288 *) ac_sed_conf_input=$configure_input;;
6289 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00006290
6291 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +00006292 *:-:* | *:-) cat >"$tmp/stdin" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006293 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006294 esac
6295 ;;
brynercb91a2f2006-08-25 21:14:45 +00006296 esac
6297
mmentovai8c2a4de2006-09-20 16:20:15 +00006298 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +00006299$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6300 X"$ac_file" : 'X\(//\)[^/]' \| \
6301 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00006302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00006303$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6305 s//\1/
6306 q
6307 }
6308 /^X\(\/\/\)[^/].*/{
6309 s//\1/
6310 q
6311 }
6312 /^X\(\/\/\)$/{
6313 s//\1/
6314 q
6315 }
6316 /^X\(\/\).*/{
6317 s//\1/
6318 q
6319 }
6320 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00006321 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00006322 ac_builddir=.
6323
mmentovai8c2a4de2006-09-20 16:20:15 +00006324case "$ac_dir" in
6325.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6326*)
jimblandy92b1f832009-12-23 22:23:49 +00006327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00006328 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00006329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00006330 case $ac_top_builddir_sub in
6331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6333 esac ;;
6334esac
6335ac_abs_top_builddir=$ac_pwd
6336ac_abs_builddir=$ac_pwd$ac_dir_suffix
6337# for backward compatibility:
6338ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00006339
6340case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00006341 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00006342 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00006343 ac_top_srcdir=$ac_top_builddir_sub
6344 ac_abs_top_srcdir=$ac_pwd ;;
6345 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00006346 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00006347 ac_top_srcdir=$srcdir
6348 ac_abs_top_srcdir=$srcdir ;;
6349 *) # Relative name.
6350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6351 ac_top_srcdir=$ac_top_build_prefix$srcdir
6352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00006353esac
mmentovai8c2a4de2006-09-20 16:20:15 +00006354ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00006355
brynercb91a2f2006-08-25 21:14:45 +00006356
mmentovai8c2a4de2006-09-20 16:20:15 +00006357 case $ac_mode in
6358 :F)
6359 #
6360 # CONFIG_FILE
6361 #
brynercb91a2f2006-08-25 21:14:45 +00006362
6363 case $INSTALL in
6364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006365 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +00006366 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +00006367 ac_MKDIR_P=$MKDIR_P
6368 case $MKDIR_P in
6369 [\\/$]* | ?:[\\/]* ) ;;
6370 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6371 esac
brynercb91a2f2006-08-25 21:14:45 +00006372_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00006373
jimblandy92b1f832009-12-23 22:23:49 +00006374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00006375# If the template does not know about datarootdir, expand it.
6376# FIXME: This hack should be removed a few years after 2.60.
6377ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +00006378ac_sed_dataroot='
6379/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +00006380 p
6381 q
6382}
6383/@datadir@/p
6384/@docdir@/p
6385/@infodir@/p
6386/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +00006387/@mandir@/p'
6388case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +00006389*datarootdir*) ac_datarootdir_seen=yes;;
6390*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +00006391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6392$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00006393_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00006395 ac_datarootdir_hack='
6396 s&@datadir@&$datadir&g
6397 s&@docdir@&$docdir&g
6398 s&@infodir@&$infodir&g
6399 s&@localedir@&$localedir&g
6400 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +00006401 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006402esac
6403_ACEOF
6404
6405# Neutralize VPATH when `$srcdir' = `.'.
6406# Shell code in configure.ac might set extrasub.
6407# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +00006408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6409ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +00006410$extrasub
6411_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006413:t
6414/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +00006415s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00006416s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +00006417s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00006418s&@srcdir@&$ac_srcdir&;t t
6419s&@abs_srcdir@&$ac_abs_srcdir&;t t
6420s&@top_srcdir@&$ac_top_srcdir&;t t
6421s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6422s&@builddir@&$ac_builddir&;t t
6423s&@abs_builddir@&$ac_abs_builddir&;t t
6424s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6425s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +00006426s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00006427$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +00006428"
6429eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006430 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006431
mmentovai8c2a4de2006-09-20 16:20:15 +00006432test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6433 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +00006435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ted.mielczareke574a2a2010-10-05 19:38:22 +00006436which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +00006437$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ted.mielczareke574a2a2010-10-05 19:38:22 +00006438which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +00006439
mmentovai8c2a4de2006-09-20 16:20:15 +00006440 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +00006441 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00006442 -) cat "$tmp/out" && rm -f "$tmp/out";;
6443 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6444 esac \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006445 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00006446 ;;
6447 :H)
6448 #
6449 # CONFIG_HEADER
6450 #
brynercb91a2f2006-08-25 21:14:45 +00006451 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +00006452 {
6453 $as_echo "/* $configure_input */" \
6454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6455 } >"$tmp/config.h" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006456 || as_fn_error "could not create $ac_file" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00006457 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6459$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00006460 else
jimblandy92b1f832009-12-23 22:23:49 +00006461 rm -f "$ac_file"
6462 mv "$tmp/config.h" "$ac_file" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006463 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006464 fi
6465 else
jimblandy92b1f832009-12-23 22:23:49 +00006466 $as_echo "/* $configure_input */" \
6467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006468 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006469 fi
jimblandy92b1f832009-12-23 22:23:49 +00006470# Compute "$ac_file"'s index in $config_headers.
6471_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +00006472_am_stamp_count=1
6473for _am_header in $config_headers :; do
6474 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +00006475 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +00006476 break ;;
6477 * )
6478 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6479 esac
6480done
jimblandy92b1f832009-12-23 22:23:49 +00006481echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6482$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6483 X"$_am_arg" : 'X\(//\)[^/]' \| \
6484 X"$_am_arg" : 'X\(//\)$' \| \
6485 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6486$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6488 s//\1/
6489 q
6490 }
6491 /^X\(\/\/\)[^/].*/{
6492 s//\1/
6493 q
6494 }
6495 /^X\(\/\/\)$/{
6496 s//\1/
6497 q
6498 }
6499 /^X\(\/\).*/{
6500 s//\1/
6501 q
6502 }
6503 s/.*/./; q'`/stamp-h$_am_stamp_count
6504 ;;
brynercb91a2f2006-08-25 21:14:45 +00006505
jimblandy92b1f832009-12-23 22:23:49 +00006506 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6507$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00006508 ;;
6509 esac
brynercb91a2f2006-08-25 21:14:45 +00006510
6511
mmentovai8c2a4de2006-09-20 16:20:15 +00006512 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +00006513 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6514 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6515 # are listed without --file. Let's play safe and only enable the eval
6516 # if we detect the quoting.
6517 case $CONFIG_FILES in
6518 *\'*) eval set x "$CONFIG_FILES" ;;
6519 *) set x $CONFIG_FILES ;;
6520 esac
6521 shift
6522 for mf
6523 do
6524 # Strip MF so we end up with the name of the file.
6525 mf=`echo "$mf" | sed -e 's/:.*$//'`
6526 # Check whether this is an Automake generated Makefile or not.
6527 # We used to match only the files named `Makefile.in', but
6528 # some people rename them; so instead we look at the file content.
6529 # Grep'ing the first line is not enough: some people post-process
6530 # each Makefile.in and add a new line on top of each file to say so.
6531 # Grep'ing the whole file is not good either: AIX grep has a line
6532 # limit of 2048, but all sed's we know have understand at least 4000.
6533 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6534 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +00006535$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6536 X"$mf" : 'X\(//\)[^/]' \| \
6537 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00006538 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00006539$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6541 s//\1/
6542 q
6543 }
6544 /^X\(\/\/\)[^/].*/{
6545 s//\1/
6546 q
6547 }
6548 /^X\(\/\/\)$/{
6549 s//\1/
6550 q
6551 }
6552 /^X\(\/\).*/{
6553 s//\1/
6554 q
6555 }
6556 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00006557 else
6558 continue
6559 fi
6560 # Extract the definition of DEPDIR, am__include, and am__quote
6561 # from the Makefile without running `make'.
6562 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6563 test -z "$DEPDIR" && continue
6564 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6565 test -z "am__include" && continue
6566 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6567 # When using ansi2knr, U may be empty or an underscore; expand it
6568 U=`sed -n 's/^U = //p' < "$mf"`
6569 # Find all dependency output files, they are included files with
6570 # $(DEPDIR) in their names. We invoke sed twice because it is the
6571 # simplest approach to changing $(DEPDIR) to its actual value in the
6572 # expansion.
6573 for file in `sed -n "
6574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6576 # Make sure the directory exists.
6577 test -f "$dirpart/$file" && continue
6578 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +00006579$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6580 X"$file" : 'X\(//\)[^/]' \| \
6581 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00006582 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00006583$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6585 s//\1/
6586 q
6587 }
6588 /^X\(\/\/\)[^/].*/{
6589 s//\1/
6590 q
6591 }
6592 /^X\(\/\/\)$/{
6593 s//\1/
6594 q
6595 }
6596 /^X\(\/\).*/{
6597 s//\1/
6598 q
6599 }
6600 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00006601 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6602 # echo "creating $dirpart/$file"
6603 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +00006604 done
brynercb91a2f2006-08-25 21:14:45 +00006605 done
jimblandy92b1f832009-12-23 22:23:49 +00006606}
6607 ;;
brynercb91a2f2006-08-25 21:14:45 +00006608
mmentovai8c2a4de2006-09-20 16:20:15 +00006609 esac
6610done # for ac_tag
6611
brynercb91a2f2006-08-25 21:14:45 +00006612
jimblandy92b1f832009-12-23 22:23:49 +00006613as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +00006614_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00006615ac_clean_files=$ac_clean_files_save
6616
jimblandy92b1f832009-12-23 22:23:49 +00006617test $ac_write_fail = 0 ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00006618 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00006619
brynercb91a2f2006-08-25 21:14:45 +00006620
6621# configure is writing to config.log, and then calls config.status.
6622# config.status does its own redirection, appending to config.log.
6623# Unfortunately, on DOS this fails, as config.log is still kept open
6624# by configure, so config.status won't be able to write to it; its
6625# output is simply discarded. So we exec the FD to /dev/null,
6626# effectively closing config.log, so it can be properly (re)opened and
6627# appended to by config.status. When coming back to configure, we
6628# need to make the FD available again.
6629if test "$no_create" != yes; then
6630 ac_cs_success=:
6631 ac_config_status_args=
6632 test "$silent" = yes &&
6633 ac_config_status_args="$ac_config_status_args --quiet"
6634 exec 5>/dev/null
6635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6636 exec 5>>config.log
6637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6638 # would make configure fail if this is the last instruction.
ted.mielczareke574a2a2010-10-05 19:38:22 +00006639 $ac_cs_success || as_fn_exit $?
jimblandy92b1f832009-12-23 22:23:49 +00006640fi
6641if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6643$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00006644fi
6645