]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/configure
Some minor fixes.
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Valgrind 3.7.0.SVN.
4 #
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: valgrind-users@lists.sourceforge.net about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Valgrind'
582 PACKAGE_TARNAME='valgrind'
583 PACKAGE_VERSION='3.7.0.SVN'
584 PACKAGE_STRING='Valgrind 3.7.0.SVN'
585 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
586 PACKAGE_URL=''
587
588 ac_unique_file="coregrind/m_main.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_header_list=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 HAVE_BUILTIN_ATOMIC_CXX_FALSE
630 HAVE_BUILTIN_ATOMIC_CXX_TRUE
631 HAVE_BUILTIN_ATOMIC_FALSE
632 HAVE_BUILTIN_ATOMIC_TRUE
633 HAVE_OPENMP_FALSE
634 HAVE_OPENMP_TRUE
635 HAVE_BOOST_1_35_FALSE
636 HAVE_BOOST_1_35_TRUE
637 BOOST_LIBS
638 BOOST_CFLAGS
639 BUILD_MPIWRAP_SEC_FALSE
640 BUILD_MPIWRAP_SEC_TRUE
641 BUILD_MPIWRAP_PRI_FALSE
642 BUILD_MPIWRAP_PRI_TRUE
643 MPI_CC
644 HAVE_PTHREAD_SPINLOCK_FALSE
645 HAVE_PTHREAD_SPINLOCK_TRUE
646 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
647 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
648 HAVE_PTHREAD_BARRIER_FALSE
649 HAVE_PTHREAD_BARRIER_TRUE
650 LIBOBJS
651 BUILD_SSE42_TESTS_FALSE
652 BUILD_SSE42_TESTS_TRUE
653 BUILD_LZCNT_TESTS_FALSE
654 BUILD_LZCNT_TESTS_TRUE
655 BUILD_PCLMULQDQ_TESTS_FALSE
656 BUILD_PCLMULQDQ_TESTS_TRUE
657 BUILD_SSSE3_TESTS_FALSE
658 BUILD_SSSE3_TESTS_TRUE
659 BUILD_SSE3_TESTS_FALSE
660 BUILD_SSE3_TESTS_TRUE
661 FLAG_NO_BUILD_ID
662 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
663 FLAG_FNO_STACK_PROTECTOR
664 FLAG_W_EXTRA
665 FLAG_W_NO_UNINITIALIZED
666 FLAG_W_NO_OVERFLOW
667 FLAG_W_NO_NONNULL
668 FLAG_W_NO_FORMAT_ZERO_LENGTH
669 FLAG_W_NO_EMPTY_BODY
670 PREFERRED_STACK_BOUNDARY
671 FLAG_MSSE
672 FLAG_MMMX
673 FLAG_MAIX64
674 FLAG_M64
675 FLAG_MAIX32
676 FLAG_M32
677 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
678 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
679 HAS_VSX_FALSE
680 HAS_VSX_TRUE
681 HAS_ALTIVEC_FALSE
682 HAS_ALTIVEC_TRUE
683 GLIBC_VERSION
684 EGREP
685 GREP
686 GENERATED_SUPP
687 DEFAULT_SUPP
688 VALT_LOAD_ADDRESS_SEC
689 VALT_LOAD_ADDRESS_PRI
690 VGCONF_HAVE_PLATFORM_SEC_FALSE
691 VGCONF_HAVE_PLATFORM_SEC_TRUE
692 VGCONF_OS_IS_L4RE_FALSE
693 VGCONF_OS_IS_L4RE_TRUE
694 VGCONF_OS_IS_DARWIN_FALSE
695 VGCONF_OS_IS_DARWIN_TRUE
696 VGCONF_OS_IS_AIX5_FALSE
697 VGCONF_OS_IS_AIX5_TRUE
698 VGCONF_OS_IS_LINUX_FALSE
699 VGCONF_OS_IS_LINUX_TRUE
700 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
701 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
702 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
703 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
704 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
705 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
706 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
707 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
708 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
709 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
710 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE
711 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE
712 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
713 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
714 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
715 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
716 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
717 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
718 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
719 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
720 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
721 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
722 VGCONF_ARCHS_INCLUDE_S390X_FALSE
723 VGCONF_ARCHS_INCLUDE_S390X_TRUE
724 VGCONF_ARCHS_INCLUDE_ARM_FALSE
725 VGCONF_ARCHS_INCLUDE_ARM_TRUE
726 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
727 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
728 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
729 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
730 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
731 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
732 VGCONF_ARCHS_INCLUDE_X86_FALSE
733 VGCONF_ARCHS_INCLUDE_X86_TRUE
734 VGCONF_PLATFORM_SEC_CAPS
735 VGCONF_PLATFORM_PRI_CAPS
736 VGCONF_ARCH_SEC
737 VGCONF_ARCH_PRI
738 VGCONF_OS
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 DIFF
748 am__fastdepCCAS_FALSE
749 am__fastdepCCAS_TRUE
750 CCASDEPMODE
751 CCASFLAGS
752 CCAS
753 GDB
754 PERL
755 AR
756 SED
757 RANLIB
758 am__fastdepCXX_FALSE
759 am__fastdepCXX_TRUE
760 CXXDEPMODE
761 ac_ct_CXX
762 CXXFLAGS
763 CXX
764 CPP
765 am__fastdepCC_FALSE
766 am__fastdepCC_TRUE
767 CCDEPMODE
768 am__nodep
769 AMDEPBACKSLASH
770 AMDEP_FALSE
771 AMDEP_TRUE
772 am__quote
773 am__include
774 DEPDIR
775 OBJEXT
776 EXEEXT
777 ac_ct_CC
778 CPPFLAGS
779 LDFLAGS
780 CFLAGS
781 CC
782 LN_S
783 MAINT
784 MAINTAINER_MODE_FALSE
785 MAINTAINER_MODE_TRUE
786 am__untar
787 am__tar
788 AMTAR
789 am__leading_dot
790 SET_MAKE
791 AWK
792 mkdir_p
793 MKDIR_P
794 INSTALL_STRIP_PROGRAM
795 STRIP
796 install_sh
797 MAKEINFO
798 AUTOHEADER
799 AUTOMAKE
800 AUTOCONF
801 ACLOCAL
802 VERSION
803 PACKAGE
804 CYGPATH_W
805 am__isrc
806 INSTALL_DATA
807 INSTALL_SCRIPT
808 INSTALL_PROGRAM
809 target_alias
810 host_alias
811 build_alias
812 LIBS
813 ECHO_T
814 ECHO_N
815 ECHO_C
816 DEFS
817 mandir
818 localedir
819 libdir
820 psdir
821 pdfdir
822 dvidir
823 htmldir
824 infodir
825 docdir
826 oldincludedir
827 includedir
828 localstatedir
829 sharedstatedir
830 sysconfdir
831 datadir
832 datarootdir
833 libexecdir
834 sbindir
835 bindir
836 program_transform_name
837 prefix
838 exec_prefix
839 PACKAGE_URL
840 PACKAGE_BUGREPORT
841 PACKAGE_STRING
842 PACKAGE_VERSION
843 PACKAGE_TARNAME
844 PACKAGE_NAME
845 PATH_SEPARATOR
846 SHELL'
847 ac_subst_files=''
848 ac_user_opts='
849 enable_option_checking
850 enable_maintainer_mode
851 enable_dependency_tracking
852 enable_only64bit
853 enable_only32bit
854 enable_inner
855 enable_tls
856 with_mpicc
857 '
858       ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CPP
867 CXX
868 CXXFLAGS
869 CCC
870 AR
871 CCAS
872 CCASFLAGS'
873
874
875 # Initialize some variables set by options.
876 ac_init_help=
877 ac_init_version=false
878 ac_unrecognized_opts=
879 ac_unrecognized_sep=
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
882 cache_file=/dev/null
883 exec_prefix=NONE
884 no_create=
885 no_recursion=
886 prefix=NONE
887 program_prefix=NONE
888 program_suffix=NONE
889 program_transform_name=s,x,x,
890 silent=
891 site=
892 srcdir=
893 verbose=
894 x_includes=NONE
895 x_libraries=NONE
896
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
914 infodir='${datarootdir}/info'
915 htmldir='${docdir}'
916 dvidir='${docdir}'
917 pdfdir='${docdir}'
918 psdir='${docdir}'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
922
923 ac_prev=
924 ac_dashdash=
925 for ac_option
926 do
927   # If the previous option needs an argument, assign it.
928   if test -n "$ac_prev"; then
929     eval $ac_prev=\$ac_option
930     ac_prev=
931     continue
932   fi
933
934   case $ac_option in
935   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936   *=)   ac_optarg= ;;
937   *)    ac_optarg=yes ;;
938   esac
939
940   # Accept the important Cygnus configure options, so we can diagnose typos.
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982       as_fn_error $? "invalid feature name: $ac_useropt"
983     ac_useropt_orig=$ac_useropt
984     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985     case $ac_user_opts in
986       *"
987 "enable_$ac_useropt"
988 "*) ;;
989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990          ac_unrecognized_sep=', ';;
991     esac
992     eval enable_$ac_useropt=no ;;
993
994   -docdir | --docdir | --docdi | --doc | --do)
995     ac_prev=docdir ;;
996   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997     docdir=$ac_optarg ;;
998
999   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000     ac_prev=dvidir ;;
1001   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002     dvidir=$ac_optarg ;;
1003
1004   -enable-* | --enable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: $ac_useropt"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid package name: $ac_useropt"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval with_$ac_useropt=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228       as_fn_error $? "invalid package name: $ac_useropt"
1229     ac_useropt_orig=$ac_useropt
1230     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231     case $ac_user_opts in
1232       *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236          ac_unrecognized_sep=', ';;
1237     esac
1238     eval with_$ac_useropt=no ;;
1239
1240   --x)
1241     # Obsolete; use --with-x.
1242     with_x=yes ;;
1243
1244   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245   | --x-incl | --x-inc | --x-in | --x-i)
1246     ac_prev=x_includes ;;
1247   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249     x_includes=$ac_optarg ;;
1250
1251   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253     ac_prev=x_libraries ;;
1254   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256     x_libraries=$ac_optarg ;;
1257
1258   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260     ;;
1261
1262   *=*)
1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264     # Reject names that are not valid shell variable names.
1265     case $ac_envvar in #(
1266       '' | [0-9]* | *[!_$as_cr_alnum]* )
1267       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268     esac
1269     eval $ac_envvar=\$ac_optarg
1270     export $ac_envvar ;;
1271
1272   *)
1273     # FIXME: should be removed in autoconf 3.0.
1274     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278     ;;
1279
1280   esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285   as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289   case $enable_option_checking in
1290     no) ;;
1291     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293   esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298                 datadir sysconfdir sharedstatedir localstatedir includedir \
1299                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300                 libdir localedir mandir
1301 do
1302   eval ac_val=\$$ac_var
1303   # Remove trailing slashes.
1304   case $ac_val in
1305     */ )
1306       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307       eval $ac_var=\$ac_val;;
1308   esac
1309   # Be sure to have absolute directory names.
1310   case $ac_val in
1311     [\\/$]* | ?:[\\/]* )  continue;;
1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313   esac
1314   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326   if test "x$build_alias" = x; then
1327     cross_compiling=maybe
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures Valgrind 3.7.0.SVN to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking ...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/valgrind]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 Program names:
1471   --program-prefix=PREFIX            prepend PREFIX to installed program names
1472   --program-suffix=SUFFIX            append SUFFIX to installed program names
1473   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1474
1475 System types:
1476   --build=BUILD     configure for building on BUILD [guessed]
1477   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482   case $ac_init_help in
1483      short | recursive ) echo "Configuration of Valgrind 3.7.0.SVN:";;
1484    esac
1485   cat <<\_ACEOF
1486
1487 Optional Features:
1488   --disable-option-checking  ignore unrecognized --enable/--with options
1489   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491   --enable-maintainer-mode  enable make rules and dependencies not useful
1492                           (and sometimes confusing) to the casual installer
1493   --disable-dependency-tracking  speeds up one-time build
1494   --enable-dependency-tracking   do not reject slow dependency extractors
1495   --enable-only64bit      do a 64-bit only build
1496   --enable-only32bit      do a 32-bit only build
1497   --enable-inner          enables self-hosting
1498   --enable-tls            platform supports TLS
1499
1500 Optional Packages:
1501   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503   --with-mpicc=           Specify name of MPI2-ised C compiler
1504
1505 Some influential environment variables:
1506   CC          C compiler command
1507   CFLAGS      C compiler flags
1508   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1509               nonstandard directory <lib dir>
1510   LIBS        libraries to pass to the linker, e.g. -l<library>
1511   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1512               you have headers in a nonstandard directory <include dir>
1513   CPP         C preprocessor
1514   CXX         C++ compiler command
1515   CXXFLAGS    C++ compiler flags
1516   AR          Archiver command
1517   CCAS        assembler compiler command (defaults to CC)
1518   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 Report bugs to <valgrind-users@lists.sourceforge.net>.
1524 _ACEOF
1525 ac_status=$?
1526 fi
1527
1528 if test "$ac_init_help" = "recursive"; then
1529   # If there are subdirs, report their specific --help.
1530   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531     test -d "$ac_dir" ||
1532       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533       continue
1534     ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 Valgrind configure 3.7.0.SVN
1587 generated by GNU Autoconf 2.69
1588
1589 Copyright (C) 2012 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593   exit
1594 fi
1595
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1599
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1604 {
1605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606   rm -f conftest.$ac_objext
1607   if { { ac_try="$ac_compile"
1608 case "(($ac_try" in
1609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610   *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614   (eval "$ac_compile") 2>conftest.err
1615   ac_status=$?
1616   if test -s conftest.err; then
1617     grep -v '^ *+' conftest.err >conftest.er1
1618     cat conftest.er1 >&5
1619     mv -f conftest.er1 conftest.err
1620   fi
1621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622   test $ac_status = 0; } && {
1623          test -z "$ac_c_werror_flag" ||
1624          test ! -s conftest.err
1625        } && test -s conftest.$ac_objext; then :
1626   ac_retval=0
1627 else
1628   $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631         ac_retval=1
1632 fi
1633   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634   as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_compile
1637
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647   *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652   ac_status=$?
1653   if test -s conftest.err; then
1654     grep -v '^ *+' conftest.err >conftest.er1
1655     cat conftest.er1 >&5
1656     mv -f conftest.er1 conftest.err
1657   fi
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; } > conftest.i && {
1660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661          test ! -s conftest.err
1662        }; then :
1663   ac_retval=0
1664 else
1665   $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668     ac_retval=1
1669 fi
1670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671   as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_cxx_try_compile LINENO
1676 # ----------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_cxx_try_compile ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   rm -f conftest.$ac_objext
1682   if { { ac_try="$ac_compile"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_compile") 2>conftest.err
1690   ac_status=$?
1691   if test -s conftest.err; then
1692     grep -v '^ *+' conftest.err >conftest.er1
1693     cat conftest.er1 >&5
1694     mv -f conftest.er1 conftest.err
1695   fi
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; } && {
1698          test -z "$ac_cxx_werror_flag" ||
1699          test ! -s conftest.err
1700        } && test -s conftest.$ac_objext; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706         ac_retval=1
1707 fi
1708   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709   as_fn_set_status $ac_retval
1710
1711 } # ac_fn_cxx_try_compile
1712
1713 # ac_fn_c_try_link LINENO
1714 # -----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_link ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   rm -f conftest.$ac_objext conftest$ac_exeext
1720   if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_link") 2>conftest.err
1728   ac_status=$?
1729   if test -s conftest.err; then
1730     grep -v '^ *+' conftest.err >conftest.er1
1731     cat conftest.er1 >&5
1732     mv -f conftest.er1 conftest.err
1733   fi
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && {
1736          test -z "$ac_c_werror_flag" ||
1737          test ! -s conftest.err
1738        } && test -s conftest$ac_exeext && {
1739          test "$cross_compiling" = yes ||
1740          test -x conftest$ac_exeext
1741        }; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747         ac_retval=1
1748 fi
1749   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751   # interfere with the next link command; also delete a directory that is
1752   # left behind by Apple's compiler.  We do this before executing the actions.
1753   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755   as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_link
1758
1759 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1762 # the include files in INCLUDES and setting the cache variable VAR
1763 # accordingly.
1764 ac_fn_c_check_header_mongrel ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   if eval \${$3+:} false; then :
1768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771   $as_echo_n "(cached) " >&6
1772 fi
1773 eval ac_res=\$$3
1774                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 else
1777   # Is the header compilable?
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1779 $as_echo_n "checking $2 usability... " >&6; }
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h.  */
1782 $4
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786   ac_header_compiler=yes
1787 else
1788   ac_header_compiler=no
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1792 $as_echo "$ac_header_compiler" >&6; }
1793
1794 # Is the header present?
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1796 $as_echo_n "checking $2 presence... " >&6; }
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h.  */
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_cpp "$LINENO"; then :
1802   ac_header_preproc=yes
1803 else
1804   ac_header_preproc=no
1805 fi
1806 rm -f conftest.err conftest.i conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1808 $as_echo "$ac_header_preproc" >&6; }
1809
1810 # So?  What about this header?
1811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1812   yes:no: )
1813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1814 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817     ;;
1818   no:yes:* )
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1820 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1822 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1824 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1826 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 ( $as_echo "## --------------------------------------------------- ##
1830 ## Report this to valgrind-users@lists.sourceforge.net ##
1831 ## --------------------------------------------------- ##"
1832      ) | sed "s/^/$as_me: WARNING:     /" >&2
1833     ;;
1834 esac
1835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838   $as_echo_n "(cached) " >&6
1839 else
1840   eval "$3=\$ac_header_compiler"
1841 fi
1842 eval ac_res=\$$3
1843                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 fi
1846   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848 } # ac_fn_c_check_header_mongrel
1849
1850 # ac_fn_c_try_run LINENO
1851 # ----------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1853 # that executables *can* be run.
1854 ac_fn_c_try_run ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_link") 2>&5
1865   ac_status=$?
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868   { { case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_try") 2>&5
1875   ac_status=$?
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; }; }; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: program exited with status $ac_status" >&5
1881        $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884        ac_retval=$ac_status
1885 fi
1886   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888   as_fn_set_status $ac_retval
1889
1890 } # ac_fn_c_try_run
1891
1892 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1893 # -------------------------------------------------------
1894 # Tests whether HEADER exists and can be compiled using the include files in
1895 # INCLUDES, setting the cache variable VAR accordingly.
1896 ac_fn_c_check_header_compile ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902   $as_echo_n "(cached) " >&6
1903 else
1904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h.  */
1906 $4
1907 #include <$2>
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910   eval "$3=yes"
1911 else
1912   eval "$3=no"
1913 fi
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 fi
1916 eval ac_res=\$$3
1917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921 } # ac_fn_c_check_header_compile
1922
1923 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924 # -------------------------------------------
1925 # Tests whether TYPE exists after having included INCLUDES, setting cache
1926 # variable VAR accordingly.
1927 ac_fn_c_check_type ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933   $as_echo_n "(cached) " >&6
1934 else
1935   eval "$3=no"
1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 $4
1939 int
1940 main ()
1941 {
1942 if (sizeof ($2))
1943          return 0;
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 int
1953 main ()
1954 {
1955 if (sizeof (($2)))
1956             return 0;
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962
1963 else
1964   eval "$3=yes"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_type
1976
1977 # ac_fn_c_check_func LINENO FUNC VAR
1978 # ----------------------------------
1979 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1980 ac_fn_c_check_func ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986   $as_echo_n "(cached) " >&6
1987 else
1988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h.  */
1990 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1992 #define $2 innocuous_$2
1993
1994 /* System header to define __stub macros and hopefully few prototypes,
1995     which can conflict with char $2 (); below.
1996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1997     <limits.h> exists even on freestanding compilers.  */
1998
1999 #ifdef __STDC__
2000 # include <limits.h>
2001 #else
2002 # include <assert.h>
2003 #endif
2004
2005 #undef $2
2006
2007 /* Override any GCC internal prototype to avoid an error.
2008    Use char because int might match the return type of a GCC
2009    builtin and then its argument prototype would still apply.  */
2010 #ifdef __cplusplus
2011 extern "C"
2012 #endif
2013 char $2 ();
2014 /* The GNU C library defines this for functions which it implements
2015     to always fail with ENOSYS.  Some functions are actually named
2016     something starting with __ and the normal name is an alias.  */
2017 #if defined __stub_$2 || defined __stub___$2
2018 choke me
2019 #endif
2020
2021 int
2022 main ()
2023 {
2024 return $2 ();
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_link "$LINENO"; then :
2030   eval "$3=yes"
2031 else
2032   eval "$3=no"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext \
2035     conftest$ac_exeext conftest.$ac_ext
2036 fi
2037 eval ac_res=\$$3
2038                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_c_check_func
2043
2044 # ac_fn_cxx_try_link LINENO
2045 # -------------------------
2046 # Try to link conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_cxx_try_link ()
2048 {
2049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050   rm -f conftest.$ac_objext conftest$ac_exeext
2051   if { { ac_try="$ac_link"
2052 case "(($ac_try" in
2053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054   *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058   (eval "$ac_link") 2>conftest.err
2059   ac_status=$?
2060   if test -s conftest.err; then
2061     grep -v '^ *+' conftest.err >conftest.er1
2062     cat conftest.er1 >&5
2063     mv -f conftest.er1 conftest.err
2064   fi
2065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066   test $ac_status = 0; } && {
2067          test -z "$ac_cxx_werror_flag" ||
2068          test ! -s conftest.err
2069        } && test -s conftest$ac_exeext && {
2070          test "$cross_compiling" = yes ||
2071          test -x conftest$ac_exeext
2072        }; then :
2073   ac_retval=0
2074 else
2075   $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2077
2078         ac_retval=1
2079 fi
2080   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2081   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2082   # interfere with the next link command; also delete a directory that is
2083   # left behind by Apple's compiler.  We do this before executing the actions.
2084   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086   as_fn_set_status $ac_retval
2087
2088 } # ac_fn_cxx_try_link
2089 cat >config.log <<_ACEOF
2090 This file contains any messages produced by compilers while
2091 running configure, to aid debugging if configure makes a mistake.
2092
2093 It was created by Valgrind $as_me 3.7.0.SVN, which was
2094 generated by GNU Autoconf 2.69.  Invocation command line was
2095
2096   $ $0 $@
2097
2098 _ACEOF
2099 exec 5>>config.log
2100 {
2101 cat <<_ASUNAME
2102 ## --------- ##
2103 ## Platform. ##
2104 ## --------- ##
2105
2106 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2107 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2108 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2109 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2110 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2111
2112 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2113 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2114
2115 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2116 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2117 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2118 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2119 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2120 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2121 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2122
2123 _ASUNAME
2124
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128   IFS=$as_save_IFS
2129   test -z "$as_dir" && as_dir=.
2130     $as_echo "PATH: $as_dir"
2131   done
2132 IFS=$as_save_IFS
2133
2134 } >&5
2135
2136 cat >&5 <<_ACEOF
2137
2138
2139 ## ----------- ##
2140 ## Core tests. ##
2141 ## ----------- ##
2142
2143 _ACEOF
2144
2145
2146 # Keep a trace of the command line.
2147 # Strip out --no-create and --no-recursion so they do not pile up.
2148 # Strip out --silent because we don't want to record it for future runs.
2149 # Also quote any args containing shell meta-characters.
2150 # Make two passes to allow for proper duplicate-argument suppression.
2151 ac_configure_args=
2152 ac_configure_args0=
2153 ac_configure_args1=
2154 ac_must_keep_next=false
2155 for ac_pass in 1 2
2156 do
2157   for ac_arg
2158   do
2159     case $ac_arg in
2160     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2161     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2162     | -silent | --silent | --silen | --sile | --sil)
2163       continue ;;
2164     *\'*)
2165       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2166     esac
2167     case $ac_pass in
2168     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2169     2)
2170       as_fn_append ac_configure_args1 " '$ac_arg'"
2171       if test $ac_must_keep_next = true; then
2172         ac_must_keep_next=false # Got value, back to normal.
2173       else
2174         case $ac_arg in
2175           *=* | --config-cache | -C | -disable-* | --disable-* \
2176           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2177           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2178           | -with-* | --with-* | -without-* | --without-* | --x)
2179             case "$ac_configure_args0 " in
2180               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2181             esac
2182             ;;
2183           -* ) ac_must_keep_next=true ;;
2184         esac
2185       fi
2186       as_fn_append ac_configure_args " '$ac_arg'"
2187       ;;
2188     esac
2189   done
2190 done
2191 { ac_configure_args0=; unset ac_configure_args0;}
2192 { ac_configure_args1=; unset ac_configure_args1;}
2193
2194 # When interrupted or exit'd, cleanup temporary files, and complete
2195 # config.log.  We remove comments because anyway the quotes in there
2196 # would cause problems or look ugly.
2197 # WARNING: Use '\'' to represent an apostrophe within the trap.
2198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2199 trap 'exit_status=$?
2200   # Save into config.log some information that might help in debugging.
2201   {
2202     echo
2203
2204     $as_echo "## ---------------- ##
2205 ## Cache variables. ##
2206 ## ---------------- ##"
2207     echo
2208     # The following way of writing the cache mishandles newlines in values,
2209 (
2210   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2211     eval ac_val=\$$ac_var
2212     case $ac_val in #(
2213     *${as_nl}*)
2214       case $ac_var in #(
2215       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2217       esac
2218       case $ac_var in #(
2219       _ | IFS | as_nl) ;; #(
2220       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2221       *) { eval $ac_var=; unset $ac_var;} ;;
2222       esac ;;
2223     esac
2224   done
2225   (set) 2>&1 |
2226     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2227     *${as_nl}ac_space=\ *)
2228       sed -n \
2229         "s/'\''/'\''\\\\'\'''\''/g;
2230           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2231       ;; #(
2232     *)
2233       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2234       ;;
2235     esac |
2236     sort
2237 )
2238     echo
2239
2240     $as_echo "## ----------------- ##
2241 ## Output variables. ##
2242 ## ----------------- ##"
2243     echo
2244     for ac_var in $ac_subst_vars
2245     do
2246       eval ac_val=\$$ac_var
2247       case $ac_val in
2248       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249       esac
2250       $as_echo "$ac_var='\''$ac_val'\''"
2251     done | sort
2252     echo
2253
2254     if test -n "$ac_subst_files"; then
2255       $as_echo "## ------------------- ##
2256 ## File substitutions. ##
2257 ## ------------------- ##"
2258       echo
2259       for ac_var in $ac_subst_files
2260       do
2261         eval ac_val=\$$ac_var
2262         case $ac_val in
2263         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264         esac
2265         $as_echo "$ac_var='\''$ac_val'\''"
2266       done | sort
2267       echo
2268     fi
2269
2270     if test -s confdefs.h; then
2271       $as_echo "## ----------- ##
2272 ## confdefs.h. ##
2273 ## ----------- ##"
2274       echo
2275       cat confdefs.h
2276       echo
2277     fi
2278     test "$ac_signal" != 0 &&
2279       $as_echo "$as_me: caught signal $ac_signal"
2280     $as_echo "$as_me: exit $exit_status"
2281   } >&5
2282   rm -f core *.core core.conftest.* &&
2283     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2284     exit $exit_status
2285 ' 0
2286 for ac_signal in 1 2 13 15; do
2287   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2288 done
2289 ac_signal=0
2290
2291 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2292 rm -f -r conftest* confdefs.h
2293
2294 $as_echo "/* confdefs.h */" > confdefs.h
2295
2296 # Predefined preprocessor variables.
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_NAME "$PACKAGE_NAME"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_STRING "$PACKAGE_STRING"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_URL "$PACKAGE_URL"
2320 _ACEOF
2321
2322
2323 # Let the site file select an alternate cache file if it wants to.
2324 # Prefer an explicitly selected file to automatically selected ones.
2325 ac_site_file1=NONE
2326 ac_site_file2=NONE
2327 if test -n "$CONFIG_SITE"; then
2328   # We do not want a PATH search for config.site.
2329   case $CONFIG_SITE in #((
2330     -*)  ac_site_file1=./$CONFIG_SITE;;
2331     */*) ac_site_file1=$CONFIG_SITE;;
2332     *)   ac_site_file1=./$CONFIG_SITE;;
2333   esac
2334 elif test "x$prefix" != xNONE; then
2335   ac_site_file1=$prefix/share/config.site
2336   ac_site_file2=$prefix/etc/config.site
2337 else
2338   ac_site_file1=$ac_default_prefix/share/config.site
2339   ac_site_file2=$ac_default_prefix/etc/config.site
2340 fi
2341 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2342 do
2343   test "x$ac_site_file" = xNONE && continue
2344   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2345     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2346 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2347     sed 's/^/| /' "$ac_site_file" >&5
2348     . "$ac_site_file" \
2349       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 as_fn_error $? "failed to load site script $ac_site_file
2352 See \`config.log' for more details" "$LINENO" 5; }
2353   fi
2354 done
2355
2356 if test -r "$cache_file"; then
2357   # Some versions of bash will fail to source /dev/null (special files
2358   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2359   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2360     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361 $as_echo "$as_me: loading cache $cache_file" >&6;}
2362     case $cache_file in
2363       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364       *)                      . "./$cache_file";;
2365     esac
2366   fi
2367 else
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369 $as_echo "$as_me: creating cache $cache_file" >&6;}
2370   >$cache_file
2371 fi
2372
2373 as_fn_append ac_header_list " stdlib.h"
2374 as_fn_append ac_header_list " unistd.h"
2375 as_fn_append ac_header_list " sys/param.h"
2376 # Check that the precious variables saved in the cache have kept the same
2377 # value.
2378 ac_cache_corrupted=false
2379 for ac_var in $ac_precious_vars; do
2380   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381   eval ac_new_set=\$ac_env_${ac_var}_set
2382   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383   eval ac_new_val=\$ac_env_${ac_var}_value
2384   case $ac_old_set,$ac_new_set in
2385     set,)
2386       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2388       ac_cache_corrupted=: ;;
2389     ,set)
2390       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2392       ac_cache_corrupted=: ;;
2393     ,);;
2394     *)
2395       if test "x$ac_old_val" != "x$ac_new_val"; then
2396         # differences in whitespace do not lead to failure.
2397         ac_old_val_w=`echo x $ac_old_val`
2398         ac_new_val_w=`echo x $ac_new_val`
2399         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402           ac_cache_corrupted=:
2403         else
2404           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406           eval $ac_var=\$ac_old_val
2407         fi
2408         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2409 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2410         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2411 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2412       fi;;
2413   esac
2414   # Pass precious variables to config.status.
2415   if test "$ac_new_set" = set; then
2416     case $ac_new_val in
2417     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418     *) ac_arg=$ac_var=$ac_new_val ;;
2419     esac
2420     case " $ac_configure_args " in
2421       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2422       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423     esac
2424   fi
2425 done
2426 if $ac_cache_corrupted; then
2427   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 fi
2433 ## -------------------- ##
2434 ## Main body of script. ##
2435 ## -------------------- ##
2436
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
2443
2444
2445 ac_config_headers="$ac_config_headers config.h"
2446
2447 am__api_version='1.11'
2448
2449 ac_aux_dir=
2450 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451   if test -f "$ac_dir/install-sh"; then
2452     ac_aux_dir=$ac_dir
2453     ac_install_sh="$ac_aux_dir/install-sh -c"
2454     break
2455   elif test -f "$ac_dir/install.sh"; then
2456     ac_aux_dir=$ac_dir
2457     ac_install_sh="$ac_aux_dir/install.sh -c"
2458     break
2459   elif test -f "$ac_dir/shtool"; then
2460     ac_aux_dir=$ac_dir
2461     ac_install_sh="$ac_aux_dir/shtool install -c"
2462     break
2463   fi
2464 done
2465 if test -z "$ac_aux_dir"; then
2466   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2467 fi
2468
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2475 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2476
2477
2478 # Find a good install program.  We prefer a C program (faster),
2479 # so one script is as good as another.  But avoid the broken or
2480 # incompatible versions:
2481 # SysV /etc/install, /usr/sbin/install
2482 # SunOS /usr/etc/install
2483 # IRIX /sbin/install
2484 # AIX /bin/install
2485 # AmigaOS /C/install, which installs bootblocks on floppy discs
2486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2489 # OS/2's system install, which has a completely different semantic
2490 # ./install, which can be erroneously created by make from ./install.sh.
2491 # Reject install programs that cannot install multiple files.
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2493 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2494 if test -z "$INSTALL"; then
2495 if ${ac_cv_path_install+:} false; then :
2496   $as_echo_n "(cached) " >&6
2497 else
2498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501   IFS=$as_save_IFS
2502   test -z "$as_dir" && as_dir=.
2503     # Account for people who put trailing slashes in PATH elements.
2504 case $as_dir/ in #((
2505   ./ | .// | /[cC]/* | \
2506   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2507   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2508   /usr/ucb/* ) ;;
2509   *)
2510     # OSF1 and SCO ODT 3.0 have their own names for install.
2511     # Don't use installbsd from OSF since it installs stuff as root
2512     # by default.
2513     for ac_prog in ginstall scoinst install; do
2514       for ac_exec_ext in '' $ac_executable_extensions; do
2515         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2516           if test $ac_prog = install &&
2517             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518             # AIX install.  It has an incompatible calling convention.
2519             :
2520           elif test $ac_prog = install &&
2521             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522             # program-specific install script used by HP pwplus--don't use.
2523             :
2524           else
2525             rm -rf conftest.one conftest.two conftest.dir
2526             echo one > conftest.one
2527             echo two > conftest.two
2528             mkdir conftest.dir
2529             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2530               test -s conftest.one && test -s conftest.two &&
2531               test -s conftest.dir/conftest.one &&
2532               test -s conftest.dir/conftest.two
2533             then
2534               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535               break 3
2536             fi
2537           fi
2538         fi
2539       done
2540     done
2541     ;;
2542 esac
2543
2544   done
2545 IFS=$as_save_IFS
2546
2547 rm -rf conftest.one conftest.two conftest.dir
2548
2549 fi
2550   if test "${ac_cv_path_install+set}" = set; then
2551     INSTALL=$ac_cv_path_install
2552   else
2553     # As a last resort, use the slow shell script.  Don't cache a
2554     # value for INSTALL within a source directory, because that will
2555     # break other packages using the cache if that directory is
2556     # removed, or if the value is a relative name.
2557     INSTALL=$ac_install_sh
2558   fi
2559 fi
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2561 $as_echo "$INSTALL" >&6; }
2562
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2572 $as_echo_n "checking whether build environment is sane... " >&6; }
2573 # Just in case
2574 sleep 1
2575 echo timestamp > conftest.file
2576 # Reject unsafe characters in $srcdir or the absolute working directory
2577 # name.  Accept space and tab only in the latter.
2578 am_lf='
2579 '
2580 case `pwd` in
2581   *[\\\"\#\$\&\'\`$am_lf]*)
2582     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2583 esac
2584 case $srcdir in
2585   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2586     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2587 esac
2588
2589 # Do `set' in a subshell so we don't clobber the current shell's
2590 # arguments.  Must try -L first in case configure is actually a
2591 # symlink; some systems play weird games with the mod time of symlinks
2592 # (eg FreeBSD returns the mod time of the symlink's containing
2593 # directory).
2594 if (
2595    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2596    if test "$*" = "X"; then
2597       # -L didn't work.
2598       set X `ls -t "$srcdir/configure" conftest.file`
2599    fi
2600    rm -f conftest.file
2601    if test "$*" != "X $srcdir/configure conftest.file" \
2602       && test "$*" != "X conftest.file $srcdir/configure"; then
2603
2604       # If neither matched, then we have a broken ls.  This can happen
2605       # if, for instance, CONFIG_SHELL is bash and it inherits a
2606       # broken ls alias from the environment.  This has actually
2607       # happened.  Such a system could not be considered "sane".
2608       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2609 alias in your environment" "$LINENO" 5
2610    fi
2611
2612    test "$2" = conftest.file
2613    )
2614 then
2615    # Ok.
2616    :
2617 else
2618    as_fn_error $? "newly created file is older than distributed files!
2619 Check your system clock" "$LINENO" 5
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2622 $as_echo "yes" >&6; }
2623 test "$program_prefix" != NONE &&
2624   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2625 # Use a double $ so make ignores it.
2626 test "$program_suffix" != NONE &&
2627   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2628 # Double any \ or $.
2629 # By default was `s,x,x', remove it if useless.
2630 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2631 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2632
2633 # expand $ac_aux_dir to an absolute path
2634 am_aux_dir=`cd $ac_aux_dir && pwd`
2635
2636 if test x"${MISSING+set}" != xset; then
2637   case $am_aux_dir in
2638   *\ * | *\     *)
2639     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2640   *)
2641     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2642   esac
2643 fi
2644 # Use eval to expand $SHELL
2645 if eval "$MISSING --run true"; then
2646   am_missing_run="$MISSING --run "
2647 else
2648   am_missing_run=
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2650 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2651 fi
2652
2653 if test x"${install_sh}" != xset; then
2654   case $am_aux_dir in
2655   *\ * | *\     *)
2656     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2657   *)
2658     install_sh="\${SHELL} $am_aux_dir/install-sh"
2659   esac
2660 fi
2661
2662 # Installed binaries are usually stripped using `strip' when the user
2663 # run `make install-strip'.  However `strip' might not be the right
2664 # tool to use in cross-compilation environments, therefore Automake
2665 # will honor the `STRIP' environment variable to overrule this program.
2666 if test "$cross_compiling" != no; then
2667   if test -n "$ac_tool_prefix"; then
2668   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}strip; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_STRIP+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$STRIP"; then
2676   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683     for ac_exec_ext in '' $ac_executable_extensions; do
2684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690   done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 STRIP=$ac_cv_prog_STRIP
2696 if test -n "$STRIP"; then
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2698 $as_echo "$STRIP" >&6; }
2699 else
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704
2705 fi
2706 if test -z "$ac_cv_prog_STRIP"; then
2707   ac_ct_STRIP=$STRIP
2708   # Extract the first word of "strip", so it can be a program name with args.
2709 set dummy strip; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   if test -n "$ac_ct_STRIP"; then
2716   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721   IFS=$as_save_IFS
2722   test -z "$as_dir" && as_dir=.
2723     for ac_exec_ext in '' $ac_executable_extensions; do
2724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725     ac_cv_prog_ac_ct_STRIP="strip"
2726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727     break 2
2728   fi
2729 done
2730   done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2736 if test -n "$ac_ct_STRIP"; then
2737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2738 $as_echo "$ac_ct_STRIP" >&6; }
2739 else
2740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744   if test "x$ac_ct_STRIP" = x; then
2745     STRIP=":"
2746   else
2747     case $cross_compiling:$ac_tool_warned in
2748 yes:)
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2751 ac_tool_warned=yes ;;
2752 esac
2753     STRIP=$ac_ct_STRIP
2754   fi
2755 else
2756   STRIP="$ac_cv_prog_STRIP"
2757 fi
2758
2759 fi
2760 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2761
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2763 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2764 if test -z "$MKDIR_P"; then
2765   if ${ac_cv_path_mkdir+:} false; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773     for ac_prog in mkdir gmkdir; do
2774          for ac_exec_ext in '' $ac_executable_extensions; do
2775            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2776            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2777              'mkdir (GNU coreutils) '* | \
2778              'mkdir (coreutils) '* | \
2779              'mkdir (fileutils) '4.1*)
2780                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2781                break 3;;
2782            esac
2783          done
2784        done
2785   done
2786 IFS=$as_save_IFS
2787
2788 fi
2789
2790   test -d ./--version && rmdir ./--version
2791   if test "${ac_cv_path_mkdir+set}" = set; then
2792     MKDIR_P="$ac_cv_path_mkdir -p"
2793   else
2794     # As a last resort, use the slow shell script.  Don't cache a
2795     # value for MKDIR_P within a source directory, because that will
2796     # break other packages using the cache if that directory is
2797     # removed, or if the value is a relative name.
2798     MKDIR_P="$ac_install_sh -d"
2799   fi
2800 fi
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2802 $as_echo "$MKDIR_P" >&6; }
2803
2804 mkdir_p="$MKDIR_P"
2805 case $mkdir_p in
2806   [\\/$]* | ?:[\\/]*) ;;
2807   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2808 esac
2809
2810 for ac_prog in gawk mawk nawk awk
2811 do
2812   # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_AWK+:} false; then :
2817   $as_echo_n "(cached) " >&6
2818 else
2819   if test -n "$AWK"; then
2820   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827     for ac_exec_ext in '' $ac_executable_extensions; do
2828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829     ac_cv_prog_AWK="$ac_prog"
2830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834   done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 AWK=$ac_cv_prog_AWK
2840 if test -n "$AWK"; then
2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2842 $as_echo "$AWK" >&6; }
2843 else
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847
2848
2849   test -n "$AWK" && break
2850 done
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2853 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2854 set x ${MAKE-make}
2855 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2856 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   cat >conftest.make <<\_ACEOF
2860 SHELL = /bin/sh
2861 all:
2862         @echo '@@@%%%=$(MAKE)=@@@%%%'
2863 _ACEOF
2864 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2866   *@@@%%%=?*=@@@%%%*)
2867     eval ac_cv_prog_make_${ac_make}_set=yes;;
2868   *)
2869     eval ac_cv_prog_make_${ac_make}_set=no;;
2870 esac
2871 rm -f conftest.make
2872 fi
2873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2875 $as_echo "yes" >&6; }
2876   SET_MAKE=
2877 else
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880   SET_MAKE="MAKE=${MAKE-make}"
2881 fi
2882
2883 rm -rf .tst 2>/dev/null
2884 mkdir .tst 2>/dev/null
2885 if test -d .tst; then
2886   am__leading_dot=.
2887 else
2888   am__leading_dot=_
2889 fi
2890 rmdir .tst 2>/dev/null
2891
2892 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2893   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2894   # is not polluted with repeated "-I."
2895   am__isrc=' -I$(srcdir)'
2896   # test to see if srcdir already configured
2897   if test -f $srcdir/config.status; then
2898     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2899   fi
2900 fi
2901
2902 # test whether we have cygpath
2903 if test -z "$CYGPATH_W"; then
2904   if (cygpath --version) >/dev/null 2>/dev/null; then
2905     CYGPATH_W='cygpath -w'
2906   else
2907     CYGPATH_W=echo
2908   fi
2909 fi
2910
2911
2912 # Define the identity of the package.
2913  PACKAGE='valgrind'
2914  VERSION='3.7.0.SVN'
2915
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE "$PACKAGE"
2919 _ACEOF
2920
2921
2922 cat >>confdefs.h <<_ACEOF
2923 #define VERSION "$VERSION"
2924 _ACEOF
2925
2926 # Some tools Automake needs.
2927
2928 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2929
2930
2931 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2932
2933
2934 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2935
2936
2937 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2938
2939
2940 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2941
2942 # We need awk for the "check" target.  The system "awk" is bad on
2943 # some platforms.
2944 # Always define AMTAR for backward compatibility.  Yes, it's still used
2945 # in the wild :-(  We should find a proper way to deprecate it ...
2946 AMTAR='$${TAR-tar}'
2947
2948 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2949
2950
2951
2952
2953
2954
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2957 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2958     # Check whether --enable-maintainer-mode was given.
2959 if test "${enable_maintainer_mode+set}" = set; then :
2960   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2961 else
2962   USE_MAINTAINER_MODE=no
2963 fi
2964
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2966 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2967    if test $USE_MAINTAINER_MODE = yes; then
2968   MAINTAINER_MODE_TRUE=
2969   MAINTAINER_MODE_FALSE='#'
2970 else
2971   MAINTAINER_MODE_TRUE='#'
2972   MAINTAINER_MODE_FALSE=
2973 fi
2974
2975   MAINT=$MAINTAINER_MODE_TRUE
2976
2977
2978
2979 #----------------------------------------------------------------------------
2980 # Checks for various programs.
2981 #----------------------------------------------------------------------------
2982 CFLAGS="-Wno-long-long $CFLAGS"
2983
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2985 $as_echo_n "checking whether ln -s works... " >&6; }
2986 LN_S=$as_ln_s
2987 if test "$LN_S" = "ln -s"; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2989 $as_echo "yes" >&6; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2992 $as_echo "no, using $LN_S" >&6; }
2993 fi
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$CC"; then
3009   ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023   done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$ac_cv_prog_CC"; then
3040   ac_ct_CC=$CC
3041   # Extract the first word of "gcc", so it can be a program name with args.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if test -n "$ac_ct_CC"; then
3049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054   IFS=$as_save_IFS
3055   test -z "$as_dir" && as_dir=.
3056     for ac_exec_ext in '' $ac_executable_extensions; do
3057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058     ac_cv_prog_ac_ct_CC="gcc"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077   if test "x$ac_ct_CC" = x; then
3078     CC=""
3079   else
3080     case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086     CC=$ac_ct_CC
3087   fi
3088 else
3089   CC="$ac_cv_prog_CC"
3090 fi
3091
3092 if test -z "$CC"; then
3093           if test -n "$ac_tool_prefix"; then
3094     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_exec_ext in '' $ac_executable_extensions; do
3110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111     ac_cv_prog_CC="${ac_tool_prefix}cc"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131   fi
3132 fi
3133 if test -z "$CC"; then
3134   # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   if test -n "$CC"; then
3142   ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144   ac_prog_rejected=no
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150     for ac_exec_ext in '' $ac_executable_extensions; do
3151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153        ac_prog_rejected=yes
3154        continue
3155      fi
3156     ac_cv_prog_CC="cc"
3157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161   done
3162 IFS=$as_save_IFS
3163
3164 if test $ac_prog_rejected = yes; then
3165   # We found a bogon in the path, so make sure we never use it.
3166   set dummy $ac_cv_prog_CC
3167   shift
3168   if test $# != 0; then
3169     # We chose a different compiler from the bogus one.
3170     # However, it has the same basename, so the bogon will be chosen
3171     # first if we set CC to just the basename; use the full file name.
3172     shift
3173     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174   fi
3175 fi
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$CC"; then
3190   if test -n "$ac_tool_prefix"; then
3191   for ac_prog in cl.exe
3192   do
3193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$CC"; then
3201   ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208     for ac_exec_ext in '' $ac_executable_extensions; do
3209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215   done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230     test -n "$CC" && break
3231   done
3232 fi
3233 if test -z "$CC"; then
3234   ac_ct_CC=$CC
3235   for ac_prog in cl.exe
3236 do
3237   # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$ac_ct_CC"; then
3245   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254     ac_cv_prog_ac_ct_CC="$ac_prog"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   test -n "$ac_ct_CC" && break
3275 done
3276
3277   if test "x$ac_ct_CC" = x; then
3278     CC=""
3279   else
3280     case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286     CC=$ac_ct_CC
3287   fi
3288 fi
3289
3290 fi
3291
3292
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details" "$LINENO" 5; }
3297
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3300 set X $ac_compile
3301 ac_compiler=$2
3302 for ac_option in --version -v -V -qversion; do
3303   { { ac_try="$ac_compiler $ac_option >&5"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3311   ac_status=$?
3312   if test -s conftest.err; then
3313     sed '10a\
3314 ... rest of stderr output deleted ...
3315          10q' conftest.err >conftest.er1
3316     cat conftest.er1 >&5
3317   fi
3318   rm -f conftest.er1 conftest.err
3319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320   test $ac_status = 0; }
3321 done
3322
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 ac_clean_files_save=$ac_clean_files
3335 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3336 # Try to create an executable without -o first, disregard a.out.
3337 # It will help us diagnose broken compilers, and finding out an intuition
3338 # of exeext.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342
3343 # The possible output files:
3344 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3345
3346 ac_rmfiles=
3347 for ac_file in $ac_files
3348 do
3349   case $ac_file in
3350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3352   esac
3353 done
3354 rm -f $ac_rmfiles
3355
3356 if { { ac_try="$ac_link_default"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_link_default") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366   test $ac_status = 0; }; then :
3367   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3369 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3370 # so that the user can short-circuit this test for compilers unknown to
3371 # Autoconf.
3372 for ac_file in $ac_files ''
3373 do
3374   test -f "$ac_file" || continue
3375   case $ac_file in
3376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3377         ;;
3378     [ab].out )
3379         # We found the default executable, but exeext='' is most
3380         # certainly right.
3381         break;;
3382     *.* )
3383         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3384         then :; else
3385            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386         fi
3387         # We set ac_cv_exeext here because the later test for it is not
3388         # safe: cross compilers may not add the suffix if given an `-o'
3389         # argument, so we may need to know it at that point already.
3390         # Even if this section looks crufty: it has the advantage of
3391         # actually working.
3392         break;;
3393     * )
3394         break;;
3395   esac
3396 done
3397 test "$ac_cv_exeext" = no && ac_cv_exeext=
3398
3399 else
3400   ac_file=''
3401 fi
3402 if test -z "$ac_file"; then :
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error 77 "C compiler cannot create executables
3411 See \`config.log' for more details" "$LINENO" 5; }
3412 else
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3417 $as_echo_n "checking for C compiler default output file name... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 ac_exeext=$ac_cv_exeext
3421
3422 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_link") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442   test -f "$ac_file" || continue
3443   case $ac_file in
3444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446           break;;
3447     * ) break;;
3448   esac
3449 done
3450 else
3451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3459
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465 #include <stdio.h>
3466 int
3467 main ()
3468 {
3469 FILE *f = fopen ("conftest.out", "w");
3470  return ferror (f) || fclose (f) != 0;
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 ac_clean_files="$ac_clean_files conftest.out"
3477 # Check that the compiler produces executables we can run.  If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3480 $as_echo_n "checking whether we are cross compiling... " >&6; }
3481 if test "$cross_compiling" != yes; then
3482   { { ac_try="$ac_link"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489   (eval "$ac_link") 2>&5
3490   ac_status=$?
3491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492   test $ac_status = 0; }
3493   if { ac_try='./conftest$ac_cv_exeext'
3494   { { case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500   (eval "$ac_try") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }; }; then
3504     cross_compiling=no
3505   else
3506     if test "$cross_compiling" = maybe; then
3507         cross_compiling=yes
3508     else
3509         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details" "$LINENO" 5; }
3514     fi
3515   fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3518 $as_echo "$cross_compiling" >&6; }
3519
3520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3523 $as_echo_n "checking for suffix of object files... " >&6; }
3524 if ${ac_cv_objext+:} false; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.o conftest.obj
3539 if { { ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546   (eval "$ac_compile") 2>&5
3547   ac_status=$?
3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549   test $ac_status = 0; }; then :
3550   for ac_file in conftest.o conftest.obj conftest.*; do
3551   test -f "$ac_file" || continue;
3552   case $ac_file in
3553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3554     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3555        break;;
3556   esac
3557 done
3558 else
3559   $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 fi
3567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3570 $as_echo "$ac_cv_objext" >&6; }
3571 OBJEXT=$ac_cv_objext
3572 ac_objext=$OBJEXT
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3575 if ${ac_cv_c_compiler_gnu+:} false; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584 #ifndef __GNUC__
3585        choke me
3586 #endif
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593   ac_compiler_gnu=yes
3594 else
3595   ac_compiler_gnu=no
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3599
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3603 if test $ac_compiler_gnu = yes; then
3604   GCC=yes
3605 else
3606   GCC=
3607 fi
3608 ac_test_CFLAGS=${CFLAGS+set}
3609 ac_save_CFLAGS=$CFLAGS
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3612 if ${ac_cv_prog_cc_g+:} false; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   ac_save_c_werror_flag=$ac_c_werror_flag
3616    ac_c_werror_flag=yes
3617    ac_cv_prog_cc_g=no
3618    CFLAGS="-g"
3619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621
3622 int
3623 main ()
3624 {
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631   ac_cv_prog_cc_g=yes
3632 else
3633   CFLAGS=""
3634       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646
3647 else
3648   ac_c_werror_flag=$ac_save_c_werror_flag
3649          CFLAGS="-g"
3650          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662   ac_cv_prog_cc_g=yes
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669    ac_c_werror_flag=$ac_save_c_werror_flag
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3672 $as_echo "$ac_cv_prog_cc_g" >&6; }
3673 if test "$ac_test_CFLAGS" = set; then
3674   CFLAGS=$ac_save_CFLAGS
3675 elif test $ac_cv_prog_cc_g = yes; then
3676   if test "$GCC" = yes; then
3677     CFLAGS="-g -O2"
3678   else
3679     CFLAGS="-g"
3680   fi
3681 else
3682   if test "$GCC" = yes; then
3683     CFLAGS="-O2"
3684   else
3685     CFLAGS=
3686   fi
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3690 if ${ac_cv_prog_cc_c89+:} false; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   ac_cv_prog_cc_c89=no
3694 ac_save_CC=$CC
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h.  */
3697 #include <stdarg.h>
3698 #include <stdio.h>
3699 struct stat;
3700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3701 struct buf { int x; };
3702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3703 static char *e (p, i)
3704      char **p;
3705      int i;
3706 {
3707   return p[i];
3708 }
3709 static char *f (char * (*g) (char **, int), char **p, ...)
3710 {
3711   char *s;
3712   va_list v;
3713   va_start (v,p);
3714   s = g (p, va_arg (v,int));
3715   va_end (v);
3716   return s;
3717 }
3718
3719 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3720    function prototypes and stuff, but not '\xHH' hex character constants.
3721    These don't provoke an error unfortunately, instead are silently treated
3722    as 'x'.  The following induces an error, until -std is added to get
3723    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3724    array size at least.  It's necessary to write '\x00'==0 to get something
3725    that's true only with -std.  */
3726 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3727
3728 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3729    inside strings and character constants.  */
3730 #define FOO(x) 'x'
3731 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3732
3733 int test (int i, double x);
3734 struct s1 {int (*f) (int a);};
3735 struct s2 {int (*f) (double a);};
3736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3737 int argc;
3738 char **argv;
3739 int
3740 main ()
3741 {
3742 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3748         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749 do
3750   CC="$ac_save_CC $ac_arg"
3751   if ac_fn_c_try_compile "$LINENO"; then :
3752   ac_cv_prog_cc_c89=$ac_arg
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext
3755   test "x$ac_cv_prog_cc_c89" != "xno" && break
3756 done
3757 rm -f conftest.$ac_ext
3758 CC=$ac_save_CC
3759
3760 fi
3761 # AC_CACHE_VAL
3762 case "x$ac_cv_prog_cc_c89" in
3763   x)
3764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765 $as_echo "none needed" >&6; } ;;
3766   xno)
3767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3768 $as_echo "unsupported" >&6; } ;;
3769   *)
3770     CC="$CC $ac_cv_prog_cc_c89"
3771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3772 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3773 esac
3774 if test "x$ac_cv_prog_cc_c89" != xno; then :
3775
3776 fi
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 DEPDIR="${am__leading_dot}deps"
3784
3785 ac_config_commands="$ac_config_commands depfiles"
3786
3787
3788 am_make=${MAKE-make}
3789 cat > confinc << 'END'
3790 am__doit:
3791         @echo this is the am__doit target
3792 .PHONY: am__doit
3793 END
3794 # If we don't find an include directive, just comment out the code.
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3796 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3797 am__include="#"
3798 am__quote=
3799 _am_result=none
3800 # First try GNU make style include.
3801 echo "include confinc" > confmf
3802 # Ignore all kinds of additional output from `make'.
3803 case `$am_make -s -f confmf 2> /dev/null` in #(
3804 *the\ am__doit\ target*)
3805   am__include=include
3806   am__quote=
3807   _am_result=GNU
3808   ;;
3809 esac
3810 # Now try BSD make style include.
3811 if test "$am__include" = "#"; then
3812    echo '.include "confinc"' > confmf
3813    case `$am_make -s -f confmf 2> /dev/null` in #(
3814    *the\ am__doit\ target*)
3815      am__include=.include
3816      am__quote="\""
3817      _am_result=BSD
3818      ;;
3819    esac
3820 fi
3821
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3824 $as_echo "$_am_result" >&6; }
3825 rm -f confinc confmf
3826
3827 # Check whether --enable-dependency-tracking was given.
3828 if test "${enable_dependency_tracking+set}" = set; then :
3829   enableval=$enable_dependency_tracking;
3830 fi
3831
3832 if test "x$enable_dependency_tracking" != xno; then
3833   am_depcomp="$ac_aux_dir/depcomp"
3834   AMDEPBACKSLASH='\'
3835   am__nodep='_no'
3836 fi
3837  if test "x$enable_dependency_tracking" != xno; then
3838   AMDEP_TRUE=
3839   AMDEP_FALSE='#'
3840 else
3841   AMDEP_TRUE='#'
3842   AMDEP_FALSE=
3843 fi
3844
3845
3846
3847 depcc="$CC"   am_compiler_list=
3848
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3850 $as_echo_n "checking dependency style of $depcc... " >&6; }
3851 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855   # We make a subdir and do the tests there.  Otherwise we can end up
3856   # making bogus files that we don't know about and never remove.  For
3857   # instance it was reported that on HP-UX the gcc test will end up
3858   # making a dummy file named `D' -- because `-MD' means `put the output
3859   # in D'.
3860   rm -rf conftest.dir
3861   mkdir conftest.dir
3862   # Copy depcomp to subdir because otherwise we won't find it if we're
3863   # using a relative directory.
3864   cp "$am_depcomp" conftest.dir
3865   cd conftest.dir
3866   # We will build objects and dependencies in a subdirectory because
3867   # it helps to detect inapplicable dependency modes.  For instance
3868   # both Tru64's cc and ICC support -MD to output dependencies as a
3869   # side effect of compilation, but ICC will put the dependencies in
3870   # the current directory while Tru64 will put them in the object
3871   # directory.
3872   mkdir sub
3873
3874   am_cv_CC_dependencies_compiler_type=none
3875   if test "$am_compiler_list" = ""; then
3876      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877   fi
3878   am__universal=false
3879   case " $depcc " in #(
3880      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3881      esac
3882
3883   for depmode in $am_compiler_list; do
3884     # Setup a source with many dependencies, because some compilers
3885     # like to wrap large dependency lists on column 80 (with \), and
3886     # we should not choose a depcomp mode which is confused by this.
3887     #
3888     # We need to recreate these files for each test, as the compiler may
3889     # overwrite some of them when testing with obscure command lines.
3890     # This happens at least with the AIX C compiler.
3891     : > sub/conftest.c
3892     for i in 1 2 3 4 5 6; do
3893       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3895       # Solaris 8's {/usr,}/bin/sh.
3896       touch sub/conftst$i.h
3897     done
3898     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899
3900     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3901     # mode.  It turns out that the SunPro C++ compiler does not properly
3902     # handle `-M -o', and we need to detect this.  Also, some Intel
3903     # versions had trouble with output in subdirs
3904     am__obj=sub/conftest.${OBJEXT-o}
3905     am__minus_obj="-o $am__obj"
3906     case $depmode in
3907     gcc)
3908       # This depmode causes a compiler race in universal mode.
3909       test "$am__universal" = false || continue
3910       ;;
3911     nosideeffect)
3912       # after this tag, mechanisms are not by side-effect, so they'll
3913       # only be used when explicitly requested
3914       if test "x$enable_dependency_tracking" = xyes; then
3915         continue
3916       else
3917         break
3918       fi
3919       ;;
3920     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3921       # This compiler won't grok `-c -o', but also, the minuso test has
3922       # not run yet.  These depmodes are late enough in the game, and
3923       # so weak that their functioning should not be impacted.
3924       am__obj=conftest.${OBJEXT-o}
3925       am__minus_obj=
3926       ;;
3927     none) break ;;
3928     esac
3929     if depmode=$depmode \
3930        source=sub/conftest.c object=$am__obj \
3931        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933          >/dev/null 2>conftest.err &&
3934        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938       # icc doesn't choke on unknown options, it will just issue warnings
3939       # or remarks (even with -Werror).  So we grep stderr for any message
3940       # that says an option was ignored or not supported.
3941       # When given -MP, icc 7.0 and 7.1 complain thusly:
3942       #   icc: Command line warning: ignoring option '-M'; no argument required
3943       # The diagnosis changed in icc 8.0:
3944       #   icc: Command line remark: option '-MP' not supported
3945       if (grep 'ignoring option' conftest.err ||
3946           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947         am_cv_CC_dependencies_compiler_type=$depmode
3948         break
3949       fi
3950     fi
3951   done
3952
3953   cd ..
3954   rm -rf conftest.dir
3955 else
3956   am_cv_CC_dependencies_compiler_type=none
3957 fi
3958
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963
3964  if
3965   test "x$enable_dependency_tracking" != xno \
3966   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967   am__fastdepCC_TRUE=
3968   am__fastdepCC_FALSE='#'
3969 else
3970   am__fastdepCC_TRUE='#'
3971   am__fastdepCC_FALSE=
3972 fi
3973
3974
3975 if test "x$CC" != xcc; then
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3977 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3978 else
3979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3980 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3981 fi
3982 set dummy $CC; ac_cc=`$as_echo "$2" |
3983                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3984 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989
3990 int
3991 main ()
3992 {
3993
3994   ;
3995   return 0;
3996 }
3997 _ACEOF
3998 # Make sure it works both with $CC and with simple cc.
3999 # We do the test twice because some compilers refuse to overwrite an
4000 # existing .o file with -o, though they will create one.
4001 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4002 rm -f conftest2.*
4003 if { { case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009   (eval "$ac_try") 2>&5
4010   ac_status=$?
4011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012   test $ac_status = 0; } &&
4013    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019   (eval "$ac_try") 2>&5
4020   ac_status=$?
4021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022   test $ac_status = 0; };
4023 then
4024   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4025   if test "x$CC" != xcc; then
4026     # Test first that cc exists at all.
4027     if { ac_try='cc -c conftest.$ac_ext >&5'
4028   { { case "(($ac_try" in
4029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030   *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034   (eval "$ac_try") 2>&5
4035   ac_status=$?
4036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037   test $ac_status = 0; }; }; then
4038       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4039       rm -f conftest2.*
4040       if { { case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046   (eval "$ac_try") 2>&5
4047   ac_status=$?
4048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049   test $ac_status = 0; } &&
4050          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056   (eval "$ac_try") 2>&5
4057   ac_status=$?
4058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059   test $ac_status = 0; };
4060       then
4061         # cc works too.
4062         :
4063       else
4064         # cc exists but doesn't like -o.
4065         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4066       fi
4067     fi
4068   fi
4069 else
4070   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4071 fi
4072 rm -f core conftest*
4073
4074 fi
4075 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 else
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081
4082 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4083
4084 fi
4085
4086 # FIXME: we rely on the cache variable name because
4087 # there is no other way.
4088 set dummy $CC
4089 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4090 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4091 if test "$am_t" != yes; then
4092    # Losing compiler, so override with the script.
4093    # FIXME: It is wrong to rewrite CC.
4094    # But if we don't then we get into trouble of one sort or another.
4095    # A longer-term fix would be to have automake use am__CC in this case,
4096    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4097    CC="$am_aux_dir/compile $CC"
4098 fi
4099
4100
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4107 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4108 # On Suns, sometimes $CPP names a directory.
4109 if test -n "$CPP" && test -d "$CPP"; then
4110   CPP=
4111 fi
4112 if test -z "$CPP"; then
4113   if ${ac_cv_prog_CPP+:} false; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116       # Double quotes because CPP needs to be expanded
4117     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4118     do
4119       ac_preproc_ok=false
4120 for ac_c_preproc_warn_flag in '' yes
4121 do
4122   # Use a header file that comes with gcc, so configuring glibc
4123   # with a fresh cross-compiler works.
4124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125   # <limits.h> exists even on freestanding compilers.
4126   # On the NeXT, cc -E runs the code through the compiler's parser,
4127   # not just through cpp. "Syntax error" is here to catch this case.
4128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130 #ifdef __STDC__
4131 # include <limits.h>
4132 #else
4133 # include <assert.h>
4134 #endif
4135                      Syntax error
4136 _ACEOF
4137 if ac_fn_c_try_cpp "$LINENO"; then :
4138
4139 else
4140   # Broken: fails on valid input.
4141 continue
4142 fi
4143 rm -f conftest.err conftest.i conftest.$ac_ext
4144
4145   # OK, works on sane cases.  Now check whether nonexistent headers
4146   # can be detected and how.
4147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h.  */
4149 #include <ac_nonexistent.h>
4150 _ACEOF
4151 if ac_fn_c_try_cpp "$LINENO"; then :
4152   # Broken: success on invalid input.
4153 continue
4154 else
4155   # Passes both tests.
4156 ac_preproc_ok=:
4157 break
4158 fi
4159 rm -f conftest.err conftest.i conftest.$ac_ext
4160
4161 done
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.i conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then :
4165   break
4166 fi
4167
4168     done
4169     ac_cv_prog_CPP=$CPP
4170
4171 fi
4172   CPP=$ac_cv_prog_CPP
4173 else
4174   ac_cv_prog_CPP=$CPP
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4177 $as_echo "$CPP" >&6; }
4178 ac_preproc_ok=false
4179 for ac_c_preproc_warn_flag in '' yes
4180 do
4181   # Use a header file that comes with gcc, so configuring glibc
4182   # with a fresh cross-compiler works.
4183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184   # <limits.h> exists even on freestanding compilers.
4185   # On the NeXT, cc -E runs the code through the compiler's parser,
4186   # not just through cpp. "Syntax error" is here to catch this case.
4187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h.  */
4189 #ifdef __STDC__
4190 # include <limits.h>
4191 #else
4192 # include <assert.h>
4193 #endif
4194                      Syntax error
4195 _ACEOF
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4197
4198 else
4199   # Broken: fails on valid input.
4200 continue
4201 fi
4202 rm -f conftest.err conftest.i conftest.$ac_ext
4203
4204   # OK, works on sane cases.  Now check whether nonexistent headers
4205   # can be detected and how.
4206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h.  */
4208 #include <ac_nonexistent.h>
4209 _ACEOF
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4211   # Broken: success on invalid input.
4212 continue
4213 else
4214   # Passes both tests.
4215 ac_preproc_ok=:
4216 break
4217 fi
4218 rm -f conftest.err conftest.i conftest.$ac_ext
4219
4220 done
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.i conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then :
4224
4225 else
4226   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details" "$LINENO" 5; }
4230 fi
4231
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238 ac_ext=cpp
4239 ac_cpp='$CXXCPP $CPPFLAGS'
4240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4243 if test -z "$CXX"; then
4244   if test -n "$CCC"; then
4245     CXX=$CCC
4246   else
4247     if test -n "$ac_tool_prefix"; then
4248   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4249   do
4250     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_CXX+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if test -n "$CXX"; then
4258   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269     break 2
4270   fi
4271 done
4272   done
4273 IFS=$as_save_IFS
4274
4275 fi
4276 fi
4277 CXX=$ac_cv_prog_CXX
4278 if test -n "$CXX"; then
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4280 $as_echo "$CXX" >&6; }
4281 else
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 fi
4285
4286
4287     test -n "$CXX" && break
4288   done
4289 fi
4290 if test -z "$CXX"; then
4291   ac_ct_CXX=$CXX
4292   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4293 do
4294   # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301   if test -n "$ac_ct_CXX"; then
4302   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309     for ac_exec_ext in '' $ac_executable_extensions; do
4310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_CXX="$ac_prog"
4312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316   done
4317 IFS=$as_save_IFS
4318
4319 fi
4320 fi
4321 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4322 if test -n "$ac_ct_CXX"; then
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4324 $as_echo "$ac_ct_CXX" >&6; }
4325 else
4326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4328 fi
4329
4330
4331   test -n "$ac_ct_CXX" && break
4332 done
4333
4334   if test "x$ac_ct_CXX" = x; then
4335     CXX="g++"
4336   else
4337     case $cross_compiling:$ac_tool_warned in
4338 yes:)
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4341 ac_tool_warned=yes ;;
4342 esac
4343     CXX=$ac_ct_CXX
4344   fi
4345 fi
4346
4347   fi
4348 fi
4349 # Provide some information about the compiler.
4350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4351 set X $ac_compile
4352 ac_compiler=$2
4353 for ac_option in --version -v -V -qversion; do
4354   { { ac_try="$ac_compiler $ac_option >&5"
4355 case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 $as_echo "$ac_try_echo"; } >&5
4361   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4362   ac_status=$?
4363   if test -s conftest.err; then
4364     sed '10a\
4365 ... rest of stderr output deleted ...
4366          10q' conftest.err >conftest.er1
4367     cat conftest.er1 >&5
4368   fi
4369   rm -f conftest.er1 conftest.err
4370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371   test $ac_status = 0; }
4372 done
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4375 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4376 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381
4382 int
4383 main ()
4384 {
4385 #ifndef __GNUC__
4386        choke me
4387 #endif
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_cxx_try_compile "$LINENO"; then :
4394   ac_compiler_gnu=yes
4395 else
4396   ac_compiler_gnu=no
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4400
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4403 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4404 if test $ac_compiler_gnu = yes; then
4405   GXX=yes
4406 else
4407   GXX=
4408 fi
4409 ac_test_CXXFLAGS=${CXXFLAGS+set}
4410 ac_save_CXXFLAGS=$CXXFLAGS
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4412 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4413 if ${ac_cv_prog_cxx_g+:} false; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4417    ac_cxx_werror_flag=yes
4418    ac_cv_prog_cxx_g=no
4419    CXXFLAGS="-g"
4420    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h.  */
4422
4423 int
4424 main ()
4425 {
4426
4427   ;
4428   return 0;
4429 }
4430 _ACEOF
4431 if ac_fn_cxx_try_compile "$LINENO"; then :
4432   ac_cv_prog_cxx_g=yes
4433 else
4434   CXXFLAGS=""
4435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h.  */
4437
4438 int
4439 main ()
4440 {
4441
4442   ;
4443   return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_cxx_try_compile "$LINENO"; then :
4447
4448 else
4449   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4450          CXXFLAGS="-g"
4451          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453
4454 int
4455 main ()
4456 {
4457
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_cxx_try_compile "$LINENO"; then :
4463   ac_cv_prog_cxx_g=yes
4464 fi
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 fi
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4473 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4474 if test "$ac_test_CXXFLAGS" = set; then
4475   CXXFLAGS=$ac_save_CXXFLAGS
4476 elif test $ac_cv_prog_cxx_g = yes; then
4477   if test "$GXX" = yes; then
4478     CXXFLAGS="-g -O2"
4479   else
4480     CXXFLAGS="-g"
4481   fi
4482 else
4483   if test "$GXX" = yes; then
4484     CXXFLAGS="-O2"
4485   else
4486     CXXFLAGS=
4487   fi
4488 fi
4489 ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495 depcc="$CXX"  am_compiler_list=
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4498 $as_echo_n "checking dependency style of $depcc... " >&6; }
4499 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4503   # We make a subdir and do the tests there.  Otherwise we can end up
4504   # making bogus files that we don't know about and never remove.  For
4505   # instance it was reported that on HP-UX the gcc test will end up
4506   # making a dummy file named `D' -- because `-MD' means `put the output
4507   # in D'.
4508   rm -rf conftest.dir
4509   mkdir conftest.dir
4510   # Copy depcomp to subdir because otherwise we won't find it if we're
4511   # using a relative directory.
4512   cp "$am_depcomp" conftest.dir
4513   cd conftest.dir
4514   # We will build objects and dependencies in a subdirectory because
4515   # it helps to detect inapplicable dependency modes.  For instance
4516   # both Tru64's cc and ICC support -MD to output dependencies as a
4517   # side effect of compilation, but ICC will put the dependencies in
4518   # the current directory while Tru64 will put them in the object
4519   # directory.
4520   mkdir sub
4521
4522   am_cv_CXX_dependencies_compiler_type=none
4523   if test "$am_compiler_list" = ""; then
4524      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4525   fi
4526   am__universal=false
4527   case " $depcc " in #(
4528      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4529      esac
4530
4531   for depmode in $am_compiler_list; do
4532     # Setup a source with many dependencies, because some compilers
4533     # like to wrap large dependency lists on column 80 (with \), and
4534     # we should not choose a depcomp mode which is confused by this.
4535     #
4536     # We need to recreate these files for each test, as the compiler may
4537     # overwrite some of them when testing with obscure command lines.
4538     # This happens at least with the AIX C compiler.
4539     : > sub/conftest.c
4540     for i in 1 2 3 4 5 6; do
4541       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4542       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4543       # Solaris 8's {/usr,}/bin/sh.
4544       touch sub/conftst$i.h
4545     done
4546     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4547
4548     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4549     # mode.  It turns out that the SunPro C++ compiler does not properly
4550     # handle `-M -o', and we need to detect this.  Also, some Intel
4551     # versions had trouble with output in subdirs
4552     am__obj=sub/conftest.${OBJEXT-o}
4553     am__minus_obj="-o $am__obj"
4554     case $depmode in
4555     gcc)
4556       # This depmode causes a compiler race in universal mode.
4557       test "$am__universal" = false || continue
4558       ;;
4559     nosideeffect)
4560       # after this tag, mechanisms are not by side-effect, so they'll
4561       # only be used when explicitly requested
4562       if test "x$enable_dependency_tracking" = xyes; then
4563         continue
4564       else
4565         break
4566       fi
4567       ;;
4568     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4569       # This compiler won't grok `-c -o', but also, the minuso test has
4570       # not run yet.  These depmodes are late enough in the game, and
4571       # so weak that their functioning should not be impacted.
4572       am__obj=conftest.${OBJEXT-o}
4573       am__minus_obj=
4574       ;;
4575     none) break ;;
4576     esac
4577     if depmode=$depmode \
4578        source=sub/conftest.c object=$am__obj \
4579        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4580        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4581          >/dev/null 2>conftest.err &&
4582        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4583        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4584        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4585        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4586       # icc doesn't choke on unknown options, it will just issue warnings
4587       # or remarks (even with -Werror).  So we grep stderr for any message
4588       # that says an option was ignored or not supported.
4589       # When given -MP, icc 7.0 and 7.1 complain thusly:
4590       #   icc: Command line warning: ignoring option '-M'; no argument required
4591       # The diagnosis changed in icc 8.0:
4592       #   icc: Command line remark: option '-MP' not supported
4593       if (grep 'ignoring option' conftest.err ||
4594           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4595         am_cv_CXX_dependencies_compiler_type=$depmode
4596         break
4597       fi
4598     fi
4599   done
4600
4601   cd ..
4602   rm -rf conftest.dir
4603 else
4604   am_cv_CXX_dependencies_compiler_type=none
4605 fi
4606
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4609 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4610 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4611
4612  if
4613   test "x$enable_dependency_tracking" != xno \
4614   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4615   am__fastdepCXX_TRUE=
4616   am__fastdepCXX_FALSE='#'
4617 else
4618   am__fastdepCXX_TRUE='#'
4619   am__fastdepCXX_FALSE=
4620 fi
4621
4622
4623 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4624 # autoconf 2.59).  If we ever have any Objective-C code in the Valgrind code
4625 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4626 # following:
4627 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4628 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4629 # - Use the following, which is apparently equivalent:
4630 #     m4_ifdef([AC_PROG_OBJC],
4631 #        [AC_PROG_OBJC],
4632 #        [AC_CHECK_TOOL([OBJC], [gcc])
4633 #         AC_SUBST([OBJC])
4634 #         AC_SUBST([OBJCFLAGS])
4635 #        ])
4636 if test -n "$ac_tool_prefix"; then
4637   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_RANLIB+:} false; then :
4642   $as_echo_n "(cached) " >&6
4643 else
4644   if test -n "$RANLIB"; then
4645   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652     for ac_exec_ext in '' $ac_executable_extensions; do
4653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659   done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 RANLIB=$ac_cv_prog_RANLIB
4665 if test -n "$RANLIB"; then
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4667 $as_echo "$RANLIB" >&6; }
4668 else
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674 fi
4675 if test -z "$ac_cv_prog_RANLIB"; then
4676   ac_ct_RANLIB=$RANLIB
4677   # Extract the first word of "ranlib", so it can be a program name with args.
4678 set dummy ranlib; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4682   $as_echo_n "(cached) " >&6
4683 else
4684   if test -n "$ac_ct_RANLIB"; then
4685   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692     for ac_exec_ext in '' $ac_executable_extensions; do
4693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694     ac_cv_prog_ac_ct_RANLIB="ranlib"
4695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699   done
4700 IFS=$as_save_IFS
4701
4702 fi
4703 fi
4704 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4705 if test -n "$ac_ct_RANLIB"; then
4706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4707 $as_echo "$ac_ct_RANLIB" >&6; }
4708 else
4709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713   if test "x$ac_ct_RANLIB" = x; then
4714     RANLIB=":"
4715   else
4716     case $cross_compiling:$ac_tool_warned in
4717 yes:)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4721 esac
4722     RANLIB=$ac_ct_RANLIB
4723   fi
4724 else
4725   RANLIB="$ac_cv_prog_RANLIB"
4726 fi
4727
4728 # provide a very basic definition for AC_PROG_SED if it's not provided by
4729 # autoconf (as e.g. in autoconf 2.59).
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4732 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4733 if ${ac_cv_path_SED+:} false; then :
4734   $as_echo_n "(cached) " >&6
4735 else
4736             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4737      for ac_i in 1 2 3 4 5 6 7; do
4738        ac_script="$ac_script$as_nl$ac_script"
4739      done
4740      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4741      { ac_script=; unset ac_script;}
4742      if test -z "$SED"; then
4743   ac_path_SED_found=false
4744   # Loop through the user's path and test for each of PROGNAME-LIST
4745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750     for ac_prog in sed gsed; do
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4753       as_fn_executable_p "$ac_path_SED" || continue
4754 # Check for GNU ac_path_SED and select it if it is found.
4755   # Check for GNU $ac_path_SED
4756 case `"$ac_path_SED" --version 2>&1` in
4757 *GNU*)
4758   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4759 *)
4760   ac_count=0
4761   $as_echo_n 0123456789 >"conftest.in"
4762   while :
4763   do
4764     cat "conftest.in" "conftest.in" >"conftest.tmp"
4765     mv "conftest.tmp" "conftest.in"
4766     cp "conftest.in" "conftest.nl"
4767     $as_echo '' >> "conftest.nl"
4768     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4769     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4770     as_fn_arith $ac_count + 1 && ac_count=$as_val
4771     if test $ac_count -gt ${ac_path_SED_max-0}; then
4772       # Best one so far, save it but keep looking for a better one
4773       ac_cv_path_SED="$ac_path_SED"
4774       ac_path_SED_max=$ac_count
4775     fi
4776     # 10*(2^10) chars as input seems more than enough
4777     test $ac_count -gt 10 && break
4778   done
4779   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4780 esac
4781
4782       $ac_path_SED_found && break 3
4783     done
4784   done
4785   done
4786 IFS=$as_save_IFS
4787   if test -z "$ac_cv_path_SED"; then
4788     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4789   fi
4790 else
4791   ac_cv_path_SED=$SED
4792 fi
4793
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4796 $as_echo "$ac_cv_path_SED" >&6; }
4797  SED="$ac_cv_path_SED"
4798   rm -f conftest.sed
4799
4800
4801 # If no AR variable was specified, look up the name of the archiver. Otherwise
4802 # do not touch the AR variable.
4803 if test "x$AR" = "x"; then
4804   for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4805 do
4806   # Extract the first word of "$ac_prog", so it can be a program name with args.
4807 set dummy $ac_prog; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_path_AR+:} false; then :
4811   $as_echo_n "(cached) " >&6
4812 else
4813   case $AR in
4814   [\\/]* | ?:[\\/]*)
4815   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4816   ;;
4817   *)
4818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823     for ac_exec_ext in '' $ac_executable_extensions; do
4824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827     break 2
4828   fi
4829 done
4830   done
4831 IFS=$as_save_IFS
4832
4833   ;;
4834 esac
4835 fi
4836 AR=$ac_cv_path_AR
4837 if test -n "$AR"; then
4838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4839 $as_echo "$AR" >&6; }
4840 else
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845
4846   test -n "$AR" && break
4847 done
4848 test -n "$AR" || AR="ar"
4849
4850 fi
4851
4852
4853 # Check for the compiler support
4854 if test "${GCC}" != "yes" ; then
4855    as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
4856 fi
4857
4858 # figure out where perl lives
4859 # Extract the first word of "perl", so it can be a program name with args.
4860 set dummy perl; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_path_PERL+:} false; then :
4864   $as_echo_n "(cached) " >&6
4865 else
4866   case $PERL in
4867   [\\/]* | ?:[\\/]*)
4868   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4869   ;;
4870   *)
4871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876     for ac_exec_ext in '' $ac_executable_extensions; do
4877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880     break 2
4881   fi
4882 done
4883   done
4884 IFS=$as_save_IFS
4885
4886   ;;
4887 esac
4888 fi
4889 PERL=$ac_cv_path_PERL
4890 if test -n "$PERL"; then
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4892 $as_echo "$PERL" >&6; }
4893 else
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898
4899
4900 # figure out where gdb lives
4901 # Extract the first word of "gdb", so it can be a program name with args.
4902 set dummy gdb; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_path_GDB+:} false; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908   case $GDB in
4909   [\\/]* | ?:[\\/]*)
4910   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4911   ;;
4912   *)
4913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918     for ac_exec_ext in '' $ac_executable_extensions; do
4919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925   done
4926 IFS=$as_save_IFS
4927
4928   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4929   ;;
4930 esac
4931 fi
4932 GDB=$ac_cv_path_GDB
4933 if test -n "$GDB"; then
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4935 $as_echo "$GDB" >&6; }
4936 else
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4939 fi
4940
4941
4942
4943 cat >>confdefs.h <<_ACEOF
4944 #define GDB_PATH "$GDB"
4945 _ACEOF
4946
4947
4948 # some older automake's don't have it so try something on our own
4949 # By default we simply use the C compiler to build assembly code.
4950
4951 test "${CCAS+set}" = set || CCAS=$CC
4952 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4953
4954
4955
4956 depcc="$CCAS"   am_compiler_list=
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4959 $as_echo_n "checking dependency style of $depcc... " >&6; }
4960 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4964   # We make a subdir and do the tests there.  Otherwise we can end up
4965   # making bogus files that we don't know about and never remove.  For
4966   # instance it was reported that on HP-UX the gcc test will end up
4967   # making a dummy file named `D' -- because `-MD' means `put the output
4968   # in D'.
4969   rm -rf conftest.dir
4970   mkdir conftest.dir
4971   # Copy depcomp to subdir because otherwise we won't find it if we're
4972   # using a relative directory.
4973   cp "$am_depcomp" conftest.dir
4974   cd conftest.dir
4975   # We will build objects and dependencies in a subdirectory because
4976   # it helps to detect inapplicable dependency modes.  For instance
4977   # both Tru64's cc and ICC support -MD to output dependencies as a
4978   # side effect of compilation, but ICC will put the dependencies in
4979   # the current directory while Tru64 will put them in the object
4980   # directory.
4981   mkdir sub
4982
4983   am_cv_CCAS_dependencies_compiler_type=none
4984   if test "$am_compiler_list" = ""; then
4985      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4986   fi
4987   am__universal=false
4988
4989
4990   for depmode in $am_compiler_list; do
4991     # Setup a source with many dependencies, because some compilers
4992     # like to wrap large dependency lists on column 80 (with \), and
4993     # we should not choose a depcomp mode which is confused by this.
4994     #
4995     # We need to recreate these files for each test, as the compiler may
4996     # overwrite some of them when testing with obscure command lines.
4997     # This happens at least with the AIX C compiler.
4998     : > sub/conftest.c
4999     for i in 1 2 3 4 5 6; do
5000       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5001       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5002       # Solaris 8's {/usr,}/bin/sh.
5003       touch sub/conftst$i.h
5004     done
5005     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5006
5007     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5008     # mode.  It turns out that the SunPro C++ compiler does not properly
5009     # handle `-M -o', and we need to detect this.  Also, some Intel
5010     # versions had trouble with output in subdirs
5011     am__obj=sub/conftest.${OBJEXT-o}
5012     am__minus_obj="-o $am__obj"
5013     case $depmode in
5014     gcc)
5015       # This depmode causes a compiler race in universal mode.
5016       test "$am__universal" = false || continue
5017       ;;
5018     nosideeffect)
5019       # after this tag, mechanisms are not by side-effect, so they'll
5020       # only be used when explicitly requested
5021       if test "x$enable_dependency_tracking" = xyes; then
5022         continue
5023       else
5024         break
5025       fi
5026       ;;
5027     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5028       # This compiler won't grok `-c -o', but also, the minuso test has
5029       # not run yet.  These depmodes are late enough in the game, and
5030       # so weak that their functioning should not be impacted.
5031       am__obj=conftest.${OBJEXT-o}
5032       am__minus_obj=
5033       ;;
5034     none) break ;;
5035     esac
5036     if depmode=$depmode \
5037        source=sub/conftest.c object=$am__obj \
5038        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5039        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5040          >/dev/null 2>conftest.err &&
5041        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5042        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5043        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5044        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5045       # icc doesn't choke on unknown options, it will just issue warnings
5046       # or remarks (even with -Werror).  So we grep stderr for any message
5047       # that says an option was ignored or not supported.
5048       # When given -MP, icc 7.0 and 7.1 complain thusly:
5049       #   icc: Command line warning: ignoring option '-M'; no argument required
5050       # The diagnosis changed in icc 8.0:
5051       #   icc: Command line remark: option '-MP' not supported
5052       if (grep 'ignoring option' conftest.err ||
5053           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5054         am_cv_CCAS_dependencies_compiler_type=$depmode
5055         break
5056       fi
5057     fi
5058   done
5059
5060   cd ..
5061   rm -rf conftest.dir
5062 else
5063   am_cv_CCAS_dependencies_compiler_type=none
5064 fi
5065
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5068 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5069 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5070
5071  if
5072   test "x$enable_dependency_tracking" != xno \
5073   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5074   am__fastdepCCAS_TRUE=
5075   am__fastdepCCAS_FALSE='#'
5076 else
5077   am__fastdepCCAS_TRUE='#'
5078   am__fastdepCCAS_FALSE=
5079 fi
5080
5081
5082
5083
5084 # Check if 'diff' supports -u (universal diffs) and use it if possible.
5085
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5087 $as_echo_n "checking for diff -u... " >&6; }
5088
5089
5090 # Comparing two identical files results in 0, unless -u isn't supported (as
5091 # it's not on AIX).
5092 tmpfile="tmp-xxx-yyy-zzz"
5093 touch $tmpfile;
5094 if diff -u $tmpfile $tmpfile ; then
5095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096 $as_echo "yes" >&6; }
5097     DIFF="diff -u"
5098 else
5099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101     DIFF="diff"
5102 fi
5103 rm $tmpfile
5104
5105
5106 # We don't want gcc < 3.0
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5108 $as_echo_n "checking for a supported version of gcc... " >&6; }
5109
5110 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5111
5112 case "${gcc_version}" in
5113      2.*)
5114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5115 $as_echo "no (${gcc_version})" >&6; }
5116         as_fn_error $? "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5117         ;;
5118      *)
5119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5120 $as_echo "ok (${gcc_version})" >&6; }
5121         ;;
5122 esac
5123
5124 #----------------------------------------------------------------------------
5125 # Arch/OS/platform tests.
5126 #----------------------------------------------------------------------------
5127 # We create a number of arch/OS/platform-related variables.  We prefix them
5128 # all with "VGCONF_" which indicates that they are defined at
5129 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5130 # variables used when compiling C files.
5131
5132 # Make sure we can run config.sub.
5133 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5134   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5135
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5137 $as_echo_n "checking build system type... " >&6; }
5138 if ${ac_cv_build+:} false; then :
5139   $as_echo_n "(cached) " >&6
5140 else
5141   ac_build_alias=$build_alias
5142 test "x$ac_build_alias" = x &&
5143   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5144 test "x$ac_build_alias" = x &&
5145   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5146 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5147   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5148
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5151 $as_echo "$ac_cv_build" >&6; }
5152 case $ac_cv_build in
5153 *-*-*) ;;
5154 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5155 esac
5156 build=$ac_cv_build
5157 ac_save_IFS=$IFS; IFS='-'
5158 set x $ac_cv_build
5159 shift
5160 build_cpu=$1
5161 build_vendor=$2
5162 shift; shift
5163 # Remember, the first character of IFS is used to create $*,
5164 # except with old shells:
5165 build_os=$*
5166 IFS=$ac_save_IFS
5167 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5171 $as_echo_n "checking host system type... " >&6; }
5172 if ${ac_cv_host+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   if test "x$host_alias" = x; then
5176   ac_cv_host=$ac_cv_build
5177 else
5178   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5179     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5180 fi
5181
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5184 $as_echo "$ac_cv_host" >&6; }
5185 case $ac_cv_host in
5186 *-*-*) ;;
5187 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5188 esac
5189 host=$ac_cv_host
5190 ac_save_IFS=$IFS; IFS='-'
5191 set x $ac_cv_host
5192 shift
5193 host_cpu=$1
5194 host_vendor=$2
5195 shift; shift
5196 # Remember, the first character of IFS is used to create $*,
5197 # except with old shells:
5198 host_os=$*
5199 IFS=$ac_save_IFS
5200 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5201
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5205 $as_echo_n "checking for a supported CPU... " >&6; }
5206
5207 # ARCH_MAX reflects the most that this CPU can do: for example if it
5208 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5209 # Ditto for amd64.  It is used for more configuration below, but is not used
5210 # outside this file.
5211 case "${host_cpu}" in
5212      i?86)
5213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5214 $as_echo "ok (${host_cpu})" >&6; }
5215         ARCH_MAX="x86"
5216         ;;
5217
5218      x86_64)
5219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5220 $as_echo "ok (${host_cpu})" >&6; }
5221         ARCH_MAX="amd64"
5222         ;;
5223
5224      powerpc64)
5225         # This value can only happen on Linux, not on AIX
5226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5227 $as_echo "ok (${host_cpu})" >&6; }
5228         ARCH_MAX="ppc64"
5229         ;;
5230
5231      powerpc)
5232         # Complexity.  'powerpc' on AIX implies a 64-bit capable CPU.
5233         # Whereas in Linux that means only a 32-bit capable CPU.
5234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5235 $as_echo "ok (${host_cpu})" >&6; }
5236         case "${host_os}" in
5237            aix5.*)
5238               ARCH_MAX="ppc64"
5239               ;;
5240            *)
5241               ARCH_MAX="ppc32"
5242               ;;
5243         esac
5244         ;;
5245
5246      s390x)
5247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5248 $as_echo "ok (${host_cpu})" >&6; }
5249         ARCH_MAX="s390x"
5250         ;;
5251
5252      armv7*)
5253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5254 $as_echo "ok (${host_cpu})" >&6; }
5255         ARCH_MAX="arm"
5256         ;;
5257
5258      *)
5259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5260 $as_echo "no (${host_cpu})" >&6; }
5261         as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
5262         ;;
5263 esac
5264
5265 #----------------------------------------------------------------------------
5266
5267 # Sometimes it's convenient to subvert the bi-arch build system and
5268 # just have a single build even though the underlying platform is
5269 # capable of both.  Hence handle --enable-only64bit and
5270 # --enable-only32bit.  Complain if both are issued :-)
5271 # [Actually, if either of these options are used, I think both get built,
5272 # but only one gets installed.  So if you use an in-place build, both can be
5273 # used. --njn]
5274
5275 # Check if a 64-bit only build has been requested
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5277 $as_echo_n "checking for a 64-bit only build... " >&6; }
5278 if ${vg_cv_only64bit+:} false; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   # Check whether --enable-only64bit was given.
5282 if test "${enable_only64bit+set}" = set; then :
5283   enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5284 else
5285   vg_cv_only64bit=no
5286 fi
5287
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5290 $as_echo "$vg_cv_only64bit" >&6; }
5291
5292 # Check if a 32-bit only build has been requested
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5294 $as_echo_n "checking for a 32-bit only build... " >&6; }
5295 if ${vg_cv_only32bit+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   # Check whether --enable-only32bit was given.
5299 if test "${enable_only32bit+set}" = set; then :
5300   enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5301 else
5302   vg_cv_only32bit=no
5303 fi
5304
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5307 $as_echo "$vg_cv_only32bit" >&6; }
5308
5309 # Stay sane
5310 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5311    as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5312 fi
5313
5314 #----------------------------------------------------------------------------
5315
5316 # VGCONF_OS is the primary build OS, eg. "linux".  It is passed in to
5317 # compilation of many C files via -VGO_$(VGCONF_OS) and
5318 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5320 $as_echo_n "checking for a supported OS... " >&6; }
5321
5322
5323 DEFAULT_SUPP=""
5324 GENERATED_SUPP=""
5325
5326 case "${host_os}" in
5327      *linux*)
5328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5329 $as_echo "ok (${host_os})" >&6; }
5330         VGCONF_OS="linux"
5331
5332         # Ok, this is linux. Check the kernel version
5333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5334 $as_echo_n "checking for the kernel version... " >&6; }
5335
5336         kernel=`uname -r`
5337
5338         case "${kernel}" in
5339              2.6.*)
5340                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5341 $as_echo "2.6 family (${kernel})" >&6; }
5342
5343 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5344
5345                     ;;
5346
5347              2.4.*)
5348                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5349 $as_echo "2.4 family (${kernel})" >&6; }
5350
5351 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5352
5353                     ;;
5354
5355              *)
5356                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5357 $as_echo "unsupported (${kernel})" >&6; }
5358                     as_fn_error $? "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5359                     ;;
5360         esac
5361
5362         ;;
5363
5364      aix5.1.*)
5365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5366 $as_echo "ok (${host_os})" >&6; }
5367         VGCONF_OS="aix5"
5368         ;;
5369      aix5.2.*)
5370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5371 $as_echo "ok (${host_os})" >&6; }
5372         VGCONF_OS="aix5"
5373         ;;
5374      aix5.3.*)
5375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5376 $as_echo "ok (${host_os})" >&6; }
5377         VGCONF_OS="aix5"
5378         ;;
5379
5380      *l4re*)
5381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5382 $as_echo "ok (${host_os})" >&6; }
5383         VGCONF_OS="l4re"
5384                 DEFAULT_SUPP="pthread_l4re.supp"
5385         ;;
5386
5387      *darwin*)
5388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5389 $as_echo "ok (${host_os})" >&6; }
5390         VGCONF_OS="darwin"
5391
5392 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5393
5394
5395 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5396
5397
5398 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5399
5400
5401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5402 $as_echo_n "checking for the kernel version... " >&6; }
5403         kernel=`uname -r`
5404
5405         # Nb: for Darwin we set DEFAULT_SUPP here.  That's because Darwin
5406         # has only one relevant version, the OS version. The `uname` check
5407         # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5408         # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5409         # and we don't know of an macros similar to __GLIBC__ to get that info.
5410         #
5411         # XXX: `uname -r` won't do the right thing for cross-compiles, but
5412         # that's not a problem yet.
5413         case "${kernel}" in
5414              9.*)
5415                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5416 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5417
5418 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5419
5420                   DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5421                   DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5422                   ;;
5423              10.*)
5424                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5425 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5426
5427 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5428
5429                   DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5430                   DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5431                   ;;
5432      *)
5433                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5434 $as_echo "unsupported (${kernel})" >&6; }
5435                   as_fn_error $? "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5436                   ;;
5437         esac
5438         ;;
5439
5440      *)
5441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5442 $as_echo "no (${host_os})" >&6; }
5443         as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
5444         ;;
5445 esac
5446
5447 #----------------------------------------------------------------------------
5448
5449 # If we are building on a 64 bit platform test to see if the system
5450 # supports building 32 bit programs and disable 32 bit support if it
5451 # does not support building 32 bit programs
5452
5453 case "$ARCH_MAX-$VGCONF_OS" in
5454      amd64-linux|ppc64-linux)
5455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5456 $as_echo_n "checking for 32 bit build support... " >&6; }
5457         safe_CFLAGS=$CFLAGS
5458         CFLAGS="-m32"
5459
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h.  */
5462
5463 int
5464 main ()
5465 {
5466
5467           return 0;
5468
5469   ;
5470   return 0;
5471 }
5472 _ACEOF
5473 if ac_fn_c_try_link "$LINENO"; then :
5474
5475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5477
5478 else
5479
5480         vg_cv_only64bit="yes"
5481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext \
5486     conftest$ac_exeext conftest.$ac_ext
5487         CFLAGS=$safe_CFLAGS;;
5488 esac
5489
5490 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5491    as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5492 fi
5493
5494 #----------------------------------------------------------------------------
5495
5496 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64".  By
5497 # default it's the same as ARCH_MAX.  But if, say, we do a build on an amd64
5498 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5499 # above) will be "amd64" since that reflects the most that this cpu can do,
5500 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5501 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS).  It is
5502 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5503 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5504
5505
5506 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5507 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5508 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5509 # It is empty if there is no secondary target.
5510
5511
5512 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5513 # The entire system, including regression and performance tests, will be
5514 # built for this target.  The "_CAPS" indicates that the name is in capital
5515 # letters, and it also uses '_' rather than '-' as a separator, because it's
5516 # used to create various Makefile variables, which are all in caps by
5517 # convention and cannot contain '-' characters.  This is in contrast to
5518 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5519
5520
5521 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5522 # Valgrind and tools will also be built for this target, but not the
5523 # regression or performance tests.
5524 #
5525 # By default, the primary arch is the same as the "max" arch, as commented
5526 # above (at the definition of ARCH_MAX).  We may choose to downgrade it in
5527 # the big case statement just below here, in the case where we're building
5528 # on a 64 bit machine but have been requested only to do a 32 bit build.
5529
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5532 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5533
5534 # NB.  The load address for a given platform may be specified in more
5535 # than one place, in some cases, depending on whether we're doing a biarch,
5536 # 32-bit only or 64-bit only build.  eg see case for amd64-linux below.
5537 # Be careful to give consistent values in all subcases.  Also, all four
5538 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5539 # even if it is to "0xUNSET".
5540 #
5541 case "$ARCH_MAX-$VGCONF_OS" in
5542      x86-linux)
5543         VGCONF_ARCH_PRI="x86"
5544         VGCONF_ARCH_SEC=""
5545         VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5546         VGCONF_PLATFORM_SEC_CAPS=""
5547         valt_load_address_pri_norml="0x38000000"
5548         valt_load_address_pri_inner="0x28000000"
5549         valt_load_address_sec_norml="0xUNSET"
5550         valt_load_address_sec_inner="0xUNSET"
5551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5552 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5553         ;;
5554      amd64-linux)
5555         valt_load_address_sec_norml="0xUNSET"
5556         valt_load_address_sec_inner="0xUNSET"
5557         if test x$vg_cv_only64bit = xyes; then
5558            VGCONF_ARCH_PRI="amd64"
5559            VGCONF_ARCH_SEC=""
5560            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5561            VGCONF_PLATFORM_SEC_CAPS=""
5562            valt_load_address_pri_norml="0x38000000"
5563            valt_load_address_pri_inner="0x28000000"
5564         elif test x$vg_cv_only32bit = xyes; then
5565            VGCONF_ARCH_PRI="x86"
5566            VGCONF_ARCH_SEC=""
5567            VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5568            VGCONF_PLATFORM_SEC_CAPS=""
5569            valt_load_address_pri_norml="0x38000000"
5570            valt_load_address_pri_inner="0x28000000"
5571         else
5572            VGCONF_ARCH_PRI="amd64"
5573            VGCONF_ARCH_SEC="x86"
5574            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5575            VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5576            valt_load_address_pri_norml="0x38000000"
5577            valt_load_address_pri_inner="0x28000000"
5578            valt_load_address_sec_norml="0x38000000"
5579            valt_load_address_sec_inner="0x28000000"
5580         fi
5581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5582 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5583         ;;
5584      ppc32-linux)
5585         VGCONF_ARCH_PRI="ppc32"
5586         VGCONF_ARCH_SEC=""
5587         VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5588         VGCONF_PLATFORM_SEC_CAPS=""
5589         valt_load_address_pri_norml="0x38000000"
5590         valt_load_address_pri_inner="0x28000000"
5591         valt_load_address_sec_norml="0xUNSET"
5592         valt_load_address_sec_inner="0xUNSET"
5593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5594 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5595         ;;
5596      ppc64-aix5)
5597         valt_load_address_pri_norml="0xUNSET"
5598         valt_load_address_pri_inner="0xUNSET"
5599         valt_load_address_sec_norml="0xUNSET"
5600         valt_load_address_sec_inner="0xUNSET"
5601         if test x$vg_cv_only64bit = xyes; then
5602            VGCONF_ARCH_PRI="ppc64"
5603            VGCONF_ARCH_SEC=""
5604            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5605            VGCONF_PLATFORM_SEC_CAPS=""
5606         elif test x$vg_cv_only32bit = xyes; then
5607            VGCONF_ARCH_PRI="ppc32"
5608            VGCONF_ARCH_SEC=""
5609            VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5610            VGCONF_PLATFORM_SEC_CAPS=""
5611         else
5612            VGCONF_ARCH_PRI="ppc64"
5613            VGCONF_ARCH_SEC="ppc32"
5614            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5615            VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5616         fi
5617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5618 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5619         ;;
5620      ppc64-linux)
5621         valt_load_address_sec_norml="0xUNSET"
5622         valt_load_address_sec_inner="0xUNSET"
5623         if test x$vg_cv_only64bit = xyes; then
5624            VGCONF_ARCH_PRI="ppc64"
5625            VGCONF_ARCH_SEC=""
5626            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5627            VGCONF_PLATFORM_SEC_CAPS=""
5628            valt_load_address_pri_norml="0x38000000"
5629            valt_load_address_pri_inner="0x28000000"
5630         elif test x$vg_cv_only32bit = xyes; then
5631            VGCONF_ARCH_PRI="ppc32"
5632            VGCONF_ARCH_SEC=""
5633            VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5634            VGCONF_PLATFORM_SEC_CAPS=""
5635            valt_load_address_pri_norml="0x38000000"
5636            valt_load_address_pri_inner="0x28000000"
5637         else
5638            VGCONF_ARCH_PRI="ppc64"
5639            VGCONF_ARCH_SEC="ppc32"
5640            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5641            VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5642            valt_load_address_pri_norml="0x38000000"
5643            valt_load_address_pri_inner="0x28000000"
5644            valt_load_address_sec_norml="0x38000000"
5645            valt_load_address_sec_inner="0x28000000"
5646         fi
5647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5648 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5649         ;;
5650      x86-l4re)
5651                 VGCONF_ARCH_PRI="x86"
5652                 VGCONF_ARCH_SEC=""
5653                 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5654                 VGCONF_PLATFORM_SEC_CAPS=""
5655            valt_load_address_pri_norml="0x38000000"
5656            valt_load_address_pri_inner="0x28000000"
5657            valt_load_address_sec_norml="0x38000000"
5658            valt_load_address_sec_inner="0x28000000"
5659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5660 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5661          ;;
5662      # Darwin gets identified as 32-bit even when it supports 64-bit.
5663      # (Not sure why, possibly because 'uname' returns "i386"?)  Just about
5664      # all Macs support both 32-bit and 64-bit, so we just build both.  If
5665      # someone has a really old 32-bit only machine they can (hopefully?)
5666      # build with --enable-only32bit.  See bug 243362.
5667      x86-darwin|amd64-darwin)
5668         ARCH_MAX="amd64"
5669         valt_load_address_sec_norml="0xUNSET"
5670         valt_load_address_sec_inner="0xUNSET"
5671         if test x$vg_cv_only64bit = xyes; then
5672            VGCONF_ARCH_PRI="amd64"
5673            VGCONF_ARCH_SEC=""
5674            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5675            VGCONF_PLATFORM_SEC_CAPS=""
5676            valt_load_address_pri_norml="0x138000000"
5677            valt_load_address_pri_inner="0x128000000"
5678         elif test x$vg_cv_only32bit = xyes; then
5679            VGCONF_ARCH_PRI="x86"
5680            VGCONF_ARCH_SEC=""
5681            VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5682            VGCONF_PLATFORM_SEC_CAPS=""
5683            VGCONF_ARCH_PRI_CAPS="x86"
5684            valt_load_address_pri_norml="0x38000000"
5685            valt_load_address_pri_inner="0x28000000"
5686         else
5687            VGCONF_ARCH_PRI="amd64"
5688            VGCONF_ARCH_SEC="x86"
5689            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5690            VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5691            valt_load_address_pri_norml="0x138000000"
5692            valt_load_address_pri_inner="0x128000000"
5693            valt_load_address_sec_norml="0x38000000"
5694            valt_load_address_sec_inner="0x28000000"
5695         fi
5696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5697 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5698         ;;
5699      arm-linux)
5700         VGCONF_ARCH_PRI="arm"
5701         VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5702         VGCONF_PLATFORM_SEC_CAPS=""
5703         valt_load_address_pri_norml="0x38000000"
5704         valt_load_address_pri_inner="0x28000000"
5705         valt_load_address_sec_norml="0xUNSET"
5706         valt_load_address_sec_inner="0xUNSET"
5707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5708 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5709         ;;
5710      s390x-linux)
5711         VGCONF_ARCH_PRI="s390x"
5712         VGCONF_ARCH_SEC=""
5713         VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX"
5714         VGCONF_PLATFORM_SEC_CAPS=""
5715         # we want to have the generated code close to the dispatcher
5716         valt_load_address_pri_norml="0x401000000"
5717         valt_load_address_pri_inner="0x410000000"
5718         valt_load_address_sec_norml="0xUNSET"
5719         valt_load_address_sec_inner="0xUNSET"
5720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5721 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5722         ;;
5723     *)
5724         VGCONF_ARCH_PRI="unknown"
5725         VGCONF_ARCH_SEC="unknown"
5726         VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5727         VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5728         valt_load_address_pri_norml="0xUNSET"
5729         valt_load_address_pri_inner="0xUNSET"
5730         valt_load_address_sec_norml="0xUNSET"
5731         valt_load_address_sec_inner="0xUNSET"
5732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5733 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5734         as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5735         ;;
5736 esac
5737
5738 #----------------------------------------------------------------------------
5739
5740 # Set up VGCONF_ARCHS_INCLUDE_<arch>.  Either one or two of these become
5741 # defined.
5742  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5743                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5744                  -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5745                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5746   VGCONF_ARCHS_INCLUDE_X86_TRUE=
5747   VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5748 else
5749   VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5750   VGCONF_ARCHS_INCLUDE_X86_FALSE=
5751 fi
5752
5753  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5754                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5755   VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5756   VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5757 else
5758   VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5759   VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5760 fi
5761
5762  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5763                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5764                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5765                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5766   VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5767   VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5768 else
5769   VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5770   VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5771 fi
5772
5773  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5774                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5775   VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5776   VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5777 else
5778   VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5779   VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5780 fi
5781
5782  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5783   VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5784   VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5785 else
5786   VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5787   VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5788 fi
5789
5790  if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
5791   VGCONF_ARCHS_INCLUDE_S390X_TRUE=
5792   VGCONF_ARCHS_INCLUDE_S390X_FALSE='#'
5793 else
5794   VGCONF_ARCHS_INCLUDE_S390X_TRUE='#'
5795   VGCONF_ARCHS_INCLUDE_S390X_FALSE=
5796 fi
5797
5798
5799 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>.  Either one or two of these
5800 # become defined.
5801  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5802                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5803   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5804   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5805 else
5806   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5807   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5808 fi
5809
5810  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5811   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5812   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5813 else
5814   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5815   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5816 fi
5817
5818  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5819                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5820   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5821   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5822 else
5823   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5824   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5825 fi
5826
5827  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5828   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5829   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5830 else
5831   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5832   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5833 fi
5834
5835  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5836   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5837   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5838 else
5839   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5840   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5841 fi
5842
5843  if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
5844                  -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then
5845   VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE=
5846   VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#'
5847 else
5848   VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#'
5849   VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE=
5850 fi
5851
5852
5853  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5854                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5855   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5856   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5857 else
5858   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5859   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5860 fi
5861
5862  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5863   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5864   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5865 else
5866   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5867   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5868 fi
5869
5870
5871  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5872                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5873   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5874   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5875 else
5876   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5877   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5878 fi
5879
5880  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5881   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5882   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5883 else
5884   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5885   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5886 fi
5887
5888  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5889   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5890   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5891 else
5892   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5893   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5894 fi
5895
5896
5897
5898 # Similarly, set up VGCONF_OS_IS_<os>.  Exactly one of these becomes defined.
5899 # Relies on the assumption that the primary and secondary targets are
5900 # for the same OS, so therefore only necessary to test the primary.
5901  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5902                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5903                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5904                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5905                  -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
5906                  -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX; then
5907   VGCONF_OS_IS_LINUX_TRUE=
5908   VGCONF_OS_IS_LINUX_FALSE='#'
5909 else
5910   VGCONF_OS_IS_LINUX_TRUE='#'
5911   VGCONF_OS_IS_LINUX_FALSE=
5912 fi
5913
5914  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5915                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5916   VGCONF_OS_IS_AIX5_TRUE=
5917   VGCONF_OS_IS_AIX5_FALSE='#'
5918 else
5919   VGCONF_OS_IS_AIX5_TRUE='#'
5920   VGCONF_OS_IS_AIX5_FALSE=
5921 fi
5922
5923  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5924                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5925   VGCONF_OS_IS_DARWIN_TRUE=
5926   VGCONF_OS_IS_DARWIN_FALSE='#'
5927 else
5928   VGCONF_OS_IS_DARWIN_TRUE='#'
5929   VGCONF_OS_IS_DARWIN_FALSE=
5930 fi
5931
5932  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5933   VGCONF_OS_IS_L4RE_TRUE=
5934   VGCONF_OS_IS_L4RE_FALSE='#'
5935 else
5936   VGCONF_OS_IS_L4RE_TRUE='#'
5937   VGCONF_OS_IS_L4RE_FALSE=
5938 fi
5939
5940
5941
5942 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5943 # there is a secondary target.
5944  if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5945   VGCONF_HAVE_PLATFORM_SEC_TRUE=
5946   VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5947 else
5948   VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5949   VGCONF_HAVE_PLATFORM_SEC_FALSE=
5950 fi
5951
5952
5953
5954 #----------------------------------------------------------------------------
5955 # Inner Valgrind?
5956 #----------------------------------------------------------------------------
5957
5958 # Check if this should be built as an inner Valgrind, to be run within
5959 # another Valgrind.  Choose the load address accordingly.
5960
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5963 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5964 if ${vg_cv_inner+:} false; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   # Check whether --enable-inner was given.
5968 if test "${enable_inner+set}" = set; then :
5969   enableval=$enable_inner; vg_cv_inner=$enableval
5970 else
5971   vg_cv_inner=no
5972 fi
5973
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5976 $as_echo "$vg_cv_inner" >&6; }
5977 if test "$vg_cv_inner" = yes; then
5978
5979 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5980
5981     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5982     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5983 else
5984     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5985     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5986 fi
5987
5988
5989 #----------------------------------------------------------------------------
5990 # Libc and suppressions
5991 #----------------------------------------------------------------------------
5992 # This variable will collect the suppression files to be used.
5993
5994 # This variable holds generated suppression files (such as the one used for
5995 # glibcs >= 2.7)
5996
5997
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6000 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6001 if ${ac_cv_path_GREP+:} false; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if test -z "$GREP"; then
6005   ac_path_GREP_found=false
6006   # Loop through the user's path and test for each of PROGNAME-LIST
6007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012     for ac_prog in grep ggrep; do
6013     for ac_exec_ext in '' $ac_executable_extensions; do
6014       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6015       as_fn_executable_p "$ac_path_GREP" || continue
6016 # Check for GNU ac_path_GREP and select it if it is found.
6017   # Check for GNU $ac_path_GREP
6018 case `"$ac_path_GREP" --version 2>&1` in
6019 *GNU*)
6020   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6021 *)
6022   ac_count=0
6023   $as_echo_n 0123456789 >"conftest.in"
6024   while :
6025   do
6026     cat "conftest.in" "conftest.in" >"conftest.tmp"
6027     mv "conftest.tmp" "conftest.in"
6028     cp "conftest.in" "conftest.nl"
6029     $as_echo 'GREP' >> "conftest.nl"
6030     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6031     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6032     as_fn_arith $ac_count + 1 && ac_count=$as_val
6033     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6034       # Best one so far, save it but keep looking for a better one
6035       ac_cv_path_GREP="$ac_path_GREP"
6036       ac_path_GREP_max=$ac_count
6037     fi
6038     # 10*(2^10) chars as input seems more than enough
6039     test $ac_count -gt 10 && break
6040   done
6041   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6042 esac
6043
6044       $ac_path_GREP_found && break 3
6045     done
6046   done
6047   done
6048 IFS=$as_save_IFS
6049   if test -z "$ac_cv_path_GREP"; then
6050     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6051   fi
6052 else
6053   ac_cv_path_GREP=$GREP
6054 fi
6055
6056 fi
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6058 $as_echo "$ac_cv_path_GREP" >&6; }
6059  GREP="$ac_cv_path_GREP"
6060
6061
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6063 $as_echo_n "checking for egrep... " >&6; }
6064 if ${ac_cv_path_EGREP+:} false; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6068    then ac_cv_path_EGREP="$GREP -E"
6069    else
6070      if test -z "$EGREP"; then
6071   ac_path_EGREP_found=false
6072   # Loop through the user's path and test for each of PROGNAME-LIST
6073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6075 do
6076   IFS=$as_save_IFS
6077   test -z "$as_dir" && as_dir=.
6078     for ac_prog in egrep; do
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6081       as_fn_executable_p "$ac_path_EGREP" || continue
6082 # Check for GNU ac_path_EGREP and select it if it is found.
6083   # Check for GNU $ac_path_EGREP
6084 case `"$ac_path_EGREP" --version 2>&1` in
6085 *GNU*)
6086   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6087 *)
6088   ac_count=0
6089   $as_echo_n 0123456789 >"conftest.in"
6090   while :
6091   do
6092     cat "conftest.in" "conftest.in" >"conftest.tmp"
6093     mv "conftest.tmp" "conftest.in"
6094     cp "conftest.in" "conftest.nl"
6095     $as_echo 'EGREP' >> "conftest.nl"
6096     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6097     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6098     as_fn_arith $ac_count + 1 && ac_count=$as_val
6099     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6100       # Best one so far, save it but keep looking for a better one
6101       ac_cv_path_EGREP="$ac_path_EGREP"
6102       ac_path_EGREP_max=$ac_count
6103     fi
6104     # 10*(2^10) chars as input seems more than enough
6105     test $ac_count -gt 10 && break
6106   done
6107   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6108 esac
6109
6110       $ac_path_EGREP_found && break 3
6111     done
6112   done
6113   done
6114 IFS=$as_save_IFS
6115   if test -z "$ac_cv_path_EGREP"; then
6116     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6117   fi
6118 else
6119   ac_cv_path_EGREP=$EGREP
6120 fi
6121
6122    fi
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6125 $as_echo "$ac_cv_path_EGREP" >&6; }
6126  EGREP="$ac_cv_path_EGREP"
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6130 $as_echo_n "checking for ANSI C header files... " >&6; }
6131 if ${ac_cv_header_stdc+:} false; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h.  */
6136 #include <stdlib.h>
6137 #include <stdarg.h>
6138 #include <string.h>
6139 #include <float.h>
6140
6141 int
6142 main ()
6143 {
6144
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 if ac_fn_c_try_compile "$LINENO"; then :
6150   ac_cv_header_stdc=yes
6151 else
6152   ac_cv_header_stdc=no
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155
6156 if test $ac_cv_header_stdc = yes; then
6157   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h.  */
6160 #include <string.h>
6161
6162 _ACEOF
6163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6164   $EGREP "memchr" >/dev/null 2>&1; then :
6165
6166 else
6167   ac_cv_header_stdc=no
6168 fi
6169 rm -f conftest*
6170
6171 fi
6172
6173 if test $ac_cv_header_stdc = yes; then
6174   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h.  */
6177 #include <stdlib.h>
6178
6179 _ACEOF
6180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181   $EGREP "free" >/dev/null 2>&1; then :
6182
6183 else
6184   ac_cv_header_stdc=no
6185 fi
6186 rm -f conftest*
6187
6188 fi
6189
6190 if test $ac_cv_header_stdc = yes; then
6191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6192   if test "$cross_compiling" = yes; then :
6193   :
6194 else
6195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h.  */
6197 #include <ctype.h>
6198 #include <stdlib.h>
6199 #if ((' ' & 0x0FF) == 0x020)
6200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6202 #else
6203 # define ISLOWER(c) \
6204                    (('a' <= (c) && (c) <= 'i') \
6205                      || ('j' <= (c) && (c) <= 'r') \
6206                      || ('s' <= (c) && (c) <= 'z'))
6207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6208 #endif
6209
6210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6211 int
6212 main ()
6213 {
6214   int i;
6215   for (i = 0; i < 256; i++)
6216     if (XOR (islower (i), ISLOWER (i))
6217         || toupper (i) != TOUPPER (i))
6218       return 2;
6219   return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_run "$LINENO"; then :
6223
6224 else
6225   ac_cv_header_stdc=no
6226 fi
6227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6228   conftest.$ac_objext conftest.beam conftest.$ac_ext
6229 fi
6230
6231 fi
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6234 $as_echo "$ac_cv_header_stdc" >&6; }
6235 if test $ac_cv_header_stdc = yes; then
6236
6237 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6238
6239 fi
6240
6241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6243                   inttypes.h stdint.h unistd.h
6244 do :
6245   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6246 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6247 "
6248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6249   cat >>confdefs.h <<_ACEOF
6250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6251 _ACEOF
6252
6253 fi
6254
6255 done
6256
6257
6258 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6259 if test "x$ac_cv_header_features_h" = xyes; then :
6260
6261 fi
6262
6263
6264
6265 if test x$ac_cv_header_features_h = xyes; then
6266   rm -f conftest.$ac_ext
6267   cat <<_ACEOF >conftest.$ac_ext
6268 #include <features.h>
6269 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6270 glibc version is: __GLIBC__ __GLIBC_MINOR__
6271 #endif
6272 _ACEOF
6273   GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6274 fi
6275
6276 # adam: hack: gcc5 is doing CPP differently so that the SED does not work
6277 # anymore
6278 test -z "${GLIBC_VERSION}" && GLIBC_VERSION=2.13
6279 # adam end
6280
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h.  */
6283
6284 #include <standards.h>
6285 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6286   AIX5_LIBC
6287 #endif
6288
6289 _ACEOF
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291   $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6292   GLIBC_VERSION="aix5"
6293 fi
6294 rm -f conftest*
6295
6296
6297 # not really a version check
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h.  */
6300
6301 #include <sys/cdefs.h>
6302 #if defined(__DARWIN_VERS_1050)
6303   DARWIN_LIBC
6304 #endif
6305
6306 _ACEOF
6307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308   $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6309   GLIBC_VERSION="darwin"
6310 fi
6311 rm -f conftest*
6312
6313
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6315 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6316
6317 case "${GLIBC_VERSION}" in
6318      2.2)
6319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6320 $as_echo "2.2 family" >&6; }
6321
6322 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6323
6324         DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6325         DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6326         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6327         ;;
6328
6329      2.3)
6330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6331 $as_echo "2.3 family" >&6; }
6332
6333 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6334
6335         DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6336         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6337         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6338         ;;
6339
6340      2.4)
6341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6342 $as_echo "2.4 family" >&6; }
6343
6344 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6345
6346         DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6347         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6348         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6349         ;;
6350
6351      2.5)
6352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6353 $as_echo "2.5 family" >&6; }
6354
6355 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6356
6357         DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6358         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6359         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6360         ;;
6361      2.6)
6362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6363 $as_echo "2.6 family" >&6; }
6364
6365 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6366
6367         DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6368         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6369         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6370         ;;
6371      2.7)
6372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6373 $as_echo "2.7 family" >&6; }
6374
6375 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6376
6377         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6378         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6379         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6380         ;;
6381      2.8)
6382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6383 $as_echo "2.8 family" >&6; }
6384
6385 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6386
6387         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6388         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6389         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6390         ;;
6391      2.9)
6392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6393 $as_echo "2.9 family" >&6; }
6394
6395 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6396
6397         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6398         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6399         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6400         ;;
6401      2.10)
6402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6403 $as_echo "2.10 family" >&6; }
6404
6405 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6406
6407         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6408         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6409         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6410         ;;
6411      2.11)
6412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6413 $as_echo "2.11 family" >&6; }
6414
6415 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6416
6417         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6418         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6419         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6420         ;;
6421      2.12)
6422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6423 $as_echo "2.12 family" >&6; }
6424
6425 $as_echo "#define GLIBC_2_12 1" >>confdefs.h
6426
6427         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6428         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6429         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6430         ;;
6431      2.13)
6432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.13 family" >&5
6433 $as_echo "2.13 family" >&6; }
6434
6435 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6436
6437         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6438         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6439         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6440         ;;
6441      2.14)
6442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.14 family" >&5
6443 $as_echo "2.14 family" >&6; }
6444
6445 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6446
6447         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6448         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6449         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6450         ;;
6451      2.15)
6452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.15 family" >&5
6453 $as_echo "2.15 family" >&6; }
6454
6455 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6456
6457         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6458         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6459         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6460         ;;
6461      2.16)
6462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.16 family" >&5
6463 $as_echo "2.16 family" >&6; }
6464
6465 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6466
6467         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6468         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6469         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6470         ;;
6471      2.17)
6472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.17 family" >&5
6473 $as_echo "2.17 family" >&6; }
6474
6475 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6476
6477         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6478         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6479         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6480         ;;
6481      2.18)
6482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.18 family" >&5
6483 $as_echo "2.18 family" >&6; }
6484
6485 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6486
6487         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6488         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6489         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6490         ;;
6491      2.19)
6492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.19 family" >&5
6493 $as_echo "2.19 family" >&6; }
6494
6495 $as_echo "#define GLIBC_2_13 1" >>confdefs.h
6496
6497         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6498         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6499         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6500         ;;
6501      aix5)
6502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6503 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6504
6505 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6506
6507         DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6508         ;;
6509      darwin)
6510         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6511 $as_echo "Darwin" >&6; }
6512
6513 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6514
6515         # DEFAULT_SUPP set by kernel version check above.
6516         ;;
6517
6518      *)
6519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6520 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6521         as_fn_error $? "Valgrind requires glibc version 2.2 - 2.13" "$LINENO" 5
6522         as_fn_error $? "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6523         as_fn_error $? "or Darwin libc" "$LINENO" 5
6524         ;;
6525 esac
6526
6527
6528
6529
6530 # Add default suppressions for the X client libraries.  Make no
6531 # attempt to detect whether such libraries are installed on the
6532 # build machine (or even if any X facilities are present); just
6533 # add the suppressions antidisirregardless.
6534 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6535 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6536
6537 # Add glibc and X11 suppressions for exp-sgcheck
6538 DEFAULT_SUPP="exp-sgcheck.supp ${DEFAULT_SUPP}"
6539
6540
6541 #----------------------------------------------------------------------------
6542 # Checking for various library functions and other definitions
6543 #----------------------------------------------------------------------------
6544
6545 # Check for CLOCK_MONOTONIC
6546
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6548 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6549
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h.  */
6552
6553 #include <time.h>
6554
6555 int
6556 main ()
6557 {
6558
6559   struct timespec t;
6560   clock_gettime(CLOCK_MONOTONIC, &t);
6561   return 0;
6562
6563   ;
6564   return 0;
6565 }
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6570 $as_echo "yes" >&6; }
6571
6572 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6573
6574
6575 else
6576
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582
6583
6584 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6587 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6588
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h.  */
6591
6592 #define _GNU_SOURCE
6593 #include <pthread.h>
6594
6595 int
6596 main ()
6597 {
6598
6599   return (PTHREAD_MUTEX_ADAPTIVE_NP);
6600
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_compile "$LINENO"; then :
6606
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6608 $as_echo "yes" >&6; }
6609
6610 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6611
6612
6613 else
6614
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6617
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620
6621
6622 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6623
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6625 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6626
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h.  */
6629
6630 #define _GNU_SOURCE
6631 #include <pthread.h>
6632
6633 int
6634 main ()
6635 {
6636
6637   return (PTHREAD_MUTEX_ERRORCHECK_NP);
6638
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 if ac_fn_c_try_compile "$LINENO"; then :
6644
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6646 $as_echo "yes" >&6; }
6647
6648 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6649
6650
6651 else
6652
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6655
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658
6659
6660 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6663 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6664
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h.  */
6667
6668 #define _GNU_SOURCE
6669 #include <pthread.h>
6670
6671 int
6672 main ()
6673 {
6674
6675   return (PTHREAD_MUTEX_RECURSIVE_NP);
6676
6677   ;
6678   return 0;
6679 }
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6684 $as_echo "yes" >&6; }
6685
6686 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6687
6688
6689 else
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6693
6694 fi
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696
6697
6698 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6701 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6702
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h.  */
6705
6706 #define _GNU_SOURCE
6707 #include <pthread.h>
6708
6709 int
6710 main ()
6711 {
6712
6713   pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6714   return 0;
6715
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 if ac_fn_c_try_compile "$LINENO"; then :
6721
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6723 $as_echo "yes" >&6; }
6724
6725 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6726
6727
6728 else
6729
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735
6736
6737 # Check whether pthread_mutex_t has a member called __m_kind.
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6740 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6741
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h.  */
6744
6745   #include <pthread.h>
6746
6747 int
6748 main ()
6749 {
6750
6751   pthread_mutex_t m;
6752   return m.__m_kind;
6753
6754   ;
6755   return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_compile "$LINENO"; then :
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6761 $as_echo "yes" >&6; }
6762
6763 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6764
6765
6766 else
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6770
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773
6774
6775 # Check whether pthread_mutex_t has a member called __data.__kind.
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6778 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6779
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h.  */
6782
6783 #include <pthread.h>
6784
6785 int
6786 main ()
6787 {
6788
6789   pthread_mutex_t m;
6790   return m.__data.__kind;
6791
6792   ;
6793   return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6799 $as_echo "yes" >&6; }
6800
6801 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6802
6803
6804 else
6805
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811
6812
6813 # does this compiler support -maltivec and does it have the include file
6814 # <altivec.h> ?
6815
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6817 $as_echo_n "checking for Altivec... " >&6; }
6818
6819 safe_CFLAGS=$CFLAGS
6820 CFLAGS="-maltivec"
6821
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h.  */
6824
6825 #include <altivec.h>
6826
6827 int
6828 main ()
6829 {
6830
6831   vector unsigned int v;
6832
6833   ;
6834   return 0;
6835 }
6836 _ACEOF
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838
6839 ac_have_altivec=yes
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841 $as_echo "yes" >&6; }
6842
6843 $as_echo "#define HAS_ALTIVEC 1" >>confdefs.h
6844
6845
6846 else
6847
6848 ac_have_altivec=no
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 CFLAGS=$safe_CFLAGS
6855
6856  if test x$ac_have_altivec = xyes; then
6857   HAS_ALTIVEC_TRUE=
6858   HAS_ALTIVEC_FALSE='#'
6859 else
6860   HAS_ALTIVEC_TRUE='#'
6861   HAS_ALTIVEC_FALSE=
6862 fi
6863
6864
6865
6866 # Check that both: the compiler supports -mvsx and that the assembler
6867 # understands VSX instructions.  If either of those doesn't work,
6868 # conclude that we can't do VSX.  NOTE: basically this is a kludge
6869 # in that it conflates two things that should be separate -- whether
6870 # the compiler understands the flag vs whether the assembler
6871 # understands the opcodes.  This really ought to be cleaned up
6872 # and done properly, like it is for x86/x86_64.
6873
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX" >&5
6875 $as_echo_n "checking for VSX... " >&6; }
6876
6877 safe_CFLAGS=$CFLAGS
6878 CFLAGS="-mvsx"
6879
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h.  */
6882
6883 #include <altivec.h>
6884
6885 int
6886 main ()
6887 {
6888
6889   vector unsigned int v;
6890   __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc");
6891
6892   ;
6893   return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897
6898 ac_have_vsx=yes
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6901
6902 else
6903
6904 ac_have_vsx=no
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 CFLAGS=$safe_CFLAGS
6911
6912  if test x$ac_have_vsx = xyes; then
6913   HAS_VSX_TRUE=
6914   HAS_VSX_FALSE='#'
6915 else
6916   HAS_VSX_TRUE='#'
6917   HAS_VSX_FALSE=
6918 fi
6919
6920
6921
6922 # Check for pthread_create@GLIBC2.0
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6924 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6925
6926 safe_CFLAGS=$CFLAGS
6927 CFLAGS="-lpthread"
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930
6931 extern int pthread_create_glibc_2_0(void*, const void*,
6932                                     void *(*)(void*), void*);
6933 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6934
6935 int
6936 main ()
6937 {
6938
6939 #ifdef __powerpc__
6940 /*
6941  * Apparently on PowerPC linking this program succeeds and generates an
6942  * executable with the undefined symbol pthread_create@GLIBC_2.0.
6943  */
6944 #error This test does not work properly on PowerPC.
6945 #else
6946   pthread_create_glibc_2_0(0, 0, 0, 0);
6947 #endif
6948   return 0;
6949
6950   ;
6951   return 0;
6952 }
6953 _ACEOF
6954 if ac_fn_c_try_link "$LINENO"; then :
6955
6956 ac_have_pthread_create_glibc_2_0=yes
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6958 $as_echo "yes" >&6; }
6959
6960 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6961
6962
6963 else
6964
6965 ac_have_pthread_create_glibc_2_0=no
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6968
6969 fi
6970 rm -f core conftest.err conftest.$ac_objext \
6971     conftest$ac_exeext conftest.$ac_ext
6972 CFLAGS=$safe_CFLAGS
6973
6974  if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6975   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6976   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6977 else
6978   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6979   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6980 fi
6981
6982
6983
6984 # Check for eventfd_t, eventfd() and eventfd_read()
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6986 $as_echo_n "checking for eventfd()... " >&6; }
6987
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h.  */
6990
6991 #include <sys/eventfd.h>
6992
6993 int
6994 main ()
6995 {
6996
6997   eventfd_t ev;
6998   int fd;
6999
7000   fd = eventfd(5, 0);
7001   eventfd_read(fd, &ev);
7002   return 0;
7003
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"; then :
7009
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7011 $as_echo "yes" >&6; }
7012
7013 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
7014
7015
7016 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
7017
7018
7019 else
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023
7024 fi
7025 rm -f core conftest.err conftest.$ac_objext \
7026     conftest$ac_exeext conftest.$ac_ext
7027
7028
7029 #----------------------------------------------------------------------------
7030 # Checking for supported compiler flags.
7031 #----------------------------------------------------------------------------
7032
7033 # does this compiler support -m32 ?
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
7035 $as_echo_n "checking if gcc accepts -m32... " >&6; }
7036
7037 safe_CFLAGS=$CFLAGS
7038 CFLAGS="-m32"
7039
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h.  */
7042
7043 int
7044 main ()
7045 {
7046
7047   return 0;
7048
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054
7055 FLAG_M32="-m32"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7057 $as_echo "yes" >&6; }
7058
7059 else
7060
7061 FLAG_M32=""
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 CFLAGS=$safe_CFLAGS
7068
7069
7070
7071
7072 # does this compiler support -maix32 ?
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
7074 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
7075
7076 safe_CFLAGS=$CFLAGS
7077 CFLAGS="-maix32"
7078
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h.  */
7081
7082 int
7083 main ()
7084 {
7085
7086   return 0;
7087
7088   ;
7089   return 0;
7090 }
7091 _ACEOF
7092 if ac_fn_c_try_compile "$LINENO"; then :
7093
7094 FLAG_MAIX32="-maix32"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7096 $as_echo "yes" >&6; }
7097
7098 else
7099
7100 FLAG_MAIX32=""
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 CFLAGS=$safe_CFLAGS
7107
7108
7109
7110
7111 # does this compiler support -m64 ?
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
7113 $as_echo_n "checking if gcc accepts -m64... " >&6; }
7114
7115 safe_CFLAGS=$CFLAGS
7116 CFLAGS="-m64"
7117
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h.  */
7120
7121 int
7122 main ()
7123 {
7124
7125   return 0;
7126
7127   ;
7128   return 0;
7129 }
7130 _ACEOF
7131 if ac_fn_c_try_compile "$LINENO"; then :
7132
7133 FLAG_M64="-m64"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7135 $as_echo "yes" >&6; }
7136
7137 else
7138
7139 FLAG_M64=""
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142
7143 fi
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 CFLAGS=$safe_CFLAGS
7146
7147
7148
7149
7150 # does this compiler support -maix64 ?
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
7152 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
7153
7154 safe_CFLAGS=$CFLAGS
7155 CFLAGS="-maix64"
7156
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h.  */
7159
7160 int
7161 main ()
7162 {
7163
7164   return 0;
7165
7166   ;
7167   return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171
7172 FLAG_MAIX64="-maix64"
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174 $as_echo "yes" >&6; }
7175
7176 else
7177
7178 FLAG_MAIX64=""
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7181
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 CFLAGS=$safe_CFLAGS
7185
7186
7187
7188
7189 # does this compiler support -mmmx ?
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
7191 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
7192
7193 safe_CFLAGS=$CFLAGS
7194 CFLAGS="-mmmx"
7195
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h.  */
7198
7199 int
7200 main ()
7201 {
7202
7203   return 0;
7204
7205   ;
7206   return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210
7211 FLAG_MMMX="-mmmx"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7213 $as_echo "yes" >&6; }
7214
7215 else
7216
7217 FLAG_MMMX=""
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 CFLAGS=$safe_CFLAGS
7224
7225
7226
7227
7228 # does this compiler support -msse ?
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7230 $as_echo_n "checking if gcc accepts -msse... " >&6; }
7231
7232 safe_CFLAGS=$CFLAGS
7233 CFLAGS="-msse"
7234
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h.  */
7237
7238 int
7239 main ()
7240 {
7241
7242   return 0;
7243
7244   ;
7245   return 0;
7246 }
7247 _ACEOF
7248 if ac_fn_c_try_compile "$LINENO"; then :
7249
7250 FLAG_MSSE="-msse"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7252 $as_echo "yes" >&6; }
7253
7254 else
7255
7256 FLAG_MSSE=""
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 CFLAGS=$safe_CFLAGS
7263
7264
7265
7266
7267 # does this compiler support -mpreferred-stack-boundary=2 ?
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7269 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7270
7271 safe_CFLAGS=$CFLAGS
7272 CFLAGS="-mpreferred-stack-boundary=2"
7273
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h.  */
7276
7277 int
7278 main ()
7279 {
7280
7281   return 0;
7282
7283   ;
7284   return 0;
7285 }
7286 _ACEOF
7287 if ac_fn_c_try_compile "$LINENO"; then :
7288
7289 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7291 $as_echo "yes" >&6; }
7292
7293 else
7294
7295 PREFERRED_STACK_BOUNDARY=""
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 CFLAGS=$safe_CFLAGS
7302
7303
7304
7305
7306 # does this compiler support -Wno-pointer-sign ?
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7308 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7309
7310 safe_CFLAGS=$CFLAGS
7311 CFLAGS="-Wno-pointer-sign"
7312
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h.  */
7315
7316 int
7317 main ()
7318 {
7319
7320   return 0;
7321
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 if ac_fn_c_try_compile "$LINENO"; then :
7327
7328 no_pointer_sign=yes
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7330 $as_echo "yes" >&6; }
7331
7332 else
7333
7334 no_pointer_sign=no
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 CFLAGS=$safe_CFLAGS
7341
7342 if test x$no_pointer_sign = xyes; then
7343   CFLAGS="$CFLAGS -Wno-pointer-sign"
7344 fi
7345
7346
7347 # does this compiler support -Wno-empty-body ?
7348
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7350 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7351
7352 safe_CFLAGS=$CFLAGS
7353 CFLAGS="-Wno-empty-body"
7354
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h.  */
7357
7358 int
7359 main ()
7360 {
7361
7362   return 0;
7363
7364   ;
7365   return 0;
7366 }
7367 _ACEOF
7368 if ac_fn_c_try_compile "$LINENO"; then :
7369
7370 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7371
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7373 $as_echo "yes" >&6; }
7374
7375 else
7376
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 CFLAGS=$safe_CFLAGS
7384
7385
7386 # does this compiler support -Wno-format-zero-length ?
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7389 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7390
7391 safe_CFLAGS=$CFLAGS
7392 CFLAGS="-Wno-format-zero-length"
7393
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h.  */
7396
7397 int
7398 main ()
7399 {
7400
7401   return 0;
7402
7403   ;
7404   return 0;
7405 }
7406 _ACEOF
7407 if ac_fn_c_try_compile "$LINENO"; then :
7408
7409 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7412 $as_echo "yes" >&6; }
7413
7414 else
7415
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419
7420 fi
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 CFLAGS=$safe_CFLAGS
7423
7424
7425 # does this compiler support -Wno-nonnull ?
7426
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-nonnull" >&5
7428 $as_echo_n "checking if gcc accepts -Wno-nonnull... " >&6; }
7429
7430 safe_CFLAGS=$CFLAGS
7431 CFLAGS="-Wno-nonnull"
7432
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h.  */
7435
7436 int
7437 main ()
7438 {
7439
7440   return 0;
7441
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_compile "$LINENO"; then :
7447
7448 FLAG_W_NO_NONNULL=-Wno-nonnull
7449
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451 $as_echo "yes" >&6; }
7452
7453 else
7454
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 CFLAGS=$safe_CFLAGS
7462
7463
7464 # does this compiler support -Wno-overflow ?
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-overflow" >&5
7467 $as_echo_n "checking if gcc accepts -Wno-overflow... " >&6; }
7468
7469 safe_CFLAGS=$CFLAGS
7470 CFLAGS="-Wno-overflow"
7471
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h.  */
7474
7475 int
7476 main ()
7477 {
7478
7479   return 0;
7480
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486
7487 FLAG_W_NO_OVERFLOW=-Wno-overflow
7488
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7490 $as_echo "yes" >&6; }
7491
7492 else
7493
7494
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 CFLAGS=$safe_CFLAGS
7501
7502
7503 # does this compiler support -Wno-uninitialized ?
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7506 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7507
7508 safe_CFLAGS=$CFLAGS
7509 CFLAGS="-Wno-uninitialized"
7510
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513
7514 int
7515 main ()
7516 {
7517
7518   return 0;
7519
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525
7526 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7527
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7529 $as_echo "yes" >&6; }
7530
7531 else
7532
7533
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 CFLAGS=$safe_CFLAGS
7540
7541
7542 # does this compiler support -Wextra or the older -W ?
7543
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7545 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7546
7547 safe_CFLAGS=$CFLAGS
7548 CFLAGS="-Wextra"
7549
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h.  */
7552
7553 int
7554 main ()
7555 {
7556
7557   return 0;
7558
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 if ac_fn_c_try_compile "$LINENO"; then :
7564
7565 FLAG_W_EXTRA=-Wextra
7566
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7568 $as_echo "-Wextra" >&6; }
7569
7570 else
7571
7572   CFLAGS="-W"
7573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h.  */
7575
7576 int
7577 main ()
7578 {
7579
7580     return 0;
7581
7582   ;
7583   return 0;
7584 }
7585 _ACEOF
7586 if ac_fn_c_try_compile "$LINENO"; then :
7587
7588   FLAG_W_EXTRA=-W
7589
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7591 $as_echo "-W" >&6; }
7592
7593 else
7594
7595
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7597 $as_echo "not supported" >&6; }
7598
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 CFLAGS=$safe_CFLAGS
7605
7606
7607 # does this compiler support -fno-stack-protector ?
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7609 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7610
7611 safe_CFLAGS=$CFLAGS
7612 CFLAGS="-fno-stack-protector"
7613
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h.  */
7616
7617 int
7618 main ()
7619 {
7620
7621   return 0;
7622
7623   ;
7624   return 0;
7625 }
7626 _ACEOF
7627 if ac_fn_c_try_compile "$LINENO"; then :
7628
7629 no_stack_protector=yes
7630 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7632 $as_echo "yes" >&6; }
7633
7634 else
7635
7636 no_stack_protector=no
7637 FLAG_FNO_STACK_PROTECTOR=""
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 CFLAGS=$safe_CFLAGS
7644
7645
7646
7647 if test x$no_stack_protector = xyes; then
7648   CFLAGS="$CFLAGS -fno-stack-protector"
7649 fi
7650
7651
7652 # does this compiler support --param inline-unit-growth=... ?
7653
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7655 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7656
7657 safe_CFLAGS=$CFLAGS
7658 CFLAGS="--param inline-unit-growth=900"
7659
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h.  */
7662
7663 int
7664 main ()
7665 {
7666
7667   return 0;
7668
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_compile "$LINENO"; then :
7674
7675 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7676
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7678 $as_echo "yes" >&6; }
7679
7680 else
7681
7682 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7683
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 CFLAGS=$safe_CFLAGS
7690
7691
7692 # does the linker support -Wl,--build-id=none ?  Note, it's
7693 # important that we test indirectly via whichever C compiler
7694 # is selected, rather than testing /usr/bin/ld or whatever
7695 # directly.
7696
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7698 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7699
7700 safe_CFLAGS=$CFLAGS
7701 CFLAGS="-Wl,--build-id=none"
7702
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h.  */
7705
7706 int
7707 main ()
7708 {
7709 return 0;
7710   ;
7711   return 0;
7712 }
7713 _ACEOF
7714 if ac_fn_c_try_link "$LINENO"; then :
7715
7716   FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7717
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7719 $as_echo "yes" >&6; }
7720
7721 else
7722
7723   FLAG_NO_BUILD_ID=""
7724
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext \
7730     conftest$ac_exeext conftest.$ac_ext
7731 CFLAGS=$safe_CFLAGS
7732
7733
7734 # does the ppc assembler support "mtocrf" et al?
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7736 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7737
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h.  */
7740
7741 int
7742 main ()
7743 {
7744
7745 __asm__ __volatile__("mtocrf 4,0");
7746 __asm__ __volatile__("mfocrf 0,4");
7747
7748   ;
7749   return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753
7754 ac_have_as_ppc_mftocrf=yes
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7756 $as_echo "yes" >&6; }
7757
7758 else
7759
7760 ac_have_as_ppc_mftocrf=no
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7767
7768 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7769
7770 fi
7771
7772
7773 CFLAGS=$safe_CFLAGS
7774
7775 # does the x86/amd64 assembler understand SSE3 instructions?
7776 # Note, this doesn't generate a C-level symbol.  It generates a
7777 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7779 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7780
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h.  */
7783
7784 int
7785 main ()
7786 {
7787
7788   do { long long int x;
7789      __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7790   while (0)
7791
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797
7798 ac_have_as_sse3=yes
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7800 $as_echo "yes" >&6; }
7801
7802 else
7803
7804 ac_have_as_sse3=no
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810
7811  if test x$ac_have_as_sse3 = xyes; then
7812   BUILD_SSE3_TESTS_TRUE=
7813   BUILD_SSE3_TESTS_FALSE='#'
7814 else
7815   BUILD_SSE3_TESTS_TRUE='#'
7816   BUILD_SSE3_TESTS_FALSE=
7817 fi
7818
7819
7820
7821 # Ditto for SSSE3 instructions (note extra S)
7822 # Note, this doesn't generate a C-level symbol.  It generates a
7823 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7825 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7826
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h.  */
7829
7830 int
7831 main ()
7832 {
7833
7834   do { long long int x;
7835    __asm__ __volatile__(
7836       "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7837   while (0)
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844
7845 ac_have_as_ssse3=yes
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7848
7849 else
7850
7851 ac_have_as_ssse3=no
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857
7858  if test x$ac_have_as_ssse3 = xyes; then
7859   BUILD_SSSE3_TESTS_TRUE=
7860   BUILD_SSSE3_TESTS_FALSE='#'
7861 else
7862   BUILD_SSSE3_TESTS_TRUE='#'
7863   BUILD_SSSE3_TESTS_FALSE=
7864 fi
7865
7866
7867
7868 # does the x86/amd64 assembler understand the PCLMULQDQ instruction?
7869 # Note, this doesn't generate a C-level symbol.  It generates a
7870 # automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
7872 $as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h.  */
7875
7876 int
7877 main ()
7878 {
7879
7880   do {
7881    __asm__ __volatile__(
7882       "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
7883   while (0)
7884
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_compile "$LINENO"; then :
7890
7891 ac_have_as_pclmulqdq=yes
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893 $as_echo "yes" >&6; }
7894
7895 else
7896
7897 ac_have_as_pclmulqdq=no
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903
7904  if test x$ac_have_as_pclmulqdq = xyes; then
7905   BUILD_PCLMULQDQ_TESTS_TRUE=
7906   BUILD_PCLMULQDQ_TESTS_FALSE='#'
7907 else
7908   BUILD_PCLMULQDQ_TESTS_TRUE='#'
7909   BUILD_PCLMULQDQ_TESTS_FALSE=
7910 fi
7911
7912
7913
7914 # does the x86/amd64 assembler understand the LZCNT instruction?
7915 # Note, this doesn't generate a C-level symbol.  It generates a
7916 # automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
7918 $as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
7919
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h.  */
7922
7923 int
7924 main ()
7925 {
7926
7927   do {
7928       __asm__ __volatile__("lzcnt %rax,%rax");
7929   } while (0)
7930
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_compile "$LINENO"; then :
7936
7937   ac_have_as_lzcnt=yes
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7939 $as_echo "yes" >&6; }
7940
7941 else
7942
7943   ac_have_as_lzcnt=no
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949
7950  if test x$ac_have_as_lzcnt = xyes; then
7951   BUILD_LZCNT_TESTS_TRUE=
7952   BUILD_LZCNT_TESTS_FALSE='#'
7953 else
7954   BUILD_LZCNT_TESTS_TRUE='#'
7955   BUILD_LZCNT_TESTS_FALSE=
7956 fi
7957
7958
7959
7960 # does the x86/amd64 assembler understand SSE 4.2 instructions?
7961 # Note, this doesn't generate a C-level symbol.  It generates a
7962 # automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5
7964 $as_echo_n "checking if x86/amd64 assembler speaks SSE4.2... " >&6; }
7965
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h.  */
7968
7969 int
7970 main ()
7971 {
7972
7973   do { long long int x;
7974    __asm__ __volatile__(
7975       "crc32q %%r15,%%r15" : : : "r15" ); }
7976   while (0)
7977
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_compile "$LINENO"; then :
7983
7984 ac_have_as_sse42=yes
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7986 $as_echo "yes" >&6; }
7987
7988 else
7989
7990 ac_have_as_sse42=no
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996
7997  if test x$ac_have_as_sse42 = xyes; then
7998   BUILD_SSE42_TESTS_TRUE=
7999   BUILD_SSE42_TESTS_FALSE='#'
8000 else
8001   BUILD_SSE42_TESTS_TRUE='#'
8002   BUILD_SSE42_TESTS_FALSE=
8003 fi
8004
8005
8006
8007 # XXX JRS 2010 Oct 13: what is this for?  For sure, we don't need this
8008 # when building the tool executables.  I think we should get rid of it.
8009 #
8010 # Check for TLS support in the compiler and linker
8011 if test "x${cross_compiling}" = "xno"; then
8012 # Native compilation: check whether running a program using TLS succeeds.
8013 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
8014 # succeeds but running programs using TLS fails.
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
8016 $as_echo_n "checking for TLS support... " >&6; }
8017 if ${vg_cv_tls+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   # Check whether --enable-tls was given.
8021 if test "${enable_tls+set}" = set; then :
8022   enableval=$enable_tls; vg_cv_tls=$enableval
8023 else
8024   if test "$cross_compiling" = yes; then :
8025   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8027 as_fn_error $? "cannot run test program while cross compiling
8028 See \`config.log' for more details" "$LINENO" 5; }
8029 else
8030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h.  */
8032 static __thread int foo;
8033 int
8034 main ()
8035 {
8036 return foo;
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_run "$LINENO"; then :
8042   vg_cv_tls=yes
8043 else
8044   vg_cv_tls=no
8045 fi
8046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8047   conftest.$ac_objext conftest.beam conftest.$ac_ext
8048 fi
8049
8050 fi
8051
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8054 $as_echo "$vg_cv_tls" >&6; }
8055 else
8056 # Cross-compiling: check whether linking a program using TLS succeeds.
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
8058 $as_echo_n "checking for TLS support... " >&6; }
8059 if ${vg_cv_tls+:} false; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   # Check whether --enable-tls was given.
8063 if test "${enable_tls+set}" = set; then :
8064   enableval=$enable_tls; vg_cv_tls=$enableval
8065 else
8066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h.  */
8068 static __thread int foo;
8069 int
8070 main ()
8071 {
8072 return foo;
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 if ac_fn_c_try_link "$LINENO"; then :
8078   vg_cv_tls=yes
8079 else
8080   vg_cv_tls=no
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext \
8083     conftest$ac_exeext conftest.$ac_ext
8084 fi
8085
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
8088 $as_echo "$vg_cv_tls" >&6; }
8089 fi
8090
8091 if test "$vg_cv_tls" = yes; then
8092
8093 $as_echo "#define HAVE_TLS 1" >>confdefs.h
8094
8095 fi
8096
8097
8098 #----------------------------------------------------------------------------
8099 # Checks for C header files.
8100 #----------------------------------------------------------------------------
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8103 $as_echo_n "checking for ANSI C header files... " >&6; }
8104 if ${ac_cv_header_stdc+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h.  */
8109 #include <stdlib.h>
8110 #include <stdarg.h>
8111 #include <string.h>
8112 #include <float.h>
8113
8114 int
8115 main ()
8116 {
8117
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_compile "$LINENO"; then :
8123   ac_cv_header_stdc=yes
8124 else
8125   ac_cv_header_stdc=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128
8129 if test $ac_cv_header_stdc = yes; then
8130   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h.  */
8133 #include <string.h>
8134
8135 _ACEOF
8136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8137   $EGREP "memchr" >/dev/null 2>&1; then :
8138
8139 else
8140   ac_cv_header_stdc=no
8141 fi
8142 rm -f conftest*
8143
8144 fi
8145
8146 if test $ac_cv_header_stdc = yes; then
8147   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h.  */
8150 #include <stdlib.h>
8151
8152 _ACEOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154   $EGREP "free" >/dev/null 2>&1; then :
8155
8156 else
8157   ac_cv_header_stdc=no
8158 fi
8159 rm -f conftest*
8160
8161 fi
8162
8163 if test $ac_cv_header_stdc = yes; then
8164   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8165   if test "$cross_compiling" = yes; then :
8166   :
8167 else
8168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h.  */
8170 #include <ctype.h>
8171 #include <stdlib.h>
8172 #if ((' ' & 0x0FF) == 0x020)
8173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8175 #else
8176 # define ISLOWER(c) \
8177                    (('a' <= (c) && (c) <= 'i') \
8178                      || ('j' <= (c) && (c) <= 'r') \
8179                      || ('s' <= (c) && (c) <= 'z'))
8180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8181 #endif
8182
8183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8184 int
8185 main ()
8186 {
8187   int i;
8188   for (i = 0; i < 256; i++)
8189     if (XOR (islower (i), ISLOWER (i))
8190         || toupper (i) != TOUPPER (i))
8191       return 2;
8192   return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_run "$LINENO"; then :
8196
8197 else
8198   ac_cv_header_stdc=no
8199 fi
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8201   conftest.$ac_objext conftest.beam conftest.$ac_ext
8202 fi
8203
8204 fi
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8207 $as_echo "$ac_cv_header_stdc" >&6; }
8208 if test $ac_cv_header_stdc = yes; then
8209
8210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8211
8212 fi
8213
8214 for ac_header in        \
8215         asm/unistd.h     \
8216         endian.h         \
8217         mqueue.h         \
8218         sys/endian.h     \
8219         sys/epoll.h      \
8220         sys/eventfd.h    \
8221         sys/klog.h       \
8222         sys/poll.h       \
8223         sys/signal.h     \
8224         sys/signalfd.h   \
8225         sys/syscall.h    \
8226         sys/time.h       \
8227         sys/types.h      \
8228
8229 do :
8230   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8232 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8233   cat >>confdefs.h <<_ACEOF
8234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8235 _ACEOF
8236
8237 fi
8238
8239 done
8240
8241
8242 #----------------------------------------------------------------------------
8243 # Checks for typedefs, structures, and compiler characteristics.
8244 #----------------------------------------------------------------------------
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8246 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8247 if ${ac_cv_type_uid_t+:} false; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h.  */
8252 #include <sys/types.h>
8253
8254 _ACEOF
8255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8256   $EGREP "uid_t" >/dev/null 2>&1; then :
8257   ac_cv_type_uid_t=yes
8258 else
8259   ac_cv_type_uid_t=no
8260 fi
8261 rm -f conftest*
8262
8263 fi
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8265 $as_echo "$ac_cv_type_uid_t" >&6; }
8266 if test $ac_cv_type_uid_t = no; then
8267
8268 $as_echo "#define uid_t int" >>confdefs.h
8269
8270
8271 $as_echo "#define gid_t int" >>confdefs.h
8272
8273 fi
8274
8275 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8276 if test "x$ac_cv_type_off_t" = xyes; then :
8277
8278 else
8279
8280 cat >>confdefs.h <<_ACEOF
8281 #define off_t long int
8282 _ACEOF
8283
8284 fi
8285
8286 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8287 if test "x$ac_cv_type_size_t" = xyes; then :
8288
8289 else
8290
8291 cat >>confdefs.h <<_ACEOF
8292 #define size_t unsigned int
8293 _ACEOF
8294
8295 fi
8296
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8298 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8299 if ${ac_cv_header_time+:} false; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304 #include <sys/types.h>
8305 #include <sys/time.h>
8306 #include <time.h>
8307
8308 int
8309 main ()
8310 {
8311 if ((struct tm *) 0)
8312 return 0;
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318   ac_cv_header_time=yes
8319 else
8320   ac_cv_header_time=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8325 $as_echo "$ac_cv_header_time" >&6; }
8326 if test $ac_cv_header_time = yes; then
8327
8328 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8329
8330 fi
8331
8332
8333
8334 #----------------------------------------------------------------------------
8335 # Checks for library functions.
8336 #----------------------------------------------------------------------------
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8338 $as_echo_n "checking for working memcmp... " >&6; }
8339 if ${ac_cv_func_memcmp_working+:} false; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   if test "$cross_compiling" = yes; then :
8343   ac_cv_func_memcmp_working=no
8344 else
8345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h.  */
8347 $ac_includes_default
8348 int
8349 main ()
8350 {
8351
8352   /* Some versions of memcmp are not 8-bit clean.  */
8353   char c0 = '\100', c1 = '\200', c2 = '\201';
8354   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8355     return 1;
8356
8357   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8358      or more and with at least one buffer not starting on a 4-byte boundary.
8359      William Lewis provided this test program.   */
8360   {
8361     char foo[21];
8362     char bar[21];
8363     int i;
8364     for (i = 0; i < 4; i++)
8365       {
8366         char *a = foo + i;
8367         char *b = bar + i;
8368         strcpy (a, "--------01111111");
8369         strcpy (b, "--------10000000");
8370         if (memcmp (a, b, 16) >= 0)
8371           return 1;
8372       }
8373     return 0;
8374   }
8375
8376   ;
8377   return 0;
8378 }
8379 _ACEOF
8380 if ac_fn_c_try_run "$LINENO"; then :
8381   ac_cv_func_memcmp_working=yes
8382 else
8383   ac_cv_func_memcmp_working=no
8384 fi
8385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8386   conftest.$ac_objext conftest.beam conftest.$ac_ext
8387 fi
8388
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8391 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8392 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8393   *" memcmp.$ac_objext "* ) ;;
8394   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8395  ;;
8396 esac
8397
8398
8399
8400
8401
8402   for ac_header in $ac_header_list
8403 do :
8404   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8405 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8406 "
8407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8408   cat >>confdefs.h <<_ACEOF
8409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8410 _ACEOF
8411
8412 fi
8413
8414 done
8415
8416
8417
8418
8419
8420
8421
8422
8423 for ac_func in getpagesize
8424 do :
8425   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8426 if test "x$ac_cv_func_getpagesize" = xyes; then :
8427   cat >>confdefs.h <<_ACEOF
8428 #define HAVE_GETPAGESIZE 1
8429 _ACEOF
8430
8431 fi
8432 done
8433
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8435 $as_echo_n "checking for working mmap... " >&6; }
8436 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8437   $as_echo_n "(cached) " >&6
8438 else
8439   if test "$cross_compiling" = yes; then :
8440   ac_cv_func_mmap_fixed_mapped=no
8441 else
8442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h.  */
8444 $ac_includes_default
8445 /* malloc might have been renamed as rpl_malloc. */
8446 #undef malloc
8447
8448 /* Thanks to Mike Haertel and Jim Avera for this test.
8449    Here is a matrix of mmap possibilities:
8450         mmap private not fixed
8451         mmap private fixed at somewhere currently unmapped
8452         mmap private fixed at somewhere already mapped
8453         mmap shared not fixed
8454         mmap shared fixed at somewhere currently unmapped
8455         mmap shared fixed at somewhere already mapped
8456    For private mappings, we should verify that changes cannot be read()
8457    back from the file, nor mmap's back from the file at a different
8458    address.  (There have been systems where private was not correctly
8459    implemented like the infamous i386 svr4.0, and systems where the
8460    VM page cache was not coherent with the file system buffer cache
8461    like early versions of FreeBSD and possibly contemporary NetBSD.)
8462    For shared mappings, we should conversely verify that changes get
8463    propagated back to all the places they're supposed to be.
8464
8465    Grep wants private fixed already mapped.
8466    The main things grep needs to know about mmap are:
8467    * does it exist and is it safe to write into the mmap'd area
8468    * how to use it (BSD variants)  */
8469
8470 #include <fcntl.h>
8471 #include <sys/mman.h>
8472
8473 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8474 char *malloc ();
8475 #endif
8476
8477 /* This mess was copied from the GNU getpagesize.h.  */
8478 #ifndef HAVE_GETPAGESIZE
8479 # ifdef _SC_PAGESIZE
8480 #  define getpagesize() sysconf(_SC_PAGESIZE)
8481 # else /* no _SC_PAGESIZE */
8482 #  ifdef HAVE_SYS_PARAM_H
8483 #   include <sys/param.h>
8484 #   ifdef EXEC_PAGESIZE
8485 #    define getpagesize() EXEC_PAGESIZE
8486 #   else /* no EXEC_PAGESIZE */
8487 #    ifdef NBPG
8488 #     define getpagesize() NBPG * CLSIZE
8489 #     ifndef CLSIZE
8490 #      define CLSIZE 1
8491 #     endif /* no CLSIZE */
8492 #    else /* no NBPG */
8493 #     ifdef NBPC
8494 #      define getpagesize() NBPC
8495 #     else /* no NBPC */
8496 #      ifdef PAGESIZE
8497 #       define getpagesize() PAGESIZE
8498 #      endif /* PAGESIZE */
8499 #     endif /* no NBPC */
8500 #    endif /* no NBPG */
8501 #   endif /* no EXEC_PAGESIZE */
8502 #  else /* no HAVE_SYS_PARAM_H */
8503 #   define getpagesize() 8192   /* punt totally */
8504 #  endif /* no HAVE_SYS_PARAM_H */
8505 # endif /* no _SC_PAGESIZE */
8506
8507 #endif /* no HAVE_GETPAGESIZE */
8508
8509 int
8510 main ()
8511 {
8512   char *data, *data2, *data3;
8513   const char *cdata2;
8514   int i, pagesize;
8515   int fd, fd2;
8516
8517   pagesize = getpagesize ();
8518
8519   /* First, make a file with some known garbage in it. */
8520   data = (char *) malloc (pagesize);
8521   if (!data)
8522     return 1;
8523   for (i = 0; i < pagesize; ++i)
8524     *(data + i) = rand ();
8525   umask (0);
8526   fd = creat ("conftest.mmap", 0600);
8527   if (fd < 0)
8528     return 2;
8529   if (write (fd, data, pagesize) != pagesize)
8530     return 3;
8531   close (fd);
8532
8533   /* Next, check that the tail of a page is zero-filled.  File must have
8534      non-zero length, otherwise we risk SIGBUS for entire page.  */
8535   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8536   if (fd2 < 0)
8537     return 4;
8538   cdata2 = "";
8539   if (write (fd2, cdata2, 1) != 1)
8540     return 5;
8541   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8542   if (data2 == MAP_FAILED)
8543     return 6;
8544   for (i = 0; i < pagesize; ++i)
8545     if (*(data2 + i))
8546       return 7;
8547   close (fd2);
8548   if (munmap (data2, pagesize))
8549     return 8;
8550
8551   /* Next, try to mmap the file at a fixed address which already has
8552      something else allocated at it.  If we can, also make sure that
8553      we see the same garbage.  */
8554   fd = open ("conftest.mmap", O_RDWR);
8555   if (fd < 0)
8556     return 9;
8557   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8558                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8559     return 10;
8560   for (i = 0; i < pagesize; ++i)
8561     if (*(data + i) != *(data2 + i))
8562       return 11;
8563
8564   /* Finally, make sure that changes to the mapped area do not
8565      percolate back to the file as seen by read().  (This is a bug on
8566      some variants of i386 svr4.0.)  */
8567   for (i = 0; i < pagesize; ++i)
8568     *(data2 + i) = *(data2 + i) + 1;
8569   data3 = (char *) malloc (pagesize);
8570   if (!data3)
8571     return 12;
8572   if (read (fd, data3, pagesize) != pagesize)
8573     return 13;
8574   for (i = 0; i < pagesize; ++i)
8575     if (*(data + i) != *(data3 + i))
8576       return 14;
8577   close (fd);
8578   return 0;
8579 }
8580 _ACEOF
8581 if ac_fn_c_try_run "$LINENO"; then :
8582   ac_cv_func_mmap_fixed_mapped=yes
8583 else
8584   ac_cv_func_mmap_fixed_mapped=no
8585 fi
8586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8587   conftest.$ac_objext conftest.beam conftest.$ac_ext
8588 fi
8589
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8592 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8593 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8594
8595 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8596
8597 fi
8598 rm -f conftest.mmap conftest.txt
8599
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8601 $as_echo_n "checking return type of signal handlers... " >&6; }
8602 if ${ac_cv_type_signal+:} false; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h.  */
8607 #include <sys/types.h>
8608 #include <signal.h>
8609
8610 int
8611 main ()
8612 {
8613 return *(signal (0, 0)) (0) == 1;
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 if ac_fn_c_try_compile "$LINENO"; then :
8619   ac_cv_type_signal=int
8620 else
8621   ac_cv_type_signal=void
8622 fi
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 fi
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8626 $as_echo "$ac_cv_type_signal" >&6; }
8627
8628 cat >>confdefs.h <<_ACEOF
8629 #define RETSIGTYPE $ac_cv_type_signal
8630 _ACEOF
8631
8632
8633
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8635 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8636 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   ac_check_lib_save_LIBS=$LIBS
8640 LIBS="-lpthread  $LIBS"
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h.  */
8643
8644 /* Override any GCC internal prototype to avoid an error.
8645    Use char because int might match the return type of a GCC
8646    builtin and then its argument prototype would still apply.  */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char pthread_create ();
8651 int
8652 main ()
8653 {
8654 return pthread_create ();
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_link "$LINENO"; then :
8660   ac_cv_lib_pthread_pthread_create=yes
8661 else
8662   ac_cv_lib_pthread_pthread_create=no
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext \
8665     conftest$ac_exeext conftest.$ac_ext
8666 LIBS=$ac_check_lib_save_LIBS
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8669 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8670 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8671   cat >>confdefs.h <<_ACEOF
8672 #define HAVE_LIBPTHREAD 1
8673 _ACEOF
8674
8675   LIBS="-lpthread $LIBS"
8676
8677 fi
8678
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8680 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8681 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   ac_check_lib_save_LIBS=$LIBS
8685 LIBS="-lrt  $LIBS"
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h.  */
8688
8689 /* Override any GCC internal prototype to avoid an error.
8690    Use char because int might match the return type of a GCC
8691    builtin and then its argument prototype would still apply.  */
8692 #ifdef __cplusplus
8693 extern "C"
8694 #endif
8695 char clock_gettime ();
8696 int
8697 main ()
8698 {
8699 return clock_gettime ();
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 if ac_fn_c_try_link "$LINENO"; then :
8705   ac_cv_lib_rt_clock_gettime=yes
8706 else
8707   ac_cv_lib_rt_clock_gettime=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext \
8710     conftest$ac_exeext conftest.$ac_ext
8711 LIBS=$ac_check_lib_save_LIBS
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8714 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8715 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8716   cat >>confdefs.h <<_ACEOF
8717 #define HAVE_LIBRT 1
8718 _ACEOF
8719
8720   LIBS="-lrt $LIBS"
8721
8722 fi
8723
8724
8725 for ac_func in      \
8726         clock_gettime\
8727         epoll_create \
8728         epoll_pwait  \
8729         klogctl      \
8730         mallinfo     \
8731         memchr       \
8732         memset       \
8733         mkdir        \
8734         mremap       \
8735         ppoll        \
8736         pthread_barrier_init       \
8737         pthread_condattr_setclock  \
8738         pthread_mutex_timedlock    \
8739         pthread_rwlock_timedrdlock \
8740         pthread_rwlock_timedwrlock \
8741         pthread_spin_lock          \
8742         readlinkat   \
8743         semtimedop   \
8744         signalfd     \
8745         sigwaitinfo  \
8746         strchr       \
8747         strdup       \
8748         strpbrk      \
8749         strrchr      \
8750         strstr       \
8751         syscall      \
8752         utimensat    \
8753
8754 do :
8755   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8757 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8758   cat >>confdefs.h <<_ACEOF
8759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8760 _ACEOF
8761
8762 fi
8763 done
8764
8765
8766 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8767 # libraries with any shared object and/or executable. This is NOT what we
8768 # want for e.g. vgpreload_core-x86-linux.so
8769 LIBS=""
8770
8771  if test x$ac_cv_func_pthread_barrier_init = xyes; then
8772   HAVE_PTHREAD_BARRIER_TRUE=
8773   HAVE_PTHREAD_BARRIER_FALSE='#'
8774 else
8775   HAVE_PTHREAD_BARRIER_TRUE='#'
8776   HAVE_PTHREAD_BARRIER_FALSE=
8777 fi
8778
8779  if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8780   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8781   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8782 else
8783   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8784   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8785 fi
8786
8787  if test x$ac_cv_func_pthread_spin_lock = xyes; then
8788   HAVE_PTHREAD_SPINLOCK_TRUE=
8789   HAVE_PTHREAD_SPINLOCK_FALSE='#'
8790 else
8791   HAVE_PTHREAD_SPINLOCK_TRUE='#'
8792   HAVE_PTHREAD_SPINLOCK_FALSE=
8793 fi
8794
8795
8796
8797 #----------------------------------------------------------------------------
8798 # MPI checks
8799 #----------------------------------------------------------------------------
8800 # Do we have a useable MPI setup on the primary and/or secondary targets?
8801 # On Linux, by default, assumes mpicc and -m32/-m64
8802 # On AIX, by default, assumes mpxlc and -q32/-q64
8803 # Note: this is a kludge in that it assumes the specified mpicc
8804 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8805 # --with-mpicc=.
8806 MPI_CC="mpicc"
8807 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8808      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8809   MPI_CC="mpxlc"
8810 fi
8811
8812 mflag_primary=
8813 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8814      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8815   mflag_primary=$FLAG_M32
8816 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8817        -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
8818        -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
8819   mflag_primary=$FLAG_M64
8820 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8821   mflag_primary=-q32
8822 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8823   mflag_primary=-q64
8824 fi
8825
8826 mflag_secondary=
8827 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8828      -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8829   mflag_secondary=$FLAG_M32
8830 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8831   mflag_secondary=-q32
8832 fi
8833
8834
8835
8836 # Check whether --with-mpicc was given.
8837 if test "${with_mpicc+set}" = set; then :
8838   withval=$with_mpicc; MPI_CC=$withval
8839
8840 fi
8841
8842
8843
8844 ## See if MPI_CC works for the primary target
8845 ##
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8847 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8848 saved_CC=$CC
8849 saved_CFLAGS=$CFLAGS
8850 CC=$MPI_CC
8851 CFLAGS=$mflag_primary
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h.  */
8854
8855 #include <mpi.h>
8856 #include <stdio.h>
8857
8858 int
8859 main ()
8860 {
8861
8862   int r = MPI_Init(NULL,NULL);
8863   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8864   return r;
8865
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_link "$LINENO"; then :
8871
8872 ac_have_mpi2_pri=yes
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8874 $as_echo "yes, $MPI_CC" >&6; }
8875
8876 else
8877
8878 ac_have_mpi2_pri=no
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8881
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext \
8884     conftest$ac_exeext conftest.$ac_ext
8885 CC=$saved_CC
8886 CFLAGS=$saved_CFLAGS
8887  if test x$ac_have_mpi2_pri = xyes; then
8888   BUILD_MPIWRAP_PRI_TRUE=
8889   BUILD_MPIWRAP_PRI_FALSE='#'
8890 else
8891   BUILD_MPIWRAP_PRI_TRUE='#'
8892   BUILD_MPIWRAP_PRI_FALSE=
8893 fi
8894
8895
8896 ## See if MPI_CC works for the secondary target.  Complication: what if
8897 ## there is no secondary target?  We need this to then fail.
8898 ## Kludge this by making MPI_CC something which will surely fail in
8899 ## such a case.
8900 ##
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8902 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8903 saved_CC=$CC
8904 saved_CFLAGS=$CFLAGS
8905 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8906   CC="$MPI_CC this will surely fail"
8907 else
8908   CC=$MPI_CC
8909 fi
8910 CFLAGS=$mflag_secondary
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h.  */
8913
8914 #include <mpi.h>
8915 #include <stdio.h>
8916
8917 int
8918 main ()
8919 {
8920
8921   int r = MPI_Init(NULL,NULL);
8922   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8923   return r;
8924
8925   ;
8926   return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_link "$LINENO"; then :
8930
8931 ac_have_mpi2_sec=yes
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8933 $as_echo "yes, $MPI_CC" >&6; }
8934
8935 else
8936
8937 ac_have_mpi2_sec=no
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext \
8943     conftest$ac_exeext conftest.$ac_ext
8944 CC=$saved_CC
8945 CFLAGS=$saved_CFLAGS
8946  if test x$ac_have_mpi2_sec = xyes; then
8947   BUILD_MPIWRAP_SEC_TRUE=
8948   BUILD_MPIWRAP_SEC_FALSE='#'
8949 else
8950   BUILD_MPIWRAP_SEC_TRUE='#'
8951   BUILD_MPIWRAP_SEC_FALSE=
8952 fi
8953
8954
8955
8956 #----------------------------------------------------------------------------
8957 # Other library checks
8958 #----------------------------------------------------------------------------
8959 # There now follow some tests for Boost, and OpenMP.  These
8960 # tests are present because Drd has some regression tests that use
8961 # these packages.  All regression test programs all compiled only
8962 # for the primary target.  And so it is important that the configure
8963 # checks that follow, use the correct -m32 or -m64 flag for the
8964 # primary target (called $mflag_primary).  Otherwise, we can end up
8965 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8966 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8967 # only build (meaning, the primary target is x86-linux), the build
8968 # of the regtest programs that use Boost fails, because they are
8969 # build as 32-bit (IN THIS EXAMPLE).
8970 #
8971 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8972 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8973
8974
8975 # Check whether the boost library 1.35 or later has been installed.
8976 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8979 $as_echo_n "checking for boost... " >&6; }
8980
8981 ac_ext=cpp
8982 ac_cpp='$CXXCPP $CPPFLAGS'
8983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8986
8987 safe_CXXFLAGS=$CXXFLAGS
8988 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8989
8990
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h.  */
8993
8994 #include <boost/thread.hpp>
8995 static void thread_func(void)
8996 { }
8997 int main(int argc, char** argv)
8998 {
8999   boost::thread t(thread_func);
9000   return 0;
9001 }
9002
9003 _ACEOF
9004 if ac_fn_cxx_try_link "$LINENO"; then :
9005
9006 ac_have_boost_1_35=yes
9007
9008 BOOST_LIBS="${CXXFLAGS}"
9009
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9011 $as_echo "yes" >&6; }
9012
9013 else
9014
9015 ac_have_boost_1_35=no
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9018
9019 fi
9020 rm -f core conftest.err conftest.$ac_objext \
9021     conftest$ac_exeext conftest.$ac_ext
9022
9023 CXXFLAGS=$safe_CXXFLAGS
9024 ac_ext=c
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029
9030
9031  if test x$ac_have_boost_1_35 = xyes; then
9032   HAVE_BOOST_1_35_TRUE=
9033   HAVE_BOOST_1_35_FALSE='#'
9034 else
9035   HAVE_BOOST_1_35_TRUE='#'
9036   HAVE_BOOST_1_35_FALSE=
9037 fi
9038
9039
9040
9041 # does this compiler support -fopenmp, does it have the include file
9042 # <omp.h> and does it have libgomp ?
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
9045 $as_echo_n "checking for OpenMP... " >&6; }
9046
9047 safe_CFLAGS=$CFLAGS
9048 CFLAGS="-fopenmp $mflag_primary"
9049
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h.  */
9052
9053 #include <omp.h>
9054 int main(int argc, char** argv)
9055 {
9056   omp_set_dynamic(0);
9057   return 0;
9058 }
9059
9060 _ACEOF
9061 if ac_fn_c_try_link "$LINENO"; then :
9062
9063 ac_have_openmp=yes
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9065 $as_echo "yes" >&6; }
9066
9067 else
9068
9069 ac_have_openmp=no
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9072
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext \
9075     conftest$ac_exeext conftest.$ac_ext
9076 CFLAGS=$safe_CFLAGS
9077
9078  if test x$ac_have_openmp = xyes; then
9079   HAVE_OPENMP_TRUE=
9080   HAVE_OPENMP_FALSE='#'
9081 else
9082   HAVE_OPENMP_TRUE='#'
9083   HAVE_OPENMP_FALSE=
9084 fi
9085
9086
9087
9088 # does this compiler have built-in functions for atomic memory access ?
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9090 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9091
9092 safe_CFLAGS=$CFLAGS
9093 CFLAGS="$mflag_primary"
9094
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h.  */
9097
9098 int
9099 main ()
9100 {
9101
9102   int variable = 1;
9103   return (__sync_bool_compare_and_swap(&variable, 1, 2)
9104           && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9105
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 if ac_fn_c_try_link "$LINENO"; then :
9111
9112   ac_have_builtin_atomic=yes
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9114 $as_echo "yes" >&6; }
9115
9116 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9117
9118
9119 else
9120
9121   ac_have_builtin_atomic=no
9122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9124
9125 fi
9126 rm -f core conftest.err conftest.$ac_objext \
9127     conftest$ac_exeext conftest.$ac_ext
9128
9129 CFLAGS=$safe_CFLAGS
9130
9131  if test x$ac_have_builtin_atomic = xyes; then
9132   HAVE_BUILTIN_ATOMIC_TRUE=
9133   HAVE_BUILTIN_ATOMIC_FALSE='#'
9134 else
9135   HAVE_BUILTIN_ATOMIC_TRUE='#'
9136   HAVE_BUILTIN_ATOMIC_FALSE=
9137 fi
9138
9139
9140 # does g++ have built-in functions for atomic memory access ?
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_bool_compare_and_swap" >&5
9142 $as_echo_n "checking if g++ supports __sync_bool_compare_and_swap... " >&6; }
9143
9144 safe_CXXFLAGS=$CXXFLAGS
9145 CXXFLAGS="$mflag_primary"
9146
9147 ac_ext=cpp
9148 ac_cpp='$CXXCPP $CPPFLAGS'
9149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9152
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h.  */
9155
9156 int
9157 main ()
9158 {
9159
9160   int variable = 1;
9161   return (__sync_bool_compare_and_swap(&variable, 1, 2)
9162           && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9163
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_cxx_try_link "$LINENO"; then :
9169
9170   ac_have_builtin_atomic_cxx=yes
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9172 $as_echo "yes" >&6; }
9173
9174 $as_echo "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h
9175
9176
9177 else
9178
9179   ac_have_builtin_atomic_cxx=no
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182
9183 fi
9184 rm -f core conftest.err conftest.$ac_objext \
9185     conftest$ac_exeext conftest.$ac_ext
9186 ac_ext=c
9187 ac_cpp='$CPP $CPPFLAGS'
9188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9191
9192
9193 CXXFLAGS=$safe_CXXFLAGS
9194
9195  if test x$ac_have_builtin_atomic_cxx = xyes; then
9196   HAVE_BUILTIN_ATOMIC_CXX_TRUE=
9197   HAVE_BUILTIN_ATOMIC_CXX_FALSE='#'
9198 else
9199   HAVE_BUILTIN_ATOMIC_CXX_TRUE='#'
9200   HAVE_BUILTIN_ATOMIC_CXX_FALSE=
9201 fi
9202
9203
9204 #----------------------------------------------------------------------------
9205 # Ok.  We're done checking.
9206 #----------------------------------------------------------------------------
9207
9208 # Nb: VEX/Makefile is generated from Makefile.vex.in.
9209 ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp docs/Makefile tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf gdbserver_tests/Makefile include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/tests/ppc32/Makefile memcheck/tests/ppc64/Makefile memcheck/perf/Makefile cachegrind/Makefile cachegrind/tests/Makefile cachegrind/tests/x86/Makefile cachegrind/cg_annotate cachegrind/cg_diff callgrind/Makefile callgrind/callgrind_annotate callgrind/callgrind_control callgrind/tests/Makefile helgrind/Makefile helgrind/tests/Makefile massif/Makefile massif/tests/Makefile massif/perf/Makefile massif/ms_print lackey/Makefile lackey/tests/Makefile none/Makefile none/tests/Makefile none/tests/amd64/Makefile none/tests/ppc32/Makefile none/tests/ppc64/Makefile none/tests/x86/Makefile none/tests/arm/Makefile none/tests/s390x/Makefile none/tests/linux/Makefile none/tests/darwin/Makefile none/tests/x86-linux/Makefile exp-sgcheck/Makefile exp-sgcheck/tests/Makefile drd/Makefile drd/scripts/download-and-build-splash2 drd/tests/Makefile exp-bbv/Makefile exp-bbv/tests/Makefile exp-bbv/tests/x86/Makefile exp-bbv/tests/x86-linux/Makefile exp-bbv/tests/amd64-linux/Makefile exp-bbv/tests/ppc32-linux/Makefile exp-dhat/Makefile exp-dhat/tests/Makefile"
9210
9211 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9212
9213 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9214
9215 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9216
9217 ac_config_files="$ac_config_files coregrind/link_tool_exe_l4re"
9218
9219 cat >confcache <<\_ACEOF
9220 # This file is a shell script that caches the results of configure
9221 # tests run on this system so they can be shared between configure
9222 # scripts and configure runs, see configure's option --config-cache.
9223 # It is not useful on other systems.  If it contains results you don't
9224 # want to keep, you may remove or edit it.
9225 #
9226 # config.status only pays attention to the cache file if you give it
9227 # the --recheck option to rerun configure.
9228 #
9229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9231 # following values.
9232
9233 _ACEOF
9234
9235 # The following way of writing the cache mishandles newlines in values,
9236 # but we know of no workaround that is simple, portable, and efficient.
9237 # So, we kill variables containing newlines.
9238 # Ultrix sh set writes to stderr and can't be redirected directly,
9239 # and sets the high bit in the cache file unless we assign to the vars.
9240 (
9241   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9242     eval ac_val=\$$ac_var
9243     case $ac_val in #(
9244     *${as_nl}*)
9245       case $ac_var in #(
9246       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9248       esac
9249       case $ac_var in #(
9250       _ | IFS | as_nl) ;; #(
9251       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9252       *) { eval $ac_var=; unset $ac_var;} ;;
9253       esac ;;
9254     esac
9255   done
9256
9257   (set) 2>&1 |
9258     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9259     *${as_nl}ac_space=\ *)
9260       # `set' does not quote correctly, so add quotes: double-quote
9261       # substitution turns \\\\ into \\, and sed turns \\ into \.
9262       sed -n \
9263         "s/'/'\\\\''/g;
9264           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9265       ;; #(
9266     *)
9267       # `set' quotes correctly as required by POSIX, so do not add quotes.
9268       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9269       ;;
9270     esac |
9271     sort
9272 ) |
9273   sed '
9274      /^ac_cv_env_/b end
9275      t clear
9276      :clear
9277      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9278      t end
9279      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9280      :end' >>confcache
9281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9282   if test -w "$cache_file"; then
9283     if test "x$cache_file" != "x/dev/null"; then
9284       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9285 $as_echo "$as_me: updating cache $cache_file" >&6;}
9286       if test ! -f "$cache_file" || test -h "$cache_file"; then
9287         cat confcache >"$cache_file"
9288       else
9289         case $cache_file in #(
9290         */* | ?:*)
9291           mv -f confcache "$cache_file"$$ &&
9292           mv -f "$cache_file"$$ "$cache_file" ;; #(
9293         *)
9294           mv -f confcache "$cache_file" ;;
9295         esac
9296       fi
9297     fi
9298   else
9299     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9301   fi
9302 fi
9303 rm -f confcache
9304
9305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9306 # Let make expand exec_prefix.
9307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9308
9309 DEFS=-DHAVE_CONFIG_H
9310
9311 ac_libobjs=
9312 ac_ltlibobjs=
9313 U=
9314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9315   # 1. Remove the extension, and $U if already installed.
9316   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9317   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9318   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9319   #    will be set to the directory where LIBOBJS objects are built.
9320   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9321   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9322 done
9323 LIBOBJS=$ac_libobjs
9324
9325 LTLIBOBJS=$ac_ltlibobjs
9326
9327
9328  if test -n "$EXEEXT"; then
9329   am__EXEEXT_TRUE=
9330   am__EXEEXT_FALSE='#'
9331 else
9332   am__EXEEXT_TRUE='#'
9333   am__EXEEXT_FALSE=
9334 fi
9335
9336 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9337   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9339 fi
9340 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9341   as_fn_error $? "conditional \"AMDEP\" was never defined.
9342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9343 fi
9344 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9345   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9347 fi
9348 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9349   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9351 fi
9352 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9353   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
9354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9355 fi
9356 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9357   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9359 fi
9360 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9361   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9363 fi
9364 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9365   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9367 fi
9368 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9369   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9371 fi
9372 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9373   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9375 fi
9376 if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
9377   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
9378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9379 fi
9380 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9381   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9383 fi
9384 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9385   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9387 fi
9388 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9389   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9391 fi
9392 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9393   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9395 fi
9396 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9397   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9399 fi
9400 if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
9401   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
9402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9403 fi
9404 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9405   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9407 fi
9408 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9409   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9411 fi
9412 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9413   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9415 fi
9416 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9417   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9419 fi
9420 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9421   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9423 fi
9424 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9425   as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9427 fi
9428 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9429   as_fn_error $? "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9431 fi
9432 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9433   as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9435 fi
9436 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9437   as_fn_error $? "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9439 fi
9440 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9441   as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9443 fi
9444 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9445   as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
9446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9447 fi
9448 if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
9449   as_fn_error $? "conditional \"HAS_VSX\" was never defined.
9450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9451 fi
9452 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9453   as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9455 fi
9456 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9457   as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
9458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9459 fi
9460 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9461   as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9463 fi
9464 if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
9465   as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
9466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9467 fi
9468 if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
9469   as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
9470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9471 fi
9472 if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
9473   as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
9474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9475 fi
9476 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9477   as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9479 fi
9480 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9481   as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9483 fi
9484 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9485   as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9487 fi
9488 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9489   as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9491 fi
9492 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9493   as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9495 fi
9496 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9497   as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
9498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9499 fi
9500 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9501   as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
9502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9503 fi
9504 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9505   as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9507 fi
9508 if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
9509   as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
9510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9511 fi
9512
9513 : "${CONFIG_STATUS=./config.status}"
9514 ac_write_fail=0
9515 ac_clean_files_save=$ac_clean_files
9516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9518 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9519 as_write_fail=0
9520 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9521 #! $SHELL
9522 # Generated by $as_me.
9523 # Run this file to recreate the current configuration.
9524 # Compiler output produced by configure, useful for debugging
9525 # configure, is in config.log if it exists.
9526
9527 debug=false
9528 ac_cs_recheck=false
9529 ac_cs_silent=false
9530
9531 SHELL=\${CONFIG_SHELL-$SHELL}
9532 export SHELL
9533 _ASEOF
9534 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9535 ## -------------------- ##
9536 ## M4sh Initialization. ##
9537 ## -------------------- ##
9538
9539 # Be more Bourne compatible
9540 DUALCASE=1; export DUALCASE # for MKS sh
9541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9542   emulate sh
9543   NULLCMD=:
9544   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9545   # is contrary to our usage.  Disable this feature.
9546   alias -g '${1+"$@"}'='"$@"'
9547   setopt NO_GLOB_SUBST
9548 else
9549   case `(set -o) 2>/dev/null` in #(
9550   *posix*) :
9551     set -o posix ;; #(
9552   *) :
9553      ;;
9554 esac
9555 fi
9556
9557
9558 as_nl='
9559 '
9560 export as_nl
9561 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9562 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9565 # Prefer a ksh shell builtin over an external printf program on Solaris,
9566 # but without wasting forks for bash or zsh.
9567 if test -z "$BASH_VERSION$ZSH_VERSION" \
9568     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9569   as_echo='print -r --'
9570   as_echo_n='print -rn --'
9571 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9572   as_echo='printf %s\n'
9573   as_echo_n='printf %s'
9574 else
9575   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9576     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9577     as_echo_n='/usr/ucb/echo -n'
9578   else
9579     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9580     as_echo_n_body='eval
9581       arg=$1;
9582       case $arg in #(
9583       *"$as_nl"*)
9584         expr "X$arg" : "X\\(.*\\)$as_nl";
9585         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9586       esac;
9587       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9588     '
9589     export as_echo_n_body
9590     as_echo_n='sh -c $as_echo_n_body as_echo'
9591   fi
9592   export as_echo_body
9593   as_echo='sh -c $as_echo_body as_echo'
9594 fi
9595
9596 # The user is always right.
9597 if test "${PATH_SEPARATOR+set}" != set; then
9598   PATH_SEPARATOR=:
9599   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9600     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9601       PATH_SEPARATOR=';'
9602   }
9603 fi
9604
9605
9606 # IFS
9607 # We need space, tab and new line, in precisely that order.  Quoting is
9608 # there to prevent editors from complaining about space-tab.
9609 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9610 # splitting by setting IFS to empty value.)
9611 IFS=" ""        $as_nl"
9612
9613 # Find who we are.  Look in the path if we contain no directory separator.
9614 as_myself=
9615 case $0 in #((
9616   *[\\/]* ) as_myself=$0 ;;
9617   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in $PATH
9619 do
9620   IFS=$as_save_IFS
9621   test -z "$as_dir" && as_dir=.
9622     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9623   done
9624 IFS=$as_save_IFS
9625
9626      ;;
9627 esac
9628 # We did not find ourselves, most probably we were run as `sh COMMAND'
9629 # in which case we are not to be found in the path.
9630 if test "x$as_myself" = x; then
9631   as_myself=$0
9632 fi
9633 if test ! -f "$as_myself"; then
9634   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9635   exit 1
9636 fi
9637
9638 # Unset variables that we do not need and which cause bugs (e.g. in
9639 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9640 # suppresses any "Segmentation fault" message there.  '((' could
9641 # trigger a bug in pdksh 5.2.14.
9642 for as_var in BASH_ENV ENV MAIL MAILPATH
9643 do eval test x\${$as_var+set} = xset \
9644   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9645 done
9646 PS1='$ '
9647 PS2='> '
9648 PS4='+ '
9649
9650 # NLS nuisances.
9651 LC_ALL=C
9652 export LC_ALL
9653 LANGUAGE=C
9654 export LANGUAGE
9655
9656 # CDPATH.
9657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9658
9659
9660 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9661 # ----------------------------------------
9662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9664 # script with STATUS, using 1 if that was 0.
9665 as_fn_error ()
9666 {
9667   as_status=$1; test $as_status -eq 0 && as_status=1
9668   if test "$4"; then
9669     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9670     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9671   fi
9672   $as_echo "$as_me: error: $2" >&2
9673   as_fn_exit $as_status
9674 } # as_fn_error
9675
9676
9677 # as_fn_set_status STATUS
9678 # -----------------------
9679 # Set $? to STATUS, without forking.
9680 as_fn_set_status ()
9681 {
9682   return $1
9683 } # as_fn_set_status
9684
9685 # as_fn_exit STATUS
9686 # -----------------
9687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9688 as_fn_exit ()
9689 {
9690   set +e
9691   as_fn_set_status $1
9692   exit $1
9693 } # as_fn_exit
9694
9695 # as_fn_unset VAR
9696 # ---------------
9697 # Portably unset VAR.
9698 as_fn_unset ()
9699 {
9700   { eval $1=; unset $1;}
9701 }
9702 as_unset=as_fn_unset
9703 # as_fn_append VAR VALUE
9704 # ----------------------
9705 # Append the text in VALUE to the end of the definition contained in VAR. Take
9706 # advantage of any shell optimizations that allow amortized linear growth over
9707 # repeated appends, instead of the typical quadratic growth present in naive
9708 # implementations.
9709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9710   eval 'as_fn_append ()
9711   {
9712     eval $1+=\$2
9713   }'
9714 else
9715   as_fn_append ()
9716   {
9717     eval $1=\$$1\$2
9718   }
9719 fi # as_fn_append
9720
9721 # as_fn_arith ARG...
9722 # ------------------
9723 # Perform arithmetic evaluation on the ARGs, and store the result in the
9724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9725 # must be portable across $(()) and expr.
9726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9727   eval 'as_fn_arith ()
9728   {
9729     as_val=$(( $* ))
9730   }'
9731 else
9732   as_fn_arith ()
9733   {
9734     as_val=`expr "$@" || test $? -eq 1`
9735   }
9736 fi # as_fn_arith
9737
9738
9739 if expr a : '\(a\)' >/dev/null 2>&1 &&
9740    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9741   as_expr=expr
9742 else
9743   as_expr=false
9744 fi
9745
9746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9747   as_basename=basename
9748 else
9749   as_basename=false
9750 fi
9751
9752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9753   as_dirname=dirname
9754 else
9755   as_dirname=false
9756 fi
9757
9758 as_me=`$as_basename -- "$0" ||
9759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9760          X"$0" : 'X\(//\)$' \| \
9761          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9762 $as_echo X/"$0" |
9763     sed '/^.*\/\([^/][^/]*\)\/*$/{
9764             s//\1/
9765             q
9766           }
9767           /^X\/\(\/\/\)$/{
9768             s//\1/
9769             q
9770           }
9771           /^X\/\(\/\).*/{
9772             s//\1/
9773             q
9774           }
9775           s/.*/./; q'`
9776
9777 # Avoid depending upon Character Ranges.
9778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9781 as_cr_digits='0123456789'
9782 as_cr_alnum=$as_cr_Letters$as_cr_digits
9783
9784 ECHO_C= ECHO_N= ECHO_T=
9785 case `echo -n x` in #(((((
9786 -n*)
9787   case `echo 'xy\c'` in
9788   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9789   xy)  ECHO_C='\c';;
9790   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9791        ECHO_T=' ';;
9792   esac;;
9793 *)
9794   ECHO_N='-n';;
9795 esac
9796
9797 rm -f conf$$ conf$$.exe conf$$.file
9798 if test -d conf$$.dir; then
9799   rm -f conf$$.dir/conf$$.file
9800 else
9801   rm -f conf$$.dir
9802   mkdir conf$$.dir 2>/dev/null
9803 fi
9804 if (echo >conf$$.file) 2>/dev/null; then
9805   if ln -s conf$$.file conf$$ 2>/dev/null; then
9806     as_ln_s='ln -s'
9807     # ... but there are two gotchas:
9808     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9809     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9810     # In both cases, we have to default to `cp -pR'.
9811     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9812       as_ln_s='cp -pR'
9813   elif ln conf$$.file conf$$ 2>/dev/null; then
9814     as_ln_s=ln
9815   else
9816     as_ln_s='cp -pR'
9817   fi
9818 else
9819   as_ln_s='cp -pR'
9820 fi
9821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9822 rmdir conf$$.dir 2>/dev/null
9823
9824
9825 # as_fn_mkdir_p
9826 # -------------
9827 # Create "$as_dir" as a directory, including parents if necessary.
9828 as_fn_mkdir_p ()
9829 {
9830
9831   case $as_dir in #(
9832   -*) as_dir=./$as_dir;;
9833   esac
9834   test -d "$as_dir" || eval $as_mkdir_p || {
9835     as_dirs=
9836     while :; do
9837       case $as_dir in #(
9838       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9839       *) as_qdir=$as_dir;;
9840       esac
9841       as_dirs="'$as_qdir' $as_dirs"
9842       as_dir=`$as_dirname -- "$as_dir" ||
9843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9844          X"$as_dir" : 'X\(//\)[^/]' \| \
9845          X"$as_dir" : 'X\(//\)$' \| \
9846          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9847 $as_echo X"$as_dir" |
9848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9849             s//\1/
9850             q
9851           }
9852           /^X\(\/\/\)[^/].*/{
9853             s//\1/
9854             q
9855           }
9856           /^X\(\/\/\)$/{
9857             s//\1/
9858             q
9859           }
9860           /^X\(\/\).*/{
9861             s//\1/
9862             q
9863           }
9864           s/.*/./; q'`
9865       test -d "$as_dir" && break
9866     done
9867     test -z "$as_dirs" || eval "mkdir $as_dirs"
9868   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9869
9870
9871 } # as_fn_mkdir_p
9872 if mkdir -p . 2>/dev/null; then
9873   as_mkdir_p='mkdir -p "$as_dir"'
9874 else
9875   test -d ./-p && rmdir ./-p
9876   as_mkdir_p=false
9877 fi
9878
9879
9880 # as_fn_executable_p FILE
9881 # -----------------------
9882 # Test if FILE is an executable regular file.
9883 as_fn_executable_p ()
9884 {
9885   test -f "$1" && test -x "$1"
9886 } # as_fn_executable_p
9887 as_test_x='test -x'
9888 as_executable_p=as_fn_executable_p
9889
9890 # Sed expression to map a string onto a valid CPP name.
9891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9892
9893 # Sed expression to map a string onto a valid variable name.
9894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9895
9896
9897 exec 6>&1
9898 ## ----------------------------------- ##
9899 ## Main body of $CONFIG_STATUS script. ##
9900 ## ----------------------------------- ##
9901 _ASEOF
9902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9903
9904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9905 # Save the log message, to keep $0 and so on meaningful, and to
9906 # report actual input values of CONFIG_FILES etc. instead of their
9907 # values after options handling.
9908 ac_log="
9909 This file was extended by Valgrind $as_me 3.7.0.SVN, which was
9910 generated by GNU Autoconf 2.69.  Invocation command line was
9911
9912   CONFIG_FILES    = $CONFIG_FILES
9913   CONFIG_HEADERS  = $CONFIG_HEADERS
9914   CONFIG_LINKS    = $CONFIG_LINKS
9915   CONFIG_COMMANDS = $CONFIG_COMMANDS
9916   $ $0 $@
9917
9918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9919 "
9920
9921 _ACEOF
9922
9923 case $ac_config_files in *"
9924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9925 esac
9926
9927 case $ac_config_headers in *"
9928 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9929 esac
9930
9931
9932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9933 # Files that config.status was made for.
9934 config_files="$ac_config_files"
9935 config_headers="$ac_config_headers"
9936 config_commands="$ac_config_commands"
9937
9938 _ACEOF
9939
9940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9941 ac_cs_usage="\
9942 \`$as_me' instantiates files and other configuration actions
9943 from templates according to the current configuration.  Unless the files
9944 and actions are specified as TAGs, all are instantiated by default.
9945
9946 Usage: $0 [OPTION]... [TAG]...
9947
9948   -h, --help       print this help, then exit
9949   -V, --version    print version number and configuration settings, then exit
9950       --config     print configuration, then exit
9951   -q, --quiet, --silent
9952                    do not print progress messages
9953   -d, --debug      don't remove temporary files
9954       --recheck    update $as_me by reconfiguring in the same conditions
9955       --file=FILE[:TEMPLATE]
9956                    instantiate the configuration file FILE
9957       --header=FILE[:TEMPLATE]
9958                    instantiate the configuration header FILE
9959
9960 Configuration files:
9961 $config_files
9962
9963 Configuration headers:
9964 $config_headers
9965
9966 Configuration commands:
9967 $config_commands
9968
9969 Report bugs to <valgrind-users@lists.sourceforge.net>."
9970
9971 _ACEOF
9972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9973 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9974 ac_cs_version="\\
9975 Valgrind config.status 3.7.0.SVN
9976 configured by $0, generated by GNU Autoconf 2.69,
9977   with options \\"\$ac_cs_config\\"
9978
9979 Copyright (C) 2012 Free Software Foundation, Inc.
9980 This config.status script is free software; the Free Software Foundation
9981 gives unlimited permission to copy, distribute and modify it."
9982
9983 ac_pwd='$ac_pwd'
9984 srcdir='$srcdir'
9985 INSTALL='$INSTALL'
9986 MKDIR_P='$MKDIR_P'
9987 AWK='$AWK'
9988 test -n "\$AWK" || AWK=awk
9989 _ACEOF
9990
9991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9992 # The default lists apply if the user does not specify any file.
9993 ac_need_defaults=:
9994 while test $# != 0
9995 do
9996   case $1 in
9997   --*=?*)
9998     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9999     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10000     ac_shift=:
10001     ;;
10002   --*=)
10003     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10004     ac_optarg=
10005     ac_shift=:
10006     ;;
10007   *)
10008     ac_option=$1
10009     ac_optarg=$2
10010     ac_shift=shift
10011     ;;
10012   esac
10013
10014   case $ac_option in
10015   # Handling of the options.
10016   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10017     ac_cs_recheck=: ;;
10018   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10019     $as_echo "$ac_cs_version"; exit ;;
10020   --config | --confi | --conf | --con | --co | --c )
10021     $as_echo "$ac_cs_config"; exit ;;
10022   --debug | --debu | --deb | --de | --d | -d )
10023     debug=: ;;
10024   --file | --fil | --fi | --f )
10025     $ac_shift
10026     case $ac_optarg in
10027     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10028     '') as_fn_error $? "missing file argument" ;;
10029     esac
10030     as_fn_append CONFIG_FILES " '$ac_optarg'"
10031     ac_need_defaults=false;;
10032   --header | --heade | --head | --hea )
10033     $ac_shift
10034     case $ac_optarg in
10035     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10036     esac
10037     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10038     ac_need_defaults=false;;
10039   --he | --h)
10040     # Conflict between --help and --header
10041     as_fn_error $? "ambiguous option: \`$1'
10042 Try \`$0 --help' for more information.";;
10043   --help | --hel | -h )
10044     $as_echo "$ac_cs_usage"; exit ;;
10045   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10046   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10047     ac_cs_silent=: ;;
10048
10049   # This is an error.
10050   -*) as_fn_error $? "unrecognized option: \`$1'
10051 Try \`$0 --help' for more information." ;;
10052
10053   *) as_fn_append ac_config_targets " $1"
10054      ac_need_defaults=false ;;
10055
10056   esac
10057   shift
10058 done
10059
10060 ac_configure_extra_args=
10061
10062 if $ac_cs_silent; then
10063   exec 6>/dev/null
10064   ac_configure_extra_args="$ac_configure_extra_args --silent"
10065 fi
10066
10067 _ACEOF
10068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10069 if \$ac_cs_recheck; then
10070   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10071   shift
10072   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10073   CONFIG_SHELL='$SHELL'
10074   export CONFIG_SHELL
10075   exec "\$@"
10076 fi
10077
10078 _ACEOF
10079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10080 exec 5>>config.log
10081 {
10082   echo
10083   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10084 ## Running $as_me. ##
10085 _ASBOX
10086   $as_echo "$ac_log"
10087 } >&5
10088
10089 _ACEOF
10090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10091 #
10092 # INIT-COMMANDS
10093 #
10094 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10095
10096 _ACEOF
10097
10098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10099
10100 # Handling of arguments.
10101 for ac_config_target in $ac_config_targets
10102 do
10103   case $ac_config_target in
10104     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10105     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10106     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10107     "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
10108     "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
10109     "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
10110     "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
10111     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10112     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10113     "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
10114     "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
10115     "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
10116     "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;;
10117     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10118     "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
10119     "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
10120     "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
10121     "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
10122     "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
10123     "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
10124     "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
10125     "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
10126     "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
10127     "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
10128     "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
10129     "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
10130     "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
10131     "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
10132     "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10133     "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10134     "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10135     "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10136     "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10137     "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10138     "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10139     "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10140     "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10141     "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10142     "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10143     "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10144     "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10145     "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10146     "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10147     "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10148     "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10149     "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10150     "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10151     "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10152     "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10153     "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10154     "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10155     "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10156     "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;;
10157     "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10158     "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10159     "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10160     "exp-sgcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/Makefile" ;;
10161     "exp-sgcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/tests/Makefile" ;;
10162     "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10163     "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10164     "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10165     "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10166     "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10167     "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10168     "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10169     "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10170     "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10171     "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;;
10172     "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;;
10173     "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10174     "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10175     "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10176     "coregrind/link_tool_exe_l4re") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_l4re" ;;
10177
10178   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10179   esac
10180 done
10181
10182
10183 # If the user did not use the arguments to specify the items to instantiate,
10184 # then the envvar interface is used.  Set only those that are not.
10185 # We use the long form for the default assignment because of an extremely
10186 # bizarre bug on SunOS 4.1.3.
10187 if $ac_need_defaults; then
10188   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10189   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10190   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10191 fi
10192
10193 # Have a temporary directory for convenience.  Make it in the build tree
10194 # simply because there is no reason against having it here, and in addition,
10195 # creating and moving files from /tmp can sometimes cause problems.
10196 # Hook for its removal unless debugging.
10197 # Note that there is a small window in which the directory will not be cleaned:
10198 # after its creation but before its name has been assigned to `$tmp'.
10199 $debug ||
10200 {
10201   tmp= ac_tmp=
10202   trap 'exit_status=$?
10203   : "${ac_tmp:=$tmp}"
10204   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10205 ' 0
10206   trap 'as_fn_exit 1' 1 2 13 15
10207 }
10208 # Create a (secure) tmp directory for tmp files.
10209
10210 {
10211   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10212   test -d "$tmp"
10213 }  ||
10214 {
10215   tmp=./conf$$-$RANDOM
10216   (umask 077 && mkdir "$tmp")
10217 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10218 ac_tmp=$tmp
10219
10220 # Set up the scripts for CONFIG_FILES section.
10221 # No need to generate them if there are no CONFIG_FILES.
10222 # This happens for instance with `./config.status config.h'.
10223 if test -n "$CONFIG_FILES"; then
10224
10225
10226 ac_cr=`echo X | tr X '\015'`
10227 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10228 # But we know of no other shell where ac_cr would be empty at this
10229 # point, so we can use a bashism as a fallback.
10230 if test "x$ac_cr" = x; then
10231   eval ac_cr=\$\'\\r\'
10232 fi
10233 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10234 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10235   ac_cs_awk_cr='\\r'
10236 else
10237   ac_cs_awk_cr=$ac_cr
10238 fi
10239
10240 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10241 _ACEOF
10242
10243
10244 {
10245   echo "cat >conf$$subs.awk <<_ACEOF" &&
10246   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10247   echo "_ACEOF"
10248 } >conf$$subs.sh ||
10249   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10250 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10251 ac_delim='%!_!# '
10252 for ac_last_try in false false false false false :; do
10253   . ./conf$$subs.sh ||
10254     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10255
10256   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10257   if test $ac_delim_n = $ac_delim_num; then
10258     break
10259   elif $ac_last_try; then
10260     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10261   else
10262     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10263   fi
10264 done
10265 rm -f conf$$subs.sh
10266
10267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10268 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10269 _ACEOF
10270 sed -n '
10271 h
10272 s/^/S["/; s/!.*/"]=/
10273 p
10274 g
10275 s/^[^!]*!//
10276 :repl
10277 t repl
10278 s/'"$ac_delim"'$//
10279 t delim
10280 :nl
10281 h
10282 s/\(.\{148\}\)..*/\1/
10283 t more1
10284 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10285 p
10286 n
10287 b repl
10288 :more1
10289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10290 p
10291 g
10292 s/.\{148\}//
10293 t nl
10294 :delim
10295 h
10296 s/\(.\{148\}\)..*/\1/
10297 t more2
10298 s/["\\]/\\&/g; s/^/"/; s/$/"/
10299 p
10300 b
10301 :more2
10302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10303 p
10304 g
10305 s/.\{148\}//
10306 t delim
10307 ' <conf$$subs.awk | sed '
10308 /^[^""]/{
10309   N
10310   s/\n//
10311 }
10312 ' >>$CONFIG_STATUS || ac_write_fail=1
10313 rm -f conf$$subs.awk
10314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10315 _ACAWK
10316 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10317   for (key in S) S_is_set[key] = 1
10318   FS = "\a"
10319
10320 }
10321 {
10322   line = $ 0
10323   nfields = split(line, field, "@")
10324   substed = 0
10325   len = length(field[1])
10326   for (i = 2; i < nfields; i++) {
10327     key = field[i]
10328     keylen = length(key)
10329     if (S_is_set[key]) {
10330       value = S[key]
10331       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10332       len += length(value) + length(field[++i])
10333       substed = 1
10334     } else
10335       len += 1 + keylen
10336   }
10337
10338   print line
10339 }
10340
10341 _ACAWK
10342 _ACEOF
10343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10345   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10346 else
10347   cat
10348 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10349   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10350 _ACEOF
10351
10352 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10353 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10354 # trailing colons and then remove the whole line if VPATH becomes empty
10355 # (actually we leave an empty line to preserve line numbers).
10356 if test "x$srcdir" = x.; then
10357   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10358 h
10359 s///
10360 s/^/:/
10361 s/[      ]*$/:/
10362 s/:\$(srcdir):/:/g
10363 s/:\${srcdir}:/:/g
10364 s/:@srcdir@:/:/g
10365 s/^:*//
10366 s/:*$//
10367 x
10368 s/\(=[   ]*\).*/\1/
10369 G
10370 s/\n//
10371 s/^[^=]*=[       ]*$//
10372 }'
10373 fi
10374
10375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10376 fi # test -n "$CONFIG_FILES"
10377
10378 # Set up the scripts for CONFIG_HEADERS section.
10379 # No need to generate them if there are no CONFIG_HEADERS.
10380 # This happens for instance with `./config.status Makefile'.
10381 if test -n "$CONFIG_HEADERS"; then
10382 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10383 BEGIN {
10384 _ACEOF
10385
10386 # Transform confdefs.h into an awk script `defines.awk', embedded as
10387 # here-document in config.status, that substitutes the proper values into
10388 # config.h.in to produce config.h.
10389
10390 # Create a delimiter string that does not exist in confdefs.h, to ease
10391 # handling of long lines.
10392 ac_delim='%!_!# '
10393 for ac_last_try in false false :; do
10394   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10395   if test -z "$ac_tt"; then
10396     break
10397   elif $ac_last_try; then
10398     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10399   else
10400     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10401   fi
10402 done
10403
10404 # For the awk script, D is an array of macro values keyed by name,
10405 # likewise P contains macro parameters if any.  Preserve backslash
10406 # newline sequences.
10407
10408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10409 sed -n '
10410 s/.\{148\}/&'"$ac_delim"'/g
10411 t rset
10412 :rset
10413 s/^[     ]*#[    ]*define[       ][      ]*/ /
10414 t def
10415 d
10416 :def
10417 s/\\$//
10418 t bsnl
10419 s/["\\]/\\&/g
10420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10421 D["\1"]=" \3"/p
10422 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10423 d
10424 :bsnl
10425 s/["\\]/\\&/g
10426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10427 D["\1"]=" \3\\\\\\n"\\/p
10428 t cont
10429 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10430 t cont
10431 d
10432 :cont
10433 n
10434 s/.\{148\}/&'"$ac_delim"'/g
10435 t clear
10436 :clear
10437 s/\\$//
10438 t bsnlc
10439 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10440 d
10441 :bsnlc
10442 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10443 b cont
10444 ' <confdefs.h | sed '
10445 s/'"$ac_delim"'/"\\\
10446 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10447
10448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10449   for (key in D) D_is_set[key] = 1
10450   FS = "\a"
10451 }
10452 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10453   line = \$ 0
10454   split(line, arg, " ")
10455   if (arg[1] == "#") {
10456     defundef = arg[2]
10457     mac1 = arg[3]
10458   } else {
10459     defundef = substr(arg[1], 2)
10460     mac1 = arg[2]
10461   }
10462   split(mac1, mac2, "(") #)
10463   macro = mac2[1]
10464   prefix = substr(line, 1, index(line, defundef) - 1)
10465   if (D_is_set[macro]) {
10466     # Preserve the white space surrounding the "#".
10467     print prefix "define", macro P[macro] D[macro]
10468     next
10469   } else {
10470     # Replace #undef with comments.  This is necessary, for example,
10471     # in the case of _POSIX_SOURCE, which is predefined and required
10472     # on some systems where configure will not decide to define it.
10473     if (defundef == "undef") {
10474       print "/*", prefix defundef, macro, "*/"
10475       next
10476     }
10477   }
10478 }
10479 { print }
10480 _ACAWK
10481 _ACEOF
10482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10483   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10484 fi # test -n "$CONFIG_HEADERS"
10485
10486
10487 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10488 shift
10489 for ac_tag
10490 do
10491   case $ac_tag in
10492   :[FHLC]) ac_mode=$ac_tag; continue;;
10493   esac
10494   case $ac_mode$ac_tag in
10495   :[FHL]*:*);;
10496   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10497   :[FH]-) ac_tag=-:-;;
10498   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10499   esac
10500   ac_save_IFS=$IFS
10501   IFS=:
10502   set x $ac_tag
10503   IFS=$ac_save_IFS
10504   shift
10505   ac_file=$1
10506   shift
10507
10508   case $ac_mode in
10509   :L) ac_source=$1;;
10510   :[FH])
10511     ac_file_inputs=
10512     for ac_f
10513     do
10514       case $ac_f in
10515       -) ac_f="$ac_tmp/stdin";;
10516       *) # Look for the file first in the build tree, then in the source tree
10517          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10518          # because $ac_f cannot contain `:'.
10519          test -f "$ac_f" ||
10520            case $ac_f in
10521            [\\/$]*) false;;
10522            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10523            esac ||
10524            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10525       esac
10526       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10527       as_fn_append ac_file_inputs " '$ac_f'"
10528     done
10529
10530     # Let's still pretend it is `configure' which instantiates (i.e., don't
10531     # use $as_me), people would be surprised to read:
10532     #    /* config.h.  Generated by config.status.  */
10533     configure_input='Generated from '`
10534           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10535         `' by configure.'
10536     if test x"$ac_file" != x-; then
10537       configure_input="$ac_file.  $configure_input"
10538       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10539 $as_echo "$as_me: creating $ac_file" >&6;}
10540     fi
10541     # Neutralize special characters interpreted by sed in replacement strings.
10542     case $configure_input in #(
10543     *\&* | *\|* | *\\* )
10544        ac_sed_conf_input=`$as_echo "$configure_input" |
10545        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10546     *) ac_sed_conf_input=$configure_input;;
10547     esac
10548
10549     case $ac_tag in
10550     *:-:* | *:-) cat >"$ac_tmp/stdin" \
10551       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10552     esac
10553     ;;
10554   esac
10555
10556   ac_dir=`$as_dirname -- "$ac_file" ||
10557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10558          X"$ac_file" : 'X\(//\)[^/]' \| \
10559          X"$ac_file" : 'X\(//\)$' \| \
10560          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10561 $as_echo X"$ac_file" |
10562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10563             s//\1/
10564             q
10565           }
10566           /^X\(\/\/\)[^/].*/{
10567             s//\1/
10568             q
10569           }
10570           /^X\(\/\/\)$/{
10571             s//\1/
10572             q
10573           }
10574           /^X\(\/\).*/{
10575             s//\1/
10576             q
10577           }
10578           s/.*/./; q'`
10579   as_dir="$ac_dir"; as_fn_mkdir_p
10580   ac_builddir=.
10581
10582 case "$ac_dir" in
10583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10584 *)
10585   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10586   # A ".." for each directory in $ac_dir_suffix.
10587   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10588   case $ac_top_builddir_sub in
10589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10591   esac ;;
10592 esac
10593 ac_abs_top_builddir=$ac_pwd
10594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10595 # for backward compatibility:
10596 ac_top_builddir=$ac_top_build_prefix
10597
10598 case $srcdir in
10599   .)  # We are building in place.
10600     ac_srcdir=.
10601     ac_top_srcdir=$ac_top_builddir_sub
10602     ac_abs_top_srcdir=$ac_pwd ;;
10603   [\\/]* | ?:[\\/]* )  # Absolute name.
10604     ac_srcdir=$srcdir$ac_dir_suffix;
10605     ac_top_srcdir=$srcdir
10606     ac_abs_top_srcdir=$srcdir ;;
10607   *) # Relative name.
10608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10609     ac_top_srcdir=$ac_top_build_prefix$srcdir
10610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10611 esac
10612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10613
10614
10615   case $ac_mode in
10616   :F)
10617   #
10618   # CONFIG_FILE
10619   #
10620
10621   case $INSTALL in
10622   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10623   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10624   esac
10625   ac_MKDIR_P=$MKDIR_P
10626   case $MKDIR_P in
10627   [\\/$]* | ?:[\\/]* ) ;;
10628   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10629   esac
10630 _ACEOF
10631
10632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10633 # If the template does not know about datarootdir, expand it.
10634 # FIXME: This hack should be removed a few years after 2.60.
10635 ac_datarootdir_hack=; ac_datarootdir_seen=
10636 ac_sed_dataroot='
10637 /datarootdir/ {
10638   p
10639   q
10640 }
10641 /@datadir@/p
10642 /@docdir@/p
10643 /@infodir@/p
10644 /@localedir@/p
10645 /@mandir@/p'
10646 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10647 *datarootdir*) ac_datarootdir_seen=yes;;
10648 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10650 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10651 _ACEOF
10652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10653   ac_datarootdir_hack='
10654   s&@datadir@&$datadir&g
10655   s&@docdir@&$docdir&g
10656   s&@infodir@&$infodir&g
10657   s&@localedir@&$localedir&g
10658   s&@mandir@&$mandir&g
10659   s&\\\${datarootdir}&$datarootdir&g' ;;
10660 esac
10661 _ACEOF
10662
10663 # Neutralize VPATH when `$srcdir' = `.'.
10664 # Shell code in configure.ac might set extrasub.
10665 # FIXME: do we really want to maintain this feature?
10666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10667 ac_sed_extra="$ac_vpsub
10668 $extrasub
10669 _ACEOF
10670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10671 :t
10672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10673 s|@configure_input@|$ac_sed_conf_input|;t t
10674 s&@top_builddir@&$ac_top_builddir_sub&;t t
10675 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10676 s&@srcdir@&$ac_srcdir&;t t
10677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10678 s&@top_srcdir@&$ac_top_srcdir&;t t
10679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10680 s&@builddir@&$ac_builddir&;t t
10681 s&@abs_builddir@&$ac_abs_builddir&;t t
10682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10683 s&@INSTALL@&$ac_INSTALL&;t t
10684 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10685 $ac_datarootdir_hack
10686 "
10687 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10688   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10689
10690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10691   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10692   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10693       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10694   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10695 which seems to be undefined.  Please make sure it is defined" >&5
10696 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10697 which seems to be undefined.  Please make sure it is defined" >&2;}
10698
10699   rm -f "$ac_tmp/stdin"
10700   case $ac_file in
10701   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10702   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10703   esac \
10704   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10705  ;;
10706   :H)
10707   #
10708   # CONFIG_HEADER
10709   #
10710   if test x"$ac_file" != x-; then
10711     {
10712       $as_echo "/* $configure_input  */" \
10713       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10714     } >"$ac_tmp/config.h" \
10715       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10716     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10717       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10719     else
10720       rm -f "$ac_file"
10721       mv "$ac_tmp/config.h" "$ac_file" \
10722         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10723     fi
10724   else
10725     $as_echo "/* $configure_input  */" \
10726       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10727       || as_fn_error $? "could not create -" "$LINENO" 5
10728   fi
10729 # Compute "$ac_file"'s index in $config_headers.
10730 _am_arg="$ac_file"
10731 _am_stamp_count=1
10732 for _am_header in $config_headers :; do
10733   case $_am_header in
10734     $_am_arg | $_am_arg:* )
10735       break ;;
10736     * )
10737       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10738   esac
10739 done
10740 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10741 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10742          X"$_am_arg" : 'X\(//\)[^/]' \| \
10743          X"$_am_arg" : 'X\(//\)$' \| \
10744          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10745 $as_echo X"$_am_arg" |
10746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10747             s//\1/
10748             q
10749           }
10750           /^X\(\/\/\)[^/].*/{
10751             s//\1/
10752             q
10753           }
10754           /^X\(\/\/\)$/{
10755             s//\1/
10756             q
10757           }
10758           /^X\(\/\).*/{
10759             s//\1/
10760             q
10761           }
10762           s/.*/./; q'`/stamp-h$_am_stamp_count
10763  ;;
10764
10765   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10766 $as_echo "$as_me: executing $ac_file commands" >&6;}
10767  ;;
10768   esac
10769
10770
10771   case $ac_file$ac_mode in
10772     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10773   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10774   # are listed without --file.  Let's play safe and only enable the eval
10775   # if we detect the quoting.
10776   case $CONFIG_FILES in
10777   *\'*) eval set x "$CONFIG_FILES" ;;
10778   *)   set x $CONFIG_FILES ;;
10779   esac
10780   shift
10781   for mf
10782   do
10783     # Strip MF so we end up with the name of the file.
10784     mf=`echo "$mf" | sed -e 's/:.*$//'`
10785     # Check whether this is an Automake generated Makefile or not.
10786     # We used to match only the files named `Makefile.in', but
10787     # some people rename them; so instead we look at the file content.
10788     # Grep'ing the first line is not enough: some people post-process
10789     # each Makefile.in and add a new line on top of each file to say so.
10790     # Grep'ing the whole file is not good either: AIX grep has a line
10791     # limit of 2048, but all sed's we know have understand at least 4000.
10792     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10793       dirpart=`$as_dirname -- "$mf" ||
10794 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10795          X"$mf" : 'X\(//\)[^/]' \| \
10796          X"$mf" : 'X\(//\)$' \| \
10797          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10798 $as_echo X"$mf" |
10799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10800             s//\1/
10801             q
10802           }
10803           /^X\(\/\/\)[^/].*/{
10804             s//\1/
10805             q
10806           }
10807           /^X\(\/\/\)$/{
10808             s//\1/
10809             q
10810           }
10811           /^X\(\/\).*/{
10812             s//\1/
10813             q
10814           }
10815           s/.*/./; q'`
10816     else
10817       continue
10818     fi
10819     # Extract the definition of DEPDIR, am__include, and am__quote
10820     # from the Makefile without running `make'.
10821     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10822     test -z "$DEPDIR" && continue
10823     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10824     test -z "am__include" && continue
10825     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10826     # When using ansi2knr, U may be empty or an underscore; expand it
10827     U=`sed -n 's/^U = //p' < "$mf"`
10828     # Find all dependency output files, they are included files with
10829     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10830     # simplest approach to changing $(DEPDIR) to its actual value in the
10831     # expansion.
10832     for file in `sed -n "
10833       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10834          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10835       # Make sure the directory exists.
10836       test -f "$dirpart/$file" && continue
10837       fdir=`$as_dirname -- "$file" ||
10838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10839          X"$file" : 'X\(//\)[^/]' \| \
10840          X"$file" : 'X\(//\)$' \| \
10841          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10842 $as_echo X"$file" |
10843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10844             s//\1/
10845             q
10846           }
10847           /^X\(\/\/\)[^/].*/{
10848             s//\1/
10849             q
10850           }
10851           /^X\(\/\/\)$/{
10852             s//\1/
10853             q
10854           }
10855           /^X\(\/\).*/{
10856             s//\1/
10857             q
10858           }
10859           s/.*/./; q'`
10860       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10861       # echo "creating $dirpart/$file"
10862       echo '# dummy' > "$dirpart/$file"
10863     done
10864   done
10865 }
10866  ;;
10867     "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10868     "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10869     "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10870     "coregrind/link_tool_exe_l4re":F) chmod +x coregrind/link_tool_exe_l4re ;;
10871
10872   esac
10873 done # for ac_tag
10874
10875
10876 as_fn_exit 0
10877 _ACEOF
10878 ac_clean_files=$ac_clean_files_save
10879
10880 test $ac_write_fail = 0 ||
10881   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10882
10883
10884 # configure is writing to config.log, and then calls config.status.
10885 # config.status does its own redirection, appending to config.log.
10886 # Unfortunately, on DOS this fails, as config.log is still kept open
10887 # by configure, so config.status won't be able to write to it; its
10888 # output is simply discarded.  So we exec the FD to /dev/null,
10889 # effectively closing config.log, so it can be properly (re)opened and
10890 # appended to by config.status.  When coming back to configure, we
10891 # need to make the FD available again.
10892 if test "$no_create" != yes; then
10893   ac_cs_success=:
10894   ac_config_status_args=
10895   test "$silent" = yes &&
10896     ac_config_status_args="$ac_config_status_args --quiet"
10897   exec 5>/dev/null
10898   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10899   exec 5>>config.log
10900   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10901   # would make configure fail if this is the last instruction.
10902   $ac_cs_success || as_fn_exit 1
10903 fi
10904 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10905   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10906 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10907 fi
10908
10909
10910 cat<<EOF
10911
10912          Maximum build arch: ${ARCH_MAX}
10913          Primary build arch: ${VGCONF_ARCH_PRI}
10914        Secondary build arch: ${VGCONF_ARCH_SEC}
10915                    Build OS: ${VGCONF_OS}
10916        Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10917      Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10918          Default supp files: ${DEFAULT_SUPP}
10919        Generated supp files: ${GENERATED_SUPP}
10920
10921 EOF