benchmark silo added
[c11concurrency-benchmarks.git] / silo / masstree / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for masstree-beta 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='masstree-beta'
579 PACKAGE_TARNAME='masstree-beta'
580 PACKAGE_VERSION='0.1'
581 PACKAGE_STRING='masstree-beta 0.1'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 #  include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #  include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
620
621 ac_subst_vars='LTLIBOBJS
622 LIBOBJS
623 MALLOC_LIBS
624 EGREP
625 GREP
626 CXXCPP
627 ac_ct_CXX
628 CXXFLAGS
629 CXX
630 OBJEXT
631 EXEEXT
632 ac_ct_CC
633 CPPFLAGS
634 LDFLAGS
635 CFLAGS
636 CC
637 ac_configure_args
638 target_alias
639 host_alias
640 build_alias
641 LIBS
642 ECHO_T
643 ECHO_N
644 ECHO_C
645 DEFS
646 mandir
647 localedir
648 libdir
649 psdir
650 pdfdir
651 dvidir
652 htmldir
653 infodir
654 docdir
655 oldincludedir
656 includedir
657 runstatedir
658 localstatedir
659 sharedstatedir
660 sysconfdir
661 datadir
662 datarootdir
663 libexecdir
664 sbindir
665 bindir
666 program_transform_name
667 prefix
668 exec_prefix
669 PACKAGE_URL
670 PACKAGE_BUGREPORT
671 PACKAGE_STRING
672 PACKAGE_VERSION
673 PACKAGE_TARNAME
674 PACKAGE_NAME
675 PATH_SEPARATOR
676 SHELL'
677 ac_subst_files=''
678 ac_user_opts='
679 enable_option_checking
680 with_malloc
681 enable_row_type
682 enable_max_key_len
683 enable_superpage
684 enable_memdebug
685 enable_assert
686 enable_assertions
687 enable_preconditions
688 enable_invariants
689 '
690       ac_precious_vars='build_alias
691 host_alias
692 target_alias
693 CC
694 CFLAGS
695 LDFLAGS
696 LIBS
697 CPPFLAGS
698 CXX
699 CXXFLAGS
700 CCC
701 CXXCPP'
702
703
704 # Initialize some variables set by options.
705 ac_init_help=
706 ac_init_version=false
707 ac_unrecognized_opts=
708 ac_unrecognized_sep=
709 # The variables have the same names as the options, with
710 # dashes changed to underlines.
711 cache_file=/dev/null
712 exec_prefix=NONE
713 no_create=
714 no_recursion=
715 prefix=NONE
716 program_prefix=NONE
717 program_suffix=NONE
718 program_transform_name=s,x,x,
719 silent=
720 site=
721 srcdir=
722 verbose=
723 x_includes=NONE
724 x_libraries=NONE
725
726 # Installation directory options.
727 # These are left unexpanded so users can "make install exec_prefix=/foo"
728 # and all the variables that are supposed to be based on exec_prefix
729 # by default will actually change.
730 # Use braces instead of parens because sh, perl, etc. also accept them.
731 # (The list follows the same order as the GNU Coding Standards.)
732 bindir='${exec_prefix}/bin'
733 sbindir='${exec_prefix}/sbin'
734 libexecdir='${exec_prefix}/libexec'
735 datarootdir='${prefix}/share'
736 datadir='${datarootdir}'
737 sysconfdir='${prefix}/etc'
738 sharedstatedir='${prefix}/com'
739 localstatedir='${prefix}/var'
740 runstatedir='${localstatedir}/run'
741 includedir='${prefix}/include'
742 oldincludedir='/usr/include'
743 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
744 infodir='${datarootdir}/info'
745 htmldir='${docdir}'
746 dvidir='${docdir}'
747 pdfdir='${docdir}'
748 psdir='${docdir}'
749 libdir='${exec_prefix}/lib'
750 localedir='${datarootdir}/locale'
751 mandir='${datarootdir}/man'
752
753 ac_prev=
754 ac_dashdash=
755 for ac_option
756 do
757   # If the previous option needs an argument, assign it.
758   if test -n "$ac_prev"; then
759     eval $ac_prev=\$ac_option
760     ac_prev=
761     continue
762   fi
763
764   case $ac_option in
765   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766   *=)   ac_optarg= ;;
767   *)    ac_optarg=yes ;;
768   esac
769
770   # Accept the important Cygnus configure options, so we can diagnose typos.
771
772   case $ac_dashdash$ac_option in
773   --)
774     ac_dashdash=yes ;;
775
776   -bindir | --bindir | --bindi | --bind | --bin | --bi)
777     ac_prev=bindir ;;
778   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
779     bindir=$ac_optarg ;;
780
781   -build | --build | --buil | --bui | --bu)
782     ac_prev=build_alias ;;
783   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784     build_alias=$ac_optarg ;;
785
786   -cache-file | --cache-file | --cache-fil | --cache-fi \
787   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788     ac_prev=cache_file ;;
789   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791     cache_file=$ac_optarg ;;
792
793   --config-cache | -C)
794     cache_file=config.cache ;;
795
796   -datadir | --datadir | --datadi | --datad)
797     ac_prev=datadir ;;
798   -datadir=* | --datadir=* | --datadi=* | --datad=*)
799     datadir=$ac_optarg ;;
800
801   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802   | --dataroo | --dataro | --datar)
803     ac_prev=datarootdir ;;
804   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806     datarootdir=$ac_optarg ;;
807
808   -disable-* | --disable-*)
809     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810     # Reject names that are not valid shell variable names.
811     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
812       as_fn_error $? "invalid feature name: $ac_useropt"
813     ac_useropt_orig=$ac_useropt
814     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
815     case $ac_user_opts in
816       *"
817 "enable_$ac_useropt"
818 "*) ;;
819       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
820          ac_unrecognized_sep=', ';;
821     esac
822     eval enable_$ac_useropt=no ;;
823
824   -docdir | --docdir | --docdi | --doc | --do)
825     ac_prev=docdir ;;
826   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827     docdir=$ac_optarg ;;
828
829   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
830     ac_prev=dvidir ;;
831   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832     dvidir=$ac_optarg ;;
833
834   -enable-* | --enable-*)
835     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
836     # Reject names that are not valid shell variable names.
837     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
838       as_fn_error $? "invalid feature name: $ac_useropt"
839     ac_useropt_orig=$ac_useropt
840     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841     case $ac_user_opts in
842       *"
843 "enable_$ac_useropt"
844 "*) ;;
845       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
846          ac_unrecognized_sep=', ';;
847     esac
848     eval enable_$ac_useropt=\$ac_optarg ;;
849
850   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852   | --exec | --exe | --ex)
853     ac_prev=exec_prefix ;;
854   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856   | --exec=* | --exe=* | --ex=*)
857     exec_prefix=$ac_optarg ;;
858
859   -gas | --gas | --ga | --g)
860     # Obsolete; use --with-gas.
861     with_gas=yes ;;
862
863   -help | --help | --hel | --he | -h)
864     ac_init_help=long ;;
865   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866     ac_init_help=recursive ;;
867   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868     ac_init_help=short ;;
869
870   -host | --host | --hos | --ho)
871     ac_prev=host_alias ;;
872   -host=* | --host=* | --hos=* | --ho=*)
873     host_alias=$ac_optarg ;;
874
875   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876     ac_prev=htmldir ;;
877   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878   | --ht=*)
879     htmldir=$ac_optarg ;;
880
881   -includedir | --includedir | --includedi | --included | --include \
882   | --includ | --inclu | --incl | --inc)
883     ac_prev=includedir ;;
884   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885   | --includ=* | --inclu=* | --incl=* | --inc=*)
886     includedir=$ac_optarg ;;
887
888   -infodir | --infodir | --infodi | --infod | --info | --inf)
889     ac_prev=infodir ;;
890   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891     infodir=$ac_optarg ;;
892
893   -libdir | --libdir | --libdi | --libd)
894     ac_prev=libdir ;;
895   -libdir=* | --libdir=* | --libdi=* | --libd=*)
896     libdir=$ac_optarg ;;
897
898   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899   | --libexe | --libex | --libe)
900     ac_prev=libexecdir ;;
901   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902   | --libexe=* | --libex=* | --libe=*)
903     libexecdir=$ac_optarg ;;
904
905   -localedir | --localedir | --localedi | --localed | --locale)
906     ac_prev=localedir ;;
907   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908     localedir=$ac_optarg ;;
909
910   -localstatedir | --localstatedir | --localstatedi | --localstated \
911   | --localstate | --localstat | --localsta | --localst | --locals)
912     ac_prev=localstatedir ;;
913   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915     localstatedir=$ac_optarg ;;
916
917   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918     ac_prev=mandir ;;
919   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920     mandir=$ac_optarg ;;
921
922   -nfp | --nfp | --nf)
923     # Obsolete; use --without-fp.
924     with_fp=no ;;
925
926   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927   | --no-cr | --no-c | -n)
928     no_create=yes ;;
929
930   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932     no_recursion=yes ;;
933
934   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936   | --oldin | --oldi | --old | --ol | --o)
937     ac_prev=oldincludedir ;;
938   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941     oldincludedir=$ac_optarg ;;
942
943   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944     ac_prev=prefix ;;
945   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946     prefix=$ac_optarg ;;
947
948   -program-prefix | --program-prefix | --program-prefi | --program-pref \
949   | --program-pre | --program-pr | --program-p)
950     ac_prev=program_prefix ;;
951   -program-prefix=* | --program-prefix=* | --program-prefi=* \
952   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953     program_prefix=$ac_optarg ;;
954
955   -program-suffix | --program-suffix | --program-suffi | --program-suff \
956   | --program-suf | --program-su | --program-s)
957     ac_prev=program_suffix ;;
958   -program-suffix=* | --program-suffix=* | --program-suffi=* \
959   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960     program_suffix=$ac_optarg ;;
961
962   -program-transform-name | --program-transform-name \
963   | --program-transform-nam | --program-transform-na \
964   | --program-transform-n | --program-transform- \
965   | --program-transform | --program-transfor \
966   | --program-transfo | --program-transf \
967   | --program-trans | --program-tran \
968   | --progr-tra | --program-tr | --program-t)
969     ac_prev=program_transform_name ;;
970   -program-transform-name=* | --program-transform-name=* \
971   | --program-transform-nam=* | --program-transform-na=* \
972   | --program-transform-n=* | --program-transform-=* \
973   | --program-transform=* | --program-transfor=* \
974   | --program-transfo=* | --program-transf=* \
975   | --program-trans=* | --program-tran=* \
976   | --progr-tra=* | --program-tr=* | --program-t=*)
977     program_transform_name=$ac_optarg ;;
978
979   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980     ac_prev=pdfdir ;;
981   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982     pdfdir=$ac_optarg ;;
983
984   -psdir | --psdir | --psdi | --psd | --ps)
985     ac_prev=psdir ;;
986   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987     psdir=$ac_optarg ;;
988
989   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990   | -silent | --silent | --silen | --sile | --sil)
991     silent=yes ;;
992
993   -runstatedir | --runstatedir | --runstatedi | --runstated \
994   | --runstate | --runstat | --runsta | --runst | --runs \
995   | --run | --ru | --r)
996     ac_prev=runstatedir ;;
997   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
998   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
999   | --run=* | --ru=* | --r=*)
1000     runstatedir=$ac_optarg ;;
1001
1002   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003     ac_prev=sbindir ;;
1004   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005   | --sbi=* | --sb=*)
1006     sbindir=$ac_optarg ;;
1007
1008   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010   | --sharedst | --shareds | --shared | --share | --shar \
1011   | --sha | --sh)
1012     ac_prev=sharedstatedir ;;
1013   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016   | --sha=* | --sh=*)
1017     sharedstatedir=$ac_optarg ;;
1018
1019   -site | --site | --sit)
1020     ac_prev=site ;;
1021   -site=* | --site=* | --sit=*)
1022     site=$ac_optarg ;;
1023
1024   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025     ac_prev=srcdir ;;
1026   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027     srcdir=$ac_optarg ;;
1028
1029   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030   | --syscon | --sysco | --sysc | --sys | --sy)
1031     ac_prev=sysconfdir ;;
1032   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034     sysconfdir=$ac_optarg ;;
1035
1036   -target | --target | --targe | --targ | --tar | --ta | --t)
1037     ac_prev=target_alias ;;
1038   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039     target_alias=$ac_optarg ;;
1040
1041   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042     verbose=yes ;;
1043
1044   -version | --version | --versio | --versi | --vers | -V)
1045     ac_init_version=: ;;
1046
1047   -with-* | --with-*)
1048     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051       as_fn_error $? "invalid package name: $ac_useropt"
1052     ac_useropt_orig=$ac_useropt
1053     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054     case $ac_user_opts in
1055       *"
1056 "with_$ac_useropt"
1057 "*) ;;
1058       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1059          ac_unrecognized_sep=', ';;
1060     esac
1061     eval with_$ac_useropt=\$ac_optarg ;;
1062
1063   -without-* | --without-*)
1064     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067       as_fn_error $? "invalid package name: $ac_useropt"
1068     ac_useropt_orig=$ac_useropt
1069     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070     case $ac_user_opts in
1071       *"
1072 "with_$ac_useropt"
1073 "*) ;;
1074       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1075          ac_unrecognized_sep=', ';;
1076     esac
1077     eval with_$ac_useropt=no ;;
1078
1079   --x)
1080     # Obsolete; use --with-x.
1081     with_x=yes ;;
1082
1083   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084   | --x-incl | --x-inc | --x-in | --x-i)
1085     ac_prev=x_includes ;;
1086   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088     x_includes=$ac_optarg ;;
1089
1090   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092     ac_prev=x_libraries ;;
1093   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095     x_libraries=$ac_optarg ;;
1096
1097   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1098 Try \`$0 --help' for more information"
1099     ;;
1100
1101   *=*)
1102     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103     # Reject names that are not valid shell variable names.
1104     case $ac_envvar in #(
1105       '' | [0-9]* | *[!_$as_cr_alnum]* )
1106       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1107     esac
1108     eval $ac_envvar=\$ac_optarg
1109     export $ac_envvar ;;
1110
1111   *)
1112     # FIXME: should be removed in autoconf 3.0.
1113     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1117     ;;
1118
1119   esac
1120 done
1121
1122 if test -n "$ac_prev"; then
1123   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124   as_fn_error $? "missing argument to $ac_option"
1125 fi
1126
1127 if test -n "$ac_unrecognized_opts"; then
1128   case $enable_option_checking in
1129     no) ;;
1130     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1131     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1132   esac
1133 fi
1134
1135 # Check all directory arguments for consistency.
1136 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137                 datadir sysconfdir sharedstatedir localstatedir includedir \
1138                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139                 libdir localedir mandir runstatedir
1140 do
1141   eval ac_val=\$$ac_var
1142   # Remove trailing slashes.
1143   case $ac_val in
1144     */ )
1145       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1146       eval $ac_var=\$ac_val;;
1147   esac
1148   # Be sure to have absolute directory names.
1149   case $ac_val in
1150     [\\/$]* | ?:[\\/]* )  continue;;
1151     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152   esac
1153   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1154 done
1155
1156 # There might be people who depend on the old broken behavior: `$host'
1157 # used to hold the argument of --host etc.
1158 # FIXME: To remove some day.
1159 build=$build_alias
1160 host=$host_alias
1161 target=$target_alias
1162
1163 # FIXME: To remove some day.
1164 if test "x$host_alias" != x; then
1165   if test "x$build_alias" = x; then
1166     cross_compiling=maybe
1167   elif test "x$build_alias" != "x$host_alias"; then
1168     cross_compiling=yes
1169   fi
1170 fi
1171
1172 ac_tool_prefix=
1173 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174
1175 test "$silent" = yes && exec 6>/dev/null
1176
1177
1178 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1179 ac_ls_di=`ls -di .` &&
1180 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1181   as_fn_error $? "working directory cannot be determined"
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183   as_fn_error $? "pwd does not report name of working directory"
1184
1185
1186 # Find the source files, if location was not specified.
1187 if test -z "$srcdir"; then
1188   ac_srcdir_defaulted=yes
1189   # Try the directory containing this script, then the parent directory.
1190   ac_confdir=`$as_dirname -- "$as_myself" ||
1191 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192          X"$as_myself" : 'X\(//\)[^/]' \| \
1193          X"$as_myself" : 'X\(//\)$' \| \
1194          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1195 $as_echo X"$as_myself" |
1196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197             s//\1/
1198             q
1199           }
1200           /^X\(\/\/\)[^/].*/{
1201             s//\1/
1202             q
1203           }
1204           /^X\(\/\/\)$/{
1205             s//\1/
1206             q
1207           }
1208           /^X\(\/\).*/{
1209             s//\1/
1210             q
1211           }
1212           s/.*/./; q'`
1213   srcdir=$ac_confdir
1214   if test ! -r "$srcdir/$ac_unique_file"; then
1215     srcdir=..
1216   fi
1217 else
1218   ac_srcdir_defaulted=no
1219 fi
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1222   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1223 fi
1224 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 ac_abs_confdir=`(
1226         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1227         pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230   srcdir=.
1231 fi
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240   eval ac_env_${ac_var}_value=\$${ac_var}
1241   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1244
1245 #
1246 # Report the --help message.
1247 #
1248 if test "$ac_init_help" = "long"; then
1249   # Omit some internal or obsolete options to make the list less imposing.
1250   # This message is too long to be a string in the A/UX 3.1 sh.
1251   cat <<_ACEOF
1252 \`configure' configures masstree-beta 0.1 to adapt to many kinds of systems.
1253
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1255
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE.  See below for descriptions of some of the useful variables.
1258
1259 Defaults for the options are specified in brackets.
1260
1261 Configuration:
1262   -h, --help              display this help and exit
1263       --help=short        display options specific to this package
1264       --help=recursive    display the short help of all the included packages
1265   -V, --version           display version information and exit
1266   -q, --quiet, --silent   do not print \`checking ...' messages
1267       --cache-file=FILE   cache test results in FILE [disabled]
1268   -C, --config-cache      alias for \`--cache-file=config.cache'
1269   -n, --no-create         do not create output files
1270       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1271
1272 Installation directories:
1273   --prefix=PREFIX         install architecture-independent files in PREFIX
1274                           [$ac_default_prefix]
1275   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1276                           [PREFIX]
1277
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1282
1283 For better control, use the options below.
1284
1285 Fine tuning of the installation directories:
1286   --bindir=DIR            user executables [EPREFIX/bin]
1287   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1288   --libexecdir=DIR        program executables [EPREFIX/libexec]
1289   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1290   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1291   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1292   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1293   --libdir=DIR            object code libraries [EPREFIX/lib]
1294   --includedir=DIR        C header files [PREFIX/include]
1295   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1296   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1297   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1298   --infodir=DIR           info documentation [DATAROOTDIR/info]
1299   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1300   --mandir=DIR            man documentation [DATAROOTDIR/man]
1301   --docdir=DIR            documentation root [DATAROOTDIR/doc/masstree-beta]
1302   --htmldir=DIR           html documentation [DOCDIR]
1303   --dvidir=DIR            dvi documentation [DOCDIR]
1304   --pdfdir=DIR            pdf documentation [DOCDIR]
1305   --psdir=DIR             ps documentation [DOCDIR]
1306 _ACEOF
1307
1308   cat <<\_ACEOF
1309 _ACEOF
1310 fi
1311
1312 if test -n "$ac_init_help"; then
1313   case $ac_init_help in
1314      short | recursive ) echo "Configuration of masstree-beta 0.1:";;
1315    esac
1316   cat <<\_ACEOF
1317
1318 Optional Features:
1319   --disable-option-checking  ignore unrecognized --enable/--with options
1320   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1321   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1322   --enable-row-type=ARG   row type: bag array array_ver str, default bag
1323   --enable-max-key-len=ARG
1324                           maximum length of a key in bytes, default 255
1325   --disable-superpage     disable superpage support
1326   --enable-memdebug       enable memory debugging
1327
1328   --disable-assertions    disable debugging assertions
1329   --disable-preconditions disable precondition assertions
1330   --disable-invariants    disable invariant assertions
1331
1332 Optional Packages:
1333   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1334   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1335   --with-malloc=TYPE      memory allocator
1336                           (malloc|jemalloc|tcmalloc|hoard|flow)
1337
1338 Some influential environment variables:
1339   CC          C compiler command
1340   CFLAGS      C compiler flags
1341   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1342               nonstandard directory <lib dir>
1343   LIBS        libraries to pass to the linker, e.g. -l<library>
1344   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1345               you have headers in a nonstandard directory <include dir>
1346   CXX         C++ compiler command
1347   CXXFLAGS    C++ compiler flags
1348   CXXCPP      C++ preprocessor
1349
1350 Use these variables to override the choices made by `configure' or to help
1351 it to find libraries and programs with nonstandard names/locations.
1352
1353 Report bugs to the package provider.
1354 _ACEOF
1355 ac_status=$?
1356 fi
1357
1358 if test "$ac_init_help" = "recursive"; then
1359   # If there are subdirs, report their specific --help.
1360   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1361     test -d "$ac_dir" ||
1362       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1363       continue
1364     ac_builddir=.
1365
1366 case "$ac_dir" in
1367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368 *)
1369   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1370   # A ".." for each directory in $ac_dir_suffix.
1371   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1372   case $ac_top_builddir_sub in
1373   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375   esac ;;
1376 esac
1377 ac_abs_top_builddir=$ac_pwd
1378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379 # for backward compatibility:
1380 ac_top_builddir=$ac_top_build_prefix
1381
1382 case $srcdir in
1383   .)  # We are building in place.
1384     ac_srcdir=.
1385     ac_top_srcdir=$ac_top_builddir_sub
1386     ac_abs_top_srcdir=$ac_pwd ;;
1387   [\\/]* | ?:[\\/]* )  # Absolute name.
1388     ac_srcdir=$srcdir$ac_dir_suffix;
1389     ac_top_srcdir=$srcdir
1390     ac_abs_top_srcdir=$srcdir ;;
1391   *) # Relative name.
1392     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393     ac_top_srcdir=$ac_top_build_prefix$srcdir
1394     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1395 esac
1396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1397
1398     cd "$ac_dir" || { ac_status=$?; continue; }
1399     # Check for guested configure.
1400     if test -f "$ac_srcdir/configure.gnu"; then
1401       echo &&
1402       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403     elif test -f "$ac_srcdir/configure"; then
1404       echo &&
1405       $SHELL "$ac_srcdir/configure" --help=recursive
1406     else
1407       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1408     fi || ac_status=$?
1409     cd "$ac_pwd" || { ac_status=$?; break; }
1410   done
1411 fi
1412
1413 test -n "$ac_init_help" && exit $ac_status
1414 if $ac_init_version; then
1415   cat <<\_ACEOF
1416 masstree-beta configure 0.1
1417 generated by GNU Autoconf 2.69
1418
1419 Copyright (C) 2012 Free Software Foundation, Inc.
1420 This configure script is free software; the Free Software Foundation
1421 gives unlimited permission to copy, distribute and modify it.
1422 _ACEOF
1423   exit
1424 fi
1425
1426 ## ------------------------ ##
1427 ## Autoconf initialization. ##
1428 ## ------------------------ ##
1429
1430 # ac_fn_c_try_compile LINENO
1431 # --------------------------
1432 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1433 ac_fn_c_try_compile ()
1434 {
1435   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1436   rm -f conftest.$ac_objext
1437   if { { ac_try="$ac_compile"
1438 case "(($ac_try" in
1439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1440   *) ac_try_echo=$ac_try;;
1441 esac
1442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1443 $as_echo "$ac_try_echo"; } >&5
1444   (eval "$ac_compile") 2>conftest.err
1445   ac_status=$?
1446   if test -s conftest.err; then
1447     grep -v '^ *+' conftest.err >conftest.er1
1448     cat conftest.er1 >&5
1449     mv -f conftest.er1 conftest.err
1450   fi
1451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1452   test $ac_status = 0; } && {
1453          test -z "$ac_c_werror_flag" ||
1454          test ! -s conftest.err
1455        } && test -s conftest.$ac_objext; then :
1456   ac_retval=0
1457 else
1458   $as_echo "$as_me: failed program was:" >&5
1459 sed 's/^/| /' conftest.$ac_ext >&5
1460
1461         ac_retval=1
1462 fi
1463   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464   as_fn_set_status $ac_retval
1465
1466 } # ac_fn_c_try_compile
1467
1468 # ac_fn_cxx_try_compile LINENO
1469 # ----------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_cxx_try_compile ()
1472 {
1473   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474   rm -f conftest.$ac_objext
1475   if { { ac_try="$ac_compile"
1476 case "(($ac_try" in
1477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478   *) ac_try_echo=$ac_try;;
1479 esac
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482   (eval "$ac_compile") 2>conftest.err
1483   ac_status=$?
1484   if test -s conftest.err; then
1485     grep -v '^ *+' conftest.err >conftest.er1
1486     cat conftest.er1 >&5
1487     mv -f conftest.er1 conftest.err
1488   fi
1489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490   test $ac_status = 0; } && {
1491          test -z "$ac_cxx_werror_flag" ||
1492          test ! -s conftest.err
1493        } && test -s conftest.$ac_objext; then :
1494   ac_retval=0
1495 else
1496   $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1498
1499         ac_retval=1
1500 fi
1501   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502   as_fn_set_status $ac_retval
1503
1504 } # ac_fn_cxx_try_compile
1505
1506 # ac_fn_cxx_try_run LINENO
1507 # ------------------------
1508 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1509 # that executables *can* be run.
1510 ac_fn_cxx_try_run ()
1511 {
1512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513   if { { ac_try="$ac_link"
1514 case "(($ac_try" in
1515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516   *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520   (eval "$ac_link") 2>&5
1521   ac_status=$?
1522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1524   { { case "(($ac_try" in
1525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526   *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530   (eval "$ac_try") 2>&5
1531   ac_status=$?
1532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533   test $ac_status = 0; }; }; then :
1534   ac_retval=0
1535 else
1536   $as_echo "$as_me: program exited with status $ac_status" >&5
1537        $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540        ac_retval=$ac_status
1541 fi
1542   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544   as_fn_set_status $ac_retval
1545
1546 } # ac_fn_cxx_try_run
1547
1548 # ac_fn_cxx_try_cpp LINENO
1549 # ------------------------
1550 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_cxx_try_cpp ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   if { { ac_try="$ac_cpp conftest.$ac_ext"
1555 case "(($ac_try" in
1556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557   *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1562   ac_status=$?
1563   if test -s conftest.err; then
1564     grep -v '^ *+' conftest.err >conftest.er1
1565     cat conftest.er1 >&5
1566     mv -f conftest.er1 conftest.err
1567   fi
1568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569   test $ac_status = 0; } > conftest.i && {
1570          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1571          test ! -s conftest.err
1572        }; then :
1573   ac_retval=0
1574 else
1575   $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578     ac_retval=1
1579 fi
1580   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581   as_fn_set_status $ac_retval
1582
1583 } # ac_fn_cxx_try_cpp
1584
1585 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1586 # ---------------------------------------------------------
1587 # Tests whether HEADER exists and can be compiled using the include files in
1588 # INCLUDES, setting the cache variable VAR accordingly.
1589 ac_fn_cxx_check_header_compile ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if eval \${$3+:} false; then :
1595   $as_echo_n "(cached) " >&6
1596 else
1597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h.  */
1599 $4
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_cxx_try_compile "$LINENO"; then :
1603   eval "$3=yes"
1604 else
1605   eval "$3=no"
1606 fi
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 fi
1609 eval ac_res=\$$3
1610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613
1614 } # ac_fn_cxx_check_header_compile
1615
1616 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # ---------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1620 # accordingly.
1621 ac_fn_cxx_check_header_mongrel ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   if eval \${$3+:} false; then :
1625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628   $as_echo_n "(cached) " >&6
1629 fi
1630 eval ac_res=\$$3
1631                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1633 else
1634   # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h.  */
1639 $4
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_cxx_try_compile "$LINENO"; then :
1643   ac_header_compiler=yes
1644 else
1645   ac_header_compiler=no
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1650
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h.  */
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_cxx_try_cpp "$LINENO"; then :
1659   ac_header_preproc=yes
1660 else
1661   ac_header_preproc=no
1662 fi
1663 rm -f conftest.err conftest.i conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1666
1667 # So?  What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1669   yes:no: )
1670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674     ;;
1675   no:yes:* )
1676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686     ;;
1687 esac
1688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if eval \${$3+:} false; then :
1691   $as_echo_n "(cached) " >&6
1692 else
1693   eval "$3=\$ac_header_compiler"
1694 fi
1695 eval ac_res=\$$3
1696                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 fi
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701 } # ac_fn_cxx_check_header_mongrel
1702
1703 # ac_fn_cxx_try_link LINENO
1704 # -------------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_cxx_try_link ()
1707 {
1708   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709   rm -f conftest.$ac_objext conftest$ac_exeext
1710   if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713   *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717   (eval "$ac_link") 2>conftest.err
1718   ac_status=$?
1719   if test -s conftest.err; then
1720     grep -v '^ *+' conftest.err >conftest.er1
1721     cat conftest.er1 >&5
1722     mv -f conftest.er1 conftest.err
1723   fi
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; } && {
1726          test -z "$ac_cxx_werror_flag" ||
1727          test ! -s conftest.err
1728        } && test -s conftest$ac_exeext && {
1729          test "$cross_compiling" = yes ||
1730          test -x conftest$ac_exeext
1731        }; then :
1732   ac_retval=0
1733 else
1734   $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737         ac_retval=1
1738 fi
1739   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741   # interfere with the next link command; also delete a directory that is
1742   # left behind by Apple's compiler.  We do this before executing the actions.
1743   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745   as_fn_set_status $ac_retval
1746
1747 } # ac_fn_cxx_try_link
1748
1749 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1750 # ---------------------------------------------
1751 # Tests whether TYPE exists after having included INCLUDES, setting cache
1752 # variable VAR accordingly.
1753 ac_fn_cxx_check_type ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759   $as_echo_n "(cached) " >&6
1760 else
1761   eval "$3=no"
1762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h.  */
1764 $4
1765 int
1766 main ()
1767 {
1768 if (sizeof ($2))
1769          return 0;
1770   ;
1771   return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_cxx_try_compile "$LINENO"; then :
1775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h.  */
1777 $4
1778 int
1779 main ()
1780 {
1781 if (sizeof (($2)))
1782             return 0;
1783   ;
1784   return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_cxx_try_compile "$LINENO"; then :
1788
1789 else
1790   eval "$3=yes"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_cxx_check_type
1802
1803 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1804 # ----------------------------------------------
1805 # Tries to find the compile-time value of EXPR in a program that includes
1806 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1807 # computed
1808 ac_fn_cxx_compute_int ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   if test "$cross_compiling" = yes; then
1812     # Depending upon the size, compute the lo and hi bounds.
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 $4
1816 int
1817 main ()
1818 {
1819 static int test_array [1 - 2 * !(($2) >= 0)];
1820 test_array [0] = 0;
1821 return test_array [0];
1822
1823   ;
1824   return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_cxx_try_compile "$LINENO"; then :
1828   ac_lo=0 ac_mid=0
1829   while :; do
1830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h.  */
1832 $4
1833 int
1834 main ()
1835 {
1836 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1837 test_array [0] = 0;
1838 return test_array [0];
1839
1840   ;
1841   return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_cxx_try_compile "$LINENO"; then :
1845   ac_hi=$ac_mid; break
1846 else
1847   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1848                         if test $ac_lo -le $ac_mid; then
1849                           ac_lo= ac_hi=
1850                           break
1851                         fi
1852                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855   done
1856 else
1857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h.  */
1859 $4
1860 int
1861 main ()
1862 {
1863 static int test_array [1 - 2 * !(($2) < 0)];
1864 test_array [0] = 0;
1865 return test_array [0];
1866
1867   ;
1868   return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_cxx_try_compile "$LINENO"; then :
1872   ac_hi=-1 ac_mid=-1
1873   while :; do
1874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h.  */
1876 $4
1877 int
1878 main ()
1879 {
1880 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1881 test_array [0] = 0;
1882 return test_array [0];
1883
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_cxx_try_compile "$LINENO"; then :
1889   ac_lo=$ac_mid; break
1890 else
1891   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1892                         if test $ac_mid -le $ac_hi; then
1893                           ac_lo= ac_hi=
1894                           break
1895                         fi
1896                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899   done
1900 else
1901   ac_lo= ac_hi=
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 # Binary search between lo and hi bounds.
1907 while test "x$ac_lo" != "x$ac_hi"; do
1908   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h.  */
1911 $4
1912 int
1913 main ()
1914 {
1915 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1916 test_array [0] = 0;
1917 return test_array [0];
1918
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_cxx_try_compile "$LINENO"; then :
1924   ac_hi=$ac_mid
1925 else
1926   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 done
1930 case $ac_lo in #((
1931 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1932 '') ac_retval=1 ;;
1933 esac
1934   else
1935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 $4
1938 static long int longval () { return $2; }
1939 static unsigned long int ulongval () { return $2; }
1940 #include <stdio.h>
1941 #include <stdlib.h>
1942 int
1943 main ()
1944 {
1945
1946   FILE *f = fopen ("conftest.val", "w");
1947   if (! f)
1948     return 1;
1949   if (($2) < 0)
1950     {
1951       long int i = longval ();
1952       if (i != ($2))
1953         return 1;
1954       fprintf (f, "%ld", i);
1955     }
1956   else
1957     {
1958       unsigned long int i = ulongval ();
1959       if (i != ($2))
1960         return 1;
1961       fprintf (f, "%lu", i);
1962     }
1963   /* Do not output a trailing newline, as this causes \r\n confusion
1964      on some platforms.  */
1965   return ferror (f) || fclose (f) != 0;
1966
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_cxx_try_run "$LINENO"; then :
1972   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1973 else
1974   ac_retval=1
1975 fi
1976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1977   conftest.$ac_objext conftest.beam conftest.$ac_ext
1978 rm -f conftest.val
1979
1980   fi
1981   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982   as_fn_set_status $ac_retval
1983
1984 } # ac_fn_cxx_compute_int
1985
1986 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
1987 # -----------------------------------------------
1988 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1989 # accordingly.
1990 ac_fn_cxx_check_decl ()
1991 {
1992   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993   as_decl_name=`echo $2|sed 's/ *(.*//'`
1994   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1996 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1997 if eval \${$3+:} false; then :
1998   $as_echo_n "(cached) " >&6
1999 else
2000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 #ifndef $as_decl_name
2007 #ifdef __cplusplus
2008   (void) $as_decl_use;
2009 #else
2010   (void) $as_decl_name;
2011 #endif
2012 #endif
2013
2014   ;
2015   return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_cxx_try_compile "$LINENO"; then :
2019   eval "$3=yes"
2020 else
2021   eval "$3=no"
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
2025 eval ac_res=\$$3
2026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029
2030 } # ac_fn_cxx_check_decl
2031
2032 # ac_fn_cxx_check_func LINENO FUNC VAR
2033 # ------------------------------------
2034 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2035 ac_fn_cxx_check_func ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041   $as_echo_n "(cached) " >&6
2042 else
2043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h.  */
2045 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2047 #define $2 innocuous_$2
2048
2049 /* System header to define __stub macros and hopefully few prototypes,
2050     which can conflict with char $2 (); below.
2051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2052     <limits.h> exists even on freestanding compilers.  */
2053
2054 #ifdef __STDC__
2055 # include <limits.h>
2056 #else
2057 # include <assert.h>
2058 #endif
2059
2060 #undef $2
2061
2062 /* Override any GCC internal prototype to avoid an error.
2063    Use char because int might match the return type of a GCC
2064    builtin and then its argument prototype would still apply.  */
2065 #ifdef __cplusplus
2066 extern "C"
2067 #endif
2068 char $2 ();
2069 /* The GNU C library defines this for functions which it implements
2070     to always fail with ENOSYS.  Some functions are actually named
2071     something starting with __ and the normal name is an alias.  */
2072 #if defined __stub_$2 || defined __stub___$2
2073 choke me
2074 #endif
2075
2076 int
2077 main ()
2078 {
2079 return $2 ();
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_cxx_try_link "$LINENO"; then :
2085   eval "$3=yes"
2086 else
2087   eval "$3=no"
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext \
2090     conftest$ac_exeext conftest.$ac_ext
2091 fi
2092 eval ac_res=\$$3
2093                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096
2097 } # ac_fn_cxx_check_func
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2101
2102 It was created by masstree-beta $as_me 0.1, which was
2103 generated by GNU Autoconf 2.69.  Invocation command line was
2104
2105   $ $0 $@
2106
2107 _ACEOF
2108 exec 5>>config.log
2109 {
2110 cat <<_ASUNAME
2111 ## --------- ##
2112 ## Platform. ##
2113 ## --------- ##
2114
2115 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120
2121 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2123
2124 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2125 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2126 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2128 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2129 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2130 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2131
2132 _ASUNAME
2133
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139     $as_echo "PATH: $as_dir"
2140   done
2141 IFS=$as_save_IFS
2142
2143 } >&5
2144
2145 cat >&5 <<_ACEOF
2146
2147
2148 ## ----------- ##
2149 ## Core tests. ##
2150 ## ----------- ##
2151
2152 _ACEOF
2153
2154
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2160 ac_configure_args=
2161 ac_configure_args0=
2162 ac_configure_args1=
2163 ac_must_keep_next=false
2164 for ac_pass in 1 2
2165 do
2166   for ac_arg
2167   do
2168     case $ac_arg in
2169     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171     | -silent | --silent | --silen | --sile | --sil)
2172       continue ;;
2173     *\'*)
2174       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175     esac
2176     case $ac_pass in
2177     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2178     2)
2179       as_fn_append ac_configure_args1 " '$ac_arg'"
2180       if test $ac_must_keep_next = true; then
2181         ac_must_keep_next=false # Got value, back to normal.
2182       else
2183         case $ac_arg in
2184           *=* | --config-cache | -C | -disable-* | --disable-* \
2185           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187           | -with-* | --with-* | -without-* | --without-* | --x)
2188             case "$ac_configure_args0 " in
2189               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190             esac
2191             ;;
2192           -* ) ac_must_keep_next=true ;;
2193         esac
2194       fi
2195       as_fn_append ac_configure_args " '$ac_arg'"
2196       ;;
2197     esac
2198   done
2199 done
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2202
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log.  We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209   # Save into config.log some information that might help in debugging.
2210   {
2211     echo
2212
2213     $as_echo "## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##"
2216     echo
2217     # The following way of writing the cache mishandles newlines in values,
2218 (
2219   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220     eval ac_val=\$$ac_var
2221     case $ac_val in #(
2222     *${as_nl}*)
2223       case $ac_var in #(
2224       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2226       esac
2227       case $ac_var in #(
2228       _ | IFS | as_nl) ;; #(
2229       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230       *) { eval $ac_var=; unset $ac_var;} ;;
2231       esac ;;
2232     esac
2233   done
2234   (set) 2>&1 |
2235     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236     *${as_nl}ac_space=\ *)
2237       sed -n \
2238         "s/'\''/'\''\\\\'\'''\''/g;
2239           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2240       ;; #(
2241     *)
2242       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2243       ;;
2244     esac |
2245     sort
2246 )
2247     echo
2248
2249     $as_echo "## ----------------- ##
2250 ## Output variables. ##
2251 ## ----------------- ##"
2252     echo
2253     for ac_var in $ac_subst_vars
2254     do
2255       eval ac_val=\$$ac_var
2256       case $ac_val in
2257       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258       esac
2259       $as_echo "$ac_var='\''$ac_val'\''"
2260     done | sort
2261     echo
2262
2263     if test -n "$ac_subst_files"; then
2264       $as_echo "## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##"
2267       echo
2268       for ac_var in $ac_subst_files
2269       do
2270         eval ac_val=\$$ac_var
2271         case $ac_val in
2272         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273         esac
2274         $as_echo "$ac_var='\''$ac_val'\''"
2275       done | sort
2276       echo
2277     fi
2278
2279     if test -s confdefs.h; then
2280       $as_echo "## ----------- ##
2281 ## confdefs.h. ##
2282 ## ----------- ##"
2283       echo
2284       cat confdefs.h
2285       echo
2286     fi
2287     test "$ac_signal" != 0 &&
2288       $as_echo "$as_me: caught signal $ac_signal"
2289     $as_echo "$as_me: exit $exit_status"
2290   } >&5
2291   rm -f core *.core core.conftest.* &&
2292     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293     exit $exit_status
2294 ' 0
2295 for ac_signal in 1 2 13 15; do
2296   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2297 done
2298 ac_signal=0
2299
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest* confdefs.h
2302
2303 $as_echo "/* confdefs.h */" > confdefs.h
2304
2305 # Predefined preprocessor variables.
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_NAME "$PACKAGE_NAME"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_STRING "$PACKAGE_STRING"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_URL "$PACKAGE_URL"
2329 _ACEOF
2330
2331
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2334 ac_site_file1=NONE
2335 ac_site_file2=NONE
2336 if test -n "$CONFIG_SITE"; then
2337   # We do not want a PATH search for config.site.
2338   case $CONFIG_SITE in #((
2339     -*)  ac_site_file1=./$CONFIG_SITE;;
2340     */*) ac_site_file1=$CONFIG_SITE;;
2341     *)   ac_site_file1=./$CONFIG_SITE;;
2342   esac
2343 elif test "x$prefix" != xNONE; then
2344   ac_site_file1=$prefix/share/config.site
2345   ac_site_file2=$prefix/etc/config.site
2346 else
2347   ac_site_file1=$ac_default_prefix/share/config.site
2348   ac_site_file2=$ac_default_prefix/etc/config.site
2349 fi
2350 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2351 do
2352   test "x$ac_site_file" = xNONE && continue
2353   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2354     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2355 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356     sed 's/^/| /' "$ac_site_file" >&5
2357     . "$ac_site_file" \
2358       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 as_fn_error $? "failed to load site script $ac_site_file
2361 See \`config.log' for more details" "$LINENO" 5; }
2362   fi
2363 done
2364
2365 if test -r "$cache_file"; then
2366   # Some versions of bash will fail to source /dev/null (special files
2367   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2368   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371     case $cache_file in
2372       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373       *)                      . "./$cache_file";;
2374     esac
2375   fi
2376 else
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379   >$cache_file
2380 fi
2381
2382 # Check that the precious variables saved in the cache have kept the same
2383 # value.
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387   eval ac_new_set=\$ac_env_${ac_var}_set
2388   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389   eval ac_new_val=\$ac_env_${ac_var}_value
2390   case $ac_old_set,$ac_new_set in
2391     set,)
2392       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394       ac_cache_corrupted=: ;;
2395     ,set)
2396       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398       ac_cache_corrupted=: ;;
2399     ,);;
2400     *)
2401       if test "x$ac_old_val" != "x$ac_new_val"; then
2402         # differences in whitespace do not lead to failure.
2403         ac_old_val_w=`echo x $ac_old_val`
2404         ac_new_val_w=`echo x $ac_new_val`
2405         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408           ac_cache_corrupted=:
2409         else
2410           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412           eval $ac_var=\$ac_old_val
2413         fi
2414         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2415 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2416         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2418       fi;;
2419   esac
2420   # Pass precious variables to config.status.
2421   if test "$ac_new_set" = set; then
2422     case $ac_new_val in
2423     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424     *) ac_arg=$ac_var=$ac_new_val ;;
2425     esac
2426     case " $ac_configure_args " in
2427       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2428       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429     esac
2430   fi
2431 done
2432 if $ac_cache_corrupted; then
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2438 fi
2439 ## -------------------- ##
2440 ## Main body of script. ##
2441 ## -------------------- ##
2442
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449
2450
2451 ac_config_headers="$ac_config_headers config.h"
2452
2453 ac_config_files="$ac_config_files GNUmakefile"
2454
2455
2456
2457 ac_user_cxx=${CXX+y}
2458
2459 ac_ext=c
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 if test -n "$ac_tool_prefix"; then
2465   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2466 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_CC+:} false; then :
2470   $as_echo_n "(cached) " >&6
2471 else
2472   if test -n "$CC"; then
2473   ac_cv_prog_CC="$CC" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478   IFS=$as_save_IFS
2479   test -z "$as_dir" && as_dir=.
2480     for ac_exec_ext in '' $ac_executable_extensions; do
2481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484     break 2
2485   fi
2486 done
2487   done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 CC=$ac_cv_prog_CC
2493 if test -n "$CC"; then
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2495 $as_echo "$CC" >&6; }
2496 else
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501
2502 fi
2503 if test -z "$ac_cv_prog_CC"; then
2504   ac_ct_CC=$CC
2505   # Extract the first word of "gcc", so it can be a program name with args.
2506 set dummy gcc; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   if test -n "$ac_ct_CC"; then
2513   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520     for ac_exec_ext in '' $ac_executable_extensions; do
2521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522     ac_cv_prog_ac_ct_CC="gcc"
2523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525   fi
2526 done
2527   done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2535 $as_echo "$ac_ct_CC" >&6; }
2536 else
2537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541   if test "x$ac_ct_CC" = x; then
2542     CC=""
2543   else
2544     case $cross_compiling:$ac_tool_warned in
2545 yes:)
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2548 ac_tool_warned=yes ;;
2549 esac
2550     CC=$ac_ct_CC
2551   fi
2552 else
2553   CC="$ac_cv_prog_CC"
2554 fi
2555
2556 if test -z "$CC"; then
2557           if test -n "$ac_tool_prefix"; then
2558     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}cc; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_CC+:} false; then :
2563   $as_echo_n "(cached) " >&6
2564 else
2565   if test -n "$CC"; then
2566   ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573     for ac_exec_ext in '' $ac_executable_extensions; do
2574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575     ac_cv_prog_CC="${ac_tool_prefix}cc"
2576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580   done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2589 else
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2592 fi
2593
2594
2595   fi
2596 fi
2597 if test -z "$CC"; then
2598   # Extract the first word of "cc", so it can be a program name with args.
2599 set dummy cc; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if ${ac_cv_prog_CC+:} false; then :
2603   $as_echo_n "(cached) " >&6
2604 else
2605   if test -n "$CC"; then
2606   ac_cv_prog_CC="$CC" # Let the user override the test.
2607 else
2608   ac_prog_rejected=no
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614     for ac_exec_ext in '' $ac_executable_extensions; do
2615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2617        ac_prog_rejected=yes
2618        continue
2619      fi
2620     ac_cv_prog_CC="cc"
2621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625   done
2626 IFS=$as_save_IFS
2627
2628 if test $ac_prog_rejected = yes; then
2629   # We found a bogon in the path, so make sure we never use it.
2630   set dummy $ac_cv_prog_CC
2631   shift
2632   if test $# != 0; then
2633     # We chose a different compiler from the bogus one.
2634     # However, it has the same basename, so the bogon will be chosen
2635     # first if we set CC to just the basename; use the full file name.
2636     shift
2637     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2638   fi
2639 fi
2640 fi
2641 fi
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2646 else
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651
2652 fi
2653 if test -z "$CC"; then
2654   if test -n "$ac_tool_prefix"; then
2655   for ac_prog in cl.exe
2656   do
2657     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_CC+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   if test -n "$CC"; then
2665   ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672     for ac_exec_ext in '' $ac_executable_extensions; do
2673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679   done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 CC=$ac_cv_prog_CC
2685 if test -n "$CC"; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2687 $as_echo "$CC" >&6; }
2688 else
2689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694     test -n "$CC" && break
2695   done
2696 fi
2697 if test -z "$CC"; then
2698   ac_ct_CC=$CC
2699   for ac_prog in cl.exe
2700 do
2701   # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy $ac_prog; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2706   $as_echo_n "(cached) " >&6
2707 else
2708   if test -n "$ac_ct_CC"; then
2709   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714   IFS=$as_save_IFS
2715   test -z "$as_dir" && as_dir=.
2716     for ac_exec_ext in '' $ac_executable_extensions; do
2717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718     ac_cv_prog_ac_ct_CC="$ac_prog"
2719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720     break 2
2721   fi
2722 done
2723   done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2729 if test -n "$ac_ct_CC"; then
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2731 $as_echo "$ac_ct_CC" >&6; }
2732 else
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737
2738   test -n "$ac_ct_CC" && break
2739 done
2740
2741   if test "x$ac_ct_CC" = x; then
2742     CC=""
2743   else
2744     case $cross_compiling:$ac_tool_warned in
2745 yes:)
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2748 ac_tool_warned=yes ;;
2749 esac
2750     CC=$ac_ct_CC
2751   fi
2752 fi
2753
2754 fi
2755
2756
2757 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759 as_fn_error $? "no acceptable C compiler found in \$PATH
2760 See \`config.log' for more details" "$LINENO" 5; }
2761
2762 # Provide some information about the compiler.
2763 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2764 set X $ac_compile
2765 ac_compiler=$2
2766 for ac_option in --version -v -V -qversion; do
2767   { { ac_try="$ac_compiler $ac_option >&5"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2775   ac_status=$?
2776   if test -s conftest.err; then
2777     sed '10a\
2778 ... rest of stderr output deleted ...
2779          10q' conftest.err >conftest.er1
2780     cat conftest.er1 >&5
2781   fi
2782   rm -f conftest.er1 conftest.err
2783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2784   test $ac_status = 0; }
2785 done
2786
2787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h.  */
2789
2790 int
2791 main ()
2792 {
2793
2794   ;
2795   return 0;
2796 }
2797 _ACEOF
2798 ac_clean_files_save=$ac_clean_files
2799 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2800 # Try to create an executable without -o first, disregard a.out.
2801 # It will help us diagnose broken compilers, and finding out an intuition
2802 # of exeext.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2804 $as_echo_n "checking whether the C compiler works... " >&6; }
2805 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2806
2807 # The possible output files:
2808 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2809
2810 ac_rmfiles=
2811 for ac_file in $ac_files
2812 do
2813   case $ac_file in
2814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2815     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2816   esac
2817 done
2818 rm -f $ac_rmfiles
2819
2820 if { { ac_try="$ac_link_default"
2821 case "(($ac_try" in
2822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823   *) ac_try_echo=$ac_try;;
2824 esac
2825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826 $as_echo "$ac_try_echo"; } >&5
2827   (eval "$ac_link_default") 2>&5
2828   ac_status=$?
2829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830   test $ac_status = 0; }; then :
2831   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2832 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2833 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2834 # so that the user can short-circuit this test for compilers unknown to
2835 # Autoconf.
2836 for ac_file in $ac_files ''
2837 do
2838   test -f "$ac_file" || continue
2839   case $ac_file in
2840     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2841         ;;
2842     [ab].out )
2843         # We found the default executable, but exeext='' is most
2844         # certainly right.
2845         break;;
2846     *.* )
2847         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2848         then :; else
2849            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850         fi
2851         # We set ac_cv_exeext here because the later test for it is not
2852         # safe: cross compilers may not add the suffix if given an `-o'
2853         # argument, so we may need to know it at that point already.
2854         # Even if this section looks crufty: it has the advantage of
2855         # actually working.
2856         break;;
2857     * )
2858         break;;
2859   esac
2860 done
2861 test "$ac_cv_exeext" = no && ac_cv_exeext=
2862
2863 else
2864   ac_file=''
2865 fi
2866 if test -z "$ac_file"; then :
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 $as_echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error 77 "C compiler cannot create executables
2875 See \`config.log' for more details" "$LINENO" 5; }
2876 else
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878 $as_echo "yes" >&6; }
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2881 $as_echo_n "checking for C compiler default output file name... " >&6; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2883 $as_echo "$ac_file" >&6; }
2884 ac_exeext=$ac_cv_exeext
2885
2886 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2887 ac_clean_files=$ac_clean_files_save
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2889 $as_echo_n "checking for suffix of executables... " >&6; }
2890 if { { ac_try="$ac_link"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 $as_echo "$ac_try_echo"; } >&5
2897   (eval "$ac_link") 2>&5
2898   ac_status=$?
2899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900   test $ac_status = 0; }; then :
2901   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2902 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2903 # work properly (i.e., refer to `conftest.exe'), while it won't with
2904 # `rm'.
2905 for ac_file in conftest.exe conftest conftest.*; do
2906   test -f "$ac_file" || continue
2907   case $ac_file in
2908     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2909     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910           break;;
2911     * ) break;;
2912   esac
2913 done
2914 else
2915   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2918 See \`config.log' for more details" "$LINENO" 5; }
2919 fi
2920 rm -f conftest conftest$ac_cv_exeext
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2922 $as_echo "$ac_cv_exeext" >&6; }
2923
2924 rm -f conftest.$ac_ext
2925 EXEEXT=$ac_cv_exeext
2926 ac_exeext=$EXEEXT
2927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2928 /* end confdefs.h.  */
2929 #include <stdio.h>
2930 int
2931 main ()
2932 {
2933 FILE *f = fopen ("conftest.out", "w");
2934  return ferror (f) || fclose (f) != 0;
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 ac_clean_files="$ac_clean_files conftest.out"
2941 # Check that the compiler produces executables we can run.  If not, either
2942 # the compiler is broken, or we cross compile.
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2944 $as_echo_n "checking whether we are cross compiling... " >&6; }
2945 if test "$cross_compiling" != yes; then
2946   { { ac_try="$ac_link"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953   (eval "$ac_link") 2>&5
2954   ac_status=$?
2955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2956   test $ac_status = 0; }
2957   if { ac_try='./conftest$ac_cv_exeext'
2958   { { case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 $as_echo "$ac_try_echo"; } >&5
2964   (eval "$ac_try") 2>&5
2965   ac_status=$?
2966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967   test $ac_status = 0; }; }; then
2968     cross_compiling=no
2969   else
2970     if test "$cross_compiling" = maybe; then
2971         cross_compiling=yes
2972     else
2973         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 as_fn_error $? "cannot run C compiled programs.
2976 If you meant to cross compile, use \`--host'.
2977 See \`config.log' for more details" "$LINENO" 5; }
2978     fi
2979   fi
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2982 $as_echo "$cross_compiling" >&6; }
2983
2984 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2985 ac_clean_files=$ac_clean_files_save
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2987 $as_echo_n "checking for suffix of object files... " >&6; }
2988 if ${ac_cv_objext+:} false; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.o conftest.obj
3003 if { { ac_try="$ac_compile"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010   (eval "$ac_compile") 2>&5
3011   ac_status=$?
3012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013   test $ac_status = 0; }; then :
3014   for ac_file in conftest.o conftest.obj conftest.*; do
3015   test -f "$ac_file" || continue;
3016   case $ac_file in
3017     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3018     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3019        break;;
3020   esac
3021 done
3022 else
3023   $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error $? "cannot compute suffix of object files: cannot compile
3029 See \`config.log' for more details" "$LINENO" 5; }
3030 fi
3031 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3032 fi
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3034 $as_echo "$ac_cv_objext" >&6; }
3035 OBJEXT=$ac_cv_objext
3036 ac_objext=$OBJEXT
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3038 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3039 if ${ac_cv_c_compiler_gnu+:} false; then :
3040   $as_echo_n "(cached) " >&6
3041 else
3042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h.  */
3044
3045 int
3046 main ()
3047 {
3048 #ifndef __GNUC__
3049        choke me
3050 #endif
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 if ac_fn_c_try_compile "$LINENO"; then :
3057   ac_compiler_gnu=yes
3058 else
3059   ac_compiler_gnu=no
3060 fi
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3063
3064 fi
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3066 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3067 if test $ac_compiler_gnu = yes; then
3068   GCC=yes
3069 else
3070   GCC=
3071 fi
3072 ac_test_CFLAGS=${CFLAGS+set}
3073 ac_save_CFLAGS=$CFLAGS
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3075 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3076 if ${ac_cv_prog_cc_g+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   ac_save_c_werror_flag=$ac_c_werror_flag
3080    ac_c_werror_flag=yes
3081    ac_cv_prog_cc_g=no
3082    CFLAGS="-g"
3083    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 if ac_fn_c_try_compile "$LINENO"; then :
3095   ac_cv_prog_cc_g=yes
3096 else
3097   CFLAGS=""
3098       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h.  */
3100
3101 int
3102 main ()
3103 {
3104
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 if ac_fn_c_try_compile "$LINENO"; then :
3110
3111 else
3112   ac_c_werror_flag=$ac_save_c_werror_flag
3113          CFLAGS="-g"
3114          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126   ac_cv_prog_cc_g=yes
3127 fi
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 fi
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 fi
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133    ac_c_werror_flag=$ac_save_c_werror_flag
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3136 $as_echo "$ac_cv_prog_cc_g" >&6; }
3137 if test "$ac_test_CFLAGS" = set; then
3138   CFLAGS=$ac_save_CFLAGS
3139 elif test $ac_cv_prog_cc_g = yes; then
3140   if test "$GCC" = yes; then
3141     CFLAGS="-g -O2"
3142   else
3143     CFLAGS="-g"
3144   fi
3145 else
3146   if test "$GCC" = yes; then
3147     CFLAGS="-O2"
3148   else
3149     CFLAGS=
3150   fi
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3153 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3154 if ${ac_cv_prog_cc_c89+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   ac_cv_prog_cc_c89=no
3158 ac_save_CC=$CC
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h.  */
3161 #include <stdarg.h>
3162 #include <stdio.h>
3163 struct stat;
3164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3165 struct buf { int x; };
3166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3167 static char *e (p, i)
3168      char **p;
3169      int i;
3170 {
3171   return p[i];
3172 }
3173 static char *f (char * (*g) (char **, int), char **p, ...)
3174 {
3175   char *s;
3176   va_list v;
3177   va_start (v,p);
3178   s = g (p, va_arg (v,int));
3179   va_end (v);
3180   return s;
3181 }
3182
3183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3184    function prototypes and stuff, but not '\xHH' hex character constants.
3185    These don't provoke an error unfortunately, instead are silently treated
3186    as 'x'.  The following induces an error, until -std is added to get
3187    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3188    array size at least.  It's necessary to write '\x00'==0 to get something
3189    that's true only with -std.  */
3190 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3191
3192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3193    inside strings and character constants.  */
3194 #define FOO(x) 'x'
3195 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3196
3197 int test (int i, double x);
3198 struct s1 {int (*f) (int a);};
3199 struct s2 {int (*f) (double a);};
3200 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3201 int argc;
3202 char **argv;
3203 int
3204 main ()
3205 {
3206 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3207   ;
3208   return 0;
3209 }
3210 _ACEOF
3211 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3212         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3213 do
3214   CC="$ac_save_CC $ac_arg"
3215   if ac_fn_c_try_compile "$LINENO"; then :
3216   ac_cv_prog_cc_c89=$ac_arg
3217 fi
3218 rm -f core conftest.err conftest.$ac_objext
3219   test "x$ac_cv_prog_cc_c89" != "xno" && break
3220 done
3221 rm -f conftest.$ac_ext
3222 CC=$ac_save_CC
3223
3224 fi
3225 # AC_CACHE_VAL
3226 case "x$ac_cv_prog_cc_c89" in
3227   x)
3228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3229 $as_echo "none needed" >&6; } ;;
3230   xno)
3231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3232 $as_echo "unsupported" >&6; } ;;
3233   *)
3234     CC="$CC $ac_cv_prog_cc_c89"
3235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3236 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3237 esac
3238 if test "x$ac_cv_prog_cc_c89" != xno; then :
3239
3240 fi
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247
3248 ac_ext=cpp
3249 ac_cpp='$CXXCPP $CPPFLAGS'
3250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3253 if test -z "$CXX"; then
3254   if test -n "$CCC"; then
3255     CXX=$CCC
3256   else
3257     if test -n "$ac_tool_prefix"; then
3258   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3259   do
3260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if ${ac_cv_prog_CXX+:} false; then :
3265   $as_echo_n "(cached) " >&6
3266 else
3267   if test -n "$CXX"; then
3268   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275     for ac_exec_ext in '' $ac_executable_extensions; do
3276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282   done
3283 IFS=$as_save_IFS
3284
3285 fi
3286 fi
3287 CXX=$ac_cv_prog_CXX
3288 if test -n "$CXX"; then
3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3290 $as_echo "$CXX" >&6; }
3291 else
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 fi
3295
3296
3297     test -n "$CXX" && break
3298   done
3299 fi
3300 if test -z "$CXX"; then
3301   ac_ct_CXX=$CXX
3302   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3303 do
3304   # Extract the first word of "$ac_prog", so it can be a program name with args.
3305 set dummy $ac_prog; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test -n "$ac_ct_CXX"; then
3312   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319     for ac_exec_ext in '' $ac_executable_extensions; do
3320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321     ac_cv_prog_ac_ct_CXX="$ac_prog"
3322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326   done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3332 if test -n "$ac_ct_CXX"; then
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3334 $as_echo "$ac_ct_CXX" >&6; }
3335 else
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341   test -n "$ac_ct_CXX" && break
3342 done
3343
3344   if test "x$ac_ct_CXX" = x; then
3345     CXX="g++"
3346   else
3347     case $cross_compiling:$ac_tool_warned in
3348 yes:)
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3351 ac_tool_warned=yes ;;
3352 esac
3353     CXX=$ac_ct_CXX
3354   fi
3355 fi
3356
3357   fi
3358 fi
3359 # Provide some information about the compiler.
3360 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3361 set X $ac_compile
3362 ac_compiler=$2
3363 for ac_option in --version -v -V -qversion; do
3364   { { ac_try="$ac_compiler $ac_option >&5"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3372   ac_status=$?
3373   if test -s conftest.err; then
3374     sed '10a\
3375 ... rest of stderr output deleted ...
3376          10q' conftest.err >conftest.er1
3377     cat conftest.er1 >&5
3378   fi
3379   rm -f conftest.er1 conftest.err
3380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381   test $ac_status = 0; }
3382 done
3383
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3385 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3386 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3387   $as_echo_n "(cached) " >&6
3388 else
3389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395 #ifndef __GNUC__
3396        choke me
3397 #endif
3398
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
3403 if ac_fn_cxx_try_compile "$LINENO"; then :
3404   ac_compiler_gnu=yes
3405 else
3406   ac_compiler_gnu=no
3407 fi
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3410
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3413 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3414 if test $ac_compiler_gnu = yes; then
3415   GXX=yes
3416 else
3417   GXX=
3418 fi
3419 ac_test_CXXFLAGS=${CXXFLAGS+set}
3420 ac_save_CXXFLAGS=$CXXFLAGS
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3422 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3423 if ${ac_cv_prog_cxx_g+:} false; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3427    ac_cxx_werror_flag=yes
3428    ac_cv_prog_cxx_g=no
3429    CXXFLAGS="-g"
3430    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_cxx_try_compile "$LINENO"; then :
3442   ac_cv_prog_cxx_g=yes
3443 else
3444   CXXFLAGS=""
3445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 if ac_fn_cxx_try_compile "$LINENO"; then :
3457
3458 else
3459   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3460          CXXFLAGS="-g"
3461          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h.  */
3463
3464 int
3465 main ()
3466 {
3467
3468   ;
3469   return 0;
3470 }
3471 _ACEOF
3472 if ac_fn_cxx_try_compile "$LINENO"; then :
3473   ac_cv_prog_cxx_g=yes
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3483 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3484 if test "$ac_test_CXXFLAGS" = set; then
3485   CXXFLAGS=$ac_save_CXXFLAGS
3486 elif test $ac_cv_prog_cxx_g = yes; then
3487   if test "$GXX" = yes; then
3488     CXXFLAGS="-g -O2"
3489   else
3490     CXXFLAGS="-g"
3491   fi
3492 else
3493   if test "$GXX" = yes; then
3494     CXXFLAGS="-O2"
3495   else
3496     CXXFLAGS=
3497   fi
3498 fi
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504
3505 ac_ext=cpp
3506 ac_cpp='$CXXCPP $CPPFLAGS'
3507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3510
3511
3512
3513 $as_echo "#define WORDS_BIGENDIAN_SET 1" >>confdefs.h
3514
3515
3516 ac_ext=cpp
3517 ac_cpp='$CXXCPP $CPPFLAGS'
3518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3522 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3523 if test -z "$CXXCPP"; then
3524   if ${ac_cv_prog_CXXCPP+:} false; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527       # Double quotes because CXXCPP needs to be expanded
3528     for CXXCPP in "$CXX -E" "/lib/cpp"
3529     do
3530       ac_preproc_ok=false
3531 for ac_cxx_preproc_warn_flag in '' yes
3532 do
3533   # Use a header file that comes with gcc, so configuring glibc
3534   # with a fresh cross-compiler works.
3535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536   # <limits.h> exists even on freestanding compilers.
3537   # On the NeXT, cc -E runs the code through the compiler's parser,
3538   # not just through cpp. "Syntax error" is here to catch this case.
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541 #ifdef __STDC__
3542 # include <limits.h>
3543 #else
3544 # include <assert.h>
3545 #endif
3546                      Syntax error
3547 _ACEOF
3548 if ac_fn_cxx_try_cpp "$LINENO"; then :
3549
3550 else
3551   # Broken: fails on valid input.
3552 continue
3553 fi
3554 rm -f conftest.err conftest.i conftest.$ac_ext
3555
3556   # OK, works on sane cases.  Now check whether nonexistent headers
3557   # can be detected and how.
3558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560 #include <ac_nonexistent.h>
3561 _ACEOF
3562 if ac_fn_cxx_try_cpp "$LINENO"; then :
3563   # Broken: success on invalid input.
3564 continue
3565 else
3566   # Passes both tests.
3567 ac_preproc_ok=:
3568 break
3569 fi
3570 rm -f conftest.err conftest.i conftest.$ac_ext
3571
3572 done
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.i conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then :
3576   break
3577 fi
3578
3579     done
3580     ac_cv_prog_CXXCPP=$CXXCPP
3581
3582 fi
3583   CXXCPP=$ac_cv_prog_CXXCPP
3584 else
3585   ac_cv_prog_CXXCPP=$CXXCPP
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3588 $as_echo "$CXXCPP" >&6; }
3589 ac_preproc_ok=false
3590 for ac_cxx_preproc_warn_flag in '' yes
3591 do
3592   # Use a header file that comes with gcc, so configuring glibc
3593   # with a fresh cross-compiler works.
3594   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595   # <limits.h> exists even on freestanding compilers.
3596   # On the NeXT, cc -E runs the code through the compiler's parser,
3597   # not just through cpp. "Syntax error" is here to catch this case.
3598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h.  */
3600 #ifdef __STDC__
3601 # include <limits.h>
3602 #else
3603 # include <assert.h>
3604 #endif
3605                      Syntax error
3606 _ACEOF
3607 if ac_fn_cxx_try_cpp "$LINENO"; then :
3608
3609 else
3610   # Broken: fails on valid input.
3611 continue
3612 fi
3613 rm -f conftest.err conftest.i conftest.$ac_ext
3614
3615   # OK, works on sane cases.  Now check whether nonexistent headers
3616   # can be detected and how.
3617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619 #include <ac_nonexistent.h>
3620 _ACEOF
3621 if ac_fn_cxx_try_cpp "$LINENO"; then :
3622   # Broken: success on invalid input.
3623 continue
3624 else
3625   # Passes both tests.
3626 ac_preproc_ok=:
3627 break
3628 fi
3629 rm -f conftest.err conftest.i conftest.$ac_ext
3630
3631 done
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.i conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then :
3635
3636 else
3637   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3640 See \`config.log' for more details" "$LINENO" 5; }
3641 fi
3642
3643 ac_ext=cpp
3644 ac_cpp='$CXXCPP $CPPFLAGS'
3645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3648
3649
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3651 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3652 if ${ac_cv_path_GREP+:} false; then :
3653   $as_echo_n "(cached) " >&6
3654 else
3655   if test -z "$GREP"; then
3656   ac_path_GREP_found=false
3657   # Loop through the user's path and test for each of PROGNAME-LIST
3658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3660 do
3661   IFS=$as_save_IFS
3662   test -z "$as_dir" && as_dir=.
3663     for ac_prog in grep ggrep; do
3664     for ac_exec_ext in '' $ac_executable_extensions; do
3665       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666       as_fn_executable_p "$ac_path_GREP" || continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
3668   # Check for GNU $ac_path_GREP
3669 case `"$ac_path_GREP" --version 2>&1` in
3670 *GNU*)
3671   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3672 *)
3673   ac_count=0
3674   $as_echo_n 0123456789 >"conftest.in"
3675   while :
3676   do
3677     cat "conftest.in" "conftest.in" >"conftest.tmp"
3678     mv "conftest.tmp" "conftest.in"
3679     cp "conftest.in" "conftest.nl"
3680     $as_echo 'GREP' >> "conftest.nl"
3681     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3683     as_fn_arith $ac_count + 1 && ac_count=$as_val
3684     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685       # Best one so far, save it but keep looking for a better one
3686       ac_cv_path_GREP="$ac_path_GREP"
3687       ac_path_GREP_max=$ac_count
3688     fi
3689     # 10*(2^10) chars as input seems more than enough
3690     test $ac_count -gt 10 && break
3691   done
3692   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3693 esac
3694
3695       $ac_path_GREP_found && break 3
3696     done
3697   done
3698   done
3699 IFS=$as_save_IFS
3700   if test -z "$ac_cv_path_GREP"; then
3701     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3702   fi
3703 else
3704   ac_cv_path_GREP=$GREP
3705 fi
3706
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3709 $as_echo "$ac_cv_path_GREP" >&6; }
3710  GREP="$ac_cv_path_GREP"
3711
3712
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3714 $as_echo_n "checking for egrep... " >&6; }
3715 if ${ac_cv_path_EGREP+:} false; then :
3716   $as_echo_n "(cached) " >&6
3717 else
3718   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3719    then ac_cv_path_EGREP="$GREP -E"
3720    else
3721      if test -z "$EGREP"; then
3722   ac_path_EGREP_found=false
3723   # Loop through the user's path and test for each of PROGNAME-LIST
3724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729     for ac_prog in egrep; do
3730     for ac_exec_ext in '' $ac_executable_extensions; do
3731       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3732       as_fn_executable_p "$ac_path_EGREP" || continue
3733 # Check for GNU ac_path_EGREP and select it if it is found.
3734   # Check for GNU $ac_path_EGREP
3735 case `"$ac_path_EGREP" --version 2>&1` in
3736 *GNU*)
3737   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3738 *)
3739   ac_count=0
3740   $as_echo_n 0123456789 >"conftest.in"
3741   while :
3742   do
3743     cat "conftest.in" "conftest.in" >"conftest.tmp"
3744     mv "conftest.tmp" "conftest.in"
3745     cp "conftest.in" "conftest.nl"
3746     $as_echo 'EGREP' >> "conftest.nl"
3747     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749     as_fn_arith $ac_count + 1 && ac_count=$as_val
3750     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3751       # Best one so far, save it but keep looking for a better one
3752       ac_cv_path_EGREP="$ac_path_EGREP"
3753       ac_path_EGREP_max=$ac_count
3754     fi
3755     # 10*(2^10) chars as input seems more than enough
3756     test $ac_count -gt 10 && break
3757   done
3758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759 esac
3760
3761       $ac_path_EGREP_found && break 3
3762     done
3763   done
3764   done
3765 IFS=$as_save_IFS
3766   if test -z "$ac_cv_path_EGREP"; then
3767     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3768   fi
3769 else
3770   ac_cv_path_EGREP=$EGREP
3771 fi
3772
3773    fi
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3776 $as_echo "$ac_cv_path_EGREP" >&6; }
3777  EGREP="$ac_cv_path_EGREP"
3778
3779
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3781 $as_echo_n "checking for ANSI C header files... " >&6; }
3782 if ${ac_cv_header_stdc+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787 #include <stdlib.h>
3788 #include <stdarg.h>
3789 #include <string.h>
3790 #include <float.h>
3791
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_cxx_try_compile "$LINENO"; then :
3801   ac_cv_header_stdc=yes
3802 else
3803   ac_cv_header_stdc=no
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806
3807 if test $ac_cv_header_stdc = yes; then
3808   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811 #include <string.h>
3812
3813 _ACEOF
3814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3815   $EGREP "memchr" >/dev/null 2>&1; then :
3816
3817 else
3818   ac_cv_header_stdc=no
3819 fi
3820 rm -f conftest*
3821
3822 fi
3823
3824 if test $ac_cv_header_stdc = yes; then
3825   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h.  */
3828 #include <stdlib.h>
3829
3830 _ACEOF
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832   $EGREP "free" >/dev/null 2>&1; then :
3833
3834 else
3835   ac_cv_header_stdc=no
3836 fi
3837 rm -f conftest*
3838
3839 fi
3840
3841 if test $ac_cv_header_stdc = yes; then
3842   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3843   if test "$cross_compiling" = yes; then :
3844   :
3845 else
3846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848 #include <ctype.h>
3849 #include <stdlib.h>
3850 #if ((' ' & 0x0FF) == 0x020)
3851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3853 #else
3854 # define ISLOWER(c) \
3855                    (('a' <= (c) && (c) <= 'i') \
3856                      || ('j' <= (c) && (c) <= 'r') \
3857                      || ('s' <= (c) && (c) <= 'z'))
3858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3859 #endif
3860
3861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3862 int
3863 main ()
3864 {
3865   int i;
3866   for (i = 0; i < 256; i++)
3867     if (XOR (islower (i), ISLOWER (i))
3868         || toupper (i) != TOUPPER (i))
3869       return 2;
3870   return 0;
3871 }
3872 _ACEOF
3873 if ac_fn_cxx_try_run "$LINENO"; then :
3874
3875 else
3876   ac_cv_header_stdc=no
3877 fi
3878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3879   conftest.$ac_objext conftest.beam conftest.$ac_ext
3880 fi
3881
3882 fi
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3885 $as_echo "$ac_cv_header_stdc" >&6; }
3886 if test $ac_cv_header_stdc = yes; then
3887
3888 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3889
3890 fi
3891
3892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3893 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3894                   inttypes.h stdint.h unistd.h
3895 do :
3896   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3897 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3898 "
3899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3900   cat >>confdefs.h <<_ACEOF
3901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3902 _ACEOF
3903
3904 fi
3905
3906 done
3907
3908
3909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3910 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3911 if ${ac_cv_c_bigendian+:} false; then :
3912   $as_echo_n "(cached) " >&6
3913 else
3914   ac_cv_c_bigendian=unknown
3915     # See if we're dealing with a universal compiler.
3916     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h.  */
3918 #ifndef __APPLE_CC__
3919                not a universal capable compiler
3920              #endif
3921              typedef int dummy;
3922
3923 _ACEOF
3924 if ac_fn_cxx_try_compile "$LINENO"; then :
3925
3926         # Check for potential -arch flags.  It is not universal unless
3927         # there are at least two -arch flags with different values.
3928         ac_arch=
3929         ac_prev=
3930         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3931          if test -n "$ac_prev"; then
3932            case $ac_word in
3933              i?86 | x86_64 | ppc | ppc64)
3934                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3935                  ac_arch=$ac_word
3936                else
3937                  ac_cv_c_bigendian=universal
3938                  break
3939                fi
3940                ;;
3941            esac
3942            ac_prev=
3943          elif test "x$ac_word" = "x-arch"; then
3944            ac_prev=arch
3945          fi
3946        done
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949     if test $ac_cv_c_bigendian = unknown; then
3950       # See if sys/param.h defines the BYTE_ORDER macro.
3951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953 #include <sys/types.h>
3954              #include <sys/param.h>
3955
3956 int
3957 main ()
3958 {
3959 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3960                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3961                      && LITTLE_ENDIAN)
3962               bogus endian macros
3963              #endif
3964
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_cxx_try_compile "$LINENO"; then :
3970   # It does; now see whether it defined to BIG_ENDIAN or not.
3971          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h.  */
3973 #include <sys/types.h>
3974                 #include <sys/param.h>
3975
3976 int
3977 main ()
3978 {
3979 #if BYTE_ORDER != BIG_ENDIAN
3980                  not big endian
3981                 #endif
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_cxx_try_compile "$LINENO"; then :
3988   ac_cv_c_bigendian=yes
3989 else
3990   ac_cv_c_bigendian=no
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995     fi
3996     if test $ac_cv_c_bigendian = unknown; then
3997       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3998       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000 #include <limits.h>
4001
4002 int
4003 main ()
4004 {
4005 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4006               bogus endian macros
4007              #endif
4008
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_cxx_try_compile "$LINENO"; then :
4014   # It does; now see whether it defined to _BIG_ENDIAN or not.
4015          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h.  */
4017 #include <limits.h>
4018
4019 int
4020 main ()
4021 {
4022 #ifndef _BIG_ENDIAN
4023                  not big endian
4024                 #endif
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_cxx_try_compile "$LINENO"; then :
4031   ac_cv_c_bigendian=yes
4032 else
4033   ac_cv_c_bigendian=no
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038     fi
4039     if test $ac_cv_c_bigendian = unknown; then
4040       # Compile a test program.
4041       if test "$cross_compiling" = yes; then :
4042   # Try to guess by grepping values from an object file.
4043          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h.  */
4045 short int ascii_mm[] =
4046                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4047                 short int ascii_ii[] =
4048                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4049                 int use_ascii (int i) {
4050                   return ascii_mm[i] + ascii_ii[i];
4051                 }
4052                 short int ebcdic_ii[] =
4053                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4054                 short int ebcdic_mm[] =
4055                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4056                 int use_ebcdic (int i) {
4057                   return ebcdic_mm[i] + ebcdic_ii[i];
4058                 }
4059                 extern int foo;
4060
4061 int
4062 main ()
4063 {
4064 return use_ascii (foo) == use_ebcdic (foo);
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_cxx_try_compile "$LINENO"; then :
4070   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4071               ac_cv_c_bigendian=yes
4072             fi
4073             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4074               if test "$ac_cv_c_bigendian" = unknown; then
4075                 ac_cv_c_bigendian=no
4076               else
4077                 # finding both strings is unlikely to happen, but who knows?
4078                 ac_cv_c_bigendian=unknown
4079               fi
4080             fi
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 else
4084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086 $ac_includes_default
4087 int
4088 main ()
4089 {
4090
4091              /* Are we little or big endian?  From Harbison&Steele.  */
4092              union
4093              {
4094                long int l;
4095                char c[sizeof (long int)];
4096              } u;
4097              u.l = 1;
4098              return u.c[sizeof (long int) - 1] == 1;
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 if ac_fn_cxx_try_run "$LINENO"; then :
4105   ac_cv_c_bigendian=no
4106 else
4107   ac_cv_c_bigendian=yes
4108 fi
4109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4110   conftest.$ac_objext conftest.beam conftest.$ac_ext
4111 fi
4112
4113     fi
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4116 $as_echo "$ac_cv_c_bigendian" >&6; }
4117  case $ac_cv_c_bigendian in #(
4118    yes)
4119      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4120 ;; #(
4121    no)
4122       ;; #(
4123    universal)
4124
4125 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4126
4127      ;; #(
4128    *)
4129      as_fn_error $? "unknown endianness
4130  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4131  esac
4132
4133
4134 for ac_header in sys/epoll.h numa.h
4135 do :
4136   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4137 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4139   cat >>confdefs.h <<_ACEOF
4140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 _ACEOF
4142
4143 fi
4144
4145 done
4146
4147
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing numa_available" >&5
4149 $as_echo_n "checking for library containing numa_available... " >&6; }
4150 if ${ac_cv_search_numa_available+:} false; then :
4151   $as_echo_n "(cached) " >&6
4152 else
4153   ac_func_search_save_LIBS=$LIBS
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h.  */
4156
4157 /* Override any GCC internal prototype to avoid an error.
4158    Use char because int might match the return type of a GCC
4159    builtin and then its argument prototype would still apply.  */
4160 #ifdef __cplusplus
4161 extern "C"
4162 #endif
4163 char numa_available ();
4164 int
4165 main ()
4166 {
4167 return numa_available ();
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 for ac_lib in '' numa; do
4173   if test -z "$ac_lib"; then
4174     ac_res="none required"
4175   else
4176     ac_res=-l$ac_lib
4177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4178   fi
4179   if ac_fn_cxx_try_link "$LINENO"; then :
4180   ac_cv_search_numa_available=$ac_res
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext \
4183     conftest$ac_exeext
4184   if ${ac_cv_search_numa_available+:} false; then :
4185   break
4186 fi
4187 done
4188 if ${ac_cv_search_numa_available+:} false; then :
4189
4190 else
4191   ac_cv_search_numa_available=no
4192 fi
4193 rm conftest.$ac_ext
4194 LIBS=$ac_func_search_save_LIBS
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_numa_available" >&5
4197 $as_echo "$ac_cv_search_numa_available" >&6; }
4198 ac_res=$ac_cv_search_numa_available
4199 if test "$ac_res" != no; then :
4200   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4201
4202 $as_echo "#define HAVE_LIBNUMA 1" >>confdefs.h
4203
4204 fi
4205
4206
4207
4208
4209
4210
4211
4212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz builtin" >&5
4213 $as_echo_n "checking for __builtin_clz builtin... " >&6; }
4214 if ${ac_cv_have___builtin_clz+:} false; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h.  */
4219 unsigned f(unsigned x) { return __builtin_clz(x); }
4220 int
4221 main ()
4222 {
4223
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_cxx_try_link "$LINENO"; then :
4229   ac_cv_have___builtin_clz=yes
4230 else
4231   ac_cv_have___builtin_clz=no
4232 fi
4233 rm -f core conftest.err conftest.$ac_objext \
4234     conftest$ac_exeext conftest.$ac_ext
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clz" >&5
4237 $as_echo "$ac_cv_have___builtin_clz" >&6; }
4238     if test $ac_cv_have___builtin_clz = yes; then
4239
4240 $as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
4241
4242     fi
4243
4244
4245
4246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl builtin" >&5
4247 $as_echo_n "checking for __builtin_clzl builtin... " >&6; }
4248 if ${ac_cv_have___builtin_clzl+:} false; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253 unsigned long f(unsigned long x) { return __builtin_clzl(x); }
4254 int
4255 main ()
4256 {
4257
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_cxx_try_link "$LINENO"; then :
4263   ac_cv_have___builtin_clzl=yes
4264 else
4265   ac_cv_have___builtin_clzl=no
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext \
4268     conftest$ac_exeext conftest.$ac_ext
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clzl" >&5
4271 $as_echo "$ac_cv_have___builtin_clzl" >&6; }
4272     if test $ac_cv_have___builtin_clzl = yes; then
4273
4274 $as_echo "#define HAVE___BUILTIN_CLZL 1" >>confdefs.h
4275
4276     fi
4277
4278
4279
4280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll builtin" >&5
4281 $as_echo_n "checking for __builtin_clzll builtin... " >&6; }
4282 if ${ac_cv_have___builtin_clzll+:} false; then :
4283   $as_echo_n "(cached) " >&6
4284 else
4285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287 unsigned long long f(unsigned long long x) { return __builtin_clzll(x); }
4288 int
4289 main ()
4290 {
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_cxx_try_link "$LINENO"; then :
4297   ac_cv_have___builtin_clzll=yes
4298 else
4299   ac_cv_have___builtin_clzll=no
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext \
4302     conftest$ac_exeext conftest.$ac_ext
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clzll" >&5
4305 $as_echo "$ac_cv_have___builtin_clzll" >&6; }
4306     if test $ac_cv_have___builtin_clzll = yes; then
4307
4308 $as_echo "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h
4309
4310     fi
4311
4312
4313
4314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz builtin" >&5
4315 $as_echo_n "checking for __builtin_ctz builtin... " >&6; }
4316 if ${ac_cv_have___builtin_ctz+:} false; then :
4317   $as_echo_n "(cached) " >&6
4318 else
4319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h.  */
4321 unsigned f(unsigned x) { return __builtin_ctz(x); }
4322 int
4323 main ()
4324 {
4325
4326   ;
4327   return 0;
4328 }
4329 _ACEOF
4330 if ac_fn_cxx_try_link "$LINENO"; then :
4331   ac_cv_have___builtin_ctz=yes
4332 else
4333   ac_cv_have___builtin_ctz=no
4334 fi
4335 rm -f core conftest.err conftest.$ac_objext \
4336     conftest$ac_exeext conftest.$ac_ext
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ctz" >&5
4339 $as_echo "$ac_cv_have___builtin_ctz" >&6; }
4340     if test $ac_cv_have___builtin_ctz = yes; then
4341
4342 $as_echo "#define HAVE___BUILTIN_CTZ 1" >>confdefs.h
4343
4344     fi
4345
4346
4347
4348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl builtin" >&5
4349 $as_echo_n "checking for __builtin_ctzl builtin... " >&6; }
4350 if ${ac_cv_have___builtin_ctzl+:} false; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h.  */
4355 unsigned long f(unsigned long x) { return __builtin_ctzl(x); }
4356 int
4357 main ()
4358 {
4359
4360   ;
4361   return 0;
4362 }
4363 _ACEOF
4364 if ac_fn_cxx_try_link "$LINENO"; then :
4365   ac_cv_have___builtin_ctzl=yes
4366 else
4367   ac_cv_have___builtin_ctzl=no
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext \
4370     conftest$ac_exeext conftest.$ac_ext
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ctzl" >&5
4373 $as_echo "$ac_cv_have___builtin_ctzl" >&6; }
4374     if test $ac_cv_have___builtin_ctzl = yes; then
4375
4376 $as_echo "#define HAVE___BUILTIN_CTZL 1" >>confdefs.h
4377
4378     fi
4379
4380
4381
4382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll builtin" >&5
4383 $as_echo_n "checking for __builtin_ctzll builtin... " >&6; }
4384 if ${ac_cv_have___builtin_ctzll+:} false; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h.  */
4389 unsigned long long f(unsigned long long x) { return __builtin_ctzll(x); }
4390 int
4391 main ()
4392 {
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_cxx_try_link "$LINENO"; then :
4399   ac_cv_have___builtin_ctzll=yes
4400 else
4401   ac_cv_have___builtin_ctzll=no
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext \
4404     conftest$ac_exeext conftest.$ac_ext
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_ctzll" >&5
4407 $as_echo "$ac_cv_have___builtin_ctzll" >&6; }
4408     if test $ac_cv_have___builtin_ctzll = yes; then
4409
4410 $as_echo "#define HAVE___BUILTIN_CTZLL 1" >>confdefs.h
4411
4412     fi
4413
4414
4415
4416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_synchronize builtin" >&5
4417 $as_echo_n "checking for __sync_synchronize builtin... " >&6; }
4418 if ${ac_cv_have___sync_synchronize+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h.  */
4423 long x = 11;
4424     void f(long i) { long* y = &x; __sync_synchronize(); *y = i; }
4425 int
4426 main ()
4427 {
4428
4429   ;
4430   return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_cxx_try_link "$LINENO"; then :
4434   ac_cv_have___sync_synchronize=yes
4435 else
4436   ac_cv_have___sync_synchronize=no
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext \
4439     conftest$ac_exeext conftest.$ac_ext
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_synchronize" >&5
4442 $as_echo "$ac_cv_have___sync_synchronize" >&6; }
4443     if test $ac_cv_have___sync_synchronize = yes; then
4444
4445 $as_echo "#define HAVE___SYNC_SYNCHRONIZE 1" >>confdefs.h
4446
4447     fi
4448
4449
4450
4451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add builtin" >&5
4452 $as_echo_n "checking for __sync_fetch_and_add builtin... " >&6; }
4453 if ${ac_cv_have___sync_fetch_and_add+:} false; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h.  */
4458 long f(long* x) { return __sync_fetch_and_add(x, 2L); }
4459 int
4460 main ()
4461 {
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 if ac_fn_cxx_try_link "$LINENO"; then :
4468   ac_cv_have___sync_fetch_and_add=yes
4469 else
4470   ac_cv_have___sync_fetch_and_add=no
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext \
4473     conftest$ac_exeext conftest.$ac_ext
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_fetch_and_add" >&5
4476 $as_echo "$ac_cv_have___sync_fetch_and_add" >&6; }
4477     if test $ac_cv_have___sync_fetch_and_add = yes; then
4478
4479 $as_echo "#define HAVE___SYNC_FETCH_AND_ADD 1" >>confdefs.h
4480
4481     fi
4482
4483
4484
4485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch builtin" >&5
4486 $as_echo_n "checking for __sync_add_and_fetch builtin... " >&6; }
4487 if ${ac_cv_have___sync_add_and_fetch+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h.  */
4492 long f(long* x) { return __sync_add_and_fetch(x, 2L); }
4493 int
4494 main ()
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_link "$LINENO"; then :
4502   ac_cv_have___sync_add_and_fetch=yes
4503 else
4504   ac_cv_have___sync_add_and_fetch=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext \
4507     conftest$ac_exeext conftest.$ac_ext
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_add_and_fetch" >&5
4510 $as_echo "$ac_cv_have___sync_add_and_fetch" >&6; }
4511     if test $ac_cv_have___sync_add_and_fetch = yes; then
4512
4513 $as_echo "#define HAVE___SYNC_ADD_AND_FETCH 1" >>confdefs.h
4514
4515     fi
4516
4517
4518
4519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_8 builtin" >&5
4520 $as_echo_n "checking for __sync_fetch_and_add_8 builtin... " >&6; }
4521 if ${ac_cv_have___sync_fetch_and_add_8+:} false; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526 #include <stdint.h>
4527     int64_t f(int64_t* x) { return __sync_fetch_and_add(x, (int64_t) 2); }
4528 int
4529 main ()
4530 {
4531
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_cxx_try_link "$LINENO"; then :
4537   ac_cv_have___sync_fetch_and_add_8=yes
4538 else
4539   ac_cv_have___sync_fetch_and_add_8=no
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext \
4542     conftest$ac_exeext conftest.$ac_ext
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_fetch_and_add_8" >&5
4545 $as_echo "$ac_cv_have___sync_fetch_and_add_8" >&6; }
4546     if test $ac_cv_have___sync_fetch_and_add_8 = yes; then
4547
4548 $as_echo "#define HAVE___SYNC_FETCH_AND_ADD_8 1" >>confdefs.h
4549
4550     fi
4551
4552
4553
4554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8 builtin" >&5
4555 $as_echo_n "checking for __sync_add_and_fetch_8 builtin... " >&6; }
4556 if ${ac_cv_have___sync_add_and_fetch_8+:} false; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561 #include <stdint.h>
4562     int64_t f(int64_t* x) { return __sync_add_and_fetch(x, (int64_t) 2); }
4563 int
4564 main ()
4565 {
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_cxx_try_link "$LINENO"; then :
4572   ac_cv_have___sync_add_and_fetch_8=yes
4573 else
4574   ac_cv_have___sync_add_and_fetch_8=no
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext \
4577     conftest$ac_exeext conftest.$ac_ext
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_add_and_fetch_8" >&5
4580 $as_echo "$ac_cv_have___sync_add_and_fetch_8" >&6; }
4581     if test $ac_cv_have___sync_add_and_fetch_8 = yes; then
4582
4583 $as_echo "#define HAVE___SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
4584
4585     fi
4586
4587
4588
4589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_or builtin" >&5
4590 $as_echo_n "checking for __sync_fetch_and_or builtin... " >&6; }
4591 if ${ac_cv_have___sync_fetch_and_or+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h.  */
4596 long f(long* x) { return __sync_fetch_and_or(x, 2L); }
4597 int
4598 main ()
4599 {
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_cxx_try_link "$LINENO"; then :
4606   ac_cv_have___sync_fetch_and_or=yes
4607 else
4608   ac_cv_have___sync_fetch_and_or=no
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext \
4611     conftest$ac_exeext conftest.$ac_ext
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_fetch_and_or" >&5
4614 $as_echo "$ac_cv_have___sync_fetch_and_or" >&6; }
4615     if test $ac_cv_have___sync_fetch_and_or = yes; then
4616
4617 $as_echo "#define HAVE___SYNC_FETCH_AND_OR 1" >>confdefs.h
4618
4619     fi
4620
4621
4622
4623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_or_and_fetch builtin" >&5
4624 $as_echo_n "checking for __sync_or_and_fetch builtin... " >&6; }
4625 if ${ac_cv_have___sync_or_and_fetch+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h.  */
4630 long f(long* x) { return __sync_or_and_fetch(x, 2L); }
4631 int
4632 main ()
4633 {
4634
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 if ac_fn_cxx_try_link "$LINENO"; then :
4640   ac_cv_have___sync_or_and_fetch=yes
4641 else
4642   ac_cv_have___sync_or_and_fetch=no
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext \
4645     conftest$ac_exeext conftest.$ac_ext
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_or_and_fetch" >&5
4648 $as_echo "$ac_cv_have___sync_or_and_fetch" >&6; }
4649     if test $ac_cv_have___sync_or_and_fetch = yes; then
4650
4651 $as_echo "#define HAVE___SYNC_OR_AND_FETCH 1" >>confdefs.h
4652
4653     fi
4654
4655
4656
4657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_or_8 builtin" >&5
4658 $as_echo_n "checking for __sync_fetch_and_or_8 builtin... " >&6; }
4659 if ${ac_cv_have___sync_fetch_and_or_8+:} false; then :
4660   $as_echo_n "(cached) " >&6
4661 else
4662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h.  */
4664 #include <stdint.h>
4665     int64_t f(int64_t* x) { return __sync_fetch_and_or(x, (int64_t) 2); }
4666 int
4667 main ()
4668 {
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 if ac_fn_cxx_try_link "$LINENO"; then :
4675   ac_cv_have___sync_fetch_and_or_8=yes
4676 else
4677   ac_cv_have___sync_fetch_and_or_8=no
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext \
4680     conftest$ac_exeext conftest.$ac_ext
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_fetch_and_or_8" >&5
4683 $as_echo "$ac_cv_have___sync_fetch_and_or_8" >&6; }
4684     if test $ac_cv_have___sync_fetch_and_or_8 = yes; then
4685
4686 $as_echo "#define HAVE___SYNC_FETCH_AND_OR_8 1" >>confdefs.h
4687
4688     fi
4689
4690
4691
4692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_or_and_fetch_8 builtin" >&5
4693 $as_echo_n "checking for __sync_or_and_fetch_8 builtin... " >&6; }
4694 if ${ac_cv_have___sync_or_and_fetch_8+:} false; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h.  */
4699 #include <stdint.h>
4700     int64_t f(int64_t* x) { return __sync_or_and_fetch(x, (int64_t) 2); }
4701 int
4702 main ()
4703 {
4704
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 if ac_fn_cxx_try_link "$LINENO"; then :
4710   ac_cv_have___sync_or_and_fetch_8=yes
4711 else
4712   ac_cv_have___sync_or_and_fetch_8=no
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext \
4715     conftest$ac_exeext conftest.$ac_ext
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_or_and_fetch_8" >&5
4718 $as_echo "$ac_cv_have___sync_or_and_fetch_8" >&6; }
4719     if test $ac_cv_have___sync_or_and_fetch_8 = yes; then
4720
4721 $as_echo "#define HAVE___SYNC_OR_AND_FETCH_8 1" >>confdefs.h
4722
4723     fi
4724
4725
4726
4727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap builtin" >&5
4728 $as_echo_n "checking for __sync_bool_compare_and_swap builtin... " >&6; }
4729 if ${ac_cv_have___sync_bool_compare_and_swap+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h.  */
4734 bool f(long* x, long y, long z) { return __sync_bool_compare_and_swap(x, y, z); }
4735 int
4736 main ()
4737 {
4738
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
4743 if ac_fn_cxx_try_link "$LINENO"; then :
4744   ac_cv_have___sync_bool_compare_and_swap=yes
4745 else
4746   ac_cv_have___sync_bool_compare_and_swap=no
4747 fi
4748 rm -f core conftest.err conftest.$ac_objext \
4749     conftest$ac_exeext conftest.$ac_ext
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_bool_compare_and_swap" >&5
4752 $as_echo "$ac_cv_have___sync_bool_compare_and_swap" >&6; }
4753     if test $ac_cv_have___sync_bool_compare_and_swap = yes; then
4754
4755 $as_echo "#define HAVE___SYNC_BOOL_COMPARE_AND_SWAP 1" >>confdefs.h
4756
4757     fi
4758
4759
4760
4761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8 builtin" >&5
4762 $as_echo_n "checking for __sync_bool_compare_and_swap_8 builtin... " >&6; }
4763 if ${ac_cv_have___sync_bool_compare_and_swap_8+:} false; then :
4764   $as_echo_n "(cached) " >&6
4765 else
4766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 #include <stdint.h>
4769     bool f(int64_t* x, int64_t y, int64_t z) { return __sync_bool_compare_and_swap(x, y, z); }
4770 int
4771 main ()
4772 {
4773
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 if ac_fn_cxx_try_link "$LINENO"; then :
4779   ac_cv_have___sync_bool_compare_and_swap_8=yes
4780 else
4781   ac_cv_have___sync_bool_compare_and_swap_8=no
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext \
4784     conftest$ac_exeext conftest.$ac_ext
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_bool_compare_and_swap_8" >&5
4787 $as_echo "$ac_cv_have___sync_bool_compare_and_swap_8" >&6; }
4788     if test $ac_cv_have___sync_bool_compare_and_swap_8 = yes; then
4789
4790 $as_echo "#define HAVE___SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
4791
4792     fi
4793
4794
4795
4796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap builtin" >&5
4797 $as_echo_n "checking for __sync_val_compare_and_swap builtin... " >&6; }
4798 if ${ac_cv_have___sync_val_compare_and_swap+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h.  */
4803 long f(long* x, long y, long z) { return __sync_val_compare_and_swap(x, y, z); }
4804 int
4805 main ()
4806 {
4807
4808   ;
4809   return 0;
4810 }
4811 _ACEOF
4812 if ac_fn_cxx_try_link "$LINENO"; then :
4813   ac_cv_have___sync_val_compare_and_swap=yes
4814 else
4815   ac_cv_have___sync_val_compare_and_swap=no
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext \
4818     conftest$ac_exeext conftest.$ac_ext
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_val_compare_and_swap" >&5
4821 $as_echo "$ac_cv_have___sync_val_compare_and_swap" >&6; }
4822     if test $ac_cv_have___sync_val_compare_and_swap = yes; then
4823
4824 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
4825
4826     fi
4827
4828
4829
4830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap_8 builtin" >&5
4831 $as_echo_n "checking for __sync_val_compare_and_swap_8 builtin... " >&6; }
4832 if ${ac_cv_have___sync_val_compare_and_swap_8+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h.  */
4837 #include <stdint.h>
4838     int64_t f(int64_t* x, int64_t y, int64_t z) { return __sync_val_compare_and_swap(x, y, z); }
4839 int
4840 main ()
4841 {
4842
4843   ;
4844   return 0;
4845 }
4846 _ACEOF
4847 if ac_fn_cxx_try_link "$LINENO"; then :
4848   ac_cv_have___sync_val_compare_and_swap_8=yes
4849 else
4850   ac_cv_have___sync_val_compare_and_swap_8=no
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext \
4853     conftest$ac_exeext conftest.$ac_ext
4854 fi
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_val_compare_and_swap_8" >&5
4856 $as_echo "$ac_cv_have___sync_val_compare_and_swap_8" >&6; }
4857     if test $ac_cv_have___sync_val_compare_and_swap_8 = yes; then
4858
4859 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP_8 1" >>confdefs.h
4860
4861     fi
4862
4863
4864
4865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_lock_test_and_set builtin" >&5
4866 $as_echo_n "checking for __sync_lock_test_and_set builtin... " >&6; }
4867 if ${ac_cv_have___sync_lock_test_and_set+:} false; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h.  */
4872 long f(long* x) { return __sync_lock_test_and_set(x, 1); }
4873 int
4874 main ()
4875 {
4876
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_cxx_try_link "$LINENO"; then :
4882   ac_cv_have___sync_lock_test_and_set=yes
4883 else
4884   ac_cv_have___sync_lock_test_and_set=no
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext \
4887     conftest$ac_exeext conftest.$ac_ext
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_lock_test_and_set" >&5
4890 $as_echo "$ac_cv_have___sync_lock_test_and_set" >&6; }
4891     if test $ac_cv_have___sync_lock_test_and_set = yes; then
4892
4893 $as_echo "#define HAVE___SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
4894
4895     fi
4896
4897
4898
4899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_lock_test_and_set_val builtin" >&5
4900 $as_echo_n "checking for __sync_lock_test_and_set_val builtin... " >&6; }
4901 if ${ac_cv_have___sync_lock_test_and_set_val+:} false; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h.  */
4906 long f(long* x, long y) { return __sync_lock_test_and_set(x, y); }
4907 int
4908 main ()
4909 {
4910
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 if ac_fn_cxx_try_link "$LINENO"; then :
4916   ac_cv_have___sync_lock_test_and_set_val=yes
4917 else
4918   ac_cv_have___sync_lock_test_and_set_val=no
4919 fi
4920 rm -f core conftest.err conftest.$ac_objext \
4921     conftest$ac_exeext conftest.$ac_ext
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_lock_test_and_set_val" >&5
4924 $as_echo "$ac_cv_have___sync_lock_test_and_set_val" >&6; }
4925     if test $ac_cv_have___sync_lock_test_and_set_val = yes; then
4926
4927 $as_echo "#define HAVE___SYNC_LOCK_TEST_AND_SET_VAL 1" >>confdefs.h
4928
4929     fi
4930
4931
4932
4933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_lock_release_set builtin" >&5
4934 $as_echo_n "checking for __sync_lock_release_set builtin... " >&6; }
4935 if ${ac_cv_have___sync_lock_release_set+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h.  */
4940 void f(long* x) { __sync_lock_release(x); }
4941 int
4942 main ()
4943 {
4944
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_cxx_try_link "$LINENO"; then :
4950   ac_cv_have___sync_lock_release_set=yes
4951 else
4952   ac_cv_have___sync_lock_release_set=no
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext \
4955     conftest$ac_exeext conftest.$ac_ext
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___sync_lock_release_set" >&5
4958 $as_echo "$ac_cv_have___sync_lock_release_set" >&6; }
4959     if test $ac_cv_have___sync_lock_release_set = yes; then
4960
4961 $as_echo "#define HAVE___SYNC_LOCK_RELEASE_SET 1" >>confdefs.h
4962
4963     fi
4964
4965
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands 'auto'" >&5
4969 $as_echo_n "checking whether the C++ compiler understands 'auto'... " >&6; }
4970 if ${ac_cv_cxx_auto+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973
4974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h.  */
4976 struct s { int a; }; int f(s x) { auto &y = x; return y.a; }
4977 int
4978 main ()
4979 {
4980
4981   ;
4982   return 0;
4983 }
4984 _ACEOF
4985 if ac_fn_cxx_try_compile "$LINENO"; then :
4986   ac_cv_cxx_auto=yes
4987 else
4988   ac_cv_cxx_auto=no
4989 fi
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 fi
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_auto" >&5
4993 $as_echo "$ac_cv_cxx_auto" >&6; }
4994 if test "$ac_cv_cxx_auto" != yes -a -z "$ac_user_cxx"; then
4995     CXX="${CXX} -std=gnu++0x"
4996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler with -std=gnu++0x understands 'auto'" >&5
4997 $as_echo_n "checking whether the C++ compiler with -std=gnu++0x understands 'auto'... " >&6; }
4998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h.  */
5000 struct s { int a; }; int f(s x) { auto &y = x; return y.a; }
5001 int
5002 main ()
5003 {
5004
5005   ;
5006   return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010   ac_cv_cxx_auto=yes
5011 else
5012   ac_cv_cxx_auto=no
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_auto" >&5
5016 $as_echo "$ac_cv_cxx_auto" >&6; }
5017 fi
5018
5019 if test "$ac_cv_cxx_auto" = yes; then
5020
5021 $as_echo "#define HAVE_CXX_AUTO 1" >>confdefs.h
5022
5023 else
5024     as_fn_error $? "
5025
5026 The C++ compiler does not appear to understand C++11.
5027 To fix this problem, try supplying a \"CXX\" argument to ./configure,
5028 such as \"./configure CXX='c++ -std=gnu++0x'\".
5029
5030 ========================================================" "$LINENO" 5
5031 fi
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands constexpr" >&5
5034 $as_echo_n "checking whether the C++ compiler understands constexpr... " >&6; }
5035 if ${ac_cv_cxx_constexpr+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038
5039     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h.  */
5041 constexpr int f(int x) { return x + 1; }
5042 int
5043 main ()
5044 {
5045
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 if ac_fn_cxx_try_compile "$LINENO"; then :
5051   ac_cv_cxx_constexpr=yes
5052 else
5053   ac_cv_cxx_constexpr=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_constexpr" >&5
5058 $as_echo "$ac_cv_cxx_constexpr" >&6; }
5059 if test "$ac_cv_cxx_constexpr" = yes; then
5060
5061 $as_echo "#define HAVE_CXX_CONSTEXPR 1" >>confdefs.h
5062
5063 fi
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands static_assert" >&5
5066 $as_echo_n "checking whether the C++ compiler understands static_assert... " >&6; }
5067 if ${ac_cv_cxx_static_assert+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070
5071     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h.  */
5073 const int f = 2;
5074 int
5075 main ()
5076 {
5077 static_assert(f == 2, "f should be 2");
5078   ;
5079   return 0;
5080 }
5081 _ACEOF
5082 if ac_fn_cxx_try_compile "$LINENO"; then :
5083   ac_cv_cxx_static_assert=yes
5084 else
5085   ac_cv_cxx_static_assert=no
5086 fi
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_assert" >&5
5090 $as_echo "$ac_cv_cxx_static_assert" >&6; }
5091 if test "$ac_cv_cxx_static_assert" = yes; then
5092
5093 $as_echo "#define HAVE_CXX_STATIC_ASSERT 1" >>confdefs.h
5094
5095 fi
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands rvalue references" >&5
5098 $as_echo_n "checking whether the C++ compiler understands rvalue references... " >&6; }
5099 if ${ac_cv_cxx_rvalue_references+:} false; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102
5103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h.  */
5105 int f(int &) { return 1; } int f(int &&) { return 0; }
5106 int
5107 main ()
5108 {
5109 return f(int());
5110   ;
5111   return 0;
5112 }
5113 _ACEOF
5114 if ac_fn_cxx_try_compile "$LINENO"; then :
5115   ac_cv_cxx_rvalue_references=yes
5116 else
5117   ac_cv_cxx_rvalue_references=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_rvalue_references" >&5
5122 $as_echo "$ac_cv_cxx_rvalue_references" >&6; }
5123 if test "$ac_cv_cxx_rvalue_references" = yes; then
5124
5125 $as_echo "#define HAVE_CXX_RVALUE_REFERENCES 1" >>confdefs.h
5126
5127 fi
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler understands template alias" >&5
5130 $as_echo_n "checking whether the C++ compiler understands template alias... " >&6; }
5131 if ${ac_cv_cxx_template_alias+:} false; then :
5132   $as_echo_n "(cached) " >&6
5133 else
5134
5135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137 template <typename T> struct X { typedef T type; }; template <typename T> using Y = X<T>; int f(int x) { return x; }
5138 int
5139 main ()
5140 {
5141 return f(Y<int>::type());
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 if ac_fn_cxx_try_compile "$LINENO"; then :
5147   ac_cv_cxx_template_alias=yes
5148 else
5149   ac_cv_cxx_template_alias=no
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_template_alias" >&5
5154 $as_echo "$ac_cv_cxx_template_alias" >&6; }
5155 if test "$ac_cv_cxx_template_alias" = yes; then
5156
5157 $as_echo "#define HAVE_CXX_TEMPLATE_ALIAS 1" >>confdefs.h
5158
5159 fi
5160
5161 for ac_header in type_traits
5162 do :
5163   ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits" "ac_cv_header_type_traits" "$ac_includes_default"
5164 if test "x$ac_cv_header_type_traits" = xyes; then :
5165   cat >>confdefs.h <<_ACEOF
5166 #define HAVE_TYPE_TRAITS 1
5167 _ACEOF
5168
5169 fi
5170
5171 done
5172
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::hash" >&5
5175 $as_echo_n "checking for std::hash... " >&6; }
5176 if ${ac_cv_have_std_hash+:} false; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179
5180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h.  */
5182 #include <functional>
5183 #include <stddef.h>
5184 int
5185 main ()
5186 {
5187 std::hash<int> h; size_t x = h(1); return x == 0;
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 if ac_fn_cxx_try_compile "$LINENO"; then :
5193   ac_cv_have_std_hash=yes
5194 else
5195   ac_cv_have_std_hash=no
5196 fi
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_std_hash" >&5
5200 $as_echo "$ac_cv_have_std_hash" >&6; }
5201 if test $ac_cv_have_std_hash = yes; then
5202
5203 $as_echo "#define HAVE_STD_HASH 1" >>confdefs.h
5204
5205 fi
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __has_trivial_copy" >&5
5208 $as_echo_n "checking for __has_trivial_copy... " >&6; }
5209 if ${ac_cv_have___has_trivial_copy+:} false; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212
5213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h.  */
5215
5216 int
5217 main ()
5218 {
5219 long x = 1; if (__has_trivial_copy(long)) x = 0;
5220   ;
5221   return 0;
5222 }
5223 _ACEOF
5224 if ac_fn_cxx_try_compile "$LINENO"; then :
5225   ac_cv_have___has_trivial_copy=yes
5226 else
5227   ac_cv_have___has_trivial_copy=no
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 fi
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___has_trivial_copy" >&5
5232 $as_echo "$ac_cv_have___has_trivial_copy" >&6; }
5233 if test $ac_cv_have___has_trivial_copy = yes; then
5234
5235 $as_echo "#define HAVE___HAS_TRIVIAL_COPY 1" >>confdefs.h
5236
5237 fi
5238
5239 if test "$ac_cv_cxx_rvalue_references" = yes; then
5240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::move" >&5
5241 $as_echo_n "checking for std::move... " >&6; }
5242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h.  */
5244 #include <utility>
5245 int
5246 main ()
5247 {
5248 long x = 0; long &&y = std::move(x);
5249   ;
5250   return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_cxx_try_compile "$LINENO"; then :
5254   ac_cv_std_move=yes
5255 else
5256   ac_cv_std_move=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_move" >&5
5260 $as_echo "$ac_cv_std_move" >&6; }
5261     if test "$ac_cv_std_move" != yes; then
5262         as_fn_error $? "
5263
5264 The C++ compiler understands C++11, but does not have std::move.
5265 If you are using clang on Mac, ensure the -stdlib=libc++ option.
5266
5267 ========================================================" "$LINENO" 5
5268     fi
5269 fi
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::is_trivially_copyable" >&5
5272 $as_echo_n "checking for std::is_trivially_copyable... " >&6; }
5273 if ${ac_cv_have_std_is_trivially_copyable+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276
5277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h.  */
5279 #include <type_traits>
5280 int
5281 main ()
5282 {
5283 return std::is_trivially_copyable<int>::value;
5284   ;
5285   return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_cxx_try_compile "$LINENO"; then :
5289   ac_cv_have_std_is_trivially_copyable=yes
5290 else
5291   ac_cv_have_std_is_trivially_copyable=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_std_is_trivially_copyable" >&5
5296 $as_echo "$ac_cv_have_std_is_trivially_copyable" >&6; }
5297 if test $ac_cv_have_std_is_trivially_copyable = yes; then
5298
5299 $as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 1" >>confdefs.h
5300
5301 fi
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::is_rvalue_reference" >&5
5304 $as_echo_n "checking for std::is_rvalue_reference... " >&6; }
5305 if ${ac_cv_have_std_is_rvalue_reference+:} false; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308
5309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h.  */
5311 #include <type_traits>
5312 int
5313 main ()
5314 {
5315 return std::is_rvalue_reference<int>::value;
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 if ac_fn_cxx_try_compile "$LINENO"; then :
5321   ac_cv_have_std_is_rvalue_reference=yes
5322 else
5323   ac_cv_have_std_is_rvalue_reference=no
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_std_is_rvalue_reference" >&5
5328 $as_echo "$ac_cv_have_std_is_rvalue_reference" >&6; }
5329 if test $ac_cv_have_std_is_rvalue_reference = yes; then
5330
5331 $as_echo "#define HAVE_STD_IS_RVALUE_REFERENCE 1" >>confdefs.h
5332
5333 fi
5334
5335
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lflow" >&5
5338 $as_echo_n "checking for malloc in -lflow... " >&6; }
5339 if ${ac_cv_lib_flow_malloc+:} false; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   ac_check_lib_save_LIBS=$LIBS
5343 LIBS="-lflow  $LIBS"
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h.  */
5346
5347 /* Override any GCC internal prototype to avoid an error.
5348    Use char because int might match the return type of a GCC
5349    builtin and then its argument prototype would still apply.  */
5350 #ifdef __cplusplus
5351 extern "C"
5352 #endif
5353 char malloc ();
5354 int
5355 main ()
5356 {
5357 return malloc ();
5358   ;
5359   return 0;
5360 }
5361 _ACEOF
5362 if ac_fn_cxx_try_link "$LINENO"; then :
5363   ac_cv_lib_flow_malloc=yes
5364 else
5365   ac_cv_lib_flow_malloc=no
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext \
5368     conftest$ac_exeext conftest.$ac_ext
5369 LIBS=$ac_check_lib_save_LIBS
5370 fi
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flow_malloc" >&5
5372 $as_echo "$ac_cv_lib_flow_malloc" >&6; }
5373 if test "x$ac_cv_lib_flow_malloc" = xyes; then :
5374   have_flow=true
5375 else
5376   have_flow=
5377 fi
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mallctl in -ljemalloc" >&5
5380 $as_echo_n "checking for mallctl in -ljemalloc... " >&6; }
5381 if ${ac_cv_lib_jemalloc_mallctl+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   ac_check_lib_save_LIBS=$LIBS
5385 LIBS="-ljemalloc  $LIBS"
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h.  */
5388
5389 /* Override any GCC internal prototype to avoid an error.
5390    Use char because int might match the return type of a GCC
5391    builtin and then its argument prototype would still apply.  */
5392 #ifdef __cplusplus
5393 extern "C"
5394 #endif
5395 char mallctl ();
5396 int
5397 main ()
5398 {
5399 return mallctl ();
5400   ;
5401   return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_cxx_try_link "$LINENO"; then :
5405   ac_cv_lib_jemalloc_mallctl=yes
5406 else
5407   ac_cv_lib_jemalloc_mallctl=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext \
5410     conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_mallctl" >&5
5414 $as_echo "$ac_cv_lib_jemalloc_mallctl" >&6; }
5415 if test "x$ac_cv_lib_jemalloc_mallctl" = xyes; then :
5416   have_jemalloc=true
5417 else
5418   have_jemalloc=
5419 fi
5420
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tc_malloc in -ltcmalloc_minimal" >&5
5422 $as_echo_n "checking for tc_malloc in -ltcmalloc_minimal... " >&6; }
5423 if ${ac_cv_lib_tcmalloc_minimal_tc_malloc+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   ac_check_lib_save_LIBS=$LIBS
5427 LIBS="-ltcmalloc_minimal  $LIBS"
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h.  */
5430
5431 /* Override any GCC internal prototype to avoid an error.
5432    Use char because int might match the return type of a GCC
5433    builtin and then its argument prototype would still apply.  */
5434 #ifdef __cplusplus
5435 extern "C"
5436 #endif
5437 char tc_malloc ();
5438 int
5439 main ()
5440 {
5441 return tc_malloc ();
5442   ;
5443   return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_cxx_try_link "$LINENO"; then :
5447   ac_cv_lib_tcmalloc_minimal_tc_malloc=yes
5448 else
5449   ac_cv_lib_tcmalloc_minimal_tc_malloc=no
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext \
5452     conftest$ac_exeext conftest.$ac_ext
5453 LIBS=$ac_check_lib_save_LIBS
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_minimal_tc_malloc" >&5
5456 $as_echo "$ac_cv_lib_tcmalloc_minimal_tc_malloc" >&6; }
5457 if test "x$ac_cv_lib_tcmalloc_minimal_tc_malloc" = xyes; then :
5458   have_tcmalloc_minimal=true
5459 else
5460   have_tcmalloc_minimal=
5461 fi
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Z16getMainHoardHeapv in -lhoard" >&5
5464 $as_echo_n "checking for _Z16getMainHoardHeapv in -lhoard... " >&6; }
5465 if ${ac_cv_lib_hoard__Z16getMainHoardHeapv+:} false; then :
5466   $as_echo_n "(cached) " >&6
5467 else
5468   ac_check_lib_save_LIBS=$LIBS
5469 LIBS="-lhoard  $LIBS"
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h.  */
5472
5473 /* Override any GCC internal prototype to avoid an error.
5474    Use char because int might match the return type of a GCC
5475    builtin and then its argument prototype would still apply.  */
5476 #ifdef __cplusplus
5477 extern "C"
5478 #endif
5479 char _Z16getMainHoardHeapv ();
5480 int
5481 main ()
5482 {
5483 return _Z16getMainHoardHeapv ();
5484   ;
5485   return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_cxx_try_link "$LINENO"; then :
5489   ac_cv_lib_hoard__Z16getMainHoardHeapv=yes
5490 else
5491   ac_cv_lib_hoard__Z16getMainHoardHeapv=no
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext \
5494     conftest$ac_exeext conftest.$ac_ext
5495 LIBS=$ac_check_lib_save_LIBS
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hoard__Z16getMainHoardHeapv" >&5
5498 $as_echo "$ac_cv_lib_hoard__Z16getMainHoardHeapv" >&6; }
5499 if test "x$ac_cv_lib_hoard__Z16getMainHoardHeapv" = xyes; then :
5500   have_hoard=true
5501 else
5502   have_hoard=
5503 fi
5504
5505
5506
5507 # Check whether --with-malloc was given.
5508 if test "${with_malloc+set}" = set; then :
5509   withval=$with_malloc; ac_mtd_malloc=$withval
5510 else
5511   ac_mtd_malloc=yes
5512 fi
5513
5514
5515 if test \( "$ac_mtd_malloc" = tcmalloc -a -z "$have_tcmalloc_minimal" \) \
5516         -o \( "$ac_mtd_malloc" = jemalloc -a -z "$have_jemalloc" \) \
5517         -o \( "$ac_mtd_malloc" = flow -a -z "$have_flow" \) \
5518         -o \( "$ac_mtd_malloc" = hoard -a -z "$have_hoard" \) ; then
5519     as_fn_error $? "$ac_mtd_malloc not found" "$LINENO" 5
5520 elif test "$ac_mtd_malloc" = tcmalloc -o "$ac_mtd_malloc" = jemalloc -o "$ac_mtd_malloc" = flow -o "$ac_mtd_malloc" = hoard; then
5521     :
5522 elif test "$ac_mtd_malloc" = yes -o "$ac_mtd_malloc" = default; then
5523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc library" >&5
5524 $as_echo_n "checking for malloc library... " >&6; }
5525     if test -n "$have_flow"; then ac_mtd_malloc=flow;
5526     elif test -n "$have_jemalloc"; then ac_mtd_malloc=jemalloc;
5527     elif test -n "$have_tcmalloc_minimal"; then ac_mtd_malloc=tcmalloc;
5528     else ac_mtd_malloc=malloc; fi
5529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_mtd_malloc" >&5
5530 $as_echo "$ac_mtd_malloc" >&6; }
5531 elif test "$ac_mtd_malloc" = no -o "$ac_mtd_malloc" = malloc -o -z "$ac_mtd_malloc"; then
5532     ac_mtd_malloc=malloc
5533 else
5534     as_fn_error $? "Unknown malloc type $ac_mtd_malloc" "$LINENO" 5
5535 fi
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc library" >&5
5538 $as_echo_n "checking for malloc library... " >&6; }
5539 if test "$ac_mtd_malloc" = tcmalloc; then
5540     MALLOC_LIBS="-ltcmalloc_minimal"
5541
5542 $as_echo "#define HAVE_TCMALLOC 1" >>confdefs.h
5543
5544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -ltcmalloc_minimal" >&5
5545 $as_echo "-ltcmalloc_minimal" >&6; }
5546 elif test "$ac_mtd_malloc" = jemalloc; then
5547     MALLOC_LIBS="-ljemalloc"
5548
5549 $as_echo "#define HAVE_JEMALLOC 1" >>confdefs.h
5550
5551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -ljemalloc" >&5
5552 $as_echo "-ljemalloc" >&6; }
5553 elif test "$ac_mtd_malloc" = flow; then
5554     MALLOC_LIBS="-lflow"
5555
5556 $as_echo "#define HAVE_FLOW_MALLOC 1" >>confdefs.h
5557
5558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lflow" >&5
5559 $as_echo "-lflow" >&6; }
5560 elif test "$ac_mtd_malloc" = hoard; then
5561     MALLOC_LIBS="-lhoard"
5562
5563 $as_echo "#define HAVE_HOARD_MALLOC 1" >>confdefs.h
5564
5565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lhoard" >&5
5566 $as_echo "-lhoard" >&6; }
5567 else
5568     MALLOC_LIBS=
5569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
5570 $as_echo "default" >&6; }
5571 fi
5572
5573
5574
5575
5576
5577
5578
5579
5580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and long are the same type" >&5
5581 $as_echo_n "checking whether off_t and long are the same type... " >&6; }
5582 if ${ac_cv_have_same_type_off_t_is_long+:} false; then :
5583   $as_echo_n "(cached) " >&6
5584 else
5585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h.  */
5587 #include <stdio.h>
5588 int f(off_t) {return 0;} int f(long) {return 0;}
5589 int
5590 main ()
5591 {
5592
5593   ;
5594   return 0;
5595 }
5596 _ACEOF
5597 if ac_fn_cxx_try_compile "$LINENO"; then :
5598   ac_cv_have_same_type_off_t_is_long=no
5599 else
5600   ac_cv_have_same_type_off_t_is_long=yes
5601 fi
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 fi
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_same_type_off_t_is_long" >&5
5605 $as_echo "$ac_cv_have_same_type_off_t_is_long" >&6; }
5606     if test $ac_cv_have_same_type_off_t_is_long = yes; then
5607
5608 $as_echo "#define HAVE_OFF_T_IS_LONG 1" >>confdefs.h
5609
5610     fi
5611
5612
5613
5614
5615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and long long are the same type" >&5
5616 $as_echo_n "checking whether off_t and long long are the same type... " >&6; }
5617 if ${ac_cv_have_same_type_off_t_is_long_long+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h.  */
5622 #include <stdio.h>
5623 int f(off_t) {return 0;} int f(long long) {return 0;}
5624 int
5625 main ()
5626 {
5627
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_cxx_try_compile "$LINENO"; then :
5633   ac_cv_have_same_type_off_t_is_long_long=no
5634 else
5635   ac_cv_have_same_type_off_t_is_long_long=yes
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_same_type_off_t_is_long_long" >&5
5640 $as_echo "$ac_cv_have_same_type_off_t_is_long_long" >&6; }
5641     if test $ac_cv_have_same_type_off_t_is_long_long = yes; then
5642
5643 $as_echo "#define HAVE_OFF_T_IS_LONG_LONG 1" >>confdefs.h
5644
5645     fi
5646
5647
5648
5649
5650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and long are the same type" >&5
5651 $as_echo_n "checking whether int64_t and long are the same type... " >&6; }
5652 if ${ac_cv_have_same_type_int64_t_is_long+:} false; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h.  */
5657 #include <stdint.h>
5658 int f(int64_t) {return 0;} int f(long) {return 0;}
5659 int
5660 main ()
5661 {
5662
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 if ac_fn_cxx_try_compile "$LINENO"; then :
5668   ac_cv_have_same_type_int64_t_is_long=no
5669 else
5670   ac_cv_have_same_type_int64_t_is_long=yes
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 fi
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_same_type_int64_t_is_long" >&5
5675 $as_echo "$ac_cv_have_same_type_int64_t_is_long" >&6; }
5676     if test $ac_cv_have_same_type_int64_t_is_long = yes; then
5677
5678 $as_echo "#define HAVE_INT64_T_IS_LONG 1" >>confdefs.h
5679
5680     fi
5681
5682
5683
5684
5685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and long long are the same type" >&5
5686 $as_echo_n "checking whether int64_t and long long are the same type... " >&6; }
5687 if ${ac_cv_have_same_type_int64_t_is_long_long+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h.  */
5692 #include <stdint.h>
5693 int f(int64_t) {return 0;} int f(long long) {return 0;}
5694 int
5695 main ()
5696 {
5697
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_cxx_try_compile "$LINENO"; then :
5703   ac_cv_have_same_type_int64_t_is_long_long=no
5704 else
5705   ac_cv_have_same_type_int64_t_is_long_long=yes
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_same_type_int64_t_is_long_long" >&5
5710 $as_echo "$ac_cv_have_same_type_int64_t_is_long_long" >&6; }
5711     if test $ac_cv_have_same_type_int64_t_is_long_long = yes; then
5712
5713 $as_echo "#define HAVE_INT64_T_IS_LONG_LONG 1" >>confdefs.h
5714
5715     fi
5716
5717
5718
5719
5720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned are the same type" >&5
5721 $as_echo_n "checking whether size_t and unsigned are the same type... " >&6; }
5722 if ${ac_cv_have_same_type_size_t_is_unsigned+:} false; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h.  */
5727 #include <stdio.h>
5728 int f(size_t) {return 0;} int f(unsigned) {return 0;}
5729 int
5730 main ()
5731 {
5732
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_cxx_try_compile "$LINENO"; then :
5738   ac_cv_have_same_type_size_t_is_unsigned=no
5739 else
5740   ac_cv_have_same_type_size_t_is_unsigned=yes
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_same_type_size_t_is_unsigned" >&5
5745 $as_echo "$ac_cv_have_same_type_size_t_is_unsigned" >&6; }
5746     if test $ac_cv_have_same_type_size_t_is_unsigned = yes; then
5747
5748 $as_echo "#define HAVE_SIZE_T_IS_UNSIGNED 1" >>confdefs.h
5749
5750     fi
5751
5752
5753
5754
5755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same type" >&5
5756 $as_echo_n "checking whether size_t and unsigned long are the same type... " >&6; }
5757 if ${ac_cv_have_same_type_size_t_is_unsigned_long+:} false; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h.  */
5762 #include <stdio.h>
5763 int f(size_t) {return 0;} int f(unsigned long) {return 0;}
5764 int
5765 main ()
5766 {
5767
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_cxx_try_compile "$LINENO"; then :
5773   ac_cv_have_same_type_size_t_is_unsigned_long=no
5774 else
5775   ac_cv_have_same_type_size_t_is_unsigned_long=yes
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_same_type_size_t_is_unsigned_long" >&5
5780 $as_echo "$ac_cv_have_same_type_size_t_is_unsigned_long" >&6; }
5781     if test $ac_cv_have_same_type_size_t_is_unsigned_long = yes; then
5782
5783 $as_echo "#define HAVE_SIZE_T_IS_UNSIGNED_LONG 1" >>confdefs.h
5784
5785     fi
5786
5787
5788
5789
5790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long long are the same type" >&5
5791 $as_echo_n "checking whether size_t and unsigned long long are the same type... " >&6; }
5792 if ${ac_cv_have_same_type_size_t_is_unsigned_long_long+:} false; then :
5793   $as_echo_n "(cached) " >&6
5794 else
5795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h.  */
5797 #include <stdio.h>
5798 int f(size_t) {return 0;} int f(unsigned long long) {return 0;}
5799 int
5800 main ()
5801 {
5802
5803   ;
5804   return 0;
5805 }
5806 _ACEOF
5807 if ac_fn_cxx_try_compile "$LINENO"; then :
5808   ac_cv_have_same_type_size_t_is_unsigned_long_long=no
5809 else
5810   ac_cv_have_same_type_size_t_is_unsigned_long_long=yes
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_same_type_size_t_is_unsigned_long_long" >&5
5815 $as_echo "$ac_cv_have_same_type_size_t_is_unsigned_long_long" >&6; }
5816     if test $ac_cv_have_same_type_size_t_is_unsigned_long_long = yes; then
5817
5818 $as_echo "#define HAVE_SIZE_T_IS_UNSIGNED_LONG_LONG 1" >>confdefs.h
5819
5820     fi
5821
5822
5823
5824 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5825 if test "x$ac_cv_type_long_long" = xyes; then :
5826
5827 cat >>confdefs.h <<_ACEOF
5828 #define HAVE_LONG_LONG 1
5829 _ACEOF
5830
5831
5832 fi
5833
5834 # The cast to long int works around a bug in the HP C Compiler
5835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5837 # This bug is HP SR number 8606223364.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5839 $as_echo_n "checking size of short... " >&6; }
5840 if ${ac_cv_sizeof_short+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5844
5845 else
5846   if test "$ac_cv_type_short" = yes; then
5847      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error 77 "cannot compute sizeof (short)
5850 See \`config.log' for more details" "$LINENO" 5; }
5851    else
5852      ac_cv_sizeof_short=0
5853    fi
5854 fi
5855
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5858 $as_echo "$ac_cv_sizeof_short" >&6; }
5859
5860
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define SIZEOF_SHORT $ac_cv_sizeof_short
5864 _ACEOF
5865
5866
5867 # The cast to long int works around a bug in the HP C Compiler
5868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5870 # This bug is HP SR number 8606223364.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5872 $as_echo_n "checking size of int... " >&6; }
5873 if ${ac_cv_sizeof_int+:} false; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5877
5878 else
5879   if test "$ac_cv_type_int" = yes; then
5880      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5882 as_fn_error 77 "cannot compute sizeof (int)
5883 See \`config.log' for more details" "$LINENO" 5; }
5884    else
5885      ac_cv_sizeof_int=0
5886    fi
5887 fi
5888
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5891 $as_echo "$ac_cv_sizeof_int" >&6; }
5892
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define SIZEOF_INT $ac_cv_sizeof_int
5897 _ACEOF
5898
5899
5900 # The cast to long int works around a bug in the HP C Compiler
5901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5903 # This bug is HP SR number 8606223364.
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5905 $as_echo_n "checking size of long... " >&6; }
5906 if ${ac_cv_sizeof_long+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5910
5911 else
5912   if test "$ac_cv_type_long" = yes; then
5913      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915 as_fn_error 77 "cannot compute sizeof (long)
5916 See \`config.log' for more details" "$LINENO" 5; }
5917    else
5918      ac_cv_sizeof_long=0
5919    fi
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5924 $as_echo "$ac_cv_sizeof_long" >&6; }
5925
5926
5927
5928 cat >>confdefs.h <<_ACEOF
5929 #define SIZEOF_LONG $ac_cv_sizeof_long
5930 _ACEOF
5931
5932
5933 # The cast to long int works around a bug in the HP C Compiler
5934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5936 # This bug is HP SR number 8606223364.
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5938 $as_echo_n "checking size of long long... " >&6; }
5939 if ${ac_cv_sizeof_long_long+:} false; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5943
5944 else
5945   if test "$ac_cv_type_long_long" = yes; then
5946      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948 as_fn_error 77 "cannot compute sizeof (long long)
5949 See \`config.log' for more details" "$LINENO" 5; }
5950    else
5951      ac_cv_sizeof_long_long=0
5952    fi
5953 fi
5954
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5957 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5958
5959
5960
5961 cat >>confdefs.h <<_ACEOF
5962 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5963 _ACEOF
5964
5965
5966 # The cast to long int works around a bug in the HP C Compiler
5967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5969 # This bug is HP SR number 8606223364.
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5971 $as_echo_n "checking size of void *... " >&6; }
5972 if ${ac_cv_sizeof_void_p+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5976
5977 else
5978   if test "$ac_cv_type_void_p" = yes; then
5979      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5981 as_fn_error 77 "cannot compute sizeof (void *)
5982 See \`config.log' for more details" "$LINENO" 5; }
5983    else
5984      ac_cv_sizeof_void_p=0
5985    fi
5986 fi
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5990 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5991
5992
5993
5994 cat >>confdefs.h <<_ACEOF
5995 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5996 _ACEOF
5997
5998
5999
6000 ac_fn_cxx_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
6001 if test "x$ac_cv_have_decl_getline" = xyes; then :
6002   ac_have_decl=1
6003 else
6004   ac_have_decl=0
6005 fi
6006
6007 cat >>confdefs.h <<_ACEOF
6008 #define HAVE_DECL_GETLINE $ac_have_decl
6009 _ACEOF
6010
6011
6012 for ac_header in time.h execinfo.h
6013 do :
6014   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6015 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6017   cat >>confdefs.h <<_ACEOF
6018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6019 _ACEOF
6020
6021 fi
6022
6023 done
6024
6025 ac_fn_cxx_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#if HAVE_TIME_H
6026 # include <time.h>
6027 #endif
6028 "
6029 if test "x$ac_cv_have_decl_clock_gettime" = xyes; then :
6030   ac_have_decl=1
6031 else
6032   ac_have_decl=0
6033 fi
6034
6035 cat >>confdefs.h <<_ACEOF
6036 #define HAVE_DECL_CLOCK_GETTIME $ac_have_decl
6037 _ACEOF
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6040 $as_echo_n "checking for library containing clock_gettime... " >&6; }
6041 if ${ac_cv_search_clock_gettime+:} false; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   ac_func_search_save_LIBS=$LIBS
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h.  */
6047
6048 /* Override any GCC internal prototype to avoid an error.
6049    Use char because int might match the return type of a GCC
6050    builtin and then its argument prototype would still apply.  */
6051 #ifdef __cplusplus
6052 extern "C"
6053 #endif
6054 char clock_gettime ();
6055 int
6056 main ()
6057 {
6058 return clock_gettime ();
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 for ac_lib in '' rt; do
6064   if test -z "$ac_lib"; then
6065     ac_res="none required"
6066   else
6067     ac_res=-l$ac_lib
6068     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6069   fi
6070   if ac_fn_cxx_try_link "$LINENO"; then :
6071   ac_cv_search_clock_gettime=$ac_res
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext \
6074     conftest$ac_exeext
6075   if ${ac_cv_search_clock_gettime+:} false; then :
6076   break
6077 fi
6078 done
6079 if ${ac_cv_search_clock_gettime+:} false; then :
6080
6081 else
6082   ac_cv_search_clock_gettime=no
6083 fi
6084 rm conftest.$ac_ext
6085 LIBS=$ac_func_search_save_LIBS
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6088 $as_echo "$ac_cv_search_clock_gettime" >&6; }
6089 ac_res=$ac_cv_search_clock_gettime
6090 if test "$ac_res" != no; then :
6091   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6092
6093 fi
6094
6095 for ac_func in clock_gettime
6096 do :
6097   ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
6098 if test "x$ac_cv_func_clock_gettime" = xyes; then :
6099   cat >>confdefs.h <<_ACEOF
6100 #define HAVE_CLOCK_GETTIME 1
6101 _ACEOF
6102
6103 fi
6104 done
6105
6106
6107
6108 # Check whether --enable-row-type was given.
6109 if test "${enable_row_type+set}" = set; then :
6110   enableval=$enable_row_type; ac_cv_row_type=$enableval
6111 else
6112   ac_cv_row_type=bag
6113 fi
6114
6115 if test "$ac_cv_row_type" = array; then
6116
6117 cat >>confdefs.h <<_ACEOF
6118 #define MASSTREE_ROW_TYPE_ARRAY 1
6119 _ACEOF
6120
6121 elif test "$ac_cv_row_type" = array_ver; then
6122
6123 cat >>confdefs.h <<_ACEOF
6124 #define MASSTREE_ROW_TYPE_ARRAY_VER 1
6125 _ACEOF
6126
6127 elif test "$ac_cv_row_type" = bag; then
6128
6129 cat >>confdefs.h <<_ACEOF
6130 #define MASSTREE_ROW_TYPE_BAG 1
6131 _ACEOF
6132
6133 elif test "$ac_cv_row_type" = str; then
6134
6135 cat >>confdefs.h <<_ACEOF
6136 #define MASSTREE_ROW_TYPE_STR 1
6137 _ACEOF
6138
6139 else
6140     as_fn_error $? "$ac_cv_row_type: Unknown row type" "$LINENO" 5
6141 fi
6142
6143 # Check whether --enable-max-key-len was given.
6144 if test "${enable_max_key_len+set}" = set; then :
6145   enableval=$enable_max_key_len; ac_cv_max_key_len=$enableval
6146 else
6147   ac_cv_max_key_len=255
6148 fi
6149
6150
6151 cat >>confdefs.h <<_ACEOF
6152 #define MASSTREE_MAXKEYLEN $ac_cv_max_key_len
6153 _ACEOF
6154
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MADV_HUGEPAGE is supported" >&5
6157 $as_echo_n "checking whether MADV_HUGEPAGE is supported... " >&6; }
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h.  */
6160 #include <sys/mman.h>
6161 #ifndef MADV_HUGEPAGE
6162 #error "no"
6163 #endif
6164 int
6165 main ()
6166 {
6167
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 if ac_fn_cxx_try_cpp "$LINENO"; then :
6173   have_madv_hugepage=yes
6174 else
6175   have_madv_hugepage=no
6176 fi
6177 rm -f conftest.err conftest.i conftest.$ac_ext
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_madv_hugepage" >&5
6179 $as_echo "$have_madv_hugepage" >&6; }
6180 if test $have_madv_hugepage = yes; then
6181
6182 $as_echo "#define HAVE_MADV_HUGEPAGE 1" >>confdefs.h
6183
6184 fi
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MAP_HUGETLB is supported" >&5
6187 $as_echo_n "checking whether MAP_HUGETLB is supported... " >&6; }
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h.  */
6190 #include <sys/mman.h>
6191 #ifndef MAP_HUGETLB
6192 #error "no"
6193 #endif
6194 int
6195 main ()
6196 {
6197
6198   ;
6199   return 0;
6200 }
6201 _ACEOF
6202 if ac_fn_cxx_try_cpp "$LINENO"; then :
6203   have_map_hugetlb=yes
6204 else
6205   have_map_hugetlb=no
6206 fi
6207 rm -f conftest.err conftest.i conftest.$ac_ext
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_map_hugetlb" >&5
6209 $as_echo "$have_map_hugetlb" >&6; }
6210 if test $have_map_hugetlb = yes; then
6211
6212 $as_echo "#define HAVE_MAP_HUGETLB 1" >>confdefs.h
6213
6214 fi
6215
6216 # Check whether --enable-superpage was given.
6217 if test "${enable_superpage+set}" = set; then :
6218   enableval=$enable_superpage;
6219 else
6220   enable_superpage=maybe
6221 fi
6222
6223 if test "$enable_superpage $have_madv_hugepage $have_map_hugetlb" = "yes no no"; then
6224     as_fn_error $? "
6225 Error: superpages are not supported on this machine.
6226 Try again without --enable-superpage.
6227 " "$LINENO" 5
6228 elif test "$enable_superpage $have_madv_hugepage $have_map_hugetlb" != "maybe no no" -a "$enable_superpage" != no; then
6229
6230 cat >>confdefs.h <<_ACEOF
6231 #define HAVE_SUPERPAGE 1
6232 _ACEOF
6233
6234 fi
6235
6236 # Check whether --enable-memdebug was given.
6237 if test "${enable_memdebug+set}" = set; then :
6238   enableval=$enable_memdebug;
6239 fi
6240
6241 if test "$enable_memdebug" = yes; then
6242
6243 cat >>confdefs.h <<_ACEOF
6244 #define HAVE_MEMDEBUG 1
6245 _ACEOF
6246
6247 fi
6248
6249 # Check whether --enable-assert was given.
6250 if test "${enable_assert+set}" = set; then :
6251   enableval=$enable_assert; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --disable-assertions instead of --disable-assert." >&5
6252 $as_echo "$as_me: WARNING: Use --disable-assertions instead of --disable-assert." >&2;}
6253 fi
6254
6255 # Check whether --enable-assertions was given.
6256 if test "${enable_assertions+set}" = set; then :
6257   enableval=$enable_assertions;
6258 fi
6259
6260 if test "$enable_assertions" != no -o "(" -z "$enable_assertions" -a "$enable_assert" != no ")"; then
6261
6262 cat >>confdefs.h <<_ACEOF
6263 #define ENABLE_ASSERTIONS 1
6264 _ACEOF
6265
6266 fi
6267
6268 # Check whether --enable-preconditions was given.
6269 if test "${enable_preconditions+set}" = set; then :
6270   enableval=$enable_preconditions;
6271 fi
6272
6273 if test "$enable_preconditions" = no; then
6274
6275 cat >>confdefs.h <<_ACEOF
6276 #define ENABLE_PRECONDITIONS 0
6277 _ACEOF
6278
6279 elif test -n "$enable_preconditions"; then
6280
6281 cat >>confdefs.h <<_ACEOF
6282 #define ENABLE_PRECONDITIONS 1
6283 _ACEOF
6284
6285 fi
6286
6287 # Check whether --enable-invariants was given.
6288 if test "${enable_invariants+set}" = set; then :
6289   enableval=$enable_invariants;
6290 fi
6291
6292 if test "$enable_invariants" = no; then
6293
6294 cat >>confdefs.h <<_ACEOF
6295 #define ENABLE_INVARIANTS 0
6296 _ACEOF
6297
6298 elif test -n "$enable_preconditions"; then
6299
6300 cat >>confdefs.h <<_ACEOF
6301 #define ENABLE_INVARIANTS 1
6302 _ACEOF
6303
6304 fi
6305
6306
6307 cat >>confdefs.h <<_ACEOF
6308 #define CACHE_LINE_SIZE 64
6309 _ACEOF
6310
6311
6312
6313
6314
6315
6316
6317 cat >>confdefs.h <<_ACEOF
6318 #define HAVE_UNALIGNED_ACCESS 1
6319 _ACEOF
6320
6321
6322 cat >confcache <<\_ACEOF
6323 # This file is a shell script that caches the results of configure
6324 # tests run on this system so they can be shared between configure
6325 # scripts and configure runs, see configure's option --config-cache.
6326 # It is not useful on other systems.  If it contains results you don't
6327 # want to keep, you may remove or edit it.
6328 #
6329 # config.status only pays attention to the cache file if you give it
6330 # the --recheck option to rerun configure.
6331 #
6332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6334 # following values.
6335
6336 _ACEOF
6337
6338 # The following way of writing the cache mishandles newlines in values,
6339 # but we know of no workaround that is simple, portable, and efficient.
6340 # So, we kill variables containing newlines.
6341 # Ultrix sh set writes to stderr and can't be redirected directly,
6342 # and sets the high bit in the cache file unless we assign to the vars.
6343 (
6344   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6345     eval ac_val=\$$ac_var
6346     case $ac_val in #(
6347     *${as_nl}*)
6348       case $ac_var in #(
6349       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6350 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6351       esac
6352       case $ac_var in #(
6353       _ | IFS | as_nl) ;; #(
6354       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6355       *) { eval $ac_var=; unset $ac_var;} ;;
6356       esac ;;
6357     esac
6358   done
6359
6360   (set) 2>&1 |
6361     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6362     *${as_nl}ac_space=\ *)
6363       # `set' does not quote correctly, so add quotes: double-quote
6364       # substitution turns \\\\ into \\, and sed turns \\ into \.
6365       sed -n \
6366         "s/'/'\\\\''/g;
6367           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6368       ;; #(
6369     *)
6370       # `set' quotes correctly as required by POSIX, so do not add quotes.
6371       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6372       ;;
6373     esac |
6374     sort
6375 ) |
6376   sed '
6377      /^ac_cv_env_/b end
6378      t clear
6379      :clear
6380      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6381      t end
6382      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6383      :end' >>confcache
6384 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6385   if test -w "$cache_file"; then
6386     if test "x$cache_file" != "x/dev/null"; then
6387       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6388 $as_echo "$as_me: updating cache $cache_file" >&6;}
6389       if test ! -f "$cache_file" || test -h "$cache_file"; then
6390         cat confcache >"$cache_file"
6391       else
6392         case $cache_file in #(
6393         */* | ?:*)
6394           mv -f confcache "$cache_file"$$ &&
6395           mv -f "$cache_file"$$ "$cache_file" ;; #(
6396         *)
6397           mv -f confcache "$cache_file" ;;
6398         esac
6399       fi
6400     fi
6401   else
6402     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6403 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6404   fi
6405 fi
6406 rm -f confcache
6407
6408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6409 # Let make expand exec_prefix.
6410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6411
6412 DEFS=-DHAVE_CONFIG_H
6413
6414 ac_libobjs=
6415 ac_ltlibobjs=
6416 U=
6417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6418   # 1. Remove the extension, and $U if already installed.
6419   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6420   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6421   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6422   #    will be set to the directory where LIBOBJS objects are built.
6423   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6424   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6425 done
6426 LIBOBJS=$ac_libobjs
6427
6428 LTLIBOBJS=$ac_ltlibobjs
6429
6430
6431
6432
6433 : "${CONFIG_STATUS=./config.status}"
6434 ac_write_fail=0
6435 ac_clean_files_save=$ac_clean_files
6436 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6438 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6439 as_write_fail=0
6440 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6441 #! $SHELL
6442 # Generated by $as_me.
6443 # Run this file to recreate the current configuration.
6444 # Compiler output produced by configure, useful for debugging
6445 # configure, is in config.log if it exists.
6446
6447 debug=false
6448 ac_cs_recheck=false
6449 ac_cs_silent=false
6450
6451 SHELL=\${CONFIG_SHELL-$SHELL}
6452 export SHELL
6453 _ASEOF
6454 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6455 ## -------------------- ##
6456 ## M4sh Initialization. ##
6457 ## -------------------- ##
6458
6459 # Be more Bourne compatible
6460 DUALCASE=1; export DUALCASE # for MKS sh
6461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6462   emulate sh
6463   NULLCMD=:
6464   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6465   # is contrary to our usage.  Disable this feature.
6466   alias -g '${1+"$@"}'='"$@"'
6467   setopt NO_GLOB_SUBST
6468 else
6469   case `(set -o) 2>/dev/null` in #(
6470   *posix*) :
6471     set -o posix ;; #(
6472   *) :
6473      ;;
6474 esac
6475 fi
6476
6477
6478 as_nl='
6479 '
6480 export as_nl
6481 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6482 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6483 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6485 # Prefer a ksh shell builtin over an external printf program on Solaris,
6486 # but without wasting forks for bash or zsh.
6487 if test -z "$BASH_VERSION$ZSH_VERSION" \
6488     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6489   as_echo='print -r --'
6490   as_echo_n='print -rn --'
6491 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6492   as_echo='printf %s\n'
6493   as_echo_n='printf %s'
6494 else
6495   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6496     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6497     as_echo_n='/usr/ucb/echo -n'
6498   else
6499     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6500     as_echo_n_body='eval
6501       arg=$1;
6502       case $arg in #(
6503       *"$as_nl"*)
6504         expr "X$arg" : "X\\(.*\\)$as_nl";
6505         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6506       esac;
6507       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6508     '
6509     export as_echo_n_body
6510     as_echo_n='sh -c $as_echo_n_body as_echo'
6511   fi
6512   export as_echo_body
6513   as_echo='sh -c $as_echo_body as_echo'
6514 fi
6515
6516 # The user is always right.
6517 if test "${PATH_SEPARATOR+set}" != set; then
6518   PATH_SEPARATOR=:
6519   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6520     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6521       PATH_SEPARATOR=';'
6522   }
6523 fi
6524
6525
6526 # IFS
6527 # We need space, tab and new line, in precisely that order.  Quoting is
6528 # there to prevent editors from complaining about space-tab.
6529 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6530 # splitting by setting IFS to empty value.)
6531 IFS=" ""        $as_nl"
6532
6533 # Find who we are.  Look in the path if we contain no directory separator.
6534 as_myself=
6535 case $0 in #((
6536   *[\\/]* ) as_myself=$0 ;;
6537   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6543   done
6544 IFS=$as_save_IFS
6545
6546      ;;
6547 esac
6548 # We did not find ourselves, most probably we were run as `sh COMMAND'
6549 # in which case we are not to be found in the path.
6550 if test "x$as_myself" = x; then
6551   as_myself=$0
6552 fi
6553 if test ! -f "$as_myself"; then
6554   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6555   exit 1
6556 fi
6557
6558 # Unset variables that we do not need and which cause bugs (e.g. in
6559 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6560 # suppresses any "Segmentation fault" message there.  '((' could
6561 # trigger a bug in pdksh 5.2.14.
6562 for as_var in BASH_ENV ENV MAIL MAILPATH
6563 do eval test x\${$as_var+set} = xset \
6564   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6565 done
6566 PS1='$ '
6567 PS2='> '
6568 PS4='+ '
6569
6570 # NLS nuisances.
6571 LC_ALL=C
6572 export LC_ALL
6573 LANGUAGE=C
6574 export LANGUAGE
6575
6576 # CDPATH.
6577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6578
6579
6580 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6581 # ----------------------------------------
6582 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6583 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6584 # script with STATUS, using 1 if that was 0.
6585 as_fn_error ()
6586 {
6587   as_status=$1; test $as_status -eq 0 && as_status=1
6588   if test "$4"; then
6589     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6590     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6591   fi
6592   $as_echo "$as_me: error: $2" >&2
6593   as_fn_exit $as_status
6594 } # as_fn_error
6595
6596
6597 # as_fn_set_status STATUS
6598 # -----------------------
6599 # Set $? to STATUS, without forking.
6600 as_fn_set_status ()
6601 {
6602   return $1
6603 } # as_fn_set_status
6604
6605 # as_fn_exit STATUS
6606 # -----------------
6607 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6608 as_fn_exit ()
6609 {
6610   set +e
6611   as_fn_set_status $1
6612   exit $1
6613 } # as_fn_exit
6614
6615 # as_fn_unset VAR
6616 # ---------------
6617 # Portably unset VAR.
6618 as_fn_unset ()
6619 {
6620   { eval $1=; unset $1;}
6621 }
6622 as_unset=as_fn_unset
6623 # as_fn_append VAR VALUE
6624 # ----------------------
6625 # Append the text in VALUE to the end of the definition contained in VAR. Take
6626 # advantage of any shell optimizations that allow amortized linear growth over
6627 # repeated appends, instead of the typical quadratic growth present in naive
6628 # implementations.
6629 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6630   eval 'as_fn_append ()
6631   {
6632     eval $1+=\$2
6633   }'
6634 else
6635   as_fn_append ()
6636   {
6637     eval $1=\$$1\$2
6638   }
6639 fi # as_fn_append
6640
6641 # as_fn_arith ARG...
6642 # ------------------
6643 # Perform arithmetic evaluation on the ARGs, and store the result in the
6644 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6645 # must be portable across $(()) and expr.
6646 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6647   eval 'as_fn_arith ()
6648   {
6649     as_val=$(( $* ))
6650   }'
6651 else
6652   as_fn_arith ()
6653   {
6654     as_val=`expr "$@" || test $? -eq 1`
6655   }
6656 fi # as_fn_arith
6657
6658
6659 if expr a : '\(a\)' >/dev/null 2>&1 &&
6660    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6661   as_expr=expr
6662 else
6663   as_expr=false
6664 fi
6665
6666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6667   as_basename=basename
6668 else
6669   as_basename=false
6670 fi
6671
6672 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6673   as_dirname=dirname
6674 else
6675   as_dirname=false
6676 fi
6677
6678 as_me=`$as_basename -- "$0" ||
6679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6680          X"$0" : 'X\(//\)$' \| \
6681          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6682 $as_echo X/"$0" |
6683     sed '/^.*\/\([^/][^/]*\)\/*$/{
6684             s//\1/
6685             q
6686           }
6687           /^X\/\(\/\/\)$/{
6688             s//\1/
6689             q
6690           }
6691           /^X\/\(\/\).*/{
6692             s//\1/
6693             q
6694           }
6695           s/.*/./; q'`
6696
6697 # Avoid depending upon Character Ranges.
6698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6701 as_cr_digits='0123456789'
6702 as_cr_alnum=$as_cr_Letters$as_cr_digits
6703
6704 ECHO_C= ECHO_N= ECHO_T=
6705 case `echo -n x` in #(((((
6706 -n*)
6707   case `echo 'xy\c'` in
6708   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6709   xy)  ECHO_C='\c';;
6710   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6711        ECHO_T=' ';;
6712   esac;;
6713 *)
6714   ECHO_N='-n';;
6715 esac
6716
6717 rm -f conf$$ conf$$.exe conf$$.file
6718 if test -d conf$$.dir; then
6719   rm -f conf$$.dir/conf$$.file
6720 else
6721   rm -f conf$$.dir
6722   mkdir conf$$.dir 2>/dev/null
6723 fi
6724 if (echo >conf$$.file) 2>/dev/null; then
6725   if ln -s conf$$.file conf$$ 2>/dev/null; then
6726     as_ln_s='ln -s'
6727     # ... but there are two gotchas:
6728     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6729     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6730     # In both cases, we have to default to `cp -pR'.
6731     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6732       as_ln_s='cp -pR'
6733   elif ln conf$$.file conf$$ 2>/dev/null; then
6734     as_ln_s=ln
6735   else
6736     as_ln_s='cp -pR'
6737   fi
6738 else
6739   as_ln_s='cp -pR'
6740 fi
6741 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6742 rmdir conf$$.dir 2>/dev/null
6743
6744
6745 # as_fn_mkdir_p
6746 # -------------
6747 # Create "$as_dir" as a directory, including parents if necessary.
6748 as_fn_mkdir_p ()
6749 {
6750
6751   case $as_dir in #(
6752   -*) as_dir=./$as_dir;;
6753   esac
6754   test -d "$as_dir" || eval $as_mkdir_p || {
6755     as_dirs=
6756     while :; do
6757       case $as_dir in #(
6758       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6759       *) as_qdir=$as_dir;;
6760       esac
6761       as_dirs="'$as_qdir' $as_dirs"
6762       as_dir=`$as_dirname -- "$as_dir" ||
6763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6764          X"$as_dir" : 'X\(//\)[^/]' \| \
6765          X"$as_dir" : 'X\(//\)$' \| \
6766          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6767 $as_echo X"$as_dir" |
6768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6769             s//\1/
6770             q
6771           }
6772           /^X\(\/\/\)[^/].*/{
6773             s//\1/
6774             q
6775           }
6776           /^X\(\/\/\)$/{
6777             s//\1/
6778             q
6779           }
6780           /^X\(\/\).*/{
6781             s//\1/
6782             q
6783           }
6784           s/.*/./; q'`
6785       test -d "$as_dir" && break
6786     done
6787     test -z "$as_dirs" || eval "mkdir $as_dirs"
6788   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6789
6790
6791 } # as_fn_mkdir_p
6792 if mkdir -p . 2>/dev/null; then
6793   as_mkdir_p='mkdir -p "$as_dir"'
6794 else
6795   test -d ./-p && rmdir ./-p
6796   as_mkdir_p=false
6797 fi
6798
6799
6800 # as_fn_executable_p FILE
6801 # -----------------------
6802 # Test if FILE is an executable regular file.
6803 as_fn_executable_p ()
6804 {
6805   test -f "$1" && test -x "$1"
6806 } # as_fn_executable_p
6807 as_test_x='test -x'
6808 as_executable_p=as_fn_executable_p
6809
6810 # Sed expression to map a string onto a valid CPP name.
6811 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6812
6813 # Sed expression to map a string onto a valid variable name.
6814 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6815
6816
6817 exec 6>&1
6818 ## ----------------------------------- ##
6819 ## Main body of $CONFIG_STATUS script. ##
6820 ## ----------------------------------- ##
6821 _ASEOF
6822 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6823
6824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6825 # Save the log message, to keep $0 and so on meaningful, and to
6826 # report actual input values of CONFIG_FILES etc. instead of their
6827 # values after options handling.
6828 ac_log="
6829 This file was extended by masstree-beta $as_me 0.1, which was
6830 generated by GNU Autoconf 2.69.  Invocation command line was
6831
6832   CONFIG_FILES    = $CONFIG_FILES
6833   CONFIG_HEADERS  = $CONFIG_HEADERS
6834   CONFIG_LINKS    = $CONFIG_LINKS
6835   CONFIG_COMMANDS = $CONFIG_COMMANDS
6836   $ $0 $@
6837
6838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6839 "
6840
6841 _ACEOF
6842
6843 case $ac_config_files in *"
6844 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6845 esac
6846
6847 case $ac_config_headers in *"
6848 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6849 esac
6850
6851
6852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6853 # Files that config.status was made for.
6854 config_files="$ac_config_files"
6855 config_headers="$ac_config_headers"
6856
6857 _ACEOF
6858
6859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6860 ac_cs_usage="\
6861 \`$as_me' instantiates files and other configuration actions
6862 from templates according to the current configuration.  Unless the files
6863 and actions are specified as TAGs, all are instantiated by default.
6864
6865 Usage: $0 [OPTION]... [TAG]...
6866
6867   -h, --help       print this help, then exit
6868   -V, --version    print version number and configuration settings, then exit
6869       --config     print configuration, then exit
6870   -q, --quiet, --silent
6871                    do not print progress messages
6872   -d, --debug      don't remove temporary files
6873       --recheck    update $as_me by reconfiguring in the same conditions
6874       --file=FILE[:TEMPLATE]
6875                    instantiate the configuration file FILE
6876       --header=FILE[:TEMPLATE]
6877                    instantiate the configuration header FILE
6878
6879 Configuration files:
6880 $config_files
6881
6882 Configuration headers:
6883 $config_headers
6884
6885 Report bugs to the package provider."
6886
6887 _ACEOF
6888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6889 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6890 ac_cs_version="\\
6891 masstree-beta config.status 0.1
6892 configured by $0, generated by GNU Autoconf 2.69,
6893   with options \\"\$ac_cs_config\\"
6894
6895 Copyright (C) 2012 Free Software Foundation, Inc.
6896 This config.status script is free software; the Free Software Foundation
6897 gives unlimited permission to copy, distribute and modify it."
6898
6899 ac_pwd='$ac_pwd'
6900 srcdir='$srcdir'
6901 test -n "\$AWK" || AWK=awk
6902 _ACEOF
6903
6904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6905 # The default lists apply if the user does not specify any file.
6906 ac_need_defaults=:
6907 while test $# != 0
6908 do
6909   case $1 in
6910   --*=?*)
6911     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6912     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6913     ac_shift=:
6914     ;;
6915   --*=)
6916     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6917     ac_optarg=
6918     ac_shift=:
6919     ;;
6920   *)
6921     ac_option=$1
6922     ac_optarg=$2
6923     ac_shift=shift
6924     ;;
6925   esac
6926
6927   case $ac_option in
6928   # Handling of the options.
6929   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6930     ac_cs_recheck=: ;;
6931   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6932     $as_echo "$ac_cs_version"; exit ;;
6933   --config | --confi | --conf | --con | --co | --c )
6934     $as_echo "$ac_cs_config"; exit ;;
6935   --debug | --debu | --deb | --de | --d | -d )
6936     debug=: ;;
6937   --file | --fil | --fi | --f )
6938     $ac_shift
6939     case $ac_optarg in
6940     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6941     '') as_fn_error $? "missing file argument" ;;
6942     esac
6943     as_fn_append CONFIG_FILES " '$ac_optarg'"
6944     ac_need_defaults=false;;
6945   --header | --heade | --head | --hea )
6946     $ac_shift
6947     case $ac_optarg in
6948     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6949     esac
6950     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6951     ac_need_defaults=false;;
6952   --he | --h)
6953     # Conflict between --help and --header
6954     as_fn_error $? "ambiguous option: \`$1'
6955 Try \`$0 --help' for more information.";;
6956   --help | --hel | -h )
6957     $as_echo "$ac_cs_usage"; exit ;;
6958   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6959   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6960     ac_cs_silent=: ;;
6961
6962   # This is an error.
6963   -*) as_fn_error $? "unrecognized option: \`$1'
6964 Try \`$0 --help' for more information." ;;
6965
6966   *) as_fn_append ac_config_targets " $1"
6967      ac_need_defaults=false ;;
6968
6969   esac
6970   shift
6971 done
6972
6973 ac_configure_extra_args=
6974
6975 if $ac_cs_silent; then
6976   exec 6>/dev/null
6977   ac_configure_extra_args="$ac_configure_extra_args --silent"
6978 fi
6979
6980 _ACEOF
6981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6982 if \$ac_cs_recheck; then
6983   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6984   shift
6985   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6986   CONFIG_SHELL='$SHELL'
6987   export CONFIG_SHELL
6988   exec "\$@"
6989 fi
6990
6991 _ACEOF
6992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6993 exec 5>>config.log
6994 {
6995   echo
6996   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6997 ## Running $as_me. ##
6998 _ASBOX
6999   $as_echo "$ac_log"
7000 } >&5
7001
7002 _ACEOF
7003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7004 _ACEOF
7005
7006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7007
7008 # Handling of arguments.
7009 for ac_config_target in $ac_config_targets
7010 do
7011   case $ac_config_target in
7012     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7013     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
7014
7015   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7016   esac
7017 done
7018
7019
7020 # If the user did not use the arguments to specify the items to instantiate,
7021 # then the envvar interface is used.  Set only those that are not.
7022 # We use the long form for the default assignment because of an extremely
7023 # bizarre bug on SunOS 4.1.3.
7024 if $ac_need_defaults; then
7025   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7026   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7027 fi
7028
7029 # Have a temporary directory for convenience.  Make it in the build tree
7030 # simply because there is no reason against having it here, and in addition,
7031 # creating and moving files from /tmp can sometimes cause problems.
7032 # Hook for its removal unless debugging.
7033 # Note that there is a small window in which the directory will not be cleaned:
7034 # after its creation but before its name has been assigned to `$tmp'.
7035 $debug ||
7036 {
7037   tmp= ac_tmp=
7038   trap 'exit_status=$?
7039   : "${ac_tmp:=$tmp}"
7040   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7041 ' 0
7042   trap 'as_fn_exit 1' 1 2 13 15
7043 }
7044 # Create a (secure) tmp directory for tmp files.
7045
7046 {
7047   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7048   test -d "$tmp"
7049 }  ||
7050 {
7051   tmp=./conf$$-$RANDOM
7052   (umask 077 && mkdir "$tmp")
7053 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7054 ac_tmp=$tmp
7055
7056 # Set up the scripts for CONFIG_FILES section.
7057 # No need to generate them if there are no CONFIG_FILES.
7058 # This happens for instance with `./config.status config.h'.
7059 if test -n "$CONFIG_FILES"; then
7060
7061
7062 ac_cr=`echo X | tr X '\015'`
7063 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7064 # But we know of no other shell where ac_cr would be empty at this
7065 # point, so we can use a bashism as a fallback.
7066 if test "x$ac_cr" = x; then
7067   eval ac_cr=\$\'\\r\'
7068 fi
7069 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7071   ac_cs_awk_cr='\\r'
7072 else
7073   ac_cs_awk_cr=$ac_cr
7074 fi
7075
7076 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7077 _ACEOF
7078
7079
7080 {
7081   echo "cat >conf$$subs.awk <<_ACEOF" &&
7082   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7083   echo "_ACEOF"
7084 } >conf$$subs.sh ||
7085   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7086 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7087 ac_delim='%!_!# '
7088 for ac_last_try in false false false false false :; do
7089   . ./conf$$subs.sh ||
7090     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7091
7092   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7093   if test $ac_delim_n = $ac_delim_num; then
7094     break
7095   elif $ac_last_try; then
7096     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7097   else
7098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7099   fi
7100 done
7101 rm -f conf$$subs.sh
7102
7103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7104 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7105 _ACEOF
7106 sed -n '
7107 h
7108 s/^/S["/; s/!.*/"]=/
7109 p
7110 g
7111 s/^[^!]*!//
7112 :repl
7113 t repl
7114 s/'"$ac_delim"'$//
7115 t delim
7116 :nl
7117 h
7118 s/\(.\{148\}\)..*/\1/
7119 t more1
7120 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7121 p
7122 n
7123 b repl
7124 :more1
7125 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7126 p
7127 g
7128 s/.\{148\}//
7129 t nl
7130 :delim
7131 h
7132 s/\(.\{148\}\)..*/\1/
7133 t more2
7134 s/["\\]/\\&/g; s/^/"/; s/$/"/
7135 p
7136 b
7137 :more2
7138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7139 p
7140 g
7141 s/.\{148\}//
7142 t delim
7143 ' <conf$$subs.awk | sed '
7144 /^[^""]/{
7145   N
7146   s/\n//
7147 }
7148 ' >>$CONFIG_STATUS || ac_write_fail=1
7149 rm -f conf$$subs.awk
7150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7151 _ACAWK
7152 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7153   for (key in S) S_is_set[key] = 1
7154   FS = "\a"
7155
7156 }
7157 {
7158   line = $ 0
7159   nfields = split(line, field, "@")
7160   substed = 0
7161   len = length(field[1])
7162   for (i = 2; i < nfields; i++) {
7163     key = field[i]
7164     keylen = length(key)
7165     if (S_is_set[key]) {
7166       value = S[key]
7167       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7168       len += length(value) + length(field[++i])
7169       substed = 1
7170     } else
7171       len += 1 + keylen
7172   }
7173
7174   print line
7175 }
7176
7177 _ACAWK
7178 _ACEOF
7179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7180 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7181   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7182 else
7183   cat
7184 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7185   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7186 _ACEOF
7187
7188 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7189 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7190 # trailing colons and then remove the whole line if VPATH becomes empty
7191 # (actually we leave an empty line to preserve line numbers).
7192 if test "x$srcdir" = x.; then
7193   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7194 h
7195 s///
7196 s/^/:/
7197 s/[      ]*$/:/
7198 s/:\$(srcdir):/:/g
7199 s/:\${srcdir}:/:/g
7200 s/:@srcdir@:/:/g
7201 s/^:*//
7202 s/:*$//
7203 x
7204 s/\(=[   ]*\).*/\1/
7205 G
7206 s/\n//
7207 s/^[^=]*=[       ]*$//
7208 }'
7209 fi
7210
7211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7212 fi # test -n "$CONFIG_FILES"
7213
7214 # Set up the scripts for CONFIG_HEADERS section.
7215 # No need to generate them if there are no CONFIG_HEADERS.
7216 # This happens for instance with `./config.status Makefile'.
7217 if test -n "$CONFIG_HEADERS"; then
7218 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7219 BEGIN {
7220 _ACEOF
7221
7222 # Transform confdefs.h into an awk script `defines.awk', embedded as
7223 # here-document in config.status, that substitutes the proper values into
7224 # config.h.in to produce config.h.
7225
7226 # Create a delimiter string that does not exist in confdefs.h, to ease
7227 # handling of long lines.
7228 ac_delim='%!_!# '
7229 for ac_last_try in false false :; do
7230   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7231   if test -z "$ac_tt"; then
7232     break
7233   elif $ac_last_try; then
7234     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7235   else
7236     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7237   fi
7238 done
7239
7240 # For the awk script, D is an array of macro values keyed by name,
7241 # likewise P contains macro parameters if any.  Preserve backslash
7242 # newline sequences.
7243
7244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7245 sed -n '
7246 s/.\{148\}/&'"$ac_delim"'/g
7247 t rset
7248 :rset
7249 s/^[     ]*#[    ]*define[       ][      ]*/ /
7250 t def
7251 d
7252 :def
7253 s/\\$//
7254 t bsnl
7255 s/["\\]/\\&/g
7256 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7257 D["\1"]=" \3"/p
7258 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7259 d
7260 :bsnl
7261 s/["\\]/\\&/g
7262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7263 D["\1"]=" \3\\\\\\n"\\/p
7264 t cont
7265 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7266 t cont
7267 d
7268 :cont
7269 n
7270 s/.\{148\}/&'"$ac_delim"'/g
7271 t clear
7272 :clear
7273 s/\\$//
7274 t bsnlc
7275 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7276 d
7277 :bsnlc
7278 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7279 b cont
7280 ' <confdefs.h | sed '
7281 s/'"$ac_delim"'/"\\\
7282 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7283
7284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7285   for (key in D) D_is_set[key] = 1
7286   FS = "\a"
7287 }
7288 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7289   line = \$ 0
7290   split(line, arg, " ")
7291   if (arg[1] == "#") {
7292     defundef = arg[2]
7293     mac1 = arg[3]
7294   } else {
7295     defundef = substr(arg[1], 2)
7296     mac1 = arg[2]
7297   }
7298   split(mac1, mac2, "(") #)
7299   macro = mac2[1]
7300   prefix = substr(line, 1, index(line, defundef) - 1)
7301   if (D_is_set[macro]) {
7302     # Preserve the white space surrounding the "#".
7303     print prefix "define", macro P[macro] D[macro]
7304     next
7305   } else {
7306     # Replace #undef with comments.  This is necessary, for example,
7307     # in the case of _POSIX_SOURCE, which is predefined and required
7308     # on some systems where configure will not decide to define it.
7309     if (defundef == "undef") {
7310       print "/*", prefix defundef, macro, "*/"
7311       next
7312     }
7313   }
7314 }
7315 { print }
7316 _ACAWK
7317 _ACEOF
7318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7319   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7320 fi # test -n "$CONFIG_HEADERS"
7321
7322
7323 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7324 shift
7325 for ac_tag
7326 do
7327   case $ac_tag in
7328   :[FHLC]) ac_mode=$ac_tag; continue;;
7329   esac
7330   case $ac_mode$ac_tag in
7331   :[FHL]*:*);;
7332   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7333   :[FH]-) ac_tag=-:-;;
7334   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7335   esac
7336   ac_save_IFS=$IFS
7337   IFS=:
7338   set x $ac_tag
7339   IFS=$ac_save_IFS
7340   shift
7341   ac_file=$1
7342   shift
7343
7344   case $ac_mode in
7345   :L) ac_source=$1;;
7346   :[FH])
7347     ac_file_inputs=
7348     for ac_f
7349     do
7350       case $ac_f in
7351       -) ac_f="$ac_tmp/stdin";;
7352       *) # Look for the file first in the build tree, then in the source tree
7353          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7354          # because $ac_f cannot contain `:'.
7355          test -f "$ac_f" ||
7356            case $ac_f in
7357            [\\/$]*) false;;
7358            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7359            esac ||
7360            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7361       esac
7362       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7363       as_fn_append ac_file_inputs " '$ac_f'"
7364     done
7365
7366     # Let's still pretend it is `configure' which instantiates (i.e., don't
7367     # use $as_me), people would be surprised to read:
7368     #    /* config.h.  Generated by config.status.  */
7369     configure_input='Generated from '`
7370           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7371         `' by configure.'
7372     if test x"$ac_file" != x-; then
7373       configure_input="$ac_file.  $configure_input"
7374       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7375 $as_echo "$as_me: creating $ac_file" >&6;}
7376     fi
7377     # Neutralize special characters interpreted by sed in replacement strings.
7378     case $configure_input in #(
7379     *\&* | *\|* | *\\* )
7380        ac_sed_conf_input=`$as_echo "$configure_input" |
7381        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7382     *) ac_sed_conf_input=$configure_input;;
7383     esac
7384
7385     case $ac_tag in
7386     *:-:* | *:-) cat >"$ac_tmp/stdin" \
7387       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7388     esac
7389     ;;
7390   esac
7391
7392   ac_dir=`$as_dirname -- "$ac_file" ||
7393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7394          X"$ac_file" : 'X\(//\)[^/]' \| \
7395          X"$ac_file" : 'X\(//\)$' \| \
7396          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7397 $as_echo X"$ac_file" |
7398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7399             s//\1/
7400             q
7401           }
7402           /^X\(\/\/\)[^/].*/{
7403             s//\1/
7404             q
7405           }
7406           /^X\(\/\/\)$/{
7407             s//\1/
7408             q
7409           }
7410           /^X\(\/\).*/{
7411             s//\1/
7412             q
7413           }
7414           s/.*/./; q'`
7415   as_dir="$ac_dir"; as_fn_mkdir_p
7416   ac_builddir=.
7417
7418 case "$ac_dir" in
7419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7420 *)
7421   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7422   # A ".." for each directory in $ac_dir_suffix.
7423   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7424   case $ac_top_builddir_sub in
7425   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7426   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7427   esac ;;
7428 esac
7429 ac_abs_top_builddir=$ac_pwd
7430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7431 # for backward compatibility:
7432 ac_top_builddir=$ac_top_build_prefix
7433
7434 case $srcdir in
7435   .)  # We are building in place.
7436     ac_srcdir=.
7437     ac_top_srcdir=$ac_top_builddir_sub
7438     ac_abs_top_srcdir=$ac_pwd ;;
7439   [\\/]* | ?:[\\/]* )  # Absolute name.
7440     ac_srcdir=$srcdir$ac_dir_suffix;
7441     ac_top_srcdir=$srcdir
7442     ac_abs_top_srcdir=$srcdir ;;
7443   *) # Relative name.
7444     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7445     ac_top_srcdir=$ac_top_build_prefix$srcdir
7446     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7447 esac
7448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7449
7450
7451   case $ac_mode in
7452   :F)
7453   #
7454   # CONFIG_FILE
7455   #
7456
7457 _ACEOF
7458
7459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7460 # If the template does not know about datarootdir, expand it.
7461 # FIXME: This hack should be removed a few years after 2.60.
7462 ac_datarootdir_hack=; ac_datarootdir_seen=
7463 ac_sed_dataroot='
7464 /datarootdir/ {
7465   p
7466   q
7467 }
7468 /@datadir@/p
7469 /@docdir@/p
7470 /@infodir@/p
7471 /@localedir@/p
7472 /@mandir@/p'
7473 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7474 *datarootdir*) ac_datarootdir_seen=yes;;
7475 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7477 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7478 _ACEOF
7479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7480   ac_datarootdir_hack='
7481   s&@datadir@&$datadir&g
7482   s&@docdir@&$docdir&g
7483   s&@infodir@&$infodir&g
7484   s&@localedir@&$localedir&g
7485   s&@mandir@&$mandir&g
7486   s&\\\${datarootdir}&$datarootdir&g' ;;
7487 esac
7488 _ACEOF
7489
7490 # Neutralize VPATH when `$srcdir' = `.'.
7491 # Shell code in configure.ac might set extrasub.
7492 # FIXME: do we really want to maintain this feature?
7493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7494 ac_sed_extra="$ac_vpsub
7495 $extrasub
7496 _ACEOF
7497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7498 :t
7499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7500 s|@configure_input@|$ac_sed_conf_input|;t t
7501 s&@top_builddir@&$ac_top_builddir_sub&;t t
7502 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7503 s&@srcdir@&$ac_srcdir&;t t
7504 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7505 s&@top_srcdir@&$ac_top_srcdir&;t t
7506 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7507 s&@builddir@&$ac_builddir&;t t
7508 s&@abs_builddir@&$ac_abs_builddir&;t t
7509 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7510 $ac_datarootdir_hack
7511 "
7512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7513   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7514
7515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7516   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7517   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
7518       "$ac_tmp/out"`; test -z "$ac_out"; } &&
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7520 which seems to be undefined.  Please make sure it is defined" >&5
7521 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7522 which seems to be undefined.  Please make sure it is defined" >&2;}
7523
7524   rm -f "$ac_tmp/stdin"
7525   case $ac_file in
7526   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7527   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7528   esac \
7529   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7530  ;;
7531   :H)
7532   #
7533   # CONFIG_HEADER
7534   #
7535   if test x"$ac_file" != x-; then
7536     {
7537       $as_echo "/* $configure_input  */" \
7538       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7539     } >"$ac_tmp/config.h" \
7540       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7541     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7542       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7543 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7544     else
7545       rm -f "$ac_file"
7546       mv "$ac_tmp/config.h" "$ac_file" \
7547         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7548     fi
7549   else
7550     $as_echo "/* $configure_input  */" \
7551       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7552       || as_fn_error $? "could not create -" "$LINENO" 5
7553   fi
7554  ;;
7555
7556
7557   esac
7558
7559 done # for ac_tag
7560
7561
7562 as_fn_exit 0
7563 _ACEOF
7564 ac_clean_files=$ac_clean_files_save
7565
7566 test $ac_write_fail = 0 ||
7567   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7568
7569
7570 # configure is writing to config.log, and then calls config.status.
7571 # config.status does its own redirection, appending to config.log.
7572 # Unfortunately, on DOS this fails, as config.log is still kept open
7573 # by configure, so config.status won't be able to write to it; its
7574 # output is simply discarded.  So we exec the FD to /dev/null,
7575 # effectively closing config.log, so it can be properly (re)opened and
7576 # appended to by config.status.  When coming back to configure, we
7577 # need to make the FD available again.
7578 if test "$no_create" != yes; then
7579   ac_cs_success=:
7580   ac_config_status_args=
7581   test "$silent" = yes &&
7582     ac_config_status_args="$ac_config_status_args --quiet"
7583   exec 5>/dev/null
7584   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7585   exec 5>>config.log
7586   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7587   # would make configure fail if this is the last instruction.
7588   $ac_cs_success || as_fn_exit 1
7589 fi
7590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7592 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7593 fi
7594