]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/configure
987becd4984ff4ddea5044df3c4d4ca48e633acb
[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.65 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 Free Software Foundation,
10 # 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 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=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&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, 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
616 BUILD_MPIWRAP_SEC_FALSE
617 BUILD_MPIWRAP_SEC_TRUE
618 BUILD_MPIWRAP_PRI_FALSE
619 BUILD_MPIWRAP_PRI_TRUE
620 MPI_CC
621 HAVE_PTHREAD_SPINLOCK_FALSE
622 HAVE_PTHREAD_SPINLOCK_TRUE
623 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
624 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
625 HAVE_PTHREAD_BARRIER_FALSE
626 HAVE_PTHREAD_BARRIER_TRUE
627 LIBOBJS
628 BUILD_SSSE3_TESTS_FALSE
629 BUILD_SSSE3_TESTS_TRUE
630 BUILD_SSE3_TESTS_FALSE
631 BUILD_SSE3_TESTS_TRUE
632 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
633 FLAG_FNO_STACK_PROTECTOR
634 FLAG_W_EXTRA
635 FLAG_W_NO_UNINITIALIZED
636 FLAG_W_NO_FORMAT_ZERO_LENGTH
637 FLAG_W_NO_EMPTY_BODY
638 PREFERRED_STACK_BOUNDARY
639 FLAG_MSSE
640 FLAG_MMMX
641 FLAG_MAIX64
642 FLAG_M64
643 FLAG_MAIX32
644 FLAG_M32
645 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
646 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
647 HAVE_ALTIVEC_H_FALSE
648 HAVE_ALTIVEC_H_TRUE
649 HAS_ALTIVEC_FALSE
650 HAS_ALTIVEC_TRUE
651 GLIBC_VERSION
652 EGREP
653 GREP
654 GENERATED_SUPP
655 DEFAULT_SUPP
656 VALT_LOAD_ADDRESS
657 VGCONF_HAVE_PLATFORM_SEC_FALSE
658 VGCONF_HAVE_PLATFORM_SEC_TRUE
659 VGCONF_OS_IS_L4RE_FALSE
660 VGCONF_OS_IS_L4RE_TRUE
661 VGCONF_OS_IS_DARWIN_FALSE
662 VGCONF_OS_IS_DARWIN_TRUE
663 VGCONF_OS_IS_AIX5_FALSE
664 VGCONF_OS_IS_AIX5_TRUE
665 VGCONF_OS_IS_LINUX_FALSE
666 VGCONF_OS_IS_LINUX_TRUE
667 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
668 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
669 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
670 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
671 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
672 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
673 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
674 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
675 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
676 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
677 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
678 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
679 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
680 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
681 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
682 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
683 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
684 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
685 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
686 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
687 VGCONF_ARCHS_INCLUDE_ARM_FALSE
688 VGCONF_ARCHS_INCLUDE_ARM_TRUE
689 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
690 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
691 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
692 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
693 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
694 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
695 VGCONF_ARCHS_INCLUDE_X86_FALSE
696 VGCONF_ARCHS_INCLUDE_X86_TRUE
697 VGCONF_PLATFORM_SEC_CAPS
698 VGCONF_PLATFORM_PRI_CAPS
699 VGCONF_ARCH_SEC
700 VGCONF_ARCH_PRI
701 VGCONF_OS
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 DIFF
711 am__fastdepCCAS_FALSE
712 am__fastdepCCAS_TRUE
713 CCASDEPMODE
714 CCASFLAGS
715 CCAS
716 GDB
717 PERL
718 AR
719 RANLIB
720 am__fastdepCXX_FALSE
721 am__fastdepCXX_TRUE
722 CXXDEPMODE
723 ac_ct_CXX
724 CXXFLAGS
725 CXX
726 CPP
727 am__fastdepCC_FALSE
728 am__fastdepCC_TRUE
729 CCDEPMODE
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__quote
734 am__include
735 DEPDIR
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 LN_S
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_alias
771 host_alias
772 build_alias
773 LIBS
774 ECHO_T
775 ECHO_N
776 ECHO_C
777 DEFS
778 mandir
779 localedir
780 libdir
781 psdir
782 pdfdir
783 dvidir
784 htmldir
785 infodir
786 docdir
787 oldincludedir
788 includedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_maintainer_mode
812 enable_dependency_tracking
813 enable_only64bit
814 enable_only32bit
815 enable_inner
816 enable_tls
817 with_mpicc
818 '
819       ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 CPP
828 CXX
829 CXXFLAGS
830 CCC
831 AR
832 CCAS
833 CCASFLAGS
834 PKG_CONFIG
835 QTCORE_CFLAGS
836 QTCORE_LIBS'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
886
887 ac_prev=
888 ac_dashdash=
889 for ac_option
890 do
891   # If the previous option needs an argument, assign it.
892   if test -n "$ac_prev"; then
893     eval $ac_prev=\$ac_option
894     ac_prev=
895     continue
896   fi
897
898   case $ac_option in
899   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900   *)    ac_optarg=yes ;;
901   esac
902
903   # Accept the important Cygnus configure options, so we can diagnose typos.
904
905   case $ac_dashdash$ac_option in
906   --)
907     ac_dashdash=yes ;;
908
909   -bindir | --bindir | --bindi | --bind | --bin | --bi)
910     ac_prev=bindir ;;
911   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912     bindir=$ac_optarg ;;
913
914   -build | --build | --buil | --bui | --bu)
915     ac_prev=build_alias ;;
916   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917     build_alias=$ac_optarg ;;
918
919   -cache-file | --cache-file | --cache-fil | --cache-fi \
920   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921     ac_prev=cache_file ;;
922   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924     cache_file=$ac_optarg ;;
925
926   --config-cache | -C)
927     cache_file=config.cache ;;
928
929   -datadir | --datadir | --datadi | --datad)
930     ac_prev=datadir ;;
931   -datadir=* | --datadir=* | --datadi=* | --datad=*)
932     datadir=$ac_optarg ;;
933
934   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935   | --dataroo | --dataro | --datar)
936     ac_prev=datarootdir ;;
937   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939     datarootdir=$ac_optarg ;;
940
941   -disable-* | --disable-*)
942     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945       as_fn_error "invalid feature name: $ac_useropt"
946     ac_useropt_orig=$ac_useropt
947     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948     case $ac_user_opts in
949       *"
950 "enable_$ac_useropt"
951 "*) ;;
952       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953          ac_unrecognized_sep=', ';;
954     esac
955     eval enable_$ac_useropt=no ;;
956
957   -docdir | --docdir | --docdi | --doc | --do)
958     ac_prev=docdir ;;
959   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960     docdir=$ac_optarg ;;
961
962   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963     ac_prev=dvidir ;;
964   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965     dvidir=$ac_optarg ;;
966
967   -enable-* | --enable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       as_fn_error "invalid feature name: $ac_useropt"
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=\$ac_optarg ;;
982
983   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985   | --exec | --exe | --ex)
986     ac_prev=exec_prefix ;;
987   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989   | --exec=* | --exe=* | --ex=*)
990     exec_prefix=$ac_optarg ;;
991
992   -gas | --gas | --ga | --g)
993     # Obsolete; use --with-gas.
994     with_gas=yes ;;
995
996   -help | --help | --hel | --he | -h)
997     ac_init_help=long ;;
998   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999     ac_init_help=recursive ;;
1000   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001     ac_init_help=short ;;
1002
1003   -host | --host | --hos | --ho)
1004     ac_prev=host_alias ;;
1005   -host=* | --host=* | --hos=* | --ho=*)
1006     host_alias=$ac_optarg ;;
1007
1008   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009     ac_prev=htmldir ;;
1010   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011   | --ht=*)
1012     htmldir=$ac_optarg ;;
1013
1014   -includedir | --includedir | --includedi | --included | --include \
1015   | --includ | --inclu | --incl | --inc)
1016     ac_prev=includedir ;;
1017   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018   | --includ=* | --inclu=* | --incl=* | --inc=*)
1019     includedir=$ac_optarg ;;
1020
1021   -infodir | --infodir | --infodi | --infod | --info | --inf)
1022     ac_prev=infodir ;;
1023   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024     infodir=$ac_optarg ;;
1025
1026   -libdir | --libdir | --libdi | --libd)
1027     ac_prev=libdir ;;
1028   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029     libdir=$ac_optarg ;;
1030
1031   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032   | --libexe | --libex | --libe)
1033     ac_prev=libexecdir ;;
1034   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035   | --libexe=* | --libex=* | --libe=*)
1036     libexecdir=$ac_optarg ;;
1037
1038   -localedir | --localedir | --localedi | --localed | --locale)
1039     ac_prev=localedir ;;
1040   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041     localedir=$ac_optarg ;;
1042
1043   -localstatedir | --localstatedir | --localstatedi | --localstated \
1044   | --localstate | --localstat | --localsta | --localst | --locals)
1045     ac_prev=localstatedir ;;
1046   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048     localstatedir=$ac_optarg ;;
1049
1050   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051     ac_prev=mandir ;;
1052   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053     mandir=$ac_optarg ;;
1054
1055   -nfp | --nfp | --nf)
1056     # Obsolete; use --without-fp.
1057     with_fp=no ;;
1058
1059   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060   | --no-cr | --no-c | -n)
1061     no_create=yes ;;
1062
1063   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065     no_recursion=yes ;;
1066
1067   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069   | --oldin | --oldi | --old | --ol | --o)
1070     ac_prev=oldincludedir ;;
1071   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074     oldincludedir=$ac_optarg ;;
1075
1076   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077     ac_prev=prefix ;;
1078   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079     prefix=$ac_optarg ;;
1080
1081   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082   | --program-pre | --program-pr | --program-p)
1083     ac_prev=program_prefix ;;
1084   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086     program_prefix=$ac_optarg ;;
1087
1088   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089   | --program-suf | --program-su | --program-s)
1090     ac_prev=program_suffix ;;
1091   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093     program_suffix=$ac_optarg ;;
1094
1095   -program-transform-name | --program-transform-name \
1096   | --program-transform-nam | --program-transform-na \
1097   | --program-transform-n | --program-transform- \
1098   | --program-transform | --program-transfor \
1099   | --program-transfo | --program-transf \
1100   | --program-trans | --program-tran \
1101   | --progr-tra | --program-tr | --program-t)
1102     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1111
1112   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113     ac_prev=pdfdir ;;
1114   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115     pdfdir=$ac_optarg ;;
1116
1117   -psdir | --psdir | --psdi | --psd | --ps)
1118     ac_prev=psdir ;;
1119   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120     psdir=$ac_optarg ;;
1121
1122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123   | -silent | --silent | --silen | --sile | --sil)
1124     silent=yes ;;
1125
1126   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127     ac_prev=sbindir ;;
1128   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129   | --sbi=* | --sb=*)
1130     sbindir=$ac_optarg ;;
1131
1132   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134   | --sharedst | --shareds | --shared | --share | --shar \
1135   | --sha | --sh)
1136     ac_prev=sharedstatedir ;;
1137   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140   | --sha=* | --sh=*)
1141     sharedstatedir=$ac_optarg ;;
1142
1143   -site | --site | --sit)
1144     ac_prev=site ;;
1145   -site=* | --site=* | --sit=*)
1146     site=$ac_optarg ;;
1147
1148   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149     ac_prev=srcdir ;;
1150   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151     srcdir=$ac_optarg ;;
1152
1153   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154   | --syscon | --sysco | --sysc | --sys | --sy)
1155     ac_prev=sysconfdir ;;
1156   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158     sysconfdir=$ac_optarg ;;
1159
1160   -target | --target | --targe | --targ | --tar | --ta | --t)
1161     ac_prev=target_alias ;;
1162   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163     target_alias=$ac_optarg ;;
1164
1165   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166     verbose=yes ;;
1167
1168   -version | --version | --versio | --versi | --vers | -V)
1169     ac_init_version=: ;;
1170
1171   -with-* | --with-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=\$ac_optarg ;;
1186
1187   -without-* | --without-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=no ;;
1202
1203   --x)
1204     # Obsolete; use --with-x.
1205     with_x=yes ;;
1206
1207   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208   | --x-incl | --x-inc | --x-in | --x-i)
1209     ac_prev=x_includes ;;
1210   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212     x_includes=$ac_optarg ;;
1213
1214   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216     ac_prev=x_libraries ;;
1217   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219     x_libraries=$ac_optarg ;;
1220
1221   -*) as_fn_error "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information."
1223     ;;
1224
1225   *=*)
1226     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227     # Reject names that are not valid shell variable names.
1228     case $ac_envvar in #(
1229       '' | [0-9]* | *[!_$as_cr_alnum]* )
1230       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231     esac
1232     eval $ac_envvar=\$ac_optarg
1233     export $ac_envvar ;;
1234
1235   *)
1236     # FIXME: should be removed in autoconf 3.0.
1237     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241     ;;
1242
1243   esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248   as_fn_error "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252   case $enable_option_checking in
1253     no) ;;
1254     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1255     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256   esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261                 datadir sysconfdir sharedstatedir localstatedir includedir \
1262                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263                 libdir localedir mandir
1264 do
1265   eval ac_val=\$$ac_var
1266   # Remove trailing slashes.
1267   case $ac_val in
1268     */ )
1269       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270       eval $ac_var=\$ac_val;;
1271   esac
1272   # Be sure to have absolute directory names.
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289   if test "x$build_alias" = x; then
1290     cross_compiling=maybe
1291     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1292     If a cross compiler is detected then cross compile mode will be used." >&2
1293   elif test "x$build_alias" != "x$host_alias"; then
1294     cross_compiling=yes
1295   fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307   as_fn_error "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   as_fn_error "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$as_myself" : 'X\(//\)[^/]' \| \
1319          X"$as_myself" : 'X\(//\)$' \| \
1320          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures Valgrind 3.6.0.SVN to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR            object code libraries [EPREFIX/lib]
1419   --includedir=DIR        C header files [PREFIX/include]
1420   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR           info documentation [DATAROOTDIR/info]
1424   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR            man documentation [DATAROOTDIR/man]
1426   --docdir=DIR            documentation root [DATAROOTDIR/doc/valgrind]
1427   --htmldir=DIR           html documentation [DOCDIR]
1428   --dvidir=DIR            dvi documentation [DOCDIR]
1429   --pdfdir=DIR            pdf documentation [DOCDIR]
1430   --psdir=DIR             ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 Program names:
1436   --program-prefix=PREFIX            prepend PREFIX to installed program names
1437   --program-suffix=SUFFIX            append SUFFIX to installed program names
1438   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440 System types:
1441   --build=BUILD     configure for building on BUILD [guessed]
1442   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447   case $ac_init_help in
1448      short | recursive ) echo "Configuration of Valgrind 3.6.0.SVN:";;
1449    esac
1450   cat <<\_ACEOF
1451
1452 Optional Features:
1453   --disable-option-checking  ignore unrecognized --enable/--with options
1454   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1455   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1456   --enable-maintainer-mode  enable make rules and dependencies not useful
1457                           (and sometimes confusing) to the casual installer
1458   --disable-dependency-tracking  speeds up one-time build
1459   --enable-dependency-tracking   do not reject slow dependency extractors
1460   --enable-only64bit      do a 64-bit only build
1461   --enable-only32bit      do a 32-bit only build
1462   --enable-inner          enables self-hosting
1463   --enable-tls            platform supports TLS
1464
1465 Optional Packages:
1466   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1467   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1468   --with-mpicc=           Specify name of MPI2-ised C compiler
1469
1470 Some influential environment variables:
1471   CC          C compiler command
1472   CFLAGS      C compiler flags
1473   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474               nonstandard directory <lib dir>
1475   LIBS        libraries to pass to the linker, e.g. -l<library>
1476   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477               you have headers in a nonstandard directory <include dir>
1478   CPP         C preprocessor
1479   CXX         C++ compiler command
1480   CXXFLAGS    C++ compiler flags
1481   AR          Archiver command
1482   CCAS        assembler compiler command (defaults to CC)
1483   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1484   PKG_CONFIG  path to pkg-config utility
1485   QTCORE_CFLAGS
1486               C compiler flags for QTCORE, overriding pkg-config
1487   QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <valgrind-users@lists.sourceforge.net>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" ||
1501       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502       continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 Valgrind configure 3.6.0.SVN
1556 generated by GNU Autoconf 2.65
1557
1558 Copyright (C) 2009 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562   exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   rm -f conftest.$ac_objext
1576   if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579   *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583   (eval "$ac_compile") 2>conftest.err
1584   ac_status=$?
1585   if test -s conftest.err; then
1586     grep -v '^ *+' conftest.err >conftest.er1
1587     cat conftest.er1 >&5
1588     mv -f conftest.er1 conftest.err
1589   fi
1590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591   test $ac_status = 0; } && {
1592          test -z "$ac_c_werror_flag" ||
1593          test ! -s conftest.err
1594        } && test -s conftest.$ac_objext; then :
1595   ac_retval=0
1596 else
1597   $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600         ac_retval=1
1601 fi
1602   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603   as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } >/dev/null && {
1629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        }; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637     ac_retval=1
1638 fi
1639   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_cpp
1643
1644 # ac_fn_cxx_try_compile LINENO
1645 # ----------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_cxx_try_compile ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   rm -f conftest.$ac_objext
1651   if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_compile") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } && {
1667          test -z "$ac_cxx_werror_flag" ||
1668          test ! -s conftest.err
1669        } && test -s conftest.$ac_objext; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675         ac_retval=1
1676 fi
1677   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_cxx_try_compile
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688   rm -f conftest.$ac_objext conftest$ac_exeext
1689   if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_link") 2>conftest.err
1697   ac_status=$?
1698   if test -s conftest.err; then
1699     grep -v '^ *+' conftest.err >conftest.er1
1700     cat conftest.er1 >&5
1701     mv -f conftest.er1 conftest.err
1702   fi
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; } && {
1705          test -z "$ac_c_werror_flag" ||
1706          test ! -s conftest.err
1707        } && test -s conftest$ac_exeext && {
1708          test "$cross_compiling" = yes ||
1709          $as_test_x conftest$ac_exeext
1710        }; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716         ac_retval=1
1717 fi
1718   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720   # interfere with the next link command; also delete a directory that is
1721   # left behind by Apple's compiler.  We do this before executing the actions.
1722   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724   as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_link
1727
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1732 ac_fn_c_try_run ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738   *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742   (eval "$ac_link") 2>&5
1743   ac_status=$?
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746   { { case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_try") 2>&5
1753   ac_status=$?
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; }; }; then :
1756   ac_retval=0
1757 else
1758   $as_echo "$as_me: program exited with status $ac_status" >&5
1759        $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762        ac_retval=$ac_status
1763 fi
1764   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766   as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_run
1769
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782   $as_echo_n "(cached) " >&6
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788   # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797   ac_header_compiler=yes
1798 else
1799   ac_header_compiler=no
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1804
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813   ac_header_preproc=yes
1814 else
1815   ac_header_preproc=no
1816 fi
1817 rm -f conftest.err conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1820
1821 # So?  What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823   yes:no: )
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828     ;;
1829   no:yes:* )
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( cat <<\_ASBOX
1841 ## --------------------------------------------------- ##
1842 ## Report this to valgrind-users@lists.sourceforge.net ##
1843 ## --------------------------------------------------- ##
1844 _ASBOX
1845      ) | sed "s/^/$as_me: WARNING:     /" >&2
1846     ;;
1847 esac
1848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851   $as_echo_n "(cached) " >&6
1852 else
1853   eval "$3=\$ac_header_compiler"
1854 fi
1855 eval ac_res=\$$3
1856                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 fi
1859   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860
1861 } # ac_fn_c_check_header_mongrel
1862
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873   $as_echo_n "(cached) " >&6
1874 else
1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 $4
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881   eval "$3=yes"
1882 else
1883   eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892 } # ac_fn_c_check_header_compile
1893
1894 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1895 # -------------------------------------------
1896 # Tests whether TYPE exists after having included INCLUDES, setting cache
1897 # variable VAR accordingly.
1898 ac_fn_c_check_type ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904   $as_echo_n "(cached) " >&6
1905 else
1906   eval "$3=no"
1907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 int
1911 main ()
1912 {
1913 if (sizeof ($2))
1914          return 0;
1915   ;
1916   return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h.  */
1922 $4
1923 int
1924 main ()
1925 {
1926 if (sizeof (($2)))
1927             return 0;
1928   ;
1929   return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933
1934 else
1935   eval "$3=yes"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946 } # ac_fn_c_check_type
1947
1948 # ac_fn_c_check_func LINENO FUNC VAR
1949 # ----------------------------------
1950 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1951 ac_fn_c_check_func ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957   $as_echo_n "(cached) " >&6
1958 else
1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1963 #define $2 innocuous_$2
1964
1965 /* System header to define __stub macros and hopefully few prototypes,
1966     which can conflict with char $2 (); below.
1967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968     <limits.h> exists even on freestanding compilers.  */
1969
1970 #ifdef __STDC__
1971 # include <limits.h>
1972 #else
1973 # include <assert.h>
1974 #endif
1975
1976 #undef $2
1977
1978 /* Override any GCC internal prototype to avoid an error.
1979    Use char because int might match the return type of a GCC
1980    builtin and then its argument prototype would still apply.  */
1981 #ifdef __cplusplus
1982 extern "C"
1983 #endif
1984 char $2 ();
1985 /* The GNU C library defines this for functions which it implements
1986     to always fail with ENOSYS.  Some functions are actually named
1987     something starting with __ and the normal name is an alias.  */
1988 #if defined __stub_$2 || defined __stub___$2
1989 choke me
1990 #endif
1991
1992 int
1993 main ()
1994 {
1995 return $2 ();
1996   ;
1997   return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_link "$LINENO"; then :
2001   eval "$3=yes"
2002 else
2003   eval "$3=no"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext \
2006     conftest$ac_exeext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012
2013 } # ac_fn_c_check_func
2014
2015 # ac_fn_cxx_try_link LINENO
2016 # -------------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_link ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   rm -f conftest.$ac_objext conftest$ac_exeext
2022   if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025   *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029   (eval "$ac_link") 2>conftest.err
2030   ac_status=$?
2031   if test -s conftest.err; then
2032     grep -v '^ *+' conftest.err >conftest.er1
2033     cat conftest.er1 >&5
2034     mv -f conftest.er1 conftest.err
2035   fi
2036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037   test $ac_status = 0; } && {
2038          test -z "$ac_cxx_werror_flag" ||
2039          test ! -s conftest.err
2040        } && test -s conftest$ac_exeext && {
2041          test "$cross_compiling" = yes ||
2042          $as_test_x conftest$ac_exeext
2043        }; then :
2044   ac_retval=0
2045 else
2046   $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049         ac_retval=1
2050 fi
2051   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053   # interfere with the next link command; also delete a directory that is
2054   # left behind by Apple's compiler.  We do this before executing the actions.
2055   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057   as_fn_set_status $ac_retval
2058
2059 } # ac_fn_cxx_try_link
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2063
2064 It was created by Valgrind $as_me 3.6.0.SVN, which was
2065 generated by GNU Autoconf 2.65.  Invocation command line was
2066
2067   $ $0 $@
2068
2069 _ACEOF
2070 exec 5>>config.log
2071 {
2072 cat <<_ASUNAME
2073 ## --------- ##
2074 ## Platform. ##
2075 ## --------- ##
2076
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2085
2086 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2087 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2090 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2091 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2092 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2093
2094 _ASUNAME
2095
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099   IFS=$as_save_IFS
2100   test -z "$as_dir" && as_dir=.
2101     $as_echo "PATH: $as_dir"
2102   done
2103 IFS=$as_save_IFS
2104
2105 } >&5
2106
2107 cat >&5 <<_ACEOF
2108
2109
2110 ## ----------- ##
2111 ## Core tests. ##
2112 ## ----------- ##
2113
2114 _ACEOF
2115
2116
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_configure_args=
2123 ac_configure_args0=
2124 ac_configure_args1=
2125 ac_must_keep_next=false
2126 for ac_pass in 1 2
2127 do
2128   for ac_arg
2129   do
2130     case $ac_arg in
2131     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133     | -silent | --silent | --silen | --sile | --sil)
2134       continue ;;
2135     *\'*)
2136       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137     esac
2138     case $ac_pass in
2139     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140     2)
2141       as_fn_append ac_configure_args1 " '$ac_arg'"
2142       if test $ac_must_keep_next = true; then
2143         ac_must_keep_next=false # Got value, back to normal.
2144       else
2145         case $ac_arg in
2146           *=* | --config-cache | -C | -disable-* | --disable-* \
2147           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149           | -with-* | --with-* | -without-* | --without-* | --x)
2150             case "$ac_configure_args0 " in
2151               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152             esac
2153             ;;
2154           -* ) ac_must_keep_next=true ;;
2155         esac
2156       fi
2157       as_fn_append ac_configure_args " '$ac_arg'"
2158       ;;
2159     esac
2160   done
2161 done
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2164
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log.  We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171   # Save into config.log some information that might help in debugging.
2172   {
2173     echo
2174
2175     cat <<\_ASBOX
2176 ## ---------------- ##
2177 ## Cache variables. ##
2178 ## ---------------- ##
2179 _ASBOX
2180     echo
2181     # The following way of writing the cache mishandles newlines in values,
2182 (
2183   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184     eval ac_val=\$$ac_var
2185     case $ac_val in #(
2186     *${as_nl}*)
2187       case $ac_var in #(
2188       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2190       esac
2191       case $ac_var in #(
2192       _ | IFS | as_nl) ;; #(
2193       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2194       *) { eval $ac_var=; unset $ac_var;} ;;
2195       esac ;;
2196     esac
2197   done
2198   (set) 2>&1 |
2199     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200     *${as_nl}ac_space=\ *)
2201       sed -n \
2202         "s/'\''/'\''\\\\'\'''\''/g;
2203           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2204       ;; #(
2205     *)
2206       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2207       ;;
2208     esac |
2209     sort
2210 )
2211     echo
2212
2213     cat <<\_ASBOX
2214 ## ----------------- ##
2215 ## Output variables. ##
2216 ## ----------------- ##
2217 _ASBOX
2218     echo
2219     for ac_var in $ac_subst_vars
2220     do
2221       eval ac_val=\$$ac_var
2222       case $ac_val in
2223       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224       esac
2225       $as_echo "$ac_var='\''$ac_val'\''"
2226     done | sort
2227     echo
2228
2229     if test -n "$ac_subst_files"; then
2230       cat <<\_ASBOX
2231 ## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##
2234 _ASBOX
2235       echo
2236       for ac_var in $ac_subst_files
2237       do
2238         eval ac_val=\$$ac_var
2239         case $ac_val in
2240         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241         esac
2242         $as_echo "$ac_var='\''$ac_val'\''"
2243       done | sort
2244       echo
2245     fi
2246
2247     if test -s confdefs.h; then
2248       cat <<\_ASBOX
2249 ## ----------- ##
2250 ## confdefs.h. ##
2251 ## ----------- ##
2252 _ASBOX
2253       echo
2254       cat confdefs.h
2255       echo
2256     fi
2257     test "$ac_signal" != 0 &&
2258       $as_echo "$as_me: caught signal $ac_signal"
2259     $as_echo "$as_me: exit $exit_status"
2260   } >&5
2261   rm -f core *.core core.conftest.* &&
2262     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2263     exit $exit_status
2264 ' 0
2265 for ac_signal in 1 2 13 15; do
2266   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 done
2268 ac_signal=0
2269
2270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2271 rm -f -r conftest* confdefs.h
2272
2273 $as_echo "/* confdefs.h */" > confdefs.h
2274
2275 # Predefined preprocessor variables.
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_NAME "$PACKAGE_NAME"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_STRING "$PACKAGE_STRING"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2295 _ACEOF
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_URL "$PACKAGE_URL"
2299 _ACEOF
2300
2301
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer an explicitly selected file to automatically selected ones.
2304 ac_site_file1=NONE
2305 ac_site_file2=NONE
2306 if test -n "$CONFIG_SITE"; then
2307   ac_site_file1=$CONFIG_SITE
2308 elif test "x$prefix" != xNONE; then
2309   ac_site_file1=$prefix/share/config.site
2310   ac_site_file2=$prefix/etc/config.site
2311 else
2312   ac_site_file1=$ac_default_prefix/share/config.site
2313   ac_site_file2=$ac_default_prefix/etc/config.site
2314 fi
2315 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2316 do
2317   test "x$ac_site_file" = xNONE && continue
2318   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2319     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2320 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2321     sed 's/^/| /' "$ac_site_file" >&5
2322     . "$ac_site_file"
2323   fi
2324 done
2325
2326 if test -r "$cache_file"; then
2327   # Some versions of bash will fail to source /dev/null (special files
2328   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2329   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332     case $cache_file in
2333       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334       *)                      . "./$cache_file";;
2335     esac
2336   fi
2337 else
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340   >$cache_file
2341 fi
2342
2343 as_fn_append ac_header_list " stdlib.h"
2344 as_fn_append ac_header_list " unistd.h"
2345 as_fn_append ac_header_list " sys/param.h"
2346 # Check that the precious variables saved in the cache have kept the same
2347 # value.
2348 ac_cache_corrupted=false
2349 for ac_var in $ac_precious_vars; do
2350   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351   eval ac_new_set=\$ac_env_${ac_var}_set
2352   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353   eval ac_new_val=\$ac_env_${ac_var}_value
2354   case $ac_old_set,$ac_new_set in
2355     set,)
2356       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2358       ac_cache_corrupted=: ;;
2359     ,set)
2360       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2362       ac_cache_corrupted=: ;;
2363     ,);;
2364     *)
2365       if test "x$ac_old_val" != "x$ac_new_val"; then
2366         # differences in whitespace do not lead to failure.
2367         ac_old_val_w=`echo x $ac_old_val`
2368         ac_new_val_w=`echo x $ac_new_val`
2369         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372           ac_cache_corrupted=:
2373         else
2374           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376           eval $ac_var=\$ac_old_val
2377         fi
2378         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2379 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2380         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2381 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2382       fi;;
2383   esac
2384   # Pass precious variables to config.status.
2385   if test "$ac_new_set" = set; then
2386     case $ac_new_val in
2387     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2388     *) ac_arg=$ac_var=$ac_new_val ;;
2389     esac
2390     case " $ac_configure_args " in
2391       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2392       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393     esac
2394   fi
2395 done
2396 if $ac_cache_corrupted; then
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2402 fi
2403 ## -------------------- ##
2404 ## Main body of script. ##
2405 ## -------------------- ##
2406
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412
2413
2414
2415 ac_config_headers="$ac_config_headers config.h"
2416
2417 am__api_version='1.11'
2418
2419 ac_aux_dir=
2420 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2421   for ac_t in install-sh install.sh shtool; do
2422     if test -f "$ac_dir/$ac_t"; then
2423       ac_aux_dir=$ac_dir
2424       ac_install_sh="$ac_aux_dir/$ac_t -c"
2425       break 2
2426     fi
2427   done
2428 done
2429 if test -z "$ac_aux_dir"; then
2430   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2431 fi
2432
2433 # These three variables are undocumented and unsupported,
2434 # and are intended to be withdrawn in a future Autoconf release.
2435 # They can cause serious problems if a builder's source tree is in a directory
2436 # whose full name contains unusual characters.
2437 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2438 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2439 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2440
2441
2442 # Find a good install program.  We prefer a C program (faster),
2443 # so one script is as good as another.  But avoid the broken or
2444 # incompatible versions:
2445 # SysV /etc/install, /usr/sbin/install
2446 # SunOS /usr/etc/install
2447 # IRIX /sbin/install
2448 # AIX /bin/install
2449 # AmigaOS /C/install, which installs bootblocks on floppy discs
2450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453 # OS/2's system install, which has a completely different semantic
2454 # ./install, which can be erroneously created by make from ./install.sh.
2455 # Reject install programs that cannot install multiple files.
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then :
2460   $as_echo_n "(cached) " >&6
2461 else
2462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in #((
2469   ./ | .// | /[cC]/* | \
2470   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2472   /usr/ucb/* ) ;;
2473   *)
2474     # OSF1 and SCO ODT 3.0 have their own names for install.
2475     # Don't use installbsd from OSF since it installs stuff as root
2476     # by default.
2477     for ac_prog in ginstall scoinst install; do
2478       for ac_exec_ext in '' $ac_executable_extensions; do
2479         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2480           if test $ac_prog = install &&
2481             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482             # AIX install.  It has an incompatible calling convention.
2483             :
2484           elif test $ac_prog = install &&
2485             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486             # program-specific install script used by HP pwplus--don't use.
2487             :
2488           else
2489             rm -rf conftest.one conftest.two conftest.dir
2490             echo one > conftest.one
2491             echo two > conftest.two
2492             mkdir conftest.dir
2493             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494               test -s conftest.one && test -s conftest.two &&
2495               test -s conftest.dir/conftest.one &&
2496               test -s conftest.dir/conftest.two
2497             then
2498               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499               break 3
2500             fi
2501           fi
2502         fi
2503       done
2504     done
2505     ;;
2506 esac
2507
2508   done
2509 IFS=$as_save_IFS
2510
2511 rm -rf conftest.one conftest.two conftest.dir
2512
2513 fi
2514   if test "${ac_cv_path_install+set}" = set; then
2515     INSTALL=$ac_cv_path_install
2516   else
2517     # As a last resort, use the slow shell script.  Don't cache a
2518     # value for INSTALL within a source directory, because that will
2519     # break other packages using the cache if that directory is
2520     # removed, or if the value is a relative name.
2521     INSTALL=$ac_install_sh
2522   fi
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525 $as_echo "$INSTALL" >&6; }
2526
2527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528 # It thinks the first close brace ends the variable substitution.
2529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
2531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532
2533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2536 $as_echo_n "checking whether build environment is sane... " >&6; }
2537 # Just in case
2538 sleep 1
2539 echo timestamp > conftest.file
2540 # Reject unsafe characters in $srcdir or the absolute working directory
2541 # name.  Accept space and tab only in the latter.
2542 am_lf='
2543 '
2544 case `pwd` in
2545   *[\\\"\#\$\&\'\`$am_lf]*)
2546     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2547 esac
2548 case $srcdir in
2549   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2550     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2551 esac
2552
2553 # Do `set' in a subshell so we don't clobber the current shell's
2554 # arguments.  Must try -L first in case configure is actually a
2555 # symlink; some systems play weird games with the mod time of symlinks
2556 # (eg FreeBSD returns the mod time of the symlink's containing
2557 # directory).
2558 if (
2559    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2560    if test "$*" = "X"; then
2561       # -L didn't work.
2562       set X `ls -t "$srcdir/configure" conftest.file`
2563    fi
2564    rm -f conftest.file
2565    if test "$*" != "X $srcdir/configure conftest.file" \
2566       && test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568       # If neither matched, then we have a broken ls.  This can happen
2569       # if, for instance, CONFIG_SHELL is bash and it inherits a
2570       # broken ls alias from the environment.  This has actually
2571       # happened.  Such a system could not be considered "sane".
2572       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2573 alias in your environment" "$LINENO" 5
2574    fi
2575
2576    test "$2" = conftest.file
2577    )
2578 then
2579    # Ok.
2580    :
2581 else
2582    as_fn_error "newly created file is older than distributed files!
2583 Check your system clock" "$LINENO" 5
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2586 $as_echo "yes" >&6; }
2587 test "$program_prefix" != NONE &&
2588   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2589 # Use a double $ so make ignores it.
2590 test "$program_suffix" != NONE &&
2591   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2592 # Double any \ or $.
2593 # By default was `s,x,x', remove it if useless.
2594 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2595 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2596
2597 # expand $ac_aux_dir to an absolute path
2598 am_aux_dir=`cd $ac_aux_dir && pwd`
2599
2600 if test x"${MISSING+set}" != xset; then
2601   case $am_aux_dir in
2602   *\ * | *\     *)
2603     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2604   *)
2605     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606   esac
2607 fi
2608 # Use eval to expand $SHELL
2609 if eval "$MISSING --run true"; then
2610   am_missing_run="$MISSING --run "
2611 else
2612   am_missing_run=
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2614 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2615 fi
2616
2617 if test x"${install_sh}" != xset; then
2618   case $am_aux_dir in
2619   *\ * | *\     *)
2620     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2621   *)
2622     install_sh="\${SHELL} $am_aux_dir/install-sh"
2623   esac
2624 fi
2625
2626 # Installed binaries are usually stripped using `strip' when the user
2627 # run `make install-strip'.  However `strip' might not be the right
2628 # tool to use in cross-compilation environments, therefore Automake
2629 # will honor the `STRIP' environment variable to overrule this program.
2630 if test "$cross_compiling" != no; then
2631   if test -n "$ac_tool_prefix"; then
2632   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}strip; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_STRIP+set}" = set; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$STRIP"; then
2640   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654   done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 STRIP=$ac_cv_prog_STRIP
2660 if test -n "$STRIP"; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2662 $as_echo "$STRIP" >&6; }
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669 fi
2670 if test -z "$ac_cv_prog_STRIP"; then
2671   ac_ct_STRIP=$STRIP
2672   # Extract the first word of "strip", so it can be a program name with args.
2673 set dummy strip; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test -n "$ac_ct_STRIP"; then
2680   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687     for ac_exec_ext in '' $ac_executable_extensions; do
2688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689     ac_cv_prog_ac_ct_STRIP="strip"
2690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691     break 2
2692   fi
2693 done
2694   done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2700 if test -n "$ac_ct_STRIP"; then
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2702 $as_echo "$ac_ct_STRIP" >&6; }
2703 else
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708   if test "x$ac_ct_STRIP" = x; then
2709     STRIP=":"
2710   else
2711     case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2716 esac
2717     STRIP=$ac_ct_STRIP
2718   fi
2719 else
2720   STRIP="$ac_cv_prog_STRIP"
2721 fi
2722
2723 fi
2724 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2725
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2727 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2728 if test -z "$MKDIR_P"; then
2729   if test "${ac_cv_path_mkdir+set}" = set; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_prog in mkdir gmkdir; do
2738          for ac_exec_ext in '' $ac_executable_extensions; do
2739            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2740            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2741              'mkdir (GNU coreutils) '* | \
2742              'mkdir (coreutils) '* | \
2743              'mkdir (fileutils) '4.1*)
2744                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2745                break 3;;
2746            esac
2747          done
2748        done
2749   done
2750 IFS=$as_save_IFS
2751
2752 fi
2753
2754   test -d ./--version && rmdir ./--version
2755   if test "${ac_cv_path_mkdir+set}" = set; then
2756     MKDIR_P="$ac_cv_path_mkdir -p"
2757   else
2758     # As a last resort, use the slow shell script.  Don't cache a
2759     # value for MKDIR_P within a source directory, because that will
2760     # break other packages using the cache if that directory is
2761     # removed, or if the value is a relative name.
2762     MKDIR_P="$ac_install_sh -d"
2763   fi
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2766 $as_echo "$MKDIR_P" >&6; }
2767
2768 mkdir_p="$MKDIR_P"
2769 case $mkdir_p in
2770   [\\/$]* | ?:[\\/]*) ;;
2771   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2772 esac
2773
2774 for ac_prog in gawk mawk nawk awk
2775 do
2776   # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_AWK+set}" = set; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   if test -n "$AWK"; then
2784   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     for ac_exec_ext in '' $ac_executable_extensions; do
2792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793     ac_cv_prog_AWK="$ac_prog"
2794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798   done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 AWK=$ac_cv_prog_AWK
2804 if test -n "$AWK"; then
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2806 $as_echo "$AWK" >&6; }
2807 else
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813   test -n "$AWK" && break
2814 done
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2818 set x ${MAKE-make}
2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2820 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2821   $as_echo_n "(cached) " >&6
2822 else
2823   cat >conftest.make <<\_ACEOF
2824 SHELL = /bin/sh
2825 all:
2826         @echo '@@@%%%=$(MAKE)=@@@%%%'
2827 _ACEOF
2828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2830   *@@@%%%=?*=@@@%%%*)
2831     eval ac_cv_prog_make_${ac_make}_set=yes;;
2832   *)
2833     eval ac_cv_prog_make_${ac_make}_set=no;;
2834 esac
2835 rm -f conftest.make
2836 fi
2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2840   SET_MAKE=
2841 else
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844   SET_MAKE="MAKE=${MAKE-make}"
2845 fi
2846
2847 rm -rf .tst 2>/dev/null
2848 mkdir .tst 2>/dev/null
2849 if test -d .tst; then
2850   am__leading_dot=.
2851 else
2852   am__leading_dot=_
2853 fi
2854 rmdir .tst 2>/dev/null
2855
2856 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2857   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2858   # is not polluted with repeated "-I."
2859   am__isrc=' -I$(srcdir)'
2860   # test to see if srcdir already configured
2861   if test -f $srcdir/config.status; then
2862     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2863   fi
2864 fi
2865
2866 # test whether we have cygpath
2867 if test -z "$CYGPATH_W"; then
2868   if (cygpath --version) >/dev/null 2>/dev/null; then
2869     CYGPATH_W='cygpath -w'
2870   else
2871     CYGPATH_W=echo
2872   fi
2873 fi
2874
2875
2876 # Define the identity of the package.
2877  PACKAGE='valgrind'
2878  VERSION='3.6.0.SVN'
2879
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE "$PACKAGE"
2883 _ACEOF
2884
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define VERSION "$VERSION"
2888 _ACEOF
2889
2890 # Some tools Automake needs.
2891
2892 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2893
2894
2895 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2896
2897
2898 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2899
2900
2901 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2902
2903
2904 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2905
2906 # We need awk for the "check" target.  The system "awk" is bad on
2907 # some platforms.
2908 # Always define AMTAR for backward compatibility.
2909
2910 AMTAR=${AMTAR-"${am_missing_run}tar"}
2911
2912 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2913
2914
2915
2916
2917
2918
2919
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2921 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2922     # Check whether --enable-maintainer-mode was given.
2923 if test "${enable_maintainer_mode+set}" = set; then :
2924   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2925 else
2926   USE_MAINTAINER_MODE=no
2927 fi
2928
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2930 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2931    if test $USE_MAINTAINER_MODE = yes; then
2932   MAINTAINER_MODE_TRUE=
2933   MAINTAINER_MODE_FALSE='#'
2934 else
2935   MAINTAINER_MODE_TRUE='#'
2936   MAINTAINER_MODE_FALSE=
2937 fi
2938
2939   MAINT=$MAINTAINER_MODE_TRUE
2940
2941
2942
2943 #----------------------------------------------------------------------------
2944 # Checks for various programs.
2945 #----------------------------------------------------------------------------
2946 CFLAGS="-Wno-long-long"
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2949 $as_echo_n "checking whether ln -s works... " >&6; }
2950 LN_S=$as_ln_s
2951 if test "$LN_S" = "ln -s"; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953 $as_echo "yes" >&6; }
2954 else
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2956 $as_echo "no, using $LN_S" >&6; }
2957 fi
2958
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 if test -n "$ac_tool_prefix"; then
2965   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_CC+set}" = set; then :
2970   $as_echo_n "(cached) " >&6
2971 else
2972   if test -n "$CC"; then
2973   ac_cv_prog_CC="$CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980     for ac_exec_ext in '' $ac_executable_extensions; do
2981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984     break 2
2985   fi
2986 done
2987   done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2996 else
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 fi
3003 if test -z "$ac_cv_prog_CC"; then
3004   ac_ct_CC=$CC
3005   # Extract the first word of "gcc", so it can be a program name with args.
3006 set dummy gcc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if test -n "$ac_ct_CC"; then
3013   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_ac_ct_CC="gcc"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041   if test "x$ac_ct_CC" = x; then
3042     CC=""
3043   else
3044     case $cross_compiling:$ac_tool_warned in
3045 yes:)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3049 esac
3050     CC=$ac_ct_CC
3051   fi
3052 else
3053   CC="$ac_cv_prog_CC"
3054 fi
3055
3056 if test -z "$CC"; then
3057           if test -n "$ac_tool_prefix"; then
3058     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_CC+set}" = set; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   if test -n "$CC"; then
3066   ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071   IFS=$as_save_IFS
3072   test -z "$as_dir" && as_dir=.
3073     for ac_exec_ext in '' $ac_executable_extensions; do
3074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075     ac_cv_prog_CC="${ac_tool_prefix}cc"
3076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077     break 2
3078   fi
3079 done
3080   done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3089 else
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095   fi
3096 fi
3097 if test -z "$CC"; then
3098   # Extract the first word of "cc", so it can be a program name with args.
3099 set dummy cc; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if test "${ac_cv_prog_CC+set}" = set; then :
3103   $as_echo_n "(cached) " >&6
3104 else
3105   if test -n "$CC"; then
3106   ac_cv_prog_CC="$CC" # Let the user override the test.
3107 else
3108   ac_prog_rejected=no
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114     for ac_exec_ext in '' $ac_executable_extensions; do
3115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3117        ac_prog_rejected=yes
3118        continue
3119      fi
3120     ac_cv_prog_CC="cc"
3121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125   done
3126 IFS=$as_save_IFS
3127
3128 if test $ac_prog_rejected = yes; then
3129   # We found a bogon in the path, so make sure we never use it.
3130   set dummy $ac_cv_prog_CC
3131   shift
3132   if test $# != 0; then
3133     # We chose a different compiler from the bogus one.
3134     # However, it has the same basename, so the bogon will be chosen
3135     # first if we set CC to just the basename; use the full file name.
3136     shift
3137     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3138   fi
3139 fi
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152 fi
3153 if test -z "$CC"; then
3154   if test -n "$ac_tool_prefix"; then
3155   for ac_prog in cl.exe
3156   do
3157     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if test "${ac_cv_prog_CC+set}" = set; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if test -n "$CC"; then
3165   ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172     for ac_exec_ext in '' $ac_executable_extensions; do
3173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179   done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 CC=$ac_cv_prog_CC
3185 if test -n "$CC"; then
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3188 else
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194     test -n "$CC" && break
3195   done
3196 fi
3197 if test -z "$CC"; then
3198   ac_ct_CC=$CC
3199   for ac_prog in cl.exe
3200 do
3201   # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$ac_ct_CC"; then
3209   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_ac_ct_CC="$ac_prog"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238   test -n "$ac_ct_CC" && break
3239 done
3240
3241   if test "x$ac_ct_CC" = x; then
3242     CC=""
3243   else
3244     case $cross_compiling:$ac_tool_warned in
3245 yes:)
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248 ac_tool_warned=yes ;;
3249 esac
3250     CC=$ac_ct_CC
3251   fi
3252 fi
3253
3254 fi
3255
3256
3257 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error "no acceptable C compiler found in \$PATH
3260 See \`config.log' for more details." "$LINENO" 5; }
3261
3262 # Provide some information about the compiler.
3263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3264 set X $ac_compile
3265 ac_compiler=$2
3266 for ac_option in --version -v -V -qversion; do
3267   { { ac_try="$ac_compiler $ac_option >&5"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3275   ac_status=$?
3276   if test -s conftest.err; then
3277     sed '10a\
3278 ... rest of stderr output deleted ...
3279          10q' conftest.err >conftest.er1
3280     cat conftest.er1 >&5
3281   fi
3282   rm -f conftest.er1 conftest.err
3283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284   test $ac_status = 0; }
3285 done
3286
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h.  */
3289
3290 int
3291 main ()
3292 {
3293
3294   ;
3295   return 0;
3296 }
3297 _ACEOF
3298 ac_clean_files_save=$ac_clean_files
3299 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3300 # Try to create an executable without -o first, disregard a.out.
3301 # It will help us diagnose broken compilers, and finding out an intuition
3302 # of exeext.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3304 $as_echo_n "checking whether the C compiler works... " >&6; }
3305 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3306
3307 # The possible output files:
3308 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309
3310 ac_rmfiles=
3311 for ac_file in $ac_files
3312 do
3313   case $ac_file in
3314     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3316   esac
3317 done
3318 rm -f $ac_rmfiles
3319
3320 if { { ac_try="$ac_link_default"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327   (eval "$ac_link_default") 2>&5
3328   ac_status=$?
3329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330   test $ac_status = 0; }; then :
3331   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3333 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3334 # so that the user can short-circuit this test for compilers unknown to
3335 # Autoconf.
3336 for ac_file in $ac_files ''
3337 do
3338   test -f "$ac_file" || continue
3339   case $ac_file in
3340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341         ;;
3342     [ab].out )
3343         # We found the default executable, but exeext='' is most
3344         # certainly right.
3345         break;;
3346     *.* )
3347         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3348         then :; else
3349            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350         fi
3351         # We set ac_cv_exeext here because the later test for it is not
3352         # safe: cross compilers may not add the suffix if given an `-o'
3353         # argument, so we may need to know it at that point already.
3354         # Even if this section looks crufty: it has the advantage of
3355         # actually working.
3356         break;;
3357     * )
3358         break;;
3359   esac
3360 done
3361 test "$ac_cv_exeext" = no && ac_cv_exeext=
3362
3363 else
3364   ac_file=''
3365 fi
3366 if test -z "$ac_file"; then :
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { as_fn_set_status 77
3375 as_fn_error "C compiler cannot create executables
3376 See \`config.log' for more details." "$LINENO" 5; }; }
3377 else
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3382 $as_echo_n "checking for C compiler default output file name... " >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3384 $as_echo "$ac_file" >&6; }
3385 ac_exeext=$ac_cv_exeext
3386
3387 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3390 $as_echo_n "checking for suffix of executables... " >&6; }
3391 if { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398   (eval "$ac_link") 2>&5
3399   ac_status=$?
3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401   test $ac_status = 0; }; then :
3402   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3403 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3404 # work properly (i.e., refer to `conftest.exe'), while it won't with
3405 # `rm'.
3406 for ac_file in conftest.exe conftest conftest.*; do
3407   test -f "$ac_file" || continue
3408   case $ac_file in
3409     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411           break;;
3412     * ) break;;
3413   esac
3414 done
3415 else
3416   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error "cannot compute suffix of executables: cannot compile and link
3419 See \`config.log' for more details." "$LINENO" 5; }
3420 fi
3421 rm -f conftest conftest$ac_cv_exeext
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3423 $as_echo "$ac_cv_exeext" >&6; }
3424
3425 rm -f conftest.$ac_ext
3426 EXEEXT=$ac_cv_exeext
3427 ac_exeext=$EXEEXT
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h.  */
3430 #include <stdio.h>
3431 int
3432 main ()
3433 {
3434 FILE *f = fopen ("conftest.out", "w");
3435  return ferror (f) || fclose (f) != 0;
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 ac_clean_files="$ac_clean_files conftest.out"
3442 # Check that the compiler produces executables we can run.  If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3445 $as_echo_n "checking whether we are cross compiling... " >&6; }
3446 if test "$cross_compiling" != yes; then
3447   { { ac_try="$ac_link"
3448 case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454   (eval "$ac_link") 2>&5
3455   ac_status=$?
3456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457   test $ac_status = 0; }
3458   if { ac_try='./conftest$ac_cv_exeext'
3459   { { case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465   (eval "$ac_try") 2>&5
3466   ac_status=$?
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }; }; then
3469     cross_compiling=no
3470   else
3471     if test "$cross_compiling" = maybe; then
3472         cross_compiling=yes
3473     else
3474         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error "cannot run C compiled programs.
3477 If you meant to cross compile, use \`--host'.
3478 See \`config.log' for more details." "$LINENO" 5; }
3479     fi
3480   fi
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3483 $as_echo "$cross_compiling" >&6; }
3484
3485 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3486 ac_clean_files=$ac_clean_files_save
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3488 $as_echo_n "checking for suffix of object files... " >&6; }
3489 if test "${ac_cv_objext+set}" = set; then :
3490   $as_echo_n "(cached) " >&6
3491 else
3492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.o conftest.obj
3504 if { { ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511   (eval "$ac_compile") 2>&5
3512   ac_status=$?
3513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514   test $ac_status = 0; }; then :
3515   for ac_file in conftest.o conftest.obj conftest.*; do
3516   test -f "$ac_file" || continue;
3517   case $ac_file in
3518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3519     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3520        break;;
3521   esac
3522 done
3523 else
3524   $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error "cannot compute suffix of object files: cannot compile
3530 See \`config.log' for more details." "$LINENO" 5; }
3531 fi
3532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3535 $as_echo "$ac_cv_objext" >&6; }
3536 OBJEXT=$ac_cv_objext
3537 ac_objext=$OBJEXT
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3540 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549 #ifndef __GNUC__
3550        choke me
3551 #endif
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558   ac_compiler_gnu=yes
3559 else
3560   ac_compiler_gnu=no
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3569   GCC=yes
3570 else
3571   GCC=
3572 fi
3573 ac_test_CFLAGS=${CFLAGS+set}
3574 ac_save_CFLAGS=$CFLAGS
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3577 if test "${ac_cv_prog_cc_g+set}" = set; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   ac_save_c_werror_flag=$ac_c_werror_flag
3581    ac_c_werror_flag=yes
3582    ac_cv_prog_cc_g=no
3583    CFLAGS="-g"
3584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596   ac_cv_prog_cc_g=yes
3597 else
3598   CFLAGS=""
3599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h.  */
3601
3602 int
3603 main ()
3604 {
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611
3612 else
3613   ac_c_werror_flag=$ac_save_c_werror_flag
3614          CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634    ac_c_werror_flag=$ac_save_c_werror_flag
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3637 $as_echo "$ac_cv_prog_cc_g" >&6; }
3638 if test "$ac_test_CFLAGS" = set; then
3639   CFLAGS=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641   if test "$GCC" = yes; then
3642     CFLAGS="-g -O2"
3643   else
3644     CFLAGS="-g"
3645   fi
3646 else
3647   if test "$GCC" = yes; then
3648     CFLAGS="-O2"
3649   else
3650     CFLAGS=
3651   fi
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3655 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   ac_cv_prog_cc_c89=no
3659 ac_save_CC=$CC
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h.  */
3662 #include <stdarg.h>
3663 #include <stdio.h>
3664 #include <sys/types.h>
3665 #include <sys/stat.h>
3666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3667 struct buf { int x; };
3668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669 static char *e (p, i)
3670      char **p;
3671      int i;
3672 {
3673   return p[i];
3674 }
3675 static char *f (char * (*g) (char **, int), char **p, ...)
3676 {
3677   char *s;
3678   va_list v;
3679   va_start (v,p);
3680   s = g (p, va_arg (v,int));
3681   va_end (v);
3682   return s;
3683 }
3684
3685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3686    function prototypes and stuff, but not '\xHH' hex character constants.
3687    These don't provoke an error unfortunately, instead are silently treated
3688    as 'x'.  The following induces an error, until -std is added to get
3689    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3690    array size at least.  It's necessary to write '\x00'==0 to get something
3691    that's true only with -std.  */
3692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3693
3694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695    inside strings and character constants.  */
3696 #define FOO(x) 'x'
3697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3698
3699 int test (int i, double x);
3700 struct s1 {int (*f) (int a);};
3701 struct s2 {int (*f) (double a);};
3702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 int argc;
3704 char **argv;
3705 int
3706 main ()
3707 {
3708 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715 do
3716   CC="$ac_save_CC $ac_arg"
3717   if ac_fn_c_try_compile "$LINENO"; then :
3718   ac_cv_prog_cc_c89=$ac_arg
3719 fi
3720 rm -f core conftest.err conftest.$ac_objext
3721   test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 done
3723 rm -f conftest.$ac_ext
3724 CC=$ac_save_CC
3725
3726 fi
3727 # AC_CACHE_VAL
3728 case "x$ac_cv_prog_cc_c89" in
3729   x)
3730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3731 $as_echo "none needed" >&6; } ;;
3732   xno)
3733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3734 $as_echo "unsupported" >&6; } ;;
3735   *)
3736     CC="$CC $ac_cv_prog_cc_c89"
3737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3739 esac
3740 if test "x$ac_cv_prog_cc_c89" != xno; then :
3741
3742 fi
3743
3744 ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749 DEPDIR="${am__leading_dot}deps"
3750
3751 ac_config_commands="$ac_config_commands depfiles"
3752
3753
3754 am_make=${MAKE-make}
3755 cat > confinc << 'END'
3756 am__doit:
3757         @echo this is the am__doit target
3758 .PHONY: am__doit
3759 END
3760 # If we don't find an include directive, just comment out the code.
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3762 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3763 am__include="#"
3764 am__quote=
3765 _am_result=none
3766 # First try GNU make style include.
3767 echo "include confinc" > confmf
3768 # Ignore all kinds of additional output from `make'.
3769 case `$am_make -s -f confmf 2> /dev/null` in #(
3770 *the\ am__doit\ target*)
3771   am__include=include
3772   am__quote=
3773   _am_result=GNU
3774   ;;
3775 esac
3776 # Now try BSD make style include.
3777 if test "$am__include" = "#"; then
3778    echo '.include "confinc"' > confmf
3779    case `$am_make -s -f confmf 2> /dev/null` in #(
3780    *the\ am__doit\ target*)
3781      am__include=.include
3782      am__quote="\""
3783      _am_result=BSD
3784      ;;
3785    esac
3786 fi
3787
3788
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3790 $as_echo "$_am_result" >&6; }
3791 rm -f confinc confmf
3792
3793 # Check whether --enable-dependency-tracking was given.
3794 if test "${enable_dependency_tracking+set}" = set; then :
3795   enableval=$enable_dependency_tracking;
3796 fi
3797
3798 if test "x$enable_dependency_tracking" != xno; then
3799   am_depcomp="$ac_aux_dir/depcomp"
3800   AMDEPBACKSLASH='\'
3801 fi
3802  if test "x$enable_dependency_tracking" != xno; then
3803   AMDEP_TRUE=
3804   AMDEP_FALSE='#'
3805 else
3806   AMDEP_TRUE='#'
3807   AMDEP_FALSE=
3808 fi
3809
3810
3811
3812 depcc="$CC"   am_compiler_list=
3813
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3815 $as_echo_n "checking dependency style of $depcc... " >&6; }
3816 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3820   # We make a subdir and do the tests there.  Otherwise we can end up
3821   # making bogus files that we don't know about and never remove.  For
3822   # instance it was reported that on HP-UX the gcc test will end up
3823   # making a dummy file named `D' -- because `-MD' means `put the output
3824   # in D'.
3825   mkdir conftest.dir
3826   # Copy depcomp to subdir because otherwise we won't find it if we're
3827   # using a relative directory.
3828   cp "$am_depcomp" conftest.dir
3829   cd conftest.dir
3830   # We will build objects and dependencies in a subdirectory because
3831   # it helps to detect inapplicable dependency modes.  For instance
3832   # both Tru64's cc and ICC support -MD to output dependencies as a
3833   # side effect of compilation, but ICC will put the dependencies in
3834   # the current directory while Tru64 will put them in the object
3835   # directory.
3836   mkdir sub
3837
3838   am_cv_CC_dependencies_compiler_type=none
3839   if test "$am_compiler_list" = ""; then
3840      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3841   fi
3842   am__universal=false
3843   case " $depcc " in #(
3844      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3845      esac
3846
3847   for depmode in $am_compiler_list; do
3848     # Setup a source with many dependencies, because some compilers
3849     # like to wrap large dependency lists on column 80 (with \), and
3850     # we should not choose a depcomp mode which is confused by this.
3851     #
3852     # We need to recreate these files for each test, as the compiler may
3853     # overwrite some of them when testing with obscure command lines.
3854     # This happens at least with the AIX C compiler.
3855     : > sub/conftest.c
3856     for i in 1 2 3 4 5 6; do
3857       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859       # Solaris 8's {/usr,}/bin/sh.
3860       touch sub/conftst$i.h
3861     done
3862     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3863
3864     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3865     # mode.  It turns out that the SunPro C++ compiler does not properly
3866     # handle `-M -o', and we need to detect this.  Also, some Intel
3867     # versions had trouble with output in subdirs
3868     am__obj=sub/conftest.${OBJEXT-o}
3869     am__minus_obj="-o $am__obj"
3870     case $depmode in
3871     gcc)
3872       # This depmode causes a compiler race in universal mode.
3873       test "$am__universal" = false || continue
3874       ;;
3875     nosideeffect)
3876       # after this tag, mechanisms are not by side-effect, so they'll
3877       # only be used when explicitly requested
3878       if test "x$enable_dependency_tracking" = xyes; then
3879         continue
3880       else
3881         break
3882       fi
3883       ;;
3884     msvisualcpp | msvcmsys)
3885       # This compiler won't grok `-c -o', but also, the minuso test has
3886       # not run yet.  These depmodes are late enough in the game, and
3887       # so weak that their functioning should not be impacted.
3888       am__obj=conftest.${OBJEXT-o}
3889       am__minus_obj=
3890       ;;
3891     none) break ;;
3892     esac
3893     if depmode=$depmode \
3894        source=sub/conftest.c object=$am__obj \
3895        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3896        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3897          >/dev/null 2>conftest.err &&
3898        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3899        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3900        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3901        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3902       # icc doesn't choke on unknown options, it will just issue warnings
3903       # or remarks (even with -Werror).  So we grep stderr for any message
3904       # that says an option was ignored or not supported.
3905       # When given -MP, icc 7.0 and 7.1 complain thusly:
3906       #   icc: Command line warning: ignoring option '-M'; no argument required
3907       # The diagnosis changed in icc 8.0:
3908       #   icc: Command line remark: option '-MP' not supported
3909       if (grep 'ignoring option' conftest.err ||
3910           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3911         am_cv_CC_dependencies_compiler_type=$depmode
3912         break
3913       fi
3914     fi
3915   done
3916
3917   cd ..
3918   rm -rf conftest.dir
3919 else
3920   am_cv_CC_dependencies_compiler_type=none
3921 fi
3922
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3925 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3927
3928  if
3929   test "x$enable_dependency_tracking" != xno \
3930   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3931   am__fastdepCC_TRUE=
3932   am__fastdepCC_FALSE='#'
3933 else
3934   am__fastdepCC_TRUE='#'
3935   am__fastdepCC_FALSE=
3936 fi
3937
3938
3939 if test "x$CC" != xcc; then
3940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3941 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3942 else
3943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3944 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3945 fi
3946 set dummy $CC; ac_cc=`$as_echo "$2" |
3947                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3948 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953
3954 int
3955 main ()
3956 {
3957
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 # Make sure it works both with $CC and with simple cc.
3963 # We do the test twice because some compilers refuse to overwrite an
3964 # existing .o file with -o, though they will create one.
3965 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3966 rm -f conftest2.*
3967 if { { case "(($ac_try" in
3968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969   *) ac_try_echo=$ac_try;;
3970 esac
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973   (eval "$ac_try") 2>&5
3974   ac_status=$?
3975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976   test $ac_status = 0; } &&
3977    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979   *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983   (eval "$ac_try") 2>&5
3984   ac_status=$?
3985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986   test $ac_status = 0; };
3987 then
3988   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3989   if test "x$CC" != xcc; then
3990     # Test first that cc exists at all.
3991     if { ac_try='cc -c conftest.$ac_ext >&5'
3992   { { case "(($ac_try" in
3993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994   *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998   (eval "$ac_try") 2>&5
3999   ac_status=$?
4000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001   test $ac_status = 0; }; }; then
4002       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4003       rm -f conftest2.*
4004       if { { case "(($ac_try" in
4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006   *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010   (eval "$ac_try") 2>&5
4011   ac_status=$?
4012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013   test $ac_status = 0; } &&
4014          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 $as_echo "$ac_try_echo"; } >&5
4020   (eval "$ac_try") 2>&5
4021   ac_status=$?
4022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023   test $ac_status = 0; };
4024       then
4025         # cc works too.
4026         :
4027       else
4028         # cc exists but doesn't like -o.
4029         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4030       fi
4031     fi
4032   fi
4033 else
4034   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4035 fi
4036 rm -f core conftest*
4037
4038 fi
4039 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4041 $as_echo "yes" >&6; }
4042 else
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4045
4046 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4047
4048 fi
4049
4050 # FIXME: we rely on the cache variable name because
4051 # there is no other way.
4052 set dummy $CC
4053 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4054 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4055 if test "$am_t" != yes; then
4056    # Losing compiler, so override with the script.
4057    # FIXME: It is wrong to rewrite CC.
4058    # But if we don't then we get into trouble of one sort or another.
4059    # A longer-term fix would be to have automake use am__CC in this case,
4060    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4061    CC="$am_aux_dir/compile $CC"
4062 fi
4063
4064
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4072 # On Suns, sometimes $CPP names a directory.
4073 if test -n "$CPP" && test -d "$CPP"; then
4074   CPP=
4075 fi
4076 if test -z "$CPP"; then
4077   if test "${ac_cv_prog_CPP+set}" = set; then :
4078   $as_echo_n "(cached) " >&6
4079 else
4080       # Double quotes because CPP needs to be expanded
4081     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4082     do
4083       ac_preproc_ok=false
4084 for ac_c_preproc_warn_flag in '' yes
4085 do
4086   # Use a header file that comes with gcc, so configuring glibc
4087   # with a fresh cross-compiler works.
4088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089   # <limits.h> exists even on freestanding compilers.
4090   # On the NeXT, cc -E runs the code through the compiler's parser,
4091   # not just through cpp. "Syntax error" is here to catch this case.
4092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h.  */
4094 #ifdef __STDC__
4095 # include <limits.h>
4096 #else
4097 # include <assert.h>
4098 #endif
4099                      Syntax error
4100 _ACEOF
4101 if ac_fn_c_try_cpp "$LINENO"; then :
4102
4103 else
4104   # Broken: fails on valid input.
4105 continue
4106 fi
4107 rm -f conftest.err conftest.$ac_ext
4108
4109   # OK, works on sane cases.  Now check whether nonexistent headers
4110   # can be detected and how.
4111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113 #include <ac_nonexistent.h>
4114 _ACEOF
4115 if ac_fn_c_try_cpp "$LINENO"; then :
4116   # Broken: success on invalid input.
4117 continue
4118 else
4119   # Passes both tests.
4120 ac_preproc_ok=:
4121 break
4122 fi
4123 rm -f conftest.err conftest.$ac_ext
4124
4125 done
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.err conftest.$ac_ext
4128 if $ac_preproc_ok; then :
4129   break
4130 fi
4131
4132     done
4133     ac_cv_prog_CPP=$CPP
4134
4135 fi
4136   CPP=$ac_cv_prog_CPP
4137 else
4138   ac_cv_prog_CPP=$CPP
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4141 $as_echo "$CPP" >&6; }
4142 ac_preproc_ok=false
4143 for ac_c_preproc_warn_flag in '' yes
4144 do
4145   # Use a header file that comes with gcc, so configuring glibc
4146   # with a fresh cross-compiler works.
4147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148   # <limits.h> exists even on freestanding compilers.
4149   # On the NeXT, cc -E runs the code through the compiler's parser,
4150   # not just through cpp. "Syntax error" is here to catch this case.
4151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h.  */
4153 #ifdef __STDC__
4154 # include <limits.h>
4155 #else
4156 # include <assert.h>
4157 #endif
4158                      Syntax error
4159 _ACEOF
4160 if ac_fn_c_try_cpp "$LINENO"; then :
4161
4162 else
4163   # Broken: fails on valid input.
4164 continue
4165 fi
4166 rm -f conftest.err conftest.$ac_ext
4167
4168   # OK, works on sane cases.  Now check whether nonexistent headers
4169   # can be detected and how.
4170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h.  */
4172 #include <ac_nonexistent.h>
4173 _ACEOF
4174 if ac_fn_c_try_cpp "$LINENO"; then :
4175   # Broken: success on invalid input.
4176 continue
4177 else
4178   # Passes both tests.
4179 ac_preproc_ok=:
4180 break
4181 fi
4182 rm -f conftest.err conftest.$ac_ext
4183
4184 done
4185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186 rm -f conftest.err conftest.$ac_ext
4187 if $ac_preproc_ok; then :
4188
4189 else
4190   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4193 See \`config.log' for more details." "$LINENO" 5; }
4194 fi
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201
4202 ac_ext=cpp
4203 ac_cpp='$CXXCPP $CPPFLAGS'
4204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4207 if test -z "$CXX"; then
4208   if test -n "$CCC"; then
4209     CXX=$CCC
4210   else
4211     if test -n "$ac_tool_prefix"; then
4212   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4213   do
4214     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if test "${ac_cv_prog_CXX+set}" = set; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   if test -n "$CXX"; then
4222   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229     for ac_exec_ext in '' $ac_executable_extensions; do
4230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236   done
4237 IFS=$as_save_IFS
4238
4239 fi
4240 fi
4241 CXX=$ac_cv_prog_CXX
4242 if test -n "$CXX"; then
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4244 $as_echo "$CXX" >&6; }
4245 else
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249
4250
4251     test -n "$CXX" && break
4252   done
4253 fi
4254 if test -z "$CXX"; then
4255   ac_ct_CXX=$CXX
4256   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4257 do
4258   # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4263   $as_echo_n "(cached) " >&6
4264 else
4265   if test -n "$ac_ct_CXX"; then
4266   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273     for ac_exec_ext in '' $ac_executable_extensions; do
4274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275     ac_cv_prog_ac_ct_CXX="$ac_prog"
4276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280   done
4281 IFS=$as_save_IFS
4282
4283 fi
4284 fi
4285 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4286 if test -n "$ac_ct_CXX"; then
4287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4288 $as_echo "$ac_ct_CXX" >&6; }
4289 else
4290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4292 fi
4293
4294
4295   test -n "$ac_ct_CXX" && break
4296 done
4297
4298   if test "x$ac_ct_CXX" = x; then
4299     CXX="g++"
4300   else
4301     case $cross_compiling:$ac_tool_warned in
4302 yes:)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4306 esac
4307     CXX=$ac_ct_CXX
4308   fi
4309 fi
4310
4311   fi
4312 fi
4313 # Provide some information about the compiler.
4314 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4315 set X $ac_compile
4316 ac_compiler=$2
4317 for ac_option in --version -v -V -qversion; do
4318   { { ac_try="$ac_compiler $ac_option >&5"
4319 case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4326   ac_status=$?
4327   if test -s conftest.err; then
4328     sed '10a\
4329 ... rest of stderr output deleted ...
4330          10q' conftest.err >conftest.er1
4331     cat conftest.er1 >&5
4332   fi
4333   rm -f conftest.er1 conftest.err
4334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335   test $ac_status = 0; }
4336 done
4337
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4339 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4340 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4341   $as_echo_n "(cached) " >&6
4342 else
4343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int
4347 main ()
4348 {
4349 #ifndef __GNUC__
4350        choke me
4351 #endif
4352
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358   ac_compiler_gnu=yes
4359 else
4360   ac_compiler_gnu=no
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4364
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4367 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4368 if test $ac_compiler_gnu = yes; then
4369   GXX=yes
4370 else
4371   GXX=
4372 fi
4373 ac_test_CXXFLAGS=${CXXFLAGS+set}
4374 ac_save_CXXFLAGS=$CXXFLAGS
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4376 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4377 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4381    ac_cxx_werror_flag=yes
4382    ac_cv_prog_cxx_g=no
4383    CXXFLAGS="-g"
4384    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386
4387 int
4388 main ()
4389 {
4390
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_cxx_try_compile "$LINENO"; then :
4396   ac_cv_prog_cxx_g=yes
4397 else
4398   CXXFLAGS=""
4399       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h.  */
4401
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 if ac_fn_cxx_try_compile "$LINENO"; then :
4411
4412 else
4413   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4414          CXXFLAGS="-g"
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   ac_cv_prog_cxx_g=yes
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 fi
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 fi
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4437 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4438 if test "$ac_test_CXXFLAGS" = set; then
4439   CXXFLAGS=$ac_save_CXXFLAGS
4440 elif test $ac_cv_prog_cxx_g = yes; then
4441   if test "$GXX" = yes; then
4442     CXXFLAGS="-g -O2"
4443   else
4444     CXXFLAGS="-g"
4445   fi
4446 else
4447   if test "$GXX" = yes; then
4448     CXXFLAGS="-O2"
4449   else
4450     CXXFLAGS=
4451   fi
4452 fi
4453 ac_ext=c
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458
4459 depcc="$CXX"  am_compiler_list=
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462 $as_echo_n "checking dependency style of $depcc... " >&6; }
4463 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467   # We make a subdir and do the tests there.  Otherwise we can end up
4468   # making bogus files that we don't know about and never remove.  For
4469   # instance it was reported that on HP-UX the gcc test will end up
4470   # making a dummy file named `D' -- because `-MD' means `put the output
4471   # in D'.
4472   mkdir conftest.dir
4473   # Copy depcomp to subdir because otherwise we won't find it if we're
4474   # using a relative directory.
4475   cp "$am_depcomp" conftest.dir
4476   cd conftest.dir
4477   # We will build objects and dependencies in a subdirectory because
4478   # it helps to detect inapplicable dependency modes.  For instance
4479   # both Tru64's cc and ICC support -MD to output dependencies as a
4480   # side effect of compilation, but ICC will put the dependencies in
4481   # the current directory while Tru64 will put them in the object
4482   # directory.
4483   mkdir sub
4484
4485   am_cv_CXX_dependencies_compiler_type=none
4486   if test "$am_compiler_list" = ""; then
4487      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4488   fi
4489   am__universal=false
4490   case " $depcc " in #(
4491      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4492      esac
4493
4494   for depmode in $am_compiler_list; do
4495     # Setup a source with many dependencies, because some compilers
4496     # like to wrap large dependency lists on column 80 (with \), and
4497     # we should not choose a depcomp mode which is confused by this.
4498     #
4499     # We need to recreate these files for each test, as the compiler may
4500     # overwrite some of them when testing with obscure command lines.
4501     # This happens at least with the AIX C compiler.
4502     : > sub/conftest.c
4503     for i in 1 2 3 4 5 6; do
4504       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4506       # Solaris 8's {/usr,}/bin/sh.
4507       touch sub/conftst$i.h
4508     done
4509     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4510
4511     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4512     # mode.  It turns out that the SunPro C++ compiler does not properly
4513     # handle `-M -o', and we need to detect this.  Also, some Intel
4514     # versions had trouble with output in subdirs
4515     am__obj=sub/conftest.${OBJEXT-o}
4516     am__minus_obj="-o $am__obj"
4517     case $depmode in
4518     gcc)
4519       # This depmode causes a compiler race in universal mode.
4520       test "$am__universal" = false || continue
4521       ;;
4522     nosideeffect)
4523       # after this tag, mechanisms are not by side-effect, so they'll
4524       # only be used when explicitly requested
4525       if test "x$enable_dependency_tracking" = xyes; then
4526         continue
4527       else
4528         break
4529       fi
4530       ;;
4531     msvisualcpp | msvcmsys)
4532       # This compiler won't grok `-c -o', but also, the minuso test has
4533       # not run yet.  These depmodes are late enough in the game, and
4534       # so weak that their functioning should not be impacted.
4535       am__obj=conftest.${OBJEXT-o}
4536       am__minus_obj=
4537       ;;
4538     none) break ;;
4539     esac
4540     if depmode=$depmode \
4541        source=sub/conftest.c object=$am__obj \
4542        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4543        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4544          >/dev/null 2>conftest.err &&
4545        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4546        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4547        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4548        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549       # icc doesn't choke on unknown options, it will just issue warnings
4550       # or remarks (even with -Werror).  So we grep stderr for any message
4551       # that says an option was ignored or not supported.
4552       # When given -MP, icc 7.0 and 7.1 complain thusly:
4553       #   icc: Command line warning: ignoring option '-M'; no argument required
4554       # The diagnosis changed in icc 8.0:
4555       #   icc: Command line remark: option '-MP' not supported
4556       if (grep 'ignoring option' conftest.err ||
4557           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4558         am_cv_CXX_dependencies_compiler_type=$depmode
4559         break
4560       fi
4561     fi
4562   done
4563
4564   cd ..
4565   rm -rf conftest.dir
4566 else
4567   am_cv_CXX_dependencies_compiler_type=none
4568 fi
4569
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4572 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4573 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4574
4575  if
4576   test "x$enable_dependency_tracking" != xno \
4577   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4578   am__fastdepCXX_TRUE=
4579   am__fastdepCXX_FALSE='#'
4580 else
4581   am__fastdepCXX_TRUE='#'
4582   am__fastdepCXX_FALSE=
4583 fi
4584
4585
4586 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4587 # autoconf 2.59).  If we ever have any Objective-C code in the Valgrind code
4588 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4589 # following:
4590 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4591 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4592 # - Use the following, which is apparently equivalent:
4593 #     m4_ifdef([AC_PROG_OBJC],
4594 #        [AC_PROG_OBJC],
4595 #        [AC_CHECK_TOOL([OBJC], [gcc])
4596 #         AC_SUBST([OBJC])
4597 #         AC_SUBST([OBJCFLAGS])
4598 #        ])
4599 if test -n "$ac_tool_prefix"; then
4600   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4601 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607   if test -n "$RANLIB"; then
4608   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615     for ac_exec_ext in '' $ac_executable_extensions; do
4616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619     break 2
4620   fi
4621 done
4622   done
4623 IFS=$as_save_IFS
4624
4625 fi
4626 fi
4627 RANLIB=$ac_cv_prog_RANLIB
4628 if test -n "$RANLIB"; then
4629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4630 $as_echo "$RANLIB" >&6; }
4631 else
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637 fi
4638 if test -z "$ac_cv_prog_RANLIB"; then
4639   ac_ct_RANLIB=$RANLIB
4640   # Extract the first word of "ranlib", so it can be a program name with args.
4641 set dummy ranlib; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647   if test -n "$ac_ct_RANLIB"; then
4648   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655     for ac_exec_ext in '' $ac_executable_extensions; do
4656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657     ac_cv_prog_ac_ct_RANLIB="ranlib"
4658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662   done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4668 if test -n "$ac_ct_RANLIB"; then
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4670 $as_echo "$ac_ct_RANLIB" >&6; }
4671 else
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676   if test "x$ac_ct_RANLIB" = x; then
4677     RANLIB=":"
4678   else
4679     case $cross_compiling:$ac_tool_warned in
4680 yes:)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4684 esac
4685     RANLIB=$ac_ct_RANLIB
4686   fi
4687 else
4688   RANLIB="$ac_cv_prog_RANLIB"
4689 fi
4690
4691
4692 # If no AR variable was specified, look up the name of the archiver. Otherwise
4693 # do not touch the AR variable.
4694 if test "x$AR" = "x"; then
4695   for ac_prog in `echo $LD | sed 's/ld$/ar/'` "ar"
4696 do
4697   # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_path_AR+set}" = set; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   case $AR in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714     for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721   done
4722 IFS=$as_save_IFS
4723
4724   ;;
4725 esac
4726 fi
4727 AR=$ac_cv_path_AR
4728 if test -n "$AR"; then
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4730 $as_echo "$AR" >&6; }
4731 else
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736
4737   test -n "$AR" && break
4738 done
4739 test -n "$AR" || AR="ar"
4740
4741 fi
4742
4743
4744 # Check for the compiler support
4745 if test "${GCC}" != "yes" ; then
4746    as_fn_error "Valgrind relies on GCC to be compiled" "$LINENO" 5
4747 fi
4748
4749 # figure out where perl lives
4750 # Extract the first word of "perl", so it can be a program name with args.
4751 set dummy perl; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_path_PERL+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   case $PERL in
4758   [\\/]* | ?:[\\/]*)
4759   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4760   ;;
4761   *)
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767     for ac_exec_ext in '' $ac_executable_extensions; do
4768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771     break 2
4772   fi
4773 done
4774   done
4775 IFS=$as_save_IFS
4776
4777   ;;
4778 esac
4779 fi
4780 PERL=$ac_cv_path_PERL
4781 if test -n "$PERL"; then
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4783 $as_echo "$PERL" >&6; }
4784 else
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790
4791 # figure out where gdb lives
4792 # Extract the first word of "gdb", so it can be a program name with args.
4793 set dummy gdb; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_path_GDB+set}" = set; then :
4797   $as_echo_n "(cached) " >&6
4798 else
4799   case $GDB in
4800   [\\/]* | ?:[\\/]*)
4801   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4802   ;;
4803   *)
4804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_exec_ext in '' $ac_executable_extensions; do
4810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813     break 2
4814   fi
4815 done
4816   done
4817 IFS=$as_save_IFS
4818
4819   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4820   ;;
4821 esac
4822 fi
4823 GDB=$ac_cv_path_GDB
4824 if test -n "$GDB"; then
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4826 $as_echo "$GDB" >&6; }
4827 else
4828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4830 fi
4831
4832
4833
4834 cat >>confdefs.h <<_ACEOF
4835 #define GDB_PATH "$GDB"
4836 _ACEOF
4837
4838
4839 # some older automake's don't have it so try something on our own
4840 # By default we simply use the C compiler to build assembly code.
4841
4842 test "${CCAS+set}" = set || CCAS=$CC
4843 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4844
4845
4846
4847 depcc="$CCAS"   am_compiler_list=
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4850 $as_echo_n "checking dependency style of $depcc... " >&6; }
4851 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4855   # We make a subdir and do the tests there.  Otherwise we can end up
4856   # making bogus files that we don't know about and never remove.  For
4857   # instance it was reported that on HP-UX the gcc test will end up
4858   # making a dummy file named `D' -- because `-MD' means `put the output
4859   # in D'.
4860   mkdir conftest.dir
4861   # Copy depcomp to subdir because otherwise we won't find it if we're
4862   # using a relative directory.
4863   cp "$am_depcomp" conftest.dir
4864   cd conftest.dir
4865   # We will build objects and dependencies in a subdirectory because
4866   # it helps to detect inapplicable dependency modes.  For instance
4867   # both Tru64's cc and ICC support -MD to output dependencies as a
4868   # side effect of compilation, but ICC will put the dependencies in
4869   # the current directory while Tru64 will put them in the object
4870   # directory.
4871   mkdir sub
4872
4873   am_cv_CCAS_dependencies_compiler_type=none
4874   if test "$am_compiler_list" = ""; then
4875      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4876   fi
4877   am__universal=false
4878
4879
4880   for depmode in $am_compiler_list; do
4881     # Setup a source with many dependencies, because some compilers
4882     # like to wrap large dependency lists on column 80 (with \), and
4883     # we should not choose a depcomp mode which is confused by this.
4884     #
4885     # We need to recreate these files for each test, as the compiler may
4886     # overwrite some of them when testing with obscure command lines.
4887     # This happens at least with the AIX C compiler.
4888     : > sub/conftest.c
4889     for i in 1 2 3 4 5 6; do
4890       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4891       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4892       # Solaris 8's {/usr,}/bin/sh.
4893       touch sub/conftst$i.h
4894     done
4895     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4896
4897     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4898     # mode.  It turns out that the SunPro C++ compiler does not properly
4899     # handle `-M -o', and we need to detect this.  Also, some Intel
4900     # versions had trouble with output in subdirs
4901     am__obj=sub/conftest.${OBJEXT-o}
4902     am__minus_obj="-o $am__obj"
4903     case $depmode in
4904     gcc)
4905       # This depmode causes a compiler race in universal mode.
4906       test "$am__universal" = false || continue
4907       ;;
4908     nosideeffect)
4909       # after this tag, mechanisms are not by side-effect, so they'll
4910       # only be used when explicitly requested
4911       if test "x$enable_dependency_tracking" = xyes; then
4912         continue
4913       else
4914         break
4915       fi
4916       ;;
4917     msvisualcpp | msvcmsys)
4918       # This compiler won't grok `-c -o', but also, the minuso test has
4919       # not run yet.  These depmodes are late enough in the game, and
4920       # so weak that their functioning should not be impacted.
4921       am__obj=conftest.${OBJEXT-o}
4922       am__minus_obj=
4923       ;;
4924     none) break ;;
4925     esac
4926     if depmode=$depmode \
4927        source=sub/conftest.c object=$am__obj \
4928        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4929        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4930          >/dev/null 2>conftest.err &&
4931        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4932        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4933        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4934        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4935       # icc doesn't choke on unknown options, it will just issue warnings
4936       # or remarks (even with -Werror).  So we grep stderr for any message
4937       # that says an option was ignored or not supported.
4938       # When given -MP, icc 7.0 and 7.1 complain thusly:
4939       #   icc: Command line warning: ignoring option '-M'; no argument required
4940       # The diagnosis changed in icc 8.0:
4941       #   icc: Command line remark: option '-MP' not supported
4942       if (grep 'ignoring option' conftest.err ||
4943           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4944         am_cv_CCAS_dependencies_compiler_type=$depmode
4945         break
4946       fi
4947     fi
4948   done
4949
4950   cd ..
4951   rm -rf conftest.dir
4952 else
4953   am_cv_CCAS_dependencies_compiler_type=none
4954 fi
4955
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4958 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4959 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4960
4961  if
4962   test "x$enable_dependency_tracking" != xno \
4963   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4964   am__fastdepCCAS_TRUE=
4965   am__fastdepCCAS_FALSE='#'
4966 else
4967   am__fastdepCCAS_TRUE='#'
4968   am__fastdepCCAS_FALSE=
4969 fi
4970
4971
4972
4973
4974 # Check if 'diff' supports -u (universal diffs) and use it if possible.
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
4977 $as_echo_n "checking for diff -u... " >&6; }
4978
4979
4980 # Comparing two identical files results in 0, unless -u isn't supported (as
4981 # it's not on AIX).
4982 tmpfile="tmp-xxx-yyy-zzz"
4983 touch $tmpfile;
4984 if diff -u $tmpfile $tmpfile ; then
4985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4986 $as_echo "yes" >&6; }
4987     DIFF="diff -u"
4988 else
4989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991     DIFF="diff"
4992 fi
4993 rm $tmpfile
4994
4995
4996 # We don't want gcc < 3.0
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
4998 $as_echo_n "checking for a supported version of gcc... " >&6; }
4999
5000 gcc_version=`${CC} --version | head -n 1 | sed 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5001
5002 case "${gcc_version}" in
5003      2.*)
5004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5005 $as_echo "no (${gcc_version})" >&6; }
5006         as_fn_error "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5007         ;;
5008      *)
5009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5010 $as_echo "ok (${gcc_version})" >&6; }
5011         ;;
5012 esac
5013
5014 #----------------------------------------------------------------------------
5015 # Arch/OS/platform tests.
5016 #----------------------------------------------------------------------------
5017 # We create a number of arch/OS/platform-related variables.  We prefix them
5018 # all with "VGCONF_" which indicates that they are defined at
5019 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5020 # variables used when compiling C files.
5021
5022 # Make sure we can run config.sub.
5023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5024   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5027 $as_echo_n "checking build system type... " >&6; }
5028 if test "${ac_cv_build+set}" = set; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   ac_build_alias=$build_alias
5032 test "x$ac_build_alias" = x &&
5033   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5034 test "x$ac_build_alias" = x &&
5035   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5036 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5037   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5041 $as_echo "$ac_cv_build" >&6; }
5042 case $ac_cv_build in
5043 *-*-*) ;;
5044 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5045 esac
5046 build=$ac_cv_build
5047 ac_save_IFS=$IFS; IFS='-'
5048 set x $ac_cv_build
5049 shift
5050 build_cpu=$1
5051 build_vendor=$2
5052 shift; shift
5053 # Remember, the first character of IFS is used to create $*,
5054 # except with old shells:
5055 build_os=$*
5056 IFS=$ac_save_IFS
5057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5061 $as_echo_n "checking host system type... " >&6; }
5062 if test "${ac_cv_host+set}" = set; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   if test "x$host_alias" = x; then
5066   ac_cv_host=$ac_cv_build
5067 else
5068   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5069     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5070 fi
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5074 $as_echo "$ac_cv_host" >&6; }
5075 case $ac_cv_host in
5076 *-*-*) ;;
5077 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5078 esac
5079 host=$ac_cv_host
5080 ac_save_IFS=$IFS; IFS='-'
5081 set x $ac_cv_host
5082 shift
5083 host_cpu=$1
5084 host_vendor=$2
5085 shift; shift
5086 # Remember, the first character of IFS is used to create $*,
5087 # except with old shells:
5088 host_os=$*
5089 IFS=$ac_save_IFS
5090 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5091
5092
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5095 $as_echo_n "checking for a supported CPU... " >&6; }
5096
5097 # ARCH_MAX reflects the most that this CPU can do: for example if it
5098 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5099 # Ditto for amd64.  It is used for more configuration below, but is not used
5100 # outside this file.
5101 case "${host_cpu}" in
5102      i?86)
5103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5104 $as_echo "ok (${host_cpu})" >&6; }
5105         ARCH_MAX="x86"
5106         ;;
5107
5108      x86_64)
5109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5110 $as_echo "ok (${host_cpu})" >&6; }
5111         ARCH_MAX="amd64"
5112         ;;
5113
5114      powerpc64)
5115         # This value can only happen on Linux, not on AIX
5116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5117 $as_echo "ok (${host_cpu})" >&6; }
5118         ARCH_MAX="ppc64"
5119         ;;
5120
5121      powerpc)
5122         # Complexity.  'powerpc' on AIX implies a 64-bit capable CPU.
5123         # Whereas in Linux that means only a 32-bit capable CPU.
5124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5125 $as_echo "ok (${host_cpu})" >&6; }
5126         case "${host_os}" in
5127            aix5.*)
5128               ARCH_MAX="ppc64"
5129               ;;
5130            *)
5131               ARCH_MAX="ppc32"
5132               ;;
5133         esac
5134         ;;
5135
5136      armv7*)
5137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5138 $as_echo "ok (${host_cpu})" >&6; }
5139         ARCH_MAX="arm"
5140         ;;
5141
5142      *)
5143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5144 $as_echo "no (${host_cpu})" >&6; }
5145         as_fn_error "Unsupported host architecture. Sorry" "$LINENO" 5
5146         ;;
5147 esac
5148
5149 #----------------------------------------------------------------------------
5150
5151 # Sometimes it's convenient to subvert the bi-arch build system and
5152 # just have a single build even though the underlying platform is
5153 # capable of both.  Hence handle --enable-only64bit and
5154 # --enable-only32bit.  Complain if both are issued :-)
5155 # [Actually, if either of these options are used, I think both get built,
5156 # but only one gets installed.  So if you use an in-place build, both can be
5157 # used. --njn]
5158
5159 # Check if a 64-bit only build has been requested
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5161 $as_echo_n "checking for a 64-bit only build... " >&6; }
5162 if test "${vg_cv_only64bit+set}" = set; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   # Check whether --enable-only64bit was given.
5166 if test "${enable_only64bit+set}" = set; then :
5167   enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5168 else
5169   vg_cv_only64bit=no
5170 fi
5171
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5174 $as_echo "$vg_cv_only64bit" >&6; }
5175
5176 # Check if a 32-bit only build has been requested
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5178 $as_echo_n "checking for a 32-bit only build... " >&6; }
5179 if test "${vg_cv_only32bit+set}" = set; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   # Check whether --enable-only32bit was given.
5183 if test "${enable_only32bit+set}" = set; then :
5184   enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5185 else
5186   vg_cv_only32bit=no
5187 fi
5188
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5191 $as_echo "$vg_cv_only32bit" >&6; }
5192
5193 # Stay sane
5194 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5195    as_fn_error "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5196 fi
5197
5198 #----------------------------------------------------------------------------
5199
5200 # VGCONF_OS is the primary build OS, eg. "linux".  It is passed in to
5201 # compilation of many C files via -VGO_$(VGCONF_OS) and
5202 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5204 $as_echo_n "checking for a supported OS... " >&6; }
5205
5206
5207 DEFAULT_SUPP=""
5208 GENERATED_SUPP=""
5209
5210 case "${host_os}" in
5211      *linux*)
5212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5213 $as_echo "ok (${host_os})" >&6; }
5214         VGCONF_OS="linux"
5215
5216         # Ok, this is linux. Check the kernel version
5217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5218 $as_echo_n "checking for the kernel version... " >&6; }
5219
5220         kernel=`uname -r`
5221
5222         case "${kernel}" in
5223              2.6.*)
5224                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5225 $as_echo "2.6 family (${kernel})" >&6; }
5226
5227 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5228
5229                     ;;
5230
5231              2.4.*)
5232                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5233 $as_echo "2.4 family (${kernel})" >&6; }
5234
5235 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5236
5237                     ;;
5238
5239              *)
5240                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5241 $as_echo "unsupported (${kernel})" >&6; }
5242                     as_fn_error "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5243                     ;;
5244         esac
5245
5246         ;;
5247
5248      aix5.1.*)
5249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5250 $as_echo "ok (${host_os})" >&6; }
5251         VGCONF_OS="aix5"
5252         ;;
5253      aix5.2.*)
5254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5255 $as_echo "ok (${host_os})" >&6; }
5256         VGCONF_OS="aix5"
5257         ;;
5258      aix5.3.*)
5259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5260 $as_echo "ok (${host_os})" >&6; }
5261         VGCONF_OS="aix5"
5262         ;;
5263
5264      *freebsd*)
5265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5266 $as_echo "ok (${host_os})" >&6; }
5267         VGCONF_OS="freebsd"
5268         ;;
5269
5270      *l4re*)
5271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5272 $as_echo "ok (${host_os})" >&6; }
5273         VGCONF_OS="l4re"
5274         ;;
5275
5276      *darwin*)
5277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5278 $as_echo "ok (${host_os})" >&6; }
5279         VGCONF_OS="darwin"
5280
5281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5282 $as_echo_n "checking for the kernel version... " >&6; }
5283         kernel=`uname -r`
5284
5285         # Nb: for Darwin we set DEFAULT_SUPP here.  That's because Darwin
5286         # has only one relevant version, the OS version. The `uname` check
5287         # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5288         # X 10.5.6, and "Darwin 10.x" would presumably be Mac OS X 10.6.x
5289         # Snow Leopard and darwin10.supp), and we don't know of an macros
5290         # similar to __GLIBC__ to get that info.
5291         #
5292         # XXX: `uname -r` won't do the right thing for cross-compiles, but
5293         # that's not a problem yet.
5294         case "${kernel}" in
5295              9.*)
5296                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5297 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5298                   DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5299                   DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5300                   ;;
5301      *)
5302                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5303 $as_echo "unsupported (${kernel})" >&6; }
5304                   as_fn_error "Valgrind works on Darwin 9.x (Mac OS X 10.5)" "$LINENO" 5
5305                   ;;
5306         esac
5307         ;;
5308
5309      *)
5310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5311 $as_echo "no (${host_os})" >&6; }
5312         as_fn_error "Valgrind is operating system specific. Sorry. Please consider doing a port." "$LINENO" 5
5313         ;;
5314 esac
5315
5316 #----------------------------------------------------------------------------
5317
5318 # If we are building on a 64 bit platform test to see if the system
5319 # supports building 32 bit programs and disable 32 bit support if it
5320 # does not support building 32 bit programs
5321
5322 case "$ARCH_MAX-$VGCONF_OS" in
5323      amd64-linux|ppc64-linux)
5324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5325 $as_echo_n "checking for 32 bit build support... " >&6; }
5326         safe_CFLAGS=$CFLAGS
5327         CFLAGS="-m32"
5328
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331
5332 int
5333 main ()
5334 {
5335
5336           return 0;
5337
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 if ac_fn_c_try_link "$LINENO"; then :
5343
5344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345 $as_echo "yes" >&6; }
5346
5347 else
5348
5349         vg_cv_only64bit="yes"
5350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext \
5355     conftest$ac_exeext conftest.$ac_ext
5356         CFLAGS=$safe_CFLAGS;;
5357 esac
5358
5359 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5360    as_fn_error "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5361 fi
5362
5363 #----------------------------------------------------------------------------
5364
5365 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64".  By
5366 # default it's the same as ARCH_MAX.  But if, say, we do a build on an amd64
5367 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5368 # above) will be "amd64" since that reflects the most that this cpu can do,
5369 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5370 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS).  It is
5371 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5372 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5373
5374
5375 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5376 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5377 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5378 # It is empty if there is no secondary target.
5379
5380
5381 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5382 # The entire system, including regression and performance tests, will be
5383 # built for this target.  The "_CAPS" indicates that the name is in capital
5384 # letters, and it also uses '_' rather than '-' as a separator, because it's
5385 # used to create various Makefile variables, which are all in caps by
5386 # convention and cannot contain '-' characters.  This is in contrast to
5387 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5388
5389
5390 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5391 # Valgrind and tools will also be built for this target, but not the
5392 # regression or performance tests.
5393 #
5394 # By default, the primary arch is the same as the "max" arch, as commented
5395 # above (at the definition of ARCH_MAX).  We may choose to downgrade it in
5396 # the big case statement just below here, in the case where we're building
5397 # on a 64 bit machine but have been requested only to do a 32 bit build.
5398
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5401 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5402
5403 case "$ARCH_MAX-$VGCONF_OS" in
5404      x86-linux)
5405                 VGCONF_ARCH_PRI="x86"
5406                 VGCONF_ARCH_SEC=""
5407         VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5408         VGCONF_PLATFORM_SEC_CAPS=""
5409         valt_load_address_normal="0x38000000"
5410         valt_load_address_inner="0x28000000"
5411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5412 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5413         ;;
5414      amd64-linux)
5415         if test x$vg_cv_only64bit = xyes; then
5416            VGCONF_ARCH_PRI="amd64"
5417            VGCONF_ARCH_SEC=""
5418            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5419            VGCONF_PLATFORM_SEC_CAPS=""
5420         elif test x$vg_cv_only32bit = xyes; then
5421            VGCONF_ARCH_PRI="x86"
5422            VGCONF_ARCH_SEC=""
5423            VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5424            VGCONF_PLATFORM_SEC_CAPS=""
5425         else
5426            VGCONF_ARCH_PRI="amd64"
5427            VGCONF_ARCH_SEC="x86"
5428            VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5429            VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5430         fi
5431         valt_load_address_normal="0x38000000"
5432         valt_load_address_inner="0x28000000"
5433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5434 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5435         ;;
5436      ppc32-linux)
5437         VGCONF_ARCH_PRI="ppc32"
5438         VGCONF_ARCH_SEC=""
5439         VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5440         VGCONF_PLATFORM_SEC_CAPS=""
5441         valt_load_address_normal="0x38000000"
5442         valt_load_address_inner="0x28000000"
5443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5444 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5445         ;;
5446      ppc64-aix5)
5447         if test x$vg_cv_only64bit = xyes; then
5448            VGCONF_ARCH_PRI="ppc64"
5449            VGCONF_ARCH_SEC=""
5450            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5451            VGCONF_PLATFORM_SEC_CAPS=""
5452         elif test x$vg_cv_only32bit = xyes; then
5453            VGCONF_ARCH_PRI="ppc32"
5454            VGCONF_ARCH_SEC=""
5455            VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5456            VGCONF_PLATFORM_SEC_CAPS=""
5457         else
5458            VGCONF_ARCH_PRI="ppc64"
5459            VGCONF_ARCH_SEC="ppc32"
5460            VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5461            VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5462         fi
5463         valt_load_address_normal="0x38000000"
5464         valt_load_address_inner="0x28000000"
5465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5466 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5467         ;;
5468      ppc64-linux)
5469         if test x$vg_cv_only64bit = xyes; then
5470            VGCONF_ARCH_PRI="ppc64"
5471            VGCONF_ARCH_SEC=""
5472            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5473            VGCONF_PLATFORM_SEC_CAPS=""
5474         elif test x$vg_cv_only32bit = xyes; then
5475            VGCONF_ARCH_PRI="ppc32"
5476            VGCONF_ARCH_SEC=""
5477            VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5478            VGCONF_PLATFORM_SEC_CAPS=""
5479         else
5480            VGCONF_ARCH_PRI="ppc64"
5481            VGCONF_ARCH_SEC="ppc32"
5482            VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5483            VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5484         fi
5485         valt_load_address_normal="0x38000000"
5486         valt_load_address_inner="0x28000000"
5487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5488 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5489         ;;
5490      x86-l4re)
5491                 VGCONF_ARCH_PRI="x86"
5492                 VGCONF_ARCH_SEC=""
5493                 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5494                 VGCONF_PLATFORM_SEC_CAPS=""
5495         valt_load_address_normal="0x38000000"
5496         valt_load_address_inner="0x28000000"
5497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5498 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5499          ;;
5500      x86-darwin)
5501         VGCONF_ARCH_PRI="x86"
5502         VGCONF_ARCH_SEC=""
5503         VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5504         VGCONF_PLATFORM_SEC_CAPS=""
5505         valt_load_address_normal="0x0"
5506         valt_load_address_inner="0x0"
5507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5508 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5509         ;;
5510      amd64-darwin)
5511         if test x$vg_cv_only64bit = xyes; then
5512            VGCONF_ARCH_PRI="amd64"
5513            VGCONF_ARCH_SEC=""
5514            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5515            VGCONF_PLATFORM_SEC_CAPS=""
5516         elif test x$vg_cv_only32bit = xyes; then
5517            VGCONF_ARCH_PRI="x86"
5518            VGCONF_ARCH_SEC=""
5519            VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5520            VGCONF_PLATFORM_SEC_CAPS=""
5521            VGCONF_ARCH_PRI_CAPS="x86"
5522         else
5523            VGCONF_ARCH_PRI="amd64"
5524            VGCONF_ARCH_SEC="x86"
5525            VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5526            VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5527         fi
5528         valt_load_address_normal="0x0"
5529         valt_load_address_inner="0x0"
5530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5531 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5532         ;;
5533      arm-linux)
5534         VGCONF_ARCH_PRI="arm"
5535         VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5536         VGCONF_PLATFORM_SEC_CAPS=""
5537         valt_load_address_normal="0x38000000"
5538         valt_load_address_inner="0x28000000"
5539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5540 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5541         ;;
5542     *)
5543         VGCONF_ARCH_PRI="unknown"
5544         VGCONF_ARCH_SEC="unknown"
5545         VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5546         VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5548 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5549         as_fn_error "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5550         ;;
5551 esac
5552
5553 #----------------------------------------------------------------------------
5554
5555 # Set up VGCONF_ARCHS_INCLUDE_<arch>.  Either one or two of these become
5556 # defined.
5557  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5558                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5559                  -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5560                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5561   VGCONF_ARCHS_INCLUDE_X86_TRUE=
5562   VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5563 else
5564   VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5565   VGCONF_ARCHS_INCLUDE_X86_FALSE=
5566 fi
5567
5568  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5569                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5570   VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5571   VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5572 else
5573   VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5574   VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5575 fi
5576
5577  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5578                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5579                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5580                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5581   VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5582   VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5583 else
5584   VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5585   VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5586 fi
5587
5588  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5589                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5590   VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5591   VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5592 else
5593   VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5594   VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5595 fi
5596
5597  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5598   VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5599   VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5600 else
5601   VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5602   VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5603 fi
5604
5605
5606 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>.  Either one or two of these
5607 # become defined.
5608  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5609                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5610   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5611   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5612 else
5613   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5614   VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5615 fi
5616
5617  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5618   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5619   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5620 else
5621   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5622   VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5623 fi
5624
5625  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5626                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5627   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5628   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5629 else
5630   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5631   VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5632 fi
5633
5634  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5635   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5636   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5637 else
5638   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5639   VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5640 fi
5641
5642  if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5643   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5644   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5645 else
5646   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5647   VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5648 fi
5649
5650
5651  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5652                  -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5653   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5654   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5655 else
5656   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5657   VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5658 fi
5659
5660  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5661   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5662   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5663 else
5664   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5665   VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5666 fi
5667
5668
5669  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5670                  -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5671   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5672   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5673 else
5674   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5675   VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5676 fi
5677
5678  if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5679   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5680   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5681 else
5682   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5683   VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5684 fi
5685
5686  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5687   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5688   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5689 else
5690   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5691   VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5692 fi
5693
5694
5695
5696 # Similarly, set up VGCONF_OF_IS_<os>.  Exactly one of these becomes defined.
5697 # Relies on the assumption that the primary and secondary targets are
5698 # for the same OS, so therefore only necessary to test the primary.
5699  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5700                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5701                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5702                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5703                  -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5704   VGCONF_OS_IS_LINUX_TRUE=
5705   VGCONF_OS_IS_LINUX_FALSE='#'
5706 else
5707   VGCONF_OS_IS_LINUX_TRUE='#'
5708   VGCONF_OS_IS_LINUX_FALSE=
5709 fi
5710
5711  if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5712                  -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5713   VGCONF_OS_IS_AIX5_TRUE=
5714   VGCONF_OS_IS_AIX5_FALSE='#'
5715 else
5716   VGCONF_OS_IS_AIX5_TRUE='#'
5717   VGCONF_OS_IS_AIX5_FALSE=
5718 fi
5719
5720  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5721                  -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5722   VGCONF_OS_IS_DARWIN_TRUE=
5723   VGCONF_OS_IS_DARWIN_FALSE='#'
5724 else
5725   VGCONF_OS_IS_DARWIN_TRUE='#'
5726   VGCONF_OS_IS_DARWIN_FALSE=
5727 fi
5728
5729  if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5730   VGCONF_OS_IS_L4RE_TRUE=
5731   VGCONF_OS_IS_L4RE_FALSE='#'
5732 else
5733   VGCONF_OS_IS_L4RE_TRUE='#'
5734   VGCONF_OS_IS_L4RE_FALSE=
5735 fi
5736
5737
5738
5739 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5740 # there is a secondary target.
5741  if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5742   VGCONF_HAVE_PLATFORM_SEC_TRUE=
5743   VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5744 else
5745   VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5746   VGCONF_HAVE_PLATFORM_SEC_FALSE=
5747 fi
5748
5749
5750
5751 #----------------------------------------------------------------------------
5752 # Inner Valgrind?
5753 #----------------------------------------------------------------------------
5754
5755 # Check if this should be built as an inner Valgrind, to be run within
5756 # another Valgrind.  Choose the load address accordingly.
5757
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5759 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5760 if test "${vg_cv_inner+set}" = set; then :
5761   $as_echo_n "(cached) " >&6
5762 else
5763   # Check whether --enable-inner was given.
5764 if test "${enable_inner+set}" = set; then :
5765   enableval=$enable_inner; vg_cv_inner=$enableval
5766 else
5767   vg_cv_inner=no
5768 fi
5769
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5772 $as_echo "$vg_cv_inner" >&6; }
5773 if test "$vg_cv_inner" = yes; then
5774
5775 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5776
5777     VALT_LOAD_ADDRESS=$valt_load_address_inner
5778 else
5779     VALT_LOAD_ADDRESS=$valt_load_address_normal
5780 fi
5781
5782
5783 #----------------------------------------------------------------------------
5784 # Libc and suppressions
5785 #----------------------------------------------------------------------------
5786 # This variable will collect the suppression files to be used.
5787
5788 # This variable holds generated suppression files (such as the one used for
5789 # glibcs >= 2.7)
5790
5791
5792 GLIBC_VERSION=""
5793
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5796 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5797 if test "${ac_cv_path_GREP+set}" = set; then :
5798   $as_echo_n "(cached) " >&6
5799 else
5800   if test -z "$GREP"; then
5801   ac_path_GREP_found=false
5802   # Loop through the user's path and test for each of PROGNAME-LIST
5803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_prog in grep ggrep; do
5809     for ac_exec_ext in '' $ac_executable_extensions; do
5810       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5811       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5812 # Check for GNU ac_path_GREP and select it if it is found.
5813   # Check for GNU $ac_path_GREP
5814 case `"$ac_path_GREP" --version 2>&1` in
5815 *GNU*)
5816   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5817 *)
5818   ac_count=0
5819   $as_echo_n 0123456789 >"conftest.in"
5820   while :
5821   do
5822     cat "conftest.in" "conftest.in" >"conftest.tmp"
5823     mv "conftest.tmp" "conftest.in"
5824     cp "conftest.in" "conftest.nl"
5825     $as_echo 'GREP' >> "conftest.nl"
5826     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828     as_fn_arith $ac_count + 1 && ac_count=$as_val
5829     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5830       # Best one so far, save it but keep looking for a better one
5831       ac_cv_path_GREP="$ac_path_GREP"
5832       ac_path_GREP_max=$ac_count
5833     fi
5834     # 10*(2^10) chars as input seems more than enough
5835     test $ac_count -gt 10 && break
5836   done
5837   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5838 esac
5839
5840       $ac_path_GREP_found && break 3
5841     done
5842   done
5843   done
5844 IFS=$as_save_IFS
5845   if test -z "$ac_cv_path_GREP"; then
5846     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5847   fi
5848 else
5849   ac_cv_path_GREP=$GREP
5850 fi
5851
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5854 $as_echo "$ac_cv_path_GREP" >&6; }
5855  GREP="$ac_cv_path_GREP"
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5859 $as_echo_n "checking for egrep... " >&6; }
5860 if test "${ac_cv_path_EGREP+set}" = set; then :
5861   $as_echo_n "(cached) " >&6
5862 else
5863   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5864    then ac_cv_path_EGREP="$GREP -E"
5865    else
5866      if test -z "$EGREP"; then
5867   ac_path_EGREP_found=false
5868   # Loop through the user's path and test for each of PROGNAME-LIST
5869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874     for ac_prog in egrep; do
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5877       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5878 # Check for GNU ac_path_EGREP and select it if it is found.
5879   # Check for GNU $ac_path_EGREP
5880 case `"$ac_path_EGREP" --version 2>&1` in
5881 *GNU*)
5882   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5883 *)
5884   ac_count=0
5885   $as_echo_n 0123456789 >"conftest.in"
5886   while :
5887   do
5888     cat "conftest.in" "conftest.in" >"conftest.tmp"
5889     mv "conftest.tmp" "conftest.in"
5890     cp "conftest.in" "conftest.nl"
5891     $as_echo 'EGREP' >> "conftest.nl"
5892     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894     as_fn_arith $ac_count + 1 && ac_count=$as_val
5895     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5896       # Best one so far, save it but keep looking for a better one
5897       ac_cv_path_EGREP="$ac_path_EGREP"
5898       ac_path_EGREP_max=$ac_count
5899     fi
5900     # 10*(2^10) chars as input seems more than enough
5901     test $ac_count -gt 10 && break
5902   done
5903   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5904 esac
5905
5906       $ac_path_EGREP_found && break 3
5907     done
5908   done
5909   done
5910 IFS=$as_save_IFS
5911   if test -z "$ac_cv_path_EGREP"; then
5912     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5913   fi
5914 else
5915   ac_cv_path_EGREP=$EGREP
5916 fi
5917
5918    fi
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5921 $as_echo "$ac_cv_path_EGREP" >&6; }
5922  EGREP="$ac_cv_path_EGREP"
5923
5924
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h.  */
5927
5928 #include <features.h>
5929 #ifdef __GNU_LIBRARY__
5930  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2)
5931   GLIBC_22
5932  #endif
5933 #endif
5934
5935 _ACEOF
5936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5937   $EGREP "GLIBC_22" >/dev/null 2>&1; then :
5938   GLIBC_VERSION="2.2"
5939 fi
5940 rm -f conftest*
5941
5942
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h.  */
5945
5946 #include <features.h>
5947 #ifdef __GNU_LIBRARY__
5948  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3)
5949   GLIBC_23
5950  #endif
5951 #endif
5952
5953 _ACEOF
5954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955   $EGREP "GLIBC_23" >/dev/null 2>&1; then :
5956   GLIBC_VERSION="2.3"
5957 fi
5958 rm -f conftest*
5959
5960
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h.  */
5963
5964 #include <features.h>
5965 #ifdef __GNU_LIBRARY__
5966  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 4)
5967   GLIBC_24
5968  #endif
5969 #endif
5970
5971 _ACEOF
5972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973   $EGREP "GLIBC_24" >/dev/null 2>&1; then :
5974   GLIBC_VERSION="2.4"
5975 fi
5976 rm -f conftest*
5977
5978
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h.  */
5981
5982 #include <features.h>
5983 #ifdef __GNU_LIBRARY__
5984  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 5)
5985   GLIBC_25
5986  #endif
5987 #endif
5988
5989 _ACEOF
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991   $EGREP "GLIBC_25" >/dev/null 2>&1; then :
5992   GLIBC_VERSION="2.5"
5993 fi
5994 rm -f conftest*
5995
5996
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h.  */
5999
6000 #include <features.h>
6001 #ifdef __GNU_LIBRARY__
6002  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 6)
6003   GLIBC_26
6004  #endif
6005 #endif
6006
6007 _ACEOF
6008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6009   $EGREP "GLIBC_26" >/dev/null 2>&1; then :
6010   GLIBC_VERSION="2.6"
6011 fi
6012 rm -f conftest*
6013
6014
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h.  */
6017
6018 #include <features.h>
6019 #ifdef __GNU_LIBRARY__
6020  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 7)
6021   GLIBC_27
6022  #endif
6023 #endif
6024
6025 _ACEOF
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027   $EGREP "GLIBC_27" >/dev/null 2>&1; then :
6028   GLIBC_VERSION="2.7"
6029 fi
6030 rm -f conftest*
6031
6032
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h.  */
6035
6036 #include <features.h>
6037 #ifdef __GNU_LIBRARY__
6038  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 8)
6039   GLIBC_28
6040  #endif
6041 #endif
6042
6043 _ACEOF
6044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6045   $EGREP "GLIBC_28" >/dev/null 2>&1; then :
6046   GLIBC_VERSION="2.8"
6047 fi
6048 rm -f conftest*
6049
6050
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h.  */
6053
6054 #include <features.h>
6055 #ifdef __GNU_LIBRARY__
6056  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 9)
6057   GLIBC_29
6058  #endif
6059 #endif
6060
6061 _ACEOF
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063   $EGREP "GLIBC_29" >/dev/null 2>&1; then :
6064   GLIBC_VERSION="2.9"
6065 fi
6066 rm -f conftest*
6067
6068
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h.  */
6071
6072 #include <features.h>
6073 #ifdef __GNU_LIBRARY__
6074  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 10)
6075   GLIBC_210
6076  #endif
6077 #endif
6078
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081   $EGREP "GLIBC_210" >/dev/null 2>&1; then :
6082   GLIBC_VERSION="2.10"
6083 fi
6084 rm -f conftest*
6085
6086
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h.  */
6089
6090 #include <features.h>
6091 #ifdef __GNU_LIBRARY__
6092  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 11)
6093   GLIBC_211
6094  #endif
6095 #endif
6096
6097 _ACEOF
6098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099   $EGREP "GLIBC_211" >/dev/null 2>&1; then :
6100   GLIBC_VERSION="2.11"
6101 fi
6102 rm -f conftest*
6103
6104
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h.  */
6107
6108 #include <standards.h>
6109 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6110   AIX5_LIBC
6111 #endif
6112
6113 _ACEOF
6114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6115   $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6116   GLIBC_VERSION="aix5"
6117 fi
6118 rm -f conftest*
6119
6120
6121 # not really a version check
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h.  */
6124
6125 #include <sys/cdefs.h>
6126 #if defined(__DARWIN_VERS_1050)
6127   DARWIN_LIBC
6128 #endif
6129
6130 _ACEOF
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132   $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6133   GLIBC_VERSION="darwin"
6134 fi
6135 rm -f conftest*
6136
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6139 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6140
6141 case "${GLIBC_VERSION}" in
6142      2.2)
6143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6144 $as_echo "2.2 family" >&6; }
6145
6146 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6147
6148         DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6149         DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6150         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6151         ;;
6152
6153      2.3)
6154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6155 $as_echo "2.3 family" >&6; }
6156
6157 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6158
6159         DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6160         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6161         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6162         ;;
6163
6164      2.4)
6165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6166 $as_echo "2.4 family" >&6; }
6167
6168 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6169
6170         DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6171         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6172         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6173         ;;
6174
6175      2.5)
6176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6177 $as_echo "2.5 family" >&6; }
6178
6179 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6180
6181         DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6182         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6183         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6184         ;;
6185      2.6)
6186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6187 $as_echo "2.6 family" >&6; }
6188
6189 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6190
6191         DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6192         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6193         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6194         ;;
6195      2.7)
6196         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6197 $as_echo "2.7 family" >&6; }
6198
6199 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6200
6201         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6202         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6203         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6204         ;;
6205      2.8)
6206         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6207 $as_echo "2.8 family" >&6; }
6208
6209 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6210
6211         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6212         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6213         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6214         ;;
6215      2.9)
6216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6217 $as_echo "2.9 family" >&6; }
6218
6219 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6220
6221         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6222         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6223         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6224         ;;
6225      2.10)
6226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6227 $as_echo "2.10 family" >&6; }
6228
6229 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6230
6231         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6232         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6233         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6234         ;;
6235      2.11)
6236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6237 $as_echo "2.11 family" >&6; }
6238
6239 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6240
6241         GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6242         DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6243         DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6244         ;;
6245      aix5)
6246         { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6247 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6248
6249 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6250
6251         DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6252         ;;
6253      darwin)
6254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6255 $as_echo "Darwin" >&6; }
6256
6257 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6258
6259         # DEFAULT_SUPP set by kernel version check above.
6260         ;;
6261
6262      *)
6263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version" >&5
6264 $as_echo "unsupported version" >&6; }
6265         as_fn_error "Valgrind requires glibc version 2.2 - 2.11" "$LINENO" 5
6266         as_fn_error "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6267         as_fn_error "or Darwin libc" "$LINENO" 5
6268         ;;
6269 esac
6270
6271
6272
6273
6274 # Add default suppressions for the X client libraries.  Make no
6275 # attempt to detect whether such libraries are installed on the
6276 # build machine (or even if any X facilities are present); just
6277 # add the suppressions antidisirregardless.
6278 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6279 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6280
6281 # Add glibc and X11 suppressions for exp-ptrcheck
6282 DEFAULT_SUPP="exp-ptrcheck.supp ${DEFAULT_SUPP}"
6283
6284
6285 #----------------------------------------------------------------------------
6286 # Checking for various library functions and other definitions
6287 #----------------------------------------------------------------------------
6288
6289 # Check for CLOCK_MONOTONIC
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6292 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6293
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h.  */
6296
6297 #include <time.h>
6298
6299 int
6300 main ()
6301 {
6302
6303   struct timespec t;
6304   clock_gettime(CLOCK_MONOTONIC, &t);
6305   return 0;
6306
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6314 $as_echo "yes" >&6; }
6315
6316 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6317
6318
6319 else
6320
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326
6327
6328 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6331 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6332
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h.  */
6335
6336 #define _GNU_SOURCE
6337 #include <pthread.h>
6338
6339 int
6340 main ()
6341 {
6342
6343   return (PTHREAD_MUTEX_ADAPTIVE_NP);
6344
6345   ;
6346   return 0;
6347 }
6348 _ACEOF
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6352 $as_echo "yes" >&6; }
6353
6354 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6355
6356
6357 else
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364
6365
6366 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6369 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6370
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h.  */
6373
6374 #define _GNU_SOURCE
6375 #include <pthread.h>
6376
6377 int
6378 main ()
6379 {
6380
6381   return (PTHREAD_MUTEX_ERRORCHECK_NP);
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6390 $as_echo "yes" >&6; }
6391
6392 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6393
6394
6395 else
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6399
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402
6403
6404 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6407 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6408
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h.  */
6411
6412 #define _GNU_SOURCE
6413 #include <pthread.h>
6414
6415 int
6416 main ()
6417 {
6418
6419   return (PTHREAD_MUTEX_RECURSIVE_NP);
6420
6421   ;
6422   return 0;
6423 }
6424 _ACEOF
6425 if ac_fn_c_try_compile "$LINENO"; then :
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6428 $as_echo "yes" >&6; }
6429
6430 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6431
6432
6433 else
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6437
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440
6441
6442 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6445 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6446
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h.  */
6449
6450 #define _GNU_SOURCE
6451 #include <pthread.h>
6452
6453 int
6454 main ()
6455 {
6456
6457   pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6458   return 0;
6459
6460   ;
6461   return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6467 $as_echo "yes" >&6; }
6468
6469 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6470
6471
6472 else
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479
6480
6481 # Check whether pthread_mutex_t has a member called __m_kind.
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6484 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6485
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h.  */
6488
6489   #include <pthread.h>
6490
6491 int
6492 main ()
6493 {
6494
6495   pthread_mutex_t m;
6496   return m.__m_kind;
6497
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 if ac_fn_c_try_compile "$LINENO"; then :
6503
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6505 $as_echo "yes" >&6; }
6506
6507 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6508
6509
6510 else
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517
6518
6519 # Check whether pthread_mutex_t has a member called __data.__kind.
6520
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6522 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6523
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h.  */
6526
6527 #include <pthread.h>
6528
6529 int
6530 main ()
6531 {
6532
6533   pthread_mutex_t m;
6534   return m.__data.__kind;
6535
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6543 $as_echo "yes" >&6; }
6544
6545 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6546
6547
6548 else
6549
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555
6556
6557 # does this compiler support -maltivec and does it have the include file
6558 # <altivec.h> ?
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6561 $as_echo_n "checking for Altivec... " >&6; }
6562
6563 safe_CFLAGS=$CFLAGS
6564 CFLAGS="-maltivec"
6565
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h.  */
6568
6569 #include <altivec.h>
6570
6571 int
6572 main ()
6573 {
6574
6575   vector unsigned int v;
6576
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582
6583 ac_have_altivec=yes
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6585 $as_echo "yes" >&6; }
6586
6587 else
6588
6589 ac_have_altivec=no
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 CFLAGS=$safe_CFLAGS
6596
6597  if test x$ac_have_altivec = xyes; then
6598   HAS_ALTIVEC_TRUE=
6599   HAS_ALTIVEC_FALSE='#'
6600 else
6601   HAS_ALTIVEC_TRUE='#'
6602   HAS_ALTIVEC_FALSE=
6603 fi
6604
6605  if test x$ac_have_altivec = xyes; then
6606   HAVE_ALTIVEC_H_TRUE=
6607   HAVE_ALTIVEC_H_FALSE='#'
6608 else
6609   HAVE_ALTIVEC_H_TRUE='#'
6610   HAVE_ALTIVEC_H_FALSE=
6611 fi
6612
6613
6614
6615 # Check for pthread_create@GLIBC2.0
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6617 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6618
6619 safe_CFLAGS=$CFLAGS
6620 CFLAGS="-lpthread"
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h.  */
6623
6624 extern int pthread_create_glibc_2_0(void*, const void*,
6625                                     void *(*)(void*), void*);
6626 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6627
6628 int
6629 main ()
6630 {
6631
6632 #ifdef __powerpc__
6633 /*
6634  * Apparently on PowerPC linking this program succeeds and generates an
6635  * executable with the undefined symbol pthread_create@GLIBC_2.0.
6636  */
6637 #error This test does not work properly on PowerPC.
6638 #else
6639   pthread_create_glibc_2_0(0, 0, 0, 0);
6640 #endif
6641   return 0;
6642
6643   ;
6644   return 0;
6645 }
6646 _ACEOF
6647 if ac_fn_c_try_link "$LINENO"; then :
6648
6649 ac_have_pthread_create_glibc_2_0=yes
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6651 $as_echo "yes" >&6; }
6652
6653 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6654
6655
6656 else
6657
6658 ac_have_pthread_create_glibc_2_0=no
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext \
6664     conftest$ac_exeext conftest.$ac_ext
6665 CFLAGS=$safe_CFLAGS
6666
6667  if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6668   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6669   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6670 else
6671   HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6672   HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6673 fi
6674
6675
6676
6677 # Check for eventfd_t, eventfd() and eventfd_read()
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6679 $as_echo_n "checking for eventfd()... " >&6; }
6680
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h.  */
6683
6684 #include <sys/eventfd.h>
6685
6686 int
6687 main ()
6688 {
6689
6690   eventfd_t ev;
6691   int fd;
6692
6693   fd = eventfd(5, 0);
6694   eventfd_read(fd, &ev);
6695   return 0;
6696
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_link "$LINENO"; then :
6702
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6704 $as_echo "yes" >&6; }
6705
6706 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
6707
6708
6709 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
6710
6711
6712 else
6713
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext \
6719     conftest$ac_exeext conftest.$ac_ext
6720
6721
6722 #----------------------------------------------------------------------------
6723 # Checking for supported compiler flags.
6724 #----------------------------------------------------------------------------
6725
6726 # does this compiler support -m32 ?
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
6728 $as_echo_n "checking if gcc accepts -m32... " >&6; }
6729
6730 safe_CFLAGS=$CFLAGS
6731 CFLAGS="-m32"
6732
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h.  */
6735
6736 int
6737 main ()
6738 {
6739
6740   return 0;
6741
6742   ;
6743   return 0;
6744 }
6745 _ACEOF
6746 if ac_fn_c_try_compile "$LINENO"; then :
6747
6748 FLAG_M32="-m32"
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6750 $as_echo "yes" >&6; }
6751
6752 else
6753
6754 FLAG_M32=""
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 CFLAGS=$safe_CFLAGS
6761
6762
6763
6764
6765 # does this compiler support -maix32 ?
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
6767 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
6768
6769 safe_CFLAGS=$CFLAGS
6770 CFLAGS="-maix32"
6771
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h.  */
6774
6775 int
6776 main ()
6777 {
6778
6779   return 0;
6780
6781   ;
6782   return 0;
6783 }
6784 _ACEOF
6785 if ac_fn_c_try_compile "$LINENO"; then :
6786
6787 FLAG_MAIX32="-maix32"
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6789 $as_echo "yes" >&6; }
6790
6791 else
6792
6793 FLAG_MAIX32=""
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 CFLAGS=$safe_CFLAGS
6800
6801
6802
6803
6804 # does this compiler support -m64 ?
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
6806 $as_echo_n "checking if gcc accepts -m64... " >&6; }
6807
6808 safe_CFLAGS=$CFLAGS
6809 CFLAGS="-m64"
6810
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h.  */
6813
6814 int
6815 main ()
6816 {
6817
6818   return 0;
6819
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 if ac_fn_c_try_compile "$LINENO"; then :
6825
6826 FLAG_M64="-m64"
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6828 $as_echo "yes" >&6; }
6829
6830 else
6831
6832 FLAG_M64=""
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 CFLAGS=$safe_CFLAGS
6839
6840
6841
6842
6843 # does this compiler support -maix64 ?
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
6845 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
6846
6847 safe_CFLAGS=$CFLAGS
6848 CFLAGS="-maix64"
6849
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h.  */
6852
6853 int
6854 main ()
6855 {
6856
6857   return 0;
6858
6859   ;
6860   return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864
6865 FLAG_MAIX64="-maix64"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867 $as_echo "yes" >&6; }
6868
6869 else
6870
6871 FLAG_MAIX64=""
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 CFLAGS=$safe_CFLAGS
6878
6879
6880
6881
6882 # does this compiler support -mmmx ?
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
6884 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
6885
6886 safe_CFLAGS=$CFLAGS
6887 CFLAGS="-mmmx"
6888
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h.  */
6891
6892 int
6893 main ()
6894 {
6895
6896   return 0;
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_compile "$LINENO"; then :
6903
6904 FLAG_MMMX="-mmmx"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6907
6908 else
6909
6910 FLAG_MMMX=""
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 CFLAGS=$safe_CFLAGS
6917
6918
6919
6920
6921 # does this compiler support -msse ?
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
6923 $as_echo_n "checking if gcc accepts -msse... " >&6; }
6924
6925 safe_CFLAGS=$CFLAGS
6926 CFLAGS="-msse"
6927
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930
6931 int
6932 main ()
6933 {
6934
6935   return 0;
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 if ac_fn_c_try_compile "$LINENO"; then :
6942
6943 FLAG_MSSE="-msse"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6945 $as_echo "yes" >&6; }
6946
6947 else
6948
6949 FLAG_MSSE=""
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 CFLAGS=$safe_CFLAGS
6956
6957
6958
6959
6960 # does this compiler support -mpreferred-stack-boundary=2 ?
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
6962 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
6963
6964 safe_CFLAGS=$CFLAGS
6965 CFLAGS="-mpreferred-stack-boundary=2"
6966
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h.  */
6969
6970 int
6971 main ()
6972 {
6973
6974   return 0;
6975
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_compile "$LINENO"; then :
6981
6982 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6984 $as_echo "yes" >&6; }
6985
6986 else
6987
6988 PREFERRED_STACK_BOUNDARY=""
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 CFLAGS=$safe_CFLAGS
6995
6996
6997
6998
6999 # does this compiler support -Wno-pointer-sign ?
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7001 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7002
7003 safe_CFLAGS=$CFLAGS
7004 CFLAGS="-Wno-pointer-sign"
7005
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h.  */
7008
7009 int
7010 main ()
7011 {
7012
7013   return 0;
7014
7015   ;
7016   return 0;
7017 }
7018 _ACEOF
7019 if ac_fn_c_try_compile "$LINENO"; then :
7020
7021 no_pointer_sign=yes
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7023 $as_echo "yes" >&6; }
7024
7025 else
7026
7027 no_pointer_sign=no
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 CFLAGS=$safe_CFLAGS
7034
7035 if test x$no_pointer_sign = xyes; then
7036   CFLAGS="$CFLAGS -Wno-pointer-sign"
7037 fi
7038
7039
7040 # does this compiler support -Wno-empty-body ?
7041
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7043 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7044
7045 safe_CFLAGS=$CFLAGS
7046 CFLAGS="-Wno-empty-body"
7047
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050
7051 int
7052 main ()
7053 {
7054
7055   return 0;
7056
7057   ;
7058   return 0;
7059 }
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062
7063 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7066 $as_echo "yes" >&6; }
7067
7068 else
7069
7070
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 # does this compiler support -Wno-format-zero-length ?
7080
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7082 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7083
7084 safe_CFLAGS=$CFLAGS
7085 CFLAGS="-Wno-format-zero-length"
7086
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h.  */
7089
7090 int
7091 main ()
7092 {
7093
7094   return 0;
7095
7096   ;
7097   return 0;
7098 }
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"; then :
7101
7102 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105 $as_echo "yes" >&6; }
7106
7107 else
7108
7109
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 # does this compiler support -Wno-uninitialized ?
7119
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7121 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7122
7123 safe_CFLAGS=$CFLAGS
7124 CFLAGS="-Wno-uninitialized"
7125
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h.  */
7128
7129 int
7130 main ()
7131 {
7132
7133   return 0;
7134
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_c_try_compile "$LINENO"; then :
7140
7141 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7142
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7145
7146 else
7147
7148
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
7157 # does this compiler support -Wextra or the older -W ?
7158
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7160 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7161
7162 safe_CFLAGS=$CFLAGS
7163 CFLAGS="-Wextra"
7164
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h.  */
7167
7168 int
7169 main ()
7170 {
7171
7172   return 0;
7173
7174   ;
7175   return 0;
7176 }
7177 _ACEOF
7178 if ac_fn_c_try_compile "$LINENO"; then :
7179
7180 FLAG_W_EXTRA=-Wextra
7181
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7183 $as_echo "-Wextra" >&6; }
7184
7185 else
7186
7187   CFLAGS="-W"
7188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h.  */
7190
7191 int
7192 main ()
7193 {
7194
7195     return 0;
7196
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 if ac_fn_c_try_compile "$LINENO"; then :
7202
7203   FLAG_W_EXTRA=-W
7204
7205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7206 $as_echo "-W" >&6; }
7207
7208 else
7209
7210
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7212 $as_echo "not supported" >&6; }
7213
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 CFLAGS=$safe_CFLAGS
7220
7221
7222 # does this compiler support -fno-stack-protector ?
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7224 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7225
7226 safe_CFLAGS=$CFLAGS
7227 CFLAGS="-fno-stack-protector"
7228
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h.  */
7231
7232 int
7233 main ()
7234 {
7235
7236   return 0;
7237
7238   ;
7239   return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_compile "$LINENO"; then :
7243
7244 no_stack_protector=yes
7245 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7247 $as_echo "yes" >&6; }
7248
7249 else
7250
7251 no_stack_protector=no
7252 FLAG_FNO_STACK_PROTECTOR=""
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255
7256 fi
7257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 CFLAGS=$safe_CFLAGS
7259
7260
7261
7262 if test x$no_stack_protector = xyes; then
7263   CFLAGS="$CFLAGS -fno-stack-protector"
7264 fi
7265
7266
7267 # does this compiler support --param inline-unit-growth=... ?
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7270 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7271
7272 safe_CFLAGS=$CFLAGS
7273 CFLAGS="--param inline-unit-growth=900"
7274
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h.  */
7277
7278 int
7279 main ()
7280 {
7281
7282   return 0;
7283
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289
7290 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7291
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7293 $as_echo "yes" >&6; }
7294
7295 else
7296
7297 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7298
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301
7302 fi
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304 CFLAGS=$safe_CFLAGS
7305
7306
7307 # does the ppc assembler support "mtocrf" et al?
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7309 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7310
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h.  */
7313
7314 int
7315 main ()
7316 {
7317
7318 __asm__ __volatile__("mtocrf 4,0");
7319 __asm__ __volatile__("mfocrf 0,4");
7320
7321   ;
7322   return 0;
7323 }
7324 _ACEOF
7325 if ac_fn_c_try_compile "$LINENO"; then :
7326
7327 ac_have_as_ppc_mftocrf=yes
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7329 $as_echo "yes" >&6; }
7330
7331 else
7332
7333 ac_have_as_ppc_mftocrf=no
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7340
7341 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7342
7343 fi
7344
7345
7346 # does the x86/amd64 assembler understand SSE3 instructions?
7347 # Note, this doesn't generate a C-level symbol.  It generates a
7348 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7350 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7351
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354
7355 int
7356 main ()
7357 {
7358
7359   do { long long int x;
7360      __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7361   while (0)
7362
7363   ;
7364   return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368
7369 ac_have_as_sse3=yes
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7371 $as_echo "yes" >&6; }
7372
7373 else
7374
7375 ac_have_as_sse3=no
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381
7382  if test x$ac_have_as_sse3 = xyes; then
7383   BUILD_SSE3_TESTS_TRUE=
7384   BUILD_SSE3_TESTS_FALSE='#'
7385 else
7386   BUILD_SSE3_TESTS_TRUE='#'
7387   BUILD_SSE3_TESTS_FALSE=
7388 fi
7389
7390
7391
7392 # Ditto for SSSE3 instructions (note extra S)
7393 # Note, this doesn't generate a C-level symbol.  It generates a
7394 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7396 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7397
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h.  */
7400
7401 int
7402 main ()
7403 {
7404
7405   do { long long int x;
7406    __asm__ __volatile__(
7407       "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7408   while (0)
7409
7410   ;
7411   return 0;
7412 }
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415
7416 ac_have_as_ssse3=yes
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418 $as_echo "yes" >&6; }
7419
7420 else
7421
7422 ac_have_as_ssse3=no
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428
7429  if test x$ac_have_as_ssse3 = xyes; then
7430   BUILD_SSSE3_TESTS_TRUE=
7431   BUILD_SSSE3_TESTS_FALSE='#'
7432 else
7433   BUILD_SSSE3_TESTS_TRUE='#'
7434   BUILD_SSSE3_TESTS_FALSE=
7435 fi
7436
7437
7438
7439 # Check for TLS support in the compiler and linker
7440 if test "x${cross_compiling}" = "xno"; then
7441 # Native compilation: check whether running a program using TLS succeeds.
7442 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
7443 # succeeds but running programs using TLS fails.
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7445 $as_echo_n "checking for TLS support... " >&6; }
7446 if test "${vg_cv_tls+set}" = set; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   # Check whether --enable-tls was given.
7450 if test "${enable_tls+set}" = set; then :
7451   enableval=$enable_tls; vg_cv_tls=$enableval
7452 else
7453   if test "$cross_compiling" = yes; then :
7454   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7456 as_fn_error "cannot run test program while cross compiling
7457 See \`config.log' for more details." "$LINENO" 5; }
7458 else
7459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h.  */
7461 static __thread int foo;
7462 int
7463 main ()
7464 {
7465 return foo;
7466   ;
7467   return 0;
7468 }
7469 _ACEOF
7470 if ac_fn_c_try_run "$LINENO"; then :
7471   vg_cv_tls=yes
7472 else
7473   vg_cv_tls=no
7474 fi
7475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7476   conftest.$ac_objext conftest.beam conftest.$ac_ext
7477 fi
7478
7479 fi
7480
7481 fi
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7483 $as_echo "$vg_cv_tls" >&6; }
7484 else
7485 # Cross-compiling: check whether linking a program using TLS succeeds.
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7487 $as_echo_n "checking for TLS support... " >&6; }
7488 if test "${vg_cv_tls+set}" = set; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   # Check whether --enable-tls was given.
7492 if test "${enable_tls+set}" = set; then :
7493   enableval=$enable_tls; vg_cv_tls=$enableval
7494 else
7495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h.  */
7497 static __thread int foo;
7498 int
7499 main ()
7500 {
7501 return foo;
7502   ;
7503   return 0;
7504 }
7505 _ACEOF
7506 if ac_fn_c_try_link "$LINENO"; then :
7507   vg_cv_tls=yes
7508 else
7509   vg_cv_tls=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext \
7512     conftest$ac_exeext conftest.$ac_ext
7513 fi
7514
7515 fi
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7517 $as_echo "$vg_cv_tls" >&6; }
7518 fi
7519
7520 if test "$vg_cv_tls" = yes; then
7521
7522 $as_echo "#define HAVE_TLS 1" >>confdefs.h
7523
7524 fi
7525
7526
7527 #----------------------------------------------------------------------------
7528 # Checks for C header files.
7529 #----------------------------------------------------------------------------
7530
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7532 $as_echo_n "checking for ANSI C header files... " >&6; }
7533 if test "${ac_cv_header_stdc+set}" = set; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h.  */
7538 #include <stdlib.h>
7539 #include <stdarg.h>
7540 #include <string.h>
7541 #include <float.h>
7542
7543 int
7544 main ()
7545 {
7546
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_compile "$LINENO"; then :
7552   ac_cv_header_stdc=yes
7553 else
7554   ac_cv_header_stdc=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557
7558 if test $ac_cv_header_stdc = yes; then
7559   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h.  */
7562 #include <string.h>
7563
7564 _ACEOF
7565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7566   $EGREP "memchr" >/dev/null 2>&1; then :
7567
7568 else
7569   ac_cv_header_stdc=no
7570 fi
7571 rm -f conftest*
7572
7573 fi
7574
7575 if test $ac_cv_header_stdc = yes; then
7576   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h.  */
7579 #include <stdlib.h>
7580
7581 _ACEOF
7582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7583   $EGREP "free" >/dev/null 2>&1; then :
7584
7585 else
7586   ac_cv_header_stdc=no
7587 fi
7588 rm -f conftest*
7589
7590 fi
7591
7592 if test $ac_cv_header_stdc = yes; then
7593   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7594   if test "$cross_compiling" = yes; then :
7595   :
7596 else
7597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h.  */
7599 #include <ctype.h>
7600 #include <stdlib.h>
7601 #if ((' ' & 0x0FF) == 0x020)
7602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7604 #else
7605 # define ISLOWER(c) \
7606                    (('a' <= (c) && (c) <= 'i') \
7607                      || ('j' <= (c) && (c) <= 'r') \
7608                      || ('s' <= (c) && (c) <= 'z'))
7609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7610 #endif
7611
7612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7613 int
7614 main ()
7615 {
7616   int i;
7617   for (i = 0; i < 256; i++)
7618     if (XOR (islower (i), ISLOWER (i))
7619         || toupper (i) != TOUPPER (i))
7620       return 2;
7621   return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_run "$LINENO"; then :
7625
7626 else
7627   ac_cv_header_stdc=no
7628 fi
7629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7630   conftest.$ac_objext conftest.beam conftest.$ac_ext
7631 fi
7632
7633 fi
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7636 $as_echo "$ac_cv_header_stdc" >&6; }
7637 if test $ac_cv_header_stdc = yes; then
7638
7639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7640
7641 fi
7642
7643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7645                   inttypes.h stdint.h unistd.h
7646 do :
7647   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7648 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7649 "
7650 eval as_val=\$$as_ac_Header
7651    if test "x$as_val" = x""yes; then :
7652   cat >>confdefs.h <<_ACEOF
7653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7654 _ACEOF
7655
7656 fi
7657
7658 done
7659
7660
7661 for ac_header in        \
7662         asm/unistd.h     \
7663         endian.h         \
7664         mqueue.h         \
7665         sys/endian.h     \
7666         sys/epoll.h      \
7667         sys/eventfd.h    \
7668         sys/klog.h       \
7669         sys/poll.h       \
7670         sys/signal.h     \
7671         sys/signalfd.h   \
7672         sys/syscall.h    \
7673         sys/time.h       \
7674         sys/types.h      \
7675
7676 do :
7677   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7679 eval as_val=\$$as_ac_Header
7680    if test "x$as_val" = x""yes; then :
7681   cat >>confdefs.h <<_ACEOF
7682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7683 _ACEOF
7684
7685 fi
7686
7687 done
7688
7689
7690 #----------------------------------------------------------------------------
7691 # Checks for typedefs, structures, and compiler characteristics.
7692 #----------------------------------------------------------------------------
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7694 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7695 if test "${ac_cv_type_uid_t+set}" = set; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h.  */
7700 #include <sys/types.h>
7701
7702 _ACEOF
7703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704   $EGREP "uid_t" >/dev/null 2>&1; then :
7705   ac_cv_type_uid_t=yes
7706 else
7707   ac_cv_type_uid_t=no
7708 fi
7709 rm -f conftest*
7710
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7713 $as_echo "$ac_cv_type_uid_t" >&6; }
7714 if test $ac_cv_type_uid_t = no; then
7715
7716 $as_echo "#define uid_t int" >>confdefs.h
7717
7718
7719 $as_echo "#define gid_t int" >>confdefs.h
7720
7721 fi
7722
7723 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7724 if test "x$ac_cv_type_off_t" = x""yes; then :
7725
7726 else
7727
7728 cat >>confdefs.h <<_ACEOF
7729 #define off_t long int
7730 _ACEOF
7731
7732 fi
7733
7734 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7735 if test "x$ac_cv_type_size_t" = x""yes; then :
7736
7737 else
7738
7739 cat >>confdefs.h <<_ACEOF
7740 #define size_t unsigned int
7741 _ACEOF
7742
7743 fi
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7746 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7747 if test "${ac_cv_header_time+set}" = set; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h.  */
7752 #include <sys/types.h>
7753 #include <sys/time.h>
7754 #include <time.h>
7755
7756 int
7757 main ()
7758 {
7759 if ((struct tm *) 0)
7760 return 0;
7761   ;
7762   return 0;
7763 }
7764 _ACEOF
7765 if ac_fn_c_try_compile "$LINENO"; then :
7766   ac_cv_header_time=yes
7767 else
7768   ac_cv_header_time=no
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 fi
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7773 $as_echo "$ac_cv_header_time" >&6; }
7774 if test $ac_cv_header_time = yes; then
7775
7776 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7777
7778 fi
7779
7780
7781
7782 #----------------------------------------------------------------------------
7783 # Checks for library functions.
7784 #----------------------------------------------------------------------------
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7786 $as_echo_n "checking for working memcmp... " >&6; }
7787 if test "${ac_cv_func_memcmp_working+set}" = set; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   if test "$cross_compiling" = yes; then :
7791   ac_cv_func_memcmp_working=no
7792 else
7793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h.  */
7795 $ac_includes_default
7796 int
7797 main ()
7798 {
7799
7800   /* Some versions of memcmp are not 8-bit clean.  */
7801   char c0 = '\100', c1 = '\200', c2 = '\201';
7802   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7803     return 1;
7804
7805   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7806      or more and with at least one buffer not starting on a 4-byte boundary.
7807      William Lewis provided this test program.   */
7808   {
7809     char foo[21];
7810     char bar[21];
7811     int i;
7812     for (i = 0; i < 4; i++)
7813       {
7814         char *a = foo + i;
7815         char *b = bar + i;
7816         strcpy (a, "--------01111111");
7817         strcpy (b, "--------10000000");
7818         if (memcmp (a, b, 16) >= 0)
7819           return 1;
7820       }
7821     return 0;
7822   }
7823
7824   ;
7825   return 0;
7826 }
7827 _ACEOF
7828 if ac_fn_c_try_run "$LINENO"; then :
7829   ac_cv_func_memcmp_working=yes
7830 else
7831   ac_cv_func_memcmp_working=no
7832 fi
7833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7834   conftest.$ac_objext conftest.beam conftest.$ac_ext
7835 fi
7836
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7839 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7840 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7841   *" memcmp.$ac_objext "* ) ;;
7842   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7843  ;;
7844 esac
7845
7846
7847
7848
7849
7850   for ac_header in $ac_header_list
7851 do :
7852   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7853 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7854 "
7855 eval as_val=\$$as_ac_Header
7856    if test "x$as_val" = x""yes; then :
7857   cat >>confdefs.h <<_ACEOF
7858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7859 _ACEOF
7860
7861 fi
7862
7863 done
7864
7865
7866
7867
7868
7869
7870
7871
7872 for ac_func in getpagesize
7873 do :
7874   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7875 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7876   cat >>confdefs.h <<_ACEOF
7877 #define HAVE_GETPAGESIZE 1
7878 _ACEOF
7879
7880 fi
7881 done
7882
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7884 $as_echo_n "checking for working mmap... " >&6; }
7885 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   if test "$cross_compiling" = yes; then :
7889   ac_cv_func_mmap_fixed_mapped=no
7890 else
7891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h.  */
7893 $ac_includes_default
7894 /* malloc might have been renamed as rpl_malloc. */
7895 #undef malloc
7896
7897 /* Thanks to Mike Haertel and Jim Avera for this test.
7898    Here is a matrix of mmap possibilities:
7899         mmap private not fixed
7900         mmap private fixed at somewhere currently unmapped
7901         mmap private fixed at somewhere already mapped
7902         mmap shared not fixed
7903         mmap shared fixed at somewhere currently unmapped
7904         mmap shared fixed at somewhere already mapped
7905    For private mappings, we should verify that changes cannot be read()
7906    back from the file, nor mmap's back from the file at a different
7907    address.  (There have been systems where private was not correctly
7908    implemented like the infamous i386 svr4.0, and systems where the
7909    VM page cache was not coherent with the file system buffer cache
7910    like early versions of FreeBSD and possibly contemporary NetBSD.)
7911    For shared mappings, we should conversely verify that changes get
7912    propagated back to all the places they're supposed to be.
7913
7914    Grep wants private fixed already mapped.
7915    The main things grep needs to know about mmap are:
7916    * does it exist and is it safe to write into the mmap'd area
7917    * how to use it (BSD variants)  */
7918
7919 #include <fcntl.h>
7920 #include <sys/mman.h>
7921
7922 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7923 char *malloc ();
7924 #endif
7925
7926 /* This mess was copied from the GNU getpagesize.h.  */
7927 #ifndef HAVE_GETPAGESIZE
7928 # ifdef _SC_PAGESIZE
7929 #  define getpagesize() sysconf(_SC_PAGESIZE)
7930 # else /* no _SC_PAGESIZE */
7931 #  ifdef HAVE_SYS_PARAM_H
7932 #   include <sys/param.h>
7933 #   ifdef EXEC_PAGESIZE
7934 #    define getpagesize() EXEC_PAGESIZE
7935 #   else /* no EXEC_PAGESIZE */
7936 #    ifdef NBPG
7937 #     define getpagesize() NBPG * CLSIZE
7938 #     ifndef CLSIZE
7939 #      define CLSIZE 1
7940 #     endif /* no CLSIZE */
7941 #    else /* no NBPG */
7942 #     ifdef NBPC
7943 #      define getpagesize() NBPC
7944 #     else /* no NBPC */
7945 #      ifdef PAGESIZE
7946 #       define getpagesize() PAGESIZE
7947 #      endif /* PAGESIZE */
7948 #     endif /* no NBPC */
7949 #    endif /* no NBPG */
7950 #   endif /* no EXEC_PAGESIZE */
7951 #  else /* no HAVE_SYS_PARAM_H */
7952 #   define getpagesize() 8192   /* punt totally */
7953 #  endif /* no HAVE_SYS_PARAM_H */
7954 # endif /* no _SC_PAGESIZE */
7955
7956 #endif /* no HAVE_GETPAGESIZE */
7957
7958 int
7959 main ()
7960 {
7961   char *data, *data2, *data3;
7962   const char *cdata2;
7963   int i, pagesize;
7964   int fd, fd2;
7965
7966   pagesize = getpagesize ();
7967
7968   /* First, make a file with some known garbage in it. */
7969   data = (char *) malloc (pagesize);
7970   if (!data)
7971     return 1;
7972   for (i = 0; i < pagesize; ++i)
7973     *(data + i) = rand ();
7974   umask (0);
7975   fd = creat ("conftest.mmap", 0600);
7976   if (fd < 0)
7977     return 2;
7978   if (write (fd, data, pagesize) != pagesize)
7979     return 3;
7980   close (fd);
7981
7982   /* Next, check that the tail of a page is zero-filled.  File must have
7983      non-zero length, otherwise we risk SIGBUS for entire page.  */
7984   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7985   if (fd2 < 0)
7986     return 4;
7987   cdata2 = "";
7988   if (write (fd2, cdata2, 1) != 1)
7989     return 5;
7990   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7991   if (data2 == MAP_FAILED)
7992     return 6;
7993   for (i = 0; i < pagesize; ++i)
7994     if (*(data2 + i))
7995       return 7;
7996   close (fd2);
7997   if (munmap (data2, pagesize))
7998     return 8;
7999
8000   /* Next, try to mmap the file at a fixed address which already has
8001      something else allocated at it.  If we can, also make sure that
8002      we see the same garbage.  */
8003   fd = open ("conftest.mmap", O_RDWR);
8004   if (fd < 0)
8005     return 9;
8006   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8007                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8008     return 10;
8009   for (i = 0; i < pagesize; ++i)
8010     if (*(data + i) != *(data2 + i))
8011       return 11;
8012
8013   /* Finally, make sure that changes to the mapped area do not
8014      percolate back to the file as seen by read().  (This is a bug on
8015      some variants of i386 svr4.0.)  */
8016   for (i = 0; i < pagesize; ++i)
8017     *(data2 + i) = *(data2 + i) + 1;
8018   data3 = (char *) malloc (pagesize);
8019   if (!data3)
8020     return 12;
8021   if (read (fd, data3, pagesize) != pagesize)
8022     return 13;
8023   for (i = 0; i < pagesize; ++i)
8024     if (*(data + i) != *(data3 + i))
8025       return 14;
8026   close (fd);
8027   return 0;
8028 }
8029 _ACEOF
8030 if ac_fn_c_try_run "$LINENO"; then :
8031   ac_cv_func_mmap_fixed_mapped=yes
8032 else
8033   ac_cv_func_mmap_fixed_mapped=no
8034 fi
8035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8036   conftest.$ac_objext conftest.beam conftest.$ac_ext
8037 fi
8038
8039 fi
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8041 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8042 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8043
8044 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8045
8046 fi
8047 rm -f conftest.mmap conftest.txt
8048
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8050 $as_echo_n "checking return type of signal handlers... " >&6; }
8051 if test "${ac_cv_type_signal+set}" = set; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h.  */
8056 #include <sys/types.h>
8057 #include <signal.h>
8058
8059 int
8060 main ()
8061 {
8062 return *(signal (0, 0)) (0) == 1;
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068   ac_cv_type_signal=int
8069 else
8070   ac_cv_type_signal=void
8071 fi
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8075 $as_echo "$ac_cv_type_signal" >&6; }
8076
8077 cat >>confdefs.h <<_ACEOF
8078 #define RETSIGTYPE $ac_cv_type_signal
8079 _ACEOF
8080
8081
8082
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8084 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8085 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   ac_check_lib_save_LIBS=$LIBS
8089 LIBS="-lrt  $LIBS"
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h.  */
8092
8093 /* Override any GCC internal prototype to avoid an error.
8094    Use char because int might match the return type of a GCC
8095    builtin and then its argument prototype would still apply.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 char clock_gettime ();
8100 int
8101 main ()
8102 {
8103 return clock_gettime ();
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109   ac_cv_lib_rt_clock_gettime=yes
8110 else
8111   ac_cv_lib_rt_clock_gettime=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext \
8114     conftest$ac_exeext conftest.$ac_ext
8115 LIBS=$ac_check_lib_save_LIBS
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8118 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8119 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
8120   cat >>confdefs.h <<_ACEOF
8121 #define HAVE_LIBRT 1
8122 _ACEOF
8123
8124   LIBS="-lrt $LIBS"
8125
8126 fi
8127
8128
8129 for ac_func in      \
8130         clock_gettime\
8131         epoll_create \
8132         epoll_pwait  \
8133         floor        \
8134         klogctl      \
8135         mallinfo     \
8136         memchr       \
8137         memset       \
8138         mkdir        \
8139         mremap       \
8140         ppoll        \
8141         pthread_barrier_init       \
8142         pthread_condattr_setclock  \
8143         pthread_mutex_timedlock    \
8144         pthread_rwlock_timedrdlock \
8145         pthread_rwlock_timedwrlock \
8146         pthread_spin_lock          \
8147         readlinkat   \
8148         semtimedop   \
8149         signalfd     \
8150         sigwaitinfo  \
8151         syscall      \
8152         strchr       \
8153         strdup       \
8154         strpbrk      \
8155         strrchr      \
8156         strstr       \
8157         timerfd      \
8158         utimensat    \
8159
8160 do :
8161   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8163 eval as_val=\$$as_ac_var
8164    if test "x$as_val" = x""yes; then :
8165   cat >>confdefs.h <<_ACEOF
8166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8167 _ACEOF
8168
8169 fi
8170 done
8171
8172
8173 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8174 # libraries with any shared object and/or executable. This is NOT what we
8175 # want for e.g. vgpreload_core-x86-linux.so
8176 LIBS=""
8177
8178  if test x$ac_cv_func_pthread_barrier_init = xyes; then
8179   HAVE_PTHREAD_BARRIER_TRUE=
8180   HAVE_PTHREAD_BARRIER_FALSE='#'
8181 else
8182   HAVE_PTHREAD_BARRIER_TRUE='#'
8183   HAVE_PTHREAD_BARRIER_FALSE=
8184 fi
8185
8186  if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8187   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8188   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8189 else
8190   HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8191   HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8192 fi
8193
8194  if test x$ac_cv_func_pthread_spin_lock = xyes; then
8195   HAVE_PTHREAD_SPINLOCK_TRUE=
8196   HAVE_PTHREAD_SPINLOCK_FALSE='#'
8197 else
8198   HAVE_PTHREAD_SPINLOCK_TRUE='#'
8199   HAVE_PTHREAD_SPINLOCK_FALSE=
8200 fi
8201
8202
8203
8204 #----------------------------------------------------------------------------
8205 # MPI checks
8206 #----------------------------------------------------------------------------
8207 # Do we have a useable MPI setup on the primary and/or secondary targets?
8208 # On Linux, by default, assumes mpicc and -m32/-m64
8209 # On AIX, by default, assumes mpxlc and -q32/-q64
8210 # Note: this is a kludge in that it assumes the specified mpicc
8211 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8212 # --with-mpicc=.
8213 MPI_CC="mpicc"
8214 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8215      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8216   MPI_CC="mpxlc"
8217 fi
8218
8219 mflag_primary=
8220 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8221      -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8222   mflag_primary=$FLAG_M32
8223 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8224        -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX ; then
8225   mflag_primary=$FLAG_M64
8226 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8227   mflag_primary=-q32
8228 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8229   mflag_primary=-q64
8230 fi
8231
8232 mflag_secondary=
8233 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8234      -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8235   mflag_secondary=$FLAG_M32
8236 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8237   mflag_secondary=-q32
8238 fi
8239
8240
8241
8242 # Check whether --with-mpicc was given.
8243 if test "${with_mpicc+set}" = set; then :
8244   withval=$with_mpicc; MPI_CC=$withval
8245
8246 fi
8247
8248
8249
8250 ## See if MPI_CC works for the primary target
8251 ##
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8253 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8254 saved_CC=$CC
8255 saved_CFLAGS=$CFLAGS
8256 CC=$MPI_CC
8257 CFLAGS=$mflag_primary
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260
8261 #include <mpi.h>
8262 #include <stdio.h>
8263
8264 int
8265 main ()
8266 {
8267
8268   int r = MPI_Init(NULL,NULL);
8269   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8270   return r;
8271
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277
8278 ac_have_mpi2_pri=yes
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8280 $as_echo "yes, $MPI_CC" >&6; }
8281
8282 else
8283
8284 ac_have_mpi2_pri=no
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext \
8290     conftest$ac_exeext conftest.$ac_ext
8291 CC=$saved_CC
8292 CFLAGS=$saved_CFLAGS
8293  if test x$ac_have_mpi2_pri = xyes; then
8294   BUILD_MPIWRAP_PRI_TRUE=
8295   BUILD_MPIWRAP_PRI_FALSE='#'
8296 else
8297   BUILD_MPIWRAP_PRI_TRUE='#'
8298   BUILD_MPIWRAP_PRI_FALSE=
8299 fi
8300
8301
8302 ## See if MPI_CC works for the secondary target.  Complication: what if
8303 ## there is no secondary target?  We need this to then fail.
8304 ## Kludge this by making MPI_CC something which will surely fail in
8305 ## such a case.
8306 ##
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8308 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8309 saved_CC=$CC
8310 saved_CFLAGS=$CFLAGS
8311 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8312   CC="$MPI_CC this will surely fail"
8313 else
8314   CC=$MPI_CC
8315 fi
8316 CFLAGS=$mflag_secondary
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h.  */
8319
8320 #include <mpi.h>
8321 #include <stdio.h>
8322
8323 int
8324 main ()
8325 {
8326
8327   int r = MPI_Init(NULL,NULL);
8328   r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8329   return r;
8330
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_link "$LINENO"; then :
8336
8337 ac_have_mpi2_sec=yes
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8339 $as_echo "yes, $MPI_CC" >&6; }
8340
8341 else
8342
8343 ac_have_mpi2_sec=no
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext \
8349     conftest$ac_exeext conftest.$ac_ext
8350 CC=$saved_CC
8351 CFLAGS=$saved_CFLAGS
8352  if test x$ac_have_mpi2_sec = xyes; then
8353   BUILD_MPIWRAP_SEC_TRUE=
8354   BUILD_MPIWRAP_SEC_FALSE='#'
8355 else
8356   BUILD_MPIWRAP_SEC_TRUE='#'
8357   BUILD_MPIWRAP_SEC_FALSE=
8358 fi
8359
8360
8361
8362 #----------------------------------------------------------------------------
8363 # Other library checks
8364 #----------------------------------------------------------------------------
8365 # There now follow some tests for QtCore, Boost, and OpenMP.  These
8366 # tests are present because Drd has some regression tests that use
8367 # these packages.  All regression test programs all compiled only
8368 # for the primary target.  And so it is important that the configure
8369 # checks that follow, use the correct -m32 or -m64 flag for the
8370 # primary target (called $mflag_primary).  Otherwise, we can end up
8371 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8372 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8373 # only build (meaning, the primary target is x86-linux), the build
8374 # of the regtest programs that use Boost fails, because they are
8375 # build as 32-bit (IN THIS EXAMPLE).
8376 #
8377 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8378 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8379
8380
8381 # The test below verifies whether the QtCore package been installed.
8382 # This test works as follows:
8383 # - If pkg-config was not installed at the time autogen.sh was run,
8384 #   the definition of the PKG_CHECK_EXISTS() macro will not be found by
8385 #   autogen.sh. Augogen.sh will generate a configure script that prints
8386 #   a warning about pkg-config and proceeds as if Qt4 has not been installed.
8387 # - If pkg-config was installed at the time autogen.sh was run,
8388 #   the generated configure script will try to detect the presence of the
8389 #   Qt4 QtCore library by looking up compile and linker flags in the file
8390 #   called QtCore.pc.
8391 # - pkg-config settings can be overridden via the configure variables
8392 #   QTCORE_CFLAGS and QTCORE_LIBS (added by the pkg-config m4 macro's to the
8393 #   configure script -- see also ./configure --help).
8394 # - The QTCORE_CFLAGS and QTCORE_LIBS configure variables can be used even if
8395 #   the pkg-config executable is not present on the system on which the
8396 #   configure script is run.
8397
8398
8399
8400 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8401         if test -n "$ac_tool_prefix"; then
8402   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8403 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   case $PKG_CONFIG in
8410   [\\/]* | ?:[\\/]*)
8411   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8412   ;;
8413   *)
8414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417   IFS=$as_save_IFS
8418   test -z "$as_dir" && as_dir=.
8419     for ac_exec_ext in '' $ac_executable_extensions; do
8420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426   done
8427 IFS=$as_save_IFS
8428
8429   ;;
8430 esac
8431 fi
8432 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8433 if test -n "$PKG_CONFIG"; then
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8435 $as_echo "$PKG_CONFIG" >&6; }
8436 else
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8439 fi
8440
8441
8442 fi
8443 if test -z "$ac_cv_path_PKG_CONFIG"; then
8444   ac_pt_PKG_CONFIG=$PKG_CONFIG
8445   # Extract the first word of "pkg-config", so it can be a program name with args.
8446 set dummy pkg-config; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8450   $as_echo_n "(cached) " >&6
8451 else
8452   case $ac_pt_PKG_CONFIG in
8453   [\\/]* | ?:[\\/]*)
8454   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8455   ;;
8456   *)
8457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460   IFS=$as_save_IFS
8461   test -z "$as_dir" && as_dir=.
8462     for ac_exec_ext in '' $ac_executable_extensions; do
8463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466     break 2
8467   fi
8468 done
8469   done
8470 IFS=$as_save_IFS
8471
8472   ;;
8473 esac
8474 fi
8475 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8476 if test -n "$ac_pt_PKG_CONFIG"; then
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8478 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8479 else
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483
8484   if test "x$ac_pt_PKG_CONFIG" = x; then
8485     PKG_CONFIG=""
8486   else
8487     case $cross_compiling:$ac_tool_warned in
8488 yes:)
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8491 ac_tool_warned=yes ;;
8492 esac
8493     PKG_CONFIG=$ac_pt_PKG_CONFIG
8494   fi
8495 else
8496   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8497 fi
8498
8499 fi
8500 if test -n "$PKG_CONFIG"; then
8501         _pkg_min_version=0.9.0
8502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8503 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8504         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8505                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8506 $as_echo "yes" >&6; }
8507         else
8508                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510                 PKG_CONFIG=""
8511         fi
8512
8513 fi
8514
8515 if test -n "$PKG_CONFIG" && \
8516     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8517   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8518   ac_status=$?
8519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520   test $ac_status = 0; }; then
8521
8522
8523 pkg_failed=no
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
8525 $as_echo_n "checking for QTCORE... " >&6; }
8526
8527 if test -n "$PKG_CONFIG"; then
8528     if test -n "$QTCORE_CFLAGS"; then
8529         pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
8530     else
8531         if test -n "$PKG_CONFIG" && \
8532     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8533   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8534   ac_status=$?
8535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8536   test $ac_status = 0; }; then
8537   pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null`
8538 else
8539   pkg_failed=yes
8540 fi
8541     fi
8542 else
8543         pkg_failed=untried
8544 fi
8545 if test -n "$PKG_CONFIG"; then
8546     if test -n "$QTCORE_LIBS"; then
8547         pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
8548     else
8549         if test -n "$PKG_CONFIG" && \
8550     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8551   ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8552   ac_status=$?
8553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554   test $ac_status = 0; }; then
8555   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null`
8556 else
8557   pkg_failed=yes
8558 fi
8559     fi
8560 else
8561         pkg_failed=untried
8562 fi
8563
8564
8565
8566 if test $pkg_failed = yes; then
8567
8568 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8569         _pkg_short_errors_supported=yes
8570 else
8571         _pkg_short_errors_supported=no
8572 fi
8573         if test $_pkg_short_errors_supported = yes; then
8574                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore"`
8575         else
8576                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore"`
8577         fi
8578         # Put the nasty error message in config.log where it belongs
8579         echo "$QTCORE_PKG_ERRORS" >&5
8580
8581         as_fn_error "Package requirements (QtCore) were not met:
8582
8583 $QTCORE_PKG_ERRORS
8584
8585 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8586 installed software in a non-standard prefix.
8587
8588 Alternatively, you may set the environment variables QTCORE_CFLAGS
8589 and QTCORE_LIBS to avoid the need to call pkg-config.
8590 See the pkg-config man page for more details.
8591 " "$LINENO" 5
8592 elif test $pkg_failed = untried; then
8593         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8595 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
8596 is in your PATH or set the PKG_CONFIG environment variable to the full
8597 path to pkg-config.
8598
8599 Alternatively, you may set the environment variables QTCORE_CFLAGS
8600 and QTCORE_LIBS to avoid the need to call pkg-config.
8601 See the pkg-config man page for more details.
8602
8603 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8604 See \`config.log' for more details." "$LINENO" 5; }
8605 else
8606         QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
8607         QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
8608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8609 $as_echo "yes" >&6; }
8610         :
8611 fi
8612       # Paranoia: don't trust the result reported by pkg-config, but when
8613       # pkg-config reports that QtCore has been found, verify whether linking
8614       # programs with QtCore succeeds.
8615       ac_ext=cpp
8616 ac_cpp='$CXXCPP $CPPFLAGS'
8617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8620
8621       safe_CXXFLAGS="${CXXFLAGS}"
8622       CXXFLAGS="${QTCORE_CFLAGS} ${QTCORE_LIBS} $mflag_primary"
8623       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h.  */
8625 #include <QMutex>
8626 int
8627 main ()
8628 {
8629 QMutex Mutex;
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 if ac_fn_cxx_try_link "$LINENO"; then :
8635   ac_have_qtcore=yes
8636 else
8637
8638           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&5
8639 $as_echo "$as_me: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&2;}
8640           ac_have_qtcore=no
8641
8642
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext \
8645     conftest$ac_exeext conftest.$ac_ext
8646       CXXFLAGS="${safe_CXXFLAGS}"
8647
8648 else
8649
8650       ac_have_qtcore=no
8651
8652
8653 fi
8654
8655
8656  if test x$ac_have_qtcore = xyes; then
8657   HAVE_QTCORE_TRUE=
8658   HAVE_QTCORE_FALSE='#'
8659 else
8660   HAVE_QTCORE_TRUE='#'
8661   HAVE_QTCORE_FALSE=
8662 fi
8663
8664
8665
8666 # Test for QMutex::tryLock(int), which has been introduced in Qt 4.3.
8667 # See also http://doc.trolltech.com/4.3/qmutex.html.
8668 if test x$ac_have_qtcore = xyes; then
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QMutex::tryLock(int)" >&5
8670 $as_echo_n "checking for Qt4 QMutex::tryLock(int)... " >&6; }
8671   ac_ext=cpp
8672 ac_cpp='$CXXCPP $CPPFLAGS'
8673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8676
8677   safe_CXXFLAGS="${CXXFLAGS}"
8678   CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h.  */
8681
8682     #include <QtCore/QMutex>
8683
8684 int
8685 main ()
8686 {
8687
8688     QMutex M;
8689     M.tryLock(1);
8690     M.unlock();
8691     return 0;
8692
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 if ac_fn_cxx_try_compile "$LINENO"; then :
8698
8699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8700 $as_echo "yes" >&6; }
8701
8702 $as_echo "#define HAVE_QTCORE_QMUTEX_TRYLOCK_INT 1" >>confdefs.h
8703
8704
8705 else
8706
8707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712   CXXFLAGS="${safe_CXXFLAGS}"
8713   ac_ext=c
8714 ac_cpp='$CPP $CPPFLAGS'
8715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718
8719 fi
8720
8721
8722 # Test for QAtomicInt, which has been introduced in Qt 4.4.
8723 # See also http://doc.trolltech.com/4.4/qatomicint.html.
8724 if test x$ac_have_qtcore = xyes; then
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QAtomicInt" >&5
8726 $as_echo_n "checking for Qt4 QAtomicInt... " >&6; }
8727   ac_ext=cpp
8728 ac_cpp='$CXXCPP $CPPFLAGS'
8729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8732
8733   safe_CXXFLAGS="${CXXFLAGS}"
8734   CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h.  */
8737
8738     #include <QtCore/QAtomicInt>
8739
8740 int
8741 main ()
8742 {
8743
8744     QAtomicInt I;
8745     I.testAndSetOrdered(0, 1);
8746     return 0;
8747
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_cxx_try_compile "$LINENO"; then :
8753
8754     ac_have_qtcore_qatomicint=yes
8755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8756 $as_echo "yes" >&6; }
8757
8758 $as_echo "#define HAVE_QTCORE_QATOMICINT 1" >>confdefs.h
8759
8760
8761 else
8762
8763     ac_have_qtcore_qatomicint=no
8764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769   CXXFLAGS="${safe_CXXFLAGS}"
8770   ac_ext=c
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
8776 fi
8777
8778  if test x$ac_have_qtcore_qatomicint = xyes; then
8779   HAVE_QTCORE_QATOMICINT_TRUE=
8780   HAVE_QTCORE_QATOMICINT_FALSE='#'
8781 else
8782   HAVE_QTCORE_QATOMICINT_TRUE='#'
8783   HAVE_QTCORE_QATOMICINT_FALSE=
8784 fi
8785
8786
8787
8788
8789 # Check whether the boost library 1.35 or later has been installed.
8790 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8791
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8793 $as_echo_n "checking for boost... " >&6; }
8794
8795 ac_ext=cpp
8796 ac_cpp='$CXXCPP $CPPFLAGS'
8797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8800
8801 safe_CXXFLAGS=$CXXFLAGS
8802 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8803
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 #include <boost/thread.hpp>
8808 static void thread_func(void)
8809 { }
8810 int main(int argc, char** argv)
8811 {
8812   boost::thread t(thread_func);
8813   return 0;
8814 }
8815
8816 _ACEOF
8817 if ac_fn_cxx_try_link "$LINENO"; then :
8818
8819 ac_have_boost_1_35=yes
8820
8821 BOOST_LIBS="${CXXFLAGS}"
8822
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8824 $as_echo "yes" >&6; }
8825
8826 else
8827
8828 ac_have_boost_1_35=no
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8831
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext \
8834     conftest$ac_exeext conftest.$ac_ext
8835
8836 CXXFLAGS=$safe_CXXFLAGS
8837 ac_ext=c
8838 ac_cpp='$CPP $CPPFLAGS'
8839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8842
8843
8844  if test x$ac_have_boost_1_35 = xyes; then
8845   HAVE_BOOST_1_35_TRUE=
8846   HAVE_BOOST_1_35_FALSE='#'
8847 else
8848   HAVE_BOOST_1_35_TRUE='#'
8849   HAVE_BOOST_1_35_FALSE=
8850 fi
8851
8852
8853
8854 # does this compiler support -fopenmp, does it have the include file
8855 # <omp.h> and does it have libgomp ?
8856
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
8858 $as_echo_n "checking for OpenMP... " >&6; }
8859
8860 safe_CFLAGS=$CFLAGS
8861 CFLAGS="-fopenmp $mflag_primary"
8862
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h.  */
8865
8866 #include <omp.h>
8867 int main(int argc, char** argv)
8868 {
8869   omp_set_dynamic(0);
8870   return 0;
8871 }
8872
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"; then :
8875
8876 ac_have_openmp=yes
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8878 $as_echo "yes" >&6; }
8879
8880 else
8881
8882 ac_have_openmp=no
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext \
8888     conftest$ac_exeext conftest.$ac_ext
8889 CFLAGS=$safe_CFLAGS
8890
8891  if test x$ac_have_openmp = xyes; then
8892   HAVE_OPENMP_TRUE=
8893   HAVE_OPENMP_FALSE='#'
8894 else
8895   HAVE_OPENMP_TRUE='#'
8896   HAVE_OPENMP_FALSE=
8897 fi
8898
8899
8900
8901 # does this compiler have built-in functions for atomic memory access ?
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
8903 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
8904
8905 safe_CFLAGS=$CFLAGS
8906 CFLAGS="$mflag_primary"
8907
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h.  */
8910
8911 int
8912 main ()
8913 {
8914
8915   int variable = 1;
8916   return (__sync_bool_compare_and_swap(&variable, 1, 2)
8917           && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
8918
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924
8925   ac_have_builtin_atomic=yes
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8927 $as_echo "yes" >&6; }
8928
8929 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
8930
8931
8932 else
8933
8934   ac_have_builtin_atomic=no
8935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8937
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940     conftest$ac_exeext conftest.$ac_ext
8941
8942 CFLAGS=$safe_CFLAGS
8943
8944  if test x$ac_have_builtin_atomic = xyes; then
8945   HAVE_BUILTIN_ATOMIC_TRUE=
8946   HAVE_BUILTIN_ATOMIC_FALSE='#'
8947 else
8948   HAVE_BUILTIN_ATOMIC_TRUE='#'
8949   HAVE_BUILTIN_ATOMIC_FALSE=
8950 fi
8951
8952
8953
8954 #----------------------------------------------------------------------------
8955 # Ok.  We're done checking.
8956 #----------------------------------------------------------------------------
8957
8958 # Nb: VEX/Makefile is generated from Makefile.vex.in.
8959 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/x86-linux/Makefile memcheck/perf/Makefile cachegrind/Makefile cachegrind/tests/Makefile cachegrind/tests/x86/Makefile cachegrind/cg_annotate 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"
8960
8961 cat >confcache <<\_ACEOF
8962 # This file is a shell script that caches the results of configure
8963 # tests run on this system so they can be shared between configure
8964 # scripts and configure runs, see configure's option --config-cache.
8965 # It is not useful on other systems.  If it contains results you don't
8966 # want to keep, you may remove or edit it.
8967 #
8968 # config.status only pays attention to the cache file if you give it
8969 # the --recheck option to rerun configure.
8970 #
8971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8973 # following values.
8974
8975 _ACEOF
8976
8977 # The following way of writing the cache mishandles newlines in values,
8978 # but we know of no workaround that is simple, portable, and efficient.
8979 # So, we kill variables containing newlines.
8980 # Ultrix sh set writes to stderr and can't be redirected directly,
8981 # and sets the high bit in the cache file unless we assign to the vars.
8982 (
8983   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8984     eval ac_val=\$$ac_var
8985     case $ac_val in #(
8986     *${as_nl}*)
8987       case $ac_var in #(
8988       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8990       esac
8991       case $ac_var in #(
8992       _ | IFS | as_nl) ;; #(
8993       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8994       *) { eval $ac_var=; unset $ac_var;} ;;
8995       esac ;;
8996     esac
8997   done
8998
8999   (set) 2>&1 |
9000     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9001     *${as_nl}ac_space=\ *)
9002       # `set' does not quote correctly, so add quotes: double-quote
9003       # substitution turns \\\\ into \\, and sed turns \\ into \.
9004       sed -n \
9005         "s/'/'\\\\''/g;
9006           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9007       ;; #(
9008     *)
9009       # `set' quotes correctly as required by POSIX, so do not add quotes.
9010       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9011       ;;
9012     esac |
9013     sort
9014 ) |
9015   sed '
9016      /^ac_cv_env_/b end
9017      t clear
9018      :clear
9019      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9020      t end
9021      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9022      :end' >>confcache
9023 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9024   if test -w "$cache_file"; then
9025     test "x$cache_file" != "x/dev/null" &&
9026       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9027 $as_echo "$as_me: updating cache $cache_file" >&6;}
9028     cat confcache >$cache_file
9029   else
9030     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9031 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9032   fi
9033 fi
9034 rm -f confcache
9035
9036 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9037 # Let make expand exec_prefix.
9038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9039
9040 DEFS=-DHAVE_CONFIG_H
9041
9042 ac_libobjs=
9043 ac_ltlibobjs=
9044 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9045   # 1. Remove the extension, and $U if already installed.
9046   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9047   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9048   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9049   #    will be set to the directory where LIBOBJS objects are built.
9050   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9051   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9052 done
9053 LIBOBJS=$ac_libobjs
9054
9055 LTLIBOBJS=$ac_ltlibobjs
9056
9057
9058  if test -n "$EXEEXT"; then
9059   am__EXEEXT_TRUE=
9060   am__EXEEXT_FALSE='#'
9061 else
9062   am__EXEEXT_TRUE='#'
9063   am__EXEEXT_FALSE=
9064 fi
9065
9066 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9067   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
9068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9069 fi
9070 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9071   as_fn_error "conditional \"AMDEP\" was never defined.
9072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9073 fi
9074 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9075   as_fn_error "conditional \"am__fastdepCC\" was never defined.
9076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9077 fi
9078 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9079   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9081 fi
9082 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9083   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
9084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9085 fi
9086 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9087   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9089 fi
9090 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9091   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9093 fi
9094 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9095   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9097 fi
9098 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9099   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9101 fi
9102 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9103   as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9105 fi
9106 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9107   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9109 fi
9110 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9111   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9113 fi
9114 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9115   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9117 fi
9118 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9119   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9121 fi
9122 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9123   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9125 fi
9126 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9127   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9129 fi
9130 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9131   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9133 fi
9134 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9135   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9137 fi
9138 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9139   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9141 fi
9142 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9143   as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9145 fi
9146 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9147   as_fn_error "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9149 fi
9150 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9151   as_fn_error "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9153 fi
9154 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9155   as_fn_error "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9157 fi
9158 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9159   as_fn_error "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9161 fi
9162 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9163   as_fn_error "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9165 fi
9166 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9167   as_fn_error "conditional \"HAS_ALTIVEC\" was never defined.
9168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9169 fi
9170 if test -z "${HAVE_ALTIVEC_H_TRUE}" && test -z "${HAVE_ALTIVEC_H_FALSE}"; then
9171   as_fn_error "conditional \"HAVE_ALTIVEC_H\" was never defined.
9172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9173 fi
9174 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9175   as_fn_error "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9177 fi
9178 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9179   as_fn_error "conditional \"BUILD_SSE3_TESTS\" was never defined.
9180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9181 fi
9182 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9183   as_fn_error "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9185 fi
9186 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9187   as_fn_error "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9189 fi
9190 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9191   as_fn_error "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9193 fi
9194 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9195   as_fn_error "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9197 fi
9198 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9199   as_fn_error "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9201 fi
9202 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9203   as_fn_error "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9205 fi
9206 if test -z "${HAVE_QTCORE_TRUE}" && test -z "${HAVE_QTCORE_FALSE}"; then
9207   as_fn_error "conditional \"HAVE_QTCORE\" was never defined.
9208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9209 fi
9210 if test -z "${HAVE_QTCORE_QATOMICINT_TRUE}" && test -z "${HAVE_QTCORE_QATOMICINT_FALSE}"; then
9211   as_fn_error "conditional \"HAVE_QTCORE_QATOMICINT\" was never defined.
9212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9213 fi
9214 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9215   as_fn_error "conditional \"HAVE_BOOST_1_35\" was never defined.
9216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9217 fi
9218 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9219   as_fn_error "conditional \"HAVE_OPENMP\" was never defined.
9220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9221 fi
9222 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9223   as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9225 fi
9226
9227 : ${CONFIG_STATUS=./config.status}
9228 ac_write_fail=0
9229 ac_clean_files_save=$ac_clean_files
9230 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9232 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9233 as_write_fail=0
9234 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9235 #! $SHELL
9236 # Generated by $as_me.
9237 # Run this file to recreate the current configuration.
9238 # Compiler output produced by configure, useful for debugging
9239 # configure, is in config.log if it exists.
9240
9241 debug=false
9242 ac_cs_recheck=false
9243 ac_cs_silent=false
9244
9245 SHELL=\${CONFIG_SHELL-$SHELL}
9246 export SHELL
9247 _ASEOF
9248 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9249 ## -------------------- ##
9250 ## M4sh Initialization. ##
9251 ## -------------------- ##
9252
9253 # Be more Bourne compatible
9254 DUALCASE=1; export DUALCASE # for MKS sh
9255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9256   emulate sh
9257   NULLCMD=:
9258   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9259   # is contrary to our usage.  Disable this feature.
9260   alias -g '${1+"$@"}'='"$@"'
9261   setopt NO_GLOB_SUBST
9262 else
9263   case `(set -o) 2>/dev/null` in #(
9264   *posix*) :
9265     set -o posix ;; #(
9266   *) :
9267      ;;
9268 esac
9269 fi
9270
9271
9272 as_nl='
9273 '
9274 export as_nl
9275 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9276 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9277 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9279 # Prefer a ksh shell builtin over an external printf program on Solaris,
9280 # but without wasting forks for bash or zsh.
9281 if test -z "$BASH_VERSION$ZSH_VERSION" \
9282     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9283   as_echo='print -r --'
9284   as_echo_n='print -rn --'
9285 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9286   as_echo='printf %s\n'
9287   as_echo_n='printf %s'
9288 else
9289   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9290     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9291     as_echo_n='/usr/ucb/echo -n'
9292   else
9293     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9294     as_echo_n_body='eval
9295       arg=$1;
9296       case $arg in #(
9297       *"$as_nl"*)
9298         expr "X$arg" : "X\\(.*\\)$as_nl";
9299         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9300       esac;
9301       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9302     '
9303     export as_echo_n_body
9304     as_echo_n='sh -c $as_echo_n_body as_echo'
9305   fi
9306   export as_echo_body
9307   as_echo='sh -c $as_echo_body as_echo'
9308 fi
9309
9310 # The user is always right.
9311 if test "${PATH_SEPARATOR+set}" != set; then
9312   PATH_SEPARATOR=:
9313   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9314     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9315       PATH_SEPARATOR=';'
9316   }
9317 fi
9318
9319
9320 # IFS
9321 # We need space, tab and new line, in precisely that order.  Quoting is
9322 # there to prevent editors from complaining about space-tab.
9323 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9324 # splitting by setting IFS to empty value.)
9325 IFS=" ""        $as_nl"
9326
9327 # Find who we are.  Look in the path if we contain no directory separator.
9328 case $0 in #((
9329   *[\\/]* ) as_myself=$0 ;;
9330   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333   IFS=$as_save_IFS
9334   test -z "$as_dir" && as_dir=.
9335     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9336   done
9337 IFS=$as_save_IFS
9338
9339      ;;
9340 esac
9341 # We did not find ourselves, most probably we were run as `sh COMMAND'
9342 # in which case we are not to be found in the path.
9343 if test "x$as_myself" = x; then
9344   as_myself=$0
9345 fi
9346 if test ! -f "$as_myself"; then
9347   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9348   exit 1
9349 fi
9350
9351 # Unset variables that we do not need and which cause bugs (e.g. in
9352 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9353 # suppresses any "Segmentation fault" message there.  '((' could
9354 # trigger a bug in pdksh 5.2.14.
9355 for as_var in BASH_ENV ENV MAIL MAILPATH
9356 do eval test x\${$as_var+set} = xset \
9357   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9358 done
9359 PS1='$ '
9360 PS2='> '
9361 PS4='+ '
9362
9363 # NLS nuisances.
9364 LC_ALL=C
9365 export LC_ALL
9366 LANGUAGE=C
9367 export LANGUAGE
9368
9369 # CDPATH.
9370 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9371
9372
9373 # as_fn_error ERROR [LINENO LOG_FD]
9374 # ---------------------------------
9375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9377 # script with status $?, using 1 if that was 0.
9378 as_fn_error ()
9379 {
9380   as_status=$?; test $as_status -eq 0 && as_status=1
9381   if test "$3"; then
9382     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9383     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9384   fi
9385   $as_echo "$as_me: error: $1" >&2
9386   as_fn_exit $as_status
9387 } # as_fn_error
9388
9389
9390 # as_fn_set_status STATUS
9391 # -----------------------
9392 # Set $? to STATUS, without forking.
9393 as_fn_set_status ()
9394 {
9395   return $1
9396 } # as_fn_set_status
9397
9398 # as_fn_exit STATUS
9399 # -----------------
9400 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9401 as_fn_exit ()
9402 {
9403   set +e
9404   as_fn_set_status $1
9405   exit $1
9406 } # as_fn_exit
9407
9408 # as_fn_unset VAR
9409 # ---------------
9410 # Portably unset VAR.
9411 as_fn_unset ()
9412 {
9413   { eval $1=; unset $1;}
9414 }
9415 as_unset=as_fn_unset
9416 # as_fn_append VAR VALUE
9417 # ----------------------
9418 # Append the text in VALUE to the end of the definition contained in VAR. Take
9419 # advantage of any shell optimizations that allow amortized linear growth over
9420 # repeated appends, instead of the typical quadratic growth present in naive
9421 # implementations.
9422 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9423   eval 'as_fn_append ()
9424   {
9425     eval $1+=\$2
9426   }'
9427 else
9428   as_fn_append ()
9429   {
9430     eval $1=\$$1\$2
9431   }
9432 fi # as_fn_append
9433
9434 # as_fn_arith ARG...
9435 # ------------------
9436 # Perform arithmetic evaluation on the ARGs, and store the result in the
9437 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9438 # must be portable across $(()) and expr.
9439 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9440   eval 'as_fn_arith ()
9441   {
9442     as_val=$(( $* ))
9443   }'
9444 else
9445   as_fn_arith ()
9446   {
9447     as_val=`expr "$@" || test $? -eq 1`
9448   }
9449 fi # as_fn_arith
9450
9451
9452 if expr a : '\(a\)' >/dev/null 2>&1 &&
9453    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9454   as_expr=expr
9455 else
9456   as_expr=false
9457 fi
9458
9459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9460   as_basename=basename
9461 else
9462   as_basename=false
9463 fi
9464
9465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9466   as_dirname=dirname
9467 else
9468   as_dirname=false
9469 fi
9470
9471 as_me=`$as_basename -- "$0" ||
9472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9473          X"$0" : 'X\(//\)$' \| \
9474          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9475 $as_echo X/"$0" |
9476     sed '/^.*\/\([^/][^/]*\)\/*$/{
9477             s//\1/
9478             q
9479           }
9480           /^X\/\(\/\/\)$/{
9481             s//\1/
9482             q
9483           }
9484           /^X\/\(\/\).*/{
9485             s//\1/
9486             q
9487           }
9488           s/.*/./; q'`
9489
9490 # Avoid depending upon Character Ranges.
9491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9494 as_cr_digits='0123456789'
9495 as_cr_alnum=$as_cr_Letters$as_cr_digits
9496
9497 ECHO_C= ECHO_N= ECHO_T=
9498 case `echo -n x` in #(((((
9499 -n*)
9500   case `echo 'xy\c'` in
9501   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9502   xy)  ECHO_C='\c';;
9503   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9504        ECHO_T=' ';;
9505   esac;;
9506 *)
9507   ECHO_N='-n';;
9508 esac
9509
9510 rm -f conf$$ conf$$.exe conf$$.file
9511 if test -d conf$$.dir; then
9512   rm -f conf$$.dir/conf$$.file
9513 else
9514   rm -f conf$$.dir
9515   mkdir conf$$.dir 2>/dev/null
9516 fi
9517 if (echo >conf$$.file) 2>/dev/null; then
9518   if ln -s conf$$.file conf$$ 2>/dev/null; then
9519     as_ln_s='ln -s'
9520     # ... but there are two gotchas:
9521     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9522     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9523     # In both cases, we have to default to `cp -p'.
9524     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9525       as_ln_s='cp -p'
9526   elif ln conf$$.file conf$$ 2>/dev/null; then
9527     as_ln_s=ln
9528   else
9529     as_ln_s='cp -p'
9530   fi
9531 else
9532   as_ln_s='cp -p'
9533 fi
9534 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9535 rmdir conf$$.dir 2>/dev/null
9536
9537
9538 # as_fn_mkdir_p
9539 # -------------
9540 # Create "$as_dir" as a directory, including parents if necessary.
9541 as_fn_mkdir_p ()
9542 {
9543
9544   case $as_dir in #(
9545   -*) as_dir=./$as_dir;;
9546   esac
9547   test -d "$as_dir" || eval $as_mkdir_p || {
9548     as_dirs=
9549     while :; do
9550       case $as_dir in #(
9551       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9552       *) as_qdir=$as_dir;;
9553       esac
9554       as_dirs="'$as_qdir' $as_dirs"
9555       as_dir=`$as_dirname -- "$as_dir" ||
9556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9557          X"$as_dir" : 'X\(//\)[^/]' \| \
9558          X"$as_dir" : 'X\(//\)$' \| \
9559          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9560 $as_echo X"$as_dir" |
9561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9562             s//\1/
9563             q
9564           }
9565           /^X\(\/\/\)[^/].*/{
9566             s//\1/
9567             q
9568           }
9569           /^X\(\/\/\)$/{
9570             s//\1/
9571             q
9572           }
9573           /^X\(\/\).*/{
9574             s//\1/
9575             q
9576           }
9577           s/.*/./; q'`
9578       test -d "$as_dir" && break
9579     done
9580     test -z "$as_dirs" || eval "mkdir $as_dirs"
9581   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9582
9583
9584 } # as_fn_mkdir_p
9585 if mkdir -p . 2>/dev/null; then
9586   as_mkdir_p='mkdir -p "$as_dir"'
9587 else
9588   test -d ./-p && rmdir ./-p
9589   as_mkdir_p=false
9590 fi
9591
9592 if test -x / >/dev/null 2>&1; then
9593   as_test_x='test -x'
9594 else
9595   if ls -dL / >/dev/null 2>&1; then
9596     as_ls_L_option=L
9597   else
9598     as_ls_L_option=
9599   fi
9600   as_test_x='
9601     eval sh -c '\''
9602       if test -d "$1"; then
9603         test -d "$1/.";
9604       else
9605         case $1 in #(
9606         -*)set "./$1";;
9607         esac;
9608         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9609         ???[sx]*):;;*)false;;esac;fi
9610     '\'' sh
9611   '
9612 fi
9613 as_executable_p=$as_test_x
9614
9615 # Sed expression to map a string onto a valid CPP name.
9616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9617
9618 # Sed expression to map a string onto a valid variable name.
9619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9620
9621
9622 exec 6>&1
9623 ## ----------------------------------- ##
9624 ## Main body of $CONFIG_STATUS script. ##
9625 ## ----------------------------------- ##
9626 _ASEOF
9627 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9628
9629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9630 # Save the log message, to keep $0 and so on meaningful, and to
9631 # report actual input values of CONFIG_FILES etc. instead of their
9632 # values after options handling.
9633 ac_log="
9634 This file was extended by Valgrind $as_me 3.6.0.SVN, which was
9635 generated by GNU Autoconf 2.65.  Invocation command line was
9636
9637   CONFIG_FILES    = $CONFIG_FILES
9638   CONFIG_HEADERS  = $CONFIG_HEADERS
9639   CONFIG_LINKS    = $CONFIG_LINKS
9640   CONFIG_COMMANDS = $CONFIG_COMMANDS
9641   $ $0 $@
9642
9643 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9644 "
9645
9646 _ACEOF
9647
9648 case $ac_config_files in *"
9649 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9650 esac
9651
9652 case $ac_config_headers in *"
9653 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9654 esac
9655
9656
9657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9658 # Files that config.status was made for.
9659 config_files="$ac_config_files"
9660 config_headers="$ac_config_headers"
9661 config_commands="$ac_config_commands"
9662
9663 _ACEOF
9664
9665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9666 ac_cs_usage="\
9667 \`$as_me' instantiates files and other configuration actions
9668 from templates according to the current configuration.  Unless the files
9669 and actions are specified as TAGs, all are instantiated by default.
9670
9671 Usage: $0 [OPTION]... [TAG]...
9672
9673   -h, --help       print this help, then exit
9674   -V, --version    print version number and configuration settings, then exit
9675       --config     print configuration, then exit
9676   -q, --quiet, --silent
9677                    do not print progress messages
9678   -d, --debug      don't remove temporary files
9679       --recheck    update $as_me by reconfiguring in the same conditions
9680       --file=FILE[:TEMPLATE]
9681                    instantiate the configuration file FILE
9682       --header=FILE[:TEMPLATE]
9683                    instantiate the configuration header FILE
9684
9685 Configuration files:
9686 $config_files
9687
9688 Configuration headers:
9689 $config_headers
9690
9691 Configuration commands:
9692 $config_commands
9693
9694 Report bugs to <valgrind-users@lists.sourceforge.net>."
9695
9696 _ACEOF
9697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9698 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9699 ac_cs_version="\\
9700 Valgrind config.status 3.6.0.SVN
9701 configured by $0, generated by GNU Autoconf 2.65,
9702   with options \\"\$ac_cs_config\\"
9703
9704 Copyright (C) 2009 Free Software Foundation, Inc.
9705 This config.status script is free software; the Free Software Foundation
9706 gives unlimited permission to copy, distribute and modify it."
9707
9708 ac_pwd='$ac_pwd'
9709 srcdir='$srcdir'
9710 INSTALL='$INSTALL'
9711 MKDIR_P='$MKDIR_P'
9712 AWK='$AWK'
9713 test -n "\$AWK" || AWK=awk
9714 _ACEOF
9715
9716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9717 # The default lists apply if the user does not specify any file.
9718 ac_need_defaults=:
9719 while test $# != 0
9720 do
9721   case $1 in
9722   --*=*)
9723     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9724     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9725     ac_shift=:
9726     ;;
9727   *)
9728     ac_option=$1
9729     ac_optarg=$2
9730     ac_shift=shift
9731     ;;
9732   esac
9733
9734   case $ac_option in
9735   # Handling of the options.
9736   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9737     ac_cs_recheck=: ;;
9738   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9739     $as_echo "$ac_cs_version"; exit ;;
9740   --config | --confi | --conf | --con | --co | --c )
9741     $as_echo "$ac_cs_config"; exit ;;
9742   --debug | --debu | --deb | --de | --d | -d )
9743     debug=: ;;
9744   --file | --fil | --fi | --f )
9745     $ac_shift
9746     case $ac_optarg in
9747     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9748     esac
9749     as_fn_append CONFIG_FILES " '$ac_optarg'"
9750     ac_need_defaults=false;;
9751   --header | --heade | --head | --hea )
9752     $ac_shift
9753     case $ac_optarg in
9754     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9755     esac
9756     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9757     ac_need_defaults=false;;
9758   --he | --h)
9759     # Conflict between --help and --header
9760     as_fn_error "ambiguous option: \`$1'
9761 Try \`$0 --help' for more information.";;
9762   --help | --hel | -h )
9763     $as_echo "$ac_cs_usage"; exit ;;
9764   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9765   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9766     ac_cs_silent=: ;;
9767
9768   # This is an error.
9769   -*) as_fn_error "unrecognized option: \`$1'
9770 Try \`$0 --help' for more information." ;;
9771
9772   *) as_fn_append ac_config_targets " $1"
9773      ac_need_defaults=false ;;
9774
9775   esac
9776   shift
9777 done
9778
9779 ac_configure_extra_args=
9780
9781 if $ac_cs_silent; then
9782   exec 6>/dev/null
9783   ac_configure_extra_args="$ac_configure_extra_args --silent"
9784 fi
9785
9786 _ACEOF
9787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9788 if \$ac_cs_recheck; then
9789   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9790   shift
9791   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9792   CONFIG_SHELL='$SHELL'
9793   export CONFIG_SHELL
9794   exec "\$@"
9795 fi
9796
9797 _ACEOF
9798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9799 exec 5>>config.log
9800 {
9801   echo
9802   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9803 ## Running $as_me. ##
9804 _ASBOX
9805   $as_echo "$ac_log"
9806 } >&5
9807
9808 _ACEOF
9809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9810 #
9811 # INIT-COMMANDS
9812 #
9813 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9814
9815 _ACEOF
9816
9817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9818
9819 # Handling of arguments.
9820 for ac_config_target in $ac_config_targets
9821 do
9822   case $ac_config_target in
9823     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9824     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9825     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9826     "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
9827     "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
9828     "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
9829     "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
9830     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9831     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9832     "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
9833     "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
9834     "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
9835     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9836     "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
9837     "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
9838     "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
9839     "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
9840     "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
9841     "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
9842     "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
9843     "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
9844     "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
9845     "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
9846     "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
9847     "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
9848     "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
9849     "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
9850     "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
9851     "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
9852     "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
9853     "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
9854     "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
9855     "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
9856     "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
9857     "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
9858     "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
9859     "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
9860     "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
9861     "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
9862     "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
9863     "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
9864     "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
9865     "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
9866     "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
9867     "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
9868     "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
9869     "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
9870     "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
9871     "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
9872     "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
9873     "exp-ptrcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/Makefile" ;;
9874     "exp-ptrcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/tests/Makefile" ;;
9875     "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
9876     "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
9877     "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
9878     "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
9879     "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
9880     "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
9881     "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
9882     "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
9883     "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
9884
9885   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9886   esac
9887 done
9888
9889
9890 # If the user did not use the arguments to specify the items to instantiate,
9891 # then the envvar interface is used.  Set only those that are not.
9892 # We use the long form for the default assignment because of an extremely
9893 # bizarre bug on SunOS 4.1.3.
9894 if $ac_need_defaults; then
9895   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9896   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9897   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9898 fi
9899
9900 # Have a temporary directory for convenience.  Make it in the build tree
9901 # simply because there is no reason against having it here, and in addition,
9902 # creating and moving files from /tmp can sometimes cause problems.
9903 # Hook for its removal unless debugging.
9904 # Note that there is a small window in which the directory will not be cleaned:
9905 # after its creation but before its name has been assigned to `$tmp'.
9906 $debug ||
9907 {
9908   tmp=
9909   trap 'exit_status=$?
9910   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9911 ' 0
9912   trap 'as_fn_exit 1' 1 2 13 15
9913 }
9914 # Create a (secure) tmp directory for tmp files.
9915
9916 {
9917   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9918   test -n "$tmp" && test -d "$tmp"
9919 }  ||
9920 {
9921   tmp=./conf$$-$RANDOM
9922   (umask 077 && mkdir "$tmp")
9923 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9924
9925 # Set up the scripts for CONFIG_FILES section.
9926 # No need to generate them if there are no CONFIG_FILES.
9927 # This happens for instance with `./config.status config.h'.
9928 if test -n "$CONFIG_FILES"; then
9929
9930
9931 ac_cr=`echo X | tr X '\015'`
9932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9933 # But we know of no other shell where ac_cr would be empty at this
9934 # point, so we can use a bashism as a fallback.
9935 if test "x$ac_cr" = x; then
9936   eval ac_cr=\$\'\\r\'
9937 fi
9938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9940   ac_cs_awk_cr='\r'
9941 else
9942   ac_cs_awk_cr=$ac_cr
9943 fi
9944
9945 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9946 _ACEOF
9947
9948
9949 {
9950   echo "cat >conf$$subs.awk <<_ACEOF" &&
9951   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9952   echo "_ACEOF"
9953 } >conf$$subs.sh ||
9954   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9956 ac_delim='%!_!# '
9957 for ac_last_try in false false false false false :; do
9958   . ./conf$$subs.sh ||
9959     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9960
9961   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9962   if test $ac_delim_n = $ac_delim_num; then
9963     break
9964   elif $ac_last_try; then
9965     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9966   else
9967     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9968   fi
9969 done
9970 rm -f conf$$subs.sh
9971
9972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9973 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9974 _ACEOF
9975 sed -n '
9976 h
9977 s/^/S["/; s/!.*/"]=/
9978 p
9979 g
9980 s/^[^!]*!//
9981 :repl
9982 t repl
9983 s/'"$ac_delim"'$//
9984 t delim
9985 :nl
9986 h
9987 s/\(.\{148\}\)..*/\1/
9988 t more1
9989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9990 p
9991 n
9992 b repl
9993 :more1
9994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9995 p
9996 g
9997 s/.\{148\}//
9998 t nl
9999 :delim
10000 h
10001 s/\(.\{148\}\)..*/\1/
10002 t more2
10003 s/["\\]/\\&/g; s/^/"/; s/$/"/
10004 p
10005 b
10006 :more2
10007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10008 p
10009 g
10010 s/.\{148\}//
10011 t delim
10012 ' <conf$$subs.awk | sed '
10013 /^[^""]/{
10014   N
10015   s/\n//
10016 }
10017 ' >>$CONFIG_STATUS || ac_write_fail=1
10018 rm -f conf$$subs.awk
10019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10020 _ACAWK
10021 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10022   for (key in S) S_is_set[key] = 1
10023   FS = "\a"
10024
10025 }
10026 {
10027   line = $ 0
10028   nfields = split(line, field, "@")
10029   substed = 0
10030   len = length(field[1])
10031   for (i = 2; i < nfields; i++) {
10032     key = field[i]
10033     keylen = length(key)
10034     if (S_is_set[key]) {
10035       value = S[key]
10036       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10037       len += length(value) + length(field[++i])
10038       substed = 1
10039     } else
10040       len += 1 + keylen
10041   }
10042
10043   print line
10044 }
10045
10046 _ACAWK
10047 _ACEOF
10048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10050   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10051 else
10052   cat
10053 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10054   || as_fn_error "could not setup config files machinery" "$LINENO" 5
10055 _ACEOF
10056
10057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10059 # trailing colons and then remove the whole line if VPATH becomes empty
10060 # (actually we leave an empty line to preserve line numbers).
10061 if test "x$srcdir" = x.; then
10062   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10063 s/:*\$(srcdir):*/:/
10064 s/:*\${srcdir}:*/:/
10065 s/:*@srcdir@:*/:/
10066 s/^\([^=]*=[     ]*\):*/\1/
10067 s/:*$//
10068 s/^[^=]*=[       ]*$//
10069 }'
10070 fi
10071
10072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10073 fi # test -n "$CONFIG_FILES"
10074
10075 # Set up the scripts for CONFIG_HEADERS section.
10076 # No need to generate them if there are no CONFIG_HEADERS.
10077 # This happens for instance with `./config.status Makefile'.
10078 if test -n "$CONFIG_HEADERS"; then
10079 cat >"$tmp/defines.awk" <<\_ACAWK ||
10080 BEGIN {
10081 _ACEOF
10082
10083 # Transform confdefs.h into an awk script `defines.awk', embedded as
10084 # here-document in config.status, that substitutes the proper values into
10085 # config.h.in to produce config.h.
10086
10087 # Create a delimiter string that does not exist in confdefs.h, to ease
10088 # handling of long lines.
10089 ac_delim='%!_!# '
10090 for ac_last_try in false false :; do
10091   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10092   if test -z "$ac_t"; then
10093     break
10094   elif $ac_last_try; then
10095     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10096   else
10097     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10098   fi
10099 done
10100
10101 # For the awk script, D is an array of macro values keyed by name,
10102 # likewise P contains macro parameters if any.  Preserve backslash
10103 # newline sequences.
10104
10105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10106 sed -n '
10107 s/.\{148\}/&'"$ac_delim"'/g
10108 t rset
10109 :rset
10110 s/^[     ]*#[    ]*define[       ][      ]*/ /
10111 t def
10112 d
10113 :def
10114 s/\\$//
10115 t bsnl
10116 s/["\\]/\\&/g
10117 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10118 D["\1"]=" \3"/p
10119 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10120 d
10121 :bsnl
10122 s/["\\]/\\&/g
10123 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10124 D["\1"]=" \3\\\\\\n"\\/p
10125 t cont
10126 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10127 t cont
10128 d
10129 :cont
10130 n
10131 s/.\{148\}/&'"$ac_delim"'/g
10132 t clear
10133 :clear
10134 s/\\$//
10135 t bsnlc
10136 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10137 d
10138 :bsnlc
10139 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10140 b cont
10141 ' <confdefs.h | sed '
10142 s/'"$ac_delim"'/"\\\
10143 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10144
10145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10146   for (key in D) D_is_set[key] = 1
10147   FS = "\a"
10148 }
10149 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10150   line = \$ 0
10151   split(line, arg, " ")
10152   if (arg[1] == "#") {
10153     defundef = arg[2]
10154     mac1 = arg[3]
10155   } else {
10156     defundef = substr(arg[1], 2)
10157     mac1 = arg[2]
10158   }
10159   split(mac1, mac2, "(") #)
10160   macro = mac2[1]
10161   prefix = substr(line, 1, index(line, defundef) - 1)
10162   if (D_is_set[macro]) {
10163     # Preserve the white space surrounding the "#".
10164     print prefix "define", macro P[macro] D[macro]
10165     next
10166   } else {
10167     # Replace #undef with comments.  This is necessary, for example,
10168     # in the case of _POSIX_SOURCE, which is predefined and required
10169     # on some systems where configure will not decide to define it.
10170     if (defundef == "undef") {
10171       print "/*", prefix defundef, macro, "*/"
10172       next
10173     }
10174   }
10175 }
10176 { print }
10177 _ACAWK
10178 _ACEOF
10179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10180   as_fn_error "could not setup config headers machinery" "$LINENO" 5
10181 fi # test -n "$CONFIG_HEADERS"
10182
10183
10184 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10185 shift
10186 for ac_tag
10187 do
10188   case $ac_tag in
10189   :[FHLC]) ac_mode=$ac_tag; continue;;
10190   esac
10191   case $ac_mode$ac_tag in
10192   :[FHL]*:*);;
10193   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10194   :[FH]-) ac_tag=-:-;;
10195   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10196   esac
10197   ac_save_IFS=$IFS
10198   IFS=:
10199   set x $ac_tag
10200   IFS=$ac_save_IFS
10201   shift
10202   ac_file=$1
10203   shift
10204
10205   case $ac_mode in
10206   :L) ac_source=$1;;
10207   :[FH])
10208     ac_file_inputs=
10209     for ac_f
10210     do
10211       case $ac_f in
10212       -) ac_f="$tmp/stdin";;
10213       *) # Look for the file first in the build tree, then in the source tree
10214          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10215          # because $ac_f cannot contain `:'.
10216          test -f "$ac_f" ||
10217            case $ac_f in
10218            [\\/$]*) false;;
10219            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10220            esac ||
10221            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10222       esac
10223       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10224       as_fn_append ac_file_inputs " '$ac_f'"
10225     done
10226
10227     # Let's still pretend it is `configure' which instantiates (i.e., don't
10228     # use $as_me), people would be surprised to read:
10229     #    /* config.h.  Generated by config.status.  */
10230     configure_input='Generated from '`
10231           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10232         `' by configure.'
10233     if test x"$ac_file" != x-; then
10234       configure_input="$ac_file.  $configure_input"
10235       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10236 $as_echo "$as_me: creating $ac_file" >&6;}
10237     fi
10238     # Neutralize special characters interpreted by sed in replacement strings.
10239     case $configure_input in #(
10240     *\&* | *\|* | *\\* )
10241        ac_sed_conf_input=`$as_echo "$configure_input" |
10242        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10243     *) ac_sed_conf_input=$configure_input;;
10244     esac
10245
10246     case $ac_tag in
10247     *:-:* | *:-) cat >"$tmp/stdin" \
10248       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10249     esac
10250     ;;
10251   esac
10252
10253   ac_dir=`$as_dirname -- "$ac_file" ||
10254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10255          X"$ac_file" : 'X\(//\)[^/]' \| \
10256          X"$ac_file" : 'X\(//\)$' \| \
10257          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10258 $as_echo X"$ac_file" |
10259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10260             s//\1/
10261             q
10262           }
10263           /^X\(\/\/\)[^/].*/{
10264             s//\1/
10265             q
10266           }
10267           /^X\(\/\/\)$/{
10268             s//\1/
10269             q
10270           }
10271           /^X\(\/\).*/{
10272             s//\1/
10273             q
10274           }
10275           s/.*/./; q'`
10276   as_dir="$ac_dir"; as_fn_mkdir_p
10277   ac_builddir=.
10278
10279 case "$ac_dir" in
10280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10281 *)
10282   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10283   # A ".." for each directory in $ac_dir_suffix.
10284   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10285   case $ac_top_builddir_sub in
10286   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10287   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10288   esac ;;
10289 esac
10290 ac_abs_top_builddir=$ac_pwd
10291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10292 # for backward compatibility:
10293 ac_top_builddir=$ac_top_build_prefix
10294
10295 case $srcdir in
10296   .)  # We are building in place.
10297     ac_srcdir=.
10298     ac_top_srcdir=$ac_top_builddir_sub
10299     ac_abs_top_srcdir=$ac_pwd ;;
10300   [\\/]* | ?:[\\/]* )  # Absolute name.
10301     ac_srcdir=$srcdir$ac_dir_suffix;
10302     ac_top_srcdir=$srcdir
10303     ac_abs_top_srcdir=$srcdir ;;
10304   *) # Relative name.
10305     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10306     ac_top_srcdir=$ac_top_build_prefix$srcdir
10307     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10308 esac
10309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10310
10311
10312   case $ac_mode in
10313   :F)
10314   #
10315   # CONFIG_FILE
10316   #
10317
10318   case $INSTALL in
10319   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10320   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10321   esac
10322   ac_MKDIR_P=$MKDIR_P
10323   case $MKDIR_P in
10324   [\\/$]* | ?:[\\/]* ) ;;
10325   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10326   esac
10327 _ACEOF
10328
10329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10330 # If the template does not know about datarootdir, expand it.
10331 # FIXME: This hack should be removed a few years after 2.60.
10332 ac_datarootdir_hack=; ac_datarootdir_seen=
10333 ac_sed_dataroot='
10334 /datarootdir/ {
10335   p
10336   q
10337 }
10338 /@datadir@/p
10339 /@docdir@/p
10340 /@infodir@/p
10341 /@localedir@/p
10342 /@mandir@/p'
10343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10344 *datarootdir*) ac_datarootdir_seen=yes;;
10345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10348 _ACEOF
10349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10350   ac_datarootdir_hack='
10351   s&@datadir@&$datadir&g
10352   s&@docdir@&$docdir&g
10353   s&@infodir@&$infodir&g
10354   s&@localedir@&$localedir&g
10355   s&@mandir@&$mandir&g
10356   s&\\\${datarootdir}&$datarootdir&g' ;;
10357 esac
10358 _ACEOF
10359
10360 # Neutralize VPATH when `$srcdir' = `.'.
10361 # Shell code in configure.ac might set extrasub.
10362 # FIXME: do we really want to maintain this feature?
10363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10364 ac_sed_extra="$ac_vpsub
10365 $extrasub
10366 _ACEOF
10367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10368 :t
10369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10370 s|@configure_input@|$ac_sed_conf_input|;t t
10371 s&@top_builddir@&$ac_top_builddir_sub&;t t
10372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10373 s&@srcdir@&$ac_srcdir&;t t
10374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10375 s&@top_srcdir@&$ac_top_srcdir&;t t
10376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10377 s&@builddir@&$ac_builddir&;t t
10378 s&@abs_builddir@&$ac_abs_builddir&;t t
10379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10380 s&@INSTALL@&$ac_INSTALL&;t t
10381 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10382 $ac_datarootdir_hack
10383 "
10384 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10385   || as_fn_error "could not create $ac_file" "$LINENO" 5
10386
10387 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10388   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10389   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10391 which seems to be undefined.  Please make sure it is defined." >&5
10392 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10393 which seems to be undefined.  Please make sure it is defined." >&2;}
10394
10395   rm -f "$tmp/stdin"
10396   case $ac_file in
10397   -) cat "$tmp/out" && rm -f "$tmp/out";;
10398   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10399   esac \
10400   || as_fn_error "could not create $ac_file" "$LINENO" 5
10401  ;;
10402   :H)
10403   #
10404   # CONFIG_HEADER
10405   #
10406   if test x"$ac_file" != x-; then
10407     {
10408       $as_echo "/* $configure_input  */" \
10409       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10410     } >"$tmp/config.h" \
10411       || as_fn_error "could not create $ac_file" "$LINENO" 5
10412     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10413       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10414 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10415     else
10416       rm -f "$ac_file"
10417       mv "$tmp/config.h" "$ac_file" \
10418         || as_fn_error "could not create $ac_file" "$LINENO" 5
10419     fi
10420   else
10421     $as_echo "/* $configure_input  */" \
10422       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10423       || as_fn_error "could not create -" "$LINENO" 5
10424   fi
10425 # Compute "$ac_file"'s index in $config_headers.
10426 _am_arg="$ac_file"
10427 _am_stamp_count=1
10428 for _am_header in $config_headers :; do
10429   case $_am_header in
10430     $_am_arg | $_am_arg:* )
10431       break ;;
10432     * )
10433       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10434   esac
10435 done
10436 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10437 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10438          X"$_am_arg" : 'X\(//\)[^/]' \| \
10439          X"$_am_arg" : 'X\(//\)$' \| \
10440          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10441 $as_echo X"$_am_arg" |
10442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10443             s//\1/
10444             q
10445           }
10446           /^X\(\/\/\)[^/].*/{
10447             s//\1/
10448             q
10449           }
10450           /^X\(\/\/\)$/{
10451             s//\1/
10452             q
10453           }
10454           /^X\(\/\).*/{
10455             s//\1/
10456             q
10457           }
10458           s/.*/./; q'`/stamp-h$_am_stamp_count
10459  ;;
10460
10461   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10462 $as_echo "$as_me: executing $ac_file commands" >&6;}
10463  ;;
10464   esac
10465
10466
10467   case $ac_file$ac_mode in
10468     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10469   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10470   # are listed without --file.  Let's play safe and only enable the eval
10471   # if we detect the quoting.
10472   case $CONFIG_FILES in
10473   *\'*) eval set x "$CONFIG_FILES" ;;
10474   *)   set x $CONFIG_FILES ;;
10475   esac
10476   shift
10477   for mf
10478   do
10479     # Strip MF so we end up with the name of the file.
10480     mf=`echo "$mf" | sed -e 's/:.*$//'`
10481     # Check whether this is an Automake generated Makefile or not.
10482     # We used to match only the files named `Makefile.in', but
10483     # some people rename them; so instead we look at the file content.
10484     # Grep'ing the first line is not enough: some people post-process
10485     # each Makefile.in and add a new line on top of each file to say so.
10486     # Grep'ing the whole file is not good either: AIX grep has a line
10487     # limit of 2048, but all sed's we know have understand at least 4000.
10488     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10489       dirpart=`$as_dirname -- "$mf" ||
10490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10491          X"$mf" : 'X\(//\)[^/]' \| \
10492          X"$mf" : 'X\(//\)$' \| \
10493          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10494 $as_echo X"$mf" |
10495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10496             s//\1/
10497             q
10498           }
10499           /^X\(\/\/\)[^/].*/{
10500             s//\1/
10501             q
10502           }
10503           /^X\(\/\/\)$/{
10504             s//\1/
10505             q
10506           }
10507           /^X\(\/\).*/{
10508             s//\1/
10509             q
10510           }
10511           s/.*/./; q'`
10512     else
10513       continue
10514     fi
10515     # Extract the definition of DEPDIR, am__include, and am__quote
10516     # from the Makefile without running `make'.
10517     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10518     test -z "$DEPDIR" && continue
10519     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10520     test -z "am__include" && continue
10521     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10522     # When using ansi2knr, U may be empty or an underscore; expand it
10523     U=`sed -n 's/^U = //p' < "$mf"`
10524     # Find all dependency output files, they are included files with
10525     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10526     # simplest approach to changing $(DEPDIR) to its actual value in the
10527     # expansion.
10528     for file in `sed -n "
10529       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10530          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10531       # Make sure the directory exists.
10532       test -f "$dirpart/$file" && continue
10533       fdir=`$as_dirname -- "$file" ||
10534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10535          X"$file" : 'X\(//\)[^/]' \| \
10536          X"$file" : 'X\(//\)$' \| \
10537          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10538 $as_echo X"$file" |
10539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10540             s//\1/
10541             q
10542           }
10543           /^X\(\/\/\)[^/].*/{
10544             s//\1/
10545             q
10546           }
10547           /^X\(\/\/\)$/{
10548             s//\1/
10549             q
10550           }
10551           /^X\(\/\).*/{
10552             s//\1/
10553             q
10554           }
10555           s/.*/./; q'`
10556       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10557       # echo "creating $dirpart/$file"
10558       echo '# dummy' > "$dirpart/$file"
10559     done
10560   done
10561 }
10562  ;;
10563
10564   esac
10565 done # for ac_tag
10566
10567
10568 as_fn_exit 0
10569 _ACEOF
10570 ac_clean_files=$ac_clean_files_save
10571
10572 test $ac_write_fail = 0 ||
10573   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10574
10575
10576 # configure is writing to config.log, and then calls config.status.
10577 # config.status does its own redirection, appending to config.log.
10578 # Unfortunately, on DOS this fails, as config.log is still kept open
10579 # by configure, so config.status won't be able to write to it; its
10580 # output is simply discarded.  So we exec the FD to /dev/null,
10581 # effectively closing config.log, so it can be properly (re)opened and
10582 # appended to by config.status.  When coming back to configure, we
10583 # need to make the FD available again.
10584 if test "$no_create" != yes; then
10585   ac_cs_success=:
10586   ac_config_status_args=
10587   test "$silent" = yes &&
10588     ac_config_status_args="$ac_config_status_args --quiet"
10589   exec 5>/dev/null
10590   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10591   exec 5>>config.log
10592   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10593   # would make configure fail if this is the last instruction.
10594   $ac_cs_success || as_fn_exit $?
10595 fi
10596 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10597   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10598 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10599 fi
10600
10601
10602 cat<<EOF
10603
10604          Maximum build arch: ${ARCH_MAX}
10605          Primary build arch: ${VGCONF_ARCH_PRI}
10606        Secondary build arch: ${VGCONF_ARCH_SEC}
10607                    Build OS: ${VGCONF_OS}
10608        Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10609      Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10610          Default supp files: ${DEFAULT_SUPP}
10611        Generated supp files: ${GENERATED_SUPP}
10612
10613 EOF