]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/configure
b0548851f4348d373a34db86edafac6489a7e861
[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.67 for Valgrind 3.6.0.SVN.
4 #
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: valgrind-users@lists.sourceforge.net about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='Valgrind'
554 PACKAGE_TARNAME='valgrind'
555 PACKAGE_VERSION='3.6.0.SVN'
556 PACKAGE_STRING='Valgrind 3.6.0.SVN'
557 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
558 PACKAGE_URL=''
559
560 ac_unique_file="coregrind/m_main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_header_list=
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 HAVE_BUILTIN_ATOMIC_FALSE
602 HAVE_BUILTIN_ATOMIC_TRUE
603 HAVE_OPENMP_FALSE
604 HAVE_OPENMP_TRUE
605 HAVE_BOOST_1_35_FALSE
606 HAVE_BOOST_1_35_TRUE
607 BOOST_LIBS
608 BOOST_CFLAGS
609 HAVE_QTCORE_QATOMICINT_FALSE
610 HAVE_QTCORE_QATOMICINT_TRUE
611 HAVE_QTCORE_FALSE
612 HAVE_QTCORE_TRUE
613 QTCORE_LIBS
614 QTCORE_CFLAGS
615 PKG_CONFIG_LIBDIR
616 PKG_CONFIG_PATH
617 PKG_CONFIG
618 BUILD_MPIWRAP_SEC_FALSE
619 BUILD_MPIWRAP_SEC_TRUE
620 BUILD_MPIWRAP_PRI_FALSE
621 BUILD_MPIWRAP_PRI_TRUE
622 MPI_CC
623 HAVE_PTHREAD_SPINLOCK_FALSE
624 HAVE_PTHREAD_SPINLOCK_TRUE
625 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
626 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
627 HAVE_PTHREAD_BARRIER_FALSE
628 HAVE_PTHREAD_BARRIER_TRUE
629 LIBOBJS
630 BUILD_SSSE3_TESTS_FALSE
631 BUILD_SSSE3_TESTS_TRUE
632 BUILD_SSE3_TESTS_FALSE
633 BUILD_SSE3_TESTS_TRUE
634 FLAG_NO_BUILD_ID
635 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
636 FLAG_FNO_STACK_PROTECTOR
637 FLAG_W_EXTRA
638 FLAG_W_NO_UNINITIALIZED
639 FLAG_W_NO_FORMAT_ZERO_LENGTH
640 FLAG_W_NO_EMPTY_BODY
641 PREFERRED_STACK_BOUNDARY
642 FLAG_MSSE
643 FLAG_MMMX
644 FLAG_MAIX64
645 FLAG_M64
646 FLAG_MAIX32
647 FLAG_M32
648 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
649 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
650 HAVE_ALTIVEC_H_FALSE
651 HAVE_ALTIVEC_H_TRUE
652 HAS_ALTIVEC_FALSE
653 HAS_ALTIVEC_TRUE
654 GLIBC_VERSION
655 EGREP
656 GREP
657 GENERATED_SUPP
658 DEFAULT_SUPP
659 VALT_LOAD_ADDRESS_SEC
660 VALT_LOAD_ADDRESS_PRI
661 VGCONF_HAVE_PLATFORM_SEC_FALSE
662 VGCONF_HAVE_PLATFORM_SEC_TRUE
663 VGCONF_OS_IS_L4RE_FALSE
664 VGCONF_OS_IS_L4RE_TRUE
665 VGCONF_OS_IS_DARWIN_FALSE
666 VGCONF_OS_IS_DARWIN_TRUE
667 VGCONF_OS_IS_AIX5_FALSE
668 VGCONF_OS_IS_AIX5_TRUE
669 VGCONF_OS_IS_LINUX_FALSE
670 VGCONF_OS_IS_LINUX_TRUE
671 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
672 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
673 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
674 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
675 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
676 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
677 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
678 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
679 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
680 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
681 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
682 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
683 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
684 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
685 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
686 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
687 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
688 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
689 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
690 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
691 VGCONF_ARCHS_INCLUDE_ARM_FALSE
692 VGCONF_ARCHS_INCLUDE_ARM_TRUE
693 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
694 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
695 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
696 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
697 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
698 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
699 VGCONF_ARCHS_INCLUDE_X86_FALSE
700 VGCONF_ARCHS_INCLUDE_X86_TRUE
701 VGCONF_PLATFORM_SEC_CAPS
702 VGCONF_PLATFORM_PRI_CAPS
703 VGCONF_ARCH_SEC
704 VGCONF_ARCH_PRI
705 VGCONF_OS
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 DIFF
715 am__fastdepCCAS_FALSE
716 am__fastdepCCAS_TRUE
717 CCASDEPMODE
718 CCASFLAGS
719 CCAS
720 GDB
721 PERL
722 AR
723 SED
724 RANLIB
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
730 CXX
731 CPP
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 LN_S
749 MAINT
750 MAINTAINER_MODE_FALSE
751 MAINTAINER_MODE_TRUE
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
757 AWK
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_maintainer_mode
817 enable_dependency_tracking
818 enable_only64bit
819 enable_only32bit
820 enable_inner
821 enable_tls
822 with_mpicc
823 '
824       ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CPP
833 CXX
834 CXXFLAGS
835 CCC
836 AR
837 CCAS
838 CCASFLAGS
839 PKG_CONFIG
840 PKG_CONFIG_PATH
841 PKG_CONFIG_LIBDIR
842 QTCORE_CFLAGS
843 QTCORE_LIBS'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898   # If the previous option needs an argument, assign it.
899   if test -n "$ac_prev"; then
900     eval $ac_prev=\$ac_option
901     ac_prev=
902     continue
903   fi
904
905   case $ac_option in
906   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907   *=)   ac_optarg= ;;
908   *)    ac_optarg=yes ;;
909   esac
910
911   # Accept the important Cygnus configure options, so we can diagnose typos.
912
913   case $ac_dashdash$ac_option in
914   --)
915     ac_dashdash=yes ;;
916
917   -bindir | --bindir | --bindi | --bind | --bin | --bi)
918     ac_prev=bindir ;;
919   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920     bindir=$ac_optarg ;;
921
922   -build | --build | --buil | --bui | --bu)
923     ac_prev=build_alias ;;
924   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925     build_alias=$ac_optarg ;;
926
927   -cache-file | --cache-file | --cache-fil | --cache-fi \
928   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929     ac_prev=cache_file ;;
930   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932     cache_file=$ac_optarg ;;
933
934   --config-cache | -C)
935     cache_file=config.cache ;;
936
937   -datadir | --datadir | --datadi | --datad)
938     ac_prev=datadir ;;
939   -datadir=* | --datadir=* | --datadi=* | --datad=*)
940     datadir=$ac_optarg ;;
941
942   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943   | --dataroo | --dataro | --datar)
944     ac_prev=datarootdir ;;
945   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947     datarootdir=$ac_optarg ;;
948
949   -disable-* | --disable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=no ;;
964
965   -docdir | --docdir | --docdi | --doc | --do)
966     ac_prev=docdir ;;
967   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968     docdir=$ac_optarg ;;
969
970   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971     ac_prev=dvidir ;;
972   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973     dvidir=$ac_optarg ;;
974
975   -enable-* | --enable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error $? "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=\$ac_optarg ;;
990
991   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993   | --exec | --exe | --ex)
994     ac_prev=exec_prefix ;;
995   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997   | --exec=* | --exe=* | --ex=*)
998     exec_prefix=$ac_optarg ;;
999
1000   -gas | --gas | --ga | --g)
1001     # Obsolete; use --with-gas.
1002     with_gas=yes ;;
1003
1004   -help | --help | --hel | --he | -h)
1005     ac_init_help=long ;;
1006   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007     ac_init_help=recursive ;;
1008   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009     ac_init_help=short ;;
1010
1011   -host | --host | --hos | --ho)
1012     ac_prev=host_alias ;;
1013   -host=* | --host=* | --hos=* | --ho=*)
1014     host_alias=$ac_optarg ;;
1015
1016   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017     ac_prev=htmldir ;;
1018   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019   | --ht=*)
1020     htmldir=$ac_optarg ;;
1021
1022   -includedir | --includedir | --includedi | --included | --include \
1023   | --includ | --inclu | --incl | --inc)
1024     ac_prev=includedir ;;
1025   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026   | --includ=* | --inclu=* | --incl=* | --inc=*)
1027     includedir=$ac_optarg ;;
1028
1029   -infodir | --infodir | --infodi | --infod | --info | --inf)
1030     ac_prev=infodir ;;
1031   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032     infodir=$ac_optarg ;;
1033
1034   -libdir | --libdir | --libdi | --libd)
1035     ac_prev=libdir ;;
1036   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037     libdir=$ac_optarg ;;
1038
1039   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040   | --libexe | --libex | --libe)
1041     ac_prev=libexecdir ;;
1042   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043   | --libexe=* | --libex=* | --libe=*)
1044     libexecdir=$ac_optarg ;;
1045
1046   -localedir | --localedir | --localedi | --localed | --locale)
1047     ac_prev=localedir ;;
1048   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049     localedir=$ac_optarg ;;
1050
1051   -localstatedir | --localstatedir | --localstatedi | --localstated \
1052   | --localstate | --localstat | --localsta | --localst | --locals)
1053     ac_prev=localstatedir ;;
1054   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056     localstatedir=$ac_optarg ;;
1057
1058   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059     ac_prev=mandir ;;
1060   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061     mandir=$ac_optarg ;;
1062
1063   -nfp | --nfp | --nf)
1064     # Obsolete; use --without-fp.
1065     with_fp=no ;;
1066
1067   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068   | --no-cr | --no-c | -n)
1069     no_create=yes ;;
1070
1071   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073     no_recursion=yes ;;
1074
1075   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077   | --oldin | --oldi | --old | --ol | --o)
1078     ac_prev=oldincludedir ;;
1079   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082     oldincludedir=$ac_optarg ;;
1083
1084   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085     ac_prev=prefix ;;
1086   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087     prefix=$ac_optarg ;;
1088
1089   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090   | --program-pre | --program-pr | --program-p)
1091     ac_prev=program_prefix ;;
1092   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094     program_prefix=$ac_optarg ;;
1095
1096   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097   | --program-suf | --program-su | --program-s)
1098     ac_prev=program_suffix ;;
1099   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101     program_suffix=$ac_optarg ;;
1102
1103   -program-transform-name | --program-transform-name \
1104   | --program-transform-nam | --program-transform-na \
1105   | --program-transform-n | --program-transform- \
1106   | --program-transform | --program-transfor \
1107   | --program-transfo | --program-transf \
1108   | --program-trans | --program-tran \
1109   | --progr-tra | --program-tr | --program-t)
1110     ac_prev=program_transform_name ;;
1111   -program-transform-name=* | --program-transform-name=* \
1112   | --program-transform-nam=* | --program-transform-na=* \
1113   | --program-transform-n=* | --program-transform-=* \
1114   | --program-transform=* | --program-transfor=* \
1115   | --program-transfo=* | --program-transf=* \
1116   | --program-trans=* | --program-tran=* \
1117   | --progr-tra=* | --program-tr=* | --program-t=*)
1118     program_transform_name=$ac_optarg ;;
1119
1120   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121     ac_prev=pdfdir ;;
1122   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123     pdfdir=$ac_optarg ;;
1124
1125   -psdir | --psdir | --psdi | --psd | --ps)
1126     ac_prev=psdir ;;
1127   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128     psdir=$ac_optarg ;;
1129
1130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131   | -silent | --silent | --silen | --sile | --sil)
1132     silent=yes ;;
1133
1134   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135     ac_prev=sbindir ;;
1136   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137   | --sbi=* | --sb=*)
1138     sbindir=$ac_optarg ;;
1139
1140   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142   | --sharedst | --shareds | --shared | --share | --shar \
1143   | --sha | --sh)
1144     ac_prev=sharedstatedir ;;
1145   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148   | --sha=* | --sh=*)
1149     sharedstatedir=$ac_optarg ;;
1150
1151   -site | --site | --sit)
1152     ac_prev=site ;;
1153   -site=* | --site=* | --sit=*)
1154     site=$ac_optarg ;;
1155
1156   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157     ac_prev=srcdir ;;
1158   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159     srcdir=$ac_optarg ;;
1160
1161   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162   | --syscon | --sysco | --sysc | --sys | --sy)
1163     ac_prev=sysconfdir ;;
1164   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166     sysconfdir=$ac_optarg ;;
1167
1168   -target | --target | --targe | --targ | --tar | --ta | --t)
1169     ac_prev=target_alias ;;
1170   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171     target_alias=$ac_optarg ;;
1172
1173   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174     verbose=yes ;;
1175
1176   -version | --version | --versio | --versi | --vers | -V)
1177     ac_init_version=: ;;
1178
1179   -with-* | --with-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       as_fn_error $? "invalid package name: $ac_useropt"
1184     ac_useropt_orig=$ac_useropt
1185     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186     case $ac_user_opts in
1187       *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191          ac_unrecognized_sep=', ';;
1192     esac
1193     eval with_$ac_useropt=\$ac_optarg ;;
1194
1195   -without-* | --without-*)
1196     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199       as_fn_error $? "invalid package name: $ac_useropt"
1200     ac_useropt_orig=$ac_useropt
1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202     case $ac_user_opts in
1203       *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207          ac_unrecognized_sep=', ';;
1208     esac
1209     eval with_$ac_useropt=no ;;
1210
1211   --x)
1212     # Obsolete; use --with-x.
1213     with_x=yes ;;
1214
1215   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216   | --x-incl | --x-inc | --x-in | --x-i)
1217     ac_prev=x_includes ;;
1218   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220     x_includes=$ac_optarg ;;
1221
1222   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224     ac_prev=x_libraries ;;
1225   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227     x_libraries=$ac_optarg ;;
1228
1229   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1231     ;;
1232
1233   *=*)
1234     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235     # Reject names that are not valid shell variable names.
1236     case $ac_envvar in #(
1237       '' | [0-9]* | *[!_$as_cr_alnum]* )
1238       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239     esac
1240     eval $ac_envvar=\$ac_optarg
1241     export $ac_envvar ;;
1242
1243   *)
1244     # FIXME: should be removed in autoconf 3.0.
1245     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249     ;;
1250
1251   esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256   as_fn_error $? "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260   case $enable_option_checking in
1261     no) ;;
1262     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264   esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269                 datadir sysconfdir sharedstatedir localstatedir includedir \
1270                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271                 libdir localedir mandir
1272 do
1273   eval ac_val=\$$ac_var
1274   # Remove trailing slashes.
1275   case $ac_val in
1276     */ )
1277       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278       eval $ac_var=\$ac_val;;
1279   esac
1280   # Be sure to have absolute directory names.
1281   case $ac_val in
1282     [\\/$]* | ?:[\\/]* )  continue;;
1283     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284   esac
1285   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297   if test "x$build_alias" = x; then
1298     cross_compiling=maybe
1299     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1300     If a cross compiler is detected then cross compile mode will be used" >&2
1301   elif test "x$build_alias" != "x$host_alias"; then
1302     cross_compiling=yes
1303   fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315   as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317   as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322   ac_srcdir_defaulted=yes
1323   # Try the directory containing this script, then the parent directory.
1324   ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326          X"$as_myself" : 'X\(//\)[^/]' \| \
1327          X"$as_myself" : 'X\(//\)$' \| \
1328          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)[^/].*/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\).*/{
1343             s//\1/
1344             q
1345           }
1346           s/.*/./; q'`
1347   srcdir=$ac_confdir
1348   if test ! -r "$srcdir/$ac_unique_file"; then
1349     srcdir=..
1350   fi
1351 else
1352   ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361         pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364   srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_env_${ac_var}_value=\$${ac_var}
1375   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383   # Omit some internal or obsolete options to make the list less imposing.
1384   # This message is too long to be a string in the A/UX 3.1 sh.
1385   cat <<_ACEOF
1386 \`configure' configures Valgrind 3.6.0.SVN to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE.  See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396   -h, --help              display this help and exit
1397       --help=short        display options specific to this package
1398       --help=recursive    display the short help of all the included packages
1399   -V, --version           display version information and exit
1400   -q, --quiet, --silent   do not print \`checking ...' messages
1401       --cache-file=FILE   cache test results in FILE [disabled]
1402   -C, --config-cache      alias for \`--cache-file=config.cache'
1403   -n, --no-create         do not create output files
1404       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407   --prefix=PREFIX         install architecture-independent files in PREFIX
1408                           [$ac_default_prefix]
1409   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1410                           [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420   --bindir=DIR            user executables [EPREFIX/bin]
1421   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1422   --libexecdir=DIR        program executables [EPREFIX/libexec]
1423   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1424   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1425   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1426   --libdir=DIR            object code libraries [EPREFIX/lib]
1427   --includedir=DIR        C header files [PREFIX/include]
1428   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1429   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1430   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1431   --infodir=DIR           info documentation [DATAROOTDIR/info]
1432   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1433   --mandir=DIR            man documentation [DATAROOTDIR/man]
1434   --docdir=DIR            documentation root [DATAROOTDIR/doc/valgrind]
1435   --htmldir=DIR           html documentation [DOCDIR]
1436   --dvidir=DIR            dvi documentation [DOCDIR]
1437   --pdfdir=DIR            pdf documentation [DOCDIR]
1438   --psdir=DIR             ps documentation [DOCDIR]
1439 _ACEOF
1440
1441   cat <<\_ACEOF
1442
1443 Program names:
1444   --program-prefix=PREFIX            prepend PREFIX to installed program names
1445   --program-suffix=SUFFIX            append SUFFIX to installed program names
1446   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1447
1448 System types:
1449   --build=BUILD     configure for building on BUILD [guessed]
1450   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455   case $ac_init_help in
1456      short | recursive ) echo "Configuration of Valgrind 3.6.0.SVN:";;
1457    esac
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-option-checking  ignore unrecognized --enable/--with options
1462   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464   --enable-maintainer-mode  enable make rules and dependencies not useful
1465                           (and sometimes confusing) to the casual installer
1466   --disable-dependency-tracking  speeds up one-time build
1467   --enable-dependency-tracking   do not reject slow dependency extractors
1468   --enable-only64bit      do a 64-bit only build
1469   --enable-only32bit      do a 32-bit only build
1470   --enable-inner          enables self-hosting
1471   --enable-tls            platform supports TLS
1472
1473 Optional Packages:
1474   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476   --with-mpicc=           Specify name of MPI2-ised C compiler
1477
1478 Some influential environment variables:
1479   CC          C compiler command
1480   CFLAGS      C compiler flags
1481   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482               nonstandard directory <lib dir>
1483   LIBS        libraries to pass to the linker, e.g. -l<library>
1484   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485               you have headers in a nonstandard directory <include dir>
1486   CPP         C preprocessor
1487   CXX         C++ compiler command
1488   CXXFLAGS    C++ compiler flags
1489   AR          Archiver command
1490   CCAS        assembler compiler command (defaults to CC)
1491   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1492   PKG_CONFIG  path to pkg-config utility
1493   PKG_CONFIG_PATH
1494               directories to add to pkg-config's search path
1495   PKG_CONFIG_LIBDIR
1496               path overriding pkg-config's built-in search path
1497   QTCORE_CFLAGS
1498               C compiler flags for QTCORE, overriding pkg-config
1499   QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <valgrind-users@lists.sourceforge.net>.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510   # If there are subdirs, report their specific --help.
1511   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512     test -d "$ac_dir" ||
1513       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514       continue
1515     ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521   # A ".." for each directory in $ac_dir_suffix.
1522   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523   case $ac_top_builddir_sub in
1524   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526   esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534   .)  # We are building in place.
1535     ac_srcdir=.
1536     ac_top_srcdir=$ac_top_builddir_sub
1537     ac_abs_top_srcdir=$ac_pwd ;;
1538   [\\/]* | ?:[\\/]* )  # Absolute name.
1539     ac_srcdir=$srcdir$ac_dir_suffix;
1540     ac_top_srcdir=$srcdir
1541     ac_abs_top_srcdir=$srcdir ;;
1542   *) # Relative name.
1543     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544     ac_top_srcdir=$ac_top_build_prefix$srcdir
1545     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549     cd "$ac_dir" || { ac_status=$?; continue; }
1550     # Check for guested configure.
1551     if test -f "$ac_srcdir/configure.gnu"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554     elif test -f "$ac_srcdir/configure"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure" --help=recursive
1557     else
1558       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559     fi || ac_status=$?
1560     cd "$ac_pwd" || { ac_status=$?; break; }
1561   done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566   cat <<\_ACEOF
1567 Valgrind configure 3.6.0.SVN
1568 generated by GNU Autoconf 2.67
1569
1570 Copyright (C) 2010 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574   exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587   rm -f conftest.$ac_objext
1588   if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591   *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595   (eval "$ac_compile") 2>conftest.err
1596   ac_status=$?
1597   if test -s conftest.err; then
1598     grep -v '^ *+' conftest.err >conftest.er1
1599     cat conftest.er1 >&5
1600     mv -f conftest.er1 conftest.err
1601   fi
1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603   test $ac_status = 0; } && {
1604          test -z "$ac_c_werror_flag" ||
1605          test ! -s conftest.err
1606        } && test -s conftest.$ac_objext; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612         ac_retval=1
1613 fi
1614   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615   as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_cpp ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 case "(($ac_try" in
1627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628   *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633   ac_status=$?
1634   if test -s conftest.err; then
1635     grep -v '^ *+' conftest.err >conftest.er1
1636     cat conftest.er1 >&5
1637     mv -f conftest.er1 conftest.err
1638   fi
1639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640   test $ac_status = 0; } > conftest.i && {
1641          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642          test ! -s conftest.err
1643        }; then :
1644   ac_retval=0
1645 else
1646   $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649     ac_retval=1
1650 fi
1651   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652   as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_cpp
1655
1656 # ac_fn_cxx_try_compile LINENO
1657 # ----------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_cxx_try_compile ()
1660 {
1661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662   rm -f conftest.$ac_objext
1663   if { { ac_try="$ac_compile"
1664 case "(($ac_try" in
1665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666   *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670   (eval "$ac_compile") 2>conftest.err
1671   ac_status=$?
1672   if test -s conftest.err; then
1673     grep -v '^ *+' conftest.err >conftest.er1
1674     cat conftest.er1 >&5
1675     mv -f conftest.er1 conftest.err
1676   fi
1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678   test $ac_status = 0; } && {
1679          test -z "$ac_cxx_werror_flag" ||
1680          test ! -s conftest.err
1681        } && test -s conftest.$ac_objext; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687         ac_retval=1
1688 fi
1689   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690   as_fn_set_status $ac_retval
1691
1692 } # ac_fn_cxx_try_compile
1693
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
1698 {
1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700   rm -f conftest.$ac_objext conftest$ac_exeext
1701   if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704   *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708   (eval "$ac_link") 2>conftest.err
1709   ac_status=$?
1710   if test -s conftest.err; then
1711     grep -v '^ *+' conftest.err >conftest.er1
1712     cat conftest.er1 >&5
1713     mv -f conftest.er1 conftest.err
1714   fi
1715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716   test $ac_status = 0; } && {
1717          test -z "$ac_c_werror_flag" ||
1718          test ! -s conftest.err
1719        } && test -s conftest$ac_exeext && {
1720          test "$cross_compiling" = yes ||
1721          $as_test_x conftest$ac_exeext
1722        }; then :
1723   ac_retval=0
1724 else
1725   $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728         ac_retval=1
1729 fi
1730   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732   # interfere with the next link command; also delete a directory that is
1733   # left behind by Apple's compiler.  We do this before executing the actions.
1734   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736   as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_link
1739
1740 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1743 # the include files in INCLUDES and setting the cache variable VAR
1744 # accordingly.
1745 ac_fn_c_check_header_mongrel ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   if eval "test \"\${$3+set}\"" = set; then :
1749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval "test \"\${$3+set}\"" = set; then :
1752   $as_echo_n "(cached) " >&6
1753 fi
1754 eval ac_res=\$$3
1755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 else
1758   # Is the header compilable?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1760 $as_echo_n "checking $2 usability... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767   ac_header_compiler=yes
1768 else
1769   ac_header_compiler=no
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1773 $as_echo "$ac_header_compiler" >&6; }
1774
1775 # Is the header present?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1777 $as_echo_n "checking $2 presence... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h.  */
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_cpp "$LINENO"; then :
1783   ac_header_preproc=yes
1784 else
1785   ac_header_preproc=no
1786 fi
1787 rm -f conftest.err conftest.i conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1789 $as_echo "$ac_header_preproc" >&6; }
1790
1791 # So?  What about this header?
1792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1793   yes:no: )
1794     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1795 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1796     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798     ;;
1799   no:yes:* )
1800     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1801 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1803 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1805 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1807 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ( $as_echo "## --------------------------------------------------- ##
1811 ## Report this to valgrind-users@lists.sourceforge.net ##
1812 ## --------------------------------------------------- ##"
1813      ) | sed "s/^/$as_me: WARNING:     /" >&2
1814     ;;
1815 esac
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval "test \"\${$3+set}\"" = set; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   eval "$3=\$ac_header_compiler"
1822 fi
1823 eval ac_res=\$$3
1824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 fi
1827   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828
1829 } # ac_fn_c_check_header_mongrel
1830
1831 # ac_fn_c_try_run LINENO
1832 # ----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834 # that executables *can* be run.
1835 ac_fn_c_try_run ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_link") 2>&5
1846   ac_status=$?
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849   { { case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_try") 2>&5
1856   ac_status=$?
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; }; }; then :
1859   ac_retval=0
1860 else
1861   $as_echo "$as_me: program exited with status $ac_status" >&5
1862        $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865        ac_retval=$ac_status
1866 fi
1867   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869   as_fn_set_status $ac_retval
1870
1871 } # ac_fn_c_try_run
1872
1873 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists and can be compiled using the include files in
1876 # INCLUDES, setting the cache variable VAR accordingly.
1877 ac_fn_c_check_header_compile ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval "test \"\${$3+set}\"" = set; then :
1883   $as_echo_n "(cached) " >&6
1884 else
1885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h.  */
1887 $4
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891   eval "$3=yes"
1892 else
1893   eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901
1902 } # ac_fn_c_check_header_compile
1903
1904 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905 # -------------------------------------------
1906 # Tests whether TYPE exists after having included INCLUDES, setting cache
1907 # variable VAR accordingly.
1908 ac_fn_c_check_type ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval "test \"\${$3+set}\"" = set; then :
1914   $as_echo_n "(cached) " >&6
1915 else
1916   eval "$3=no"
1917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 $4
1920 int
1921 main ()
1922 {
1923 if (sizeof ($2))
1924          return 0;
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 $4
1933 int
1934 main ()
1935 {
1936 if (sizeof (($2)))
1937             return 0;
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943
1944 else
1945   eval "$3=yes"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 fi
1951 eval ac_res=\$$3
1952                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956 } # ac_fn_c_check_type
1957
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1962 {
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval "test \"\${$3+set}\"" = set; then :
1967   $as_echo_n "(cached) " >&6
1968 else
1969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h.  */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1973 #define $2 innocuous_$2
1974
1975 /* System header to define __stub macros and hopefully few prototypes,
1976     which can conflict with char $2 (); below.
1977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978     <limits.h> exists even on freestanding compilers.  */
1979
1980 #ifdef __STDC__
1981 # include <limits.h>
1982 #else
1983 # include <assert.h>
1984 #endif
1985
1986 #undef $2
1987
1988 /* Override any GCC internal prototype to avoid an error.
1989    Use char because int might match the return type of a GCC
1990    builtin and then its argument prototype would still apply.  */
1991 #ifdef __cplusplus
1992 extern "C"
1993 #endif
1994 char $2 ();
1995 /* The GNU C library defines this for functions which it implements
1996     to always fail with ENOSYS.  Some functions are actually named
1997     something starting with __ and the normal name is an alias.  */
1998 #if defined __stub_$2 || defined __stub___$2
1999 choke me
2000 #endif
2001
2002 int
2003 main ()
2004 {
2005 return $2 ();
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_link "$LINENO"; then :
2011   eval "$3=yes"
2012 else
2013   eval "$3=no"
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext \
2016     conftest$ac_exeext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022
2023 } # ac_fn_c_check_func
2024
2025 # ac_fn_cxx_try_link LINENO
2026 # -------------------------
2027 # Try to link conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_cxx_try_link ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   rm -f conftest.$ac_objext conftest$ac_exeext
2032   if { { ac_try="$ac_link"
2033 case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039   (eval "$ac_link") 2>conftest.err
2040   ac_status=$?
2041   if test -s conftest.err; then
2042     grep -v '^ *+' conftest.err >conftest.er1
2043     cat conftest.er1 >&5
2044     mv -f conftest.er1 conftest.err
2045   fi
2046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047   test $ac_status = 0; } && {
2048          test -z "$ac_cxx_werror_flag" ||
2049          test ! -s conftest.err
2050        } && test -s conftest$ac_exeext && {
2051          test "$cross_compiling" = yes ||
2052          $as_test_x conftest$ac_exeext
2053        }; then :
2054   ac_retval=0
2055 else
2056   $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059         ac_retval=1
2060 fi
2061   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063   # interfere with the next link command; also delete a directory that is
2064   # left behind by Apple's compiler.  We do this before executing the actions.
2065   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067   as_fn_set_status $ac_retval
2068
2069 } # ac_fn_cxx_try_link
2070 cat >config.log <<_ACEOF
2071 This file contains any messages produced by compilers while
2072 running configure, to aid debugging if configure makes a mistake.
2073
2074 It was created by Valgrind $as_me 3.6.0.SVN, which was
2075 generated by GNU Autoconf 2.67.  Invocation command line was
2076
2077   $ $0 $@
2078
2079 _ACEOF
2080 exec 5>>config.log
2081 {
2082 cat <<_ASUNAME
2083 ## --------- ##
2084 ## Platform. ##
2085 ## --------- ##
2086
2087 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2088 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2089 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2090 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2091 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2092
2093 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2094 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2095
2096 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2097 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2098 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2099 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2100 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2101 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2102 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2103
2104 _ASUNAME
2105
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111     $as_echo "PATH: $as_dir"
2112   done
2113 IFS=$as_save_IFS
2114
2115 } >&5
2116
2117 cat >&5 <<_ACEOF
2118
2119
2120 ## ----------- ##
2121 ## Core tests. ##
2122 ## ----------- ##
2123
2124 _ACEOF
2125
2126
2127 # Keep a trace of the command line.
2128 # Strip out --no-create and --no-recursion so they do not pile up.
2129 # Strip out --silent because we don't want to record it for future runs.
2130 # Also quote any args containing shell meta-characters.
2131 # Make two passes to allow for proper duplicate-argument suppression.
2132 ac_configure_args=
2133 ac_configure_args0=
2134 ac_configure_args1=
2135 ac_must_keep_next=false
2136 for ac_pass in 1 2
2137 do
2138   for ac_arg
2139   do
2140     case $ac_arg in
2141     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2142     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2143     | -silent | --silent | --silen | --sile | --sil)
2144       continue ;;
2145     *\'*)
2146       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2147     esac
2148     case $ac_pass in
2149     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2150     2)
2151       as_fn_append ac_configure_args1 " '$ac_arg'"
2152       if test $ac_must_keep_next = true; then
2153         ac_must_keep_next=false # Got value, back to normal.
2154       else
2155         case $ac_arg in
2156           *=* | --config-cache | -C | -disable-* | --disable-* \
2157           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2158           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2159           | -with-* | --with-* | -without-* | --without-* | --x)
2160             case "$ac_configure_args0 " in
2161               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2162             esac
2163             ;;
2164           -* ) ac_must_keep_next=true ;;
2165         esac
2166       fi
2167       as_fn_append ac_configure_args " '$ac_arg'"
2168       ;;
2169     esac
2170   done
2171 done
2172 { ac_configure_args0=; unset ac_configure_args0;}
2173 { ac_configure_args1=; unset ac_configure_args1;}
2174
2175 # When interrupted or exit'd, cleanup temporary files, and complete
2176 # config.log.  We remove comments because anyway the quotes in there
2177 # would cause problems or look ugly.
2178 # WARNING: Use '\'' to represent an apostrophe within the trap.
2179 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2180 trap 'exit_status=$?
2181   # Save into config.log some information that might help in debugging.
2182   {
2183     echo
2184
2185     $as_echo "## ---------------- ##
2186 ## Cache variables. ##
2187 ## ---------------- ##"
2188     echo
2189     # The following way of writing the cache mishandles newlines in values,
2190 (
2191   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2192     eval ac_val=\$$ac_var
2193     case $ac_val in #(
2194     *${as_nl}*)
2195       case $ac_var in #(
2196       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2197 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2198       esac
2199       case $ac_var in #(
2200       _ | IFS | as_nl) ;; #(
2201       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2202       *) { eval $ac_var=; unset $ac_var;} ;;
2203       esac ;;
2204     esac
2205   done
2206   (set) 2>&1 |
2207     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2208     *${as_nl}ac_space=\ *)
2209       sed -n \
2210         "s/'\''/'\''\\\\'\'''\''/g;
2211           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2212       ;; #(
2213     *)
2214       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2215       ;;
2216     esac |
2217     sort
2218 )
2219     echo
2220
2221     $as_echo "## ----------------- ##
2222 ## Output variables. ##
2223 ## ----------------- ##"
2224     echo
2225     for ac_var in $ac_subst_vars
2226     do
2227       eval ac_val=\$$ac_var
2228       case $ac_val in
2229       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230       esac
2231       $as_echo "$ac_var='\''$ac_val'\''"
2232     done | sort
2233     echo
2234
2235     if test -n "$ac_subst_files"; then
2236       $as_echo "## ------------------- ##
2237 ## File substitutions. ##
2238 ## ------------------- ##"
2239       echo
2240       for ac_var in $ac_subst_files
2241       do
2242         eval ac_val=\$$ac_var
2243         case $ac_val in
2244         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245         esac
2246         $as_echo "$ac_var='\''$ac_val'\''"
2247       done | sort
2248       echo
2249     fi
2250
2251     if test -s confdefs.h; then
2252       $as_echo "## ----------- ##
2253 ## confdefs.h. ##
2254 ## ----------- ##"
2255       echo
2256       cat confdefs.h
2257       echo
2258     fi
2259     test "$ac_signal" != 0 &&
2260       $as_echo "$as_me: caught signal $ac_signal"
2261     $as_echo "$as_me: exit $exit_status"
2262   } >&5
2263   rm -f core *.core core.conftest.* &&
2264     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2265     exit $exit_status
2266 ' 0
2267 for ac_signal in 1 2 13 15; do
2268   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2269 done
2270 ac_signal=0
2271
2272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2273 rm -f -r conftest* confdefs.h
2274
2275 $as_echo "/* confdefs.h */" > confdefs.h
2276
2277 # Predefined preprocessor variables.
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_NAME "$PACKAGE_NAME"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_STRING "$PACKAGE_STRING"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_URL "$PACKAGE_URL"
2301 _ACEOF
2302
2303
2304 # Let the site file select an alternate cache file if it wants to.
2305 # Prefer an explicitly selected file to automatically selected ones.
2306 ac_site_file1=NONE
2307 ac_site_file2=NONE
2308 if test -n "$CONFIG_SITE"; then
2309   # We do not want a PATH search for config.site.
2310   case $CONFIG_SITE in #((
2311     -*)  ac_site_file1=./$CONFIG_SITE;;
2312     */*) ac_site_file1=$CONFIG_SITE;;
2313     *)   ac_site_file1=./$CONFIG_SITE;;
2314   esac
2315 elif test "x$prefix" != xNONE; then
2316   ac_site_file1=$prefix/share/config.site
2317   ac_site_file2=$prefix/etc/config.site
2318 else
2319   ac_site_file1=$ac_default_prefix/share/config.site
2320   ac_site_file2=$ac_default_prefix/etc/config.site
2321 fi
2322 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2323 do
2324   test "x$ac_site_file" = xNONE && continue
2325   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2326     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2327 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2328     sed 's/^/| /' "$ac_site_file" >&5
2329     . "$ac_site_file" \
2330       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 as_fn_error $? "failed to load site script $ac_site_file
2333 See \`config.log' for more details" "$LINENO" 5 ; }
2334   fi
2335 done
2336
2337 if test -r "$cache_file"; then
2338   # Some versions of bash will fail to source /dev/null (special files
2339   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2340   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2341     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2342 $as_echo "$as_me: loading cache $cache_file" >&6;}
2343     case $cache_file in
2344       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345       *)                      . "./$cache_file";;
2346     esac
2347   fi
2348 else
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2350 $as_echo "$as_me: creating cache $cache_file" >&6;}
2351   >$cache_file
2352 fi
2353
2354 as_fn_append ac_header_list " stdlib.h"
2355 as_fn_append ac_header_list " unistd.h"
2356 as_fn_append ac_header_list " sys/param.h"
2357 # Check that the precious variables saved in the cache have kept the same
2358 # value.
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362   eval ac_new_set=\$ac_env_${ac_var}_set
2363   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364   eval ac_new_val=\$ac_env_${ac_var}_value
2365   case $ac_old_set,$ac_new_set in
2366     set,)
2367       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369       ac_cache_corrupted=: ;;
2370     ,set)
2371       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373       ac_cache_corrupted=: ;;
2374     ,);;
2375     *)
2376       if test "x$ac_old_val" != "x$ac_new_val"; then
2377         # differences in whitespace do not lead to failure.
2378         ac_old_val_w=`echo x $ac_old_val`
2379         ac_new_val_w=`echo x $ac_new_val`
2380         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383           ac_cache_corrupted=:
2384         else
2385           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387           eval $ac_var=\$ac_old_val
2388         fi
2389         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2390 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2391         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2393       fi;;
2394   esac
2395   # Pass precious variables to config.status.
2396   if test "$ac_new_set" = set; then
2397     case $ac_new_val in
2398     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399     *) ac_arg=$ac_var=$ac_new_val ;;
2400     esac
2401     case " $ac_configure_args " in
2402       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2403       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404     esac
2405   fi
2406 done
2407 if $ac_cache_corrupted; then
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2413 fi
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2417
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423
2424
2425
2426 ac_config_headers="$ac_config_headers config.h"
2427
2428 am__api_version='1.11'
2429
2430 ac_aux_dir=
2431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2432   if test -f "$ac_dir/install-sh"; then
2433     ac_aux_dir=$ac_dir
2434     ac_install_sh="$ac_aux_dir/install-sh -c"
2435     break
2436   elif test -f "$ac_dir/install.sh"; then
2437     ac_aux_dir=$ac_dir
2438     ac_install_sh="$ac_aux_dir/install.sh -c"
2439     break
2440   elif test -f "$ac_dir/shtool"; then
2441     ac_aux_dir=$ac_dir
2442     ac_install_sh="$ac_aux_dir/shtool install -c"
2443     break
2444   fi
2445 done
2446 if test -z "$ac_aux_dir"; then
2447   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2448 fi
2449
2450 # These three variables are undocumented and unsupported,
2451 # and are intended to be withdrawn in a future Autoconf release.
2452 # They can cause serious problems if a builder's source tree is in a directory
2453 # whose full name contains unusual characters.
2454 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2455 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2456 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2457
2458
2459 # Find a good install program.  We prefer a C program (faster),
2460 # so one script is as good as another.  But avoid the broken or
2461 # incompatible versions:
2462 # SysV /etc/install, /usr/sbin/install
2463 # SunOS /usr/etc/install
2464 # IRIX /sbin/install
2465 # AIX /bin/install
2466 # AmigaOS /C/install, which installs bootblocks on floppy discs
2467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2470 # OS/2's system install, which has a completely different semantic
2471 # ./install, which can be erroneously created by make from ./install.sh.
2472 # Reject install programs that cannot install multiple files.
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2474 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2475 if test -z "$INSTALL"; then
2476 if test "${ac_cv_path_install+set}" = set; then :
2477   $as_echo_n "(cached) " >&6
2478 else
2479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484     # Account for people who put trailing slashes in PATH elements.
2485 case $as_dir/ in #((
2486   ./ | .// | /[cC]/* | \
2487   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2488   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2489   /usr/ucb/* ) ;;
2490   *)
2491     # OSF1 and SCO ODT 3.0 have their own names for install.
2492     # Don't use installbsd from OSF since it installs stuff as root
2493     # by default.
2494     for ac_prog in ginstall scoinst install; do
2495       for ac_exec_ext in '' $ac_executable_extensions; do
2496         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2497           if test $ac_prog = install &&
2498             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499             # AIX install.  It has an incompatible calling convention.
2500             :
2501           elif test $ac_prog = install &&
2502             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503             # program-specific install script used by HP pwplus--don't use.
2504             :
2505           else
2506             rm -rf conftest.one conftest.two conftest.dir
2507             echo one > conftest.one
2508             echo two > conftest.two
2509             mkdir conftest.dir
2510             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2511               test -s conftest.one && test -s conftest.two &&
2512               test -s conftest.dir/conftest.one &&
2513               test -s conftest.dir/conftest.two
2514             then
2515               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2516               break 3
2517             fi
2518           fi
2519         fi
2520       done
2521     done
2522     ;;
2523 esac
2524
2525   done
2526 IFS=$as_save_IFS
2527
2528 rm -rf conftest.one conftest.two conftest.dir
2529
2530 fi
2531   if test "${ac_cv_path_install+set}" = set; then
2532     INSTALL=$ac_cv_path_install
2533   else
2534     # As a last resort, use the slow shell script.  Don't cache a
2535     # value for INSTALL within a source directory, because that will
2536     # break other packages using the cache if that directory is
2537     # removed, or if the value is a relative name.
2538     INSTALL=$ac_install_sh
2539   fi
2540 fi
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2542 $as_echo "$INSTALL" >&6; }
2543
2544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2545 # It thinks the first close brace ends the variable substitution.
2546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2547
2548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2549
2550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2551
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2553 $as_echo_n "checking whether build environment is sane... " >&6; }
2554 # Just in case
2555 sleep 1
2556 echo timestamp > conftest.file
2557 # Reject unsafe characters in $srcdir or the absolute working directory
2558 # name.  Accept space and tab only in the latter.
2559 am_lf='
2560 '
2561 case `pwd` in
2562   *[\\\"\#\$\&\'\`$am_lf]*)
2563     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2564 esac
2565 case $srcdir in
2566   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2567     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2568 esac
2569
2570 # Do `set' in a subshell so we don't clobber the current shell's
2571 # arguments.  Must try -L first in case configure is actually a
2572 # symlink; some systems play weird games with the mod time of symlinks
2573 # (eg FreeBSD returns the mod time of the symlink's containing
2574 # directory).
2575 if (
2576    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2577    if test "$*" = "X"; then
2578       # -L didn't work.
2579       set X `ls -t "$srcdir/configure" conftest.file`
2580    fi
2581    rm -f conftest.file
2582    if test "$*" != "X $srcdir/configure conftest.file" \
2583       && test "$*" != "X conftest.file $srcdir/configure"; then
2584
2585       # If neither matched, then we have a broken ls.  This can happen
2586       # if, for instance, CONFIG_SHELL is bash and it inherits a
2587       # broken ls alias from the environment.  This has actually
2588       # happened.  Such a system could not be considered "sane".
2589       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2590 alias in your environment" "$LINENO" 5
2591    fi
2592
2593    test "$2" = conftest.file
2594    )
2595 then
2596    # Ok.
2597    :
2598 else
2599    as_fn_error $? "newly created file is older than distributed files!
2600 Check your system clock" "$LINENO" 5
2601 fi
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603 $as_echo "yes" >&6; }
2604 test "$program_prefix" != NONE &&
2605   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2606 # Use a double $ so make ignores it.
2607 test "$program_suffix" != NONE &&
2608   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2609 # Double any \ or $.
2610 # By default was `s,x,x', remove it if useless.
2611 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2612 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2613
2614 # expand $ac_aux_dir to an absolute path
2615 am_aux_dir=`cd $ac_aux_dir && pwd`
2616
2617 if test x"${MISSING+set}" != xset; then
2618   case $am_aux_dir in
2619   *\ * | *\     *)
2620     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2621   *)
2622     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2623   esac
2624 fi
2625 # Use eval to expand $SHELL
2626 if eval "$MISSING --run true"; then
2627   am_missing_run="$MISSING --run "
2628 else
2629   am_missing_run=
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2631 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2632 fi
2633
2634 if test x"${install_sh}" != xset; then
2635   case $am_aux_dir in
2636   *\ * | *\     *)
2637     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2638   *)
2639     install_sh="\${SHELL} $am_aux_dir/install-sh"
2640   esac
2641 fi
2642
2643 # Installed binaries are usually stripped using `strip' when the user
2644 # run `make install-strip'.  However `strip' might not be the right
2645 # tool to use in cross-compilation environments, therefore Automake
2646 # will honor the `STRIP' environment variable to overrule this program.
2647 if test "$cross_compiling" != no; then
2648   if test -n "$ac_tool_prefix"; then
2649   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2650 set dummy ${ac_tool_prefix}strip; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_STRIP+set}" = set; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656   if test -n "$STRIP"; then
2657   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664     for ac_exec_ext in '' $ac_executable_extensions; do
2665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671   done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 STRIP=$ac_cv_prog_STRIP
2677 if test -n "$STRIP"; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2679 $as_echo "$STRIP" >&6; }
2680 else
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 fi
2687 if test -z "$ac_cv_prog_STRIP"; then
2688   ac_ct_STRIP=$STRIP
2689   # Extract the first word of "strip", so it can be a program name with args.
2690 set dummy strip; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2694   $as_echo_n "(cached) " >&6
2695 else
2696   if test -n "$ac_ct_STRIP"; then
2697   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704     for ac_exec_ext in '' $ac_executable_extensions; do
2705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706     ac_cv_prog_ac_ct_STRIP="strip"
2707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709   fi
2710 done
2711   done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2717 if test -n "$ac_ct_STRIP"; then
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2719 $as_echo "$ac_ct_STRIP" >&6; }
2720 else
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 fi
2724
2725   if test "x$ac_ct_STRIP" = x; then
2726     STRIP=":"
2727   else
2728     case $cross_compiling:$ac_tool_warned in
2729 yes:)
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732 ac_tool_warned=yes ;;
2733 esac
2734     STRIP=$ac_ct_STRIP
2735   fi
2736 else
2737   STRIP="$ac_cv_prog_STRIP"
2738 fi
2739
2740 fi
2741 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2744 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2745 if test -z "$MKDIR_P"; then
2746   if test "${ac_cv_path_mkdir+set}" = set; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754     for ac_prog in mkdir gmkdir; do
2755          for ac_exec_ext in '' $ac_executable_extensions; do
2756            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2757            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2758              'mkdir (GNU coreutils) '* | \
2759              'mkdir (coreutils) '* | \
2760              'mkdir (fileutils) '4.1*)
2761                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2762                break 3;;
2763            esac
2764          done
2765        done
2766   done
2767 IFS=$as_save_IFS
2768
2769 fi
2770
2771   test -d ./--version && rmdir ./--version
2772   if test "${ac_cv_path_mkdir+set}" = set; then
2773     MKDIR_P="$ac_cv_path_mkdir -p"
2774   else
2775     # As a last resort, use the slow shell script.  Don't cache a
2776     # value for MKDIR_P within a source directory, because that will
2777     # break other packages using the cache if that directory is
2778     # removed, or if the value is a relative name.
2779     MKDIR_P="$ac_install_sh -d"
2780   fi
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2783 $as_echo "$MKDIR_P" >&6; }
2784
2785 mkdir_p="$MKDIR_P"
2786 case $mkdir_p in
2787   [\\/$]* | ?:[\\/]*) ;;
2788   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2789 esac
2790
2791 for ac_prog in gawk mawk nawk awk
2792 do
2793   # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy $ac_prog; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_AWK+set}" = set; then :
2798   $as_echo_n "(cached) " >&6
2799 else
2800   if test -n "$AWK"; then
2801   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808     for ac_exec_ext in '' $ac_executable_extensions; do
2809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810     ac_cv_prog_AWK="$ac_prog"
2811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812     break 2
2813   fi
2814 done
2815   done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 AWK=$ac_cv_prog_AWK
2821 if test -n "$AWK"; then
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2823 $as_echo "$AWK" >&6; }
2824 else
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830   test -n "$AWK" && break
2831 done
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2834 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2835 set x ${MAKE-make}
2836 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2837 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2838   $as_echo_n "(cached) " >&6
2839 else
2840   cat >conftest.make <<\_ACEOF
2841 SHELL = /bin/sh
2842 all:
2843         @echo '@@@%%%=$(MAKE)=@@@%%%'
2844 _ACEOF
2845 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2846 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2847   *@@@%%%=?*=@@@%%%*)
2848     eval ac_cv_prog_make_${ac_make}_set=yes;;
2849   *)
2850     eval ac_cv_prog_make_${ac_make}_set=no;;
2851 esac
2852 rm -f conftest.make
2853 fi
2854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2857   SET_MAKE=
2858 else
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861   SET_MAKE="MAKE=${MAKE-make}"
2862 fi
2863
2864 rm -rf .tst 2>/dev/null
2865 mkdir .tst 2>/dev/null
2866 if test -d .tst; then
2867   am__leading_dot=.
2868 else
2869   am__leading_dot=_
2870 fi
2871 rmdir .tst 2>/dev/null
2872
2873 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2874   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2875   # is not polluted with repeated "-I."
2876   am__isrc=' -I$(srcdir)'
2877   # test to see if srcdir already configured
2878   if test -f $srcdir/config.status; then
2879     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2880   fi
2881 fi
2882
2883 # test whether we have cygpath
2884 if test -z "$CYGPATH_W"; then
2885   if (cygpath --version) >/dev/null 2>/dev/null; then
2886     CYGPATH_W='cygpath -w'
2887   else
2888     CYGPATH_W=echo
2889   fi
2890 fi
2891
2892
2893 # Define the identity of the package.
2894  PACKAGE='valgrind'
2895  VERSION='3.6.0.SVN'
2896
2897
2898 cat >>confdefs.h <<_ACEOF
2899 #define PACKAGE "$PACKAGE"
2900 _ACEOF
2901
2902
2903 cat >>confdefs.h <<_ACEOF
2904 #define VERSION "$VERSION"
2905 _ACEOF
2906
2907 # Some tools Automake needs.
2908
2909 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2910
2911
2912 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2913
2914
2915 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2916
2917
2918 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2919
2920
2921 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2922
2923 # We need awk for the "check" target.  The system "awk" is bad on
2924 # some platforms.
2925 # Always define AMTAR for backward compatibility.
2926
2927 AMTAR=${AMTAR-"${am_missing_run}tar"}
2928
2929 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2930
2931
2932
2933
2934
2935
2936
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2938 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2939     # Check whether --enable-maintainer-mode was given.
2940 if test "${enable_maintainer_mode+set}" = set; then :
2941   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2942 else
2943   USE_MAINTAINER_MODE=no
2944 fi
2945
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2947 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2948    if test $USE_MAINTAINER_MODE = yes; then
2949   MAINTAINER_MODE_TRUE=
2950   MAINTAINER_MODE_FALSE='#'
2951 else
2952   MAINTAINER_MODE_TRUE='#'
2953   MAINTAINER_MODE_FALSE=
2954 fi
2955
2956   MAINT=$MAINTAINER_MODE_TRUE
2957
2958
2959
2960 #----------------------------------------------------------------------------
2961 # Checks for various programs.
2962 #----------------------------------------------------------------------------
2963 CFLAGS="-Wno-long-long $CFLAGS"
2964
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2966 $as_echo_n "checking whether ln -s works... " >&6; }
2967 LN_S=$as_ln_s
2968 if test "$LN_S" = "ln -s"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2973 $as_echo "no, using $LN_S" >&6; }
2974 fi
2975
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 if test -n "$ac_tool_prefix"; then
2982   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_CC+set}" = set; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   if test -n "$CC"; then
2990   ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997     for ac_exec_ext in '' $ac_executable_extensions; do
2998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004   done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019 fi
3020 if test -z "$ac_cv_prog_CC"; then
3021   ac_ct_CC=$CC
3022   # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3027   $as_echo_n "(cached) " >&6
3028 else
3029   if test -n "$ac_ct_CC"; then
3030   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037     for ac_exec_ext in '' $ac_executable_extensions; do
3038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039     ac_cv_prog_ac_ct_CC="gcc"
3040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044   done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3053 else
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058   if test "x$ac_ct_CC" = x; then
3059     CC=""
3060   else
3061     case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067     CC=$ac_ct_CC
3068   fi
3069 else
3070   CC="$ac_cv_prog_CC"
3071 fi
3072
3073 if test -z "$CC"; then
3074           if test -n "$ac_tool_prefix"; then
3075     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}cc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if test "${ac_cv_prog_CC+set}" = set; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test -n "$CC"; then
3083   ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090     for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     ac_cv_prog_CC="${ac_tool_prefix}cc"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112   fi
3113 fi
3114 if test -z "$CC"; then
3115   # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then :
3120   $as_echo_n "(cached) " >&6
3121 else
3122   if test -n "$CC"; then
3123   ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125   ac_prog_rejected=no
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131     for ac_exec_ext in '' $ac_executable_extensions; do
3132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134        ac_prog_rejected=yes
3135        continue
3136      fi
3137     ac_cv_prog_CC="cc"
3138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142   done
3143 IFS=$as_save_IFS
3144
3145 if test $ac_prog_rejected = yes; then
3146   # We found a bogon in the path, so make sure we never use it.
3147   set dummy $ac_cv_prog_CC
3148   shift
3149   if test $# != 0; then
3150     # We chose a different compiler from the bogus one.
3151     # However, it has the same basename, so the bogon will be chosen
3152     # first if we set CC to just the basename; use the full file name.
3153     shift
3154     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3155   fi
3156 fi
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169 fi
3170 if test -z "$CC"; then
3171   if test -n "$ac_tool_prefix"; then
3172   for ac_prog in cl.exe
3173   do
3174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179   $as_echo_n "(cached) " >&6
3180 else
3181   if test -n "$CC"; then
3182   ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189     for ac_exec_ext in '' $ac_executable_extensions; do
3190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196   done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211     test -n "$CC" && break
3212   done
3213 fi
3214 if test -z "$CC"; then
3215   ac_ct_CC=$CC
3216   for ac_prog in cl.exe
3217 do
3218   # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy $ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3223   $as_echo_n "(cached) " >&6
3224 else
3225   if test -n "$ac_ct_CC"; then
3226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233     for ac_exec_ext in '' $ac_executable_extensions; do
3234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235     ac_cv_prog_ac_ct_CC="$ac_prog"
3236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240   done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3249 else
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255   test -n "$ac_ct_CC" && break
3256 done
3257
3258   if test "x$ac_ct_CC" = x; then
3259     CC=""
3260   else
3261     case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267     CC=$ac_ct_CC
3268   fi
3269 fi
3270
3271 fi
3272
3273
3274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details" "$LINENO" 5 ; }
3278
3279 # Provide some information about the compiler.
3280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3281 set X $ac_compile
3282 ac_compiler=$2
3283 for ac_option in --version -v -V -qversion; do
3284   { { ac_try="$ac_compiler $ac_option >&5"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3292   ac_status=$?
3293   if test -s conftest.err; then
3294     sed '10a\
3295 ... rest of stderr output deleted ...
3296          10q' conftest.err >conftest.er1
3297     cat conftest.er1 >&5
3298   fi
3299   rm -f conftest.er1 conftest.err
3300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301   test $ac_status = 0; }
3302 done
3303
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h.  */
3306
3307 int
3308 main ()
3309 {
3310
3311   ;
3312   return 0;
3313 }
3314 _ACEOF
3315 ac_clean_files_save=$ac_clean_files
3316 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3317 # Try to create an executable without -o first, disregard a.out.
3318 # It will help us diagnose broken compilers, and finding out an intuition
3319 # of exeext.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3321 $as_echo_n "checking whether the C compiler works... " >&6; }
3322 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3323
3324 # The possible output files:
3325 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3326
3327 ac_rmfiles=
3328 for ac_file in $ac_files
3329 do
3330   case $ac_file in
3331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3333   esac
3334 done
3335 rm -f $ac_rmfiles
3336
3337 if { { ac_try="$ac_link_default"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344   (eval "$ac_link_default") 2>&5
3345   ac_status=$?
3346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347   test $ac_status = 0; }; then :
3348   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3350 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3351 # so that the user can short-circuit this test for compilers unknown to
3352 # Autoconf.
3353 for ac_file in $ac_files ''
3354 do
3355   test -f "$ac_file" || continue
3356   case $ac_file in
3357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3358         ;;
3359     [ab].out )
3360         # We found the default executable, but exeext='' is most
3361         # certainly right.
3362         break;;
3363     *.* )
3364         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3365         then :; else
3366            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367         fi
3368         # We set ac_cv_exeext here because the later test for it is not
3369         # safe: cross compilers may not add the suffix if given an `-o'
3370         # argument, so we may need to know it at that point already.
3371         # Even if this section looks crufty: it has the advantage of
3372         # actually working.
3373         break;;
3374     * )
3375         break;;
3376   esac
3377 done
3378 test "$ac_cv_exeext" = no && ac_cv_exeext=
3379
3380 else
3381   ac_file=''
3382 fi
3383 if test -z "$ac_file"; then :
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error 77 "C compiler cannot create executables
3392 See \`config.log' for more details" "$LINENO" 5 ; }
3393 else
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3398 $as_echo_n "checking for C compiler default output file name... " >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3400 $as_echo "$ac_file" >&6; }
3401 ac_exeext=$ac_cv_exeext
3402
3403 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3404 ac_clean_files=$ac_clean_files_save
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3406 $as_echo_n "checking for suffix of executables... " >&6; }
3407 if { { ac_try="$ac_link"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414   (eval "$ac_link") 2>&5
3415   ac_status=$?
3416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417   test $ac_status = 0; }; then :
3418   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe'), while it won't with
3421 # `rm'.
3422 for ac_file in conftest.exe conftest conftest.*; do
3423   test -f "$ac_file" || continue
3424   case $ac_file in
3425     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427           break;;
3428     * ) break;;
3429   esac
3430 done
3431 else
3432   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details" "$LINENO" 5 ; }
3436 fi
3437 rm -f conftest conftest$ac_cv_exeext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3439 $as_echo "$ac_cv_exeext" >&6; }
3440
3441 rm -f conftest.$ac_ext
3442 EXEEXT=$ac_cv_exeext
3443 ac_exeext=$EXEEXT
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446 #include <stdio.h>
3447 int
3448 main ()
3449 {
3450 FILE *f = fopen ("conftest.out", "w");
3451  return ferror (f) || fclose (f) != 0;
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 ac_clean_files="$ac_clean_files conftest.out"
3458 # Check that the compiler produces executables we can run.  If not, either
3459 # the compiler is broken, or we cross compile.
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3461 $as_echo_n "checking whether we are cross compiling... " >&6; }
3462 if test "$cross_compiling" != yes; then
3463   { { ac_try="$ac_link"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470   (eval "$ac_link") 2>&5
3471   ac_status=$?
3472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473   test $ac_status = 0; }
3474   if { ac_try='./conftest$ac_cv_exeext'
3475   { { case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481   (eval "$ac_try") 2>&5
3482   ac_status=$?
3483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484   test $ac_status = 0; }; }; then
3485     cross_compiling=no
3486   else
3487     if test "$cross_compiling" = maybe; then
3488         cross_compiling=yes
3489     else
3490         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error $? "cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details" "$LINENO" 5 ; }
3495     fi
3496   fi
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3499 $as_echo "$cross_compiling" >&6; }
3500
3501 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3502 ac_clean_files=$ac_clean_files_save
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3504 $as_echo_n "checking for suffix of object files... " >&6; }
3505 if test "${ac_cv_objext+set}" = set; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510
3511 int
3512 main ()
3513 {
3514
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.o conftest.obj
3520 if { { ac_try="$ac_compile"
3521 case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527   (eval "$ac_compile") 2>&5
3528   ac_status=$?
3529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530   test $ac_status = 0; }; then :
3531   for ac_file in conftest.o conftest.obj conftest.*; do
3532   test -f "$ac_file" || continue;
3533   case $ac_file in
3534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3535     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3536        break;;
3537   esac
3538 done
3539 else
3540   $as_echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of object files: cannot compile
3546 See \`config.log' for more details" "$LINENO" 5 ; }
3547 fi
3548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3551 $as_echo "$ac_cv_objext" >&6; }
3552 OBJEXT=$ac_cv_objext
3553 ac_objext=$OBJEXT
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3555 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3556 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3557   $as_echo_n "(cached) " >&6
3558 else
3559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565 #ifndef __GNUC__
3566        choke me
3567 #endif
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574   ac_compiler_gnu=yes
3575 else
3576   ac_compiler_gnu=no
3577 fi
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3583 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3584 if test $ac_compiler_gnu = yes; then
3585   GCC=yes
3586 else
3587   GCC=
3588 fi
3589 ac_test_CFLAGS=${CFLAGS+set}
3590 ac_save_CFLAGS=$CFLAGS
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3592 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3593 if test "${ac_cv_prog_cc_g+set}" = set; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   ac_save_c_werror_flag=$ac_c_werror_flag
3597    ac_c_werror_flag=yes
3598    ac_cv_prog_cc_g=no
3599    CFLAGS="-g"
3600    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602
3603 int
3604 main ()
3605 {
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3612   ac_cv_prog_cc_g=yes
3613 else
3614   CFLAGS=""
3615       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h.  */
3617
3618 int
3619 main ()
3620 {
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627
3628 else
3629   ac_c_werror_flag=$ac_save_c_werror_flag
3630          CFLAGS="-g"
3631          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633
3634 int
3635 main ()
3636 {
3637
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643   ac_cv_prog_cc_g=yes
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650    ac_c_werror_flag=$ac_save_c_werror_flag
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3653 $as_echo "$ac_cv_prog_cc_g" >&6; }
3654 if test "$ac_test_CFLAGS" = set; then
3655   CFLAGS=$ac_save_CFLAGS
3656 elif test $ac_cv_prog_cc_g = yes; then
3657   if test "$GCC" = yes; then
3658     CFLAGS="-g -O2"
3659   else
3660     CFLAGS="-g"
3661   fi
3662 else
3663   if test "$GCC" = yes; then
3664     CFLAGS="-O2"
3665   else
3666     CFLAGS=
3667   fi
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3670 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3671 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3672   $as_echo_n "(cached) " >&6
3673 else
3674   ac_cv_prog_cc_c89=no
3675 ac_save_CC=$CC
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h.  */
3678 #include <stdarg.h>
3679 #include <stdio.h>
3680 #include <sys/types.h>
3681 #include <sys/stat.h>
3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3683 struct buf { int x; };
3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685 static char *e (p, i)
3686      char **p;
3687      int i;
3688 {
3689   return p[i];
3690 }
3691 static char *f (char * (*g) (char **, int), char **p, ...)
3692 {
3693   char *s;
3694   va_list v;
3695   va_start (v,p);
3696   s = g (p, va_arg (v,int));
3697   va_end (v);
3698   return s;
3699 }
3700
3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3702    function prototypes and stuff, but not '\xHH' hex character constants.
3703    These don't provoke an error unfortunately, instead are silently treated
3704    as 'x'.  The following induces an error, until -std is added to get
3705    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3706    array size at least.  It's necessary to write '\x00'==0 to get something
3707    that's true only with -std.  */
3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3709
3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711    inside strings and character constants.  */
3712 #define FOO(x) 'x'
3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3714
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719 int argc;
3720 char **argv;
3721 int
3722 main ()
3723 {
3724 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731 do
3732   CC="$ac_save_CC $ac_arg"
3733   if ac_fn_c_try_compile "$LINENO"; then :
3734   ac_cv_prog_cc_c89=$ac_arg
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext
3737   test "x$ac_cv_prog_cc_c89" != "xno" && break
3738 done
3739 rm -f conftest.$ac_ext
3740 CC=$ac_save_CC
3741
3742 fi
3743 # AC_CACHE_VAL
3744 case "x$ac_cv_prog_cc_c89" in
3745   x)
3746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3747 $as_echo "none needed" >&6; } ;;
3748   xno)
3749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750 $as_echo "unsupported" >&6; } ;;
3751   *)
3752     CC="$CC $ac_cv_prog_cc_c89"
3753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3755 esac
3756 if test "x$ac_cv_prog_cc_c89" != xno; then :
3757
3758 fi
3759
3760 ac_ext=c
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 DEPDIR="${am__leading_dot}deps"
3766
3767 ac_config_commands="$ac_config_commands depfiles"
3768
3769
3770 am_make=${MAKE-make}
3771 cat > confinc << 'END'
3772 am__doit:
3773         @echo this is the am__doit target
3774 .PHONY: am__doit
3775 END
3776 # If we don't find an include directive, just comment out the code.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3778 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3779 am__include="#"
3780 am__quote=
3781 _am_result=none
3782 # First try GNU make style include.
3783 echo "include confinc" > confmf
3784 # Ignore all kinds of additional output from `make'.
3785 case `$am_make -s -f confmf 2> /dev/null` in #(
3786 *the\ am__doit\ target*)
3787   am__include=include
3788   am__quote=
3789   _am_result=GNU
3790   ;;
3791 esac
3792 # Now try BSD make style include.
3793 if test "$am__include" = "#"; then
3794    echo '.include "confinc"' > confmf
3795    case `$am_make -s -f confmf 2> /dev/null` in #(
3796    *the\ am__doit\ target*)
3797      am__include=.include
3798      am__quote="\""
3799      _am_result=BSD
3800      ;;
3801    esac
3802 fi
3803
3804
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3806 $as_echo "$_am_result" >&6; }
3807 rm -f confinc confmf
3808
3809 # Check whether --enable-dependency-tracking was given.
3810 if test "${enable_dependency_tracking+set}" = set; then :
3811   enableval=$enable_dependency_tracking;
3812 fi
3813
3814 if test "x$enable_dependency_tracking" != xno; then
3815   am_depcomp="$ac_aux_dir/depcomp"
3816   AMDEPBACKSLASH='\'
3817 fi
3818  if test "x$enable_dependency_tracking" != xno; then
3819   AMDEP_TRUE=
3820   AMDEP_FALSE='#'
3821 else
3822   AMDEP_TRUE='#'
3823   AMDEP_FALSE=
3824 fi
3825
3826
3827
3828 depcc="$CC"   am_compiler_list=
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831 $as_echo_n "checking dependency style of $depcc... " >&6; }
3832 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836   # We make a subdir and do the tests there.  Otherwise we can end up
3837   # making bogus files that we don't know about and never remove.  For
3838   # instance it was reported that on HP-UX the gcc test will end up
3839   # making a dummy file named `D' -- because `-MD' means `put the output
3840   # in D'.
3841   mkdir conftest.dir
3842   # Copy depcomp to subdir because otherwise we won't find it if we're
3843   # using a relative directory.
3844   cp "$am_depcomp" conftest.dir
3845   cd conftest.dir
3846   # We will build objects and dependencies in a subdirectory because
3847   # it helps to detect inapplicable dependency modes.  For instance
3848   # both Tru64's cc and ICC support -MD to output dependencies as a
3849   # side effect of compilation, but ICC will put the dependencies in
3850   # the current directory while Tru64 will put them in the object
3851   # directory.
3852   mkdir sub
3853
3854   am_cv_CC_dependencies_compiler_type=none
3855   if test "$am_compiler_list" = ""; then
3856      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3857   fi
3858   am__universal=false
3859   case " $depcc " in #(
3860      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3861      esac
3862
3863   for depmode in $am_compiler_list; do
3864     # Setup a source with many dependencies, because some compilers
3865     # like to wrap large dependency lists on column 80 (with \), and
3866     # we should not choose a depcomp mode which is confused by this.
3867     #
3868     # We need to recreate these files for each test, as the compiler may
3869     # overwrite some of them when testing with obscure command lines.
3870     # This happens at least with the AIX C compiler.
3871     : > sub/conftest.c
3872     for i in 1 2 3 4 5 6; do
3873       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3874       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3875       # Solaris 8's {/usr,}/bin/sh.
3876       touch sub/conftst$i.h
3877     done
3878     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3879
3880     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3881     # mode.  It turns out that the SunPro C++ compiler does not properly
3882     # handle `-M -o', and we need to detect this.  Also, some Intel
3883     # versions had trouble with output in subdirs
3884     am__obj=sub/conftest.${OBJEXT-o}
3885     am__minus_obj="-o $am__obj"
3886     case $depmode in
3887     gcc)
3888       # This depmode causes a compiler race in universal mode.
3889       test "$am__universal" = false || continue
3890       ;;
3891     nosideeffect)
3892       # after this tag, mechanisms are not by side-effect, so they'll
3893       # only be used when explicitly requested
3894       if test "x$enable_dependency_tracking" = xyes; then
3895         continue
3896       else
3897         break
3898       fi
3899       ;;
3900     msvisualcpp | msvcmsys)
3901       # This compiler won't grok `-c -o', but also, the minuso test has
3902       # not run yet.  These depmodes are late enough in the game, and
3903       # so weak that their functioning should not be impacted.
3904       am__obj=conftest.${OBJEXT-o}
3905       am__minus_obj=
3906       ;;
3907     none) break ;;
3908     esac
3909     if depmode=$depmode \
3910        source=sub/conftest.c object=$am__obj \
3911        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3912        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3913          >/dev/null 2>conftest.err &&
3914        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3915        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3916        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3917        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3918       # icc doesn't choke on unknown options, it will just issue warnings
3919       # or remarks (even with -Werror).  So we grep stderr for any message
3920       # that says an option was ignored or not supported.
3921       # When given -MP, icc 7.0 and 7.1 complain thusly:
3922       #   icc: Command line warning: ignoring option '-M'; no argument required
3923       # The diagnosis changed in icc 8.0:
3924       #   icc: Command line remark: option '-MP' not supported
3925       if (grep 'ignoring option' conftest.err ||
3926           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3927         am_cv_CC_dependencies_compiler_type=$depmode
3928         break
3929       fi
3930     fi
3931   done
3932
3933   cd ..
3934   rm -rf conftest.dir
3935 else
3936   am_cv_CC_dependencies_compiler_type=none
3937 fi
3938
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3942 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3943
3944  if
3945   test "x$enable_dependency_tracking" != xno \
3946   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3947   am__fastdepCC_TRUE=
3948   am__fastdepCC_FALSE='#'
3949 else
3950   am__fastdepCC_TRUE='#'
3951   am__fastdepCC_FALSE=
3952 fi
3953
3954
3955 if test "x$CC" != xcc; then
3956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3957 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3958 else
3959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3960 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3961 fi
3962 set dummy $CC; ac_cc=`$as_echo "$2" |
3963                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3964 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 # Make sure it works both with $CC and with simple cc.
3979 # We do the test twice because some compilers refuse to overwrite an
3980 # existing .o file with -o, though they will create one.
3981 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3982 rm -f conftest2.*
3983 if { { case "(($ac_try" in
3984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985   *) ac_try_echo=$ac_try;;
3986 esac
3987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988 $as_echo "$ac_try_echo"; } >&5
3989   (eval "$ac_try") 2>&5
3990   ac_status=$?
3991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992   test $ac_status = 0; } &&
3993    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999   (eval "$ac_try") 2>&5
4000   ac_status=$?
4001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002   test $ac_status = 0; };
4003 then
4004   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4005   if test "x$CC" != xcc; then
4006     # Test first that cc exists at all.
4007     if { ac_try='cc -c conftest.$ac_ext >&5'
4008   { { case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014   (eval "$ac_try") 2>&5
4015   ac_status=$?
4016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017   test $ac_status = 0; }; }; then
4018       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4019       rm -f conftest2.*
4020       if { { case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026   (eval "$ac_try") 2>&5
4027   ac_status=$?
4028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029   test $ac_status = 0; } &&
4030          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036   (eval "$ac_try") 2>&5
4037   ac_status=$?
4038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039   test $ac_status = 0; };
4040       then
4041         # cc works too.
4042         :
4043       else
4044         # cc exists but doesn't like -o.
4045         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4046       fi
4047     fi
4048   fi
4049 else
4050   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4051 fi
4052 rm -f core conftest*
4053
4054 fi
4055 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057 $as_echo "yes" >&6; }
4058 else
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061
4062 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4063
4064 fi
4065
4066 # FIXME: we rely on the cache variable name because
4067 # there is no other way.
4068 set dummy $CC
4069 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4070 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4071 if test "$am_t" != yes; then
4072    # Losing compiler, so override with the script.
4073    # FIXME: It is wrong to rewrite CC.
4074    # But if we don't then we get into trouble of one sort or another.
4075    # A longer-term fix would be to have automake use am__CC in this case,
4076    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4077    CC="$am_aux_dir/compile $CC"
4078 fi
4079
4080
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4087 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4088 # On Suns, sometimes $CPP names a directory.
4089 if test -n "$CPP" && test -d "$CPP"; then
4090   CPP=
4091 fi
4092 if test -z "$CPP"; then
4093   if test "${ac_cv_prog_CPP+set}" = set; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096       # Double quotes because CPP needs to be expanded
4097     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4098     do
4099       ac_preproc_ok=false
4100 for ac_c_preproc_warn_flag in '' yes
4101 do
4102   # Use a header file that comes with gcc, so configuring glibc
4103   # with a fresh cross-compiler works.
4104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105   # <limits.h> exists even on freestanding compilers.
4106   # On the NeXT, cc -E runs the code through the compiler's parser,
4107   # not just through cpp. "Syntax error" is here to catch this case.
4108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h.  */
4110 #ifdef __STDC__
4111 # include <limits.h>
4112 #else
4113 # include <assert.h>
4114 #endif
4115                      Syntax error
4116 _ACEOF
4117 if ac_fn_c_try_cpp "$LINENO"; then :
4118
4119 else
4120   # Broken: fails on valid input.
4121 continue
4122 fi
4123 rm -f conftest.err conftest.i conftest.$ac_ext
4124
4125   # OK, works on sane cases.  Now check whether nonexistent headers
4126   # can be detected and how.
4127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129 #include <ac_nonexistent.h>
4130 _ACEOF
4131 if ac_fn_c_try_cpp "$LINENO"; then :
4132   # Broken: success on invalid input.
4133 continue
4134 else
4135   # Passes both tests.
4136 ac_preproc_ok=:
4137 break
4138 fi
4139 rm -f conftest.err conftest.i conftest.$ac_ext
4140
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.i conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then :
4145   break
4146 fi
4147
4148     done
4149     ac_cv_prog_CPP=$CPP
4150
4151 fi
4152   CPP=$ac_cv_prog_CPP
4153 else
4154   ac_cv_prog_CPP=$CPP
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4157 $as_echo "$CPP" >&6; }
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4160 do
4161   # Use a header file that comes with gcc, so configuring glibc
4162   # with a fresh cross-compiler works.
4163   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164   # <limits.h> exists even on freestanding compilers.
4165   # On the NeXT, cc -E runs the code through the compiler's parser,
4166   # not just through cpp. "Syntax error" is here to catch this case.
4167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h.  */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174                      Syntax error
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4177
4178 else
4179   # Broken: fails on valid input.
4180 continue
4181 fi
4182 rm -f conftest.err conftest.i conftest.$ac_ext
4183
4184   # OK, works on sane cases.  Now check whether nonexistent headers
4185   # can be detected and how.
4186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h.  */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191   # Broken: success on invalid input.
4192 continue
4193 else
4194   # Passes both tests.
4195 ac_preproc_ok=:
4196 break
4197 fi
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4199
4200 done
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.i conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4204
4205 else
4206   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4209 See \`config.log' for more details" "$LINENO" 5 ; }
4210 fi
4211
4212 ac_ext=c
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217
4218 ac_ext=cpp
4219 ac_cpp='$CXXCPP $CPPFLAGS'
4220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4223 if test -z "$CXX"; then
4224   if test -n "$CCC"; then
4225     CXX=$CCC
4226   else
4227     if test -n "$ac_tool_prefix"; then
4228   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4229   do
4230     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if test "${ac_cv_prog_CXX+set}" = set; then :
4235   $as_echo_n "(cached) " >&6
4236 else
4237   if test -n "$CXX"; then
4238   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245     for ac_exec_ext in '' $ac_executable_extensions; do
4246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249     break 2
4250   fi
4251 done
4252   done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 CXX=$ac_cv_prog_CXX
4258 if test -n "$CXX"; then
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4260 $as_echo "$CXX" >&6; }
4261 else
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265
4266
4267     test -n "$CXX" && break
4268   done
4269 fi
4270 if test -z "$CXX"; then
4271   ac_ct_CXX=$CXX
4272   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4273 do
4274   # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4279   $as_echo_n "(cached) " >&6
4280 else
4281   if test -n "$ac_ct_CXX"; then
4282   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289     for ac_exec_ext in '' $ac_executable_extensions; do
4290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291     ac_cv_prog_ac_ct_CXX="$ac_prog"
4292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296   done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4302 if test -n "$ac_ct_CXX"; then
4303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4304 $as_echo "$ac_ct_CXX" >&6; }
4305 else
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309
4310
4311   test -n "$ac_ct_CXX" && break
4312 done
4313
4314   if test "x$ac_ct_CXX" = x; then
4315     CXX="g++"
4316   else
4317     case $cross_compiling:$ac_tool_warned in
4318 yes:)
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4321 ac_tool_warned=yes ;;
4322 esac
4323     CXX=$ac_ct_CXX
4324   fi
4325 fi
4326
4327   fi
4328 fi
4329 # Provide some information about the compiler.
4330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4331 set X $ac_compile
4332 ac_compiler=$2
4333 for ac_option in --version -v -V -qversion; do
4334   { { ac_try="$ac_compiler $ac_option >&5"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4342   ac_status=$?
4343   if test -s conftest.err; then
4344     sed '10a\
4345 ... rest of stderr output deleted ...
4346          10q' conftest.err >conftest.er1
4347     cat conftest.er1 >&5
4348   fi
4349   rm -f conftest.er1 conftest.err
4350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351   test $ac_status = 0; }
4352 done
4353
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4355 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4356 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h.  */
4361
4362 int
4363 main ()
4364 {
4365 #ifndef __GNUC__
4366        choke me
4367 #endif
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 if ac_fn_cxx_try_compile "$LINENO"; then :
4374   ac_compiler_gnu=yes
4375 else
4376   ac_compiler_gnu=no
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4380
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4383 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4384 if test $ac_compiler_gnu = yes; then
4385   GXX=yes
4386 else
4387   GXX=
4388 fi
4389 ac_test_CXXFLAGS=${CXXFLAGS+set}
4390 ac_save_CXXFLAGS=$CXXFLAGS
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4392 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4393 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4397    ac_cxx_werror_flag=yes
4398    ac_cv_prog_cxx_g=no
4399    CXXFLAGS="-g"
4400    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h.  */
4402
4403 int
4404 main ()
4405 {
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_cxx_try_compile "$LINENO"; then :
4412   ac_cv_prog_cxx_g=yes
4413 else
4414   CXXFLAGS=""
4415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h.  */
4417
4418 int
4419 main ()
4420 {
4421
4422   ;
4423   return 0;
4424 }
4425 _ACEOF
4426 if ac_fn_cxx_try_compile "$LINENO"; then :
4427
4428 else
4429   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4430          CXXFLAGS="-g"
4431          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h.  */
4433
4434 int
4435 main ()
4436 {
4437
4438   ;
4439   return 0;
4440 }
4441 _ACEOF
4442 if ac_fn_cxx_try_compile "$LINENO"; then :
4443   ac_cv_prog_cxx_g=yes
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 fi
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4451 fi
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4453 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4454 if test "$ac_test_CXXFLAGS" = set; then
4455   CXXFLAGS=$ac_save_CXXFLAGS
4456 elif test $ac_cv_prog_cxx_g = yes; then
4457   if test "$GXX" = yes; then
4458     CXXFLAGS="-g -O2"
4459   else
4460     CXXFLAGS="-g"
4461   fi
4462 else
4463   if test "$GXX" = yes; then
4464     CXXFLAGS="-O2"
4465   else
4466     CXXFLAGS=
4467   fi
4468 fi
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474
4475 depcc="$CXX"  am_compiler_list=
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4478 $as_echo_n "checking dependency style of $depcc... " >&6; }
4479 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4483   # We make a subdir and do the tests there.  Otherwise we can end up
4484   # making bogus files that we don't know about and never remove.  For
4485   # instance it was reported that on HP-UX the gcc test will end up
4486   # making a dummy file named `D' -- because `-MD' means `put the output
4487   # in D'.
4488   mkdir conftest.dir
4489   # Copy depcomp to subdir because otherwise we won't find it if we're
4490   # using a relative directory.
4491   cp "$am_depcomp" conftest.dir
4492   cd conftest.dir
4493   # We will build objects and dependencies in a subdirectory because
4494   # it helps to detect inapplicable dependency modes.  For instance
4495   # both Tru64's cc and ICC support -MD to output dependencies as a
4496   # side effect of compilation, but ICC will put the dependencies in
4497   # the current directory while Tru64 will put them in the object
4498   # directory.
4499   mkdir sub
4500
4501   am_cv_CXX_dependencies_compiler_type=none
4502   if test "$am_compiler_list" = ""; then
4503      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4504   fi
4505   am__universal=false
4506   case " $depcc " in #(
4507      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4508      esac
4509
4510   for depmode in $am_compiler_list; do
4511     # Setup a source with many dependencies, because some compilers
4512     # like to wrap large dependency lists on column 80 (with \), and
4513     # we should not choose a depcomp mode which is confused by this.
4514     #
4515     # We need to recreate these files for each test, as the compiler may
4516     # overwrite some of them when testing with obscure command lines.
4517     # This happens at least with the AIX C compiler.
4518     : > sub/conftest.c
4519     for i in 1 2 3 4 5 6; do
4520       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4521       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4522       # Solaris 8's {/usr,}/bin/sh.
4523       touch sub/conftst$i.h
4524     done
4525     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4526
4527     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528     # mode.  It turns out that the SunPro C++ compiler does not properly
4529     # handle `-M -o', and we need to detect this.  Also, some Intel
4530     # versions had trouble with output in subdirs
4531     am__obj=sub/conftest.${OBJEXT-o}
4532     am__minus_obj="-o $am__obj"
4533     case $depmode in
4534     gcc)
4535       # This depmode causes a compiler race in universal mode.
4536       test "$am__universal" = false || continue
4537       ;;
4538     nosideeffect)
4539       # after this tag, mechanisms are not by side-effect, so they'll
4540       # only be used when explicitly requested
4541       if test "x$enable_dependency_tracking" = xyes; then
4542         continue
4543       else
4544         break
4545       fi
4546       ;;
4547     msvisualcpp | msvcmsys)
4548       # This compiler won't grok `-c -o', but also, the minuso test has
4549       # not run yet.  These depmodes are late enough in the game, and
4550       # so weak that their functioning should not be impacted.
4551       am__obj=conftest.${OBJEXT-o}
4552       am__minus_obj=
4553       ;;
4554     none) break ;;
4555     esac
4556     if depmode=$depmode \
4557        source=sub/conftest.c object=$am__obj \
4558        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4559        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4560          >/dev/null 2>conftest.err &&
4561        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4562        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4563        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4564        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4565       # icc doesn't choke on unknown options, it will just issue warnings
4566       # or remarks (even with -Werror).  So we grep stderr for any message
4567       # that says an option was ignored or not supported.
4568       # When given -MP, icc 7.0 and 7.1 complain thusly:
4569       #   icc: Command line warning: ignoring option '-M'; no argument required
4570       # The diagnosis changed in icc 8.0:
4571       #   icc: Command line remark: option '-MP' not supported
4572       if (grep 'ignoring option' conftest.err ||
4573           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4574         am_cv_CXX_dependencies_compiler_type=$depmode
4575         break
4576       fi
4577     fi
4578   done
4579
4580   cd ..
4581   rm -rf conftest.dir
4582 else
4583   am_cv_CXX_dependencies_compiler_type=none
4584 fi
4585
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4588 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4589 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4590
4591  if
4592   test "x$enable_dependency_tracking" != xno \
4593   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4594   am__fastdepCXX_TRUE=
4595   am__fastdepCXX_FALSE='#'
4596 else
4597   am__fastdepCXX_TRUE='#'
4598   am__fastdepCXX_FALSE=
4599 fi
4600
4601
4602 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4603 # autoconf 2.59).  If we ever have any Objective-C code in the Valgrind code
4604 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4605 # following:
4606 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4607 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4608 # - Use the following, which is apparently equivalent:
4609 #     m4_ifdef([AC_PROG_OBJC],
4610 #        [AC_PROG_OBJC],
4611 #        [AC_CHECK_TOOL([OBJC], [gcc])
4612 #         AC_SUBST([OBJC])
4613 #         AC_SUBST([OBJCFLAGS])
4614 #        ])
4615 if test -n "$ac_tool_prefix"; then
4616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if test -n "$RANLIB"; then
4624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631     for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638   done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 RANLIB=$ac_cv_prog_RANLIB
4644 if test -n "$RANLIB"; then
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4646 $as_echo "$RANLIB" >&6; }
4647 else
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651
4652
4653 fi
4654 if test -z "$ac_cv_prog_RANLIB"; then
4655   ac_ct_RANLIB=$RANLIB
4656   # Extract the first word of "ranlib", so it can be a program name with args.
4657 set dummy ranlib; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$ac_ct_RANLIB"; then
4664   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_ac_ct_RANLIB="ranlib"
4674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678   done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4684 if test -n "$ac_ct_RANLIB"; then
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4686 $as_echo "$ac_ct_RANLIB" >&6; }
4687 else
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692   if test "x$ac_ct_RANLIB" = x; then
4693     RANLIB=":"
4694   else
4695     case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701     RANLIB=$ac_ct_RANLIB
4702   fi
4703 else
4704   RANLIB="$ac_cv_prog_RANLIB"
4705 fi
4706
4707 # provide a very basic definition for AC_PROG_SED if it's not provided by
4708 # autoconf (as e.g. in autoconf 2.59).
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4711 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4712 if test "${ac_cv_path_SED+set}" = set; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4716      for ac_i in 1 2 3 4 5 6 7; do
4717        ac_script="$ac_script$as_nl$ac_script"
4718      done
4719      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4720      { ac_script=; unset ac_script;}
4721      if test -z "$SED"; then
4722   ac_path_SED_found=false
4723   # Loop through the user's path and test for each of PROGNAME-LIST
4724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729     for ac_prog in sed gsed; do
4730     for ac_exec_ext in '' $ac_executable_extensions; do
4731       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4732       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4733 # Check for GNU ac_path_SED and select it if it is found.
4734   # Check for GNU $ac_path_SED
4735 case `"$ac_path_SED" --version 2>&1` in
4736 *GNU*)
4737   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4738 *)
4739   ac_count=0
4740   $as_echo_n 0123456789 >"conftest.in"
4741   while :
4742   do
4743     cat "conftest.in" "conftest.in" >"conftest.tmp"
4744     mv "conftest.tmp" "conftest.in"
4745     cp "conftest.in" "conftest.nl"
4746     $as_echo '' >> "conftest.nl"
4747     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749     as_fn_arith $ac_count + 1 && ac_count=$as_val
4750     if test $ac_count -gt ${ac_path_SED_max-0}; then
4751       # Best one so far, save it but keep looking for a better one
4752       ac_cv_path_SED="$ac_path_SED"
4753       ac_path_SED_max=$ac_count
4754     fi
4755     # 10*(2^10) chars as input seems more than enough
4756     test $ac_count -gt 10 && break
4757   done
4758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759 esac
4760
4761       $ac_path_SED_found && break 3
4762     done
4763   done
4764   done
4765 IFS=$as_save_IFS
4766   if test -z "$ac_cv_path_SED"; then
4767     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4768   fi
4769 else
4770   ac_cv_path_SED=$SED
4771 fi
4772
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4775 $as_echo "$ac_cv_path_SED" >&6; }
4776  SED="$ac_cv_path_SED"
4777   rm -f conftest.sed
4778
4779
4780 # If no AR variable was specified, look up the name of the archiver. Otherwise
4781 # do not touch the AR variable.
4782 if test "x$AR" = "x"; then
4783   for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4784 do
4785   # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if test "${ac_cv_path_AR+set}" = set; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   case $AR in
4793   [\\/]* | ?:[\\/]*)
4794   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4795   ;;
4796   *)
4797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802     for ac_exec_ext in '' $ac_executable_extensions; do
4803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806     break 2
4807   fi
4808 done
4809   done
4810 IFS=$as_save_IFS
4811
4812   ;;
4813 esac
4814 fi
4815 AR=$ac_cv_path_AR
4816 if test -n "$AR"; then
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4818 $as_echo "$AR" >&6; }
4819 else
4820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 $as_echo "no" >&6; }
4822 fi
4823
4824
4825   test -n "$AR" && break
4826 done
4827 test -n "$AR" || AR="ar"
4828
4829 fi
4830
4831
4832 # Check for the compiler support
4833 if test "${GCC}" != "yes" ; then
4834    as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
4835 fi
4836
4837 # figure out where perl lives
4838 # Extract the first word of "perl", so it can be a program name with args.
4839 set dummy perl; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if test "${ac_cv_path_PERL+set}" = set; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   case $PERL in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862   done
4863 IFS=$as_save_IFS
4864
4865   ;;
4866 esac
4867 fi
4868 PERL=$ac_cv_path_PERL
4869 if test -n "$PERL"; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4871 $as_echo "$PERL" >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877
4878
4879 # figure out where gdb lives
4880 # Extract the first word of "gdb", so it can be a program name with args.
4881 set dummy gdb; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if test "${ac_cv_path_GDB+set}" = set; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   case $GDB in
4888   [\\/]* | ?:[\\/]*)
4889   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4890   ;;
4891   *)
4892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897     for ac_exec_ext in '' $ac_executable_extensions; do
4898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904   done
4905 IFS=$as_save_IFS
4906
4907   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4908   ;;
4909 esac
4910 fi
4911 GDB=$ac_cv_path_GDB
4912 if test -n "$GDB"; then
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4914 $as_echo "$GDB" >&6; }
4915 else
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921
4922 cat >>confdefs.h <<_ACEOF
4923 #define GDB_PATH "$GDB"
4924 _ACEOF
4925
4926
4927 # some older automake's don't have it so try something on our own
4928 # By default we simply use the C compiler to build assembly code.
4929
4930 test "${CCAS+set}" = set || CCAS=$CC
4931 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4932
4933
4934
4935 depcc="$CCAS"   am_compiler_list=
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4938 $as_echo_n "checking dependency style of $depcc... " >&6; }
4939 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4943   # We make a subdir and do the tests there.  Otherwise we can end up
4944   # making bogus files that we don't know about and never remove.  For
4945   # instance it was reported that on HP-UX the gcc test will end up
4946   # making a dummy file named `D' -- because `-MD' means `put the output
4947   # in D'.
4948   mkdir conftest.dir
4949   # Copy depcomp to subdir because otherwise we won't find it if we're
4950   # using a relative directory.
4951   cp "$am_depcomp" conftest.dir
4952   cd conftest.dir
4953   # We will build objects and dependencies in a subdirectory because
4954   # it helps to detect inapplicable dependency modes.  For instance
4955   # both Tru64's cc and ICC support -MD to output dependencies as a
4956   # side effect of compilation, but ICC will put the dependencies in
4957   # the current directory while Tru64 will put them in the object
4958   # directory.
4959   mkdir sub
4960
4961   am_cv_CCAS_dependencies_compiler_type=none
4962   if test "$am_compiler_list" = ""; then
4963      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4964   fi
4965   am__universal=false
4966
4967
4968   for depmode in $am_compiler_list; do
4969     # Setup a source with many dependencies, because some compilers
4970     # like to wrap large dependency lists on column 80 (with \), and
4971     # we should not choose a depcomp mode which is confused by this.
4972     #
4973     # We need to recreate these files for each test, as the compiler may
4974     # overwrite some of them when testing with obscure command lines.
4975     # This happens at least with the AIX C compiler.
4976     : > sub/conftest.c
4977     for i in 1 2 3 4 5 6; do
4978       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4979       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4980       # Solaris 8's {/usr,}/bin/sh.
4981       touch sub/conftst$i.h
4982     done
4983     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4984
4985     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4986     # mode.  It turns out that the SunPro C++ compiler does not properly
4987     # handle `-M -o', and we need to detect this.  Also, some Intel
4988     # versions had trouble with output in subdirs
4989     am__obj=sub/conftest.${OBJEXT-o}
4990     am__minus_obj="-o $am__obj"
4991     case $depmode in
4992     gcc)
4993       # This depmode causes a compiler race in universal mode.
4994       test "$am__universal" = false || continue
4995       ;;
4996     nosideeffect)
4997       # after this tag, mechanisms are not by side-effect, so they'll
4998       # only be used when explicitly requested
4999       if test "x$enable_dependency_tracking" = xyes; then
5000         continue
5001       else
5002         break
5003       fi
5004       ;;
5005     msvisualcpp | msvcmsys)
5006       # This compiler won't grok `-c -o', but also, the minuso test has
5007       # not run yet.  These depmodes are late enough in the game, and
5008       # so weak that their functioning should not be impacted.
5009       am__obj=conftest.${OBJEXT-o}
5010       am__minus_obj=
5011       ;;
5012     none) break ;;
5013     esac
5014     if depmode=$depmode \
5015        source=sub/conftest.c object=$am__obj \
5016        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5017        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5018          >/dev/null 2>conftest.err &&
5019        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5020        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5021        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5022        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5023       # icc doesn't choke on unknown options, it will just issue warnings
5024       # or remarks (even with -Werror).  So we grep stderr for any message
5025       # that says an option was ignored or not supported.
5026       # When given -MP, icc 7.0 and 7.1 complain thusly:
5027       #   icc: Command line warning: ignoring option '-M'; no argument required
5028       # The diagnosis changed in icc 8.0:
5029       #   icc: Command line remark: option '-MP' not supported
5030       if (grep 'ignoring option' conftest.err ||
5031           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5032         am_cv_CCAS_dependencies_compiler_type=$depmode
5033         break
5034       fi
5035     fi
5036   done
5037
5038   cd ..
5039   rm -rf conftest.dir
5040 else
5041   am_cv_CCAS_dependencies_compiler_type=none
5042 fi
5043
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5046 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5047 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5048
5049  if
5050   test "x$enable_dependency_tracking" != xno \
5051   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5052   am__fastdepCCAS_TRUE=
5053   am__fastdepCCAS_FALSE='#'
5054 else
5055   am__fastdepCCAS_TRUE='#'
5056   am__fastdepCCAS_FALSE=
5057 fi
5058
5059
5060
5061
5062 # Check if 'diff' supports -u (universal diffs) and use it if possible.
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5065 $as_echo_n "checking for diff -u... " >&6; }
5066
5067
5068 # Comparing two identical files results in 0, unless -u isn't supported (as
5069 # it's not on AIX).
5070 tmpfile="tmp-xxx-yyy-zzz"
5071 touch $tmpfile;
5072 if diff -u $tmpfile $tmpfile ; then
5073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5074 $as_echo "yes" >&6; }
5075     DIFF="diff -u"
5076 else
5077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079     DIFF="diff"
5080 fi
5081 rm $tmpfile
5082
5083
5084 # We don't want gcc < 3.0
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5086 $as_echo_n "checking for a supported version of gcc... " >&6; }
5087
5088 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5089
5090 case "${gcc_version}" in
5091      2.*)
5092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5093 $as_echo "no (${gcc_version})" >&6; }
5094         as_fn_error $? "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5095         ;;
5096      *)
5097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5098 $as_echo "ok (${gcc_version})" >&6; }
5099         ;;
5100 esac
5101
5102 #----------------------------------------------------------------------------
5103 # Arch/OS/platform tests.
5104 #----------------------------------------------------------------------------
5105 # We create a number of arch/OS/platform-related variables.  We prefix them
5106 # all with "VGCONF_" which indicates that they are defined at
5107 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5108 # variables used when compiling C files.
5109
5110 # Make sure we can run config.sub.
5111 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5112   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5115 $as_echo_n "checking build system type... " >&6; }
5116 if test "${ac_cv_build+set}" = set; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   ac_build_alias=$build_alias
5120 test "x$ac_build_alias" = x &&
5121   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5122 test "x$ac_build_alias" = x &&
5123   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5124 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5125   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5126
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5129 $as_echo "$ac_cv_build" >&6; }
5130 case $ac_cv_build in
5131 *-*-*) ;;
5132 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5133 esac
5134 build=$ac_cv_build
5135 ac_save_IFS=$IFS; IFS='-'
5136 set x $ac_cv_build
5137 shift
5138 build_cpu=$1
5139 build_vendor=$2
5140 shift; shift
5141 # Remember, the first character of IFS is used to create $*,
5142 # except with old shells:
5143 build_os=$*
5144 IFS=$ac_save_IFS
5145 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5149 $as_echo_n "checking host system type... " >&6; }
5150 if test "${ac_cv_host+set}" = set; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   if test "x$host_alias" = x; then
5154   ac_cv_host=$ac_cv_build
5155 else
5156   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5157     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5158 fi
5159
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5162 $as_echo "$ac_cv_host" >&6; }
5163 case $ac_cv_host in
5164 *-*-*) ;;
5165 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5166 esac
5167 host=$ac_cv_host
5168 ac_save_IFS=$IFS; IFS='-'
5169 set x $ac_cv_host
5170 shift
5171 host_cpu=$1
5172 host_vendor=$2
5173 shift; shift
5174 # Remember, the first character of IFS is used to create $*,
5175 # except with old shells:
5176 host_os=$*
5177 IFS=$ac_save_IFS
5178 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5179
5180
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5183 $as_echo_n "checking for a supported CPU... " >&6; }
5184
5185 # ARCH_MAX reflects the most that this CPU can do: for example if it
5186 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5187 # Ditto for amd64.  It is used for more configuration below, but is not used
5188 # outside this file.
5189 case "${host_cpu}" in
5190      i?86)
5191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5192 $as_echo "ok (${host_cpu})" >&6; }
5193         ARCH_MAX="x86"
5194         ;;
5195
5196      x86_64)
5197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5198 $as_echo "ok (${host_cpu})" >&6; }
5199         ARCH_MAX="amd64"
5200         ;;
5201
5202      powerpc64)
5203         # This value can only happen on Linux, not on AIX
5204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5205 $as_echo "ok (${host_cpu})" >&6; }
5206         ARCH_MAX="ppc64"
5207         ;;
5208
5209      powerpc)
5210         # Complexity.  'powerpc' on AIX implies a 64-bit capable CPU.
5211         # Whereas in Linux that means only a 32-bit capable CPU.
5212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5213 $as_echo "ok (${host_cpu})" >&6; }
5214         case "${host_os}" in
5215            aix5.*)
5216               ARCH_MAX="ppc64"
5217               ;;
5218            *)
5219               ARCH_MAX="ppc32"
5220               ;;
5221         esac
5222         ;;
5223
5224      armv7*)
5225         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5226 $as_echo "ok (${host_cpu})" >&6; }
5227         ARCH_MAX="arm"
5228         ;;
5229
5230      *)
5231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5232 $as_echo "no (${host_cpu})" >&6; }
5233         as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
5234         ;;
5235 esac
5236
5237 #----------------------------------------------------------------------------
5238
5239 # Sometimes it's convenient to subvert the bi-arch build system and
5240 # just have a single build even though the underlying platform is
5241 # capable of both.  Hence handle --enable-only64bit and
5242 # --enable-only32bit.  Complain if both are issued :-)
5243 # [Actually, if either of these options are used, I think both get built,
5244 # but only one gets installed.  So if you use an in-place build, both can be
5245 # used. --njn]
5246
5247 # Check if a 64-bit only build has been requested
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5249 $as_echo_n "checking for a 64-bit only build... " >&6; }
5250 if test "${vg_cv_only64bit+set}" = set; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   # Check whether --enable-only64bit was given.
5254 if test "${enable_only64bit+set}" = set; then :
5255   enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5256 else
5257   vg_cv_only64bit=no
5258 fi
5259
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5262 $as_echo "$vg_cv_only64bit" >&6; }
5263
5264 # Check if a 32-bit only build has been requested
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5266 $as_echo_n "checking for a 32-bit only build... " >&6; }
5267 if test "${vg_cv_only32bit+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   # Check whether --enable-only32bit was given.
5271 if test "${enable_only32bit+set}" = set; then :
5272   enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5273 else
5274   vg_cv_only32bit=no
5275 fi
5276
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5279 $as_echo "$vg_cv_only32bit" >&6; }
5280
5281 # Stay sane
5282 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5283    as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5284 fi
5285
5286 #----------------------------------------------------------------------------
5287
5288 # VGCONF_OS is the primary build OS, eg. "linux".  It is passed in to
5289 # compilation of many C files via -VGO_$(VGCONF_OS) and
5290 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5292 $as_echo_n "checking for a supported OS... " >&6; }
5293
5294
5295 DEFAULT_SUPP=""
5296 GENERATED_SUPP=""
5297
5298 case "${host_os}" in
5299      *linux*)
5300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5301 $as_echo "ok (${host_os})" >&6; }
5302         VGCONF_OS="linux"
5303
5304         # Ok, this is linux. Check the kernel version
5305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5306 $as_echo_n "checking for the kernel version... " >&6; }
5307
5308         kernel=`uname -r`
5309
5310         case "${kernel}" in
5311              2.6.*)
5312                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5313 $as_echo "2.6 family (${kernel})" >&6; }
5314
5315 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5316
5317                     ;;
5318
5319              2.4.*)
5320                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5321 $as_echo "2.4 family (${kernel})" >&6; }
5322
5323 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5324
5325                     ;;
5326
5327              *)
5328                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5329 $as_echo "unsupported (${kernel})" >&6; }
5330                     as_fn_error $? "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5331                     ;;
5332         esac
5333
5334         ;;
5335
5336      aix5.1.*)
5337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5338 $as_echo "ok (${host_os})" >&6; }
5339         VGCONF_OS="aix5"
5340         ;;
5341      aix5.2.*)
5342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5343 $as_echo "ok (${host_os})" >&6; }
5344         VGCONF_OS="aix5"
5345         ;;
5346      aix5.3.*)
5347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5348 $as_echo "ok (${host_os})" >&6; }
5349         VGCONF_OS="aix5"
5350         ;;
5351
5352      *l4re*)
5353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5354 $as_echo "ok (${host_os})" >&6; }
5355         VGCONF_OS="l4re"
5356         ;;
5357
5358      *darwin*)
5359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5360 $as_echo "ok (${host_os})" >&6; }
5361         VGCONF_OS="darwin"
5362
5363 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5364
5365
5366 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5367
5368
5369 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5370
5371
5372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5373 $as_echo_n "checking for the kernel version... " >&6; }
5374         kernel=`uname -r`
5375
5376         # Nb: for Darwin we set DEFAULT_SUPP here.  That's because Darwin
5377         # has only one relevant version, the OS version. The `uname` check
5378         # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5379         # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5380         # and we don't know of an macros similar to __GLIBC__ to get that info.
5381         #
5382         # XXX: `uname -r` won't do the right thing for cross-compiles, but
5383         # that's not a problem yet.
5384         case "${kernel}" in
5385              9.*)
5386                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5387 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5388
5389 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5390
5391                   DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5392                   DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5393                   ;;
5394              10.*)
5395                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5396 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5397
5398 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5399
5400                   DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5401                   DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5402                   ;;
5403      *)
5404                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5405 $as_echo "unsupported (${kernel})" >&6; }
5406                   as_fn_error $? "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5407                   ;;
5408         esac
5409         ;;
5410
5411      *)
5412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5413 $as_echo "no (${host_os})" >&6; }
5414         as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
5415         ;;
5416 esac
5417
5418 #----------------------------------------------------------------------------
5419
5420 # If we are building on a 64 bit platform test to see if the system
5421 # supports building 32 bit programs and disable 32 bit support if it
5422 # does not support building 32 bit programs
5423
5424 case "$ARCH_MAX-$VGCONF_OS" in
5425      amd64-linux|ppc64-linux)
5426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5427 $as_echo_n "checking for 32 bit build support... " >&6; }
5428         safe_CFLAGS=$CFLAGS
5429         CFLAGS="-m32"
5430
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h.  */
5433
5434 int
5435 main ()
5436 {
5437
5438           return 0;
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_link "$LINENO"; then :
5445
5446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447 $as_echo "yes" >&6; }
5448
5449 else
5450
5451         vg_cv_only64bit="yes"
5452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext \
5457     conftest$ac_exeext conftest.$ac_ext
5458         CFLAGS=$safe_CFLAGS;;
5459 esac
5460
5461 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5462    as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5463 fi
5464
5465 #----------------------------------------------------------------------------
5466
5467 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64".  By
5468 # default it's the same as ARCH_MAX.  But if, say, we do a build on an amd64
5469 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5470 # above) will be "amd64" since that reflects the most that this cpu can do,
5471 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5472 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS).  It is
5473 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5474 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5475
5476
5477 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5478 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5479 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5480 # It is empty if there is no secondary target.
5481
5482
5483 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5484 # The entire system, including regression and performance tests, will be
5485 # built for this target.  The "_CAPS" indicates that the name is in capital
5486 # letters, and it also uses '_' rather than '-' as a separator, because it's
5487 # used to create various Makefile variables, which are all in caps by
5488 # convention and cannot contain '-' characters.  This is in contrast to
5489 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5490
5491
5492 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5493 # Valgrind and tools will also be built for this target, but not the
5494 # regression or performance tests.
5495 #
5496 # By default, the primary arch is the same as the "max" arch, as commented
5497 # above (at the definition of ARCH_MAX).  We may choose to downgrade it in
5498 # the big case statement just below here, in the case where we're building
5499 # on a 64 bit machine but have been requested only to do a 32 bit build.
5500
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5503 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5504
5505 # NB.  The load address for a given platform may be specified in more
5506 # than one place, in some cases, depending on whether we're doing a biarch,
5507 # 32-bit only or 64-bit only build.  eg see case for amd64-linux below.
5508 # Be careful to give consistent values in all subcases.  Also, all four
5509 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5510 # even if it is to "0xUNSET".
5511 #
5512 case "$ARCH_MAX-$VGCONF_OS" in
5513      x86-linux)
5514         VGCONF_ARCH_PRI="x86"
5515         VGCONF_ARCH_SEC=""
5516         VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5517         VGCONF_PLATFORM_SEC_CAPS=""
5518         valt_load_address_pri_norml="0x38000000"
5519         valt_load_address_pri_inner="0x28000000"
5520         valt_load_address_sec_norml="0xUNSET"
5521         valt_load_address_sec_inner="0xUNSET"
5522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5523 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5524         ;;
5525      amd64-linux)
5526         valt_load_address_sec_norml="0xUNSET"
5527         valt_load_address_sec_inner="0xUNSET"
5528         if test x$vg_cv_only64bit = xyes; then
5529            VGCONF_ARCH_PRI="amd64"
5530            VGCONF_ARCH_SEC=""
5531            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5532            VGCONF_PLATFORM_SEC_CAPS=""
5533            valt_load_address_pri_norml="0x38000000"
5534            valt_load_address_pri_inner="0x28000000"
5535         elif test x$vg_cv_only32bit = xyes; then
5536            VGCONF_ARCH_PRI="x86"
5537            VGCONF_ARCH_SEC=""
5538            VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5539            VGCONF_PLATFORM_SEC_CAPS=""
5540            valt_load_address_pri_norml="0x38000000"
5541            valt_load_address_pri_inner="0x28000000"
5542         else
5543            VGCONF_ARCH_PRI="amd64"
5544            VGCONF_ARCH_SEC="x86"
5545            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5546            VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5547            valt_load_address_pri_norml="0x38000000"
5548            valt_load_address_pri_inner="0x28000000"
5549            valt_load_address_sec_norml="0x38000000"
5550            valt_load_address_sec_inner="0x28000000"
5551         fi
5552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5553 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5554         ;;
5555      ppc32-linux)
5556         VGCONF_ARCH_PRI="ppc32"
5557         VGCONF_ARCH_SEC=""
5558         VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5559         VGCONF_PLATFORM_SEC_CAPS=""
5560         valt_load_address_pri_norml="0x38000000"
5561         valt_load_address_pri_inner="0x28000000"
5562         valt_load_address_sec_norml="0xUNSET"
5563         valt_load_address_sec_inner="0xUNSET"
5564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5565 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5566         ;;
5567      ppc64-aix5)
5568         valt_load_address_pri_norml="0xUNSET"
5569         valt_load_address_pri_inner="0xUNSET"
5570         valt_load_address_sec_norml="0xUNSET"
5571         valt_load_address_sec_inner="0xUNSET"
5572         if test x$vg_cv_only64bit = xyes; then
5573            VGCONF_ARCH_PRI="ppc64"
5574            VGCONF_ARCH_SEC=""
5575            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5576            VGCONF_PLATFORM_SEC_CAPS=""
5577         elif test x$vg_cv_only32bit = xyes; then
5578            VGCONF_ARCH_PRI="ppc32"
5579            VGCONF_ARCH_SEC=""
5580            VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5581            VGCONF_PLATFORM_SEC_CAPS=""
5582         else
5583            VGCONF_ARCH_PRI="ppc64"
5584            VGCONF_ARCH_SEC="ppc32"
5585            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5586            VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5587         fi
5588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5589 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5590         ;;
5591      ppc64-linux)
5592         valt_load_address_sec_norml="0xUNSET"
5593         valt_load_address_sec_inner="0xUNSET"
5594         if test x$vg_cv_only64bit = xyes; then
5595            VGCONF_ARCH_PRI="ppc64"
5596            VGCONF_ARCH_SEC=""
5597            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5598            VGCONF_PLATFORM_SEC_CAPS=""
5599            valt_load_address_pri_norml="0x38000000"
5600            valt_load_address_pri_inner="0x28000000"
5601         elif test x$vg_cv_only32bit = xyes; then
5602            VGCONF_ARCH_PRI="ppc32"
5603            VGCONF_ARCH_SEC=""
5604            VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5605            VGCONF_PLATFORM_SEC_CAPS=""
5606            valt_load_address_pri_norml="0x38000000"
5607            valt_load_address_pri_inner="0x28000000"
5608         else
5609            VGCONF_ARCH_PRI="ppc64"
5610            VGCONF_ARCH_SEC="ppc32"
5611            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5612            VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5613            valt_load_address_pri_norml="0x38000000"
5614            valt_load_address_pri_inner="0x28000000"
5615            valt_load_address_sec_norml="0x38000000"
5616            valt_load_address_sec_inner="0x28000000"
5617         fi
5618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5619 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5620         ;;
5621      x86-l4re)
5622                 VGCONF_ARCH_PRI="x86"
5623                 VGCONF_ARCH_SEC=""
5624                 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5625                 VGCONF_PLATFORM_SEC_CAPS=""
5626            valt_load_address_pri_norml="0x38000000"
5627            valt_load_address_pri_inner="0x28000000"
5628            valt_load_address_sec_norml="0x38000000"
5629            valt_load_address_sec_inner="0x28000000"
5630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5631 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5632          ;;
5633      # Darwin gets identified as 32-bit even when it supports 64-bit.
5634      # (Not sure why, possibly because 'uname' returns "i386"?)  Just about
5635      # all Macs support both 32-bit and 64-bit, so we just build both.  If
5636      # someone has a really old 32-bit only machine they can (hopefully?)
5637      # build with --enable-only32bit.  See bug 243362.
5638      x86-darwin|amd64-darwin)
5639         ARCH_MAX="amd64"
5640         valt_load_address_sec_norml="0xUNSET"
5641         valt_load_address_sec_inner="0xUNSET"
5642         if test x$vg_cv_only64bit = xyes; then
5643            VGCONF_ARCH_PRI="amd64"
5644            VGCONF_ARCH_SEC=""
5645            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5646            VGCONF_PLATFORM_SEC_CAPS=""
5647            valt_load_address_pri_norml="0x138000000"
5648            valt_load_address_pri_inner="0x128000000"
5649         elif test x$vg_cv_only32bit = xyes; then
5650            VGCONF_ARCH_PRI="x86"
5651            VGCONF_ARCH_SEC=""
5652            VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5653            VGCONF_PLATFORM_SEC_CAPS=""
5654            VGCONF_ARCH_PRI_CAPS="x86"
5655            valt_load_address_pri_norml="0x38000000"
5656            valt_load_address_pri_inner="0x28000000"
5657         else
5658            VGCONF_ARCH_PRI="amd64"
5659            VGCONF_ARCH_SEC="x86"
5660            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5661            VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5662            valt_load_address_pri_norml="0x138000000"
5663            valt_load_address_pri_inner="0x128000000"
5664            valt_load_address_sec_norml="0x38000000"
5665            valt_load_address_sec_inner="0x28000000"
5666         fi
5667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5668 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5669         ;;
5670      arm-linux)
5671         VGCONF_ARCH_PRI="arm"
5672         VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5673         VGCONF_PLATFORM_SEC_CAPS=""
5674         valt_load_address_pri_norml="0x38000000"
5675         valt_load_address_pri_inner="0x28000000"
5676         valt_load_address_sec_norml="0xUNSET"
5677         valt_load_address_sec_inner="0xUNSET"
5678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5679 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5680         ;;
5681     *)
5682         VGCONF_ARCH_PRI="unknown"
5683         VGCONF_ARCH_SEC="unknown"
5684         VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5685         VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5686         valt_load_address_pri_norml="0xUNSET"
5687         valt_load_address_pri_inner="0xUNSET"
5688         valt_load_address_sec_norml="0xUNSET"
5689         valt_load_address_sec_inner="0xUNSET"
5690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5691 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5692         as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5693         ;;
5694 esac
5695
5696 #----------------------------------------------------------------------------
5697
5698 # Set up VGCONF_ARCHS_INCLUDE_<arch>.  Either one or two of these become
5699 # defined.
5700  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5701                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5702                  -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5703                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5704   VGCONF_ARCHS_INCLUDE_X86_TRUE=
5705   VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5706 else
5707   VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5708   VGCONF_ARCHS_INCLUDE_X86_FALSE=
5709 fi
5710
5711  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5712                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5713   VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5714   VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5715 else
5716   VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5717   VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5718 fi
5719
5720  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5721                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5722                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5723                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5724   VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5725   VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5726 else
5727   VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5728   VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5729 fi
5730
5731  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5732                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5733   VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5734   VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5735 else
5736   VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5737   VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5738 fi
5739
5740  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5741   VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5742   VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5743 else
5744   VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5745   VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5746 fi
5747
5748
5749 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>.  Either one or two of these
5750 # become defined.
5751  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5752                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5753   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5754   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5755 else
5756   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5757   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5758 fi
5759
5760  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5761   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5762   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5763 else
5764   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5765   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5766 fi
5767
5768  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5769                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5770   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5771   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5772 else
5773   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5774   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5775 fi
5776
5777  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5778   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5779   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5780 else
5781   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5782   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5783 fi
5784
5785  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5786   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5787   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5788 else
5789   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5790   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5791 fi
5792
5793
5794  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5795                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5796   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5797   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5798 else
5799   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5800   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5801 fi
5802
5803  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5804   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5805   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5806 else
5807   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5808   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5809 fi
5810
5811
5812  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5813                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5814   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5815   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5816 else
5817   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5818   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5819 fi
5820
5821  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5822   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5823   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5824 else
5825   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5826   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5827 fi
5828
5829  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5830   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5831   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5832 else
5833   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5834   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5835 fi
5836
5837
5838
5839 # Similarly, set up VGCONF_OS_IS_<os>.  Exactly one of these becomes defined.
5840 # Relies on the assumption that the primary and secondary targets are
5841 # for the same OS, so therefore only necessary to test the primary.
5842  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5843                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5844                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5845                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5846                  -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5847   VGCONF_OS_IS_LINUX_TRUE=
5848   VGCONF_OS_IS_LINUX_FALSE='#'
5849 else
5850   VGCONF_OS_IS_LINUX_TRUE='#'
5851   VGCONF_OS_IS_LINUX_FALSE=
5852 fi
5853
5854  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5855                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5856   VGCONF_OS_IS_AIX5_TRUE=
5857   VGCONF_OS_IS_AIX5_FALSE='#'
5858 else
5859   VGCONF_OS_IS_AIX5_TRUE='#'
5860   VGCONF_OS_IS_AIX5_FALSE=
5861 fi
5862
5863  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5864                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5865   VGCONF_OS_IS_DARWIN_TRUE=
5866   VGCONF_OS_IS_DARWIN_FALSE='#'
5867 else
5868   VGCONF_OS_IS_DARWIN_TRUE='#'
5869   VGCONF_OS_IS_DARWIN_FALSE=
5870 fi
5871
5872  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5873   VGCONF_OS_IS_L4RE_TRUE=
5874   VGCONF_OS_IS_L4RE_FALSE='#'
5875 else
5876   VGCONF_OS_IS_L4RE_TRUE='#'
5877   VGCONF_OS_IS_L4RE_FALSE=
5878 fi
5879
5880
5881
5882 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5883 # there is a secondary target.
5884  if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5885   VGCONF_HAVE_PLATFORM_SEC_TRUE=
5886   VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5887 else
5888   VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5889   VGCONF_HAVE_PLATFORM_SEC_FALSE=
5890 fi
5891
5892
5893
5894 #----------------------------------------------------------------------------
5895 # Inner Valgrind?
5896 #----------------------------------------------------------------------------
5897
5898 # Check if this should be built as an inner Valgrind, to be run within
5899 # another Valgrind.  Choose the load address accordingly.
5900
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5903 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5904 if test "${vg_cv_inner+set}" = set; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   # Check whether --enable-inner was given.
5908 if test "${enable_inner+set}" = set; then :
5909   enableval=$enable_inner; vg_cv_inner=$enableval
5910 else
5911   vg_cv_inner=no
5912 fi
5913
5914 fi
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5916 $as_echo "$vg_cv_inner" >&6; }
5917 if test "$vg_cv_inner" = yes; then
5918
5919 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5920
5921     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5922     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5923 else
5924     VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5925     VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5926 fi
5927
5928
5929 #----------------------------------------------------------------------------
5930 # Libc and suppressions
5931 #----------------------------------------------------------------------------
5932 # This variable will collect the suppression files to be used.
5933
5934 # This variable holds generated suppression files (such as the one used for
5935 # glibcs >= 2.7)
5936
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5940 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5941 if test "${ac_cv_path_GREP+set}" = set; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   if test -z "$GREP"; then
5945   ac_path_GREP_found=false
5946   # Loop through the user's path and test for each of PROGNAME-LIST
5947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_prog in grep ggrep; do
5953     for ac_exec_ext in '' $ac_executable_extensions; do
5954       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5955       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5956 # Check for GNU ac_path_GREP and select it if it is found.
5957   # Check for GNU $ac_path_GREP
5958 case `"$ac_path_GREP" --version 2>&1` in
5959 *GNU*)
5960   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5961 *)
5962   ac_count=0
5963   $as_echo_n 0123456789 >"conftest.in"
5964   while :
5965   do
5966     cat "conftest.in" "conftest.in" >"conftest.tmp"
5967     mv "conftest.tmp" "conftest.in"
5968     cp "conftest.in" "conftest.nl"
5969     $as_echo 'GREP' >> "conftest.nl"
5970     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5971     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5972     as_fn_arith $ac_count + 1 && ac_count=$as_val
5973     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5974       # Best one so far, save it but keep looking for a better one
5975       ac_cv_path_GREP="$ac_path_GREP"
5976       ac_path_GREP_max=$ac_count
5977     fi
5978     # 10*(2^10) chars as input seems more than enough
5979     test $ac_count -gt 10 && break
5980   done
5981   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5982 esac
5983
5984       $ac_path_GREP_found && break 3
5985     done
5986   done
5987   done
5988 IFS=$as_save_IFS
5989   if test -z "$ac_cv_path_GREP"; then
5990     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5991   fi
5992 else
5993   ac_cv_path_GREP=$GREP
5994 fi
5995
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5998 $as_echo "$ac_cv_path_GREP" >&6; }
5999  GREP="$ac_cv_path_GREP"
6000
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6003 $as_echo_n "checking for egrep... " >&6; }
6004 if test "${ac_cv_path_EGREP+set}" = set; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6008    then ac_cv_path_EGREP="$GREP -E"
6009    else
6010      if test -z "$EGREP"; then
6011   ac_path_EGREP_found=false
6012   # Loop through the user's path and test for each of PROGNAME-LIST
6013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018     for ac_prog in egrep; do
6019     for ac_exec_ext in '' $ac_executable_extensions; do
6020       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6021       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6022 # Check for GNU ac_path_EGREP and select it if it is found.
6023   # Check for GNU $ac_path_EGREP
6024 case `"$ac_path_EGREP" --version 2>&1` in
6025 *GNU*)
6026   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6027 *)
6028   ac_count=0
6029   $as_echo_n 0123456789 >"conftest.in"
6030   while :
6031   do
6032     cat "conftest.in" "conftest.in" >"conftest.tmp"
6033     mv "conftest.tmp" "conftest.in"
6034     cp "conftest.in" "conftest.nl"
6035     $as_echo 'EGREP' >> "conftest.nl"
6036     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6037     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6038     as_fn_arith $ac_count + 1 && ac_count=$as_val
6039     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6040       # Best one so far, save it but keep looking for a better one
6041       ac_cv_path_EGREP="$ac_path_EGREP"
6042       ac_path_EGREP_max=$ac_count
6043     fi
6044     # 10*(2^10) chars as input seems more than enough
6045     test $ac_count -gt 10 && break
6046   done
6047   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6048 esac
6049
6050       $ac_path_EGREP_found && break 3
6051     done
6052   done
6053   done
6054 IFS=$as_save_IFS
6055   if test -z "$ac_cv_path_EGREP"; then
6056     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6057   fi
6058 else
6059   ac_cv_path_EGREP=$EGREP
6060 fi
6061
6062    fi
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6065 $as_echo "$ac_cv_path_EGREP" >&6; }
6066  EGREP="$ac_cv_path_EGREP"
6067
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6070 $as_echo_n "checking for ANSI C header files... " >&6; }
6071 if test "${ac_cv_header_stdc+set}" = set; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h.  */
6076 #include <stdlib.h>
6077 #include <stdarg.h>
6078 #include <string.h>
6079 #include <float.h>
6080
6081 int
6082 main ()
6083 {
6084
6085   ;
6086   return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090   ac_cv_header_stdc=yes
6091 else
6092   ac_cv_header_stdc=no
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095
6096 if test $ac_cv_header_stdc = yes; then
6097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h.  */
6100 #include <string.h>
6101
6102 _ACEOF
6103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6104   $EGREP "memchr" >/dev/null 2>&1; then :
6105
6106 else
6107   ac_cv_header_stdc=no
6108 fi
6109 rm -f conftest*
6110
6111 fi
6112
6113 if test $ac_cv_header_stdc = yes; then
6114   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h.  */
6117 #include <stdlib.h>
6118
6119 _ACEOF
6120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6121   $EGREP "free" >/dev/null 2>&1; then :
6122
6123 else
6124   ac_cv_header_stdc=no
6125 fi
6126 rm -f conftest*
6127
6128 fi
6129
6130 if test $ac_cv_header_stdc = yes; then
6131   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6132   if test "$cross_compiling" = yes; then :
6133   :
6134 else
6135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h.  */
6137 #include <ctype.h>
6138 #include <stdlib.h>
6139 #if ((' ' & 0x0FF) == 0x020)
6140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6142 #else
6143 # define ISLOWER(c) \
6144                    (('a' <= (c) && (c) <= 'i') \
6145                      || ('j' <= (c) && (c) <= 'r') \
6146                      || ('s' <= (c) && (c) <= 'z'))
6147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6148 #endif
6149
6150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6151 int
6152 main ()
6153 {
6154   int i;
6155   for (i = 0; i < 256; i++)
6156     if (XOR (islower (i), ISLOWER (i))
6157         || toupper (i) != TOUPPER (i))
6158       return 2;
6159   return 0;
6160 }
6161 _ACEOF
6162 if ac_fn_c_try_run "$LINENO"; then :
6163
6164 else
6165   ac_cv_header_stdc=no
6166 fi
6167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6168   conftest.$ac_objext conftest.beam conftest.$ac_ext
6169 fi
6170
6171 fi
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6174 $as_echo "$ac_cv_header_stdc" >&6; }
6175 if test $ac_cv_header_stdc = yes; then
6176
6177 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6178
6179 fi
6180
6181 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6182 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6183                   inttypes.h stdint.h unistd.h
6184 do :
6185   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6186 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6187 "
6188 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6189   cat >>confdefs.h <<_ACEOF
6190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6191 _ACEOF
6192
6193 fi
6194
6195 done
6196
6197
6198 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6199 if test "x$ac_cv_header_features_h" = x""yes; then :
6200
6201 fi
6202
6203
6204
6205 if test x$ac_cv_header_features_h = xyes; then
6206   rm -f conftest.$ac_ext
6207   cat <<_ACEOF >conftest.$ac_ext
6208 #include <features.h>
6209 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6210 glibc version is: __GLIBC__ __GLIBC_MINOR__
6211 #endif
6212 _ACEOF
6213   GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6214 fi
6215
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h.  */
6218
6219 #include <standards.h>
6220 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6221   AIX5_LIBC
6222 #endif
6223
6224 _ACEOF
6225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6226   $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6227   GLIBC_VERSION="aix5"
6228 fi
6229 rm -f conftest*
6230
6231
6232 # not really a version check
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h.  */
6235
6236 #include <sys/cdefs.h>
6237 #if defined(__DARWIN_VERS_1050)
6238   DARWIN_LIBC
6239 #endif
6240
6241 _ACEOF
6242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6243   $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6244   GLIBC_VERSION="darwin"
6245 fi
6246 rm -f conftest*
6247
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6250 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6251
6252 case "${GLIBC_VERSION}" in
6253      2.2)
6254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6255 $as_echo "2.2 family" >&6; }
6256
6257 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6258
6259         DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6260         DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6261         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6262         ;;
6263
6264      2.3)
6265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6266 $as_echo "2.3 family" >&6; }
6267
6268 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6269
6270         DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6271         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6272         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6273         ;;
6274
6275      2.4)
6276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6277 $as_echo "2.4 family" >&6; }
6278
6279 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6280
6281         DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6282         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6283         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6284         ;;
6285
6286      2.5)
6287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6288 $as_echo "2.5 family" >&6; }
6289
6290 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6291
6292         DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6293         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6294         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6295         ;;
6296      2.6)
6297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6298 $as_echo "2.6 family" >&6; }
6299
6300 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6301
6302         DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6303         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6304         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6305         ;;
6306      2.7)
6307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6308 $as_echo "2.7 family" >&6; }
6309
6310 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6311
6312         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6313         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6314         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6315         ;;
6316      2.8)
6317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6318 $as_echo "2.8 family" >&6; }
6319
6320 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6321
6322         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6323         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6324         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6325         ;;
6326      2.9)
6327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6328 $as_echo "2.9 family" >&6; }
6329
6330 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6331
6332         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6333         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6334         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6335         ;;
6336      2.10)
6337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6338 $as_echo "2.10 family" >&6; }
6339
6340 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6341
6342         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6343         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6344         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6345         ;;
6346      2.11)
6347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6348 $as_echo "2.11 family" >&6; }
6349
6350 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6351
6352         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6353         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6354         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6355         ;;
6356      2.12)
6357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6358 $as_echo "2.12 family" >&6; }
6359
6360 $as_echo "#define GLIBC_2_12 1" >>confdefs.h
6361
6362         DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6363         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6364         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6365         ;;
6366      aix5)
6367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6368 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6369
6370 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6371
6372         DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6373         ;;
6374      darwin)
6375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6376 $as_echo "Darwin" >&6; }
6377
6378 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6379
6380         # DEFAULT_SUPP set by kernel version check above.
6381         ;;
6382
6383      *)
6384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6385 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6386         as_fn_error $? "Valgrind requires glibc version 2.2 - 2.12" "$LINENO" 5
6387         as_fn_error $? "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6388         as_fn_error $? "or Darwin libc" "$LINENO" 5
6389         ;;
6390 esac
6391
6392
6393
6394
6395 # Add default suppressions for the X client libraries.  Make no
6396 # attempt to detect whether such libraries are installed on the
6397 # build machine (or even if any X facilities are present); just
6398 # add the suppressions antidisirregardless.
6399 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6400 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6401
6402 # Add glibc and X11 suppressions for exp-ptrcheck
6403 DEFAULT_SUPP="exp-ptrcheck.supp ${DEFAULT_SUPP}"
6404
6405
6406 #----------------------------------------------------------------------------
6407 # Checking for various library functions and other definitions
6408 #----------------------------------------------------------------------------
6409
6410 # Check for CLOCK_MONOTONIC
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6413 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6414
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h.  */
6417
6418 #include <time.h>
6419
6420 int
6421 main ()
6422 {
6423
6424   struct timespec t;
6425   clock_gettime(CLOCK_MONOTONIC, &t);
6426   return 0;
6427
6428   ;
6429   return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6435 $as_echo "yes" >&6; }
6436
6437 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6438
6439
6440 else
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6444
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447
6448
6449 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6452 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6453
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h.  */
6456
6457 #define _GNU_SOURCE
6458 #include <pthread.h>
6459
6460 int
6461 main ()
6462 {
6463
6464   return (PTHREAD_MUTEX_ADAPTIVE_NP);
6465
6466   ;
6467   return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6473 $as_echo "yes" >&6; }
6474
6475 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6476
6477
6478 else
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485
6486
6487 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6490 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6491
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h.  */
6494
6495 #define _GNU_SOURCE
6496 #include <pthread.h>
6497
6498 int
6499 main ()
6500 {
6501
6502   return (PTHREAD_MUTEX_ERRORCHECK_NP);
6503
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_c_try_compile "$LINENO"; then :
6509
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6511 $as_echo "yes" >&6; }
6512
6513 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6514
6515
6516 else
6517
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523
6524
6525 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6528 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6529
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h.  */
6532
6533 #define _GNU_SOURCE
6534 #include <pthread.h>
6535
6536 int
6537 main ()
6538 {
6539
6540   return (PTHREAD_MUTEX_RECURSIVE_NP);
6541
6542   ;
6543   return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6549 $as_echo "yes" >&6; }
6550
6551 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6552
6553
6554 else
6555
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561
6562
6563 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6566 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6567
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h.  */
6570
6571 #define _GNU_SOURCE
6572 #include <pthread.h>
6573
6574 int
6575 main ()
6576 {
6577
6578   pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6579   return 0;
6580
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"; then :
6586
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6588 $as_echo "yes" >&6; }
6589
6590 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6591
6592
6593 else
6594
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600
6601
6602 # Check whether pthread_mutex_t has a member called __m_kind.
6603
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6605 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6606
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609
6610   #include <pthread.h>
6611
6612 int
6613 main ()
6614 {
6615
6616   pthread_mutex_t m;
6617   return m.__m_kind;
6618
6619   ;
6620   return 0;
6621 }
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6626 $as_echo "yes" >&6; }
6627
6628 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6629
6630
6631 else
6632
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635
6636 fi
6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638
6639
6640 # Check whether pthread_mutex_t has a member called __data.__kind.
6641
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6643 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6644
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h.  */
6647
6648 #include <pthread.h>
6649
6650 int
6651 main ()
6652 {
6653
6654   pthread_mutex_t m;
6655   return m.__data.__kind;
6656
6657   ;
6658   return 0;
6659 }
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6664 $as_echo "yes" >&6; }
6665
6666 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6667
6668
6669 else
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676
6677
6678 # does this compiler support -maltivec and does it have the include file
6679 # <altivec.h> ?
6680
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6682 $as_echo_n "checking for Altivec... " >&6; }
6683
6684 safe_CFLAGS=$CFLAGS
6685 CFLAGS="-maltivec"
6686
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h.  */
6689
6690 #include <altivec.h>
6691
6692 int
6693 main ()
6694 {
6695
6696   vector unsigned int v;
6697
6698   ;
6699   return 0;
6700 }
6701 _ACEOF
6702 if ac_fn_c_try_compile "$LINENO"; then :
6703
6704 ac_have_altivec=yes
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6706 $as_echo "yes" >&6; }
6707
6708 else
6709
6710 ac_have_altivec=no
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 CFLAGS=$safe_CFLAGS
6717
6718  if test x$ac_have_altivec = xyes; then
6719   HAS_ALTIVEC_TRUE=
6720   HAS_ALTIVEC_FALSE='#'
6721 else
6722   HAS_ALTIVEC_TRUE='#'
6723   HAS_ALTIVEC_FALSE=
6724 fi
6725
6726  if test x$ac_have_altivec = xyes; then
6727   HAVE_ALTIVEC_H_TRUE=
6728   HAVE_ALTIVEC_H_FALSE='#'
6729 else
6730   HAVE_ALTIVEC_H_TRUE='#'
6731   HAVE_ALTIVEC_H_FALSE=
6732 fi
6733
6734
6735
6736 # Check for pthread_create@GLIBC2.0
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6738 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6739
6740 safe_CFLAGS=$CFLAGS
6741 CFLAGS="-lpthread"
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h.  */
6744
6745 extern int pthread_create_glibc_2_0(void*, const void*,
6746                                     void *(*)(void*), void*);
6747 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6748
6749 int
6750 main ()
6751 {
6752
6753 #ifdef __powerpc__
6754 /*
6755  * Apparently on PowerPC linking this program succeeds and generates an
6756  * executable with the undefined symbol pthread_create@GLIBC_2.0.
6757  */
6758 #error This test does not work properly on PowerPC.
6759 #else
6760   pthread_create_glibc_2_0(0, 0, 0, 0);
6761 #endif
6762   return 0;
6763
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_link "$LINENO"; then :
6769
6770 ac_have_pthread_create_glibc_2_0=yes
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6772 $as_echo "yes" >&6; }
6773
6774 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6775
6776
6777 else
6778
6779 ac_have_pthread_create_glibc_2_0=no
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext \
6785     conftest$ac_exeext conftest.$ac_ext
6786 CFLAGS=$safe_CFLAGS
6787
6788  if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6789   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6790   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6791 else
6792   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6793   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6794 fi
6795
6796
6797
6798 # Check for eventfd_t, eventfd() and eventfd_read()
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6800 $as_echo_n "checking for eventfd()... " >&6; }
6801
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h.  */
6804
6805 #include <sys/eventfd.h>
6806
6807 int
6808 main ()
6809 {
6810
6811   eventfd_t ev;
6812   int fd;
6813
6814   fd = eventfd(5, 0);
6815   eventfd_read(fd, &ev);
6816   return 0;
6817
6818   ;
6819   return 0;
6820 }
6821 _ACEOF
6822 if ac_fn_c_try_link "$LINENO"; then :
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6825 $as_echo "yes" >&6; }
6826
6827 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
6828
6829
6830 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
6831
6832
6833 else
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext \
6840     conftest$ac_exeext conftest.$ac_ext
6841
6842
6843 #----------------------------------------------------------------------------
6844 # Checking for supported compiler flags.
6845 #----------------------------------------------------------------------------
6846
6847 # does this compiler support -m32 ?
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
6849 $as_echo_n "checking if gcc accepts -m32... " >&6; }
6850
6851 safe_CFLAGS=$CFLAGS
6852 CFLAGS="-m32"
6853
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h.  */
6856
6857 int
6858 main ()
6859 {
6860
6861   return 0;
6862
6863   ;
6864   return 0;
6865 }
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868
6869 FLAG_M32="-m32"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6871 $as_echo "yes" >&6; }
6872
6873 else
6874
6875 FLAG_M32=""
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 CFLAGS=$safe_CFLAGS
6882
6883
6884
6885
6886 # does this compiler support -maix32 ?
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
6888 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
6889
6890 safe_CFLAGS=$CFLAGS
6891 CFLAGS="-maix32"
6892
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h.  */
6895
6896 int
6897 main ()
6898 {
6899
6900   return 0;
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 if ac_fn_c_try_compile "$LINENO"; then :
6907
6908 FLAG_MAIX32="-maix32"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6910 $as_echo "yes" >&6; }
6911
6912 else
6913
6914 FLAG_MAIX32=""
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 CFLAGS=$safe_CFLAGS
6921
6922
6923
6924
6925 # does this compiler support -m64 ?
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
6927 $as_echo_n "checking if gcc accepts -m64... " >&6; }
6928
6929 safe_CFLAGS=$CFLAGS
6930 CFLAGS="-m64"
6931
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h.  */
6934
6935 int
6936 main ()
6937 {
6938
6939   return 0;
6940
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 if ac_fn_c_try_compile "$LINENO"; then :
6946
6947 FLAG_M64="-m64"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6949 $as_echo "yes" >&6; }
6950
6951 else
6952
6953 FLAG_M64=""
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6956
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 CFLAGS=$safe_CFLAGS
6960
6961
6962
6963
6964 # does this compiler support -maix64 ?
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
6966 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
6967
6968 safe_CFLAGS=$CFLAGS
6969 CFLAGS="-maix64"
6970
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h.  */
6973
6974 int
6975 main ()
6976 {
6977
6978   return 0;
6979
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_compile "$LINENO"; then :
6985
6986 FLAG_MAIX64="-maix64"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6988 $as_echo "yes" >&6; }
6989
6990 else
6991
6992 FLAG_MAIX64=""
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 CFLAGS=$safe_CFLAGS
6999
7000
7001
7002
7003 # does this compiler support -mmmx ?
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
7005 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
7006
7007 safe_CFLAGS=$CFLAGS
7008 CFLAGS="-mmmx"
7009
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h.  */
7012
7013 int
7014 main ()
7015 {
7016
7017   return 0;
7018
7019   ;
7020   return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024
7025 FLAG_MMMX="-mmmx"
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7027 $as_echo "yes" >&6; }
7028
7029 else
7030
7031 FLAG_MMMX=""
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034
7035 fi
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 CFLAGS=$safe_CFLAGS
7038
7039
7040
7041
7042 # does this compiler support -msse ?
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7044 $as_echo_n "checking if gcc accepts -msse... " >&6; }
7045
7046 safe_CFLAGS=$CFLAGS
7047 CFLAGS="-msse"
7048
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051
7052 int
7053 main ()
7054 {
7055
7056   return 0;
7057
7058   ;
7059   return 0;
7060 }
7061 _ACEOF
7062 if ac_fn_c_try_compile "$LINENO"; then :
7063
7064 FLAG_MSSE="-msse"
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7066 $as_echo "yes" >&6; }
7067
7068 else
7069
7070 FLAG_MSSE=""
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 CFLAGS=$safe_CFLAGS
7077
7078
7079
7080
7081 # does this compiler support -mpreferred-stack-boundary=2 ?
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7083 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7084
7085 safe_CFLAGS=$CFLAGS
7086 CFLAGS="-mpreferred-stack-boundary=2"
7087
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090
7091 int
7092 main ()
7093 {
7094
7095   return 0;
7096
7097   ;
7098   return 0;
7099 }
7100 _ACEOF
7101 if ac_fn_c_try_compile "$LINENO"; then :
7102
7103 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105 $as_echo "yes" >&6; }
7106
7107 else
7108
7109 PREFERRED_STACK_BOUNDARY=""
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7112
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 CFLAGS=$safe_CFLAGS
7116
7117
7118
7119
7120 # does this compiler support -Wno-pointer-sign ?
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7122 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7123
7124 safe_CFLAGS=$CFLAGS
7125 CFLAGS="-Wno-pointer-sign"
7126
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h.  */
7129
7130 int
7131 main ()
7132 {
7133
7134   return 0;
7135
7136   ;
7137   return 0;
7138 }
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"; then :
7141
7142 no_pointer_sign=yes
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7145
7146 else
7147
7148 no_pointer_sign=no
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151
7152 fi
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 CFLAGS=$safe_CFLAGS
7155
7156 if test x$no_pointer_sign = xyes; then
7157   CFLAGS="$CFLAGS -Wno-pointer-sign"
7158 fi
7159
7160
7161 # does this compiler support -Wno-empty-body ?
7162
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7164 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7165
7166 safe_CFLAGS=$CFLAGS
7167 CFLAGS="-Wno-empty-body"
7168
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h.  */
7171
7172 int
7173 main ()
7174 {
7175
7176   return 0;
7177
7178   ;
7179   return 0;
7180 }
7181 _ACEOF
7182 if ac_fn_c_try_compile "$LINENO"; then :
7183
7184 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7185
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7187 $as_echo "yes" >&6; }
7188
7189 else
7190
7191
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 CFLAGS=$safe_CFLAGS
7198
7199
7200 # does this compiler support -Wno-format-zero-length ?
7201
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7203 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7204
7205 safe_CFLAGS=$CFLAGS
7206 CFLAGS="-Wno-format-zero-length"
7207
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h.  */
7210
7211 int
7212 main ()
7213 {
7214
7215   return 0;
7216
7217   ;
7218   return 0;
7219 }
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222
7223 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7226 $as_echo "yes" >&6; }
7227
7228 else
7229
7230
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 CFLAGS=$safe_CFLAGS
7237
7238
7239 # does this compiler support -Wno-uninitialized ?
7240
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7242 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7243
7244 safe_CFLAGS=$CFLAGS
7245 CFLAGS="-Wno-uninitialized"
7246
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h.  */
7249
7250 int
7251 main ()
7252 {
7253
7254   return 0;
7255
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261
7262 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7265 $as_echo "yes" >&6; }
7266
7267 else
7268
7269
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272
7273 fi
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 CFLAGS=$safe_CFLAGS
7276
7277
7278 # does this compiler support -Wextra or the older -W ?
7279
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7281 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7282
7283 safe_CFLAGS=$CFLAGS
7284 CFLAGS="-Wextra"
7285
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h.  */
7288
7289 int
7290 main ()
7291 {
7292
7293   return 0;
7294
7295   ;
7296   return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300
7301 FLAG_W_EXTRA=-Wextra
7302
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7304 $as_echo "-Wextra" >&6; }
7305
7306 else
7307
7308   CFLAGS="-W"
7309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h.  */
7311
7312 int
7313 main ()
7314 {
7315
7316     return 0;
7317
7318   ;
7319   return 0;
7320 }
7321 _ACEOF
7322 if ac_fn_c_try_compile "$LINENO"; then :
7323
7324   FLAG_W_EXTRA=-W
7325
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7327 $as_echo "-W" >&6; }
7328
7329 else
7330
7331
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7333 $as_echo "not supported" >&6; }
7334
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 CFLAGS=$safe_CFLAGS
7341
7342
7343 # does this compiler support -fno-stack-protector ?
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7345 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7346
7347 safe_CFLAGS=$CFLAGS
7348 CFLAGS="-fno-stack-protector"
7349
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h.  */
7352
7353 int
7354 main ()
7355 {
7356
7357   return 0;
7358
7359   ;
7360   return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"; then :
7364
7365 no_stack_protector=yes
7366 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7368 $as_echo "yes" >&6; }
7369
7370 else
7371
7372 no_stack_protector=no
7373 FLAG_FNO_STACK_PROTECTOR=""
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376
7377 fi
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 CFLAGS=$safe_CFLAGS
7380
7381
7382
7383 if test x$no_stack_protector = xyes; then
7384   CFLAGS="$CFLAGS -fno-stack-protector"
7385 fi
7386
7387
7388 # does this compiler support --param inline-unit-growth=... ?
7389
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7391 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7392
7393 safe_CFLAGS=$CFLAGS
7394 CFLAGS="--param inline-unit-growth=900"
7395
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h.  */
7398
7399 int
7400 main ()
7401 {
7402
7403   return 0;
7404
7405   ;
7406   return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_compile "$LINENO"; then :
7410
7411 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7414 $as_echo "yes" >&6; }
7415
7416 else
7417
7418 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 CFLAGS=$safe_CFLAGS
7426
7427
7428 # does the linker support -Wl,--build-id=none ?  Note, it's
7429 # important that we test indirectly via whichever C compiler
7430 # is selected, rather than testing /usr/bin/ld or whatever
7431 # directly.
7432
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7434 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7435
7436 safe_CFLAGS=$CFLAGS
7437 CFLAGS="-Wl,--build-id=none"
7438
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h.  */
7441
7442 int
7443 main ()
7444 {
7445 return 0;
7446   ;
7447   return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"; then :
7451
7452   FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7453
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7455 $as_echo "yes" >&6; }
7456
7457 else
7458
7459   FLAG_NO_BUILD_ID=""
7460
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463
7464 fi
7465 rm -f core conftest.err conftest.$ac_objext \
7466     conftest$ac_exeext conftest.$ac_ext
7467 CFLAGS=$safe_CFLAGS
7468
7469
7470 # does the ppc assembler support "mtocrf" et al?
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7472 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7473
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h.  */
7476
7477 int
7478 main ()
7479 {
7480
7481 __asm__ __volatile__("mtocrf 4,0");
7482 __asm__ __volatile__("mfocrf 0,4");
7483
7484   ;
7485   return 0;
7486 }
7487 _ACEOF
7488 if ac_fn_c_try_compile "$LINENO"; then :
7489
7490 ac_have_as_ppc_mftocrf=yes
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7492 $as_echo "yes" >&6; }
7493
7494 else
7495
7496 ac_have_as_ppc_mftocrf=no
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7503
7504 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7505
7506 fi
7507
7508
7509 # does the x86/amd64 assembler understand SSE3 instructions?
7510 # Note, this doesn't generate a C-level symbol.  It generates a
7511 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7513 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7514
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h.  */
7517
7518 int
7519 main ()
7520 {
7521
7522   do { long long int x;
7523      __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7524   while (0)
7525
7526   ;
7527   return 0;
7528 }
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531
7532 ac_have_as_sse3=yes
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7534 $as_echo "yes" >&6; }
7535
7536 else
7537
7538 ac_have_as_sse3=no
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544
7545  if test x$ac_have_as_sse3 = xyes; then
7546   BUILD_SSE3_TESTS_TRUE=
7547   BUILD_SSE3_TESTS_FALSE='#'
7548 else
7549   BUILD_SSE3_TESTS_TRUE='#'
7550   BUILD_SSE3_TESTS_FALSE=
7551 fi
7552
7553
7554
7555 # Ditto for SSSE3 instructions (note extra S)
7556 # Note, this doesn't generate a C-level symbol.  It generates a
7557 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7559 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7560
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h.  */
7563
7564 int
7565 main ()
7566 {
7567
7568   do { long long int x;
7569    __asm__ __volatile__(
7570       "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7571   while (0)
7572
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 if ac_fn_c_try_compile "$LINENO"; then :
7578
7579 ac_have_as_ssse3=yes
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7581 $as_echo "yes" >&6; }
7582
7583 else
7584
7585 ac_have_as_ssse3=no
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591
7592  if test x$ac_have_as_ssse3 = xyes; then
7593   BUILD_SSSE3_TESTS_TRUE=
7594   BUILD_SSSE3_TESTS_FALSE='#'
7595 else
7596   BUILD_SSSE3_TESTS_TRUE='#'
7597   BUILD_SSSE3_TESTS_FALSE=
7598 fi
7599
7600
7601
7602 # Check for TLS support in the compiler and linker
7603 if test "x${cross_compiling}" = "xno"; then
7604 # Native compilation: check whether running a program using TLS succeeds.
7605 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
7606 # succeeds but running programs using TLS fails.
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7608 $as_echo_n "checking for TLS support... " >&6; }
7609 if test "${vg_cv_tls+set}" = set; then :
7610   $as_echo_n "(cached) " >&6
7611 else
7612   # Check whether --enable-tls was given.
7613 if test "${enable_tls+set}" = set; then :
7614   enableval=$enable_tls; vg_cv_tls=$enableval
7615 else
7616   if test "$cross_compiling" = yes; then :
7617   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7619 as_fn_error $? "cannot run test program while cross compiling
7620 See \`config.log' for more details" "$LINENO" 5 ; }
7621 else
7622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h.  */
7624 static __thread int foo;
7625 int
7626 main ()
7627 {
7628 return foo;
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 if ac_fn_c_try_run "$LINENO"; then :
7634   vg_cv_tls=yes
7635 else
7636   vg_cv_tls=no
7637 fi
7638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7639   conftest.$ac_objext conftest.beam conftest.$ac_ext
7640 fi
7641
7642 fi
7643
7644 fi
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7646 $as_echo "$vg_cv_tls" >&6; }
7647 else
7648 # Cross-compiling: check whether linking a program using TLS succeeds.
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7650 $as_echo_n "checking for TLS support... " >&6; }
7651 if test "${vg_cv_tls+set}" = set; then :
7652   $as_echo_n "(cached) " >&6
7653 else
7654   # Check whether --enable-tls was given.
7655 if test "${enable_tls+set}" = set; then :
7656   enableval=$enable_tls; vg_cv_tls=$enableval
7657 else
7658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660 static __thread int foo;
7661 int
7662 main ()
7663 {
7664 return foo;
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_link "$LINENO"; then :
7670   vg_cv_tls=yes
7671 else
7672   vg_cv_tls=no
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext \
7675     conftest$ac_exeext conftest.$ac_ext
7676 fi
7677
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7680 $as_echo "$vg_cv_tls" >&6; }
7681 fi
7682
7683 if test "$vg_cv_tls" = yes; then
7684
7685 $as_echo "#define HAVE_TLS 1" >>confdefs.h
7686
7687 fi
7688
7689
7690 #----------------------------------------------------------------------------
7691 # Checks for C header files.
7692 #----------------------------------------------------------------------------
7693
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7695 $as_echo_n "checking for ANSI C header files... " >&6; }
7696 if test "${ac_cv_header_stdc+set}" = set; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h.  */
7701 #include <stdlib.h>
7702 #include <stdarg.h>
7703 #include <string.h>
7704 #include <float.h>
7705
7706 int
7707 main ()
7708 {
7709
7710   ;
7711   return 0;
7712 }
7713 _ACEOF
7714 if ac_fn_c_try_compile "$LINENO"; then :
7715   ac_cv_header_stdc=yes
7716 else
7717   ac_cv_header_stdc=no
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720
7721 if test $ac_cv_header_stdc = yes; then
7722   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h.  */
7725 #include <string.h>
7726
7727 _ACEOF
7728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7729   $EGREP "memchr" >/dev/null 2>&1; then :
7730
7731 else
7732   ac_cv_header_stdc=no
7733 fi
7734 rm -f conftest*
7735
7736 fi
7737
7738 if test $ac_cv_header_stdc = yes; then
7739   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h.  */
7742 #include <stdlib.h>
7743
7744 _ACEOF
7745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7746   $EGREP "free" >/dev/null 2>&1; then :
7747
7748 else
7749   ac_cv_header_stdc=no
7750 fi
7751 rm -f conftest*
7752
7753 fi
7754
7755 if test $ac_cv_header_stdc = yes; then
7756   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7757   if test "$cross_compiling" = yes; then :
7758   :
7759 else
7760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h.  */
7762 #include <ctype.h>
7763 #include <stdlib.h>
7764 #if ((' ' & 0x0FF) == 0x020)
7765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7767 #else
7768 # define ISLOWER(c) \
7769                    (('a' <= (c) && (c) <= 'i') \
7770                      || ('j' <= (c) && (c) <= 'r') \
7771                      || ('s' <= (c) && (c) <= 'z'))
7772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7773 #endif
7774
7775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7776 int
7777 main ()
7778 {
7779   int i;
7780   for (i = 0; i < 256; i++)
7781     if (XOR (islower (i), ISLOWER (i))
7782         || toupper (i) != TOUPPER (i))
7783       return 2;
7784   return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_run "$LINENO"; then :
7788
7789 else
7790   ac_cv_header_stdc=no
7791 fi
7792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7793   conftest.$ac_objext conftest.beam conftest.$ac_ext
7794 fi
7795
7796 fi
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7799 $as_echo "$ac_cv_header_stdc" >&6; }
7800 if test $ac_cv_header_stdc = yes; then
7801
7802 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7803
7804 fi
7805
7806 for ac_header in        \
7807         asm/unistd.h     \
7808         endian.h         \
7809         mqueue.h         \
7810         sys/endian.h     \
7811         sys/epoll.h      \
7812         sys/eventfd.h    \
7813         sys/klog.h       \
7814         sys/poll.h       \
7815         sys/signal.h     \
7816         sys/signalfd.h   \
7817         sys/syscall.h    \
7818         sys/time.h       \
7819         sys/types.h      \
7820
7821 do :
7822   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7823 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7825   cat >>confdefs.h <<_ACEOF
7826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7827 _ACEOF
7828
7829 fi
7830
7831 done
7832
7833
7834 #----------------------------------------------------------------------------
7835 # Checks for typedefs, structures, and compiler characteristics.
7836 #----------------------------------------------------------------------------
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7838 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7839 if test "${ac_cv_type_uid_t+set}" = set; then :
7840   $as_echo_n "(cached) " >&6
7841 else
7842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h.  */
7844 #include <sys/types.h>
7845
7846 _ACEOF
7847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7848   $EGREP "uid_t" >/dev/null 2>&1; then :
7849   ac_cv_type_uid_t=yes
7850 else
7851   ac_cv_type_uid_t=no
7852 fi
7853 rm -f conftest*
7854
7855 fi
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7857 $as_echo "$ac_cv_type_uid_t" >&6; }
7858 if test $ac_cv_type_uid_t = no; then
7859
7860 $as_echo "#define uid_t int" >>confdefs.h
7861
7862
7863 $as_echo "#define gid_t int" >>confdefs.h
7864
7865 fi
7866
7867 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7868 if test "x$ac_cv_type_off_t" = x""yes; then :
7869
7870 else
7871
7872 cat >>confdefs.h <<_ACEOF
7873 #define off_t long int
7874 _ACEOF
7875
7876 fi
7877
7878 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7879 if test "x$ac_cv_type_size_t" = x""yes; then :
7880
7881 else
7882
7883 cat >>confdefs.h <<_ACEOF
7884 #define size_t unsigned int
7885 _ACEOF
7886
7887 fi
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7890 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7891 if test "${ac_cv_header_time+set}" = set; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h.  */
7896 #include <sys/types.h>
7897 #include <sys/time.h>
7898 #include <time.h>
7899
7900 int
7901 main ()
7902 {
7903 if ((struct tm *) 0)
7904 return 0;
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_compile "$LINENO"; then :
7910   ac_cv_header_time=yes
7911 else
7912   ac_cv_header_time=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7917 $as_echo "$ac_cv_header_time" >&6; }
7918 if test $ac_cv_header_time = yes; then
7919
7920 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7921
7922 fi
7923
7924
7925
7926 #----------------------------------------------------------------------------
7927 # Checks for library functions.
7928 #----------------------------------------------------------------------------
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7930 $as_echo_n "checking for working memcmp... " >&6; }
7931 if test "${ac_cv_func_memcmp_working+set}" = set; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   if test "$cross_compiling" = yes; then :
7935   ac_cv_func_memcmp_working=no
7936 else
7937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h.  */
7939 $ac_includes_default
7940 int
7941 main ()
7942 {
7943
7944   /* Some versions of memcmp are not 8-bit clean.  */
7945   char c0 = '\100', c1 = '\200', c2 = '\201';
7946   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7947     return 1;
7948
7949   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7950      or more and with at least one buffer not starting on a 4-byte boundary.
7951      William Lewis provided this test program.   */
7952   {
7953     char foo[21];
7954     char bar[21];
7955     int i;
7956     for (i = 0; i < 4; i++)
7957       {
7958         char *a = foo + i;
7959         char *b = bar + i;
7960         strcpy (a, "--------01111111");
7961         strcpy (b, "--------10000000");
7962         if (memcmp (a, b, 16) >= 0)
7963           return 1;
7964       }
7965     return 0;
7966   }
7967
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_run "$LINENO"; then :
7973   ac_cv_func_memcmp_working=yes
7974 else
7975   ac_cv_func_memcmp_working=no
7976 fi
7977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7978   conftest.$ac_objext conftest.beam conftest.$ac_ext
7979 fi
7980
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7983 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7984 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7985   *" memcmp.$ac_objext "* ) ;;
7986   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7987  ;;
7988 esac
7989
7990
7991
7992
7993
7994   for ac_header in $ac_header_list
7995 do :
7996   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7998 "
7999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8000   cat >>confdefs.h <<_ACEOF
8001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8002 _ACEOF
8003
8004 fi
8005
8006 done
8007
8008
8009
8010
8011
8012
8013
8014
8015 for ac_func in getpagesize
8016 do :
8017   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8018 if test "x$ac_cv_func_getpagesize" = x""yes; then :
8019   cat >>confdefs.h <<_ACEOF
8020 #define HAVE_GETPAGESIZE 1
8021 _ACEOF
8022
8023 fi
8024 done
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8027 $as_echo_n "checking for working mmap... " >&6; }
8028 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
8029   $as_echo_n "(cached) " >&6
8030 else
8031   if test "$cross_compiling" = yes; then :
8032   ac_cv_func_mmap_fixed_mapped=no
8033 else
8034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h.  */
8036 $ac_includes_default
8037 /* malloc might have been renamed as rpl_malloc. */
8038 #undef malloc
8039
8040 /* Thanks to Mike Haertel and Jim Avera for this test.
8041    Here is a matrix of mmap possibilities:
8042         mmap private not fixed
8043         mmap private fixed at somewhere currently unmapped
8044         mmap private fixed at somewhere already mapped
8045         mmap shared not fixed
8046         mmap shared fixed at somewhere currently unmapped
8047         mmap shared fixed at somewhere already mapped
8048    For private mappings, we should verify that changes cannot be read()
8049    back from the file, nor mmap's back from the file at a different
8050    address.  (There have been systems where private was not correctly
8051    implemented like the infamous i386 svr4.0, and systems where the
8052    VM page cache was not coherent with the file system buffer cache
8053    like early versions of FreeBSD and possibly contemporary NetBSD.)
8054    For shared mappings, we should conversely verify that changes get
8055    propagated back to all the places they're supposed to be.
8056
8057    Grep wants private fixed already mapped.
8058    The main things grep needs to know about mmap are:
8059    * does it exist and is it safe to write into the mmap'd area
8060    * how to use it (BSD variants)  */
8061
8062 #include <fcntl.h>
8063 #include <sys/mman.h>
8064
8065 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8066 char *malloc ();
8067 #endif
8068
8069 /* This mess was copied from the GNU getpagesize.h.  */
8070 #ifndef HAVE_GETPAGESIZE
8071 # ifdef _SC_PAGESIZE
8072 #  define getpagesize() sysconf(_SC_PAGESIZE)
8073 # else /* no _SC_PAGESIZE */
8074 #  ifdef HAVE_SYS_PARAM_H
8075 #   include <sys/param.h>
8076 #   ifdef EXEC_PAGESIZE
8077 #    define getpagesize() EXEC_PAGESIZE
8078 #   else /* no EXEC_PAGESIZE */
8079 #    ifdef NBPG
8080 #     define getpagesize() NBPG * CLSIZE
8081 #     ifndef CLSIZE
8082 #      define CLSIZE 1
8083 #     endif /* no CLSIZE */
8084 #    else /* no NBPG */
8085 #     ifdef NBPC
8086 #      define getpagesize() NBPC
8087 #     else /* no NBPC */
8088 #      ifdef PAGESIZE
8089 #       define getpagesize() PAGESIZE
8090 #      endif /* PAGESIZE */
8091 #     endif /* no NBPC */
8092 #    endif /* no NBPG */
8093 #   endif /* no EXEC_PAGESIZE */
8094 #  else /* no HAVE_SYS_PARAM_H */
8095 #   define getpagesize() 8192   /* punt totally */
8096 #  endif /* no HAVE_SYS_PARAM_H */
8097 # endif /* no _SC_PAGESIZE */
8098
8099 #endif /* no HAVE_GETPAGESIZE */
8100
8101 int
8102 main ()
8103 {
8104   char *data, *data2, *data3;
8105   const char *cdata2;
8106   int i, pagesize;
8107   int fd, fd2;
8108
8109   pagesize = getpagesize ();
8110
8111   /* First, make a file with some known garbage in it. */
8112   data = (char *) malloc (pagesize);
8113   if (!data)
8114     return 1;
8115   for (i = 0; i < pagesize; ++i)
8116     *(data + i) = rand ();
8117   umask (0);
8118   fd = creat ("conftest.mmap", 0600);
8119   if (fd < 0)
8120     return 2;
8121   if (write (fd, data, pagesize) != pagesize)
8122     return 3;
8123   close (fd);
8124
8125   /* Next, check that the tail of a page is zero-filled.  File must have
8126      non-zero length, otherwise we risk SIGBUS for entire page.  */
8127   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8128   if (fd2 < 0)
8129     return 4;
8130   cdata2 = "";
8131   if (write (fd2, cdata2, 1) != 1)
8132     return 5;
8133   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8134   if (data2 == MAP_FAILED)
8135     return 6;
8136   for (i = 0; i < pagesize; ++i)
8137     if (*(data2 + i))
8138       return 7;
8139   close (fd2);
8140   if (munmap (data2, pagesize))
8141     return 8;
8142
8143   /* Next, try to mmap the file at a fixed address which already has
8144      something else allocated at it.  If we can, also make sure that
8145      we see the same garbage.  */
8146   fd = open ("conftest.mmap", O_RDWR);
8147   if (fd < 0)
8148     return 9;
8149   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8150                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8151     return 10;
8152   for (i = 0; i < pagesize; ++i)
8153     if (*(data + i) != *(data2 + i))
8154       return 11;
8155
8156   /* Finally, make sure that changes to the mapped area do not
8157      percolate back to the file as seen by read().  (This is a bug on
8158      some variants of i386 svr4.0.)  */
8159   for (i = 0; i < pagesize; ++i)
8160     *(data2 + i) = *(data2 + i) + 1;
8161   data3 = (char *) malloc (pagesize);
8162   if (!data3)
8163     return 12;
8164   if (read (fd, data3, pagesize) != pagesize)
8165     return 13;
8166   for (i = 0; i < pagesize; ++i)
8167     if (*(data + i) != *(data3 + i))
8168       return 14;
8169   close (fd);
8170   return 0;
8171 }
8172 _ACEOF
8173 if ac_fn_c_try_run "$LINENO"; then :
8174   ac_cv_func_mmap_fixed_mapped=yes
8175 else
8176   ac_cv_func_mmap_fixed_mapped=no
8177 fi
8178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8179   conftest.$ac_objext conftest.beam conftest.$ac_ext
8180 fi
8181
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8184 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8185 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8186
8187 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8188
8189 fi
8190 rm -f conftest.mmap conftest.txt
8191
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8193 $as_echo_n "checking return type of signal handlers... " >&6; }
8194 if test "${ac_cv_type_signal+set}" = set; then :
8195   $as_echo_n "(cached) " >&6
8196 else
8197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h.  */
8199 #include <sys/types.h>
8200 #include <signal.h>
8201
8202 int
8203 main ()
8204 {
8205 return *(signal (0, 0)) (0) == 1;
8206   ;
8207   return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211   ac_cv_type_signal=int
8212 else
8213   ac_cv_type_signal=void
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8218 $as_echo "$ac_cv_type_signal" >&6; }
8219
8220 cat >>confdefs.h <<_ACEOF
8221 #define RETSIGTYPE $ac_cv_type_signal
8222 _ACEOF
8223
8224
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8227 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8228 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   ac_check_lib_save_LIBS=$LIBS
8232 LIBS="-lrt  $LIBS"
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h.  */
8235
8236 /* Override any GCC internal prototype to avoid an error.
8237    Use char because int might match the return type of a GCC
8238    builtin and then its argument prototype would still apply.  */
8239 #ifdef __cplusplus
8240 extern "C"
8241 #endif
8242 char clock_gettime ();
8243 int
8244 main ()
8245 {
8246 return clock_gettime ();
8247   ;
8248   return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252   ac_cv_lib_rt_clock_gettime=yes
8253 else
8254   ac_cv_lib_rt_clock_gettime=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext \
8257     conftest$ac_exeext conftest.$ac_ext
8258 LIBS=$ac_check_lib_save_LIBS
8259 fi
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8261 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8262 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
8263   cat >>confdefs.h <<_ACEOF
8264 #define HAVE_LIBRT 1
8265 _ACEOF
8266
8267   LIBS="-lrt $LIBS"
8268
8269 fi
8270
8271
8272 for ac_func in      \
8273         clock_gettime\
8274         epoll_create \
8275         epoll_pwait  \
8276         floor        \
8277         klogctl      \
8278         mallinfo     \
8279         memchr       \
8280         memset       \
8281         mkdir        \
8282         mremap       \
8283         ppoll        \
8284         pthread_barrier_init       \
8285         pthread_condattr_setclock  \
8286         pthread_mutex_timedlock    \
8287         pthread_rwlock_timedrdlock \
8288         pthread_rwlock_timedwrlock \
8289         pthread_spin_lock          \
8290         readlinkat   \
8291         semtimedop   \
8292         signalfd     \
8293         sigwaitinfo  \
8294         syscall      \
8295         strchr       \
8296         strdup       \
8297         strpbrk      \
8298         strrchr      \
8299         strstr       \
8300         timerfd      \
8301         utimensat    \
8302
8303 do :
8304   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8306 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8307   cat >>confdefs.h <<_ACEOF
8308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8309 _ACEOF
8310
8311 fi
8312 done
8313
8314
8315 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8316 # libraries with any shared object and/or executable. This is NOT what we
8317 # want for e.g. vgpreload_core-x86-linux.so
8318 LIBS=""
8319
8320  if test x$ac_cv_func_pthread_barrier_init = xyes; then
8321   HAVE_PTHREAD_BARRIER_TRUE=
8322   HAVE_PTHREAD_BARRIER_FALSE='#'
8323 else
8324   HAVE_PTHREAD_BARRIER_TRUE='#'
8325   HAVE_PTHREAD_BARRIER_FALSE=
8326 fi
8327
8328  if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8329   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8330   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8331 else
8332   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8333   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8334 fi
8335
8336  if test x$ac_cv_func_pthread_spin_lock = xyes; then
8337   HAVE_PTHREAD_SPINLOCK_TRUE=
8338   HAVE_PTHREAD_SPINLOCK_FALSE='#'
8339 else
8340   HAVE_PTHREAD_SPINLOCK_TRUE='#'
8341   HAVE_PTHREAD_SPINLOCK_FALSE=
8342 fi
8343
8344
8345
8346 #----------------------------------------------------------------------------
8347 # MPI checks
8348 #----------------------------------------------------------------------------
8349 # Do we have a useable MPI setup on the primary and/or secondary targets?
8350 # On Linux, by default, assumes mpicc and -m32/-m64
8351 # On AIX, by default, assumes mpxlc and -q32/-q64
8352 # Note: this is a kludge in that it assumes the specified mpicc
8353 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8354 # --with-mpicc=.
8355 MPI_CC="mpicc"
8356 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8357      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8358   MPI_CC="mpxlc"
8359 fi
8360
8361 mflag_primary=
8362 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8363      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8364   mflag_primary=$FLAG_M32
8365 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8366        -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX ; then
8367   mflag_primary=$FLAG_M64
8368 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8369   mflag_primary=-q32
8370 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8371   mflag_primary=-q64
8372 fi
8373
8374 mflag_secondary=
8375 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8376      -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8377   mflag_secondary=$FLAG_M32
8378 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8379   mflag_secondary=-q32
8380 fi
8381
8382
8383
8384 # Check whether --with-mpicc was given.
8385 if test "${with_mpicc+set}" = set; then :
8386   withval=$with_mpicc; MPI_CC=$withval
8387
8388 fi
8389
8390
8391
8392 ## See if MPI_CC works for the primary target
8393 ##
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8395 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8396 saved_CC=$CC
8397 saved_CFLAGS=$CFLAGS
8398 CC=$MPI_CC
8399 CFLAGS=$mflag_primary
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h.  */
8402
8403 #include <mpi.h>
8404 #include <stdio.h>
8405
8406 int
8407 main ()
8408 {
8409
8410   int r = MPI_Init(NULL,NULL);
8411   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8412   return r;
8413
8414   ;
8415   return 0;
8416 }
8417 _ACEOF
8418 if ac_fn_c_try_link "$LINENO"; then :
8419
8420 ac_have_mpi2_pri=yes
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8422 $as_echo "yes, $MPI_CC" >&6; }
8423
8424 else
8425
8426 ac_have_mpi2_pri=no
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext \
8432     conftest$ac_exeext conftest.$ac_ext
8433 CC=$saved_CC
8434 CFLAGS=$saved_CFLAGS
8435  if test x$ac_have_mpi2_pri = xyes; then
8436   BUILD_MPIWRAP_PRI_TRUE=
8437   BUILD_MPIWRAP_PRI_FALSE='#'
8438 else
8439   BUILD_MPIWRAP_PRI_TRUE='#'
8440   BUILD_MPIWRAP_PRI_FALSE=
8441 fi
8442
8443
8444 ## See if MPI_CC works for the secondary target.  Complication: what if
8445 ## there is no secondary target?  We need this to then fail.
8446 ## Kludge this by making MPI_CC something which will surely fail in
8447 ## such a case.
8448 ##
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8450 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8451 saved_CC=$CC
8452 saved_CFLAGS=$CFLAGS
8453 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8454   CC="$MPI_CC this will surely fail"
8455 else
8456   CC=$MPI_CC
8457 fi
8458 CFLAGS=$mflag_secondary
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h.  */
8461
8462 #include <mpi.h>
8463 #include <stdio.h>
8464
8465 int
8466 main ()
8467 {
8468
8469   int r = MPI_Init(NULL,NULL);
8470   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8471   return r;
8472
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 if ac_fn_c_try_link "$LINENO"; then :
8478
8479 ac_have_mpi2_sec=yes
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8481 $as_echo "yes, $MPI_CC" >&6; }
8482
8483 else
8484
8485 ac_have_mpi2_sec=no
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488
8489 fi
8490 rm -f core conftest.err conftest.$ac_objext \
8491     conftest$ac_exeext conftest.$ac_ext
8492 CC=$saved_CC
8493 CFLAGS=$saved_CFLAGS
8494  if test x$ac_have_mpi2_sec = xyes; then
8495   BUILD_MPIWRAP_SEC_TRUE=
8496   BUILD_MPIWRAP_SEC_FALSE='#'
8497 else
8498   BUILD_MPIWRAP_SEC_TRUE='#'
8499   BUILD_MPIWRAP_SEC_FALSE=
8500 fi
8501
8502
8503
8504 #----------------------------------------------------------------------------
8505 # Other library checks
8506 #----------------------------------------------------------------------------
8507 # There now follow some tests for QtCore, Boost, and OpenMP.  These
8508 # tests are present because Drd has some regression tests that use
8509 # these packages.  All regression test programs all compiled only
8510 # for the primary target.  And so it is important that the configure
8511 # checks that follow, use the correct -m32 or -m64 flag for the
8512 # primary target (called $mflag_primary).  Otherwise, we can end up
8513 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8514 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8515 # only build (meaning, the primary target is x86-linux), the build
8516 # of the regtest programs that use Boost fails, because they are
8517 # build as 32-bit (IN THIS EXAMPLE).
8518 #
8519 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8520 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8521
8522
8523 # The test below verifies whether the QtCore package been installed.
8524 # This test works as follows:
8525 # - If pkg-config was not installed at the time autogen.sh was run,
8526 #   the definition of the PKG_CHECK_EXISTS() macro will not be found by
8527 #   autogen.sh. Augogen.sh will generate a configure script that prints
8528 #   a warning about pkg-config and proceeds as if Qt4 has not been installed.
8529 # - If pkg-config was installed at the time autogen.sh was run,
8530 #   the generated configure script will try to detect the presence of the
8531 #   Qt4 QtCore library by looking up compile and linker flags in the file
8532 #   called QtCore.pc.
8533 # - pkg-config settings can be overridden via the configure variables
8534 #   QTCORE_CFLAGS and QTCORE_LIBS (added by the pkg-config m4 macro's to the
8535 #   configure script -- see also ./configure --help).
8536 # - The QTCORE_CFLAGS and QTCORE_LIBS configure variables can be used even if
8537 #   the pkg-config executable is not present on the system on which the
8538 #   configure script is run.
8539
8540
8541
8542
8543
8544
8545
8546 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8547         if test -n "$ac_tool_prefix"; then
8548   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8549 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   case $PKG_CONFIG in
8556   [\\/]* | ?:[\\/]*)
8557   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8558   ;;
8559   *)
8560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563   IFS=$as_save_IFS
8564   test -z "$as_dir" && as_dir=.
8565     for ac_exec_ext in '' $ac_executable_extensions; do
8566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569     break 2
8570   fi
8571 done
8572   done
8573 IFS=$as_save_IFS
8574
8575   ;;
8576 esac
8577 fi
8578 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8579 if test -n "$PKG_CONFIG"; then
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8581 $as_echo "$PKG_CONFIG" >&6; }
8582 else
8583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586
8587
8588 fi
8589 if test -z "$ac_cv_path_PKG_CONFIG"; then
8590   ac_pt_PKG_CONFIG=$PKG_CONFIG
8591   # Extract the first word of "pkg-config", so it can be a program name with args.
8592 set dummy pkg-config; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8596   $as_echo_n "(cached) " >&6
8597 else
8598   case $ac_pt_PKG_CONFIG in
8599   [\\/]* | ?:[\\/]*)
8600   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8601   ;;
8602   *)
8603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8605 do
8606   IFS=$as_save_IFS
8607   test -z "$as_dir" && as_dir=.
8608     for ac_exec_ext in '' $ac_executable_extensions; do
8609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612     break 2
8613   fi
8614 done
8615   done
8616 IFS=$as_save_IFS
8617
8618   ;;
8619 esac
8620 fi
8621 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8622 if test -n "$ac_pt_PKG_CONFIG"; then
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8624 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8625 else
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630   if test "x$ac_pt_PKG_CONFIG" = x; then
8631     PKG_CONFIG=""
8632   else
8633     case $cross_compiling:$ac_tool_warned in
8634 yes:)
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8637 ac_tool_warned=yes ;;
8638 esac
8639     PKG_CONFIG=$ac_pt_PKG_CONFIG
8640   fi
8641 else
8642   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8643 fi
8644
8645 fi
8646 if test -n "$PKG_CONFIG"; then
8647         _pkg_min_version=0.9.0
8648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8649 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8650         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8651                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8652 $as_echo "yes" >&6; }
8653         else
8654                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8656                 PKG_CONFIG=""
8657         fi
8658 fi
8659
8660 if test -n "$PKG_CONFIG" && \
8661     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8662   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8663   ac_status=$?
8664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8665   test $ac_status = 0; }; then
8666
8667
8668 pkg_failed=no
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
8670 $as_echo_n "checking for QTCORE... " >&6; }
8671
8672 if test -n "$QTCORE_CFLAGS"; then
8673     pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
8674  elif test -n "$PKG_CONFIG"; then
8675     if test -n "$PKG_CONFIG" && \
8676     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8677   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8678   ac_status=$?
8679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8680   test $ac_status = 0; }; then
8681   pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null`
8682 else
8683   pkg_failed=yes
8684 fi
8685  else
8686     pkg_failed=untried
8687 fi
8688 if test -n "$QTCORE_LIBS"; then
8689     pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
8690  elif test -n "$PKG_CONFIG"; then
8691     if test -n "$PKG_CONFIG" && \
8692     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8693   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8694   ac_status=$?
8695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8696   test $ac_status = 0; }; then
8697   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null`
8698 else
8699   pkg_failed=yes
8700 fi
8701  else
8702     pkg_failed=untried
8703 fi
8704
8705
8706
8707 if test $pkg_failed = yes; then
8708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710
8711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8712         _pkg_short_errors_supported=yes
8713 else
8714         _pkg_short_errors_supported=no
8715 fi
8716         if test $_pkg_short_errors_supported = yes; then
8717                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore" 2>&1`
8718         else
8719                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore" 2>&1`
8720         fi
8721         # Put the nasty error message in config.log where it belongs
8722         echo "$QTCORE_PKG_ERRORS" >&5
8723
8724         as_fn_error $? "Package requirements (QtCore) were not met:
8725
8726 $QTCORE_PKG_ERRORS
8727
8728 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8729 installed software in a non-standard prefix.
8730
8731 Alternatively, you may set the environment variables QTCORE_CFLAGS
8732 and QTCORE_LIBS to avoid the need to call pkg-config.
8733 See the pkg-config man page for more details." "$LINENO" 5
8734 elif test $pkg_failed = untried; then
8735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8739 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
8740 is in your PATH or set the PKG_CONFIG environment variable to the full
8741 path to pkg-config.
8742
8743 Alternatively, you may set the environment variables QTCORE_CFLAGS
8744 and QTCORE_LIBS to avoid the need to call pkg-config.
8745 See the pkg-config man page for more details.
8746
8747 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8748 See \`config.log' for more details" "$LINENO" 5 ; }
8749 else
8750         QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
8751         QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
8752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8753 $as_echo "yes" >&6; }
8754
8755 fi
8756       # Paranoia: don't trust the result reported by pkg-config, but when
8757       # pkg-config reports that QtCore has been found, verify whether linking
8758       # programs with QtCore succeeds.
8759       ac_ext=cpp
8760 ac_cpp='$CXXCPP $CPPFLAGS'
8761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8764
8765       safe_CXXFLAGS="${CXXFLAGS}"
8766       CXXFLAGS="${QTCORE_CFLAGS} ${QTCORE_LIBS} $mflag_primary"
8767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h.  */
8769 #include <QMutex>
8770 int
8771 main ()
8772 {
8773 QMutex Mutex;
8774   ;
8775   return 0;
8776 }
8777 _ACEOF
8778 if ac_fn_cxx_try_link "$LINENO"; then :
8779   ac_have_qtcore=yes
8780 else
8781
8782           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&5
8783 $as_echo "$as_me: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&2;}
8784           ac_have_qtcore=no
8785
8786
8787 fi
8788 rm -f core conftest.err conftest.$ac_objext \
8789     conftest$ac_exeext conftest.$ac_ext
8790       CXXFLAGS="${safe_CXXFLAGS}"
8791
8792 else
8793
8794       ac_have_qtcore=no
8795
8796
8797 fi
8798
8799
8800  if test x$ac_have_qtcore = xyes; then
8801   HAVE_QTCORE_TRUE=
8802   HAVE_QTCORE_FALSE='#'
8803 else
8804   HAVE_QTCORE_TRUE='#'
8805   HAVE_QTCORE_FALSE=
8806 fi
8807
8808
8809
8810 # Test for QMutex::tryLock(int), which has been introduced in Qt 4.3.
8811 # See also http://doc.trolltech.com/4.3/qmutex.html.
8812 if test x$ac_have_qtcore = xyes; then
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QMutex::tryLock(int)" >&5
8814 $as_echo_n "checking for Qt4 QMutex::tryLock(int)... " >&6; }
8815   ac_ext=cpp
8816 ac_cpp='$CXXCPP $CPPFLAGS'
8817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8820
8821   safe_CXXFLAGS="${CXXFLAGS}"
8822   CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h.  */
8825
8826     #include <QtCore/QMutex>
8827
8828 int
8829 main ()
8830 {
8831
8832     QMutex M;
8833     M.tryLock(1);
8834     M.unlock();
8835     return 0;
8836
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_cxx_try_compile "$LINENO"; then :
8842
8843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8844 $as_echo "yes" >&6; }
8845
8846 $as_echo "#define HAVE_QTCORE_QMUTEX_TRYLOCK_INT 1" >>confdefs.h
8847
8848
8849 else
8850
8851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856   CXXFLAGS="${safe_CXXFLAGS}"
8857   ac_ext=c
8858 ac_cpp='$CPP $CPPFLAGS'
8859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862
8863 fi
8864
8865
8866 # Test for QAtomicInt, which has been introduced in Qt 4.4.
8867 # See also http://doc.trolltech.com/4.4/qatomicint.html.
8868 if test x$ac_have_qtcore = xyes; then
8869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QAtomicInt" >&5
8870 $as_echo_n "checking for Qt4 QAtomicInt... " >&6; }
8871   ac_ext=cpp
8872 ac_cpp='$CXXCPP $CPPFLAGS'
8873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8876
8877   safe_CXXFLAGS="${CXXFLAGS}"
8878   CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h.  */
8881
8882     #include <QtCore/QAtomicInt>
8883
8884 int
8885 main ()
8886 {
8887
8888     QAtomicInt I;
8889     I.testAndSetOrdered(0, 1);
8890     return 0;
8891
8892   ;
8893   return 0;
8894 }
8895 _ACEOF
8896 if ac_fn_cxx_try_compile "$LINENO"; then :
8897
8898     ac_have_qtcore_qatomicint=yes
8899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8900 $as_echo "yes" >&6; }
8901
8902 $as_echo "#define HAVE_QTCORE_QATOMICINT 1" >>confdefs.h
8903
8904
8905 else
8906
8907     ac_have_qtcore_qatomicint=no
8908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8910
8911 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913   CXXFLAGS="${safe_CXXFLAGS}"
8914   ac_ext=c
8915 ac_cpp='$CPP $CPPFLAGS'
8916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919
8920 fi
8921
8922  if test x$ac_have_qtcore_qatomicint = xyes; then
8923   HAVE_QTCORE_QATOMICINT_TRUE=
8924   HAVE_QTCORE_QATOMICINT_FALSE='#'
8925 else
8926   HAVE_QTCORE_QATOMICINT_TRUE='#'
8927   HAVE_QTCORE_QATOMICINT_FALSE=
8928 fi
8929
8930
8931
8932
8933 # Check whether the boost library 1.35 or later has been installed.
8934 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8935
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8937 $as_echo_n "checking for boost... " >&6; }
8938
8939 ac_ext=cpp
8940 ac_cpp='$CXXCPP $CPPFLAGS'
8941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8944
8945 safe_CXXFLAGS=$CXXFLAGS
8946 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8947
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h.  */
8950
8951 #include <boost/thread.hpp>
8952 static void thread_func(void)
8953 { }
8954 int main(int argc, char** argv)
8955 {
8956   boost::thread t(thread_func);
8957   return 0;
8958 }
8959
8960 _ACEOF
8961 if ac_fn_cxx_try_link "$LINENO"; then :
8962
8963 ac_have_boost_1_35=yes
8964
8965 BOOST_LIBS="${CXXFLAGS}"
8966
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8968 $as_echo "yes" >&6; }
8969
8970 else
8971
8972 ac_have_boost_1_35=no
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8975
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext \
8978     conftest$ac_exeext conftest.$ac_ext
8979
8980 CXXFLAGS=$safe_CXXFLAGS
8981 ac_ext=c
8982 ac_cpp='$CPP $CPPFLAGS'
8983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8986
8987
8988  if test x$ac_have_boost_1_35 = xyes; then
8989   HAVE_BOOST_1_35_TRUE=
8990   HAVE_BOOST_1_35_FALSE='#'
8991 else
8992   HAVE_BOOST_1_35_TRUE='#'
8993   HAVE_BOOST_1_35_FALSE=
8994 fi
8995
8996
8997
8998 # does this compiler support -fopenmp, does it have the include file
8999 # <omp.h> and does it have libgomp ?
9000
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
9002 $as_echo_n "checking for OpenMP... " >&6; }
9003
9004 safe_CFLAGS=$CFLAGS
9005 CFLAGS="-fopenmp $mflag_primary"
9006
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h.  */
9009
9010 #include <omp.h>
9011 int main(int argc, char** argv)
9012 {
9013   omp_set_dynamic(0);
9014   return 0;
9015 }
9016
9017 _ACEOF
9018 if ac_fn_c_try_link "$LINENO"; then :
9019
9020 ac_have_openmp=yes
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9022 $as_echo "yes" >&6; }
9023
9024 else
9025
9026 ac_have_openmp=no
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9029
9030 fi
9031 rm -f core conftest.err conftest.$ac_objext \
9032     conftest$ac_exeext conftest.$ac_ext
9033 CFLAGS=$safe_CFLAGS
9034
9035  if test x$ac_have_openmp = xyes; then
9036   HAVE_OPENMP_TRUE=
9037   HAVE_OPENMP_FALSE='#'
9038 else
9039   HAVE_OPENMP_TRUE='#'
9040   HAVE_OPENMP_FALSE=
9041 fi
9042
9043
9044
9045 # does this compiler have built-in functions for atomic memory access ?
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9047 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9048
9049 safe_CFLAGS=$CFLAGS
9050 CFLAGS="$mflag_primary"
9051
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h.  */
9054
9055 int
9056 main ()
9057 {
9058
9059   int variable = 1;
9060   return (__sync_bool_compare_and_swap(&variable, 1, 2)
9061           && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9062
9063   ;
9064   return 0;
9065 }
9066 _ACEOF
9067 if ac_fn_c_try_link "$LINENO"; then :
9068
9069   ac_have_builtin_atomic=yes
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9071 $as_echo "yes" >&6; }
9072
9073 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9074
9075
9076 else
9077
9078   ac_have_builtin_atomic=no
9079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9081
9082 fi
9083 rm -f core conftest.err conftest.$ac_objext \
9084     conftest$ac_exeext conftest.$ac_ext
9085
9086 CFLAGS=$safe_CFLAGS
9087
9088  if test x$ac_have_builtin_atomic = xyes; then
9089   HAVE_BUILTIN_ATOMIC_TRUE=
9090   HAVE_BUILTIN_ATOMIC_FALSE='#'
9091 else
9092   HAVE_BUILTIN_ATOMIC_TRUE='#'
9093   HAVE_BUILTIN_ATOMIC_FALSE=
9094 fi
9095
9096
9097
9098 #----------------------------------------------------------------------------
9099 # Ok.  We're done checking.
9100 #----------------------------------------------------------------------------
9101
9102 # Nb: VEX/Makefile is generated from Makefile.vex.in.
9103 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 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/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/linux/Makefile none/tests/darwin/Makefile none/tests/x86-linux/Makefile exp-ptrcheck/Makefile exp-ptrcheck/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"
9104
9105 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9106
9107 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9108
9109 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9110
9111 ac_config_files="$ac_config_files coregrind/link_tool_exe_l4re"
9112
9113 cat >confcache <<\_ACEOF
9114 # This file is a shell script that caches the results of configure
9115 # tests run on this system so they can be shared between configure
9116 # scripts and configure runs, see configure's option --config-cache.
9117 # It is not useful on other systems.  If it contains results you don't
9118 # want to keep, you may remove or edit it.
9119 #
9120 # config.status only pays attention to the cache file if you give it
9121 # the --recheck option to rerun configure.
9122 #
9123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9125 # following values.
9126
9127 _ACEOF
9128
9129 # The following way of writing the cache mishandles newlines in values,
9130 # but we know of no workaround that is simple, portable, and efficient.
9131 # So, we kill variables containing newlines.
9132 # Ultrix sh set writes to stderr and can't be redirected directly,
9133 # and sets the high bit in the cache file unless we assign to the vars.
9134 (
9135   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9136     eval ac_val=\$$ac_var
9137     case $ac_val in #(
9138     *${as_nl}*)
9139       case $ac_var in #(
9140       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9142       esac
9143       case $ac_var in #(
9144       _ | IFS | as_nl) ;; #(
9145       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9146       *) { eval $ac_var=; unset $ac_var;} ;;
9147       esac ;;
9148     esac
9149   done
9150
9151   (set) 2>&1 |
9152     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9153     *${as_nl}ac_space=\ *)
9154       # `set' does not quote correctly, so add quotes: double-quote
9155       # substitution turns \\\\ into \\, and sed turns \\ into \.
9156       sed -n \
9157         "s/'/'\\\\''/g;
9158           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9159       ;; #(
9160     *)
9161       # `set' quotes correctly as required by POSIX, so do not add quotes.
9162       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9163       ;;
9164     esac |
9165     sort
9166 ) |
9167   sed '
9168      /^ac_cv_env_/b end
9169      t clear
9170      :clear
9171      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9172      t end
9173      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9174      :end' >>confcache
9175 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9176   if test -w "$cache_file"; then
9177     test "x$cache_file" != "x/dev/null" &&
9178       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9179 $as_echo "$as_me: updating cache $cache_file" >&6;}
9180     cat confcache >$cache_file
9181   else
9182     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9183 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9184   fi
9185 fi
9186 rm -f confcache
9187
9188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9189 # Let make expand exec_prefix.
9190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9191
9192 DEFS=-DHAVE_CONFIG_H
9193
9194 ac_libobjs=
9195 ac_ltlibobjs=
9196 U=
9197 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9198   # 1. Remove the extension, and $U if already installed.
9199   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9200   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9201   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9202   #    will be set to the directory where LIBOBJS objects are built.
9203   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9204   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9205 done
9206 LIBOBJS=$ac_libobjs
9207
9208 LTLIBOBJS=$ac_ltlibobjs
9209
9210
9211  if test -n "$EXEEXT"; then
9212   am__EXEEXT_TRUE=
9213   am__EXEEXT_FALSE='#'
9214 else
9215   am__EXEEXT_TRUE='#'
9216   am__EXEEXT_FALSE=
9217 fi
9218
9219 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9220   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9222 fi
9223 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9224   as_fn_error $? "conditional \"AMDEP\" was never defined.
9225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9226 fi
9227 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9228   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9230 fi
9231 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9232   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9234 fi
9235 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9236   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
9237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9238 fi
9239 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9240   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9242 fi
9243 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9244   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9246 fi
9247 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9248   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9250 fi
9251 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9252   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9254 fi
9255 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9256   as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9258 fi
9259 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9260   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9262 fi
9263 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9264   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9266 fi
9267 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9268   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9270 fi
9271 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9272   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9274 fi
9275 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9276   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9278 fi
9279 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9280   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9282 fi
9283 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9284   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9286 fi
9287 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9288   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9290 fi
9291 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9292   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9294 fi
9295 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9296   as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9298 fi
9299 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9300   as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9302 fi
9303 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9304   as_fn_error $? "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9306 fi
9307 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9308   as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9310 fi
9311 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9312   as_fn_error $? "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9314 fi
9315 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9316   as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9318 fi
9319 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9320   as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
9321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9322 fi
9323 if test -z "${HAVE_ALTIVEC_H_TRUE}" && test -z "${HAVE_ALTIVEC_H_FALSE}"; then
9324   as_fn_error $? "conditional \"HAVE_ALTIVEC_H\" was never defined.
9325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9326 fi
9327 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9328   as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9330 fi
9331 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9332   as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
9333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9334 fi
9335 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9336   as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9338 fi
9339 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9340   as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9342 fi
9343 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9344   as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9346 fi
9347 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9348   as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9350 fi
9351 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9352   as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9354 fi
9355 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9356   as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9358 fi
9359 if test -z "${HAVE_QTCORE_TRUE}" && test -z "${HAVE_QTCORE_FALSE}"; then
9360   as_fn_error $? "conditional \"HAVE_QTCORE\" was never defined.
9361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9362 fi
9363 if test -z "${HAVE_QTCORE_QATOMICINT_TRUE}" && test -z "${HAVE_QTCORE_QATOMICINT_FALSE}"; then
9364   as_fn_error $? "conditional \"HAVE_QTCORE_QATOMICINT\" was never defined.
9365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9366 fi
9367 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9368   as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
9369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9370 fi
9371 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9372   as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
9373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9374 fi
9375 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9376   as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9378 fi
9379
9380 : ${CONFIG_STATUS=./config.status}
9381 ac_write_fail=0
9382 ac_clean_files_save=$ac_clean_files
9383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9385 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9386 as_write_fail=0
9387 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9388 #! $SHELL
9389 # Generated by $as_me.
9390 # Run this file to recreate the current configuration.
9391 # Compiler output produced by configure, useful for debugging
9392 # configure, is in config.log if it exists.
9393
9394 debug=false
9395 ac_cs_recheck=false
9396 ac_cs_silent=false
9397
9398 SHELL=\${CONFIG_SHELL-$SHELL}
9399 export SHELL
9400 _ASEOF
9401 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9402 ## -------------------- ##
9403 ## M4sh Initialization. ##
9404 ## -------------------- ##
9405
9406 # Be more Bourne compatible
9407 DUALCASE=1; export DUALCASE # for MKS sh
9408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9409   emulate sh
9410   NULLCMD=:
9411   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9412   # is contrary to our usage.  Disable this feature.
9413   alias -g '${1+"$@"}'='"$@"'
9414   setopt NO_GLOB_SUBST
9415 else
9416   case `(set -o) 2>/dev/null` in #(
9417   *posix*) :
9418     set -o posix ;; #(
9419   *) :
9420      ;;
9421 esac
9422 fi
9423
9424
9425 as_nl='
9426 '
9427 export as_nl
9428 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9429 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9432 # Prefer a ksh shell builtin over an external printf program on Solaris,
9433 # but without wasting forks for bash or zsh.
9434 if test -z "$BASH_VERSION$ZSH_VERSION" \
9435     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9436   as_echo='print -r --'
9437   as_echo_n='print -rn --'
9438 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9439   as_echo='printf %s\n'
9440   as_echo_n='printf %s'
9441 else
9442   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9443     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9444     as_echo_n='/usr/ucb/echo -n'
9445   else
9446     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9447     as_echo_n_body='eval
9448       arg=$1;
9449       case $arg in #(
9450       *"$as_nl"*)
9451         expr "X$arg" : "X\\(.*\\)$as_nl";
9452         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9453       esac;
9454       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9455     '
9456     export as_echo_n_body
9457     as_echo_n='sh -c $as_echo_n_body as_echo'
9458   fi
9459   export as_echo_body
9460   as_echo='sh -c $as_echo_body as_echo'
9461 fi
9462
9463 # The user is always right.
9464 if test "${PATH_SEPARATOR+set}" != set; then
9465   PATH_SEPARATOR=:
9466   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9467     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9468       PATH_SEPARATOR=';'
9469   }
9470 fi
9471
9472
9473 # IFS
9474 # We need space, tab and new line, in precisely that order.  Quoting is
9475 # there to prevent editors from complaining about space-tab.
9476 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9477 # splitting by setting IFS to empty value.)
9478 IFS=" ""        $as_nl"
9479
9480 # Find who we are.  Look in the path if we contain no directory separator.
9481 case $0 in #((
9482   *[\\/]* ) as_myself=$0 ;;
9483   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 for as_dir in $PATH
9485 do
9486   IFS=$as_save_IFS
9487   test -z "$as_dir" && as_dir=.
9488     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9489   done
9490 IFS=$as_save_IFS
9491
9492      ;;
9493 esac
9494 # We did not find ourselves, most probably we were run as `sh COMMAND'
9495 # in which case we are not to be found in the path.
9496 if test "x$as_myself" = x; then
9497   as_myself=$0
9498 fi
9499 if test ! -f "$as_myself"; then
9500   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9501   exit 1
9502 fi
9503
9504 # Unset variables that we do not need and which cause bugs (e.g. in
9505 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9506 # suppresses any "Segmentation fault" message there.  '((' could
9507 # trigger a bug in pdksh 5.2.14.
9508 for as_var in BASH_ENV ENV MAIL MAILPATH
9509 do eval test x\${$as_var+set} = xset \
9510   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9511 done
9512 PS1='$ '
9513 PS2='> '
9514 PS4='+ '
9515
9516 # NLS nuisances.
9517 LC_ALL=C
9518 export LC_ALL
9519 LANGUAGE=C
9520 export LANGUAGE
9521
9522 # CDPATH.
9523 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9524
9525
9526 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9527 # ----------------------------------------
9528 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9529 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9530 # script with STATUS, using 1 if that was 0.
9531 as_fn_error ()
9532 {
9533   as_status=$1; test $as_status -eq 0 && as_status=1
9534   if test "$4"; then
9535     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9536     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9537   fi
9538   $as_echo "$as_me: error: $2" >&2
9539   as_fn_exit $as_status
9540 } # as_fn_error
9541
9542
9543 # as_fn_set_status STATUS
9544 # -----------------------
9545 # Set $? to STATUS, without forking.
9546 as_fn_set_status ()
9547 {
9548   return $1
9549 } # as_fn_set_status
9550
9551 # as_fn_exit STATUS
9552 # -----------------
9553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9554 as_fn_exit ()
9555 {
9556   set +e
9557   as_fn_set_status $1
9558   exit $1
9559 } # as_fn_exit
9560
9561 # as_fn_unset VAR
9562 # ---------------
9563 # Portably unset VAR.
9564 as_fn_unset ()
9565 {
9566   { eval $1=; unset $1;}
9567 }
9568 as_unset=as_fn_unset
9569 # as_fn_append VAR VALUE
9570 # ----------------------
9571 # Append the text in VALUE to the end of the definition contained in VAR. Take
9572 # advantage of any shell optimizations that allow amortized linear growth over
9573 # repeated appends, instead of the typical quadratic growth present in naive
9574 # implementations.
9575 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9576   eval 'as_fn_append ()
9577   {
9578     eval $1+=\$2
9579   }'
9580 else
9581   as_fn_append ()
9582   {
9583     eval $1=\$$1\$2
9584   }
9585 fi # as_fn_append
9586
9587 # as_fn_arith ARG...
9588 # ------------------
9589 # Perform arithmetic evaluation on the ARGs, and store the result in the
9590 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9591 # must be portable across $(()) and expr.
9592 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9593   eval 'as_fn_arith ()
9594   {
9595     as_val=$(( $* ))
9596   }'
9597 else
9598   as_fn_arith ()
9599   {
9600     as_val=`expr "$@" || test $? -eq 1`
9601   }
9602 fi # as_fn_arith
9603
9604
9605 if expr a : '\(a\)' >/dev/null 2>&1 &&
9606    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9607   as_expr=expr
9608 else
9609   as_expr=false
9610 fi
9611
9612 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9613   as_basename=basename
9614 else
9615   as_basename=false
9616 fi
9617
9618 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9619   as_dirname=dirname
9620 else
9621   as_dirname=false
9622 fi
9623
9624 as_me=`$as_basename -- "$0" ||
9625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9626          X"$0" : 'X\(//\)$' \| \
9627          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9628 $as_echo X/"$0" |
9629     sed '/^.*\/\([^/][^/]*\)\/*$/{
9630             s//\1/
9631             q
9632           }
9633           /^X\/\(\/\/\)$/{
9634             s//\1/
9635             q
9636           }
9637           /^X\/\(\/\).*/{
9638             s//\1/
9639             q
9640           }
9641           s/.*/./; q'`
9642
9643 # Avoid depending upon Character Ranges.
9644 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9645 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9646 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9647 as_cr_digits='0123456789'
9648 as_cr_alnum=$as_cr_Letters$as_cr_digits
9649
9650 ECHO_C= ECHO_N= ECHO_T=
9651 case `echo -n x` in #(((((
9652 -n*)
9653   case `echo 'xy\c'` in
9654   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9655   xy)  ECHO_C='\c';;
9656   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9657        ECHO_T=' ';;
9658   esac;;
9659 *)
9660   ECHO_N='-n';;
9661 esac
9662
9663 rm -f conf$$ conf$$.exe conf$$.file
9664 if test -d conf$$.dir; then
9665   rm -f conf$$.dir/conf$$.file
9666 else
9667   rm -f conf$$.dir
9668   mkdir conf$$.dir 2>/dev/null
9669 fi
9670 if (echo >conf$$.file) 2>/dev/null; then
9671   if ln -s conf$$.file conf$$ 2>/dev/null; then
9672     as_ln_s='ln -s'
9673     # ... but there are two gotchas:
9674     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9675     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9676     # In both cases, we have to default to `cp -p'.
9677     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9678       as_ln_s='cp -p'
9679   elif ln conf$$.file conf$$ 2>/dev/null; then
9680     as_ln_s=ln
9681   else
9682     as_ln_s='cp -p'
9683   fi
9684 else
9685   as_ln_s='cp -p'
9686 fi
9687 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9688 rmdir conf$$.dir 2>/dev/null
9689
9690
9691 # as_fn_mkdir_p
9692 # -------------
9693 # Create "$as_dir" as a directory, including parents if necessary.
9694 as_fn_mkdir_p ()
9695 {
9696
9697   case $as_dir in #(
9698   -*) as_dir=./$as_dir;;
9699   esac
9700   test -d "$as_dir" || eval $as_mkdir_p || {
9701     as_dirs=
9702     while :; do
9703       case $as_dir in #(
9704       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9705       *) as_qdir=$as_dir;;
9706       esac
9707       as_dirs="'$as_qdir' $as_dirs"
9708       as_dir=`$as_dirname -- "$as_dir" ||
9709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9710          X"$as_dir" : 'X\(//\)[^/]' \| \
9711          X"$as_dir" : 'X\(//\)$' \| \
9712          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9713 $as_echo X"$as_dir" |
9714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9715             s//\1/
9716             q
9717           }
9718           /^X\(\/\/\)[^/].*/{
9719             s//\1/
9720             q
9721           }
9722           /^X\(\/\/\)$/{
9723             s//\1/
9724             q
9725           }
9726           /^X\(\/\).*/{
9727             s//\1/
9728             q
9729           }
9730           s/.*/./; q'`
9731       test -d "$as_dir" && break
9732     done
9733     test -z "$as_dirs" || eval "mkdir $as_dirs"
9734   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9735
9736
9737 } # as_fn_mkdir_p
9738 if mkdir -p . 2>/dev/null; then
9739   as_mkdir_p='mkdir -p "$as_dir"'
9740 else
9741   test -d ./-p && rmdir ./-p
9742   as_mkdir_p=false
9743 fi
9744
9745 if test -x / >/dev/null 2>&1; then
9746   as_test_x='test -x'
9747 else
9748   if ls -dL / >/dev/null 2>&1; then
9749     as_ls_L_option=L
9750   else
9751     as_ls_L_option=
9752   fi
9753   as_test_x='
9754     eval sh -c '\''
9755       if test -d "$1"; then
9756         test -d "$1/.";
9757       else
9758         case $1 in #(
9759         -*)set "./$1";;
9760         esac;
9761         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9762         ???[sx]*):;;*)false;;esac;fi
9763     '\'' sh
9764   '
9765 fi
9766 as_executable_p=$as_test_x
9767
9768 # Sed expression to map a string onto a valid CPP name.
9769 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9770
9771 # Sed expression to map a string onto a valid variable name.
9772 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9773
9774
9775 exec 6>&1
9776 ## ----------------------------------- ##
9777 ## Main body of $CONFIG_STATUS script. ##
9778 ## ----------------------------------- ##
9779 _ASEOF
9780 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9781
9782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9783 # Save the log message, to keep $0 and so on meaningful, and to
9784 # report actual input values of CONFIG_FILES etc. instead of their
9785 # values after options handling.
9786 ac_log="
9787 This file was extended by Valgrind $as_me 3.6.0.SVN, which was
9788 generated by GNU Autoconf 2.67.  Invocation command line was
9789
9790   CONFIG_FILES    = $CONFIG_FILES
9791   CONFIG_HEADERS  = $CONFIG_HEADERS
9792   CONFIG_LINKS    = $CONFIG_LINKS
9793   CONFIG_COMMANDS = $CONFIG_COMMANDS
9794   $ $0 $@
9795
9796 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9797 "
9798
9799 _ACEOF
9800
9801 case $ac_config_files in *"
9802 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9803 esac
9804
9805 case $ac_config_headers in *"
9806 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9807 esac
9808
9809
9810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9811 # Files that config.status was made for.
9812 config_files="$ac_config_files"
9813 config_headers="$ac_config_headers"
9814 config_commands="$ac_config_commands"
9815
9816 _ACEOF
9817
9818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9819 ac_cs_usage="\
9820 \`$as_me' instantiates files and other configuration actions
9821 from templates according to the current configuration.  Unless the files
9822 and actions are specified as TAGs, all are instantiated by default.
9823
9824 Usage: $0 [OPTION]... [TAG]...
9825
9826   -h, --help       print this help, then exit
9827   -V, --version    print version number and configuration settings, then exit
9828       --config     print configuration, then exit
9829   -q, --quiet, --silent
9830                    do not print progress messages
9831   -d, --debug      don't remove temporary files
9832       --recheck    update $as_me by reconfiguring in the same conditions
9833       --file=FILE[:TEMPLATE]
9834                    instantiate the configuration file FILE
9835       --header=FILE[:TEMPLATE]
9836                    instantiate the configuration header FILE
9837
9838 Configuration files:
9839 $config_files
9840
9841 Configuration headers:
9842 $config_headers
9843
9844 Configuration commands:
9845 $config_commands
9846
9847 Report bugs to <valgrind-users@lists.sourceforge.net>."
9848
9849 _ACEOF
9850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9851 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9852 ac_cs_version="\\
9853 Valgrind config.status 3.6.0.SVN
9854 configured by $0, generated by GNU Autoconf 2.67,
9855   with options \\"\$ac_cs_config\\"
9856
9857 Copyright (C) 2010 Free Software Foundation, Inc.
9858 This config.status script is free software; the Free Software Foundation
9859 gives unlimited permission to copy, distribute and modify it."
9860
9861 ac_pwd='$ac_pwd'
9862 srcdir='$srcdir'
9863 INSTALL='$INSTALL'
9864 MKDIR_P='$MKDIR_P'
9865 AWK='$AWK'
9866 test -n "\$AWK" || AWK=awk
9867 _ACEOF
9868
9869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9870 # The default lists apply if the user does not specify any file.
9871 ac_need_defaults=:
9872 while test $# != 0
9873 do
9874   case $1 in
9875   --*=?*)
9876     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9877     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9878     ac_shift=:
9879     ;;
9880   --*=)
9881     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9882     ac_optarg=
9883     ac_shift=:
9884     ;;
9885   *)
9886     ac_option=$1
9887     ac_optarg=$2
9888     ac_shift=shift
9889     ;;
9890   esac
9891
9892   case $ac_option in
9893   # Handling of the options.
9894   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9895     ac_cs_recheck=: ;;
9896   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9897     $as_echo "$ac_cs_version"; exit ;;
9898   --config | --confi | --conf | --con | --co | --c )
9899     $as_echo "$ac_cs_config"; exit ;;
9900   --debug | --debu | --deb | --de | --d | -d )
9901     debug=: ;;
9902   --file | --fil | --fi | --f )
9903     $ac_shift
9904     case $ac_optarg in
9905     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9906     '') as_fn_error $? "missing file argument" ;;
9907     esac
9908     as_fn_append CONFIG_FILES " '$ac_optarg'"
9909     ac_need_defaults=false;;
9910   --header | --heade | --head | --hea )
9911     $ac_shift
9912     case $ac_optarg in
9913     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9914     esac
9915     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9916     ac_need_defaults=false;;
9917   --he | --h)
9918     # Conflict between --help and --header
9919     as_fn_error $? "ambiguous option: \`$1'
9920 Try \`$0 --help' for more information.";;
9921   --help | --hel | -h )
9922     $as_echo "$ac_cs_usage"; exit ;;
9923   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9924   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9925     ac_cs_silent=: ;;
9926
9927   # This is an error.
9928   -*) as_fn_error $? "unrecognized option: \`$1'
9929 Try \`$0 --help' for more information." ;;
9930
9931   *) as_fn_append ac_config_targets " $1"
9932      ac_need_defaults=false ;;
9933
9934   esac
9935   shift
9936 done
9937
9938 ac_configure_extra_args=
9939
9940 if $ac_cs_silent; then
9941   exec 6>/dev/null
9942   ac_configure_extra_args="$ac_configure_extra_args --silent"
9943 fi
9944
9945 _ACEOF
9946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9947 if \$ac_cs_recheck; then
9948   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9949   shift
9950   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9951   CONFIG_SHELL='$SHELL'
9952   export CONFIG_SHELL
9953   exec "\$@"
9954 fi
9955
9956 _ACEOF
9957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9958 exec 5>>config.log
9959 {
9960   echo
9961   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9962 ## Running $as_me. ##
9963 _ASBOX
9964   $as_echo "$ac_log"
9965 } >&5
9966
9967 _ACEOF
9968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9969 #
9970 # INIT-COMMANDS
9971 #
9972 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9973
9974 _ACEOF
9975
9976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9977
9978 # Handling of arguments.
9979 for ac_config_target in $ac_config_targets
9980 do
9981   case $ac_config_target in
9982     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9983     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9984     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9985     "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
9986     "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
9987     "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
9988     "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
9989     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9990     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9991     "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
9992     "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
9993     "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
9994     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9995     "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
9996     "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
9997     "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
9998     "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
9999     "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
10000     "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
10001     "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
10002     "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
10003     "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
10004     "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
10005     "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
10006     "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
10007     "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10008     "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10009     "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10010     "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10011     "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10012     "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10013     "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10014     "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10015     "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10016     "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10017     "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10018     "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10019     "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10020     "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10021     "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10022     "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10023     "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10024     "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10025     "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10026     "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10027     "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10028     "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10029     "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10030     "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10031     "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10032     "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10033     "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10034     "exp-ptrcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/Makefile" ;;
10035     "exp-ptrcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/tests/Makefile" ;;
10036     "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10037     "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10038     "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10039     "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10040     "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10041     "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10042     "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10043     "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10044     "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10045     "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10046     "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10047     "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10048     "coregrind/link_tool_exe_l4re") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_l4re" ;;
10049
10050   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
10051   esac
10052 done
10053
10054
10055 # If the user did not use the arguments to specify the items to instantiate,
10056 # then the envvar interface is used.  Set only those that are not.
10057 # We use the long form for the default assignment because of an extremely
10058 # bizarre bug on SunOS 4.1.3.
10059 if $ac_need_defaults; then
10060   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10061   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10062   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10063 fi
10064
10065 # Have a temporary directory for convenience.  Make it in the build tree
10066 # simply because there is no reason against having it here, and in addition,
10067 # creating and moving files from /tmp can sometimes cause problems.
10068 # Hook for its removal unless debugging.
10069 # Note that there is a small window in which the directory will not be cleaned:
10070 # after its creation but before its name has been assigned to `$tmp'.
10071 $debug ||
10072 {
10073   tmp=
10074   trap 'exit_status=$?
10075   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10076 ' 0
10077   trap 'as_fn_exit 1' 1 2 13 15
10078 }
10079 # Create a (secure) tmp directory for tmp files.
10080
10081 {
10082   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10083   test -n "$tmp" && test -d "$tmp"
10084 }  ||
10085 {
10086   tmp=./conf$$-$RANDOM
10087   (umask 077 && mkdir "$tmp")
10088 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10089
10090 # Set up the scripts for CONFIG_FILES section.
10091 # No need to generate them if there are no CONFIG_FILES.
10092 # This happens for instance with `./config.status config.h'.
10093 if test -n "$CONFIG_FILES"; then
10094
10095
10096 ac_cr=`echo X | tr X '\015'`
10097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10098 # But we know of no other shell where ac_cr would be empty at this
10099 # point, so we can use a bashism as a fallback.
10100 if test "x$ac_cr" = x; then
10101   eval ac_cr=\$\'\\r\'
10102 fi
10103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10105   ac_cs_awk_cr='\\r'
10106 else
10107   ac_cs_awk_cr=$ac_cr
10108 fi
10109
10110 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10111 _ACEOF
10112
10113
10114 {
10115   echo "cat >conf$$subs.awk <<_ACEOF" &&
10116   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10117   echo "_ACEOF"
10118 } >conf$$subs.sh ||
10119   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10121 ac_delim='%!_!# '
10122 for ac_last_try in false false false false false :; do
10123   . ./conf$$subs.sh ||
10124     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10125
10126   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10127   if test $ac_delim_n = $ac_delim_num; then
10128     break
10129   elif $ac_last_try; then
10130     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10131   else
10132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10133   fi
10134 done
10135 rm -f conf$$subs.sh
10136
10137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10138 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10139 _ACEOF
10140 sed -n '
10141 h
10142 s/^/S["/; s/!.*/"]=/
10143 p
10144 g
10145 s/^[^!]*!//
10146 :repl
10147 t repl
10148 s/'"$ac_delim"'$//
10149 t delim
10150 :nl
10151 h
10152 s/\(.\{148\}\)..*/\1/
10153 t more1
10154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10155 p
10156 n
10157 b repl
10158 :more1
10159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10160 p
10161 g
10162 s/.\{148\}//
10163 t nl
10164 :delim
10165 h
10166 s/\(.\{148\}\)..*/\1/
10167 t more2
10168 s/["\\]/\\&/g; s/^/"/; s/$/"/
10169 p
10170 b
10171 :more2
10172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10173 p
10174 g
10175 s/.\{148\}//
10176 t delim
10177 ' <conf$$subs.awk | sed '
10178 /^[^""]/{
10179   N
10180   s/\n//
10181 }
10182 ' >>$CONFIG_STATUS || ac_write_fail=1
10183 rm -f conf$$subs.awk
10184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10185 _ACAWK
10186 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10187   for (key in S) S_is_set[key] = 1
10188   FS = "\a"
10189
10190 }
10191 {
10192   line = $ 0
10193   nfields = split(line, field, "@")
10194   substed = 0
10195   len = length(field[1])
10196   for (i = 2; i < nfields; i++) {
10197     key = field[i]
10198     keylen = length(key)
10199     if (S_is_set[key]) {
10200       value = S[key]
10201       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10202       len += length(value) + length(field[++i])
10203       substed = 1
10204     } else
10205       len += 1 + keylen
10206   }
10207
10208   print line
10209 }
10210
10211 _ACAWK
10212 _ACEOF
10213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10215   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10216 else
10217   cat
10218 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10219   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10220 _ACEOF
10221
10222 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10223 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10224 # trailing colons and then remove the whole line if VPATH becomes empty
10225 # (actually we leave an empty line to preserve line numbers).
10226 if test "x$srcdir" = x.; then
10227   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10228 h
10229 s///
10230 s/^/:/
10231 s/[      ]*$/:/
10232 s/:\$(srcdir):/:/g
10233 s/:\${srcdir}:/:/g
10234 s/:@srcdir@:/:/g
10235 s/^:*//
10236 s/:*$//
10237 x
10238 s/\(=[   ]*\).*/\1/
10239 G
10240 s/\n//
10241 s/^[^=]*=[       ]*$//
10242 }'
10243 fi
10244
10245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10246 fi # test -n "$CONFIG_FILES"
10247
10248 # Set up the scripts for CONFIG_HEADERS section.
10249 # No need to generate them if there are no CONFIG_HEADERS.
10250 # This happens for instance with `./config.status Makefile'.
10251 if test -n "$CONFIG_HEADERS"; then
10252 cat >"$tmp/defines.awk" <<\_ACAWK ||
10253 BEGIN {
10254 _ACEOF
10255
10256 # Transform confdefs.h into an awk script `defines.awk', embedded as
10257 # here-document in config.status, that substitutes the proper values into
10258 # config.h.in to produce config.h.
10259
10260 # Create a delimiter string that does not exist in confdefs.h, to ease
10261 # handling of long lines.
10262 ac_delim='%!_!# '
10263 for ac_last_try in false false :; do
10264   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10265   if test -z "$ac_t"; then
10266     break
10267   elif $ac_last_try; then
10268     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10269   else
10270     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10271   fi
10272 done
10273
10274 # For the awk script, D is an array of macro values keyed by name,
10275 # likewise P contains macro parameters if any.  Preserve backslash
10276 # newline sequences.
10277
10278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10279 sed -n '
10280 s/.\{148\}/&'"$ac_delim"'/g
10281 t rset
10282 :rset
10283 s/^[     ]*#[    ]*define[       ][      ]*/ /
10284 t def
10285 d
10286 :def
10287 s/\\$//
10288 t bsnl
10289 s/["\\]/\\&/g
10290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10291 D["\1"]=" \3"/p
10292 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10293 d
10294 :bsnl
10295 s/["\\]/\\&/g
10296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10297 D["\1"]=" \3\\\\\\n"\\/p
10298 t cont
10299 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10300 t cont
10301 d
10302 :cont
10303 n
10304 s/.\{148\}/&'"$ac_delim"'/g
10305 t clear
10306 :clear
10307 s/\\$//
10308 t bsnlc
10309 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10310 d
10311 :bsnlc
10312 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10313 b cont
10314 ' <confdefs.h | sed '
10315 s/'"$ac_delim"'/"\\\
10316 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10317
10318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10319   for (key in D) D_is_set[key] = 1
10320   FS = "\a"
10321 }
10322 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10323   line = \$ 0
10324   split(line, arg, " ")
10325   if (arg[1] == "#") {
10326     defundef = arg[2]
10327     mac1 = arg[3]
10328   } else {
10329     defundef = substr(arg[1], 2)
10330     mac1 = arg[2]
10331   }
10332   split(mac1, mac2, "(") #)
10333   macro = mac2[1]
10334   prefix = substr(line, 1, index(line, defundef) - 1)
10335   if (D_is_set[macro]) {
10336     # Preserve the white space surrounding the "#".
10337     print prefix "define", macro P[macro] D[macro]
10338     next
10339   } else {
10340     # Replace #undef with comments.  This is necessary, for example,
10341     # in the case of _POSIX_SOURCE, which is predefined and required
10342     # on some systems where configure will not decide to define it.
10343     if (defundef == "undef") {
10344       print "/*", prefix defundef, macro, "*/"
10345       next
10346     }
10347   }
10348 }
10349 { print }
10350 _ACAWK
10351 _ACEOF
10352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10353   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10354 fi # test -n "$CONFIG_HEADERS"
10355
10356
10357 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10358 shift
10359 for ac_tag
10360 do
10361   case $ac_tag in
10362   :[FHLC]) ac_mode=$ac_tag; continue;;
10363   esac
10364   case $ac_mode$ac_tag in
10365   :[FHL]*:*);;
10366   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
10367   :[FH]-) ac_tag=-:-;;
10368   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10369   esac
10370   ac_save_IFS=$IFS
10371   IFS=:
10372   set x $ac_tag
10373   IFS=$ac_save_IFS
10374   shift
10375   ac_file=$1
10376   shift
10377
10378   case $ac_mode in
10379   :L) ac_source=$1;;
10380   :[FH])
10381     ac_file_inputs=
10382     for ac_f
10383     do
10384       case $ac_f in
10385       -) ac_f="$tmp/stdin";;
10386       *) # Look for the file first in the build tree, then in the source tree
10387          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10388          # because $ac_f cannot contain `:'.
10389          test -f "$ac_f" ||
10390            case $ac_f in
10391            [\\/$]*) false;;
10392            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10393            esac ||
10394            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
10395       esac
10396       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10397       as_fn_append ac_file_inputs " '$ac_f'"
10398     done
10399
10400     # Let's still pretend it is `configure' which instantiates (i.e., don't
10401     # use $as_me), people would be surprised to read:
10402     #    /* config.h.  Generated by config.status.  */
10403     configure_input='Generated from '`
10404           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10405         `' by configure.'
10406     if test x"$ac_file" != x-; then
10407       configure_input="$ac_file.  $configure_input"
10408       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10409 $as_echo "$as_me: creating $ac_file" >&6;}
10410     fi
10411     # Neutralize special characters interpreted by sed in replacement strings.
10412     case $configure_input in #(
10413     *\&* | *\|* | *\\* )
10414        ac_sed_conf_input=`$as_echo "$configure_input" |
10415        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10416     *) ac_sed_conf_input=$configure_input;;
10417     esac
10418
10419     case $ac_tag in
10420     *:-:* | *:-) cat >"$tmp/stdin" \
10421       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
10422     esac
10423     ;;
10424   esac
10425
10426   ac_dir=`$as_dirname -- "$ac_file" ||
10427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10428          X"$ac_file" : 'X\(//\)[^/]' \| \
10429          X"$ac_file" : 'X\(//\)$' \| \
10430          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10431 $as_echo X"$ac_file" |
10432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10433             s//\1/
10434             q
10435           }
10436           /^X\(\/\/\)[^/].*/{
10437             s//\1/
10438             q
10439           }
10440           /^X\(\/\/\)$/{
10441             s//\1/
10442             q
10443           }
10444           /^X\(\/\).*/{
10445             s//\1/
10446             q
10447           }
10448           s/.*/./; q'`
10449   as_dir="$ac_dir"; as_fn_mkdir_p
10450   ac_builddir=.
10451
10452 case "$ac_dir" in
10453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10454 *)
10455   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10456   # A ".." for each directory in $ac_dir_suffix.
10457   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10458   case $ac_top_builddir_sub in
10459   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10460   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10461   esac ;;
10462 esac
10463 ac_abs_top_builddir=$ac_pwd
10464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10465 # for backward compatibility:
10466 ac_top_builddir=$ac_top_build_prefix
10467
10468 case $srcdir in
10469   .)  # We are building in place.
10470     ac_srcdir=.
10471     ac_top_srcdir=$ac_top_builddir_sub
10472     ac_abs_top_srcdir=$ac_pwd ;;
10473   [\\/]* | ?:[\\/]* )  # Absolute name.
10474     ac_srcdir=$srcdir$ac_dir_suffix;
10475     ac_top_srcdir=$srcdir
10476     ac_abs_top_srcdir=$srcdir ;;
10477   *) # Relative name.
10478     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10479     ac_top_srcdir=$ac_top_build_prefix$srcdir
10480     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10481 esac
10482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10483
10484
10485   case $ac_mode in
10486   :F)
10487   #
10488   # CONFIG_FILE
10489   #
10490
10491   case $INSTALL in
10492   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10493   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10494   esac
10495   ac_MKDIR_P=$MKDIR_P
10496   case $MKDIR_P in
10497   [\\/$]* | ?:[\\/]* ) ;;
10498   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10499   esac
10500 _ACEOF
10501
10502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10503 # If the template does not know about datarootdir, expand it.
10504 # FIXME: This hack should be removed a few years after 2.60.
10505 ac_datarootdir_hack=; ac_datarootdir_seen=
10506 ac_sed_dataroot='
10507 /datarootdir/ {
10508   p
10509   q
10510 }
10511 /@datadir@/p
10512 /@docdir@/p
10513 /@infodir@/p
10514 /@localedir@/p
10515 /@mandir@/p'
10516 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10517 *datarootdir*) ac_datarootdir_seen=yes;;
10518 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10520 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10521 _ACEOF
10522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10523   ac_datarootdir_hack='
10524   s&@datadir@&$datadir&g
10525   s&@docdir@&$docdir&g
10526   s&@infodir@&$infodir&g
10527   s&@localedir@&$localedir&g
10528   s&@mandir@&$mandir&g
10529   s&\\\${datarootdir}&$datarootdir&g' ;;
10530 esac
10531 _ACEOF
10532
10533 # Neutralize VPATH when `$srcdir' = `.'.
10534 # Shell code in configure.ac might set extrasub.
10535 # FIXME: do we really want to maintain this feature?
10536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10537 ac_sed_extra="$ac_vpsub
10538 $extrasub
10539 _ACEOF
10540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10541 :t
10542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10543 s|@configure_input@|$ac_sed_conf_input|;t t
10544 s&@top_builddir@&$ac_top_builddir_sub&;t t
10545 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10546 s&@srcdir@&$ac_srcdir&;t t
10547 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10548 s&@top_srcdir@&$ac_top_srcdir&;t t
10549 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10550 s&@builddir@&$ac_builddir&;t t
10551 s&@abs_builddir@&$ac_abs_builddir&;t t
10552 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10553 s&@INSTALL@&$ac_INSTALL&;t t
10554 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10555 $ac_datarootdir_hack
10556 "
10557 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10558   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10559
10560 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10561   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10562   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10563   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10564 which seems to be undefined.  Please make sure it is defined" >&5
10565 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10566 which seems to be undefined.  Please make sure it is defined" >&2;}
10567
10568   rm -f "$tmp/stdin"
10569   case $ac_file in
10570   -) cat "$tmp/out" && rm -f "$tmp/out";;
10571   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10572   esac \
10573   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10574  ;;
10575   :H)
10576   #
10577   # CONFIG_HEADER
10578   #
10579   if test x"$ac_file" != x-; then
10580     {
10581       $as_echo "/* $configure_input  */" \
10582       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10583     } >"$tmp/config.h" \
10584       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10585     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10586       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10587 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10588     else
10589       rm -f "$ac_file"
10590       mv "$tmp/config.h" "$ac_file" \
10591         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10592     fi
10593   else
10594     $as_echo "/* $configure_input  */" \
10595       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10596       || as_fn_error $? "could not create -" "$LINENO" 5
10597   fi
10598 # Compute "$ac_file"'s index in $config_headers.
10599 _am_arg="$ac_file"
10600 _am_stamp_count=1
10601 for _am_header in $config_headers :; do
10602   case $_am_header in
10603     $_am_arg | $_am_arg:* )
10604       break ;;
10605     * )
10606       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10607   esac
10608 done
10609 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10610 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10611          X"$_am_arg" : 'X\(//\)[^/]' \| \
10612          X"$_am_arg" : 'X\(//\)$' \| \
10613          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10614 $as_echo X"$_am_arg" |
10615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10616             s//\1/
10617             q
10618           }
10619           /^X\(\/\/\)[^/].*/{
10620             s//\1/
10621             q
10622           }
10623           /^X\(\/\/\)$/{
10624             s//\1/
10625             q
10626           }
10627           /^X\(\/\).*/{
10628             s//\1/
10629             q
10630           }
10631           s/.*/./; q'`/stamp-h$_am_stamp_count
10632  ;;
10633
10634   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10635 $as_echo "$as_me: executing $ac_file commands" >&6;}
10636  ;;
10637   esac
10638
10639
10640   case $ac_file$ac_mode in
10641     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10642   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10643   # are listed without --file.  Let's play safe and only enable the eval
10644   # if we detect the quoting.
10645   case $CONFIG_FILES in
10646   *\'*) eval set x "$CONFIG_FILES" ;;
10647   *)   set x $CONFIG_FILES ;;
10648   esac
10649   shift
10650   for mf
10651   do
10652     # Strip MF so we end up with the name of the file.
10653     mf=`echo "$mf" | sed -e 's/:.*$//'`
10654     # Check whether this is an Automake generated Makefile or not.
10655     # We used to match only the files named `Makefile.in', but
10656     # some people rename them; so instead we look at the file content.
10657     # Grep'ing the first line is not enough: some people post-process
10658     # each Makefile.in and add a new line on top of each file to say so.
10659     # Grep'ing the whole file is not good either: AIX grep has a line
10660     # limit of 2048, but all sed's we know have understand at least 4000.
10661     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10662       dirpart=`$as_dirname -- "$mf" ||
10663 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10664          X"$mf" : 'X\(//\)[^/]' \| \
10665          X"$mf" : 'X\(//\)$' \| \
10666          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10667 $as_echo X"$mf" |
10668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10669             s//\1/
10670             q
10671           }
10672           /^X\(\/\/\)[^/].*/{
10673             s//\1/
10674             q
10675           }
10676           /^X\(\/\/\)$/{
10677             s//\1/
10678             q
10679           }
10680           /^X\(\/\).*/{
10681             s//\1/
10682             q
10683           }
10684           s/.*/./; q'`
10685     else
10686       continue
10687     fi
10688     # Extract the definition of DEPDIR, am__include, and am__quote
10689     # from the Makefile without running `make'.
10690     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10691     test -z "$DEPDIR" && continue
10692     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10693     test -z "am__include" && continue
10694     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10695     # When using ansi2knr, U may be empty or an underscore; expand it
10696     U=`sed -n 's/^U = //p' < "$mf"`
10697     # Find all dependency output files, they are included files with
10698     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10699     # simplest approach to changing $(DEPDIR) to its actual value in the
10700     # expansion.
10701     for file in `sed -n "
10702       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10703          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10704       # Make sure the directory exists.
10705       test -f "$dirpart/$file" && continue
10706       fdir=`$as_dirname -- "$file" ||
10707 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10708          X"$file" : 'X\(//\)[^/]' \| \
10709          X"$file" : 'X\(//\)$' \| \
10710          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10711 $as_echo X"$file" |
10712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10713             s//\1/
10714             q
10715           }
10716           /^X\(\/\/\)[^/].*/{
10717             s//\1/
10718             q
10719           }
10720           /^X\(\/\/\)$/{
10721             s//\1/
10722             q
10723           }
10724           /^X\(\/\).*/{
10725             s//\1/
10726             q
10727           }
10728           s/.*/./; q'`
10729       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10730       # echo "creating $dirpart/$file"
10731       echo '# dummy' > "$dirpart/$file"
10732     done
10733   done
10734 }
10735  ;;
10736     "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10737     "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10738     "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10739     "coregrind/link_tool_exe_l4re":F) chmod +x coregrind/link_tool_exe_l4re ;;
10740
10741   esac
10742 done # for ac_tag
10743
10744
10745 as_fn_exit 0
10746 _ACEOF
10747 ac_clean_files=$ac_clean_files_save
10748
10749 test $ac_write_fail = 0 ||
10750   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10751
10752
10753 # configure is writing to config.log, and then calls config.status.
10754 # config.status does its own redirection, appending to config.log.
10755 # Unfortunately, on DOS this fails, as config.log is still kept open
10756 # by configure, so config.status won't be able to write to it; its
10757 # output is simply discarded.  So we exec the FD to /dev/null,
10758 # effectively closing config.log, so it can be properly (re)opened and
10759 # appended to by config.status.  When coming back to configure, we
10760 # need to make the FD available again.
10761 if test "$no_create" != yes; then
10762   ac_cs_success=:
10763   ac_config_status_args=
10764   test "$silent" = yes &&
10765     ac_config_status_args="$ac_config_status_args --quiet"
10766   exec 5>/dev/null
10767   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10768   exec 5>>config.log
10769   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10770   # would make configure fail if this is the last instruction.
10771   $ac_cs_success || as_fn_exit 1
10772 fi
10773 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10775 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10776 fi
10777
10778
10779 cat<<EOF
10780
10781          Maximum build arch: ${ARCH_MAX}
10782          Primary build arch: ${VGCONF_ARCH_PRI}
10783        Secondary build arch: ${VGCONF_ARCH_SEC}
10784                    Build OS: ${VGCONF_OS}
10785        Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10786      Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10787          Default supp files: ${DEFAULT_SUPP}
10788        Generated supp files: ${GENERATED_SUPP}
10789
10790 EOF