1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for lnav 0.10.1.
4#
5# Report bugs to <lnav@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: lnav@googlegroups.com about your system, including any
272$0: error possibly output before this message. Then install
273$0: a modern shell, or manually run the script under such a
274$0: shell if you do have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298
299# as_fn_set_status STATUS
300# -----------------------
301# Set $? to STATUS, without forking.
302as_fn_set_status ()
303{
304  return $1
305} # as_fn_set_status
306
307# as_fn_exit STATUS
308# -----------------
309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310as_fn_exit ()
311{
312  set +e
313  as_fn_set_status $1
314  exit $1
315} # as_fn_exit
316# as_fn_nop
317# ---------
318# Do nothing but, unlike ":", preserve the value of $?.
319as_fn_nop ()
320{
321  return $?
322}
323as_nop=as_fn_nop
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331  case $as_dir in #(
332  -*) as_dir=./$as_dir;;
333  esac
334  test -d "$as_dir" || eval $as_mkdir_p || {
335    as_dirs=
336    while :; do
337      case $as_dir in #(
338      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339      *) as_qdir=$as_dir;;
340      esac
341      as_dirs="'$as_qdir' $as_dirs"
342      as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344	 X"$as_dir" : 'X\(//\)[^/]' \| \
345	 X"$as_dir" : 'X\(//\)$' \| \
346	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347printf "%s\n" X"$as_dir" |
348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349	    s//\1/
350	    q
351	  }
352	  /^X\(\/\/\)[^/].*/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\/\)$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\).*/{
361	    s//\1/
362	    q
363	  }
364	  s/.*/./; q'`
365      test -d "$as_dir" && break
366    done
367    test -z "$as_dirs" || eval "mkdir $as_dirs"
368  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371} # as_fn_mkdir_p
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378  test -f "$1" && test -x "$1"
379} # as_fn_executable_p
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387then :
388  eval 'as_fn_append ()
389  {
390    eval $1+=\$2
391  }'
392else $as_nop
393  as_fn_append ()
394  {
395    eval $1=\$$1\$2
396  }
397fi # as_fn_append
398
399# as_fn_arith ARG...
400# ------------------
401# Perform arithmetic evaluation on the ARGs, and store the result in the
402# global $as_val. Take advantage of shells that can avoid forks. The arguments
403# must be portable across $(()) and expr.
404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405then :
406  eval 'as_fn_arith ()
407  {
408    as_val=$(( $* ))
409  }'
410else $as_nop
411  as_fn_arith ()
412  {
413    as_val=`expr "$@" || test $? -eq 1`
414  }
415fi # as_fn_arith
416
417# as_fn_nop
418# ---------
419# Do nothing but, unlike ":", preserve the value of $?.
420as_fn_nop ()
421{
422  return $?
423}
424as_nop=as_fn_nop
425
426# as_fn_error STATUS ERROR [LINENO LOG_FD]
427# ----------------------------------------
428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430# script with STATUS, using 1 if that was 0.
431as_fn_error ()
432{
433  as_status=$1; test $as_status -eq 0 && as_status=1
434  if test "$4"; then
435    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437  fi
438  printf "%s\n" "$as_me: error: $2" >&2
439  as_fn_exit $as_status
440} # as_fn_error
441
442if expr a : '\(a\)' >/dev/null 2>&1 &&
443   test "X`expr 00001 : '.*\(...\)'`" = X001; then
444  as_expr=expr
445else
446  as_expr=false
447fi
448
449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450  as_basename=basename
451else
452  as_basename=false
453fi
454
455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456  as_dirname=dirname
457else
458  as_dirname=false
459fi
460
461as_me=`$as_basename -- "$0" ||
462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463	 X"$0" : 'X\(//\)$' \| \
464	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465printf "%s\n" X/"$0" |
466    sed '/^.*\/\([^/][^/]*\)\/*$/{
467	    s//\1/
468	    q
469	  }
470	  /^X\/\(\/\/\)$/{
471	    s//\1/
472	    q
473	  }
474	  /^X\/\(\/\).*/{
475	    s//\1/
476	    q
477	  }
478	  s/.*/./; q'`
479
480# Avoid depending upon Character Ranges.
481as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484as_cr_digits='0123456789'
485as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488  as_lineno_1=$LINENO as_lineno_1a=$LINENO
489  as_lineno_2=$LINENO as_lineno_2a=$LINENO
490  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
493  sed -n '
494    p
495    /[$]LINENO/=
496  ' <$as_myself |
497    sed '
498      s/[$]LINENO.*/&-/
499      t lineno
500      b
501      :lineno
502      N
503      :loop
504      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505      t loop
506      s/-\n.*//
507    ' >$as_me.lineno &&
508  chmod +x "$as_me.lineno" ||
509    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512  # already done that, so ensure we don't try to do so again and fall
513  # in an infinite loop.  This has already happened in practice.
514  _as_can_reexec=no; export _as_can_reexec
515  # Don't try to exec as it changes $[0], causing all sort of problems
516  # (the dirname of $[0] is not the place where we might find the
517  # original and so on.  Autoconf is especially sensitive to this).
518  . "./$as_me.lineno"
519  # Exit status is that of the last command.
520  exit
521}
522
523
524# Determine whether it's possible to make 'echo' print without a newline.
525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526# for compatibility with existing Makefiles.
527ECHO_C= ECHO_N= ECHO_T=
528case `echo -n x` in #(((((
529-n*)
530  case `echo 'xy\c'` in
531  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
532  xy)  ECHO_C='\c';;
533  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
534       ECHO_T='	';;
535  esac;;
536*)
537  ECHO_N='-n';;
538esac
539
540# For backward compatibility with old third-party macros, we provide
541# the shell variables $as_echo and $as_echo_n.  New code should use
542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543as_echo='printf %s\n'
544as_echo_n='printf %s'
545
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560    # In both cases, we have to default to `cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587# Sed expression to map a string onto a valid variable name.
588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591test -n "$DJDIR" || exec 7<&0 </dev/null
592exec 6>&1
593
594# Name of the host.
595# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596# so uname gets run too.
597ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599#
600# Initializations.
601#
602ac_default_prefix=/usr/local
603ac_clean_files=
604ac_config_libobj_dir=.
605LIBOBJS=
606cross_compiling=no
607subdirs=
608MFLAGS=
609MAKEFLAGS=
610
611# Identity of this package.
612PACKAGE_NAME='lnav'
613PACKAGE_TARNAME='lnav'
614PACKAGE_VERSION='0.10.1'
615PACKAGE_STRING='lnav 0.10.1'
616PACKAGE_BUGREPORT='lnav@googlegroups.com'
617PACKAGE_URL='http://lnav.org'
618
619ac_unique_file="src/lnav.cc"
620ac_default_prefix=/usr
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_cxx_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657DISABLE_DOCUMENTATION_FALSE
658DISABLE_DOCUMENTATION_TRUE
659HAVE_LIBCURL_FALSE
660HAVE_LIBCURL_TRUE
661USE_INCLUDED_YAJL_FALSE
662USE_INCLUDED_YAJL_TRUE
663STATIC_LDFLAGS
664SQLITE3_LIBS
665SQLITE3_LDFLAGS
666SQLITE3_CFLAGS
667HAVE_SQLITE3_VALUE_SUBTYPE
668CODE_COVERAGE_LIBS
669CODE_COVERAGE_CXXFLAGS
670CODE_COVERAGE_CFLAGS
671CODE_COVERAGE_CPPFLAGS
672GENHTML
673LCOV
674GCOV
675ifnGNUmake
676ifGNUmake
677CODE_COVERAGE_ENABLED
678CODE_COVERAGE_ENABLED_FALSE
679CODE_COVERAGE_ENABLED_TRUE
680READLINE_LDFLAGS
681READLINE_CFLAGS
682READLINE_LIBS
683PCRE_CFLAGS
684PCRE_LIBS
685LIBARCHIVE_CFLAGS
686LIBARCHIVE_LDFLAGS
687LIBARCHIVE_LIBS
688CURSES_LIB
689HAVE_LOCAL_YAJL
690jemalloch
691LIBCURL
692LIBCURL_CPPFLAGS
693_libcurl_config
694BZIP2_SUPPORT
695XZ_CMD
696HAVE_RE2C_FALSE
697HAVE_RE2C_TRUE
698RE2C_CMD
699BZIP2_CMD
700LN_S
701ac_ct_AR
702AR
703RANLIB
704SFTP_TEST_URL
705abssrcdir
706HAVE_CXX14
707am__fastdepCXX_FALSE
708am__fastdepCXX_TRUE
709CXXDEPMODE
710ac_ct_CXX
711CXXFLAGS
712CXX
713PTHREAD_CFLAGS
714PTHREAD_LIBS
715PTHREAD_CC
716ax_pthread_config
717EGREP
718GREP
719SED
720LDFLAGS_FOR_BUILD
721CPPFLAGS_FOR_BUILD
722CFLAGS_FOR_BUILD
723BUILD_OBJEXT
724BUILD_EXEEXT
725CPP_FOR_BUILD
726ac_ct_CC_FOR_BUILD
727CC_FOR_BUILD
728CPP
729am__fastdepCC_FALSE
730am__fastdepCC_TRUE
731CCDEPMODE
732am__nodep
733AMDEPBACKSLASH
734AMDEP_FALSE
735AMDEP_TRUE
736am__include
737DEPDIR
738OBJEXT
739EXEEXT
740ac_ct_CC
741CPPFLAGS
742LDFLAGS
743CFLAGS
744CC
745host_os
746host_vendor
747host_cpu
748host
749build_os
750build_vendor
751build_cpu
752build
753AM_BACKSLASH
754AM_DEFAULT_VERBOSITY
755AM_DEFAULT_V
756AM_V
757CSCOPE
758ETAGS
759CTAGS
760am__untar
761am__tar
762AMTAR
763am__leading_dot
764SET_MAKE
765AWK
766mkdir_p
767MKDIR_P
768INSTALL_STRIP_PROGRAM
769STRIP
770install_sh
771MAKEINFO
772AUTOHEADER
773AUTOMAKE
774AUTOCONF
775ACLOCAL
776VERSION
777PACKAGE
778CYGPATH_W
779am__isrc
780INSTALL_DATA
781INSTALL_SCRIPT
782INSTALL_PROGRAM
783target_alias
784host_alias
785build_alias
786LIBS
787ECHO_T
788ECHO_N
789ECHO_C
790DEFS
791mandir
792localedir
793libdir
794psdir
795pdfdir
796dvidir
797htmldir
798infodir
799docdir
800oldincludedir
801includedir
802runstatedir
803localstatedir
804sharedstatedir
805sysconfdir
806datadir
807datarootdir
808libexecdir
809sbindir
810bindir
811program_transform_name
812prefix
813exec_prefix
814PACKAGE_URL
815PACKAGE_BUGREPORT
816PACKAGE_STRING
817PACKAGE_VERSION
818PACKAGE_TARNAME
819PACKAGE_NAME
820PATH_SEPARATOR
821SHELL
822am__quote'
823ac_subst_files=''
824ac_user_opts='
825enable_option_checking
826enable_silent_rules
827enable_dependency_tracking
828enable_system_paths
829enable_debug
830enable_static
831with_libcurl
832enable_tinfo
833enable_simd
834with_system_doctest
835with_jemalloc
836with_yajl
837with_ncurses
838with_ncursesw
839with_libarchive
840with_pcre
841with_readline
842with_gcov
843enable_code_coverage
844with_sqlite3
845'
846      ac_precious_vars='build_alias
847host_alias
848target_alias
849CC
850CFLAGS
851LDFLAGS
852LIBS
853CPPFLAGS
854CPP
855CXX
856CXXFLAGS
857CCC
858SFTP_TEST_URL
859CURSES_LIB'
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898runstatedir='${localstatedir}/run'
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
910
911ac_prev=
912ac_dashdash=
913for ac_option
914do
915  # If the previous option needs an argument, assign it.
916  if test -n "$ac_prev"; then
917    eval $ac_prev=\$ac_option
918    ac_prev=
919    continue
920  fi
921
922  case $ac_option in
923  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924  *=)   ac_optarg= ;;
925  *)    ac_optarg=yes ;;
926  esac
927
928  case $ac_dashdash$ac_option in
929  --)
930    ac_dashdash=yes ;;
931
932  -bindir | --bindir | --bindi | --bind | --bin | --bi)
933    ac_prev=bindir ;;
934  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935    bindir=$ac_optarg ;;
936
937  -build | --build | --buil | --bui | --bu)
938    ac_prev=build_alias ;;
939  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940    build_alias=$ac_optarg ;;
941
942  -cache-file | --cache-file | --cache-fil | --cache-fi \
943  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944    ac_prev=cache_file ;;
945  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947    cache_file=$ac_optarg ;;
948
949  --config-cache | -C)
950    cache_file=config.cache ;;
951
952  -datadir | --datadir | --datadi | --datad)
953    ac_prev=datadir ;;
954  -datadir=* | --datadir=* | --datadi=* | --datad=*)
955    datadir=$ac_optarg ;;
956
957  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958  | --dataroo | --dataro | --datar)
959    ac_prev=datarootdir ;;
960  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962    datarootdir=$ac_optarg ;;
963
964  -disable-* | --disable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      as_fn_error $? "invalid feature name: \`$ac_useropt'"
969    ac_useropt_orig=$ac_useropt
970    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971    case $ac_user_opts in
972      *"
973"enable_$ac_useropt"
974"*) ;;
975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976	 ac_unrecognized_sep=', ';;
977    esac
978    eval enable_$ac_useropt=no ;;
979
980  -docdir | --docdir | --docdi | --doc | --do)
981    ac_prev=docdir ;;
982  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983    docdir=$ac_optarg ;;
984
985  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986    ac_prev=dvidir ;;
987  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988    dvidir=$ac_optarg ;;
989
990  -enable-* | --enable-*)
991    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992    # Reject names that are not valid shell variable names.
993    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994      as_fn_error $? "invalid feature name: \`$ac_useropt'"
995    ac_useropt_orig=$ac_useropt
996    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
997    case $ac_user_opts in
998      *"
999"enable_$ac_useropt"
1000"*) ;;
1001      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002	 ac_unrecognized_sep=', ';;
1003    esac
1004    eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008  | --exec | --exe | --ex)
1009    ac_prev=exec_prefix ;;
1010  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012  | --exec=* | --exe=* | --ex=*)
1013    exec_prefix=$ac_optarg ;;
1014
1015  -gas | --gas | --ga | --g)
1016    # Obsolete; use --with-gas.
1017    with_gas=yes ;;
1018
1019  -help | --help | --hel | --he | -h)
1020    ac_init_help=long ;;
1021  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022    ac_init_help=recursive ;;
1023  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024    ac_init_help=short ;;
1025
1026  -host | --host | --hos | --ho)
1027    ac_prev=host_alias ;;
1028  -host=* | --host=* | --hos=* | --ho=*)
1029    host_alias=$ac_optarg ;;
1030
1031  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032    ac_prev=htmldir ;;
1033  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034  | --ht=*)
1035    htmldir=$ac_optarg ;;
1036
1037  -includedir | --includedir | --includedi | --included | --include \
1038  | --includ | --inclu | --incl | --inc)
1039    ac_prev=includedir ;;
1040  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041  | --includ=* | --inclu=* | --incl=* | --inc=*)
1042    includedir=$ac_optarg ;;
1043
1044  -infodir | --infodir | --infodi | --infod | --info | --inf)
1045    ac_prev=infodir ;;
1046  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047    infodir=$ac_optarg ;;
1048
1049  -libdir | --libdir | --libdi | --libd)
1050    ac_prev=libdir ;;
1051  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052    libdir=$ac_optarg ;;
1053
1054  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055  | --libexe | --libex | --libe)
1056    ac_prev=libexecdir ;;
1057  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058  | --libexe=* | --libex=* | --libe=*)
1059    libexecdir=$ac_optarg ;;
1060
1061  -localedir | --localedir | --localedi | --localed | --locale)
1062    ac_prev=localedir ;;
1063  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064    localedir=$ac_optarg ;;
1065
1066  -localstatedir | --localstatedir | --localstatedi | --localstated \
1067  | --localstate | --localstat | --localsta | --localst | --locals)
1068    ac_prev=localstatedir ;;
1069  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071    localstatedir=$ac_optarg ;;
1072
1073  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074    ac_prev=mandir ;;
1075  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076    mandir=$ac_optarg ;;
1077
1078  -nfp | --nfp | --nf)
1079    # Obsolete; use --without-fp.
1080    with_fp=no ;;
1081
1082  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083  | --no-cr | --no-c | -n)
1084    no_create=yes ;;
1085
1086  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088    no_recursion=yes ;;
1089
1090  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092  | --oldin | --oldi | --old | --ol | --o)
1093    ac_prev=oldincludedir ;;
1094  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097    oldincludedir=$ac_optarg ;;
1098
1099  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100    ac_prev=prefix ;;
1101  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102    prefix=$ac_optarg ;;
1103
1104  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105  | --program-pre | --program-pr | --program-p)
1106    ac_prev=program_prefix ;;
1107  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109    program_prefix=$ac_optarg ;;
1110
1111  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112  | --program-suf | --program-su | --program-s)
1113    ac_prev=program_suffix ;;
1114  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116    program_suffix=$ac_optarg ;;
1117
1118  -program-transform-name | --program-transform-name \
1119  | --program-transform-nam | --program-transform-na \
1120  | --program-transform-n | --program-transform- \
1121  | --program-transform | --program-transfor \
1122  | --program-transfo | --program-transf \
1123  | --program-trans | --program-tran \
1124  | --progr-tra | --program-tr | --program-t)
1125    ac_prev=program_transform_name ;;
1126  -program-transform-name=* | --program-transform-name=* \
1127  | --program-transform-nam=* | --program-transform-na=* \
1128  | --program-transform-n=* | --program-transform-=* \
1129  | --program-transform=* | --program-transfor=* \
1130  | --program-transfo=* | --program-transf=* \
1131  | --program-trans=* | --program-tran=* \
1132  | --progr-tra=* | --program-tr=* | --program-t=*)
1133    program_transform_name=$ac_optarg ;;
1134
1135  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136    ac_prev=pdfdir ;;
1137  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138    pdfdir=$ac_optarg ;;
1139
1140  -psdir | --psdir | --psdi | --psd | --ps)
1141    ac_prev=psdir ;;
1142  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143    psdir=$ac_optarg ;;
1144
1145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146  | -silent | --silent | --silen | --sile | --sil)
1147    silent=yes ;;
1148
1149  -runstatedir | --runstatedir | --runstatedi | --runstated \
1150  | --runstate | --runstat | --runsta | --runst | --runs \
1151  | --run | --ru | --r)
1152    ac_prev=runstatedir ;;
1153  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1154  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1155  | --run=* | --ru=* | --r=*)
1156    runstatedir=$ac_optarg ;;
1157
1158  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159    ac_prev=sbindir ;;
1160  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161  | --sbi=* | --sb=*)
1162    sbindir=$ac_optarg ;;
1163
1164  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166  | --sharedst | --shareds | --shared | --share | --shar \
1167  | --sha | --sh)
1168    ac_prev=sharedstatedir ;;
1169  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172  | --sha=* | --sh=*)
1173    sharedstatedir=$ac_optarg ;;
1174
1175  -site | --site | --sit)
1176    ac_prev=site ;;
1177  -site=* | --site=* | --sit=*)
1178    site=$ac_optarg ;;
1179
1180  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181    ac_prev=srcdir ;;
1182  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183    srcdir=$ac_optarg ;;
1184
1185  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186  | --syscon | --sysco | --sysc | --sys | --sy)
1187    ac_prev=sysconfdir ;;
1188  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190    sysconfdir=$ac_optarg ;;
1191
1192  -target | --target | --targe | --targ | --tar | --ta | --t)
1193    ac_prev=target_alias ;;
1194  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195    target_alias=$ac_optarg ;;
1196
1197  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198    verbose=yes ;;
1199
1200  -version | --version | --versio | --versi | --vers | -V)
1201    ac_init_version=: ;;
1202
1203  -with-* | --with-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: \`$ac_useropt'"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=\$ac_optarg ;;
1218
1219  -without-* | --without-*)
1220    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223      as_fn_error $? "invalid package name: \`$ac_useropt'"
1224    ac_useropt_orig=$ac_useropt
1225    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1226    case $ac_user_opts in
1227      *"
1228"with_$ac_useropt"
1229"*) ;;
1230      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231	 ac_unrecognized_sep=', ';;
1232    esac
1233    eval with_$ac_useropt=no ;;
1234
1235  --x)
1236    # Obsolete; use --with-x.
1237    with_x=yes ;;
1238
1239  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240  | --x-incl | --x-inc | --x-in | --x-i)
1241    ac_prev=x_includes ;;
1242  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244    x_includes=$ac_optarg ;;
1245
1246  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248    ac_prev=x_libraries ;;
1249  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251    x_libraries=$ac_optarg ;;
1252
1253  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information"
1255    ;;
1256
1257  *=*)
1258    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259    # Reject names that are not valid shell variable names.
1260    case $ac_envvar in #(
1261      '' | [0-9]* | *[!_$as_cr_alnum]* )
1262      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263    esac
1264    eval $ac_envvar=\$ac_optarg
1265    export $ac_envvar ;;
1266
1267  *)
1268    # FIXME: should be removed in autoconf 3.0.
1269    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1270    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1272    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273    ;;
1274
1275  esac
1276done
1277
1278if test -n "$ac_prev"; then
1279  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280  as_fn_error $? "missing argument to $ac_option"
1281fi
1282
1283if test -n "$ac_unrecognized_opts"; then
1284  case $enable_option_checking in
1285    no) ;;
1286    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288  esac
1289fi
1290
1291# Check all directory arguments for consistency.
1292for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293		datadir sysconfdir sharedstatedir localstatedir includedir \
1294		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295		libdir localedir mandir runstatedir
1296do
1297  eval ac_val=\$$ac_var
1298  # Remove trailing slashes.
1299  case $ac_val in
1300    */ )
1301      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302      eval $ac_var=\$ac_val;;
1303  esac
1304  # Be sure to have absolute directory names.
1305  case $ac_val in
1306    [\\/$]* | ?:[\\/]* )  continue;;
1307    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308  esac
1309  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310done
1311
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
1318
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321  if test "x$build_alias" = x; then
1322    cross_compiling=maybe
1323  elif test "x$build_alias" != "x$host_alias"; then
1324    cross_compiling=yes
1325  fi
1326fi
1327
1328ac_tool_prefix=
1329test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331test "$silent" = yes && exec 6>/dev/null
1332
1333
1334ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335ac_ls_di=`ls -di .` &&
1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337  as_fn_error $? "working directory cannot be determined"
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339  as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342# Find the source files, if location was not specified.
1343if test -z "$srcdir"; then
1344  ac_srcdir_defaulted=yes
1345  # Try the directory containing this script, then the parent directory.
1346  ac_confdir=`$as_dirname -- "$as_myself" ||
1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348	 X"$as_myself" : 'X\(//\)[^/]' \| \
1349	 X"$as_myself" : 'X\(//\)$' \| \
1350	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351printf "%s\n" X"$as_myself" |
1352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)[^/].*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\/\)$/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\).*/{
1365	    s//\1/
1366	    q
1367	  }
1368	  s/.*/./; q'`
1369  srcdir=$ac_confdir
1370  if test ! -r "$srcdir/$ac_unique_file"; then
1371    srcdir=..
1372  fi
1373else
1374  ac_srcdir_defaulted=no
1375fi
1376if test ! -r "$srcdir/$ac_unique_file"; then
1377  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379fi
1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
1382	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383	pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386  srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_env_${ac_var}_value=\$${ac_var}
1397  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405  # Omit some internal or obsolete options to make the list less imposing.
1406  # This message is too long to be a string in the A/UX 3.1 sh.
1407  cat <<_ACEOF
1408\`configure' configures lnav 0.10.1 to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418  -h, --help              display this help and exit
1419      --help=short        display options specific to this package
1420      --help=recursive    display the short help of all the included packages
1421  -V, --version           display version information and exit
1422  -q, --quiet, --silent   do not print \`checking ...' messages
1423      --cache-file=FILE   cache test results in FILE [disabled]
1424  -C, --config-cache      alias for \`--cache-file=config.cache'
1425  -n, --no-create         do not create output files
1426      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429  --prefix=PREFIX         install architecture-independent files in PREFIX
1430                          [$ac_default_prefix]
1431  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                          [PREFIX]
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
1442  --bindir=DIR            user executables [EPREFIX/bin]
1443  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444  --libexecdir=DIR        program executables [EPREFIX/libexec]
1445  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1449  --libdir=DIR            object code libraries [EPREFIX/lib]
1450  --includedir=DIR        C header files [PREFIX/include]
1451  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR           info documentation [DATAROOTDIR/info]
1455  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR            man documentation [DATAROOTDIR/man]
1457  --docdir=DIR            documentation root [DATAROOTDIR/doc/lnav]
1458  --htmldir=DIR           html documentation [DOCDIR]
1459  --dvidir=DIR            dvi documentation [DOCDIR]
1460  --pdfdir=DIR            pdf documentation [DOCDIR]
1461  --psdir=DIR             ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466Program names:
1467  --program-prefix=PREFIX            prepend PREFIX to installed program names
1468  --program-suffix=SUFFIX            append SUFFIX to installed program names
1469  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471System types:
1472  --build=BUILD     configure for building on BUILD [guessed]
1473  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478  case $ac_init_help in
1479     short | recursive ) echo "Configuration of lnav 0.10.1:";;
1480   esac
1481  cat <<\_ACEOF
1482
1483Optional Features:
1484  --disable-option-checking  ignore unrecognized --enable/--with options
1485  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487  --enable-silent-rules   less verbose build output (undo: "make V=1")
1488  --disable-silent-rules  verbose build output (undo: "make V=0")
1489  --enable-dependency-tracking
1490                          do not reject slow dependency extractors
1491  --disable-dependency-tracking
1492                          speeds up one-time build
1493  --disable-system-paths  Add extra system paths
1494  --enable-debug          Compile with symbols
1495  --enable-static         Enable static linking
1496  --disable-tinfo         Disable linking with tinfo, enabled by default
1497  --enable-simd           Try and enable simd optimizations
1498  --enable-code-coverage  Whether to enable code coverage support
1499
1500Optional Packages:
1501  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503  --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
1504                          in PREFIX/include
1505  --with-system-doctest   Use the system provided doctest library rather than
1506                          the bundled one
1507  --with-jemalloc=DIR     use a specific jemalloc library
1508  --with-yajl=DIR         use a local installed version of yajl
1509  --with-ncurses          force the use of Ncurses or NcursesW
1510  --without-ncursesw      do not use NcursesW (wide character support)
1511  --with-libarchive[=prefix]
1512  --with-pcre[=prefix]
1513  --with-readline[=prefix]
1514                          compile xmlreadline part (via libreadline check)
1515  --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1516  --with-sqlite3=[prefix] compile with sqlite3
1517
1518Some influential environment variables:
1519  CC          C compiler command
1520  CFLAGS      C compiler flags
1521  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1522              nonstandard directory <lib dir>
1523  LIBS        libraries to pass to the linker, e.g. -l<library>
1524  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525              you have headers in a nonstandard directory <include dir>
1526  CPP         C preprocessor
1527  CXX         C++ compiler command
1528  CXXFLAGS    C++ compiler flags
1529  SFTP_TEST_URL
1530
1531  CURSES_LIB  linker library for Curses, e.g. -lcurses
1532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
1536Report bugs to <lnav@googlegroups.com>.
1537lnav home page: <http://lnav.org>.
1538_ACEOF
1539ac_status=$?
1540fi
1541
1542if test "$ac_init_help" = "recursive"; then
1543  # If there are subdirs, report their specific --help.
1544  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545    test -d "$ac_dir" ||
1546      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547      continue
1548    ac_builddir=.
1549
1550case "$ac_dir" in
1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552*)
1553  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1554  # A ".." for each directory in $ac_dir_suffix.
1555  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556  case $ac_top_builddir_sub in
1557  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559  esac ;;
1560esac
1561ac_abs_top_builddir=$ac_pwd
1562ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563# for backward compatibility:
1564ac_top_builddir=$ac_top_build_prefix
1565
1566case $srcdir in
1567  .)  # We are building in place.
1568    ac_srcdir=.
1569    ac_top_srcdir=$ac_top_builddir_sub
1570    ac_abs_top_srcdir=$ac_pwd ;;
1571  [\\/]* | ?:[\\/]* )  # Absolute name.
1572    ac_srcdir=$srcdir$ac_dir_suffix;
1573    ac_top_srcdir=$srcdir
1574    ac_abs_top_srcdir=$srcdir ;;
1575  *) # Relative name.
1576    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577    ac_top_srcdir=$ac_top_build_prefix$srcdir
1578    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579esac
1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582    cd "$ac_dir" || { ac_status=$?; continue; }
1583    # Check for configure.gnu first; this name is used for a wrapper for
1584    # Metaconfig's "Configure" on case-insensitive file systems.
1585    if test -f "$ac_srcdir/configure.gnu"; then
1586      echo &&
1587      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588    elif test -f "$ac_srcdir/configure"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure" --help=recursive
1591    else
1592      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593    fi || ac_status=$?
1594    cd "$ac_pwd" || { ac_status=$?; break; }
1595  done
1596fi
1597
1598test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then
1600  cat <<\_ACEOF
1601lnav configure 0.10.1
1602generated by GNU Autoconf 2.71
1603
1604Copyright (C) 2021 Free Software Foundation, Inc.
1605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
1607_ACEOF
1608  exit
1609fi
1610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
1614
1615# ac_fn_c_try_compile LINENO
1616# --------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext conftest.beam
1622  if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628printf "%s\n" "$ac_try_echo"; } >&5
1629  (eval "$ac_compile") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638	 test -z "$ac_c_werror_flag" ||
1639	 test ! -s conftest.err
1640       } && test -s conftest.$ac_objext
1641then :
1642  ac_retval=0
1643else $as_nop
1644  printf "%s\n" "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647	ac_retval=1
1648fi
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_compile
1653
1654# ac_fn_c_try_cpp LINENO
1655# ----------------------
1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_cpp ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  if { { ac_try="$ac_cpp conftest.$ac_ext"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666printf "%s\n" "$ac_try_echo"; } >&5
1667  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668  ac_status=$?
1669  if test -s conftest.err; then
1670    grep -v '^ *+' conftest.err >conftest.er1
1671    cat conftest.er1 >&5
1672    mv -f conftest.er1 conftest.err
1673  fi
1674  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } > conftest.i && {
1676	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677	 test ! -s conftest.err
1678       }
1679then :
1680  ac_retval=0
1681else $as_nop
1682  printf "%s\n" "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685    ac_retval=1
1686fi
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_cpp
1691
1692# ac_fn_c_try_link LINENO
1693# -----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_link ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705printf "%s\n" "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>conftest.err
1707  ac_status=$?
1708  if test -s conftest.err; then
1709    grep -v '^ *+' conftest.err >conftest.er1
1710    cat conftest.er1 >&5
1711    mv -f conftest.er1 conftest.err
1712  fi
1713  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714  test $ac_status = 0; } && {
1715	 test -z "$ac_c_werror_flag" ||
1716	 test ! -s conftest.err
1717       } && test -s conftest$ac_exeext && {
1718	 test "$cross_compiling" = yes ||
1719	 test -x conftest$ac_exeext
1720       }
1721then :
1722  ac_retval=0
1723else $as_nop
1724  printf "%s\n" "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727	ac_retval=1
1728fi
1729  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731  # interfere with the next link command; also delete a directory that is
1732  # left behind by Apple's compiler.  We do this before executing the actions.
1733  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735  as_fn_set_status $ac_retval
1736
1737} # ac_fn_c_try_link
1738
1739# ac_fn_cxx_try_compile LINENO
1740# ----------------------------
1741# Try to compile conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_cxx_try_compile ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  rm -f conftest.$ac_objext conftest.beam
1746  if { { ac_try="$ac_compile"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752printf "%s\n" "$ac_try_echo"; } >&5
1753  (eval "$ac_compile") 2>conftest.err
1754  ac_status=$?
1755  if test -s conftest.err; then
1756    grep -v '^ *+' conftest.err >conftest.er1
1757    cat conftest.er1 >&5
1758    mv -f conftest.er1 conftest.err
1759  fi
1760  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } && {
1762	 test -z "$ac_cxx_werror_flag" ||
1763	 test ! -s conftest.err
1764       } && test -s conftest.$ac_objext
1765then :
1766  ac_retval=0
1767else $as_nop
1768  printf "%s\n" "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771	ac_retval=1
1772fi
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_cxx_try_compile
1777
1778# ac_fn_cxx_try_run LINENO
1779# ------------------------
1780# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1781# executables *can* be run.
1782ac_fn_cxx_try_run ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791printf "%s\n" "$ac_try_echo"; } >&5
1792  (eval "$ac_link") 2>&5
1793  ac_status=$?
1794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796  { { case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801printf "%s\n" "$ac_try_echo"; } >&5
1802  (eval "$ac_try") 2>&5
1803  ac_status=$?
1804  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; }; }
1806then :
1807  ac_retval=0
1808else $as_nop
1809  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1810       printf "%s\n" "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
1812
1813       ac_retval=$ac_status
1814fi
1815  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817  as_fn_set_status $ac_retval
1818
1819} # ac_fn_cxx_try_run
1820
1821# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1822# ----------------------------------------------
1823# Tries to find the compile-time value of EXPR in a program that includes
1824# INCLUDES, setting VAR accordingly. Returns whether the value could be
1825# computed
1826ac_fn_cxx_compute_int ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  if test "$cross_compiling" = yes; then
1830    # Depending upon the size, compute the lo and hi bounds.
1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833$4
1834int
1835main (void)
1836{
1837static int test_array [1 - 2 * !(($2) >= 0)];
1838test_array [0] = 0;
1839return test_array [0];
1840
1841  ;
1842  return 0;
1843}
1844_ACEOF
1845if ac_fn_cxx_try_compile "$LINENO"
1846then :
1847  ac_lo=0 ac_mid=0
1848  while :; do
1849    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851$4
1852int
1853main (void)
1854{
1855static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1856test_array [0] = 0;
1857return test_array [0];
1858
1859  ;
1860  return 0;
1861}
1862_ACEOF
1863if ac_fn_cxx_try_compile "$LINENO"
1864then :
1865  ac_hi=$ac_mid; break
1866else $as_nop
1867  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1868			if test $ac_lo -le $ac_mid; then
1869			  ac_lo= ac_hi=
1870			  break
1871			fi
1872			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1875  done
1876else $as_nop
1877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h.  */
1879$4
1880int
1881main (void)
1882{
1883static int test_array [1 - 2 * !(($2) < 0)];
1884test_array [0] = 0;
1885return test_array [0];
1886
1887  ;
1888  return 0;
1889}
1890_ACEOF
1891if ac_fn_cxx_try_compile "$LINENO"
1892then :
1893  ac_hi=-1 ac_mid=-1
1894  while :; do
1895    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897$4
1898int
1899main (void)
1900{
1901static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1902test_array [0] = 0;
1903return test_array [0];
1904
1905  ;
1906  return 0;
1907}
1908_ACEOF
1909if ac_fn_cxx_try_compile "$LINENO"
1910then :
1911  ac_lo=$ac_mid; break
1912else $as_nop
1913  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1914			if test $ac_mid -le $ac_hi; then
1915			  ac_lo= ac_hi=
1916			  break
1917			fi
1918			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1919fi
1920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1921  done
1922else $as_nop
1923  ac_lo= ac_hi=
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1928# Binary search between lo and hi bounds.
1929while test "x$ac_lo" != "x$ac_hi"; do
1930  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h.  */
1933$4
1934int
1935main (void)
1936{
1937static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1938test_array [0] = 0;
1939return test_array [0];
1940
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945if ac_fn_cxx_try_compile "$LINENO"
1946then :
1947  ac_hi=$ac_mid
1948else $as_nop
1949  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1952done
1953case $ac_lo in #((
1954?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1955'') ac_retval=1 ;;
1956esac
1957  else
1958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h.  */
1960$4
1961static long int longval (void) { return $2; }
1962static unsigned long int ulongval (void) { return $2; }
1963#include <stdio.h>
1964#include <stdlib.h>
1965int
1966main (void)
1967{
1968
1969  FILE *f = fopen ("conftest.val", "w");
1970  if (! f)
1971    return 1;
1972  if (($2) < 0)
1973    {
1974      long int i = longval ();
1975      if (i != ($2))
1976	return 1;
1977      fprintf (f, "%ld", i);
1978    }
1979  else
1980    {
1981      unsigned long int i = ulongval ();
1982      if (i != ($2))
1983	return 1;
1984      fprintf (f, "%lu", i);
1985    }
1986  /* Do not output a trailing newline, as this causes \r\n confusion
1987     on some platforms.  */
1988  return ferror (f) || fclose (f) != 0;
1989
1990  ;
1991  return 0;
1992}
1993_ACEOF
1994if ac_fn_cxx_try_run "$LINENO"
1995then :
1996  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1997else $as_nop
1998  ac_retval=1
1999fi
2000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2001  conftest.$ac_objext conftest.beam conftest.$ac_ext
2002rm -f conftest.val
2003
2004  fi
2005  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006  as_fn_set_status $ac_retval
2007
2008} # ac_fn_cxx_compute_int
2009
2010# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2011# ---------------------------------------------------------
2012# Tests whether HEADER exists and can be compiled using the include files in
2013# INCLUDES, setting the cache variable VAR accordingly.
2014ac_fn_cxx_check_header_compile ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018printf %s "checking for $2... " >&6; }
2019if eval test \${$3+y}
2020then :
2021  printf %s "(cached) " >&6
2022else $as_nop
2023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h.  */
2025$4
2026#include <$2>
2027_ACEOF
2028if ac_fn_cxx_try_compile "$LINENO"
2029then :
2030  eval "$3=yes"
2031else $as_nop
2032  eval "$3=no"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2035fi
2036eval ac_res=\$$3
2037	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038printf "%s\n" "$ac_res" >&6; }
2039  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041} # ac_fn_cxx_check_header_compile
2042
2043# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2044# ------------------------------------------------------
2045# Tries to find if the field MEMBER exists in type AGGR, after including
2046# INCLUDES, setting cache variable VAR accordingly.
2047ac_fn_cxx_check_member ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2051printf %s "checking for $2.$3... " >&6; }
2052if eval test \${$4+y}
2053then :
2054  printf %s "(cached) " >&6
2055else $as_nop
2056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h.  */
2058$5
2059int
2060main (void)
2061{
2062static $2 ac_aggr;
2063if (ac_aggr.$3)
2064return 0;
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069if ac_fn_cxx_try_compile "$LINENO"
2070then :
2071  eval "$4=yes"
2072else $as_nop
2073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h.  */
2075$5
2076int
2077main (void)
2078{
2079static $2 ac_aggr;
2080if (sizeof ac_aggr.$3)
2081return 0;
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086if ac_fn_cxx_try_compile "$LINENO"
2087then :
2088  eval "$4=yes"
2089else $as_nop
2090  eval "$4=no"
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2095fi
2096eval ac_res=\$$4
2097	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098printf "%s\n" "$ac_res" >&6; }
2099  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101} # ac_fn_cxx_check_member
2102
2103# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2104# ------------------------------------------------------------------
2105# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2106# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2107ac_fn_check_decl ()
2108{
2109  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110  as_decl_name=`echo $2|sed 's/ *(.*//'`
2111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2112printf %s "checking whether $as_decl_name is declared... " >&6; }
2113if eval test \${$3+y}
2114then :
2115  printf %s "(cached) " >&6
2116else $as_nop
2117  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2118  eval ac_save_FLAGS=\$$6
2119  as_fn_append $6 " $5"
2120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122$4
2123int
2124main (void)
2125{
2126#ifndef $as_decl_name
2127#ifdef __cplusplus
2128  (void) $as_decl_use;
2129#else
2130  (void) $as_decl_name;
2131#endif
2132#endif
2133
2134  ;
2135  return 0;
2136}
2137_ACEOF
2138if ac_fn_cxx_try_compile "$LINENO"
2139then :
2140  eval "$3=yes"
2141else $as_nop
2142  eval "$3=no"
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2145  eval $6=\$ac_save_FLAGS
2146
2147fi
2148eval ac_res=\$$3
2149	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150printf "%s\n" "$ac_res" >&6; }
2151  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152
2153} # ac_fn_check_decl
2154
2155# ac_fn_cxx_try_link LINENO
2156# -------------------------
2157# Try to link conftest.$ac_ext, and return whether this succeeded.
2158ac_fn_cxx_try_link ()
2159{
2160  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2162  if { { ac_try="$ac_link"
2163case "(($ac_try" in
2164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165  *) ac_try_echo=$ac_try;;
2166esac
2167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168printf "%s\n" "$ac_try_echo"; } >&5
2169  (eval "$ac_link") 2>conftest.err
2170  ac_status=$?
2171  if test -s conftest.err; then
2172    grep -v '^ *+' conftest.err >conftest.er1
2173    cat conftest.er1 >&5
2174    mv -f conftest.er1 conftest.err
2175  fi
2176  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2177  test $ac_status = 0; } && {
2178	 test -z "$ac_cxx_werror_flag" ||
2179	 test ! -s conftest.err
2180       } && test -s conftest$ac_exeext && {
2181	 test "$cross_compiling" = yes ||
2182	 test -x conftest$ac_exeext
2183       }
2184then :
2185  ac_retval=0
2186else $as_nop
2187  printf "%s\n" "$as_me: failed program was:" >&5
2188sed 's/^/| /' conftest.$ac_ext >&5
2189
2190	ac_retval=1
2191fi
2192  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2193  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2194  # interfere with the next link command; also delete a directory that is
2195  # left behind by Apple's compiler.  We do this before executing the actions.
2196  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2197  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198  as_fn_set_status $ac_retval
2199
2200} # ac_fn_cxx_try_link
2201
2202# ac_fn_cxx_check_func LINENO FUNC VAR
2203# ------------------------------------
2204# Tests whether FUNC exists, setting the cache variable VAR accordingly
2205ac_fn_cxx_check_func ()
2206{
2207  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209printf %s "checking for $2... " >&6; }
2210if eval test \${$3+y}
2211then :
2212  printf %s "(cached) " >&6
2213else $as_nop
2214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h.  */
2216/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2217   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2218#define $2 innocuous_$2
2219
2220/* System header to define __stub macros and hopefully few prototypes,
2221   which can conflict with char $2 (); below.  */
2222
2223#include <limits.h>
2224#undef $2
2225
2226/* Override any GCC internal prototype to avoid an error.
2227   Use char because int might match the return type of a GCC
2228   builtin and then its argument prototype would still apply.  */
2229#ifdef __cplusplus
2230extern "C"
2231#endif
2232char $2 ();
2233/* The GNU C library defines this for functions which it implements
2234    to always fail with ENOSYS.  Some functions are actually named
2235    something starting with __ and the normal name is an alias.  */
2236#if defined __stub_$2 || defined __stub___$2
2237choke me
2238#endif
2239
2240int
2241main (void)
2242{
2243return $2 ();
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248if ac_fn_cxx_try_link "$LINENO"
2249then :
2250  eval "$3=yes"
2251else $as_nop
2252  eval "$3=no"
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.beam \
2255    conftest$ac_exeext conftest.$ac_ext
2256fi
2257eval ac_res=\$$3
2258	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259printf "%s\n" "$ac_res" >&6; }
2260  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261
2262} # ac_fn_cxx_check_func
2263ac_configure_args_raw=
2264for ac_arg
2265do
2266  case $ac_arg in
2267  *\'*)
2268    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269  esac
2270  as_fn_append ac_configure_args_raw " '$ac_arg'"
2271done
2272
2273case $ac_configure_args_raw in
2274  *$as_nl*)
2275    ac_safe_unquote= ;;
2276  *)
2277    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2278    ac_unsafe_a="$ac_unsafe_z#~"
2279    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2280    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2281esac
2282
2283cat >config.log <<_ACEOF
2284This file contains any messages produced by compilers while
2285running configure, to aid debugging if configure makes a mistake.
2286
2287It was created by lnav $as_me 0.10.1, which was
2288generated by GNU Autoconf 2.71.  Invocation command line was
2289
2290  $ $0$ac_configure_args_raw
2291
2292_ACEOF
2293exec 5>>config.log
2294{
2295cat <<_ASUNAME
2296## --------- ##
2297## Platform. ##
2298## --------- ##
2299
2300hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305
2306/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2308
2309/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2310/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2311/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2313/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2314/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2315/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2316
2317_ASUNAME
2318
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322  IFS=$as_save_IFS
2323  case $as_dir in #(((
2324    '') as_dir=./ ;;
2325    */) ;;
2326    *) as_dir=$as_dir/ ;;
2327  esac
2328    printf "%s\n" "PATH: $as_dir"
2329  done
2330IFS=$as_save_IFS
2331
2332} >&5
2333
2334cat >&5 <<_ACEOF
2335
2336
2337## ----------- ##
2338## Core tests. ##
2339## ----------- ##
2340
2341_ACEOF
2342
2343
2344# Keep a trace of the command line.
2345# Strip out --no-create and --no-recursion so they do not pile up.
2346# Strip out --silent because we don't want to record it for future runs.
2347# Also quote any args containing shell meta-characters.
2348# Make two passes to allow for proper duplicate-argument suppression.
2349ac_configure_args=
2350ac_configure_args0=
2351ac_configure_args1=
2352ac_must_keep_next=false
2353for ac_pass in 1 2
2354do
2355  for ac_arg
2356  do
2357    case $ac_arg in
2358    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2359    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2360    | -silent | --silent | --silen | --sile | --sil)
2361      continue ;;
2362    *\'*)
2363      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2364    esac
2365    case $ac_pass in
2366    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2367    2)
2368      as_fn_append ac_configure_args1 " '$ac_arg'"
2369      if test $ac_must_keep_next = true; then
2370	ac_must_keep_next=false # Got value, back to normal.
2371      else
2372	case $ac_arg in
2373	  *=* | --config-cache | -C | -disable-* | --disable-* \
2374	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2375	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2376	  | -with-* | --with-* | -without-* | --without-* | --x)
2377	    case "$ac_configure_args0 " in
2378	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2379	    esac
2380	    ;;
2381	  -* ) ac_must_keep_next=true ;;
2382	esac
2383      fi
2384      as_fn_append ac_configure_args " '$ac_arg'"
2385      ;;
2386    esac
2387  done
2388done
2389{ ac_configure_args0=; unset ac_configure_args0;}
2390{ ac_configure_args1=; unset ac_configure_args1;}
2391
2392# When interrupted or exit'd, cleanup temporary files, and complete
2393# config.log.  We remove comments because anyway the quotes in there
2394# would cause problems or look ugly.
2395# WARNING: Use '\'' to represent an apostrophe within the trap.
2396# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2397trap 'exit_status=$?
2398  # Sanitize IFS.
2399  IFS=" ""	$as_nl"
2400  # Save into config.log some information that might help in debugging.
2401  {
2402    echo
2403
2404    printf "%s\n" "## ---------------- ##
2405## Cache variables. ##
2406## ---------------- ##"
2407    echo
2408    # The following way of writing the cache mishandles newlines in values,
2409(
2410  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2411    eval ac_val=\$$ac_var
2412    case $ac_val in #(
2413    *${as_nl}*)
2414      case $ac_var in #(
2415      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2416printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417      esac
2418      case $ac_var in #(
2419      _ | IFS | as_nl) ;; #(
2420      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2421      *) { eval $ac_var=; unset $ac_var;} ;;
2422      esac ;;
2423    esac
2424  done
2425  (set) 2>&1 |
2426    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2427    *${as_nl}ac_space=\ *)
2428      sed -n \
2429	"s/'\''/'\''\\\\'\'''\''/g;
2430	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431      ;; #(
2432    *)
2433      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2434      ;;
2435    esac |
2436    sort
2437)
2438    echo
2439
2440    printf "%s\n" "## ----------------- ##
2441## Output variables. ##
2442## ----------------- ##"
2443    echo
2444    for ac_var in $ac_subst_vars
2445    do
2446      eval ac_val=\$$ac_var
2447      case $ac_val in
2448      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449      esac
2450      printf "%s\n" "$ac_var='\''$ac_val'\''"
2451    done | sort
2452    echo
2453
2454    if test -n "$ac_subst_files"; then
2455      printf "%s\n" "## ------------------- ##
2456## File substitutions. ##
2457## ------------------- ##"
2458      echo
2459      for ac_var in $ac_subst_files
2460      do
2461	eval ac_val=\$$ac_var
2462	case $ac_val in
2463	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464	esac
2465	printf "%s\n" "$ac_var='\''$ac_val'\''"
2466      done | sort
2467      echo
2468    fi
2469
2470    if test -s confdefs.h; then
2471      printf "%s\n" "## ----------- ##
2472## confdefs.h. ##
2473## ----------- ##"
2474      echo
2475      cat confdefs.h
2476      echo
2477    fi
2478    test "$ac_signal" != 0 &&
2479      printf "%s\n" "$as_me: caught signal $ac_signal"
2480    printf "%s\n" "$as_me: exit $exit_status"
2481  } >&5
2482  rm -f core *.core core.conftest.* &&
2483    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484    exit $exit_status
2485' 0
2486for ac_signal in 1 2 13 15; do
2487  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2488done
2489ac_signal=0
2490
2491# confdefs.h avoids OS command line length limits that DEFS can exceed.
2492rm -f -r conftest* confdefs.h
2493
2494printf "%s\n" "/* confdefs.h */" > confdefs.h
2495
2496# Predefined preprocessor variables.
2497
2498printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2499
2500printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2501
2502printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2503
2504printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2505
2506printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2507
2508printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2509
2510
2511# Let the site file select an alternate cache file if it wants to.
2512# Prefer an explicitly selected file to automatically selected ones.
2513if test -n "$CONFIG_SITE"; then
2514  ac_site_files="$CONFIG_SITE"
2515elif test "x$prefix" != xNONE; then
2516  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2517else
2518  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2519fi
2520
2521for ac_site_file in $ac_site_files
2522do
2523  case $ac_site_file in #(
2524  */*) :
2525     ;; #(
2526  *) :
2527    ac_site_file=./$ac_site_file ;;
2528esac
2529  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2530    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2531printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2532    sed 's/^/| /' "$ac_site_file" >&5
2533    . "$ac_site_file" \
2534      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2536as_fn_error $? "failed to load site script $ac_site_file
2537See \`config.log' for more details" "$LINENO" 5; }
2538  fi
2539done
2540
2541if test -r "$cache_file"; then
2542  # Some versions of bash will fail to source /dev/null (special files
2543  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2544  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2545    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2546printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2547    case $cache_file in
2548      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2549      *)                      . "./$cache_file";;
2550    esac
2551  fi
2552else
2553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2554printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2555  >$cache_file
2556fi
2557
2558# Test code for whether the C compiler supports C89 (global declarations)
2559ac_c_conftest_c89_globals='
2560/* Does the compiler advertise C89 conformance?
2561   Do not test the value of __STDC__, because some compilers set it to 0
2562   while being otherwise adequately conformant. */
2563#if !defined __STDC__
2564# error "Compiler does not advertise C89 conformance"
2565#endif
2566
2567#include <stddef.h>
2568#include <stdarg.h>
2569struct stat;
2570/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2571struct buf { int x; };
2572struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2573static char *e (p, i)
2574     char **p;
2575     int i;
2576{
2577  return p[i];
2578}
2579static char *f (char * (*g) (char **, int), char **p, ...)
2580{
2581  char *s;
2582  va_list v;
2583  va_start (v,p);
2584  s = g (p, va_arg (v,int));
2585  va_end (v);
2586  return s;
2587}
2588
2589/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2590   function prototypes and stuff, but not \xHH hex character constants.
2591   These do not provoke an error unfortunately, instead are silently treated
2592   as an "x".  The following induces an error, until -std is added to get
2593   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2594   array size at least.  It is necessary to write \x00 == 0 to get something
2595   that is true only with -std.  */
2596int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2597
2598/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2599   inside strings and character constants.  */
2600#define FOO(x) '\''x'\''
2601int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2602
2603int test (int i, double x);
2604struct s1 {int (*f) (int a);};
2605struct s2 {int (*f) (double a);};
2606int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2607               int, int);'
2608
2609# Test code for whether the C compiler supports C89 (body of main).
2610ac_c_conftest_c89_main='
2611ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2612'
2613
2614# Test code for whether the C compiler supports C99 (global declarations)
2615ac_c_conftest_c99_globals='
2616// Does the compiler advertise C99 conformance?
2617#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2618# error "Compiler does not advertise C99 conformance"
2619#endif
2620
2621#include <stdbool.h>
2622extern int puts (const char *);
2623extern int printf (const char *, ...);
2624extern int dprintf (int, const char *, ...);
2625extern void *malloc (size_t);
2626
2627// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2628// dprintf is used instead of fprintf to avoid needing to declare
2629// FILE and stderr.
2630#define debug(...) dprintf (2, __VA_ARGS__)
2631#define showlist(...) puts (#__VA_ARGS__)
2632#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2633static void
2634test_varargs_macros (void)
2635{
2636  int x = 1234;
2637  int y = 5678;
2638  debug ("Flag");
2639  debug ("X = %d\n", x);
2640  showlist (The first, second, and third items.);
2641  report (x>y, "x is %d but y is %d", x, y);
2642}
2643
2644// Check long long types.
2645#define BIG64 18446744073709551615ull
2646#define BIG32 4294967295ul
2647#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2648#if !BIG_OK
2649  #error "your preprocessor is broken"
2650#endif
2651#if BIG_OK
2652#else
2653  #error "your preprocessor is broken"
2654#endif
2655static long long int bignum = -9223372036854775807LL;
2656static unsigned long long int ubignum = BIG64;
2657
2658struct incomplete_array
2659{
2660  int datasize;
2661  double data[];
2662};
2663
2664struct named_init {
2665  int number;
2666  const wchar_t *name;
2667  double average;
2668};
2669
2670typedef const char *ccp;
2671
2672static inline int
2673test_restrict (ccp restrict text)
2674{
2675  // See if C++-style comments work.
2676  // Iterate through items via the restricted pointer.
2677  // Also check for declarations in for loops.
2678  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2679    continue;
2680  return 0;
2681}
2682
2683// Check varargs and va_copy.
2684static bool
2685test_varargs (const char *format, ...)
2686{
2687  va_list args;
2688  va_start (args, format);
2689  va_list args_copy;
2690  va_copy (args_copy, args);
2691
2692  const char *str = "";
2693  int number = 0;
2694  float fnumber = 0;
2695
2696  while (*format)
2697    {
2698      switch (*format++)
2699	{
2700	case '\''s'\'': // string
2701	  str = va_arg (args_copy, const char *);
2702	  break;
2703	case '\''d'\'': // int
2704	  number = va_arg (args_copy, int);
2705	  break;
2706	case '\''f'\'': // float
2707	  fnumber = va_arg (args_copy, double);
2708	  break;
2709	default:
2710	  break;
2711	}
2712    }
2713  va_end (args_copy);
2714  va_end (args);
2715
2716  return *str && number && fnumber;
2717}
2718'
2719
2720# Test code for whether the C compiler supports C99 (body of main).
2721ac_c_conftest_c99_main='
2722  // Check bool.
2723  _Bool success = false;
2724  success |= (argc != 0);
2725
2726  // Check restrict.
2727  if (test_restrict ("String literal") == 0)
2728    success = true;
2729  char *restrict newvar = "Another string";
2730
2731  // Check varargs.
2732  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2733  test_varargs_macros ();
2734
2735  // Check flexible array members.
2736  struct incomplete_array *ia =
2737    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2738  ia->datasize = 10;
2739  for (int i = 0; i < ia->datasize; ++i)
2740    ia->data[i] = i * 1.234;
2741
2742  // Check named initializers.
2743  struct named_init ni = {
2744    .number = 34,
2745    .name = L"Test wide string",
2746    .average = 543.34343,
2747  };
2748
2749  ni.number = 58;
2750
2751  int dynamic_array[ni.number];
2752  dynamic_array[0] = argv[0][0];
2753  dynamic_array[ni.number - 1] = 543;
2754
2755  // work around unused variable warnings
2756  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2757	 || dynamic_array[ni.number - 1] != 543);
2758'
2759
2760# Test code for whether the C compiler supports C11 (global declarations)
2761ac_c_conftest_c11_globals='
2762// Does the compiler advertise C11 conformance?
2763#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2764# error "Compiler does not advertise C11 conformance"
2765#endif
2766
2767// Check _Alignas.
2768char _Alignas (double) aligned_as_double;
2769char _Alignas (0) no_special_alignment;
2770extern char aligned_as_int;
2771char _Alignas (0) _Alignas (int) aligned_as_int;
2772
2773// Check _Alignof.
2774enum
2775{
2776  int_alignment = _Alignof (int),
2777  int_array_alignment = _Alignof (int[100]),
2778  char_alignment = _Alignof (char)
2779};
2780_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2781
2782// Check _Noreturn.
2783int _Noreturn does_not_return (void) { for (;;) continue; }
2784
2785// Check _Static_assert.
2786struct test_static_assert
2787{
2788  int x;
2789  _Static_assert (sizeof (int) <= sizeof (long int),
2790                  "_Static_assert does not work in struct");
2791  long int y;
2792};
2793
2794// Check UTF-8 literals.
2795#define u8 syntax error!
2796char const utf8_literal[] = u8"happens to be ASCII" "another string";
2797
2798// Check duplicate typedefs.
2799typedef long *long_ptr;
2800typedef long int *long_ptr;
2801typedef long_ptr long_ptr;
2802
2803// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2804struct anonymous
2805{
2806  union {
2807    struct { int i; int j; };
2808    struct { int k; long int l; } w;
2809  };
2810  int m;
2811} v1;
2812'
2813
2814# Test code for whether the C compiler supports C11 (body of main).
2815ac_c_conftest_c11_main='
2816  _Static_assert ((offsetof (struct anonymous, i)
2817		   == offsetof (struct anonymous, w.k)),
2818		  "Anonymous union alignment botch");
2819  v1.i = 2;
2820  v1.w.k = 5;
2821  ok |= v1.i != 5;
2822'
2823
2824# Test code for whether the C compiler supports C11 (complete).
2825ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2826${ac_c_conftest_c99_globals}
2827${ac_c_conftest_c11_globals}
2828
2829int
2830main (int argc, char **argv)
2831{
2832  int ok = 0;
2833  ${ac_c_conftest_c89_main}
2834  ${ac_c_conftest_c99_main}
2835  ${ac_c_conftest_c11_main}
2836  return ok;
2837}
2838"
2839
2840# Test code for whether the C compiler supports C99 (complete).
2841ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2842${ac_c_conftest_c99_globals}
2843
2844int
2845main (int argc, char **argv)
2846{
2847  int ok = 0;
2848  ${ac_c_conftest_c89_main}
2849  ${ac_c_conftest_c99_main}
2850  return ok;
2851}
2852"
2853
2854# Test code for whether the C compiler supports C89 (complete).
2855ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2856
2857int
2858main (int argc, char **argv)
2859{
2860  int ok = 0;
2861  ${ac_c_conftest_c89_main}
2862  return ok;
2863}
2864"
2865
2866# Test code for whether the C++ compiler supports C++98 (global declarations)
2867ac_cxx_conftest_cxx98_globals='
2868// Does the compiler advertise C++98 conformance?
2869#if !defined __cplusplus || __cplusplus < 199711L
2870# error "Compiler does not advertise C++98 conformance"
2871#endif
2872
2873// These inclusions are to reject old compilers that
2874// lack the unsuffixed header files.
2875#include <cstdlib>
2876#include <exception>
2877
2878// <cassert> and <cstring> are *not* freestanding headers in C++98.
2879extern void assert (int);
2880namespace std {
2881  extern int strcmp (const char *, const char *);
2882}
2883
2884// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2885using std::exception;
2886using std::strcmp;
2887
2888namespace {
2889
2890void test_exception_syntax()
2891{
2892  try {
2893    throw "test";
2894  } catch (const char *s) {
2895    // Extra parentheses suppress a warning when building autoconf itself,
2896    // due to lint rules shared with more typical C programs.
2897    assert (!(strcmp) (s, "test"));
2898  }
2899}
2900
2901template <typename T> struct test_template
2902{
2903  T const val;
2904  explicit test_template(T t) : val(t) {}
2905  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2906};
2907
2908} // anonymous namespace
2909'
2910
2911# Test code for whether the C++ compiler supports C++98 (body of main)
2912ac_cxx_conftest_cxx98_main='
2913  assert (argc);
2914  assert (! argv[0]);
2915{
2916  test_exception_syntax ();
2917  test_template<double> tt (2.0);
2918  assert (tt.add (4) == 6.0);
2919  assert (true && !false);
2920}
2921'
2922
2923# Test code for whether the C++ compiler supports C++11 (global declarations)
2924ac_cxx_conftest_cxx11_globals='
2925// Does the compiler advertise C++ 2011 conformance?
2926#if !defined __cplusplus || __cplusplus < 201103L
2927# error "Compiler does not advertise C++11 conformance"
2928#endif
2929
2930namespace cxx11test
2931{
2932  constexpr int get_val() { return 20; }
2933
2934  struct testinit
2935  {
2936    int i;
2937    double d;
2938  };
2939
2940  class delegate
2941  {
2942  public:
2943    delegate(int n) : n(n) {}
2944    delegate(): delegate(2354) {}
2945
2946    virtual int getval() { return this->n; };
2947  protected:
2948    int n;
2949  };
2950
2951  class overridden : public delegate
2952  {
2953  public:
2954    overridden(int n): delegate(n) {}
2955    virtual int getval() override final { return this->n * 2; }
2956  };
2957
2958  class nocopy
2959  {
2960  public:
2961    nocopy(int i): i(i) {}
2962    nocopy() = default;
2963    nocopy(const nocopy&) = delete;
2964    nocopy & operator=(const nocopy&) = delete;
2965  private:
2966    int i;
2967  };
2968
2969  // for testing lambda expressions
2970  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2971  {
2972    return f(v);
2973  }
2974
2975  // for testing variadic templates and trailing return types
2976  template <typename V> auto sum(V first) -> V
2977  {
2978    return first;
2979  }
2980  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2981  {
2982    return first + sum(rest...);
2983  }
2984}
2985'
2986
2987# Test code for whether the C++ compiler supports C++11 (body of main)
2988ac_cxx_conftest_cxx11_main='
2989{
2990  // Test auto and decltype
2991  auto a1 = 6538;
2992  auto a2 = 48573953.4;
2993  auto a3 = "String literal";
2994
2995  int total = 0;
2996  for (auto i = a3; *i; ++i) { total += *i; }
2997
2998  decltype(a2) a4 = 34895.034;
2999}
3000{
3001  // Test constexpr
3002  short sa[cxx11test::get_val()] = { 0 };
3003}
3004{
3005  // Test initializer lists
3006  cxx11test::testinit il = { 4323, 435234.23544 };
3007}
3008{
3009  // Test range-based for
3010  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3011                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3012  for (auto &x : array) { x += 23; }
3013}
3014{
3015  // Test lambda expressions
3016  using cxx11test::eval;
3017  assert (eval ([](int x) { return x*2; }, 21) == 42);
3018  double d = 2.0;
3019  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3020  assert (d == 5.0);
3021  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3022  assert (d == 5.0);
3023}
3024{
3025  // Test use of variadic templates
3026  using cxx11test::sum;
3027  auto a = sum(1);
3028  auto b = sum(1, 2);
3029  auto c = sum(1.0, 2.0, 3.0);
3030}
3031{
3032  // Test constructor delegation
3033  cxx11test::delegate d1;
3034  cxx11test::delegate d2();
3035  cxx11test::delegate d3(45);
3036}
3037{
3038  // Test override and final
3039  cxx11test::overridden o1(55464);
3040}
3041{
3042  // Test nullptr
3043  char *c = nullptr;
3044}
3045{
3046  // Test template brackets
3047  test_template<::test_template<int>> v(test_template<int>(12));
3048}
3049{
3050  // Unicode literals
3051  char const *utf8 = u8"UTF-8 string \u2500";
3052  char16_t const *utf16 = u"UTF-8 string \u2500";
3053  char32_t const *utf32 = U"UTF-32 string \u2500";
3054}
3055'
3056
3057# Test code for whether the C compiler supports C++11 (complete).
3058ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3059${ac_cxx_conftest_cxx11_globals}
3060
3061int
3062main (int argc, char **argv)
3063{
3064  int ok = 0;
3065  ${ac_cxx_conftest_cxx98_main}
3066  ${ac_cxx_conftest_cxx11_main}
3067  return ok;
3068}
3069"
3070
3071# Test code for whether the C compiler supports C++98 (complete).
3072ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3073int
3074main (int argc, char **argv)
3075{
3076  int ok = 0;
3077  ${ac_cxx_conftest_cxx98_main}
3078  return ok;
3079}
3080"
3081
3082as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
3083as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3084as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
3085as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3086as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
3087as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
3088as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3089as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3090as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
3091
3092# Auxiliary files required by this configure script.
3093ac_aux_files="ar-lib compile config.guess config.sub missing install-sh"
3094
3095# Locations in which to look for auxiliary files.
3096ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3097
3098# Search for a directory containing all of the required auxiliary files,
3099# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3100# If we don't find one directory that contains all the files we need,
3101# we report the set of missing files from the *first* directory in
3102# $ac_aux_dir_candidates and give up.
3103ac_missing_aux_files=""
3104ac_first_candidate=:
3105printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107as_found=false
3108for as_dir in $ac_aux_dir_candidates
3109do
3110  IFS=$as_save_IFS
3111  case $as_dir in #(((
3112    '') as_dir=./ ;;
3113    */) ;;
3114    *) as_dir=$as_dir/ ;;
3115  esac
3116  as_found=:
3117
3118  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3119  ac_aux_dir_found=yes
3120  ac_install_sh=
3121  for ac_aux in $ac_aux_files
3122  do
3123    # As a special case, if "install-sh" is required, that requirement
3124    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3125    # and $ac_install_sh is set appropriately for whichever one is found.
3126    if test x"$ac_aux" = x"install-sh"
3127    then
3128      if test -f "${as_dir}install-sh"; then
3129        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3130        ac_install_sh="${as_dir}install-sh -c"
3131      elif test -f "${as_dir}install.sh"; then
3132        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3133        ac_install_sh="${as_dir}install.sh -c"
3134      elif test -f "${as_dir}shtool"; then
3135        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3136        ac_install_sh="${as_dir}shtool install -c"
3137      else
3138        ac_aux_dir_found=no
3139        if $ac_first_candidate; then
3140          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3141        else
3142          break
3143        fi
3144      fi
3145    else
3146      if test -f "${as_dir}${ac_aux}"; then
3147        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3148      else
3149        ac_aux_dir_found=no
3150        if $ac_first_candidate; then
3151          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3152        else
3153          break
3154        fi
3155      fi
3156    fi
3157  done
3158  if test "$ac_aux_dir_found" = yes; then
3159    ac_aux_dir="$as_dir"
3160    break
3161  fi
3162  ac_first_candidate=false
3163
3164  as_found=false
3165done
3166IFS=$as_save_IFS
3167if $as_found
3168then :
3169
3170else $as_nop
3171  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3172fi
3173
3174
3175# These three variables are undocumented and unsupported,
3176# and are intended to be withdrawn in a future Autoconf release.
3177# They can cause serious problems if a builder's source tree is in a directory
3178# whose full name contains unusual characters.
3179if test -f "${ac_aux_dir}config.guess"; then
3180  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3181fi
3182if test -f "${ac_aux_dir}config.sub"; then
3183  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3184fi
3185if test -f "$ac_aux_dir/configure"; then
3186  ac_configure="$SHELL ${ac_aux_dir}configure"
3187fi
3188
3189# Check that the precious variables saved in the cache have kept the same
3190# value.
3191ac_cache_corrupted=false
3192for ac_var in $ac_precious_vars; do
3193  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3194  eval ac_new_set=\$ac_env_${ac_var}_set
3195  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3196  eval ac_new_val=\$ac_env_${ac_var}_value
3197  case $ac_old_set,$ac_new_set in
3198    set,)
3199      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3200printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3201      ac_cache_corrupted=: ;;
3202    ,set)
3203      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3204printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3205      ac_cache_corrupted=: ;;
3206    ,);;
3207    *)
3208      if test "x$ac_old_val" != "x$ac_new_val"; then
3209	# differences in whitespace do not lead to failure.
3210	ac_old_val_w=`echo x $ac_old_val`
3211	ac_new_val_w=`echo x $ac_new_val`
3212	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3213	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3214printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3215	  ac_cache_corrupted=:
3216	else
3217	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3218printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3219	  eval $ac_var=\$ac_old_val
3220	fi
3221	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3222printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3223	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3224printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3225      fi;;
3226  esac
3227  # Pass precious variables to config.status.
3228  if test "$ac_new_set" = set; then
3229    case $ac_new_val in
3230    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3231    *) ac_arg=$ac_var=$ac_new_val ;;
3232    esac
3233    case " $ac_configure_args " in
3234      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3235      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3236    esac
3237  fi
3238done
3239if $ac_cache_corrupted; then
3240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3243printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3244  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3245	    and start over" "$LINENO" 5
3246fi
3247## -------------------- ##
3248## Main body of script. ##
3249## -------------------- ##
3250
3251ac_ext=c
3252ac_cpp='$CPP $CPPFLAGS'
3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
3257
3258
3259
3260am__api_version='1.16'
3261
3262
3263
3264  # Find a good install program.  We prefer a C program (faster),
3265# so one script is as good as another.  But avoid the broken or
3266# incompatible versions:
3267# SysV /etc/install, /usr/sbin/install
3268# SunOS /usr/etc/install
3269# IRIX /sbin/install
3270# AIX /bin/install
3271# AmigaOS /C/install, which installs bootblocks on floppy discs
3272# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275# OS/2's system install, which has a completely different semantic
3276# ./install, which can be erroneously created by make from ./install.sh.
3277# Reject install programs that cannot install multiple files.
3278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3279printf %s "checking for a BSD-compatible install... " >&6; }
3280if test -z "$INSTALL"; then
3281if test ${ac_cv_path_install+y}
3282then :
3283  printf %s "(cached) " >&6
3284else $as_nop
3285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288  IFS=$as_save_IFS
3289  case $as_dir in #(((
3290    '') as_dir=./ ;;
3291    */) ;;
3292    *) as_dir=$as_dir/ ;;
3293  esac
3294    # Account for fact that we put trailing slashes in our PATH walk.
3295case $as_dir in #((
3296  ./ | /[cC]/* | \
3297  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3299  /usr/ucb/* ) ;;
3300  *)
3301    # OSF1 and SCO ODT 3.0 have their own names for install.
3302    # Don't use installbsd from OSF since it installs stuff as root
3303    # by default.
3304    for ac_prog in ginstall scoinst install; do
3305      for ac_exec_ext in '' $ac_executable_extensions; do
3306	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3307	  if test $ac_prog = install &&
3308	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309	    # AIX install.  It has an incompatible calling convention.
3310	    :
3311	  elif test $ac_prog = install &&
3312	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313	    # program-specific install script used by HP pwplus--don't use.
3314	    :
3315	  else
3316	    rm -rf conftest.one conftest.two conftest.dir
3317	    echo one > conftest.one
3318	    echo two > conftest.two
3319	    mkdir conftest.dir
3320	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3321	      test -s conftest.one && test -s conftest.two &&
3322	      test -s conftest.dir/conftest.one &&
3323	      test -s conftest.dir/conftest.two
3324	    then
3325	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3326	      break 3
3327	    fi
3328	  fi
3329	fi
3330      done
3331    done
3332    ;;
3333esac
3334
3335  done
3336IFS=$as_save_IFS
3337
3338rm -rf conftest.one conftest.two conftest.dir
3339
3340fi
3341  if test ${ac_cv_path_install+y}; then
3342    INSTALL=$ac_cv_path_install
3343  else
3344    # As a last resort, use the slow shell script.  Don't cache a
3345    # value for INSTALL within a source directory, because that will
3346    # break other packages using the cache if that directory is
3347    # removed, or if the value is a relative name.
3348    INSTALL=$ac_install_sh
3349  fi
3350fi
3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3352printf "%s\n" "$INSTALL" >&6; }
3353
3354# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3355# It thinks the first close brace ends the variable substitution.
3356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3357
3358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3359
3360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3361
3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3363printf %s "checking whether build environment is sane... " >&6; }
3364# Reject unsafe characters in $srcdir or the absolute working directory
3365# name.  Accept space and tab only in the latter.
3366am_lf='
3367'
3368case `pwd` in
3369  *[\\\"\#\$\&\'\`$am_lf]*)
3370    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3371esac
3372case $srcdir in
3373  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3374    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3375esac
3376
3377# Do 'set' in a subshell so we don't clobber the current shell's
3378# arguments.  Must try -L first in case configure is actually a
3379# symlink; some systems play weird games with the mod time of symlinks
3380# (eg FreeBSD returns the mod time of the symlink's containing
3381# directory).
3382if (
3383   am_has_slept=no
3384   for am_try in 1 2; do
3385     echo "timestamp, slept: $am_has_slept" > conftest.file
3386     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3387     if test "$*" = "X"; then
3388	# -L didn't work.
3389	set X `ls -t "$srcdir/configure" conftest.file`
3390     fi
3391     if test "$*" != "X $srcdir/configure conftest.file" \
3392	&& test "$*" != "X conftest.file $srcdir/configure"; then
3393
3394	# If neither matched, then we have a broken ls.  This can happen
3395	# if, for instance, CONFIG_SHELL is bash and it inherits a
3396	# broken ls alias from the environment.  This has actually
3397	# happened.  Such a system could not be considered "sane".
3398	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3399  alias in your environment" "$LINENO" 5
3400     fi
3401     if test "$2" = conftest.file || test $am_try -eq 2; then
3402       break
3403     fi
3404     # Just in case.
3405     sleep 1
3406     am_has_slept=yes
3407   done
3408   test "$2" = conftest.file
3409   )
3410then
3411   # Ok.
3412   :
3413else
3414   as_fn_error $? "newly created file is older than distributed files!
3415Check your system clock" "$LINENO" 5
3416fi
3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418printf "%s\n" "yes" >&6; }
3419# If we didn't sleep, we still need to ensure time stamps of config.status and
3420# generated files are strictly newer.
3421am_sleep_pid=
3422if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3423  ( sleep 1 ) &
3424  am_sleep_pid=$!
3425fi
3426
3427rm -f conftest.file
3428
3429test "$program_prefix" != NONE &&
3430  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3431# Use a double $ so make ignores it.
3432test "$program_suffix" != NONE &&
3433  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3434# Double any \ or $.
3435# By default was `s,x,x', remove it if useless.
3436ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3437program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3438
3439
3440# Expand $ac_aux_dir to an absolute path.
3441am_aux_dir=`cd "$ac_aux_dir" && pwd`
3442
3443
3444  if test x"${MISSING+set}" != xset; then
3445  MISSING="\${SHELL} '$am_aux_dir/missing'"
3446fi
3447# Use eval to expand $SHELL
3448if eval "$MISSING --is-lightweight"; then
3449  am_missing_run="$MISSING "
3450else
3451  am_missing_run=
3452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3453printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3454fi
3455
3456if test x"${install_sh+set}" != xset; then
3457  case $am_aux_dir in
3458  *\ * | *\	*)
3459    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3460  *)
3461    install_sh="\${SHELL} $am_aux_dir/install-sh"
3462  esac
3463fi
3464
3465# Installed binaries are usually stripped using 'strip' when the user
3466# run "make install-strip".  However 'strip' might not be the right
3467# tool to use in cross-compilation environments, therefore Automake
3468# will honor the 'STRIP' environment variable to overrule this program.
3469if test "$cross_compiling" != no; then
3470  if test -n "$ac_tool_prefix"; then
3471  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3472set dummy ${ac_tool_prefix}strip; ac_word=$2
3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474printf %s "checking for $ac_word... " >&6; }
3475if test ${ac_cv_prog_STRIP+y}
3476then :
3477  printf %s "(cached) " >&6
3478else $as_nop
3479  if test -n "$STRIP"; then
3480  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485  IFS=$as_save_IFS
3486  case $as_dir in #(((
3487    '') as_dir=./ ;;
3488    */) ;;
3489    *) as_dir=$as_dir/ ;;
3490  esac
3491    for ac_exec_ext in '' $ac_executable_extensions; do
3492  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3493    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3495    break 2
3496  fi
3497done
3498  done
3499IFS=$as_save_IFS
3500
3501fi
3502fi
3503STRIP=$ac_cv_prog_STRIP
3504if test -n "$STRIP"; then
3505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3506printf "%s\n" "$STRIP" >&6; }
3507else
3508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509printf "%s\n" "no" >&6; }
3510fi
3511
3512
3513fi
3514if test -z "$ac_cv_prog_STRIP"; then
3515  ac_ct_STRIP=$STRIP
3516  # Extract the first word of "strip", so it can be a program name with args.
3517set dummy strip; ac_word=$2
3518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519printf %s "checking for $ac_word... " >&6; }
3520if test ${ac_cv_prog_ac_ct_STRIP+y}
3521then :
3522  printf %s "(cached) " >&6
3523else $as_nop
3524  if test -n "$ac_ct_STRIP"; then
3525  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3526else
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530  IFS=$as_save_IFS
3531  case $as_dir in #(((
3532    '') as_dir=./ ;;
3533    */) ;;
3534    *) as_dir=$as_dir/ ;;
3535  esac
3536    for ac_exec_ext in '' $ac_executable_extensions; do
3537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3538    ac_cv_prog_ac_ct_STRIP="strip"
3539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3540    break 2
3541  fi
3542done
3543  done
3544IFS=$as_save_IFS
3545
3546fi
3547fi
3548ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3549if test -n "$ac_ct_STRIP"; then
3550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3551printf "%s\n" "$ac_ct_STRIP" >&6; }
3552else
3553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554printf "%s\n" "no" >&6; }
3555fi
3556
3557  if test "x$ac_ct_STRIP" = x; then
3558    STRIP=":"
3559  else
3560    case $cross_compiling:$ac_tool_warned in
3561yes:)
3562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3563printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3564ac_tool_warned=yes ;;
3565esac
3566    STRIP=$ac_ct_STRIP
3567  fi
3568else
3569  STRIP="$ac_cv_prog_STRIP"
3570fi
3571
3572fi
3573INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3574
3575
3576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3577printf %s "checking for a race-free mkdir -p... " >&6; }
3578if test -z "$MKDIR_P"; then
3579  if test ${ac_cv_path_mkdir+y}
3580then :
3581  printf %s "(cached) " >&6
3582else $as_nop
3583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3585do
3586  IFS=$as_save_IFS
3587  case $as_dir in #(((
3588    '') as_dir=./ ;;
3589    */) ;;
3590    *) as_dir=$as_dir/ ;;
3591  esac
3592    for ac_prog in mkdir gmkdir; do
3593	 for ac_exec_ext in '' $ac_executable_extensions; do
3594	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3595	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3596	     'mkdir ('*'coreutils) '* | \
3597	     'BusyBox '* | \
3598	     'mkdir (fileutils) '4.1*)
3599	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3600	       break 3;;
3601	   esac
3602	 done
3603       done
3604  done
3605IFS=$as_save_IFS
3606
3607fi
3608
3609  test -d ./--version && rmdir ./--version
3610  if test ${ac_cv_path_mkdir+y}; then
3611    MKDIR_P="$ac_cv_path_mkdir -p"
3612  else
3613    # As a last resort, use the slow shell script.  Don't cache a
3614    # value for MKDIR_P within a source directory, because that will
3615    # break other packages using the cache if that directory is
3616    # removed, or if the value is a relative name.
3617    MKDIR_P="$ac_install_sh -d"
3618  fi
3619fi
3620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3621printf "%s\n" "$MKDIR_P" >&6; }
3622
3623for ac_prog in gawk mawk nawk awk
3624do
3625  # Extract the first word of "$ac_prog", so it can be a program name with args.
3626set dummy $ac_prog; ac_word=$2
3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628printf %s "checking for $ac_word... " >&6; }
3629if test ${ac_cv_prog_AWK+y}
3630then :
3631  printf %s "(cached) " >&6
3632else $as_nop
3633  if test -n "$AWK"; then
3634  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639  IFS=$as_save_IFS
3640  case $as_dir in #(((
3641    '') as_dir=./ ;;
3642    */) ;;
3643    *) as_dir=$as_dir/ ;;
3644  esac
3645    for ac_exec_ext in '' $ac_executable_extensions; do
3646  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3647    ac_cv_prog_AWK="$ac_prog"
3648    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3649    break 2
3650  fi
3651done
3652  done
3653IFS=$as_save_IFS
3654
3655fi
3656fi
3657AWK=$ac_cv_prog_AWK
3658if test -n "$AWK"; then
3659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3660printf "%s\n" "$AWK" >&6; }
3661else
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663printf "%s\n" "no" >&6; }
3664fi
3665
3666
3667  test -n "$AWK" && break
3668done
3669
3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3671printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3672set x ${MAKE-make}
3673ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3674if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3675then :
3676  printf %s "(cached) " >&6
3677else $as_nop
3678  cat >conftest.make <<\_ACEOF
3679SHELL = /bin/sh
3680all:
3681	@echo '@@@%%%=$(MAKE)=@@@%%%'
3682_ACEOF
3683# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3684case `${MAKE-make} -f conftest.make 2>/dev/null` in
3685  *@@@%%%=?*=@@@%%%*)
3686    eval ac_cv_prog_make_${ac_make}_set=yes;;
3687  *)
3688    eval ac_cv_prog_make_${ac_make}_set=no;;
3689esac
3690rm -f conftest.make
3691fi
3692if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3694printf "%s\n" "yes" >&6; }
3695  SET_MAKE=
3696else
3697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698printf "%s\n" "no" >&6; }
3699  SET_MAKE="MAKE=${MAKE-make}"
3700fi
3701
3702rm -rf .tst 2>/dev/null
3703mkdir .tst 2>/dev/null
3704if test -d .tst; then
3705  am__leading_dot=.
3706else
3707  am__leading_dot=_
3708fi
3709rmdir .tst 2>/dev/null
3710
3711# Check whether --enable-silent-rules was given.
3712if test ${enable_silent_rules+y}
3713then :
3714  enableval=$enable_silent_rules;
3715fi
3716
3717case $enable_silent_rules in # (((
3718  yes) AM_DEFAULT_VERBOSITY=0;;
3719   no) AM_DEFAULT_VERBOSITY=1;;
3720    *) AM_DEFAULT_VERBOSITY=1;;
3721esac
3722am_make=${MAKE-make}
3723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3724printf %s "checking whether $am_make supports nested variables... " >&6; }
3725if test ${am_cv_make_support_nested_variables+y}
3726then :
3727  printf %s "(cached) " >&6
3728else $as_nop
3729  if printf "%s\n" 'TRUE=$(BAR$(V))
3730BAR0=false
3731BAR1=true
3732V=1
3733am__doit:
3734	@$(TRUE)
3735.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3736  am_cv_make_support_nested_variables=yes
3737else
3738  am_cv_make_support_nested_variables=no
3739fi
3740fi
3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3742printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3743if test $am_cv_make_support_nested_variables = yes; then
3744    AM_V='$(V)'
3745  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3746else
3747  AM_V=$AM_DEFAULT_VERBOSITY
3748  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3749fi
3750AM_BACKSLASH='\'
3751
3752if test "`cd $srcdir && pwd`" != "`pwd`"; then
3753  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3754  # is not polluted with repeated "-I."
3755  am__isrc=' -I$(srcdir)'
3756  # test to see if srcdir already configured
3757  if test -f $srcdir/config.status; then
3758    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3759  fi
3760fi
3761
3762# test whether we have cygpath
3763if test -z "$CYGPATH_W"; then
3764  if (cygpath --version) >/dev/null 2>/dev/null; then
3765    CYGPATH_W='cygpath -w'
3766  else
3767    CYGPATH_W=echo
3768  fi
3769fi
3770
3771
3772# Define the identity of the package.
3773 PACKAGE='lnav'
3774 VERSION='0.10.1'
3775
3776
3777printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3778
3779
3780printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3781
3782# Some tools Automake needs.
3783
3784ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3785
3786
3787AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3788
3789
3790AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3791
3792
3793AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3794
3795
3796MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3797
3798# For better backward compatibility.  To be removed once Automake 1.9.x
3799# dies out for good.  For more background, see:
3800# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3801# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3802mkdir_p='$(MKDIR_P)'
3803
3804# We need awk for the "check" target (and possibly the TAP driver).  The
3805# system "awk" is bad on some platforms.
3806# Always define AMTAR for backward compatibility.  Yes, it's still used
3807# in the wild :-(  We should find a proper way to deprecate it ...
3808AMTAR='$${TAR-tar}'
3809
3810
3811# We'll loop over all known methods to create a tar archive until one works.
3812_am_tools='gnutar  pax cpio none'
3813
3814am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3815
3816
3817
3818
3819
3820# Variables for tags utilities; see am/tags.am
3821if test -z "$CTAGS"; then
3822  CTAGS=ctags
3823fi
3824
3825if test -z "$ETAGS"; then
3826  ETAGS=etags
3827fi
3828
3829if test -z "$CSCOPE"; then
3830  CSCOPE=cscope
3831fi
3832
3833
3834
3835# POSIX will say in a future version that running "rm -f" with no argument
3836# is OK; and we want to be able to make that assumption in our Makefile
3837# recipes.  So use an aggressive probe to check that the usage we want is
3838# actually supported "in the wild" to an acceptable degree.
3839# See automake bug#10828.
3840# To make any issue more visible, cause the running configure to be aborted
3841# by default if the 'rm' program in use doesn't match our expectations; the
3842# user can still override this though.
3843if rm -f && rm -fr && rm -rf; then : OK; else
3844  cat >&2 <<'END'
3845Oops!
3846
3847Your 'rm' program seems unable to run without file operands specified
3848on the command line, even when the '-f' option is present.  This is contrary
3849to the behaviour of most rm programs out there, and not conforming with
3850the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3851
3852Please tell bug-automake@gnu.org about your system, including the value
3853of your $PATH and any error possibly output before this message.  This
3854can help us improve future automake versions.
3855
3856END
3857  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3858    echo 'Configuration will proceed anyway, since you have set the' >&2
3859    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3860    echo >&2
3861  else
3862    cat >&2 <<'END'
3863Aborting the configuration process, to ensure you take notice of the issue.
3864
3865You can download and install GNU coreutils to get an 'rm' implementation
3866that behaves properly: <https://www.gnu.org/software/coreutils/>.
3867
3868If you want to complete the configuration process using your problematic
3869'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3870to "yes", and re-run configure.
3871
3872END
3873    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3874  fi
3875fi
3876
3877# Check whether --enable-silent-rules was given.
3878if test ${enable_silent_rules+y}
3879then :
3880  enableval=$enable_silent_rules;
3881fi
3882
3883case $enable_silent_rules in # (((
3884  yes) AM_DEFAULT_VERBOSITY=0;;
3885   no) AM_DEFAULT_VERBOSITY=1;;
3886    *) AM_DEFAULT_VERBOSITY=0;;
3887esac
3888am_make=${MAKE-make}
3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3890printf %s "checking whether $am_make supports nested variables... " >&6; }
3891if test ${am_cv_make_support_nested_variables+y}
3892then :
3893  printf %s "(cached) " >&6
3894else $as_nop
3895  if printf "%s\n" 'TRUE=$(BAR$(V))
3896BAR0=false
3897BAR1=true
3898V=1
3899am__doit:
3900	@$(TRUE)
3901.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3902  am_cv_make_support_nested_variables=yes
3903else
3904  am_cv_make_support_nested_variables=no
3905fi
3906fi
3907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3908printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3909if test $am_cv_make_support_nested_variables = yes; then
3910    AM_V='$(V)'
3911  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3912else
3913  AM_V=$AM_DEFAULT_VERBOSITY
3914  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3915fi
3916AM_BACKSLASH='\'
3917
3918
3919
3920
3921
3922
3923  # Make sure we can run config.sub.
3924$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3925  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3926
3927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3928printf %s "checking build system type... " >&6; }
3929if test ${ac_cv_build+y}
3930then :
3931  printf %s "(cached) " >&6
3932else $as_nop
3933  ac_build_alias=$build_alias
3934test "x$ac_build_alias" = x &&
3935  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3936test "x$ac_build_alias" = x &&
3937  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3938ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3939  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3940
3941fi
3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3943printf "%s\n" "$ac_cv_build" >&6; }
3944case $ac_cv_build in
3945*-*-*) ;;
3946*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3947esac
3948build=$ac_cv_build
3949ac_save_IFS=$IFS; IFS='-'
3950set x $ac_cv_build
3951shift
3952build_cpu=$1
3953build_vendor=$2
3954shift; shift
3955# Remember, the first character of IFS is used to create $*,
3956# except with old shells:
3957build_os=$*
3958IFS=$ac_save_IFS
3959case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3960
3961
3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3963printf %s "checking host system type... " >&6; }
3964if test ${ac_cv_host+y}
3965then :
3966  printf %s "(cached) " >&6
3967else $as_nop
3968  if test "x$host_alias" = x; then
3969  ac_cv_host=$ac_cv_build
3970else
3971  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3972    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3973fi
3974
3975fi
3976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3977printf "%s\n" "$ac_cv_host" >&6; }
3978case $ac_cv_host in
3979*-*-*) ;;
3980*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3981esac
3982host=$ac_cv_host
3983ac_save_IFS=$IFS; IFS='-'
3984set x $ac_cv_host
3985shift
3986host_cpu=$1
3987host_vendor=$2
3988shift; shift
3989# Remember, the first character of IFS is used to create $*,
3990# except with old shells:
3991host_os=$*
3992IFS=$ac_save_IFS
3993case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005DEPDIR="${am__leading_dot}deps"
4006
4007ac_config_commands="$ac_config_commands depfiles"
4008
4009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4010printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4011cat > confinc.mk << 'END'
4012am__doit:
4013	@echo this is the am__doit target >confinc.out
4014.PHONY: am__doit
4015END
4016am__include="#"
4017am__quote=
4018# BSD make does it like this.
4019echo '.include "confinc.mk" # ignored' > confmf.BSD
4020# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4021echo 'include confinc.mk # ignored' > confmf.GNU
4022_am_result=no
4023for s in GNU BSD; do
4024  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4025   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4026   ac_status=$?
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); }
4029  case $?:`cat confinc.out 2>/dev/null` in #(
4030  '0:this is the am__doit target') :
4031    case $s in #(
4032  BSD) :
4033    am__include='.include' am__quote='"' ;; #(
4034  *) :
4035    am__include='include' am__quote='' ;;
4036esac ;; #(
4037  *) :
4038     ;;
4039esac
4040  if test "$am__include" != "#"; then
4041    _am_result="yes ($s style)"
4042    break
4043  fi
4044done
4045rm -f confinc.* confmf.*
4046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4047printf "%s\n" "${_am_result}" >&6; }
4048
4049# Check whether --enable-dependency-tracking was given.
4050if test ${enable_dependency_tracking+y}
4051then :
4052  enableval=$enable_dependency_tracking;
4053fi
4054
4055if test "x$enable_dependency_tracking" != xno; then
4056  am_depcomp="$ac_aux_dir/depcomp"
4057  AMDEPBACKSLASH='\'
4058  am__nodep='_no'
4059fi
4060 if test "x$enable_dependency_tracking" != xno; then
4061  AMDEP_TRUE=
4062  AMDEP_FALSE='#'
4063else
4064  AMDEP_TRUE='#'
4065  AMDEP_FALSE=
4066fi
4067
4068
4069ac_ext=c
4070ac_cpp='$CPP $CPPFLAGS'
4071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074if test -n "$ac_tool_prefix"; then
4075  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4076set dummy ${ac_tool_prefix}gcc; ac_word=$2
4077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078printf %s "checking for $ac_word... " >&6; }
4079if test ${ac_cv_prog_CC+y}
4080then :
4081  printf %s "(cached) " >&6
4082else $as_nop
4083  if test -n "$CC"; then
4084  ac_cv_prog_CC="$CC" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089  IFS=$as_save_IFS
4090  case $as_dir in #(((
4091    '') as_dir=./ ;;
4092    */) ;;
4093    *) as_dir=$as_dir/ ;;
4094  esac
4095    for ac_exec_ext in '' $ac_executable_extensions; do
4096  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4097    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4098    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4099    break 2
4100  fi
4101done
4102  done
4103IFS=$as_save_IFS
4104
4105fi
4106fi
4107CC=$ac_cv_prog_CC
4108if test -n "$CC"; then
4109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110printf "%s\n" "$CC" >&6; }
4111else
4112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113printf "%s\n" "no" >&6; }
4114fi
4115
4116
4117fi
4118if test -z "$ac_cv_prog_CC"; then
4119  ac_ct_CC=$CC
4120  # Extract the first word of "gcc", so it can be a program name with args.
4121set dummy gcc; ac_word=$2
4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123printf %s "checking for $ac_word... " >&6; }
4124if test ${ac_cv_prog_ac_ct_CC+y}
4125then :
4126  printf %s "(cached) " >&6
4127else $as_nop
4128  if test -n "$ac_ct_CC"; then
4129  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130else
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134  IFS=$as_save_IFS
4135  case $as_dir in #(((
4136    '') as_dir=./ ;;
4137    */) ;;
4138    *) as_dir=$as_dir/ ;;
4139  esac
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4142    ac_cv_prog_ac_ct_CC="gcc"
4143    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147  done
4148IFS=$as_save_IFS
4149
4150fi
4151fi
4152ac_ct_CC=$ac_cv_prog_ac_ct_CC
4153if test -n "$ac_ct_CC"; then
4154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4155printf "%s\n" "$ac_ct_CC" >&6; }
4156else
4157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158printf "%s\n" "no" >&6; }
4159fi
4160
4161  if test "x$ac_ct_CC" = x; then
4162    CC=""
4163  else
4164    case $cross_compiling:$ac_tool_warned in
4165yes:)
4166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168ac_tool_warned=yes ;;
4169esac
4170    CC=$ac_ct_CC
4171  fi
4172else
4173  CC="$ac_cv_prog_CC"
4174fi
4175
4176if test -z "$CC"; then
4177          if test -n "$ac_tool_prefix"; then
4178    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4179set dummy ${ac_tool_prefix}cc; ac_word=$2
4180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181printf %s "checking for $ac_word... " >&6; }
4182if test ${ac_cv_prog_CC+y}
4183then :
4184  printf %s "(cached) " >&6
4185else $as_nop
4186  if test -n "$CC"; then
4187  ac_cv_prog_CC="$CC" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192  IFS=$as_save_IFS
4193  case $as_dir in #(((
4194    '') as_dir=./ ;;
4195    */) ;;
4196    *) as_dir=$as_dir/ ;;
4197  esac
4198    for ac_exec_ext in '' $ac_executable_extensions; do
4199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4200    ac_cv_prog_CC="${ac_tool_prefix}cc"
4201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4202    break 2
4203  fi
4204done
4205  done
4206IFS=$as_save_IFS
4207
4208fi
4209fi
4210CC=$ac_cv_prog_CC
4211if test -n "$CC"; then
4212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213printf "%s\n" "$CC" >&6; }
4214else
4215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216printf "%s\n" "no" >&6; }
4217fi
4218
4219
4220  fi
4221fi
4222if test -z "$CC"; then
4223  # Extract the first word of "cc", so it can be a program name with args.
4224set dummy cc; ac_word=$2
4225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226printf %s "checking for $ac_word... " >&6; }
4227if test ${ac_cv_prog_CC+y}
4228then :
4229  printf %s "(cached) " >&6
4230else $as_nop
4231  if test -n "$CC"; then
4232  ac_cv_prog_CC="$CC" # Let the user override the test.
4233else
4234  ac_prog_rejected=no
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238  IFS=$as_save_IFS
4239  case $as_dir in #(((
4240    '') as_dir=./ ;;
4241    */) ;;
4242    *) as_dir=$as_dir/ ;;
4243  esac
4244    for ac_exec_ext in '' $ac_executable_extensions; do
4245  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4246    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4247       ac_prog_rejected=yes
4248       continue
4249     fi
4250    ac_cv_prog_CC="cc"
4251    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4252    break 2
4253  fi
4254done
4255  done
4256IFS=$as_save_IFS
4257
4258if test $ac_prog_rejected = yes; then
4259  # We found a bogon in the path, so make sure we never use it.
4260  set dummy $ac_cv_prog_CC
4261  shift
4262  if test $# != 0; then
4263    # We chose a different compiler from the bogus one.
4264    # However, it has the same basename, so the bogon will be chosen
4265    # first if we set CC to just the basename; use the full file name.
4266    shift
4267    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4268  fi
4269fi
4270fi
4271fi
4272CC=$ac_cv_prog_CC
4273if test -n "$CC"; then
4274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275printf "%s\n" "$CC" >&6; }
4276else
4277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278printf "%s\n" "no" >&6; }
4279fi
4280
4281
4282fi
4283if test -z "$CC"; then
4284  if test -n "$ac_tool_prefix"; then
4285  for ac_prog in cl.exe
4286  do
4287    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290printf %s "checking for $ac_word... " >&6; }
4291if test ${ac_cv_prog_CC+y}
4292then :
4293  printf %s "(cached) " >&6
4294else $as_nop
4295  if test -n "$CC"; then
4296  ac_cv_prog_CC="$CC" # Let the user override the test.
4297else
4298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
4300do
4301  IFS=$as_save_IFS
4302  case $as_dir in #(((
4303    '') as_dir=./ ;;
4304    */) ;;
4305    *) as_dir=$as_dir/ ;;
4306  esac
4307    for ac_exec_ext in '' $ac_executable_extensions; do
4308  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4309    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4310    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4311    break 2
4312  fi
4313done
4314  done
4315IFS=$as_save_IFS
4316
4317fi
4318fi
4319CC=$ac_cv_prog_CC
4320if test -n "$CC"; then
4321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4322printf "%s\n" "$CC" >&6; }
4323else
4324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325printf "%s\n" "no" >&6; }
4326fi
4327
4328
4329    test -n "$CC" && break
4330  done
4331fi
4332if test -z "$CC"; then
4333  ac_ct_CC=$CC
4334  for ac_prog in cl.exe
4335do
4336  # Extract the first word of "$ac_prog", so it can be a program name with args.
4337set dummy $ac_prog; ac_word=$2
4338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339printf %s "checking for $ac_word... " >&6; }
4340if test ${ac_cv_prog_ac_ct_CC+y}
4341then :
4342  printf %s "(cached) " >&6
4343else $as_nop
4344  if test -n "$ac_ct_CC"; then
4345  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4346else
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350  IFS=$as_save_IFS
4351  case $as_dir in #(((
4352    '') as_dir=./ ;;
4353    */) ;;
4354    *) as_dir=$as_dir/ ;;
4355  esac
4356    for ac_exec_ext in '' $ac_executable_extensions; do
4357  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4358    ac_cv_prog_ac_ct_CC="$ac_prog"
4359    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4360    break 2
4361  fi
4362done
4363  done
4364IFS=$as_save_IFS
4365
4366fi
4367fi
4368ac_ct_CC=$ac_cv_prog_ac_ct_CC
4369if test -n "$ac_ct_CC"; then
4370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4371printf "%s\n" "$ac_ct_CC" >&6; }
4372else
4373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374printf "%s\n" "no" >&6; }
4375fi
4376
4377
4378  test -n "$ac_ct_CC" && break
4379done
4380
4381  if test "x$ac_ct_CC" = x; then
4382    CC=""
4383  else
4384    case $cross_compiling:$ac_tool_warned in
4385yes:)
4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4387printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4388ac_tool_warned=yes ;;
4389esac
4390    CC=$ac_ct_CC
4391  fi
4392fi
4393
4394fi
4395if test -z "$CC"; then
4396  if test -n "$ac_tool_prefix"; then
4397  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4398set dummy ${ac_tool_prefix}clang; ac_word=$2
4399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400printf %s "checking for $ac_word... " >&6; }
4401if test ${ac_cv_prog_CC+y}
4402then :
4403  printf %s "(cached) " >&6
4404else $as_nop
4405  if test -n "$CC"; then
4406  ac_cv_prog_CC="$CC" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411  IFS=$as_save_IFS
4412  case $as_dir in #(((
4413    '') as_dir=./ ;;
4414    */) ;;
4415    *) as_dir=$as_dir/ ;;
4416  esac
4417    for ac_exec_ext in '' $ac_executable_extensions; do
4418  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4419    ac_cv_prog_CC="${ac_tool_prefix}clang"
4420    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4421    break 2
4422  fi
4423done
4424  done
4425IFS=$as_save_IFS
4426
4427fi
4428fi
4429CC=$ac_cv_prog_CC
4430if test -n "$CC"; then
4431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4432printf "%s\n" "$CC" >&6; }
4433else
4434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435printf "%s\n" "no" >&6; }
4436fi
4437
4438
4439fi
4440if test -z "$ac_cv_prog_CC"; then
4441  ac_ct_CC=$CC
4442  # Extract the first word of "clang", so it can be a program name with args.
4443set dummy clang; ac_word=$2
4444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445printf %s "checking for $ac_word... " >&6; }
4446if test ${ac_cv_prog_ac_ct_CC+y}
4447then :
4448  printf %s "(cached) " >&6
4449else $as_nop
4450  if test -n "$ac_ct_CC"; then
4451  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456  IFS=$as_save_IFS
4457  case $as_dir in #(((
4458    '') as_dir=./ ;;
4459    */) ;;
4460    *) as_dir=$as_dir/ ;;
4461  esac
4462    for ac_exec_ext in '' $ac_executable_extensions; do
4463  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4464    ac_cv_prog_ac_ct_CC="clang"
4465    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4466    break 2
4467  fi
4468done
4469  done
4470IFS=$as_save_IFS
4471
4472fi
4473fi
4474ac_ct_CC=$ac_cv_prog_ac_ct_CC
4475if test -n "$ac_ct_CC"; then
4476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4477printf "%s\n" "$ac_ct_CC" >&6; }
4478else
4479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480printf "%s\n" "no" >&6; }
4481fi
4482
4483  if test "x$ac_ct_CC" = x; then
4484    CC=""
4485  else
4486    case $cross_compiling:$ac_tool_warned in
4487yes:)
4488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490ac_tool_warned=yes ;;
4491esac
4492    CC=$ac_ct_CC
4493  fi
4494else
4495  CC="$ac_cv_prog_CC"
4496fi
4497
4498fi
4499
4500
4501test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4503as_fn_error $? "no acceptable C compiler found in \$PATH
4504See \`config.log' for more details" "$LINENO" 5; }
4505
4506# Provide some information about the compiler.
4507printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4508set X $ac_compile
4509ac_compiler=$2
4510for ac_option in --version -v -V -qversion -version; do
4511  { { ac_try="$ac_compiler $ac_option >&5"
4512case "(($ac_try" in
4513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514  *) ac_try_echo=$ac_try;;
4515esac
4516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517printf "%s\n" "$ac_try_echo"; } >&5
4518  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4519  ac_status=$?
4520  if test -s conftest.err; then
4521    sed '10a\
4522... rest of stderr output deleted ...
4523         10q' conftest.err >conftest.er1
4524    cat conftest.er1 >&5
4525  fi
4526  rm -f conftest.er1 conftest.err
4527  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528  test $ac_status = 0; }
4529done
4530
4531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h.  */
4533
4534int
4535main (void)
4536{
4537
4538  ;
4539  return 0;
4540}
4541_ACEOF
4542ac_clean_files_save=$ac_clean_files
4543ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4544# Try to create an executable without -o first, disregard a.out.
4545# It will help us diagnose broken compilers, and finding out an intuition
4546# of exeext.
4547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4548printf %s "checking whether the C compiler works... " >&6; }
4549ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4550
4551# The possible output files:
4552ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4553
4554ac_rmfiles=
4555for ac_file in $ac_files
4556do
4557  case $ac_file in
4558    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4559    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4560  esac
4561done
4562rm -f $ac_rmfiles
4563
4564if { { ac_try="$ac_link_default"
4565case "(($ac_try" in
4566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567  *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570printf "%s\n" "$ac_try_echo"; } >&5
4571  (eval "$ac_link_default") 2>&5
4572  ac_status=$?
4573  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574  test $ac_status = 0; }
4575then :
4576  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4577# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4578# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4579# so that the user can short-circuit this test for compilers unknown to
4580# Autoconf.
4581for ac_file in $ac_files ''
4582do
4583  test -f "$ac_file" || continue
4584  case $ac_file in
4585    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4586	;;
4587    [ab].out )
4588	# We found the default executable, but exeext='' is most
4589	# certainly right.
4590	break;;
4591    *.* )
4592	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4593	then :; else
4594	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4595	fi
4596	# We set ac_cv_exeext here because the later test for it is not
4597	# safe: cross compilers may not add the suffix if given an `-o'
4598	# argument, so we may need to know it at that point already.
4599	# Even if this section looks crufty: it has the advantage of
4600	# actually working.
4601	break;;
4602    * )
4603	break;;
4604  esac
4605done
4606test "$ac_cv_exeext" = no && ac_cv_exeext=
4607
4608else $as_nop
4609  ac_file=''
4610fi
4611if test -z "$ac_file"
4612then :
4613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614printf "%s\n" "no" >&6; }
4615printf "%s\n" "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4619printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4620as_fn_error 77 "C compiler cannot create executables
4621See \`config.log' for more details" "$LINENO" 5; }
4622else $as_nop
4623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4624printf "%s\n" "yes" >&6; }
4625fi
4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4627printf %s "checking for C compiler default output file name... " >&6; }
4628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4629printf "%s\n" "$ac_file" >&6; }
4630ac_exeext=$ac_cv_exeext
4631
4632rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4633ac_clean_files=$ac_clean_files_save
4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4635printf %s "checking for suffix of executables... " >&6; }
4636if { { ac_try="$ac_link"
4637case "(($ac_try" in
4638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639  *) ac_try_echo=$ac_try;;
4640esac
4641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4642printf "%s\n" "$ac_try_echo"; } >&5
4643  (eval "$ac_link") 2>&5
4644  ac_status=$?
4645  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646  test $ac_status = 0; }
4647then :
4648  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4649# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4650# work properly (i.e., refer to `conftest.exe'), while it won't with
4651# `rm'.
4652for ac_file in conftest.exe conftest conftest.*; do
4653  test -f "$ac_file" || continue
4654  case $ac_file in
4655    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4656    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4657	  break;;
4658    * ) break;;
4659  esac
4660done
4661else $as_nop
4662  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4663printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4664as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4665See \`config.log' for more details" "$LINENO" 5; }
4666fi
4667rm -f conftest conftest$ac_cv_exeext
4668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4669printf "%s\n" "$ac_cv_exeext" >&6; }
4670
4671rm -f conftest.$ac_ext
4672EXEEXT=$ac_cv_exeext
4673ac_exeext=$EXEEXT
4674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h.  */
4676#include <stdio.h>
4677int
4678main (void)
4679{
4680FILE *f = fopen ("conftest.out", "w");
4681 return ferror (f) || fclose (f) != 0;
4682
4683  ;
4684  return 0;
4685}
4686_ACEOF
4687ac_clean_files="$ac_clean_files conftest.out"
4688# Check that the compiler produces executables we can run.  If not, either
4689# the compiler is broken, or we cross compile.
4690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4691printf %s "checking whether we are cross compiling... " >&6; }
4692if test "$cross_compiling" != yes; then
4693  { { ac_try="$ac_link"
4694case "(($ac_try" in
4695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696  *) ac_try_echo=$ac_try;;
4697esac
4698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699printf "%s\n" "$ac_try_echo"; } >&5
4700  (eval "$ac_link") 2>&5
4701  ac_status=$?
4702  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703  test $ac_status = 0; }
4704  if { ac_try='./conftest$ac_cv_exeext'
4705  { { case "(($ac_try" in
4706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707  *) ac_try_echo=$ac_try;;
4708esac
4709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710printf "%s\n" "$ac_try_echo"; } >&5
4711  (eval "$ac_try") 2>&5
4712  ac_status=$?
4713  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714  test $ac_status = 0; }; }; then
4715    cross_compiling=no
4716  else
4717    if test "$cross_compiling" = maybe; then
4718	cross_compiling=yes
4719    else
4720	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4721printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4722as_fn_error 77 "cannot run C compiled programs.
4723If you meant to cross compile, use \`--host'.
4724See \`config.log' for more details" "$LINENO" 5; }
4725    fi
4726  fi
4727fi
4728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4729printf "%s\n" "$cross_compiling" >&6; }
4730
4731rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4732ac_clean_files=$ac_clean_files_save
4733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4734printf %s "checking for suffix of object files... " >&6; }
4735if test ${ac_cv_objext+y}
4736then :
4737  printf %s "(cached) " >&6
4738else $as_nop
4739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741
4742int
4743main (void)
4744{
4745
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750rm -f conftest.o conftest.obj
4751if { { ac_try="$ac_compile"
4752case "(($ac_try" in
4753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754  *) ac_try_echo=$ac_try;;
4755esac
4756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757printf "%s\n" "$ac_try_echo"; } >&5
4758  (eval "$ac_compile") 2>&5
4759  ac_status=$?
4760  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761  test $ac_status = 0; }
4762then :
4763  for ac_file in conftest.o conftest.obj conftest.*; do
4764  test -f "$ac_file" || continue;
4765  case $ac_file in
4766    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4767    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4768       break;;
4769  esac
4770done
4771else $as_nop
4772  printf "%s\n" "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4776printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4777as_fn_error $? "cannot compute suffix of object files: cannot compile
4778See \`config.log' for more details" "$LINENO" 5; }
4779fi
4780rm -f conftest.$ac_cv_objext conftest.$ac_ext
4781fi
4782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4783printf "%s\n" "$ac_cv_objext" >&6; }
4784OBJEXT=$ac_cv_objext
4785ac_objext=$OBJEXT
4786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4787printf %s "checking whether the compiler supports GNU C... " >&6; }
4788if test ${ac_cv_c_compiler_gnu+y}
4789then :
4790  printf %s "(cached) " >&6
4791else $as_nop
4792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793/* end confdefs.h.  */
4794
4795int
4796main (void)
4797{
4798#ifndef __GNUC__
4799       choke me
4800#endif
4801
4802  ;
4803  return 0;
4804}
4805_ACEOF
4806if ac_fn_c_try_compile "$LINENO"
4807then :
4808  ac_compiler_gnu=yes
4809else $as_nop
4810  ac_compiler_gnu=no
4811fi
4812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4813ac_cv_c_compiler_gnu=$ac_compiler_gnu
4814
4815fi
4816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4817printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4818ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819
4820if test $ac_compiler_gnu = yes; then
4821  GCC=yes
4822else
4823  GCC=
4824fi
4825ac_test_CFLAGS=${CFLAGS+y}
4826ac_save_CFLAGS=$CFLAGS
4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4828printf %s "checking whether $CC accepts -g... " >&6; }
4829if test ${ac_cv_prog_cc_g+y}
4830then :
4831  printf %s "(cached) " >&6
4832else $as_nop
4833  ac_save_c_werror_flag=$ac_c_werror_flag
4834   ac_c_werror_flag=yes
4835   ac_cv_prog_cc_g=no
4836   CFLAGS="-g"
4837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838/* end confdefs.h.  */
4839
4840int
4841main (void)
4842{
4843
4844  ;
4845  return 0;
4846}
4847_ACEOF
4848if ac_fn_c_try_compile "$LINENO"
4849then :
4850  ac_cv_prog_cc_g=yes
4851else $as_nop
4852  CFLAGS=""
4853      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854/* end confdefs.h.  */
4855
4856int
4857main (void)
4858{
4859
4860  ;
4861  return 0;
4862}
4863_ACEOF
4864if ac_fn_c_try_compile "$LINENO"
4865then :
4866
4867else $as_nop
4868  ac_c_werror_flag=$ac_save_c_werror_flag
4869	 CFLAGS="-g"
4870	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871/* end confdefs.h.  */
4872
4873int
4874main (void)
4875{
4876
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881if ac_fn_c_try_compile "$LINENO"
4882then :
4883  ac_cv_prog_cc_g=yes
4884fi
4885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4886fi
4887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4888fi
4889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4890   ac_c_werror_flag=$ac_save_c_werror_flag
4891fi
4892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4893printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4894if test $ac_test_CFLAGS; then
4895  CFLAGS=$ac_save_CFLAGS
4896elif test $ac_cv_prog_cc_g = yes; then
4897  if test "$GCC" = yes; then
4898    CFLAGS="-g -O2"
4899  else
4900    CFLAGS="-g"
4901  fi
4902else
4903  if test "$GCC" = yes; then
4904    CFLAGS="-O2"
4905  else
4906    CFLAGS=
4907  fi
4908fi
4909ac_prog_cc_stdc=no
4910if test x$ac_prog_cc_stdc = xno
4911then :
4912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4913printf %s "checking for $CC option to enable C11 features... " >&6; }
4914if test ${ac_cv_prog_cc_c11+y}
4915then :
4916  printf %s "(cached) " >&6
4917else $as_nop
4918  ac_cv_prog_cc_c11=no
4919ac_save_CC=$CC
4920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h.  */
4922$ac_c_conftest_c11_program
4923_ACEOF
4924for ac_arg in '' -std=gnu11
4925do
4926  CC="$ac_save_CC $ac_arg"
4927  if ac_fn_c_try_compile "$LINENO"
4928then :
4929  ac_cv_prog_cc_c11=$ac_arg
4930fi
4931rm -f core conftest.err conftest.$ac_objext conftest.beam
4932  test "x$ac_cv_prog_cc_c11" != "xno" && break
4933done
4934rm -f conftest.$ac_ext
4935CC=$ac_save_CC
4936fi
4937
4938if test "x$ac_cv_prog_cc_c11" = xno
4939then :
4940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4941printf "%s\n" "unsupported" >&6; }
4942else $as_nop
4943  if test "x$ac_cv_prog_cc_c11" = x
4944then :
4945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4946printf "%s\n" "none needed" >&6; }
4947else $as_nop
4948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4949printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4950     CC="$CC $ac_cv_prog_cc_c11"
4951fi
4952  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4953  ac_prog_cc_stdc=c11
4954fi
4955fi
4956if test x$ac_prog_cc_stdc = xno
4957then :
4958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4959printf %s "checking for $CC option to enable C99 features... " >&6; }
4960if test ${ac_cv_prog_cc_c99+y}
4961then :
4962  printf %s "(cached) " >&6
4963else $as_nop
4964  ac_cv_prog_cc_c99=no
4965ac_save_CC=$CC
4966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h.  */
4968$ac_c_conftest_c99_program
4969_ACEOF
4970for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4971do
4972  CC="$ac_save_CC $ac_arg"
4973  if ac_fn_c_try_compile "$LINENO"
4974then :
4975  ac_cv_prog_cc_c99=$ac_arg
4976fi
4977rm -f core conftest.err conftest.$ac_objext conftest.beam
4978  test "x$ac_cv_prog_cc_c99" != "xno" && break
4979done
4980rm -f conftest.$ac_ext
4981CC=$ac_save_CC
4982fi
4983
4984if test "x$ac_cv_prog_cc_c99" = xno
4985then :
4986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4987printf "%s\n" "unsupported" >&6; }
4988else $as_nop
4989  if test "x$ac_cv_prog_cc_c99" = x
4990then :
4991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4992printf "%s\n" "none needed" >&6; }
4993else $as_nop
4994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4995printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4996     CC="$CC $ac_cv_prog_cc_c99"
4997fi
4998  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4999  ac_prog_cc_stdc=c99
5000fi
5001fi
5002if test x$ac_prog_cc_stdc = xno
5003then :
5004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5005printf %s "checking for $CC option to enable C89 features... " >&6; }
5006if test ${ac_cv_prog_cc_c89+y}
5007then :
5008  printf %s "(cached) " >&6
5009else $as_nop
5010  ac_cv_prog_cc_c89=no
5011ac_save_CC=$CC
5012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013/* end confdefs.h.  */
5014$ac_c_conftest_c89_program
5015_ACEOF
5016for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5017do
5018  CC="$ac_save_CC $ac_arg"
5019  if ac_fn_c_try_compile "$LINENO"
5020then :
5021  ac_cv_prog_cc_c89=$ac_arg
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.beam
5024  test "x$ac_cv_prog_cc_c89" != "xno" && break
5025done
5026rm -f conftest.$ac_ext
5027CC=$ac_save_CC
5028fi
5029
5030if test "x$ac_cv_prog_cc_c89" = xno
5031then :
5032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5033printf "%s\n" "unsupported" >&6; }
5034else $as_nop
5035  if test "x$ac_cv_prog_cc_c89" = x
5036then :
5037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5038printf "%s\n" "none needed" >&6; }
5039else $as_nop
5040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5041printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5042     CC="$CC $ac_cv_prog_cc_c89"
5043fi
5044  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5045  ac_prog_cc_stdc=c89
5046fi
5047fi
5048
5049ac_ext=c
5050ac_cpp='$CPP $CPPFLAGS'
5051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
5055
5056  ac_ext=c
5057ac_cpp='$CPP $CPPFLAGS'
5058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5062printf %s "checking whether $CC understands -c and -o together... " >&6; }
5063if test ${am_cv_prog_cc_c_o+y}
5064then :
5065  printf %s "(cached) " >&6
5066else $as_nop
5067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h.  */
5069
5070int
5071main (void)
5072{
5073
5074  ;
5075  return 0;
5076}
5077_ACEOF
5078  # Make sure it works both with $CC and with simple cc.
5079  # Following AC_PROG_CC_C_O, we do the test twice because some
5080  # compilers refuse to overwrite an existing .o file with -o,
5081  # though they will create one.
5082  am_cv_prog_cc_c_o=yes
5083  for am_i in 1 2; do
5084    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5085   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } \
5089         && test -f conftest2.$ac_objext; then
5090      : OK
5091    else
5092      am_cv_prog_cc_c_o=no
5093      break
5094    fi
5095  done
5096  rm -f core conftest*
5097  unset am_i
5098fi
5099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5100printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5101if test "$am_cv_prog_cc_c_o" != yes; then
5102   # Losing compiler, so override with the script.
5103   # FIXME: It is wrong to rewrite CC.
5104   # But if we don't then we get into trouble of one sort or another.
5105   # A longer-term fix would be to have automake use am__CC in this case,
5106   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5107   CC="$am_aux_dir/compile $CC"
5108fi
5109ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115
5116depcc="$CC"   am_compiler_list=
5117
5118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5119printf %s "checking dependency style of $depcc... " >&6; }
5120if test ${am_cv_CC_dependencies_compiler_type+y}
5121then :
5122  printf %s "(cached) " >&6
5123else $as_nop
5124  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5125  # We make a subdir and do the tests there.  Otherwise we can end up
5126  # making bogus files that we don't know about and never remove.  For
5127  # instance it was reported that on HP-UX the gcc test will end up
5128  # making a dummy file named 'D' -- because '-MD' means "put the output
5129  # in D".
5130  rm -rf conftest.dir
5131  mkdir conftest.dir
5132  # Copy depcomp to subdir because otherwise we won't find it if we're
5133  # using a relative directory.
5134  cp "$am_depcomp" conftest.dir
5135  cd conftest.dir
5136  # We will build objects and dependencies in a subdirectory because
5137  # it helps to detect inapplicable dependency modes.  For instance
5138  # both Tru64's cc and ICC support -MD to output dependencies as a
5139  # side effect of compilation, but ICC will put the dependencies in
5140  # the current directory while Tru64 will put them in the object
5141  # directory.
5142  mkdir sub
5143
5144  am_cv_CC_dependencies_compiler_type=none
5145  if test "$am_compiler_list" = ""; then
5146     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5147  fi
5148  am__universal=false
5149  case " $depcc " in #(
5150     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5151     esac
5152
5153  for depmode in $am_compiler_list; do
5154    # Setup a source with many dependencies, because some compilers
5155    # like to wrap large dependency lists on column 80 (with \), and
5156    # we should not choose a depcomp mode which is confused by this.
5157    #
5158    # We need to recreate these files for each test, as the compiler may
5159    # overwrite some of them when testing with obscure command lines.
5160    # This happens at least with the AIX C compiler.
5161    : > sub/conftest.c
5162    for i in 1 2 3 4 5 6; do
5163      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5164      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5165      # Solaris 10 /bin/sh.
5166      echo '/* dummy */' > sub/conftst$i.h
5167    done
5168    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5169
5170    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5171    # mode.  It turns out that the SunPro C++ compiler does not properly
5172    # handle '-M -o', and we need to detect this.  Also, some Intel
5173    # versions had trouble with output in subdirs.
5174    am__obj=sub/conftest.${OBJEXT-o}
5175    am__minus_obj="-o $am__obj"
5176    case $depmode in
5177    gcc)
5178      # This depmode causes a compiler race in universal mode.
5179      test "$am__universal" = false || continue
5180      ;;
5181    nosideeffect)
5182      # After this tag, mechanisms are not by side-effect, so they'll
5183      # only be used when explicitly requested.
5184      if test "x$enable_dependency_tracking" = xyes; then
5185	continue
5186      else
5187	break
5188      fi
5189      ;;
5190    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5191      # This compiler won't grok '-c -o', but also, the minuso test has
5192      # not run yet.  These depmodes are late enough in the game, and
5193      # so weak that their functioning should not be impacted.
5194      am__obj=conftest.${OBJEXT-o}
5195      am__minus_obj=
5196      ;;
5197    none) break ;;
5198    esac
5199    if depmode=$depmode \
5200       source=sub/conftest.c object=$am__obj \
5201       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5202       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5203         >/dev/null 2>conftest.err &&
5204       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5205       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5206       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5207       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5208      # icc doesn't choke on unknown options, it will just issue warnings
5209      # or remarks (even with -Werror).  So we grep stderr for any message
5210      # that says an option was ignored or not supported.
5211      # When given -MP, icc 7.0 and 7.1 complain thusly:
5212      #   icc: Command line warning: ignoring option '-M'; no argument required
5213      # The diagnosis changed in icc 8.0:
5214      #   icc: Command line remark: option '-MP' not supported
5215      if (grep 'ignoring option' conftest.err ||
5216          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5217        am_cv_CC_dependencies_compiler_type=$depmode
5218        break
5219      fi
5220    fi
5221  done
5222
5223  cd ..
5224  rm -rf conftest.dir
5225else
5226  am_cv_CC_dependencies_compiler_type=none
5227fi
5228
5229fi
5230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5231printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5232CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5233
5234 if
5235  test "x$enable_dependency_tracking" != xno \
5236  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5237  am__fastdepCC_TRUE=
5238  am__fastdepCC_FALSE='#'
5239else
5240  am__fastdepCC_TRUE='#'
5241  am__fastdepCC_FALSE=
5242fi
5243
5244
5245ac_ext=c
5246ac_cpp='$CPP $CPPFLAGS'
5247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5251printf %s "checking how to run the C preprocessor... " >&6; }
5252# On Suns, sometimes $CPP names a directory.
5253if test -n "$CPP" && test -d "$CPP"; then
5254  CPP=
5255fi
5256if test -z "$CPP"; then
5257  if test ${ac_cv_prog_CPP+y}
5258then :
5259  printf %s "(cached) " >&6
5260else $as_nop
5261      # Double quotes because $CC needs to be expanded
5262    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5263    do
5264      ac_preproc_ok=false
5265for ac_c_preproc_warn_flag in '' yes
5266do
5267  # Use a header file that comes with gcc, so configuring glibc
5268  # with a fresh cross-compiler works.
5269  # On the NeXT, cc -E runs the code through the compiler's parser,
5270  # not just through cpp. "Syntax error" is here to catch this case.
5271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273#include <limits.h>
5274		     Syntax error
5275_ACEOF
5276if ac_fn_c_try_cpp "$LINENO"
5277then :
5278
5279else $as_nop
5280  # Broken: fails on valid input.
5281continue
5282fi
5283rm -f conftest.err conftest.i conftest.$ac_ext
5284
5285  # OK, works on sane cases.  Now check whether nonexistent headers
5286  # can be detected and how.
5287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h.  */
5289#include <ac_nonexistent.h>
5290_ACEOF
5291if ac_fn_c_try_cpp "$LINENO"
5292then :
5293  # Broken: success on invalid input.
5294continue
5295else $as_nop
5296  # Passes both tests.
5297ac_preproc_ok=:
5298break
5299fi
5300rm -f conftest.err conftest.i conftest.$ac_ext
5301
5302done
5303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5304rm -f conftest.i conftest.err conftest.$ac_ext
5305if $ac_preproc_ok
5306then :
5307  break
5308fi
5309
5310    done
5311    ac_cv_prog_CPP=$CPP
5312
5313fi
5314  CPP=$ac_cv_prog_CPP
5315else
5316  ac_cv_prog_CPP=$CPP
5317fi
5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5319printf "%s\n" "$CPP" >&6; }
5320ac_preproc_ok=false
5321for ac_c_preproc_warn_flag in '' yes
5322do
5323  # Use a header file that comes with gcc, so configuring glibc
5324  # with a fresh cross-compiler works.
5325  # On the NeXT, cc -E runs the code through the compiler's parser,
5326  # not just through cpp. "Syntax error" is here to catch this case.
5327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329#include <limits.h>
5330		     Syntax error
5331_ACEOF
5332if ac_fn_c_try_cpp "$LINENO"
5333then :
5334
5335else $as_nop
5336  # Broken: fails on valid input.
5337continue
5338fi
5339rm -f conftest.err conftest.i conftest.$ac_ext
5340
5341  # OK, works on sane cases.  Now check whether nonexistent headers
5342  # can be detected and how.
5343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h.  */
5345#include <ac_nonexistent.h>
5346_ACEOF
5347if ac_fn_c_try_cpp "$LINENO"
5348then :
5349  # Broken: success on invalid input.
5350continue
5351else $as_nop
5352  # Passes both tests.
5353ac_preproc_ok=:
5354break
5355fi
5356rm -f conftest.err conftest.i conftest.$ac_ext
5357
5358done
5359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5360rm -f conftest.i conftest.err conftest.$ac_ext
5361if $ac_preproc_ok
5362then :
5363
5364else $as_nop
5365  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5366printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5367as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5368See \`config.log' for more details" "$LINENO" 5; }
5369fi
5370
5371ac_ext=c
5372ac_cpp='$CPP $CPPFLAGS'
5373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376
5377
5378
5379_save_ax_prog_cc_for_build__ac_ext="$ac_cv_c_compiler_gnu"
5380cross_compiling_build=no
5381
5382ac_build_tool_prefix=
5383if test -n "$build"
5384then :
5385  ac_build_tool_prefix="$build-"
5386elif test -n "$build_alias"
5387then :
5388  ac_build_tool_prefix="$build_alias-"
5389fi
5390
5391ac_ext=c
5392ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5393ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5394ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5395ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397ac_ext=c
5398ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5399ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5400ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5401ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402if test -n "$ac_build_tool_prefix"; then
5403  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5404set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406printf %s "checking for $ac_word... " >&6; }
5407if test ${ac_cv_prog_CC_FOR_BUILD+y}
5408then :
5409  printf %s "(cached) " >&6
5410else $as_nop
5411  if test -n "$CC_FOR_BUILD"; then
5412  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5413else
5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417  IFS=$as_save_IFS
5418  case $as_dir in #(((
5419    '') as_dir=./ ;;
5420    */) ;;
5421    *) as_dir=$as_dir/ ;;
5422  esac
5423    for ac_exec_ext in '' $ac_executable_extensions; do
5424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5425    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5427    break 2
5428  fi
5429done
5430  done
5431IFS=$as_save_IFS
5432
5433fi
5434fi
5435CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5436if test -n "$CC_FOR_BUILD"; then
5437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5438printf "%s\n" "$CC_FOR_BUILD" >&6; }
5439else
5440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441printf "%s\n" "no" >&6; }
5442fi
5443
5444
5445fi
5446if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5447  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5448  # Extract the first word of "gcc", so it can be a program name with args.
5449set dummy gcc; ac_word=$2
5450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451printf %s "checking for $ac_word... " >&6; }
5452if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
5453then :
5454  printf %s "(cached) " >&6
5455else $as_nop
5456  if test -n "$ac_ct_CC_FOR_BUILD"; then
5457  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5458else
5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH
5461do
5462  IFS=$as_save_IFS
5463  case $as_dir in #(((
5464    '') as_dir=./ ;;
5465    */) ;;
5466    *) as_dir=$as_dir/ ;;
5467  esac
5468    for ac_exec_ext in '' $ac_executable_extensions; do
5469  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5470    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5471    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5472    break 2
5473  fi
5474done
5475  done
5476IFS=$as_save_IFS
5477
5478fi
5479fi
5480ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5481if test -n "$ac_ct_CC_FOR_BUILD"; then
5482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5483printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
5484else
5485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486printf "%s\n" "no" >&6; }
5487fi
5488
5489  if test "x$ac_ct_CC_FOR_BUILD" = x; then
5490    CC_FOR_BUILD=""
5491  else
5492    case $cross_compiling_build:$ac_tool_warned in
5493yes:)
5494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5495printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5496ac_tool_warned=yes ;;
5497esac
5498    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5499  fi
5500else
5501  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5502fi
5503
5504if test -z "$CC_FOR_BUILD"; then
5505          if test -n "$ac_build_tool_prefix"; then
5506    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5507set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509printf %s "checking for $ac_word... " >&6; }
5510if test ${ac_cv_prog_CC_FOR_BUILD+y}
5511then :
5512  printf %s "(cached) " >&6
5513else $as_nop
5514  if test -n "$CC_FOR_BUILD"; then
5515  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5516else
5517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518for as_dir in $PATH
5519do
5520  IFS=$as_save_IFS
5521  case $as_dir in #(((
5522    '') as_dir=./ ;;
5523    */) ;;
5524    *) as_dir=$as_dir/ ;;
5525  esac
5526    for ac_exec_ext in '' $ac_executable_extensions; do
5527  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5528    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5529    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5530    break 2
5531  fi
5532done
5533  done
5534IFS=$as_save_IFS
5535
5536fi
5537fi
5538CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5539if test -n "$CC_FOR_BUILD"; then
5540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5541printf "%s\n" "$CC_FOR_BUILD" >&6; }
5542else
5543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544printf "%s\n" "no" >&6; }
5545fi
5546
5547
5548  fi
5549fi
5550if test -z "$CC_FOR_BUILD"; then
5551  # Extract the first word of "cc", so it can be a program name with args.
5552set dummy cc; ac_word=$2
5553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554printf %s "checking for $ac_word... " >&6; }
5555if test ${ac_cv_prog_CC_FOR_BUILD+y}
5556then :
5557  printf %s "(cached) " >&6
5558else $as_nop
5559  if test -n "$CC_FOR_BUILD"; then
5560  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5561else
5562  ac_prog_rejected=no
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566  IFS=$as_save_IFS
5567  case $as_dir in #(((
5568    '') as_dir=./ ;;
5569    */) ;;
5570    *) as_dir=$as_dir/ ;;
5571  esac
5572    for ac_exec_ext in '' $ac_executable_extensions; do
5573  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5574    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5575       ac_prog_rejected=yes
5576       continue
5577     fi
5578    ac_cv_prog_CC_FOR_BUILD="cc"
5579    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583  done
5584IFS=$as_save_IFS
5585
5586if test $ac_prog_rejected = yes; then
5587  # We found a bogon in the path, so make sure we never use it.
5588  set dummy $ac_cv_prog_CC_FOR_BUILD
5589  shift
5590  if test $# != 0; then
5591    # We chose a different compiler from the bogus one.
5592    # However, it has the same basename, so the bogon will be chosen
5593    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5594    shift
5595    ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
5596  fi
5597fi
5598fi
5599fi
5600CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5601if test -n "$CC_FOR_BUILD"; then
5602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5603printf "%s\n" "$CC_FOR_BUILD" >&6; }
5604else
5605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606printf "%s\n" "no" >&6; }
5607fi
5608
5609
5610fi
5611if test -z "$CC_FOR_BUILD"; then
5612  if test -n "$ac_build_tool_prefix"; then
5613  for ac_prog in cl.exe
5614  do
5615    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5616set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618printf %s "checking for $ac_word... " >&6; }
5619if test ${ac_cv_prog_CC_FOR_BUILD+y}
5620then :
5621  printf %s "(cached) " >&6
5622else $as_nop
5623  if test -n "$CC_FOR_BUILD"; then
5624  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629  IFS=$as_save_IFS
5630  case $as_dir in #(((
5631    '') as_dir=./ ;;
5632    */) ;;
5633    *) as_dir=$as_dir/ ;;
5634  esac
5635    for ac_exec_ext in '' $ac_executable_extensions; do
5636  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5637    ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5638    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5639    break 2
5640  fi
5641done
5642  done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5648if test -n "$CC_FOR_BUILD"; then
5649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5650printf "%s\n" "$CC_FOR_BUILD" >&6; }
5651else
5652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653printf "%s\n" "no" >&6; }
5654fi
5655
5656
5657    test -n "$CC_FOR_BUILD" && break
5658  done
5659fi
5660if test -z "$CC_FOR_BUILD"; then
5661  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5662  for ac_prog in cl.exe
5663do
5664  # Extract the first word of "$ac_prog", so it can be a program name with args.
5665set dummy $ac_prog; ac_word=$2
5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667printf %s "checking for $ac_word... " >&6; }
5668if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
5669then :
5670  printf %s "(cached) " >&6
5671else $as_nop
5672  if test -n "$ac_ct_CC_FOR_BUILD"; then
5673  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5674else
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678  IFS=$as_save_IFS
5679  case $as_dir in #(((
5680    '') as_dir=./ ;;
5681    */) ;;
5682    *) as_dir=$as_dir/ ;;
5683  esac
5684    for ac_exec_ext in '' $ac_executable_extensions; do
5685  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5686    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5687    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5688    break 2
5689  fi
5690done
5691  done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5697if test -n "$ac_ct_CC_FOR_BUILD"; then
5698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5699printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
5700else
5701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702printf "%s\n" "no" >&6; }
5703fi
5704
5705
5706  test -n "$ac_ct_CC_FOR_BUILD" && break
5707done
5708
5709  if test "x$ac_ct_CC_FOR_BUILD" = x; then
5710    CC_FOR_BUILD=""
5711  else
5712    case $cross_compiling_build:$ac_tool_warned in
5713yes:)
5714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5715printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5716ac_tool_warned=yes ;;
5717esac
5718    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5719  fi
5720fi
5721
5722fi
5723if test -z "$CC_FOR_BUILD"; then
5724  if test -n "$ac_build_tool_prefix"; then
5725  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5726set dummy ${ac_build_tool_prefix}clang; ac_word=$2
5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728printf %s "checking for $ac_word... " >&6; }
5729if test ${ac_cv_prog_CC_FOR_BUILD+y}
5730then :
5731  printf %s "(cached) " >&6
5732else $as_nop
5733  if test -n "$CC_FOR_BUILD"; then
5734  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739  IFS=$as_save_IFS
5740  case $as_dir in #(((
5741    '') as_dir=./ ;;
5742    */) ;;
5743    *) as_dir=$as_dir/ ;;
5744  esac
5745    for ac_exec_ext in '' $ac_executable_extensions; do
5746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5747    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang"
5748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5749    break 2
5750  fi
5751done
5752  done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5758if test -n "$CC_FOR_BUILD"; then
5759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5760printf "%s\n" "$CC_FOR_BUILD" >&6; }
5761else
5762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763printf "%s\n" "no" >&6; }
5764fi
5765
5766
5767fi
5768if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5769  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5770  # Extract the first word of "clang", so it can be a program name with args.
5771set dummy clang; ac_word=$2
5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773printf %s "checking for $ac_word... " >&6; }
5774if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
5775then :
5776  printf %s "(cached) " >&6
5777else $as_nop
5778  if test -n "$ac_ct_CC_FOR_BUILD"; then
5779  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5780else
5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784  IFS=$as_save_IFS
5785  case $as_dir in #(((
5786    '') as_dir=./ ;;
5787    */) ;;
5788    *) as_dir=$as_dir/ ;;
5789  esac
5790    for ac_exec_ext in '' $ac_executable_extensions; do
5791  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5792    ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
5793    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5794    break 2
5795  fi
5796done
5797  done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
5802ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5803if test -n "$ac_ct_CC_FOR_BUILD"; then
5804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5805printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
5806else
5807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808printf "%s\n" "no" >&6; }
5809fi
5810
5811  if test "x$ac_ct_CC_FOR_BUILD" = x; then
5812    CC_FOR_BUILD=""
5813  else
5814    case $cross_compiling_build:$ac_tool_warned in
5815yes:)
5816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5817printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5818ac_tool_warned=yes ;;
5819esac
5820    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5821  fi
5822else
5823  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5824fi
5825
5826fi
5827
5828
5829test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5830printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5831as_fn_error $? "no acceptable C compiler found in \$PATH
5832See \`config.log' for more details" "$LINENO" 5; }
5833
5834# Provide some information about the compiler.
5835printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5836set X $ac_compile
5837ac_compiler=$2
5838for ac_option in --version -v -V -qversion -version; do
5839  { { ac_try="$ac_compiler $ac_option >&5"
5840case "(($ac_try" in
5841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842  *) ac_try_echo=$ac_try;;
5843esac
5844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5845printf "%s\n" "$ac_try_echo"; } >&5
5846  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5847  ac_status=$?
5848  if test -s conftest.err; then
5849    sed '10a\
5850... rest of stderr output deleted ...
5851         10q' conftest.err >conftest.er1
5852    cat conftest.er1 >&5
5853  fi
5854  rm -f conftest.er1 conftest.err
5855  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856  test $ac_status = 0; }
5857done
5858
5859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5860printf %s "checking whether the compiler supports GNU C... " >&6; }
5861if test ${ac_cv_c_compiler_gnu+y}
5862then :
5863  printf %s "(cached) " >&6
5864else $as_nop
5865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867
5868int
5869main (void)
5870{
5871#ifndef __GNUC__
5872       choke me
5873#endif
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_compile "$LINENO"
5880then :
5881  ac_compiler_gnu=yes
5882else $as_nop
5883  ac_compiler_gnu=no
5884fi
5885rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
5886ac_cv_c_compiler_gnu=$ac_compiler_gnu
5887
5888fi
5889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5890printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5891ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892
5893if test $ac_compiler_gnu = yes; then
5894  GCC_FOR_BUILD=yes
5895else
5896  GCC_FOR_BUILD=
5897fi
5898ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
5899ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5901printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5902if test ${ac_cv_build_prog_cc_g+y}
5903then :
5904  printf %s "(cached) " >&6
5905else $as_nop
5906  ac_save_c_werror_flag=$ac_c_werror_flag
5907   ac_c_werror_flag=yes
5908   ac_cv_build_prog_cc_g=no
5909   CFLAGS_FOR_BUILD="-g"
5910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h.  */
5912
5913int
5914main (void)
5915{
5916
5917  ;
5918  return 0;
5919}
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"
5922then :
5923  ac_cv_build_prog_cc_g=yes
5924else $as_nop
5925  CFLAGS_FOR_BUILD=""
5926      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928
5929int
5930main (void)
5931{
5932
5933  ;
5934  return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_compile "$LINENO"
5938then :
5939
5940else $as_nop
5941  ac_c_werror_flag=$ac_save_c_werror_flag
5942	 CFLAGS_FOR_BUILD="-g"
5943	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h.  */
5945
5946int
5947main (void)
5948{
5949
5950  ;
5951  return 0;
5952}
5953_ACEOF
5954if ac_fn_c_try_compile "$LINENO"
5955then :
5956  ac_cv_build_prog_cc_g=yes
5957fi
5958rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
5959fi
5960rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
5961fi
5962rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
5963   ac_c_werror_flag=$ac_save_c_werror_flag
5964fi
5965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5966printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
5967if test $ac_test_CFLAGS; then
5968  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5969elif test $ac_cv_build_prog_cc_g = yes; then
5970  if test "$GCC_FOR_BUILD" = yes; then
5971    CFLAGS_FOR_BUILD="-g -O2"
5972  else
5973    CFLAGS_FOR_BUILD="-g"
5974  fi
5975else
5976  if test "$GCC_FOR_BUILD" = yes; then
5977    CFLAGS_FOR_BUILD="-O2"
5978  else
5979    CFLAGS_FOR_BUILD=
5980  fi
5981fi
5982ac_prog_cc_stdc=no
5983if test x$ac_prog_cc_stdc = xno
5984then :
5985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
5986printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
5987if test ${ac_cv_prog_cc_c11+y}
5988then :
5989  printf %s "(cached) " >&6
5990else $as_nop
5991  ac_cv_prog_cc_c11=no
5992ac_save_CC=$CC_FOR_BUILD
5993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994/* end confdefs.h.  */
5995$ac_c_conftest_c11_program
5996_ACEOF
5997for ac_arg in '' -std=gnu11
5998do
5999  CC_FOR_BUILD="$ac_save_CC $ac_arg"
6000  if ac_fn_c_try_compile "$LINENO"
6001then :
6002  ac_cv_prog_cc_c11=$ac_arg
6003fi
6004rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6005  test "x$ac_cv_prog_cc_c11" != "xno" && break
6006done
6007rm -f conftest.$ac_ext
6008CC_FOR_BUILD=$ac_save_CC
6009fi
6010
6011if test "x$ac_cv_prog_cc_c11" = xno
6012then :
6013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6014printf "%s\n" "unsupported" >&6; }
6015else $as_nop
6016  if test "x$ac_cv_prog_cc_c11" = x
6017then :
6018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6019printf "%s\n" "none needed" >&6; }
6020else $as_nop
6021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6022printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6023     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c11"
6024fi
6025  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6026  ac_prog_cc_stdc=c11
6027fi
6028fi
6029if test x$ac_prog_cc_stdc = xno
6030then :
6031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
6032printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
6033if test ${ac_cv_prog_cc_c99+y}
6034then :
6035  printf %s "(cached) " >&6
6036else $as_nop
6037  ac_cv_prog_cc_c99=no
6038ac_save_CC=$CC_FOR_BUILD
6039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041$ac_c_conftest_c99_program
6042_ACEOF
6043for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6044do
6045  CC_FOR_BUILD="$ac_save_CC $ac_arg"
6046  if ac_fn_c_try_compile "$LINENO"
6047then :
6048  ac_cv_prog_cc_c99=$ac_arg
6049fi
6050rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6051  test "x$ac_cv_prog_cc_c99" != "xno" && break
6052done
6053rm -f conftest.$ac_ext
6054CC_FOR_BUILD=$ac_save_CC
6055fi
6056
6057if test "x$ac_cv_prog_cc_c99" = xno
6058then :
6059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6060printf "%s\n" "unsupported" >&6; }
6061else $as_nop
6062  if test "x$ac_cv_prog_cc_c99" = x
6063then :
6064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6065printf "%s\n" "none needed" >&6; }
6066else $as_nop
6067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6068printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6069     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c99"
6070fi
6071  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6072  ac_prog_cc_stdc=c99
6073fi
6074fi
6075if test x$ac_prog_cc_stdc = xno
6076then :
6077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
6078printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
6079if test ${ac_cv_build_prog_cc_c89+y}
6080then :
6081  printf %s "(cached) " >&6
6082else $as_nop
6083  ac_cv_build_prog_cc_c89=no
6084ac_save_CC=$CC_FOR_BUILD
6085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h.  */
6087$ac_c_conftest_c89_program
6088_ACEOF
6089for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6090do
6091  CC_FOR_BUILD="$ac_save_CC $ac_arg"
6092  if ac_fn_c_try_compile "$LINENO"
6093then :
6094  ac_cv_build_prog_cc_c89=$ac_arg
6095fi
6096rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6097  test "x$ac_cv_build_prog_cc_c89" != "xno" && break
6098done
6099rm -f conftest.$ac_ext
6100CC_FOR_BUILD=$ac_save_CC
6101fi
6102
6103if test "x$ac_cv_build_prog_cc_c89" = xno
6104then :
6105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6106printf "%s\n" "unsupported" >&6; }
6107else $as_nop
6108  if test "x$ac_cv_build_prog_cc_c89" = x
6109then :
6110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6111printf "%s\n" "none needed" >&6; }
6112else $as_nop
6113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
6114printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; }
6115     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89"
6116fi
6117  ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89
6118  ac_prog_cc_stdc=c89
6119fi
6120fi
6121
6122ac_ext=c
6123ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6124ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6125ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6126ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127
6128
6129  ac_ext=c
6130ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6131ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6132ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6133ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
6135printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
6136if test ${am_cv_build_prog_cc_c_o+y}
6137then :
6138  printf %s "(cached) " >&6
6139else $as_nop
6140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142
6143int
6144main (void)
6145{
6146
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151  # Make sure it works both with $CC and with simple cc.
6152  # Following AC_PROG_CC_C_O, we do the test twice because some
6153  # compilers refuse to overwrite an existing .o file with -o,
6154  # though they will create one.
6155  am_cv_build_prog_cc_c_o=yes
6156  for am_i in 1 2; do
6157    if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
6158   ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } \
6162         && test -f conftest2.$ac_build_objext; then
6163      : OK
6164    else
6165      am_cv_build_prog_cc_c_o=no
6166      break
6167    fi
6168  done
6169  rm -f core conftest*
6170  unset am_i
6171fi
6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
6173printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; }
6174if test "$am_cv_build_prog_cc_c_o" != yes; then
6175   # Losing compiler, so override with the script.
6176   # FIXME: It is wrong to rewrite CC.
6177   # But if we don't then we get into trouble of one sort or another.
6178   # A longer-term fix would be to have automake use am__CC in this case,
6179   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6180   CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
6181fi
6182ac_ext=c
6183ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6184ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6185ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6186ac_compiler_gnu=$ac_cv_c_compiler_gnu
6187
6188
6189depcc="$CC_FOR_BUILD"   am_compiler_list=
6190
6191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6192printf %s "checking dependency style of $depcc... " >&6; }
6193if test ${am_cv_build_CC_dependencies_compiler_type+y}
6194then :
6195  printf %s "(cached) " >&6
6196else $as_nop
6197  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6198  # We make a subdir and do the tests there.  Otherwise we can end up
6199  # making bogus files that we don't know about and never remove.  For
6200  # instance it was reported that on HP-UX the gcc test will end up
6201  # making a dummy file named 'D' -- because '-MD' means "put the output
6202  # in D".
6203  rm -rf conftest.dir
6204  mkdir conftest.dir
6205  # Copy depcomp to subdir because otherwise we won't find it if we're
6206  # using a relative directory.
6207  cp "$am_depcomp" conftest.dir
6208  cd conftest.dir
6209  # We will build objects and dependencies in a subdirectory because
6210  # it helps to detect inapplicable dependency modes.  For instance
6211  # both Tru64's cc and ICC support -MD to output dependencies as a
6212  # side effect of compilation, but ICC will put the dependencies in
6213  # the current directory while Tru64 will put them in the object
6214  # directory.
6215  mkdir sub
6216
6217  am_cv_build_CC_dependencies_compiler_type=none
6218  if test "$am_compiler_list" = ""; then
6219     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6220  fi
6221  am__universal=false
6222  case " $depcc " in #(
6223     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6224     esac
6225
6226  for depmode in $am_compiler_list; do
6227    # Setup a source with many dependencies, because some compilers
6228    # like to wrap large dependency lists on column 80 (with \), and
6229    # we should not choose a depcomp mode which is confused by this.
6230    #
6231    # We need to recreate these files for each test, as the compiler may
6232    # overwrite some of them when testing with obscure command lines.
6233    # This happens at least with the AIX C compiler.
6234    : > sub/conftest.c
6235    for i in 1 2 3 4 5 6; do
6236      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6237      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6238      # Solaris 10 /bin/sh.
6239      echo '/* dummy */' > sub/conftst$i.h
6240    done
6241    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6242
6243    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6244    # mode.  It turns out that the SunPro C++ compiler does not properly
6245    # handle '-M -o', and we need to detect this.  Also, some Intel
6246    # versions had trouble with output in subdirs.
6247    am__obj=sub/conftest.${BUILD_OBJEXT-o}
6248    am__minus_obj="-o $am__obj"
6249    case $depmode in
6250    gcc)
6251      # This depmode causes a compiler race in universal mode.
6252      test "$am__universal" = false || continue
6253      ;;
6254    nosideeffect)
6255      # After this tag, mechanisms are not by side-effect, so they'll
6256      # only be used when explicitly requested.
6257      if test "x$enable_dependency_tracking" = xyes; then
6258	continue
6259      else
6260	break
6261      fi
6262      ;;
6263    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6264      # This compiler won't grok '-c -o', but also, the minuso test has
6265      # not run yet.  These depmodes are late enough in the game, and
6266      # so weak that their functioning should not be impacted.
6267      am__obj=conftest.${BUILD_OBJEXT-o}
6268      am__minus_obj=
6269      ;;
6270    none) break ;;
6271    esac
6272    if depmode=$depmode \
6273       source=sub/conftest.c object=$am__obj \
6274       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6275       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6276         >/dev/null 2>conftest.err &&
6277       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6278       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6279       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6280       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6281      # icc doesn't choke on unknown options, it will just issue warnings
6282      # or remarks (even with -Werror).  So we grep stderr for any message
6283      # that says an option was ignored or not supported.
6284      # When given -MP, icc 7.0 and 7.1 complain thusly:
6285      #   icc: Command line warning: ignoring option '-M'; no argument required
6286      # The diagnosis changed in icc 8.0:
6287      #   icc: Command line remark: option '-MP' not supported
6288      if (grep 'ignoring option' conftest.err ||
6289          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6290        am_cv_build_CC_dependencies_compiler_type=$depmode
6291        break
6292      fi
6293    fi
6294  done
6295
6296  cd ..
6297  rm -rf conftest.dir
6298else
6299  am_cv_build_CC_dependencies_compiler_type=none
6300fi
6301
6302fi
6303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
6304printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; }
6305CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
6306
6307 if
6308  test "x$enable_dependency_tracking" != xno \
6309  && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
6310  am__fastdepCC_TRUE=
6311  am__fastdepCC_FALSE='#'
6312else
6313  am__fastdepCC_TRUE='#'
6314  am__fastdepCC_FALSE=
6315fi
6316
6317
6318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320
6321int
6322main (void)
6323{
6324
6325  ;
6326  return 0;
6327}
6328_ACEOF
6329ac_clean_files_save=$ac_clean_files
6330ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6331# Try to create an executable without -o first, disregard a.out.
6332# It will help us diagnose broken compilers, and finding out an intuition
6333# of exeext.
6334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
6335printf %s "checking whether the C compiler works... " >&6; }
6336ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6337
6338# The possible output files:
6339ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6340
6341ac_rmfiles=
6342for ac_file in $ac_files
6343do
6344  case $ac_file in
6345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6346    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
6347  esac
6348done
6349rm -f $ac_rmfiles
6350
6351if { { ac_try="$ac_link_default"
6352case "(($ac_try" in
6353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354  *) ac_try_echo=$ac_try;;
6355esac
6356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6357printf "%s\n" "$ac_try_echo"; } >&5
6358  (eval "$ac_link_default") 2>&5
6359  ac_status=$?
6360  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361  test $ac_status = 0; }
6362then :
6363  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
6364# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
6365# in a Makefile.  We should not override ac_cv_exeext if it was cached,
6366# so that the user can short-circuit this test for compilers unknown to
6367# Autoconf.
6368for ac_file in $ac_files ''
6369do
6370  test -f "$ac_file" || continue
6371  case $ac_file in
6372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6373	;;
6374    [ab].out )
6375	# We found the default executable, but exeext='' is most
6376	# certainly right.
6377	break;;
6378    *.* )
6379	if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no;
6380	then :; else
6381	   ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6382	fi
6383	# We set ac_cv_exeext here because the later test for it is not
6384	# safe: cross compilers may not add the suffix if given an `-o'
6385	# argument, so we may need to know it at that point already.
6386	# Even if this section looks crufty: it has the advantage of
6387	# actually working.
6388	break;;
6389    * )
6390	break;;
6391  esac
6392done
6393test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
6394
6395else $as_nop
6396  ac_file=''
6397fi
6398if test -z "$ac_file"
6399then :
6400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401printf "%s\n" "no" >&6; }
6402printf "%s\n" "$as_me: failed program was:" >&5
6403sed 's/^/| /' conftest.$ac_ext >&5
6404
6405{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6406printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6407as_fn_error 77 "C compiler cannot create executables
6408See \`config.log' for more details" "$LINENO" 5; }
6409else $as_nop
6410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6411printf "%s\n" "yes" >&6; }
6412fi
6413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6414printf %s "checking for C compiler default output file name... " >&6; }
6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6416printf "%s\n" "$ac_file" >&6; }
6417ac_build_exeext=$ac_cv_build_exeext
6418
6419rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6420ac_clean_files=$ac_clean_files_save
6421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6422printf %s "checking for suffix of executables... " >&6; }
6423if { { ac_try="$ac_link"
6424case "(($ac_try" in
6425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426  *) ac_try_echo=$ac_try;;
6427esac
6428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6429printf "%s\n" "$ac_try_echo"; } >&5
6430  (eval "$ac_link") 2>&5
6431  ac_status=$?
6432  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433  test $ac_status = 0; }
6434then :
6435  # If both `conftest.exe' and `conftest' are `present' (well, observable)
6436# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
6437# work properly (i.e., refer to `conftest.exe'), while it won't with
6438# `rm'.
6439for ac_file in conftest.exe conftest conftest.*; do
6440  test -f "$ac_file" || continue
6441  case $ac_file in
6442    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6443    *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6444	  break;;
6445    * ) break;;
6446  esac
6447done
6448else $as_nop
6449  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6450printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6451as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6452See \`config.log' for more details" "$LINENO" 5; }
6453fi
6454rm -f conftest conftest$ac_cv_build_exeext
6455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6456printf "%s\n" "$ac_cv_build_exeext" >&6; }
6457
6458rm -f conftest.$ac_ext
6459EXEEXT=$ac_cv_build_exeext
6460ac_build_exeext=$BUILD_EXEEXT
6461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h.  */
6463#include <stdio.h>
6464int
6465main (void)
6466{
6467FILE *f = fopen ("conftest.out", "w");
6468 return ferror (f) || fclose (f) != 0;
6469
6470  ;
6471  return 0;
6472}
6473_ACEOF
6474ac_clean_files="$ac_clean_files conftest.out"
6475# Check that the compiler produces executables we can run.  If not, either
6476# the compiler is broken, or we cross compile.
6477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6478printf %s "checking whether we are cross compiling... " >&6; }
6479if test "$cross_compiling_build" != yes; then
6480  { { ac_try="$ac_link"
6481case "(($ac_try" in
6482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483  *) ac_try_echo=$ac_try;;
6484esac
6485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6486printf "%s\n" "$ac_try_echo"; } >&5
6487  (eval "$ac_link") 2>&5
6488  ac_status=$?
6489  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6490  test $ac_status = 0; }
6491  if { ac_try='./conftest$ac_cv_build_exeext'
6492  { { case "(($ac_try" in
6493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494  *) ac_try_echo=$ac_try;;
6495esac
6496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6497printf "%s\n" "$ac_try_echo"; } >&5
6498  (eval "$ac_try") 2>&5
6499  ac_status=$?
6500  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6501  test $ac_status = 0; }; }; then
6502    cross_compiling_build=no
6503  else
6504    if test "$cross_compiling_build" = maybe; then
6505	cross_compiling_build=yes
6506    else
6507	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6508printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6509as_fn_error 77 "cannot run C compiled programs.
6510If you meant to cross compile, use \`--build'.
6511See \`config.log' for more details" "$LINENO" 5; }
6512    fi
6513  fi
6514fi
6515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
6516printf "%s\n" "$cross_compiling_build" >&6; }
6517
6518rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
6519ac_clean_files=$ac_clean_files_save
6520
6521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6522printf %s "checking for suffix of object files... " >&6; }
6523if test ${ac_cv_build_objext+y}
6524then :
6525  printf %s "(cached) " >&6
6526else $as_nop
6527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529
6530int
6531main (void)
6532{
6533
6534  ;
6535  return 0;
6536}
6537_ACEOF
6538rm -f conftest.o conftest.obj
6539if { { ac_try="$ac_compile"
6540case "(($ac_try" in
6541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542  *) ac_try_echo=$ac_try;;
6543esac
6544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6545printf "%s\n" "$ac_try_echo"; } >&5
6546  (eval "$ac_compile") 2>&5
6547  ac_status=$?
6548  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6549  test $ac_status = 0; }
6550then :
6551  for ac_file in conftest.o conftest.obj conftest.*; do
6552  test -f "$ac_file" || continue;
6553  case $ac_file in
6554    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6555    *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6556       break;;
6557  esac
6558done
6559else $as_nop
6560  printf "%s\n" "$as_me: failed program was:" >&5
6561sed 's/^/| /' conftest.$ac_ext >&5
6562
6563{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6564printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6565as_fn_error $? "cannot compute suffix of object files: cannot compile
6566See \`config.log' for more details" "$LINENO" 5; }
6567fi
6568rm -f conftest.$ac_cv_build_objext conftest.$ac_ext
6569fi
6570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
6571printf "%s\n" "$ac_cv_build_objext" >&6; }
6572OBJEXT=$ac_cv_build_objext
6573ac_build_objext=$BUILD_OBJEXT
6574
6575ac_ext=c
6576ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6577ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6578ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6579ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6581printf %s "checking how to run the C preprocessor... " >&6; }
6582# On Suns, sometimes $CPP names a directory.
6583if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6584  CPP_FOR_BUILD=
6585fi
6586if test -z "$CPP_FOR_BUILD"; then
6587  if test ${ac_cv_build_prog_CPP+y}
6588then :
6589  printf %s "(cached) " >&6
6590else $as_nop
6591      # Double quotes because $CC needs to be expanded
6592    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
6593    do
6594      ac_preproc_ok=false
6595for ac_c_preproc_warn_flag in '' yes
6596do
6597  # Use a header file that comes with gcc, so configuring glibc
6598  # with a fresh cross-compiler works.
6599  # On the NeXT, cc -E runs the code through the compiler's parser,
6600  # not just through cpp. "Syntax error" is here to catch this case.
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603#include <limits.h>
6604		     Syntax error
6605_ACEOF
6606if ac_fn_c_try_cpp "$LINENO"
6607then :
6608
6609else $as_nop
6610  # Broken: fails on valid input.
6611continue
6612fi
6613rm -f conftest.err conftest.i conftest.$ac_ext
6614
6615  # OK, works on sane cases.  Now check whether nonexistent headers
6616  # can be detected and how.
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619#include <ac_nonexistent.h>
6620_ACEOF
6621if ac_fn_c_try_cpp "$LINENO"
6622then :
6623  # Broken: success on invalid input.
6624continue
6625else $as_nop
6626  # Passes both tests.
6627ac_preproc_ok=:
6628break
6629fi
6630rm -f conftest.err conftest.i conftest.$ac_ext
6631
6632done
6633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6634rm -f conftest.i conftest.err conftest.$ac_ext
6635if $ac_preproc_ok
6636then :
6637  break
6638fi
6639
6640    done
6641    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6642
6643fi
6644  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6645else
6646  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6647fi
6648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6649printf "%s\n" "$CPP_FOR_BUILD" >&6; }
6650ac_preproc_ok=false
6651for ac_c_preproc_warn_flag in '' yes
6652do
6653  # Use a header file that comes with gcc, so configuring glibc
6654  # with a fresh cross-compiler works.
6655  # On the NeXT, cc -E runs the code through the compiler's parser,
6656  # not just through cpp. "Syntax error" is here to catch this case.
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659#include <limits.h>
6660		     Syntax error
6661_ACEOF
6662if ac_fn_c_try_cpp "$LINENO"
6663then :
6664
6665else $as_nop
6666  # Broken: fails on valid input.
6667continue
6668fi
6669rm -f conftest.err conftest.i conftest.$ac_ext
6670
6671  # OK, works on sane cases.  Now check whether nonexistent headers
6672  # can be detected and how.
6673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675#include <ac_nonexistent.h>
6676_ACEOF
6677if ac_fn_c_try_cpp "$LINENO"
6678then :
6679  # Broken: success on invalid input.
6680continue
6681else $as_nop
6682  # Passes both tests.
6683ac_preproc_ok=:
6684break
6685fi
6686rm -f conftest.err conftest.i conftest.$ac_ext
6687
6688done
6689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6690rm -f conftest.i conftest.err conftest.$ac_ext
6691if $ac_preproc_ok
6692then :
6693
6694else $as_nop
6695  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6696printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6697as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6698See \`config.log' for more details" "$LINENO" 5; }
6699fi
6700
6701ac_ext=c
6702ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6703ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6704ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6705ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
6707
6708ac_cv_c_compiler_gnu="$_save_ax_prog_cc_for_build__ac_ext"
6709
6710ac_ext=c
6711ac_cpp='$CPP $CPPFLAGS'
6712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714ac_compiler_gnu=$ac_cv_c_compiler_gnu
6715
6716
6717
6718
6719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6720printf %s "checking for a sed that does not truncate output... " >&6; }
6721if test ${ac_cv_path_SED+y}
6722then :
6723  printf %s "(cached) " >&6
6724else $as_nop
6725            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6726     for ac_i in 1 2 3 4 5 6 7; do
6727       ac_script="$ac_script$as_nl$ac_script"
6728     done
6729     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6730     { ac_script=; unset ac_script;}
6731     if test -z "$SED"; then
6732  ac_path_SED_found=false
6733  # Loop through the user's path and test for each of PROGNAME-LIST
6734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737  IFS=$as_save_IFS
6738  case $as_dir in #(((
6739    '') as_dir=./ ;;
6740    */) ;;
6741    *) as_dir=$as_dir/ ;;
6742  esac
6743    for ac_prog in sed gsed
6744   do
6745    for ac_exec_ext in '' $ac_executable_extensions; do
6746      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6747      as_fn_executable_p "$ac_path_SED" || continue
6748# Check for GNU ac_path_SED and select it if it is found.
6749  # Check for GNU $ac_path_SED
6750case `"$ac_path_SED" --version 2>&1` in
6751*GNU*)
6752  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6753*)
6754  ac_count=0
6755  printf %s 0123456789 >"conftest.in"
6756  while :
6757  do
6758    cat "conftest.in" "conftest.in" >"conftest.tmp"
6759    mv "conftest.tmp" "conftest.in"
6760    cp "conftest.in" "conftest.nl"
6761    printf "%s\n" '' >> "conftest.nl"
6762    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6763    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6764    as_fn_arith $ac_count + 1 && ac_count=$as_val
6765    if test $ac_count -gt ${ac_path_SED_max-0}; then
6766      # Best one so far, save it but keep looking for a better one
6767      ac_cv_path_SED="$ac_path_SED"
6768      ac_path_SED_max=$ac_count
6769    fi
6770    # 10*(2^10) chars as input seems more than enough
6771    test $ac_count -gt 10 && break
6772  done
6773  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6774esac
6775
6776      $ac_path_SED_found && break 3
6777    done
6778  done
6779  done
6780IFS=$as_save_IFS
6781  if test -z "$ac_cv_path_SED"; then
6782    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6783  fi
6784else
6785  ac_cv_path_SED=$SED
6786fi
6787
6788fi
6789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6790printf "%s\n" "$ac_cv_path_SED" >&6; }
6791 SED="$ac_cv_path_SED"
6792  rm -f conftest.sed
6793
6794
6795
6796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6797printf %s "checking for grep that handles long lines and -e... " >&6; }
6798if test ${ac_cv_path_GREP+y}
6799then :
6800  printf %s "(cached) " >&6
6801else $as_nop
6802  if test -z "$GREP"; then
6803  ac_path_GREP_found=false
6804  # Loop through the user's path and test for each of PROGNAME-LIST
6805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6807do
6808  IFS=$as_save_IFS
6809  case $as_dir in #(((
6810    '') as_dir=./ ;;
6811    */) ;;
6812    *) as_dir=$as_dir/ ;;
6813  esac
6814    for ac_prog in grep ggrep
6815   do
6816    for ac_exec_ext in '' $ac_executable_extensions; do
6817      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6818      as_fn_executable_p "$ac_path_GREP" || continue
6819# Check for GNU ac_path_GREP and select it if it is found.
6820  # Check for GNU $ac_path_GREP
6821case `"$ac_path_GREP" --version 2>&1` in
6822*GNU*)
6823  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6824*)
6825  ac_count=0
6826  printf %s 0123456789 >"conftest.in"
6827  while :
6828  do
6829    cat "conftest.in" "conftest.in" >"conftest.tmp"
6830    mv "conftest.tmp" "conftest.in"
6831    cp "conftest.in" "conftest.nl"
6832    printf "%s\n" 'GREP' >> "conftest.nl"
6833    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6834    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6835    as_fn_arith $ac_count + 1 && ac_count=$as_val
6836    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6837      # Best one so far, save it but keep looking for a better one
6838      ac_cv_path_GREP="$ac_path_GREP"
6839      ac_path_GREP_max=$ac_count
6840    fi
6841    # 10*(2^10) chars as input seems more than enough
6842    test $ac_count -gt 10 && break
6843  done
6844  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6845esac
6846
6847      $ac_path_GREP_found && break 3
6848    done
6849  done
6850  done
6851IFS=$as_save_IFS
6852  if test -z "$ac_cv_path_GREP"; then
6853    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6854  fi
6855else
6856  ac_cv_path_GREP=$GREP
6857fi
6858
6859fi
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6861printf "%s\n" "$ac_cv_path_GREP" >&6; }
6862 GREP="$ac_cv_path_GREP"
6863
6864
6865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6866printf %s "checking for egrep... " >&6; }
6867if test ${ac_cv_path_EGREP+y}
6868then :
6869  printf %s "(cached) " >&6
6870else $as_nop
6871  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6872   then ac_cv_path_EGREP="$GREP -E"
6873   else
6874     if test -z "$EGREP"; then
6875  ac_path_EGREP_found=false
6876  # Loop through the user's path and test for each of PROGNAME-LIST
6877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6879do
6880  IFS=$as_save_IFS
6881  case $as_dir in #(((
6882    '') as_dir=./ ;;
6883    */) ;;
6884    *) as_dir=$as_dir/ ;;
6885  esac
6886    for ac_prog in egrep
6887   do
6888    for ac_exec_ext in '' $ac_executable_extensions; do
6889      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6890      as_fn_executable_p "$ac_path_EGREP" || continue
6891# Check for GNU ac_path_EGREP and select it if it is found.
6892  # Check for GNU $ac_path_EGREP
6893case `"$ac_path_EGREP" --version 2>&1` in
6894*GNU*)
6895  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6896*)
6897  ac_count=0
6898  printf %s 0123456789 >"conftest.in"
6899  while :
6900  do
6901    cat "conftest.in" "conftest.in" >"conftest.tmp"
6902    mv "conftest.tmp" "conftest.in"
6903    cp "conftest.in" "conftest.nl"
6904    printf "%s\n" 'EGREP' >> "conftest.nl"
6905    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6906    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6907    as_fn_arith $ac_count + 1 && ac_count=$as_val
6908    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6909      # Best one so far, save it but keep looking for a better one
6910      ac_cv_path_EGREP="$ac_path_EGREP"
6911      ac_path_EGREP_max=$ac_count
6912    fi
6913    # 10*(2^10) chars as input seems more than enough
6914    test $ac_count -gt 10 && break
6915  done
6916  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6917esac
6918
6919      $ac_path_EGREP_found && break 3
6920    done
6921  done
6922  done
6923IFS=$as_save_IFS
6924  if test -z "$ac_cv_path_EGREP"; then
6925    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6926  fi
6927else
6928  ac_cv_path_EGREP=$EGREP
6929fi
6930
6931   fi
6932fi
6933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6934printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6935 EGREP="$ac_cv_path_EGREP"
6936
6937
6938
6939
6940
6941
6942ac_ext=c
6943ac_cpp='$CPP $CPPFLAGS'
6944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946ac_compiler_gnu=$ac_cv_c_compiler_gnu
6947
6948ax_pthread_ok=no
6949
6950# We used to check for pthread.h first, but this fails if pthread.h
6951# requires special compiler flags (e.g. on Tru64 or Sequent).
6952# It gets checked for in the link test anyway.
6953
6954# First of all, check if the user has set any of the PTHREAD_LIBS,
6955# etcetera environment variables, and if threads linking works using
6956# them:
6957if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6958        ax_pthread_save_CC="$CC"
6959        ax_pthread_save_CFLAGS="$CFLAGS"
6960        ax_pthread_save_LIBS="$LIBS"
6961        if test "x$PTHREAD_CC" != "x"
6962then :
6963  CC="$PTHREAD_CC"
6964fi
6965        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6966        LIBS="$PTHREAD_LIBS $LIBS"
6967        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6968printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6969        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971
6972/* Override any GCC internal prototype to avoid an error.
6973   Use char because int might match the return type of a GCC
6974   builtin and then its argument prototype would still apply.  */
6975char pthread_join ();
6976int
6977main (void)
6978{
6979return pthread_join ();
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"
6985then :
6986  ax_pthread_ok=yes
6987fi
6988rm -f core conftest.err conftest.$ac_objext conftest.beam \
6989    conftest$ac_exeext conftest.$ac_ext
6990        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6991printf "%s\n" "$ax_pthread_ok" >&6; }
6992        if test "x$ax_pthread_ok" = "xno"; then
6993                PTHREAD_LIBS=""
6994                PTHREAD_CFLAGS=""
6995        fi
6996        CC="$ax_pthread_save_CC"
6997        CFLAGS="$ax_pthread_save_CFLAGS"
6998        LIBS="$ax_pthread_save_LIBS"
6999fi
7000
7001# We must check for the threads library under a number of different
7002# names; the ordering is very important because some systems
7003# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7004# libraries is broken (non-POSIX).
7005
7006# Create a list of thread flags to try. Items with a "," contain both
7007# C compiler flags (before ",") and linker flags (after ","). Other items
7008# starting with a "-" are C compiler flags, and remaining items are
7009# library names, except for "none" which indicates that we try without
7010# any flags at all, and "pthread-config" which is a program returning
7011# the flags for the Pth emulation library.
7012
7013ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7014
7015# The ordering *is* (sometimes) important.  Some notes on the
7016# individual items follow:
7017
7018# pthreads: AIX (must check this before -lpthread)
7019# none: in case threads are in libc; should be tried before -Kthread and
7020#       other compiler flags to prevent continual compiler warnings
7021# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7022# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7023#           (Note: HP C rejects this with "bad form for `-t' option")
7024# -pthreads: Solaris/gcc (Note: HP C also rejects)
7025# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7026#      doesn't hurt to check since this sometimes defines pthreads and
7027#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7028#      is present but should not be used directly; and before -mthreads,
7029#      because the compiler interprets this as "-mt" + "-hreads")
7030# -mthreads: Mingw32/gcc, Lynx/gcc
7031# pthread: Linux, etcetera
7032# --thread-safe: KAI C++
7033# pthread-config: use pthread-config program (for GNU Pth library)
7034
7035case $host_os in
7036
7037        freebsd*)
7038
7039        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7040        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7041
7042        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7043        ;;
7044
7045        hpux*)
7046
7047        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7048        # multi-threading and also sets -lpthread."
7049
7050        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7051        ;;
7052
7053        openedition*)
7054
7055        # IBM z/OS requires a feature-test macro to be defined in order to
7056        # enable POSIX threads at all, so give the user a hint if this is
7057        # not set. (We don't define these ourselves, as they can affect
7058        # other portions of the system API in unpredictable ways.)
7059
7060        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062
7063#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7064             AX_PTHREAD_ZOS_MISSING
7065#            endif
7066
7067_ACEOF
7068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7070then :
7071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7072printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7073fi
7074rm -rf conftest*
7075
7076        ;;
7077
7078        solaris*)
7079
7080        # On Solaris (at least, for some versions), libc contains stubbed
7081        # (non-functional) versions of the pthreads routines, so link-based
7082        # tests will erroneously succeed. (N.B.: The stubs are missing
7083        # pthread_cleanup_push, or rather a function called by this macro,
7084        # so we could check for that, but who knows whether they'll stub
7085        # that too in a future libc.)  So we'll check first for the
7086        # standard Solaris way of linking pthreads (-mt -lpthread).
7087
7088        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7089        ;;
7090esac
7091
7092# Are we compiling with Clang?
7093
7094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7095printf %s "checking whether $CC is Clang... " >&6; }
7096if test ${ax_cv_PTHREAD_CLANG+y}
7097then :
7098  printf %s "(cached) " >&6
7099else $as_nop
7100  ax_cv_PTHREAD_CLANG=no
7101     # Note that Autoconf sets GCC=yes for Clang as well as GCC
7102     if test "x$GCC" = "xyes"; then
7103        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104/* end confdefs.h.  */
7105/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7106#            if defined(__clang__) && defined(__llvm__)
7107             AX_PTHREAD_CC_IS_CLANG
7108#            endif
7109
7110_ACEOF
7111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7113then :
7114  ax_cv_PTHREAD_CLANG=yes
7115fi
7116rm -rf conftest*
7117
7118     fi
7119
7120fi
7121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7122printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7123ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7124
7125
7126# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7127
7128# Note that for GCC and Clang -pthread generally implies -lpthread,
7129# except when -nostdlib is passed.
7130# This is problematic using libtool to build C++ shared libraries with pthread:
7131# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7132# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7133# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7134# To solve this, first try -pthread together with -lpthread for GCC
7135
7136if test "x$GCC" = "xyes"
7137then :
7138  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7139fi
7140
7141# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7142
7143if test "x$ax_pthread_clang" = "xyes"
7144then :
7145  ax_pthread_flags="-pthread,-lpthread -pthread"
7146fi
7147
7148
7149# The presence of a feature test macro requesting re-entrant function
7150# definitions is, on some systems, a strong hint that pthreads support is
7151# correctly enabled
7152
7153case $host_os in
7154        darwin* | hpux* | linux* | osf* | solaris*)
7155        ax_pthread_check_macro="_REENTRANT"
7156        ;;
7157
7158        aix*)
7159        ax_pthread_check_macro="_THREAD_SAFE"
7160        ;;
7161
7162        *)
7163        ax_pthread_check_macro="--"
7164        ;;
7165esac
7166if test "x$ax_pthread_check_macro" = "x--"
7167then :
7168  ax_pthread_check_cond=0
7169else $as_nop
7170  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7171fi
7172
7173
7174if test "x$ax_pthread_ok" = "xno"; then
7175for ax_pthread_try_flag in $ax_pthread_flags; do
7176
7177        case $ax_pthread_try_flag in
7178                none)
7179                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7180printf %s "checking whether pthreads work without any flags... " >&6; }
7181                ;;
7182
7183                *,*)
7184                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7185                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7186                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7187printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7188                ;;
7189
7190                -*)
7191                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7192printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7193                PTHREAD_CFLAGS="$ax_pthread_try_flag"
7194                ;;
7195
7196                pthread-config)
7197                # Extract the first word of "pthread-config", so it can be a program name with args.
7198set dummy pthread-config; ac_word=$2
7199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200printf %s "checking for $ac_word... " >&6; }
7201if test ${ac_cv_prog_ax_pthread_config+y}
7202then :
7203  printf %s "(cached) " >&6
7204else $as_nop
7205  if test -n "$ax_pthread_config"; then
7206  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211  IFS=$as_save_IFS
7212  case $as_dir in #(((
7213    '') as_dir=./ ;;
7214    */) ;;
7215    *) as_dir=$as_dir/ ;;
7216  esac
7217    for ac_exec_ext in '' $ac_executable_extensions; do
7218  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7219    ac_cv_prog_ax_pthread_config="yes"
7220    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7221    break 2
7222  fi
7223done
7224  done
7225IFS=$as_save_IFS
7226
7227  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7228fi
7229fi
7230ax_pthread_config=$ac_cv_prog_ax_pthread_config
7231if test -n "$ax_pthread_config"; then
7232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7233printf "%s\n" "$ax_pthread_config" >&6; }
7234else
7235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236printf "%s\n" "no" >&6; }
7237fi
7238
7239
7240                if test "x$ax_pthread_config" = "xno"
7241then :
7242  continue
7243fi
7244                PTHREAD_CFLAGS="`pthread-config --cflags`"
7245                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7246                ;;
7247
7248                *)
7249                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7250printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7251                PTHREAD_LIBS="-l$ax_pthread_try_flag"
7252                ;;
7253        esac
7254
7255        ax_pthread_save_CFLAGS="$CFLAGS"
7256        ax_pthread_save_LIBS="$LIBS"
7257        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7258        LIBS="$PTHREAD_LIBS $LIBS"
7259
7260        # Check for various functions.  We must include pthread.h,
7261        # since some functions may be macros.  (On the Sequent, we
7262        # need a special flag -Kthread to make this header compile.)
7263        # We check for pthread_join because it is in -lpthread on IRIX
7264        # while pthread_create is in libc.  We check for pthread_attr_init
7265        # due to DEC craziness with -lpthreads.  We check for
7266        # pthread_cleanup_push because it is one of the few pthread
7267        # functions on Solaris that doesn't have a non-functional libc stub.
7268        # We try pthread_create on general principles.
7269
7270        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272#include <pthread.h>
7273#                       if $ax_pthread_check_cond
7274#                        error "$ax_pthread_check_macro must be defined"
7275#                       endif
7276                        static void *some_global = NULL;
7277                        static void routine(void *a)
7278                          {
7279                             /* To avoid any unused-parameter or
7280                                unused-but-set-parameter warning.  */
7281                             some_global = a;
7282                          }
7283                        static void *start_routine(void *a) { return a; }
7284int
7285main (void)
7286{
7287pthread_t th; pthread_attr_t attr;
7288                        pthread_create(&th, 0, start_routine, 0);
7289                        pthread_join(th, 0);
7290                        pthread_attr_init(&attr);
7291                        pthread_cleanup_push(routine, 0);
7292                        pthread_cleanup_pop(0) /* ; */
7293  ;
7294  return 0;
7295}
7296_ACEOF
7297if ac_fn_c_try_link "$LINENO"
7298then :
7299  ax_pthread_ok=yes
7300fi
7301rm -f core conftest.err conftest.$ac_objext conftest.beam \
7302    conftest$ac_exeext conftest.$ac_ext
7303
7304        CFLAGS="$ax_pthread_save_CFLAGS"
7305        LIBS="$ax_pthread_save_LIBS"
7306
7307        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7308printf "%s\n" "$ax_pthread_ok" >&6; }
7309        if test "x$ax_pthread_ok" = "xyes"
7310then :
7311  break
7312fi
7313
7314        PTHREAD_LIBS=""
7315        PTHREAD_CFLAGS=""
7316done
7317fi
7318
7319
7320# Clang needs special handling, because older versions handle the -pthread
7321# option in a rather... idiosyncratic way
7322
7323if test "x$ax_pthread_clang" = "xyes"; then
7324
7325        # Clang takes -pthread; it has never supported any other flag
7326
7327        # (Note 1: This will need to be revisited if a system that Clang
7328        # supports has POSIX threads in a separate library.  This tends not
7329        # to be the way of modern systems, but it's conceivable.)
7330
7331        # (Note 2: On some systems, notably Darwin, -pthread is not needed
7332        # to get POSIX threads support; the API is always present and
7333        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7334        # -pthread does define _REENTRANT, and while the Darwin headers
7335        # ignore this macro, third-party headers might not.)
7336
7337        # However, older versions of Clang make a point of warning the user
7338        # that, in an invocation where only linking and no compilation is
7339        # taking place, the -pthread option has no effect ("argument unused
7340        # during compilation").  They expect -pthread to be passed in only
7341        # when source code is being compiled.
7342        #
7343        # Problem is, this is at odds with the way Automake and most other
7344        # C build frameworks function, which is that the same flags used in
7345        # compilation (CFLAGS) are also used in linking.  Many systems
7346        # supported by AX_PTHREAD require exactly this for POSIX threads
7347        # support, and in fact it is often not straightforward to specify a
7348        # flag that is used only in the compilation phase and not in
7349        # linking.  Such a scenario is extremely rare in practice.
7350        #
7351        # Even though use of the -pthread flag in linking would only print
7352        # a warning, this can be a nuisance for well-run software projects
7353        # that build with -Werror.  So if the active version of Clang has
7354        # this misfeature, we search for an option to squash it.
7355
7356        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7357printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7358if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7359then :
7360  printf %s "(cached) " >&6
7361else $as_nop
7362  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7363             # Create an alternate version of $ac_link that compiles and
7364             # links in two steps (.c -> .o, .o -> exe) instead of one
7365             # (.c -> exe), because the warning occurs only in the second
7366             # step
7367             ax_pthread_save_ac_link="$ac_link"
7368             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7369             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7370             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7371             ax_pthread_save_CFLAGS="$CFLAGS"
7372             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7373                if test "x$ax_pthread_try" = "xunknown"
7374then :
7375  break
7376fi
7377                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7378                ac_link="$ax_pthread_save_ac_link"
7379                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380/* end confdefs.h.  */
7381int main(void){return 0;}
7382_ACEOF
7383if ac_fn_c_try_link "$LINENO"
7384then :
7385  ac_link="$ax_pthread_2step_ac_link"
7386                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388int main(void){return 0;}
7389_ACEOF
7390if ac_fn_c_try_link "$LINENO"
7391then :
7392  break
7393fi
7394rm -f core conftest.err conftest.$ac_objext conftest.beam \
7395    conftest$ac_exeext conftest.$ac_ext
7396
7397fi
7398rm -f core conftest.err conftest.$ac_objext conftest.beam \
7399    conftest$ac_exeext conftest.$ac_ext
7400             done
7401             ac_link="$ax_pthread_save_ac_link"
7402             CFLAGS="$ax_pthread_save_CFLAGS"
7403             if test "x$ax_pthread_try" = "x"
7404then :
7405  ax_pthread_try=no
7406fi
7407             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7408
7409fi
7410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7411printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7412
7413        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7414                no | unknown) ;;
7415                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7416        esac
7417
7418fi # $ax_pthread_clang = yes
7419
7420
7421
7422# Various other checks:
7423if test "x$ax_pthread_ok" = "xyes"; then
7424        ax_pthread_save_CFLAGS="$CFLAGS"
7425        ax_pthread_save_LIBS="$LIBS"
7426        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7427        LIBS="$PTHREAD_LIBS $LIBS"
7428
7429        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7430        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7431printf %s "checking for joinable pthread attribute... " >&6; }
7432if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7433then :
7434  printf %s "(cached) " >&6
7435else $as_nop
7436  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7437             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7438                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h.  */
7440#include <pthread.h>
7441int
7442main (void)
7443{
7444int attr = $ax_pthread_attr; return attr /* ; */
7445  ;
7446  return 0;
7447}
7448_ACEOF
7449if ac_fn_c_try_link "$LINENO"
7450then :
7451  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7452fi
7453rm -f core conftest.err conftest.$ac_objext conftest.beam \
7454    conftest$ac_exeext conftest.$ac_ext
7455             done
7456
7457fi
7458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7459printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7460        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7461               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7462               test "x$ax_pthread_joinable_attr_defined" != "xyes"
7463then :
7464
7465printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7466
7467               ax_pthread_joinable_attr_defined=yes
7468
7469fi
7470
7471        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7472printf %s "checking whether more special flags are required for pthreads... " >&6; }
7473if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7474then :
7475  printf %s "(cached) " >&6
7476else $as_nop
7477  ax_cv_PTHREAD_SPECIAL_FLAGS=no
7478             case $host_os in
7479             solaris*)
7480             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7481             ;;
7482             esac
7483
7484fi
7485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7486printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7487        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7488               test "x$ax_pthread_special_flags_added" != "xyes"
7489then :
7490  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7491               ax_pthread_special_flags_added=yes
7492fi
7493
7494        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7495printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7496if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7497then :
7498  printf %s "(cached) " >&6
7499else $as_nop
7500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501/* end confdefs.h.  */
7502#include <pthread.h>
7503int
7504main (void)
7505{
7506int i = PTHREAD_PRIO_INHERIT;
7507                                               return i;
7508  ;
7509  return 0;
7510}
7511_ACEOF
7512if ac_fn_c_try_link "$LINENO"
7513then :
7514  ax_cv_PTHREAD_PRIO_INHERIT=yes
7515else $as_nop
7516  ax_cv_PTHREAD_PRIO_INHERIT=no
7517fi
7518rm -f core conftest.err conftest.$ac_objext conftest.beam \
7519    conftest$ac_exeext conftest.$ac_ext
7520
7521fi
7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7523printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7524        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7525               test "x$ax_pthread_prio_inherit_defined" != "xyes"
7526then :
7527
7528printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7529
7530               ax_pthread_prio_inherit_defined=yes
7531
7532fi
7533
7534        CFLAGS="$ax_pthread_save_CFLAGS"
7535        LIBS="$ax_pthread_save_LIBS"
7536
7537        # More AIX lossage: compile with *_r variant
7538        if test "x$GCC" != "xyes"; then
7539            case $host_os in
7540                aix*)
7541                case "x/$CC" in #(
7542  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7543    #handle absolute path differently from PATH based program lookup
7544                     case "x$CC" in #(
7545  x/*) :
7546    if as_fn_executable_p ${CC}_r
7547then :
7548  PTHREAD_CC="${CC}_r"
7549fi ;; #(
7550  *) :
7551    for ac_prog in ${CC}_r
7552do
7553  # Extract the first word of "$ac_prog", so it can be a program name with args.
7554set dummy $ac_prog; ac_word=$2
7555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556printf %s "checking for $ac_word... " >&6; }
7557if test ${ac_cv_prog_PTHREAD_CC+y}
7558then :
7559  printf %s "(cached) " >&6
7560else $as_nop
7561  if test -n "$PTHREAD_CC"; then
7562  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567  IFS=$as_save_IFS
7568  case $as_dir in #(((
7569    '') as_dir=./ ;;
7570    */) ;;
7571    *) as_dir=$as_dir/ ;;
7572  esac
7573    for ac_exec_ext in '' $ac_executable_extensions; do
7574  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7575    ac_cv_prog_PTHREAD_CC="$ac_prog"
7576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7577    break 2
7578  fi
7579done
7580  done
7581IFS=$as_save_IFS
7582
7583fi
7584fi
7585PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7586if test -n "$PTHREAD_CC"; then
7587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7588printf "%s\n" "$PTHREAD_CC" >&6; }
7589else
7590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591printf "%s\n" "no" >&6; }
7592fi
7593
7594
7595  test -n "$PTHREAD_CC" && break
7596done
7597test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7598 ;;
7599esac ;; #(
7600  *) :
7601     ;;
7602esac
7603                ;;
7604            esac
7605        fi
7606fi
7607
7608test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7609
7610
7611
7612
7613
7614# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7615if test "x$ax_pthread_ok" = "xyes"; then
7616
7617printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7618
7619        :
7620else
7621        ax_pthread_ok=no
7622
7623fi
7624ac_ext=c
7625ac_cpp='$CPP $CPPFLAGS'
7626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629
7630
7631LIBS="$PTHREAD_LIBS $LIBS"
7632CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7633CC="$PTHREAD_CC"
7634
7635ac_ext=cpp
7636ac_cpp='$CXXCPP $CPPFLAGS'
7637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7640
7641
7642
7643
7644
7645
7646
7647ac_ext=cpp
7648ac_cpp='$CXXCPP $CPPFLAGS'
7649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7652if test -z "$CXX"; then
7653  if test -n "$CCC"; then
7654    CXX=$CCC
7655  else
7656    if test -n "$ac_tool_prefix"; then
7657  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7658  do
7659    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662printf %s "checking for $ac_word... " >&6; }
7663if test ${ac_cv_prog_CXX+y}
7664then :
7665  printf %s "(cached) " >&6
7666else $as_nop
7667  if test -n "$CXX"; then
7668  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7669else
7670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673  IFS=$as_save_IFS
7674  case $as_dir in #(((
7675    '') as_dir=./ ;;
7676    */) ;;
7677    *) as_dir=$as_dir/ ;;
7678  esac
7679    for ac_exec_ext in '' $ac_executable_extensions; do
7680  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7681    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7682    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7683    break 2
7684  fi
7685done
7686  done
7687IFS=$as_save_IFS
7688
7689fi
7690fi
7691CXX=$ac_cv_prog_CXX
7692if test -n "$CXX"; then
7693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7694printf "%s\n" "$CXX" >&6; }
7695else
7696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697printf "%s\n" "no" >&6; }
7698fi
7699
7700
7701    test -n "$CXX" && break
7702  done
7703fi
7704if test -z "$CXX"; then
7705  ac_ct_CXX=$CXX
7706  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7707do
7708  # Extract the first word of "$ac_prog", so it can be a program name with args.
7709set dummy $ac_prog; ac_word=$2
7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711printf %s "checking for $ac_word... " >&6; }
7712if test ${ac_cv_prog_ac_ct_CXX+y}
7713then :
7714  printf %s "(cached) " >&6
7715else $as_nop
7716  if test -n "$ac_ct_CXX"; then
7717  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722  IFS=$as_save_IFS
7723  case $as_dir in #(((
7724    '') as_dir=./ ;;
7725    */) ;;
7726    *) as_dir=$as_dir/ ;;
7727  esac
7728    for ac_exec_ext in '' $ac_executable_extensions; do
7729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7730    ac_cv_prog_ac_ct_CXX="$ac_prog"
7731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735  done
7736IFS=$as_save_IFS
7737
7738fi
7739fi
7740ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7741if test -n "$ac_ct_CXX"; then
7742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7743printf "%s\n" "$ac_ct_CXX" >&6; }
7744else
7745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746printf "%s\n" "no" >&6; }
7747fi
7748
7749
7750  test -n "$ac_ct_CXX" && break
7751done
7752
7753  if test "x$ac_ct_CXX" = x; then
7754    CXX="g++"
7755  else
7756    case $cross_compiling:$ac_tool_warned in
7757yes:)
7758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760ac_tool_warned=yes ;;
7761esac
7762    CXX=$ac_ct_CXX
7763  fi
7764fi
7765
7766  fi
7767fi
7768# Provide some information about the compiler.
7769printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7770set X $ac_compile
7771ac_compiler=$2
7772for ac_option in --version -v -V -qversion; do
7773  { { ac_try="$ac_compiler $ac_option >&5"
7774case "(($ac_try" in
7775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776  *) ac_try_echo=$ac_try;;
7777esac
7778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7779printf "%s\n" "$ac_try_echo"; } >&5
7780  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7781  ac_status=$?
7782  if test -s conftest.err; then
7783    sed '10a\
7784... rest of stderr output deleted ...
7785         10q' conftest.err >conftest.er1
7786    cat conftest.er1 >&5
7787  fi
7788  rm -f conftest.er1 conftest.err
7789  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7790  test $ac_status = 0; }
7791done
7792
7793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
7794printf %s "checking whether the compiler supports GNU C++... " >&6; }
7795if test ${ac_cv_cxx_compiler_gnu+y}
7796then :
7797  printf %s "(cached) " >&6
7798else $as_nop
7799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800/* end confdefs.h.  */
7801
7802int
7803main (void)
7804{
7805#ifndef __GNUC__
7806       choke me
7807#endif
7808
7809  ;
7810  return 0;
7811}
7812_ACEOF
7813if ac_fn_cxx_try_compile "$LINENO"
7814then :
7815  ac_compiler_gnu=yes
7816else $as_nop
7817  ac_compiler_gnu=no
7818fi
7819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7820ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7821
7822fi
7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7824printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
7825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7826
7827if test $ac_compiler_gnu = yes; then
7828  GXX=yes
7829else
7830  GXX=
7831fi
7832ac_test_CXXFLAGS=${CXXFLAGS+y}
7833ac_save_CXXFLAGS=$CXXFLAGS
7834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7835printf %s "checking whether $CXX accepts -g... " >&6; }
7836if test ${ac_cv_prog_cxx_g+y}
7837then :
7838  printf %s "(cached) " >&6
7839else $as_nop
7840  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7841   ac_cxx_werror_flag=yes
7842   ac_cv_prog_cxx_g=no
7843   CXXFLAGS="-g"
7844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h.  */
7846
7847int
7848main (void)
7849{
7850
7851  ;
7852  return 0;
7853}
7854_ACEOF
7855if ac_fn_cxx_try_compile "$LINENO"
7856then :
7857  ac_cv_prog_cxx_g=yes
7858else $as_nop
7859  CXXFLAGS=""
7860      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862
7863int
7864main (void)
7865{
7866
7867  ;
7868  return 0;
7869}
7870_ACEOF
7871if ac_fn_cxx_try_compile "$LINENO"
7872then :
7873
7874else $as_nop
7875  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7876	 CXXFLAGS="-g"
7877	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h.  */
7879
7880int
7881main (void)
7882{
7883
7884  ;
7885  return 0;
7886}
7887_ACEOF
7888if ac_fn_cxx_try_compile "$LINENO"
7889then :
7890  ac_cv_prog_cxx_g=yes
7891fi
7892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7893fi
7894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7895fi
7896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7897   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7898fi
7899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7900printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
7901if test $ac_test_CXXFLAGS; then
7902  CXXFLAGS=$ac_save_CXXFLAGS
7903elif test $ac_cv_prog_cxx_g = yes; then
7904  if test "$GXX" = yes; then
7905    CXXFLAGS="-g -O2"
7906  else
7907    CXXFLAGS="-g"
7908  fi
7909else
7910  if test "$GXX" = yes; then
7911    CXXFLAGS="-O2"
7912  else
7913    CXXFLAGS=
7914  fi
7915fi
7916ac_prog_cxx_stdcxx=no
7917if test x$ac_prog_cxx_stdcxx = xno
7918then :
7919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
7920printf %s "checking for $CXX option to enable C++11 features... " >&6; }
7921if test ${ac_cv_prog_cxx_11+y}
7922then :
7923  printf %s "(cached) " >&6
7924else $as_nop
7925  ac_cv_prog_cxx_11=no
7926ac_save_CXX=$CXX
7927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h.  */
7929$ac_cxx_conftest_cxx11_program
7930_ACEOF
7931for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
7932do
7933  CXX="$ac_save_CXX $ac_arg"
7934  if ac_fn_cxx_try_compile "$LINENO"
7935then :
7936  ac_cv_prog_cxx_cxx11=$ac_arg
7937fi
7938rm -f core conftest.err conftest.$ac_objext conftest.beam
7939  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
7940done
7941rm -f conftest.$ac_ext
7942CXX=$ac_save_CXX
7943fi
7944
7945if test "x$ac_cv_prog_cxx_cxx11" = xno
7946then :
7947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7948printf "%s\n" "unsupported" >&6; }
7949else $as_nop
7950  if test "x$ac_cv_prog_cxx_cxx11" = x
7951then :
7952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7953printf "%s\n" "none needed" >&6; }
7954else $as_nop
7955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
7956printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
7957     CXX="$CXX $ac_cv_prog_cxx_cxx11"
7958fi
7959  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
7960  ac_prog_cxx_stdcxx=cxx11
7961fi
7962fi
7963if test x$ac_prog_cxx_stdcxx = xno
7964then :
7965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
7966printf %s "checking for $CXX option to enable C++98 features... " >&6; }
7967if test ${ac_cv_prog_cxx_98+y}
7968then :
7969  printf %s "(cached) " >&6
7970else $as_nop
7971  ac_cv_prog_cxx_98=no
7972ac_save_CXX=$CXX
7973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h.  */
7975$ac_cxx_conftest_cxx98_program
7976_ACEOF
7977for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
7978do
7979  CXX="$ac_save_CXX $ac_arg"
7980  if ac_fn_cxx_try_compile "$LINENO"
7981then :
7982  ac_cv_prog_cxx_cxx98=$ac_arg
7983fi
7984rm -f core conftest.err conftest.$ac_objext conftest.beam
7985  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
7986done
7987rm -f conftest.$ac_ext
7988CXX=$ac_save_CXX
7989fi
7990
7991if test "x$ac_cv_prog_cxx_cxx98" = xno
7992then :
7993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7994printf "%s\n" "unsupported" >&6; }
7995else $as_nop
7996  if test "x$ac_cv_prog_cxx_cxx98" = x
7997then :
7998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7999printf "%s\n" "none needed" >&6; }
8000else $as_nop
8001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
8002printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
8003     CXX="$CXX $ac_cv_prog_cxx_cxx98"
8004fi
8005  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
8006  ac_prog_cxx_stdcxx=cxx98
8007fi
8008fi
8009
8010ac_ext=cpp
8011ac_cpp='$CXXCPP $CPPFLAGS'
8012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8015
8016depcc="$CXX"  am_compiler_list=
8017
8018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8019printf %s "checking dependency style of $depcc... " >&6; }
8020if test ${am_cv_CXX_dependencies_compiler_type+y}
8021then :
8022  printf %s "(cached) " >&6
8023else $as_nop
8024  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8025  # We make a subdir and do the tests there.  Otherwise we can end up
8026  # making bogus files that we don't know about and never remove.  For
8027  # instance it was reported that on HP-UX the gcc test will end up
8028  # making a dummy file named 'D' -- because '-MD' means "put the output
8029  # in D".
8030  rm -rf conftest.dir
8031  mkdir conftest.dir
8032  # Copy depcomp to subdir because otherwise we won't find it if we're
8033  # using a relative directory.
8034  cp "$am_depcomp" conftest.dir
8035  cd conftest.dir
8036  # We will build objects and dependencies in a subdirectory because
8037  # it helps to detect inapplicable dependency modes.  For instance
8038  # both Tru64's cc and ICC support -MD to output dependencies as a
8039  # side effect of compilation, but ICC will put the dependencies in
8040  # the current directory while Tru64 will put them in the object
8041  # directory.
8042  mkdir sub
8043
8044  am_cv_CXX_dependencies_compiler_type=none
8045  if test "$am_compiler_list" = ""; then
8046     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8047  fi
8048  am__universal=false
8049  case " $depcc " in #(
8050     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8051     esac
8052
8053  for depmode in $am_compiler_list; do
8054    # Setup a source with many dependencies, because some compilers
8055    # like to wrap large dependency lists on column 80 (with \), and
8056    # we should not choose a depcomp mode which is confused by this.
8057    #
8058    # We need to recreate these files for each test, as the compiler may
8059    # overwrite some of them when testing with obscure command lines.
8060    # This happens at least with the AIX C compiler.
8061    : > sub/conftest.c
8062    for i in 1 2 3 4 5 6; do
8063      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8064      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8065      # Solaris 10 /bin/sh.
8066      echo '/* dummy */' > sub/conftst$i.h
8067    done
8068    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8069
8070    # We check with '-c' and '-o' for the sake of the "dashmstdout"
8071    # mode.  It turns out that the SunPro C++ compiler does not properly
8072    # handle '-M -o', and we need to detect this.  Also, some Intel
8073    # versions had trouble with output in subdirs.
8074    am__obj=sub/conftest.${OBJEXT-o}
8075    am__minus_obj="-o $am__obj"
8076    case $depmode in
8077    gcc)
8078      # This depmode causes a compiler race in universal mode.
8079      test "$am__universal" = false || continue
8080      ;;
8081    nosideeffect)
8082      # After this tag, mechanisms are not by side-effect, so they'll
8083      # only be used when explicitly requested.
8084      if test "x$enable_dependency_tracking" = xyes; then
8085	continue
8086      else
8087	break
8088      fi
8089      ;;
8090    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8091      # This compiler won't grok '-c -o', but also, the minuso test has
8092      # not run yet.  These depmodes are late enough in the game, and
8093      # so weak that their functioning should not be impacted.
8094      am__obj=conftest.${OBJEXT-o}
8095      am__minus_obj=
8096      ;;
8097    none) break ;;
8098    esac
8099    if depmode=$depmode \
8100       source=sub/conftest.c object=$am__obj \
8101       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8102       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8103         >/dev/null 2>conftest.err &&
8104       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8105       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8106       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8107       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8108      # icc doesn't choke on unknown options, it will just issue warnings
8109      # or remarks (even with -Werror).  So we grep stderr for any message
8110      # that says an option was ignored or not supported.
8111      # When given -MP, icc 7.0 and 7.1 complain thusly:
8112      #   icc: Command line warning: ignoring option '-M'; no argument required
8113      # The diagnosis changed in icc 8.0:
8114      #   icc: Command line remark: option '-MP' not supported
8115      if (grep 'ignoring option' conftest.err ||
8116          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8117        am_cv_CXX_dependencies_compiler_type=$depmode
8118        break
8119      fi
8120    fi
8121  done
8122
8123  cd ..
8124  rm -rf conftest.dir
8125else
8126  am_cv_CXX_dependencies_compiler_type=none
8127fi
8128
8129fi
8130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8131printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
8132CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8133
8134 if
8135  test "x$enable_dependency_tracking" != xno \
8136  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8137  am__fastdepCXX_TRUE=
8138  am__fastdepCXX_FALSE='#'
8139else
8140  am__fastdepCXX_TRUE='#'
8141  am__fastdepCXX_FALSE=
8142fi
8143
8144
8145
8146  ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=true
8147  ac_ext=cpp
8148ac_cpp='$CXXCPP $CPPFLAGS'
8149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8152  ac_success=no
8153
8154
8155
8156
8157
8158    if test x$ac_success = xno; then
8159                for alternative in ${ax_cxx_compile_alternatives}; do
8160      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8161        cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
8162        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
8163printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
8164if eval test \${$cachevar+y}
8165then :
8166  printf %s "(cached) " >&6
8167else $as_nop
8168  ac_save_CXX="$CXX"
8169           CXX="$CXX $switch"
8170           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h.  */
8172
8173
8174// If the compiler admits that it is not ready for C++11, why torture it?
8175// Hopefully, this will speed up the test.
8176
8177#ifndef __cplusplus
8178
8179#error "This is not a C++ compiler"
8180
8181#elif __cplusplus < 201103L
8182
8183#error "This is not a C++11 compiler"
8184
8185#else
8186
8187namespace cxx11
8188{
8189
8190  namespace test_static_assert
8191  {
8192
8193    template <typename T>
8194    struct check
8195    {
8196      static_assert(sizeof(int) <= sizeof(T), "not big enough");
8197    };
8198
8199  }
8200
8201  namespace test_final_override
8202  {
8203
8204    struct Base
8205    {
8206      virtual ~Base() {}
8207      virtual void f() {}
8208    };
8209
8210    struct Derived : public Base
8211    {
8212      virtual ~Derived() override {}
8213      virtual void f() override {}
8214    };
8215
8216  }
8217
8218  namespace test_double_right_angle_brackets
8219  {
8220
8221    template < typename T >
8222    struct check {};
8223
8224    typedef check<void> single_type;
8225    typedef check<check<void>> double_type;
8226    typedef check<check<check<void>>> triple_type;
8227    typedef check<check<check<check<void>>>> quadruple_type;
8228
8229  }
8230
8231  namespace test_decltype
8232  {
8233
8234    int
8235    f()
8236    {
8237      int a = 1;
8238      decltype(a) b = 2;
8239      return a + b;
8240    }
8241
8242  }
8243
8244  namespace test_type_deduction
8245  {
8246
8247    template < typename T1, typename T2 >
8248    struct is_same
8249    {
8250      static const bool value = false;
8251    };
8252
8253    template < typename T >
8254    struct is_same<T, T>
8255    {
8256      static const bool value = true;
8257    };
8258
8259    template < typename T1, typename T2 >
8260    auto
8261    add(T1 a1, T2 a2) -> decltype(a1 + a2)
8262    {
8263      return a1 + a2;
8264    }
8265
8266    int
8267    test(const int c, volatile int v)
8268    {
8269      static_assert(is_same<int, decltype(0)>::value == true, "");
8270      static_assert(is_same<int, decltype(c)>::value == false, "");
8271      static_assert(is_same<int, decltype(v)>::value == false, "");
8272      auto ac = c;
8273      auto av = v;
8274      auto sumi = ac + av + 'x';
8275      auto sumf = ac + av + 1.0;
8276      static_assert(is_same<int, decltype(ac)>::value == true, "");
8277      static_assert(is_same<int, decltype(av)>::value == true, "");
8278      static_assert(is_same<int, decltype(sumi)>::value == true, "");
8279      static_assert(is_same<int, decltype(sumf)>::value == false, "");
8280      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8281      return (sumf > 0.0) ? sumi : add(c, v);
8282    }
8283
8284  }
8285
8286  namespace test_noexcept
8287  {
8288
8289    int f() { return 0; }
8290    int g() noexcept { return 0; }
8291
8292    static_assert(noexcept(f()) == false, "");
8293    static_assert(noexcept(g()) == true, "");
8294
8295  }
8296
8297  namespace test_constexpr
8298  {
8299
8300    template < typename CharT >
8301    unsigned long constexpr
8302    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8303    {
8304      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8305    }
8306
8307    template < typename CharT >
8308    unsigned long constexpr
8309    strlen_c(const CharT *const s) noexcept
8310    {
8311      return strlen_c_r(s, 0UL);
8312    }
8313
8314    static_assert(strlen_c("") == 0UL, "");
8315    static_assert(strlen_c("1") == 1UL, "");
8316    static_assert(strlen_c("example") == 7UL, "");
8317    static_assert(strlen_c("another\0example") == 7UL, "");
8318
8319  }
8320
8321  namespace test_rvalue_references
8322  {
8323
8324    template < int N >
8325    struct answer
8326    {
8327      static constexpr int value = N;
8328    };
8329
8330    answer<1> f(int&)       { return answer<1>(); }
8331    answer<2> f(const int&) { return answer<2>(); }
8332    answer<3> f(int&&)      { return answer<3>(); }
8333
8334    void
8335    test()
8336    {
8337      int i = 0;
8338      const int c = 0;
8339      static_assert(decltype(f(i))::value == 1, "");
8340      static_assert(decltype(f(c))::value == 2, "");
8341      static_assert(decltype(f(0))::value == 3, "");
8342    }
8343
8344  }
8345
8346  namespace test_uniform_initialization
8347  {
8348
8349    struct test
8350    {
8351      static const int zero {};
8352      static const int one {1};
8353    };
8354
8355    static_assert(test::zero == 0, "");
8356    static_assert(test::one == 1, "");
8357
8358  }
8359
8360  namespace test_lambdas
8361  {
8362
8363    void
8364    test1()
8365    {
8366      auto lambda1 = [](){};
8367      auto lambda2 = lambda1;
8368      lambda1();
8369      lambda2();
8370    }
8371
8372    int
8373    test2()
8374    {
8375      auto a = [](int i, int j){ return i + j; }(1, 2);
8376      auto b = []() -> int { return '0'; }();
8377      auto c = [=](){ return a + b; }();
8378      auto d = [&](){ return c; }();
8379      auto e = [a, &b](int x) mutable {
8380        const auto identity = [](int y){ return y; };
8381        for (auto i = 0; i < a; ++i)
8382          a += b--;
8383        return x + identity(a + b);
8384      }(0);
8385      return a + b + c + d + e;
8386    }
8387
8388    int
8389    test3()
8390    {
8391      const auto nullary = [](){ return 0; };
8392      const auto unary = [](int x){ return x; };
8393      using nullary_t = decltype(nullary);
8394      using unary_t = decltype(unary);
8395      const auto higher1st = [](nullary_t f){ return f(); };
8396      const auto higher2nd = [unary](nullary_t f1){
8397        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8398      };
8399      return higher1st(nullary) + higher2nd(nullary)(unary);
8400    }
8401
8402  }
8403
8404  namespace test_variadic_templates
8405  {
8406
8407    template <int...>
8408    struct sum;
8409
8410    template <int N0, int... N1toN>
8411    struct sum<N0, N1toN...>
8412    {
8413      static constexpr auto value = N0 + sum<N1toN...>::value;
8414    };
8415
8416    template <>
8417    struct sum<>
8418    {
8419      static constexpr auto value = 0;
8420    };
8421
8422    static_assert(sum<>::value == 0, "");
8423    static_assert(sum<1>::value == 1, "");
8424    static_assert(sum<23>::value == 23, "");
8425    static_assert(sum<1, 2>::value == 3, "");
8426    static_assert(sum<5, 5, 11>::value == 21, "");
8427    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8428
8429  }
8430
8431  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8432  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8433  // because of this.
8434  namespace test_template_alias_sfinae
8435  {
8436
8437    struct foo {};
8438
8439    template<typename T>
8440    using member = typename T::member_type;
8441
8442    template<typename T>
8443    void func(...) {}
8444
8445    template<typename T>
8446    void func(member<T>*) {}
8447
8448    void test();
8449
8450    void test() { func<foo>(0); }
8451
8452  }
8453
8454}  // namespace cxx11
8455
8456#endif  // __cplusplus >= 201103L
8457
8458
8459
8460
8461// If the compiler admits that it is not ready for C++14, why torture it?
8462// Hopefully, this will speed up the test.
8463
8464#ifndef __cplusplus
8465
8466#error "This is not a C++ compiler"
8467
8468#elif __cplusplus < 201402L
8469
8470#error "This is not a C++14 compiler"
8471
8472#else
8473
8474namespace cxx14
8475{
8476
8477  namespace test_polymorphic_lambdas
8478  {
8479
8480    int
8481    test()
8482    {
8483      const auto lambda = [](auto&&... args){
8484        const auto istiny = [](auto x){
8485          return (sizeof(x) == 1UL) ? 1 : 0;
8486        };
8487        const int aretiny[] = { istiny(args)... };
8488        return aretiny[0];
8489      };
8490      return lambda(1, 1L, 1.0f, '1');
8491    }
8492
8493  }
8494
8495  namespace test_binary_literals
8496  {
8497
8498    constexpr auto ivii = 0b0000000000101010;
8499    static_assert(ivii == 42, "wrong value");
8500
8501  }
8502
8503  namespace test_generalized_constexpr
8504  {
8505
8506    template < typename CharT >
8507    constexpr unsigned long
8508    strlen_c(const CharT *const s) noexcept
8509    {
8510      auto length = 0UL;
8511      for (auto p = s; *p; ++p)
8512        ++length;
8513      return length;
8514    }
8515
8516    static_assert(strlen_c("") == 0UL, "");
8517    static_assert(strlen_c("x") == 1UL, "");
8518    static_assert(strlen_c("test") == 4UL, "");
8519    static_assert(strlen_c("another\0test") == 7UL, "");
8520
8521  }
8522
8523  namespace test_lambda_init_capture
8524  {
8525
8526    int
8527    test()
8528    {
8529      auto x = 0;
8530      const auto lambda1 = [a = x](int b){ return a + b; };
8531      const auto lambda2 = [a = lambda1(x)](){ return a; };
8532      return lambda2();
8533    }
8534
8535  }
8536
8537  namespace test_digit_separators
8538  {
8539
8540    constexpr auto ten_million = 100'000'000;
8541    static_assert(ten_million == 100000000, "");
8542
8543  }
8544
8545  namespace test_return_type_deduction
8546  {
8547
8548    auto f(int& x) { return x; }
8549    decltype(auto) g(int& x) { return x; }
8550
8551    template < typename T1, typename T2 >
8552    struct is_same
8553    {
8554      static constexpr auto value = false;
8555    };
8556
8557    template < typename T >
8558    struct is_same<T, T>
8559    {
8560      static constexpr auto value = true;
8561    };
8562
8563    int
8564    test()
8565    {
8566      auto x = 0;
8567      static_assert(is_same<int, decltype(f(x))>::value, "");
8568      static_assert(is_same<int&, decltype(g(x))>::value, "");
8569      return x;
8570    }
8571
8572  }
8573
8574}  // namespace cxx14
8575
8576#endif  // __cplusplus >= 201402L
8577
8578
8579
8580_ACEOF
8581if ac_fn_cxx_try_compile "$LINENO"
8582then :
8583  eval $cachevar=yes
8584else $as_nop
8585  eval $cachevar=no
8586fi
8587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8588           CXX="$ac_save_CXX"
8589fi
8590eval ac_res=\$$cachevar
8591	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8592printf "%s\n" "$ac_res" >&6; }
8593        if eval test x\$$cachevar = xyes; then
8594          CXX="$CXX $switch"
8595          if test -n "$CXXCPP" ; then
8596            CXXCPP="$CXXCPP $switch"
8597          fi
8598          ac_success=yes
8599          break
8600        fi
8601      done
8602      if test x$ac_success = xyes; then
8603        break
8604      fi
8605    done
8606  fi
8607  ac_ext=cpp
8608ac_cpp='$CXXCPP $CPPFLAGS'
8609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8612
8613  if test x$ax_cxx_compile_cxx14_required = xtrue; then
8614    if test x$ac_success = xno; then
8615      as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
8616    fi
8617  fi
8618  if test x$ac_success = xno; then
8619    HAVE_CXX14=0
8620    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
8621printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;}
8622  else
8623    HAVE_CXX14=1
8624
8625printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h
8626
8627  fi
8628
8629
8630
8631# Check whether --enable-system-paths was given.
8632if test ${enable_system_paths+y}
8633then :
8634  enableval=$enable_system_paths;
8635else $as_nop
8636  enable_system_paths=yes
8637fi
8638
8639
8640if test x"${enable_system_paths}" != x"no"; then
8641    for defdir in /opt/local /usr/local; do
8642        if test -d "$defdir/include"; then
8643            echo "Adding include path: $defdir/include"
8644            CPPFLAGS="$CPPFLAGS -I$defdir/include"
8645        fi
8646    done
8647
8648    for defdir in /opt/local /usr/local /usr /; do
8649
8650        if test -d "$defdir/lib64"; then
8651            LDFLAGS="$LDFLAGS -L$defdir/lib64"
8652        fi
8653        if test -d "$defdir/lib"; then
8654            LDFLAGS="$LDFLAGS -L$defdir/lib"
8655        fi
8656
8657        if test -d "$defdir/lib/x86_64-linux-gnu"; then
8658            LDFLAGS="$LDFLAGS -L$defdir/lib/x86_64-linux-gnu"
8659        fi
8660    done
8661else
8662    echo "Not including extra system paths"
8663fi
8664
8665case x$srcdir in #(
8666  x/*) :
8667    abssrcdir=$srcdir ;; #(
8668  *) :
8669    abssrcdir=`pwd`/$srcdir
8670 ;;
8671esac
8672
8673
8674
8675ac_ext=cpp
8676ac_cpp='$CXXCPP $CPPFLAGS'
8677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8680if test -z "$CXX"; then
8681  if test -n "$CCC"; then
8682    CXX=$CCC
8683  else
8684    if test -n "$ac_tool_prefix"; then
8685  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
8686  do
8687    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690printf %s "checking for $ac_word... " >&6; }
8691if test ${ac_cv_prog_CXX+y}
8692then :
8693  printf %s "(cached) " >&6
8694else $as_nop
8695  if test -n "$CXX"; then
8696  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8697else
8698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699for as_dir in $PATH
8700do
8701  IFS=$as_save_IFS
8702  case $as_dir in #(((
8703    '') as_dir=./ ;;
8704    */) ;;
8705    *) as_dir=$as_dir/ ;;
8706  esac
8707    for ac_exec_ext in '' $ac_executable_extensions; do
8708  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8709    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8710    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8711    break 2
8712  fi
8713done
8714  done
8715IFS=$as_save_IFS
8716
8717fi
8718fi
8719CXX=$ac_cv_prog_CXX
8720if test -n "$CXX"; then
8721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8722printf "%s\n" "$CXX" >&6; }
8723else
8724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725printf "%s\n" "no" >&6; }
8726fi
8727
8728
8729    test -n "$CXX" && break
8730  done
8731fi
8732if test -z "$CXX"; then
8733  ac_ct_CXX=$CXX
8734  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
8735do
8736  # Extract the first word of "$ac_prog", so it can be a program name with args.
8737set dummy $ac_prog; ac_word=$2
8738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739printf %s "checking for $ac_word... " >&6; }
8740if test ${ac_cv_prog_ac_ct_CXX+y}
8741then :
8742  printf %s "(cached) " >&6
8743else $as_nop
8744  if test -n "$ac_ct_CXX"; then
8745  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8746else
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750  IFS=$as_save_IFS
8751  case $as_dir in #(((
8752    '') as_dir=./ ;;
8753    */) ;;
8754    *) as_dir=$as_dir/ ;;
8755  esac
8756    for ac_exec_ext in '' $ac_executable_extensions; do
8757  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8758    ac_cv_prog_ac_ct_CXX="$ac_prog"
8759    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8760    break 2
8761  fi
8762done
8763  done
8764IFS=$as_save_IFS
8765
8766fi
8767fi
8768ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8769if test -n "$ac_ct_CXX"; then
8770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8771printf "%s\n" "$ac_ct_CXX" >&6; }
8772else
8773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774printf "%s\n" "no" >&6; }
8775fi
8776
8777
8778  test -n "$ac_ct_CXX" && break
8779done
8780
8781  if test "x$ac_ct_CXX" = x; then
8782    CXX="g++"
8783  else
8784    case $cross_compiling:$ac_tool_warned in
8785yes:)
8786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8787printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8788ac_tool_warned=yes ;;
8789esac
8790    CXX=$ac_ct_CXX
8791  fi
8792fi
8793
8794  fi
8795fi
8796# Provide some information about the compiler.
8797printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8798set X $ac_compile
8799ac_compiler=$2
8800for ac_option in --version -v -V -qversion; do
8801  { { ac_try="$ac_compiler $ac_option >&5"
8802case "(($ac_try" in
8803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804  *) ac_try_echo=$ac_try;;
8805esac
8806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8807printf "%s\n" "$ac_try_echo"; } >&5
8808  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8809  ac_status=$?
8810  if test -s conftest.err; then
8811    sed '10a\
8812... rest of stderr output deleted ...
8813         10q' conftest.err >conftest.er1
8814    cat conftest.er1 >&5
8815  fi
8816  rm -f conftest.er1 conftest.err
8817  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8818  test $ac_status = 0; }
8819done
8820
8821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
8822printf %s "checking whether the compiler supports GNU C++... " >&6; }
8823if test ${ac_cv_cxx_compiler_gnu+y}
8824then :
8825  printf %s "(cached) " >&6
8826else $as_nop
8827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828/* end confdefs.h.  */
8829
8830int
8831main (void)
8832{
8833#ifndef __GNUC__
8834       choke me
8835#endif
8836
8837  ;
8838  return 0;
8839}
8840_ACEOF
8841if ac_fn_cxx_try_compile "$LINENO"
8842then :
8843  ac_compiler_gnu=yes
8844else $as_nop
8845  ac_compiler_gnu=no
8846fi
8847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8848ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8849
8850fi
8851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8852printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
8853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8854
8855if test $ac_compiler_gnu = yes; then
8856  GXX=yes
8857else
8858  GXX=
8859fi
8860ac_test_CXXFLAGS=${CXXFLAGS+y}
8861ac_save_CXXFLAGS=$CXXFLAGS
8862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8863printf %s "checking whether $CXX accepts -g... " >&6; }
8864if test ${ac_cv_prog_cxx_g+y}
8865then :
8866  printf %s "(cached) " >&6
8867else $as_nop
8868  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8869   ac_cxx_werror_flag=yes
8870   ac_cv_prog_cxx_g=no
8871   CXXFLAGS="-g"
8872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h.  */
8874
8875int
8876main (void)
8877{
8878
8879  ;
8880  return 0;
8881}
8882_ACEOF
8883if ac_fn_cxx_try_compile "$LINENO"
8884then :
8885  ac_cv_prog_cxx_g=yes
8886else $as_nop
8887  CXXFLAGS=""
8888      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890
8891int
8892main (void)
8893{
8894
8895  ;
8896  return 0;
8897}
8898_ACEOF
8899if ac_fn_cxx_try_compile "$LINENO"
8900then :
8901
8902else $as_nop
8903  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8904	 CXXFLAGS="-g"
8905	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906/* end confdefs.h.  */
8907
8908int
8909main (void)
8910{
8911
8912  ;
8913  return 0;
8914}
8915_ACEOF
8916if ac_fn_cxx_try_compile "$LINENO"
8917then :
8918  ac_cv_prog_cxx_g=yes
8919fi
8920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8921fi
8922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8923fi
8924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8925   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8926fi
8927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8928printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
8929if test $ac_test_CXXFLAGS; then
8930  CXXFLAGS=$ac_save_CXXFLAGS
8931elif test $ac_cv_prog_cxx_g = yes; then
8932  if test "$GXX" = yes; then
8933    CXXFLAGS="-g -O2"
8934  else
8935    CXXFLAGS="-g"
8936  fi
8937else
8938  if test "$GXX" = yes; then
8939    CXXFLAGS="-O2"
8940  else
8941    CXXFLAGS=
8942  fi
8943fi
8944ac_prog_cxx_stdcxx=no
8945if test x$ac_prog_cxx_stdcxx = xno
8946then :
8947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
8948printf %s "checking for $CXX option to enable C++11 features... " >&6; }
8949if test ${ac_cv_prog_cxx_11+y}
8950then :
8951  printf %s "(cached) " >&6
8952else $as_nop
8953  ac_cv_prog_cxx_11=no
8954ac_save_CXX=$CXX
8955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957$ac_cxx_conftest_cxx11_program
8958_ACEOF
8959for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
8960do
8961  CXX="$ac_save_CXX $ac_arg"
8962  if ac_fn_cxx_try_compile "$LINENO"
8963then :
8964  ac_cv_prog_cxx_cxx11=$ac_arg
8965fi
8966rm -f core conftest.err conftest.$ac_objext conftest.beam
8967  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
8968done
8969rm -f conftest.$ac_ext
8970CXX=$ac_save_CXX
8971fi
8972
8973if test "x$ac_cv_prog_cxx_cxx11" = xno
8974then :
8975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8976printf "%s\n" "unsupported" >&6; }
8977else $as_nop
8978  if test "x$ac_cv_prog_cxx_cxx11" = x
8979then :
8980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8981printf "%s\n" "none needed" >&6; }
8982else $as_nop
8983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
8984printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
8985     CXX="$CXX $ac_cv_prog_cxx_cxx11"
8986fi
8987  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
8988  ac_prog_cxx_stdcxx=cxx11
8989fi
8990fi
8991if test x$ac_prog_cxx_stdcxx = xno
8992then :
8993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
8994printf %s "checking for $CXX option to enable C++98 features... " >&6; }
8995if test ${ac_cv_prog_cxx_98+y}
8996then :
8997  printf %s "(cached) " >&6
8998else $as_nop
8999  ac_cv_prog_cxx_98=no
9000ac_save_CXX=$CXX
9001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002/* end confdefs.h.  */
9003$ac_cxx_conftest_cxx98_program
9004_ACEOF
9005for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
9006do
9007  CXX="$ac_save_CXX $ac_arg"
9008  if ac_fn_cxx_try_compile "$LINENO"
9009then :
9010  ac_cv_prog_cxx_cxx98=$ac_arg
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.beam
9013  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
9014done
9015rm -f conftest.$ac_ext
9016CXX=$ac_save_CXX
9017fi
9018
9019if test "x$ac_cv_prog_cxx_cxx98" = xno
9020then :
9021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9022printf "%s\n" "unsupported" >&6; }
9023else $as_nop
9024  if test "x$ac_cv_prog_cxx_cxx98" = x
9025then :
9026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9027printf "%s\n" "none needed" >&6; }
9028else $as_nop
9029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
9030printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
9031     CXX="$CXX $ac_cv_prog_cxx_cxx98"
9032fi
9033  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
9034  ac_prog_cxx_stdcxx=cxx98
9035fi
9036fi
9037
9038ac_ext=cpp
9039ac_cpp='$CXXCPP $CPPFLAGS'
9040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9043
9044depcc="$CXX"  am_compiler_list=
9045
9046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9047printf %s "checking dependency style of $depcc... " >&6; }
9048if test ${am_cv_CXX_dependencies_compiler_type+y}
9049then :
9050  printf %s "(cached) " >&6
9051else $as_nop
9052  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9053  # We make a subdir and do the tests there.  Otherwise we can end up
9054  # making bogus files that we don't know about and never remove.  For
9055  # instance it was reported that on HP-UX the gcc test will end up
9056  # making a dummy file named 'D' -- because '-MD' means "put the output
9057  # in D".
9058  rm -rf conftest.dir
9059  mkdir conftest.dir
9060  # Copy depcomp to subdir because otherwise we won't find it if we're
9061  # using a relative directory.
9062  cp "$am_depcomp" conftest.dir
9063  cd conftest.dir
9064  # We will build objects and dependencies in a subdirectory because
9065  # it helps to detect inapplicable dependency modes.  For instance
9066  # both Tru64's cc and ICC support -MD to output dependencies as a
9067  # side effect of compilation, but ICC will put the dependencies in
9068  # the current directory while Tru64 will put them in the object
9069  # directory.
9070  mkdir sub
9071
9072  am_cv_CXX_dependencies_compiler_type=none
9073  if test "$am_compiler_list" = ""; then
9074     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9075  fi
9076  am__universal=false
9077  case " $depcc " in #(
9078     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9079     esac
9080
9081  for depmode in $am_compiler_list; do
9082    # Setup a source with many dependencies, because some compilers
9083    # like to wrap large dependency lists on column 80 (with \), and
9084    # we should not choose a depcomp mode which is confused by this.
9085    #
9086    # We need to recreate these files for each test, as the compiler may
9087    # overwrite some of them when testing with obscure command lines.
9088    # This happens at least with the AIX C compiler.
9089    : > sub/conftest.c
9090    for i in 1 2 3 4 5 6; do
9091      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9092      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9093      # Solaris 10 /bin/sh.
9094      echo '/* dummy */' > sub/conftst$i.h
9095    done
9096    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9097
9098    # We check with '-c' and '-o' for the sake of the "dashmstdout"
9099    # mode.  It turns out that the SunPro C++ compiler does not properly
9100    # handle '-M -o', and we need to detect this.  Also, some Intel
9101    # versions had trouble with output in subdirs.
9102    am__obj=sub/conftest.${OBJEXT-o}
9103    am__minus_obj="-o $am__obj"
9104    case $depmode in
9105    gcc)
9106      # This depmode causes a compiler race in universal mode.
9107      test "$am__universal" = false || continue
9108      ;;
9109    nosideeffect)
9110      # After this tag, mechanisms are not by side-effect, so they'll
9111      # only be used when explicitly requested.
9112      if test "x$enable_dependency_tracking" = xyes; then
9113	continue
9114      else
9115	break
9116      fi
9117      ;;
9118    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9119      # This compiler won't grok '-c -o', but also, the minuso test has
9120      # not run yet.  These depmodes are late enough in the game, and
9121      # so weak that their functioning should not be impacted.
9122      am__obj=conftest.${OBJEXT-o}
9123      am__minus_obj=
9124      ;;
9125    none) break ;;
9126    esac
9127    if depmode=$depmode \
9128       source=sub/conftest.c object=$am__obj \
9129       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9130       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9131         >/dev/null 2>conftest.err &&
9132       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9133       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9134       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9135       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9136      # icc doesn't choke on unknown options, it will just issue warnings
9137      # or remarks (even with -Werror).  So we grep stderr for any message
9138      # that says an option was ignored or not supported.
9139      # When given -MP, icc 7.0 and 7.1 complain thusly:
9140      #   icc: Command line warning: ignoring option '-M'; no argument required
9141      # The diagnosis changed in icc 8.0:
9142      #   icc: Command line remark: option '-MP' not supported
9143      if (grep 'ignoring option' conftest.err ||
9144          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9145        am_cv_CXX_dependencies_compiler_type=$depmode
9146        break
9147      fi
9148    fi
9149  done
9150
9151  cd ..
9152  rm -rf conftest.dir
9153else
9154  am_cv_CXX_dependencies_compiler_type=none
9155fi
9156
9157fi
9158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9159printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
9160CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9161
9162 if
9163  test "x$enable_dependency_tracking" != xno \
9164  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9165  am__fastdepCXX_TRUE=
9166  am__fastdepCXX_FALSE='#'
9167else
9168  am__fastdepCXX_TRUE='#'
9169  am__fastdepCXX_FALSE=
9170fi
9171
9172
9173
9174CPPFLAGS="$CPPFLAGS -D_ISOC99_SOURCE -D__STDC_LIMIT_MACROS -D_GNU_SOURCE"
9175
9176# Check whether --enable-debug was given.
9177if test ${enable_debug+y}
9178then :
9179  enableval=$enable_debug;
9180fi
9181
9182
9183if test "x$enable_profiling" = xyes
9184then :
9185  CFLAGS=`echo $CFLAGS | sed 's/-O2//g'`
9186       CXXFLAGS=`echo $CXXFLAGS | sed 's/-O2//g'`
9187else $as_nop
9188  enable_debug=no
9189fi
9190
9191
9192
9193
9194if test -n "$ac_tool_prefix"; then
9195  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9196set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198printf %s "checking for $ac_word... " >&6; }
9199if test ${ac_cv_prog_RANLIB+y}
9200then :
9201  printf %s "(cached) " >&6
9202else $as_nop
9203  if test -n "$RANLIB"; then
9204  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9205else
9206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209  IFS=$as_save_IFS
9210  case $as_dir in #(((
9211    '') as_dir=./ ;;
9212    */) ;;
9213    *) as_dir=$as_dir/ ;;
9214  esac
9215    for ac_exec_ext in '' $ac_executable_extensions; do
9216  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9217    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9218    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9219    break 2
9220  fi
9221done
9222  done
9223IFS=$as_save_IFS
9224
9225fi
9226fi
9227RANLIB=$ac_cv_prog_RANLIB
9228if test -n "$RANLIB"; then
9229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9230printf "%s\n" "$RANLIB" >&6; }
9231else
9232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233printf "%s\n" "no" >&6; }
9234fi
9235
9236
9237fi
9238if test -z "$ac_cv_prog_RANLIB"; then
9239  ac_ct_RANLIB=$RANLIB
9240  # Extract the first word of "ranlib", so it can be a program name with args.
9241set dummy ranlib; ac_word=$2
9242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243printf %s "checking for $ac_word... " >&6; }
9244if test ${ac_cv_prog_ac_ct_RANLIB+y}
9245then :
9246  printf %s "(cached) " >&6
9247else $as_nop
9248  if test -n "$ac_ct_RANLIB"; then
9249  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9250else
9251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252for as_dir in $PATH
9253do
9254  IFS=$as_save_IFS
9255  case $as_dir in #(((
9256    '') as_dir=./ ;;
9257    */) ;;
9258    *) as_dir=$as_dir/ ;;
9259  esac
9260    for ac_exec_ext in '' $ac_executable_extensions; do
9261  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9262    ac_cv_prog_ac_ct_RANLIB="ranlib"
9263    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9264    break 2
9265  fi
9266done
9267  done
9268IFS=$as_save_IFS
9269
9270fi
9271fi
9272ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9273if test -n "$ac_ct_RANLIB"; then
9274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9275printf "%s\n" "$ac_ct_RANLIB" >&6; }
9276else
9277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278printf "%s\n" "no" >&6; }
9279fi
9280
9281  if test "x$ac_ct_RANLIB" = x; then
9282    RANLIB=":"
9283  else
9284    case $cross_compiling:$ac_tool_warned in
9285yes:)
9286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9287printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9288ac_tool_warned=yes ;;
9289esac
9290    RANLIB=$ac_ct_RANLIB
9291  fi
9292else
9293  RANLIB="$ac_cv_prog_RANLIB"
9294fi
9295
9296
9297  if test -n "$ac_tool_prefix"; then
9298  for ac_prog in ar lib "link -lib"
9299  do
9300    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303printf %s "checking for $ac_word... " >&6; }
9304if test ${ac_cv_prog_AR+y}
9305then :
9306  printf %s "(cached) " >&6
9307else $as_nop
9308  if test -n "$AR"; then
9309  ac_cv_prog_AR="$AR" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314  IFS=$as_save_IFS
9315  case $as_dir in #(((
9316    '') as_dir=./ ;;
9317    */) ;;
9318    *) as_dir=$as_dir/ ;;
9319  esac
9320    for ac_exec_ext in '' $ac_executable_extensions; do
9321  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9322    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9323    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9324    break 2
9325  fi
9326done
9327  done
9328IFS=$as_save_IFS
9329
9330fi
9331fi
9332AR=$ac_cv_prog_AR
9333if test -n "$AR"; then
9334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9335printf "%s\n" "$AR" >&6; }
9336else
9337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338printf "%s\n" "no" >&6; }
9339fi
9340
9341
9342    test -n "$AR" && break
9343  done
9344fi
9345if test -z "$AR"; then
9346  ac_ct_AR=$AR
9347  for ac_prog in ar lib "link -lib"
9348do
9349  # Extract the first word of "$ac_prog", so it can be a program name with args.
9350set dummy $ac_prog; ac_word=$2
9351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352printf %s "checking for $ac_word... " >&6; }
9353if test ${ac_cv_prog_ac_ct_AR+y}
9354then :
9355  printf %s "(cached) " >&6
9356else $as_nop
9357  if test -n "$ac_ct_AR"; then
9358  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9359else
9360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $PATH
9362do
9363  IFS=$as_save_IFS
9364  case $as_dir in #(((
9365    '') as_dir=./ ;;
9366    */) ;;
9367    *) as_dir=$as_dir/ ;;
9368  esac
9369    for ac_exec_ext in '' $ac_executable_extensions; do
9370  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9371    ac_cv_prog_ac_ct_AR="$ac_prog"
9372    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9373    break 2
9374  fi
9375done
9376  done
9377IFS=$as_save_IFS
9378
9379fi
9380fi
9381ac_ct_AR=$ac_cv_prog_ac_ct_AR
9382if test -n "$ac_ct_AR"; then
9383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9384printf "%s\n" "$ac_ct_AR" >&6; }
9385else
9386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387printf "%s\n" "no" >&6; }
9388fi
9389
9390
9391  test -n "$ac_ct_AR" && break
9392done
9393
9394  if test "x$ac_ct_AR" = x; then
9395    AR="false"
9396  else
9397    case $cross_compiling:$ac_tool_warned in
9398yes:)
9399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9400printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9401ac_tool_warned=yes ;;
9402esac
9403    AR=$ac_ct_AR
9404  fi
9405fi
9406
9407: ${AR=ar}
9408
9409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9410printf %s "checking the archiver ($AR) interface... " >&6; }
9411if test ${am_cv_ar_interface+y}
9412then :
9413  printf %s "(cached) " >&6
9414else $as_nop
9415  ac_ext=c
9416ac_cpp='$CPP $CPPFLAGS'
9417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9419ac_compiler_gnu=$ac_cv_c_compiler_gnu
9420
9421   am_cv_ar_interface=ar
9422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423/* end confdefs.h.  */
9424int some_variable = 0;
9425_ACEOF
9426if ac_fn_c_try_compile "$LINENO"
9427then :
9428  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
9429      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9430  (eval $am_ar_try) 2>&5
9431  ac_status=$?
9432  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9433  test $ac_status = 0; }
9434      if test "$ac_status" -eq 0; then
9435        am_cv_ar_interface=ar
9436      else
9437        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9438        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9439  (eval $am_ar_try) 2>&5
9440  ac_status=$?
9441  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9442  test $ac_status = 0; }
9443        if test "$ac_status" -eq 0; then
9444          am_cv_ar_interface=lib
9445        else
9446          am_cv_ar_interface=unknown
9447        fi
9448      fi
9449      rm -f conftest.lib libconftest.a
9450
9451fi
9452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9453   ac_ext=cpp
9454ac_cpp='$CXXCPP $CPPFLAGS'
9455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9458
9459fi
9460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9461printf "%s\n" "$am_cv_ar_interface" >&6; }
9462
9463case $am_cv_ar_interface in
9464ar)
9465  ;;
9466lib)
9467  # Microsoft lib, so override with the ar-lib wrapper script.
9468  # FIXME: It is wrong to rewrite AR.
9469  # But if we don't then we get into trouble of one sort or another.
9470  # A longer-term fix would be to have automake use am__AR in this case,
9471  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9472  # similar.
9473  AR="$am_aux_dir/ar-lib $AR"
9474  ;;
9475unknown)
9476  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9477  ;;
9478esac
9479
9480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9481printf %s "checking whether ln -s works... " >&6; }
9482LN_S=$as_ln_s
9483if test "$LN_S" = "ln -s"; then
9484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9485printf "%s\n" "yes" >&6; }
9486else
9487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9488printf "%s\n" "no, using $LN_S" >&6; }
9489fi
9490
9491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9492printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9493set x ${MAKE-make}
9494ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9495if eval test \${ac_cv_prog_make_${ac_make}_set+y}
9496then :
9497  printf %s "(cached) " >&6
9498else $as_nop
9499  cat >conftest.make <<\_ACEOF
9500SHELL = /bin/sh
9501all:
9502	@echo '@@@%%%=$(MAKE)=@@@%%%'
9503_ACEOF
9504# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9505case `${MAKE-make} -f conftest.make 2>/dev/null` in
9506  *@@@%%%=?*=@@@%%%*)
9507    eval ac_cv_prog_make_${ac_make}_set=yes;;
9508  *)
9509    eval ac_cv_prog_make_${ac_make}_set=no;;
9510esac
9511rm -f conftest.make
9512fi
9513if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9515printf "%s\n" "yes" >&6; }
9516  SET_MAKE=
9517else
9518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519printf "%s\n" "no" >&6; }
9520  SET_MAKE="MAKE=${MAKE-make}"
9521fi
9522
9523
9524# Extract the first word of "bzip2", so it can be a program name with args.
9525set dummy bzip2; ac_word=$2
9526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527printf %s "checking for $ac_word... " >&6; }
9528if test ${ac_cv_path_BZIP2_CMD+y}
9529then :
9530  printf %s "(cached) " >&6
9531else $as_nop
9532  case $BZIP2_CMD in
9533  [\\/]* | ?:[\\/]*)
9534  ac_cv_path_BZIP2_CMD="$BZIP2_CMD" # Let the user override the test with a path.
9535  ;;
9536  *)
9537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540  IFS=$as_save_IFS
9541  case $as_dir in #(((
9542    '') as_dir=./ ;;
9543    */) ;;
9544    *) as_dir=$as_dir/ ;;
9545  esac
9546    for ac_exec_ext in '' $ac_executable_extensions; do
9547  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9548    ac_cv_path_BZIP2_CMD="$as_dir$ac_word$ac_exec_ext"
9549    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9550    break 2
9551  fi
9552done
9553  done
9554IFS=$as_save_IFS
9555
9556  ;;
9557esac
9558fi
9559BZIP2_CMD=$ac_cv_path_BZIP2_CMD
9560if test -n "$BZIP2_CMD"; then
9561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BZIP2_CMD" >&5
9562printf "%s\n" "$BZIP2_CMD" >&6; }
9563else
9564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565printf "%s\n" "no" >&6; }
9566fi
9567
9568
9569# Extract the first word of "re2c", so it can be a program name with args.
9570set dummy re2c; ac_word=$2
9571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572printf %s "checking for $ac_word... " >&6; }
9573if test ${ac_cv_path_RE2C_CMD+y}
9574then :
9575  printf %s "(cached) " >&6
9576else $as_nop
9577  case $RE2C_CMD in
9578  [\\/]* | ?:[\\/]*)
9579  ac_cv_path_RE2C_CMD="$RE2C_CMD" # Let the user override the test with a path.
9580  ;;
9581  *)
9582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585  IFS=$as_save_IFS
9586  case $as_dir in #(((
9587    '') as_dir=./ ;;
9588    */) ;;
9589    *) as_dir=$as_dir/ ;;
9590  esac
9591    for ac_exec_ext in '' $ac_executable_extensions; do
9592  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9593    ac_cv_path_RE2C_CMD="$as_dir$ac_word$ac_exec_ext"
9594    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9595    break 2
9596  fi
9597done
9598  done
9599IFS=$as_save_IFS
9600
9601  ;;
9602esac
9603fi
9604RE2C_CMD=$ac_cv_path_RE2C_CMD
9605if test -n "$RE2C_CMD"; then
9606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RE2C_CMD" >&5
9607printf "%s\n" "$RE2C_CMD" >&6; }
9608else
9609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610printf "%s\n" "no" >&6; }
9611fi
9612
9613
9614 if test x"$RE2C_CMD" != x""; then
9615  HAVE_RE2C_TRUE=
9616  HAVE_RE2C_FALSE='#'
9617else
9618  HAVE_RE2C_TRUE='#'
9619  HAVE_RE2C_FALSE=
9620fi
9621
9622# Extract the first word of "xz", so it can be a program name with args.
9623set dummy xz; ac_word=$2
9624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625printf %s "checking for $ac_word... " >&6; }
9626if test ${ac_cv_path_XZ_CMD+y}
9627then :
9628  printf %s "(cached) " >&6
9629else $as_nop
9630  case $XZ_CMD in
9631  [\\/]* | ?:[\\/]*)
9632  ac_cv_path_XZ_CMD="$XZ_CMD" # Let the user override the test with a path.
9633  ;;
9634  *)
9635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638  IFS=$as_save_IFS
9639  case $as_dir in #(((
9640    '') as_dir=./ ;;
9641    */) ;;
9642    *) as_dir=$as_dir/ ;;
9643  esac
9644    for ac_exec_ext in '' $ac_executable_extensions; do
9645  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9646    ac_cv_path_XZ_CMD="$as_dir$ac_word$ac_exec_ext"
9647    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9648    break 2
9649  fi
9650done
9651  done
9652IFS=$as_save_IFS
9653
9654  ;;
9655esac
9656fi
9657XZ_CMD=$ac_cv_path_XZ_CMD
9658if test -n "$XZ_CMD"; then
9659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XZ_CMD" >&5
9660printf "%s\n" "$XZ_CMD" >&6; }
9661else
9662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663printf "%s\n" "no" >&6; }
9664fi
9665
9666
9667
9668ac_header= ac_cache=
9669for ac_item in $ac_header_cxx_list
9670do
9671  if test $ac_cache; then
9672    ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9673    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9674      printf "%s\n" "#define $ac_item 1" >> confdefs.h
9675    fi
9676    ac_header= ac_cache=
9677  elif test $ac_header; then
9678    ac_cache=$ac_item
9679  else
9680    ac_header=$ac_item
9681  fi
9682done
9683
9684
9685
9686
9687
9688
9689
9690
9691if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9692then :
9693
9694printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9695
9696fi
9697# The cast to long int works around a bug in the HP C Compiler
9698# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9699# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9700# This bug is HP SR number 8606223364.
9701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
9702printf %s "checking size of off_t... " >&6; }
9703if test ${ac_cv_sizeof_off_t+y}
9704then :
9705  printf %s "(cached) " >&6
9706else $as_nop
9707  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
9708then :
9709
9710else $as_nop
9711  if test "$ac_cv_type_off_t" = yes; then
9712     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9713printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9714as_fn_error 77 "cannot compute sizeof (off_t)
9715See \`config.log' for more details" "$LINENO" 5; }
9716   else
9717     ac_cv_sizeof_off_t=0
9718   fi
9719fi
9720
9721fi
9722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
9723printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
9724
9725
9726
9727printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
9728
9729
9730# The cast to long int works around a bug in the HP C Compiler
9731# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9732# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9733# This bug is HP SR number 8606223364.
9734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9735printf %s "checking size of size_t... " >&6; }
9736if test ${ac_cv_sizeof_size_t+y}
9737then :
9738  printf %s "(cached) " >&6
9739else $as_nop
9740  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"
9741then :
9742
9743else $as_nop
9744  if test "$ac_cv_type_size_t" = yes; then
9745     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9746printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9747as_fn_error 77 "cannot compute sizeof (size_t)
9748See \`config.log' for more details" "$LINENO" 5; }
9749   else
9750     ac_cv_sizeof_size_t=0
9751   fi
9752fi
9753
9754fi
9755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9756printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
9757
9758
9759
9760printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
9761
9762
9763
9764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9765printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9766if test ${ac_cv_struct_tm+y}
9767then :
9768  printf %s "(cached) " >&6
9769else $as_nop
9770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771/* end confdefs.h.  */
9772#include <sys/types.h>
9773#include <time.h>
9774
9775int
9776main (void)
9777{
9778struct tm tm;
9779				     int *p = &tm.tm_sec;
9780				     return !p;
9781  ;
9782  return 0;
9783}
9784_ACEOF
9785if ac_fn_cxx_try_compile "$LINENO"
9786then :
9787  ac_cv_struct_tm=time.h
9788else $as_nop
9789  ac_cv_struct_tm=sys/time.h
9790fi
9791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9792fi
9793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9794printf "%s\n" "$ac_cv_struct_tm" >&6; }
9795if test $ac_cv_struct_tm = sys/time.h; then
9796
9797printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
9798
9799fi
9800
9801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5
9802printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; }
9803if test ${ac_cv_cxx_undeclared_builtin_options+y}
9804then :
9805  printf %s "(cached) " >&6
9806else $as_nop
9807  ac_save_CFLAGS=$CFLAGS
9808   ac_cv_cxx_undeclared_builtin_options='cannot detect'
9809   for ac_arg in '' -fno-builtin; do
9810     CFLAGS="$ac_save_CFLAGS $ac_arg"
9811     # This test program should *not* compile successfully.
9812     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813/* end confdefs.h.  */
9814
9815int
9816main (void)
9817{
9818(void) strchr;
9819  ;
9820  return 0;
9821}
9822_ACEOF
9823if ac_fn_cxx_try_compile "$LINENO"
9824then :
9825
9826else $as_nop
9827  # This test program should compile successfully.
9828        # No library function is consistently available on
9829        # freestanding implementations, so test against a dummy
9830        # declaration.  Include always-available headers on the
9831        # off chance that they somehow elicit warnings.
9832        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834#include <float.h>
9835#include <limits.h>
9836#include <stdarg.h>
9837#include <stddef.h>
9838extern void ac_decl (int, char *);
9839
9840int
9841main (void)
9842{
9843(void) ac_decl (0, (char *) 0);
9844  (void) ac_decl;
9845
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850if ac_fn_cxx_try_compile "$LINENO"
9851then :
9852  if test x"$ac_arg" = x
9853then :
9854  ac_cv_cxx_undeclared_builtin_options='none needed'
9855else $as_nop
9856  ac_cv_cxx_undeclared_builtin_options=$ac_arg
9857fi
9858          break
9859fi
9860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9861fi
9862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9863    done
9864    CFLAGS=$ac_save_CFLAGS
9865
9866fi
9867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5
9868printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; }
9869  case $ac_cv_cxx_undeclared_builtin_options in #(
9870  'cannot detect') :
9871    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9872printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9873as_fn_error $? "cannot make $CXX report undeclared builtins
9874See \`config.log' for more details" "$LINENO" 5; } ;; #(
9875  'none needed') :
9876    ac_cxx_undeclared_builtin_options='' ;; #(
9877  *) :
9878    ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;;
9879esac
9880
9881ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
9882#include <$ac_cv_struct_tm>
9883
9884"
9885if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
9886then :
9887
9888printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
9889
9890
9891fi
9892
9893if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9894
9895printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
9896
9897else
9898  ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
9899" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
9900if test "x$ac_cv_have_decl_tzname" = xyes
9901then :
9902  ac_have_decl=1
9903else $as_nop
9904  ac_have_decl=0
9905fi
9906printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
9907
9908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
9909printf %s "checking for tzname... " >&6; }
9910if test ${ac_cv_var_tzname+y}
9911then :
9912  printf %s "(cached) " >&6
9913else $as_nop
9914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915/* end confdefs.h.  */
9916#include <time.h>
9917#if !HAVE_DECL_TZNAME
9918extern char *tzname[];
9919#endif
9920
9921int
9922main (void)
9923{
9924return tzname[0][0];
9925  ;
9926  return 0;
9927}
9928_ACEOF
9929if ac_fn_cxx_try_link "$LINENO"
9930then :
9931  ac_cv_var_tzname=yes
9932else $as_nop
9933  ac_cv_var_tzname=no
9934fi
9935rm -f core conftest.err conftest.$ac_objext conftest.beam \
9936    conftest$ac_exeext conftest.$ac_ext
9937fi
9938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
9939printf "%s\n" "$ac_cv_var_tzname" >&6; }
9940  if test $ac_cv_var_tzname = yes; then
9941
9942printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
9943
9944  fi
9945fi
9946
9947
9948# Check whether --enable-static was given.
9949if test ${enable_static+y}
9950then :
9951  enableval=$enable_static;
9952fi
9953
9954
9955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9956printf %s "checking for library containing openpty... " >&6; }
9957if test ${ac_cv_search_openpty+y}
9958then :
9959  printf %s "(cached) " >&6
9960else $as_nop
9961  ac_func_search_save_LIBS=$LIBS
9962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963/* end confdefs.h.  */
9964
9965namespace conftest {
9966  extern "C" int openpty ();
9967}
9968int
9969main (void)
9970{
9971return conftest::openpty ();
9972  ;
9973  return 0;
9974}
9975_ACEOF
9976for ac_lib in '' util
9977do
9978  if test -z "$ac_lib"; then
9979    ac_res="none required"
9980  else
9981    ac_res=-l$ac_lib
9982    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9983  fi
9984  if ac_fn_cxx_try_link "$LINENO"
9985then :
9986  ac_cv_search_openpty=$ac_res
9987fi
9988rm -f core conftest.err conftest.$ac_objext conftest.beam \
9989    conftest$ac_exeext
9990  if test ${ac_cv_search_openpty+y}
9991then :
9992  break
9993fi
9994done
9995if test ${ac_cv_search_openpty+y}
9996then :
9997
9998else $as_nop
9999  ac_cv_search_openpty=no
10000fi
10001rm conftest.$ac_ext
10002LIBS=$ac_func_search_save_LIBS
10003fi
10004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
10005printf "%s\n" "$ac_cv_search_openpty" >&6; }
10006ac_res=$ac_cv_search_openpty
10007if test "$ac_res" != no
10008then :
10009  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10010
10011fi
10012
10013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gzseek" >&5
10014printf %s "checking for library containing gzseek... " >&6; }
10015if test ${ac_cv_search_gzseek+y}
10016then :
10017  printf %s "(cached) " >&6
10018else $as_nop
10019  ac_func_search_save_LIBS=$LIBS
10020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h.  */
10022
10023namespace conftest {
10024  extern "C" int gzseek ();
10025}
10026int
10027main (void)
10028{
10029return conftest::gzseek ();
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034for ac_lib in '' z
10035do
10036  if test -z "$ac_lib"; then
10037    ac_res="none required"
10038  else
10039    ac_res=-l$ac_lib
10040    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10041  fi
10042  if ac_fn_cxx_try_link "$LINENO"
10043then :
10044  ac_cv_search_gzseek=$ac_res
10045fi
10046rm -f core conftest.err conftest.$ac_objext conftest.beam \
10047    conftest$ac_exeext
10048  if test ${ac_cv_search_gzseek+y}
10049then :
10050  break
10051fi
10052done
10053if test ${ac_cv_search_gzseek+y}
10054then :
10055
10056else $as_nop
10057  ac_cv_search_gzseek=no
10058fi
10059rm conftest.$ac_ext
10060LIBS=$ac_func_search_save_LIBS
10061fi
10062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzseek" >&5
10063printf "%s\n" "$ac_cv_search_gzseek" >&6; }
10064ac_res=$ac_cv_search_gzseek
10065if test "$ac_res" != no
10066then :
10067  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10068
10069else $as_nop
10070  as_fn_error $? "libz required to build" "$LINENO" 5
10071fi
10072
10073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing BZ2_bzopen" >&5
10074printf %s "checking for library containing BZ2_bzopen... " >&6; }
10075if test ${ac_cv_search_BZ2_bzopen+y}
10076then :
10077  printf %s "(cached) " >&6
10078else $as_nop
10079  ac_func_search_save_LIBS=$LIBS
10080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081/* end confdefs.h.  */
10082
10083namespace conftest {
10084  extern "C" int BZ2_bzopen ();
10085}
10086int
10087main (void)
10088{
10089return conftest::BZ2_bzopen ();
10090  ;
10091  return 0;
10092}
10093_ACEOF
10094for ac_lib in '' bz2
10095do
10096  if test -z "$ac_lib"; then
10097    ac_res="none required"
10098  else
10099    ac_res=-l$ac_lib
10100    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10101  fi
10102  if ac_fn_cxx_try_link "$LINENO"
10103then :
10104  ac_cv_search_BZ2_bzopen=$ac_res
10105fi
10106rm -f core conftest.err conftest.$ac_objext conftest.beam \
10107    conftest$ac_exeext
10108  if test ${ac_cv_search_BZ2_bzopen+y}
10109then :
10110  break
10111fi
10112done
10113if test ${ac_cv_search_BZ2_bzopen+y}
10114then :
10115
10116else $as_nop
10117  ac_cv_search_BZ2_bzopen=no
10118fi
10119rm conftest.$ac_ext
10120LIBS=$ac_func_search_save_LIBS
10121fi
10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_BZ2_bzopen" >&5
10123printf "%s\n" "$ac_cv_search_BZ2_bzopen" >&6; }
10124ac_res=$ac_cv_search_BZ2_bzopen
10125if test "$ac_res" != no
10126then :
10127  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10128  BZIP2_SUPPORT=1
10129else $as_nop
10130  BZIP2_SUPPORT=0
10131fi
10132
10133
10134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10135printf %s "checking for library containing dlopen... " >&6; }
10136if test ${ac_cv_search_dlopen+y}
10137then :
10138  printf %s "(cached) " >&6
10139else $as_nop
10140  ac_func_search_save_LIBS=$LIBS
10141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142/* end confdefs.h.  */
10143
10144namespace conftest {
10145  extern "C" int dlopen ();
10146}
10147int
10148main (void)
10149{
10150return conftest::dlopen ();
10151  ;
10152  return 0;
10153}
10154_ACEOF
10155for ac_lib in '' dl
10156do
10157  if test -z "$ac_lib"; then
10158    ac_res="none required"
10159  else
10160    ac_res=-l$ac_lib
10161    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10162  fi
10163  if ac_fn_cxx_try_link "$LINENO"
10164then :
10165  ac_cv_search_dlopen=$ac_res
10166fi
10167rm -f core conftest.err conftest.$ac_objext conftest.beam \
10168    conftest$ac_exeext
10169  if test ${ac_cv_search_dlopen+y}
10170then :
10171  break
10172fi
10173done
10174if test ${ac_cv_search_dlopen+y}
10175then :
10176
10177else $as_nop
10178  ac_cv_search_dlopen=no
10179fi
10180rm conftest.$ac_ext
10181LIBS=$ac_func_search_save_LIBS
10182fi
10183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10184printf "%s\n" "$ac_cv_search_dlopen" >&6; }
10185ac_res=$ac_cv_search_dlopen
10186if test "$ac_res" != no
10187then :
10188  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10189
10190fi
10191
10192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
10193printf %s "checking for library containing backtrace... " >&6; }
10194if test ${ac_cv_search_backtrace+y}
10195then :
10196  printf %s "(cached) " >&6
10197else $as_nop
10198  ac_func_search_save_LIBS=$LIBS
10199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200/* end confdefs.h.  */
10201
10202namespace conftest {
10203  extern "C" int backtrace ();
10204}
10205int
10206main (void)
10207{
10208return conftest::backtrace ();
10209  ;
10210  return 0;
10211}
10212_ACEOF
10213for ac_lib in '' execinfo
10214do
10215  if test -z "$ac_lib"; then
10216    ac_res="none required"
10217  else
10218    ac_res=-l$ac_lib
10219    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10220  fi
10221  if ac_fn_cxx_try_link "$LINENO"
10222then :
10223  ac_cv_search_backtrace=$ac_res
10224fi
10225rm -f core conftest.err conftest.$ac_objext conftest.beam \
10226    conftest$ac_exeext
10227  if test ${ac_cv_search_backtrace+y}
10228then :
10229  break
10230fi
10231done
10232if test ${ac_cv_search_backtrace+y}
10233then :
10234
10235else $as_nop
10236  ac_cv_search_backtrace=no
10237fi
10238rm conftest.$ac_ext
10239LIBS=$ac_func_search_save_LIBS
10240fi
10241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
10242printf "%s\n" "$ac_cv_search_backtrace" >&6; }
10243ac_res=$ac_cv_search_backtrace
10244if test "$ac_res" != no
10245then :
10246  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10247
10248fi
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275# Check whether --with-libcurl was given.
10276if test ${with_libcurl+y}
10277then :
10278  withval=$with_libcurl; _libcurl_with=$withval
10279else $as_nop
10280  _libcurl_with=yes
10281fi
10282
10283
10284  if test "$_libcurl_with" != "no" ; then
10285
10286     for ac_prog in gawk mawk nawk awk
10287do
10288  # Extract the first word of "$ac_prog", so it can be a program name with args.
10289set dummy $ac_prog; ac_word=$2
10290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291printf %s "checking for $ac_word... " >&6; }
10292if test ${ac_cv_prog_AWK+y}
10293then :
10294  printf %s "(cached) " >&6
10295else $as_nop
10296  if test -n "$AWK"; then
10297  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10298else
10299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302  IFS=$as_save_IFS
10303  case $as_dir in #(((
10304    '') as_dir=./ ;;
10305    */) ;;
10306    *) as_dir=$as_dir/ ;;
10307  esac
10308    for ac_exec_ext in '' $ac_executable_extensions; do
10309  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10310    ac_cv_prog_AWK="$ac_prog"
10311    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10312    break 2
10313  fi
10314done
10315  done
10316IFS=$as_save_IFS
10317
10318fi
10319fi
10320AWK=$ac_cv_prog_AWK
10321if test -n "$AWK"; then
10322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10323printf "%s\n" "$AWK" >&6; }
10324else
10325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326printf "%s\n" "no" >&6; }
10327fi
10328
10329
10330  test -n "$AWK" && break
10331done
10332
10333
10334     _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
10335
10336     _libcurl_try_link=yes
10337
10338     if test -d "$_libcurl_with" ; then
10339        LIBCURL_CPPFLAGS="-I$withval/include"
10340        _libcurl_ldflags="-L$withval/lib"
10341        # Extract the first word of "curl-config", so it can be a program name with args.
10342set dummy curl-config; ac_word=$2
10343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344printf %s "checking for $ac_word... " >&6; }
10345if test ${ac_cv_path__libcurl_config+y}
10346then :
10347  printf %s "(cached) " >&6
10348else $as_nop
10349  case $_libcurl_config in
10350  [\\/]* | ?:[\\/]*)
10351  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
10352  ;;
10353  *)
10354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in "$withval/bin"
10356do
10357  IFS=$as_save_IFS
10358  case $as_dir in #(((
10359    '') as_dir=./ ;;
10360    */) ;;
10361    *) as_dir=$as_dir/ ;;
10362  esac
10363    for ac_exec_ext in '' $ac_executable_extensions; do
10364  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10365    ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
10366    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10367    break 2
10368  fi
10369done
10370  done
10371IFS=$as_save_IFS
10372
10373  ;;
10374esac
10375fi
10376_libcurl_config=$ac_cv_path__libcurl_config
10377if test -n "$_libcurl_config"; then
10378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
10379printf "%s\n" "$_libcurl_config" >&6; }
10380else
10381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382printf "%s\n" "no" >&6; }
10383fi
10384
10385
10386     else
10387        # Extract the first word of "curl-config", so it can be a program name with args.
10388set dummy curl-config; ac_word=$2
10389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390printf %s "checking for $ac_word... " >&6; }
10391if test ${ac_cv_path__libcurl_config+y}
10392then :
10393  printf %s "(cached) " >&6
10394else $as_nop
10395  case $_libcurl_config in
10396  [\\/]* | ?:[\\/]*)
10397  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
10398  ;;
10399  *)
10400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403  IFS=$as_save_IFS
10404  case $as_dir in #(((
10405    '') as_dir=./ ;;
10406    */) ;;
10407    *) as_dir=$as_dir/ ;;
10408  esac
10409    for ac_exec_ext in '' $ac_executable_extensions; do
10410  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10411    ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
10412    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10413    break 2
10414  fi
10415done
10416  done
10417IFS=$as_save_IFS
10418
10419  ;;
10420esac
10421fi
10422_libcurl_config=$ac_cv_path__libcurl_config
10423if test -n "$_libcurl_config"; then
10424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
10425printf "%s\n" "$_libcurl_config" >&6; }
10426else
10427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428printf "%s\n" "no" >&6; }
10429fi
10430
10431
10432     fi
10433
10434     if test x$_libcurl_config != "x" ; then
10435        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
10436printf %s "checking for the version of libcurl... " >&6; }
10437if test ${libcurl_cv_lib_curl_version+y}
10438then :
10439  printf %s "(cached) " >&6
10440else $as_nop
10441  libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
10442fi
10443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
10444printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; }
10445
10446        _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
10447        _libcurl_wanted=`echo 7.23.0 | $_libcurl_version_parse`
10448
10449        if test $_libcurl_wanted -gt 0 ; then
10450           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.23.0" >&5
10451printf %s "checking for libcurl >= version 7.23.0... " >&6; }
10452if test ${libcurl_cv_lib_version_ok+y}
10453then :
10454  printf %s "(cached) " >&6
10455else $as_nop
10456
10457              if test $_libcurl_version -ge $_libcurl_wanted ; then
10458                 libcurl_cv_lib_version_ok=yes
10459              else
10460                 libcurl_cv_lib_version_ok=no
10461              fi
10462
10463fi
10464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
10465printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; }
10466        fi
10467
10468        if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
10469           if test x"$LIBCURL_CPPFLAGS" = "x" ; then
10470              LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
10471           fi
10472           if test x"$LIBCURL" = "x" ; then
10473              LIBCURL=`$_libcurl_config --libs`
10474
10475              # This is so silly, but Apple actually has a bug in their
10476              # curl-config script.  Fixed in Tiger, but there are still
10477              # lots of Panther installs around.
10478              case "${host}" in
10479                 powerpc-apple-darwin7*)
10480                    LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
10481                 ;;
10482              esac
10483           fi
10484
10485           # All curl-config scripts support --feature
10486           _libcurl_features=`$_libcurl_config --feature`
10487
10488           # Is it modern enough to have --protocols? (7.12.4)
10489           if test $_libcurl_version -ge 461828 ; then
10490              _libcurl_protocols=`$_libcurl_config --protocols`
10491           fi
10492        else
10493           _libcurl_try_link=no
10494        fi
10495
10496        unset _libcurl_wanted
10497     fi
10498
10499     if test $_libcurl_try_link = yes ; then
10500
10501        # we didn't find curl-config, so let's see if the user-supplied
10502        # link line (or failing that, "-lcurl") is enough.
10503        LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
10504
10505        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
10506printf %s "checking whether libcurl is usable... " >&6; }
10507if test ${libcurl_cv_lib_curl_usable+y}
10508then :
10509  printf %s "(cached) " >&6
10510else $as_nop
10511
10512           _libcurl_save_cppflags=$CPPFLAGS
10513           CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
10514           _libcurl_save_libs=$LIBS
10515           LIBS="$LIBCURL $LIBS"
10516
10517           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h.  */
10519#include <curl/curl.h>
10520int
10521main (void)
10522{
10523
10524/* Try and use a few common options to force a failure if we are
10525   missing symbols or can't link. */
10526int x;
10527curl_easy_setopt(NULL,CURLOPT_URL,NULL);
10528x=CURL_ERROR_SIZE;
10529x=CURLOPT_WRITEFUNCTION;
10530x=CURLOPT_WRITEDATA;
10531x=CURLOPT_ERRORBUFFER;
10532x=CURLOPT_STDERR;
10533x=CURLOPT_VERBOSE;
10534if (x) {;}
10535
10536  ;
10537  return 0;
10538}
10539_ACEOF
10540if ac_fn_cxx_try_link "$LINENO"
10541then :
10542  libcurl_cv_lib_curl_usable=yes
10543else $as_nop
10544  libcurl_cv_lib_curl_usable=no
10545fi
10546rm -f core conftest.err conftest.$ac_objext conftest.beam \
10547    conftest$ac_exeext conftest.$ac_ext
10548
10549           CPPFLAGS=$_libcurl_save_cppflags
10550           LIBS=$_libcurl_save_libs
10551           unset _libcurl_save_cppflags
10552           unset _libcurl_save_libs
10553
10554fi
10555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
10556printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; }
10557
10558        if test $libcurl_cv_lib_curl_usable = yes ; then
10559
10560           # Does curl_free() exist in this version of libcurl?
10561           # If not, fake it with free()
10562
10563           _libcurl_save_cppflags=$CPPFLAGS
10564           CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
10565           _libcurl_save_libs=$LIBS
10566           LIBS="$LIBS $LIBCURL"
10567
10568           ac_fn_cxx_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
10569if test "x$ac_cv_func_curl_free" = xyes
10570then :
10571
10572else $as_nop
10573
10574printf "%s\n" "#define curl_free free" >>confdefs.h
10575
10576fi
10577
10578
10579           CPPFLAGS=$_libcurl_save_cppflags
10580           LIBS=$_libcurl_save_libs
10581           unset _libcurl_save_cppflags
10582           unset _libcurl_save_libs
10583
10584
10585printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h
10586
10587
10588
10589
10590           for _libcurl_feature in $_libcurl_features ; do
10591              cat >>confdefs.h <<_ACEOF
10592#define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
10593_ACEOF
10594
10595              eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
10596           done
10597
10598           if test "x$_libcurl_protocols" = "x" ; then
10599
10600              # We don't have --protocols, so just assume that all
10601              # protocols are available
10602              _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
10603
10604              if test x$libcurl_feature_SSL = xyes ; then
10605                 _libcurl_protocols="$_libcurl_protocols HTTPS"
10606
10607                 # FTPS wasn't standards-compliant until version
10608                 # 7.11.0 (0x070b00 == 461568)
10609                 if test $_libcurl_version -ge 461568; then
10610                    _libcurl_protocols="$_libcurl_protocols FTPS"
10611                 fi
10612              fi
10613
10614              # RTSP, IMAP, POP3 and SMTP were added in
10615              # 7.20.0 (0x071400 == 463872)
10616              if test $_libcurl_version -ge 463872; then
10617                 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
10618              fi
10619           fi
10620
10621           for _libcurl_protocol in $_libcurl_protocols ; do
10622              cat >>confdefs.h <<_ACEOF
10623#define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
10624_ACEOF
10625
10626              eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
10627           done
10628        else
10629           unset LIBCURL
10630           unset LIBCURL_CPPFLAGS
10631        fi
10632     fi
10633
10634     unset _libcurl_try_link
10635     unset _libcurl_version_parse
10636     unset _libcurl_config
10637     unset _libcurl_feature
10638     unset _libcurl_features
10639     unset _libcurl_protocol
10640     unset _libcurl_protocols
10641     unset _libcurl_version
10642     unset _libcurl_ldflags
10643  fi
10644
10645  if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
10646     # This is the IF-NO path
10647     :
10648  else
10649     # This is the IF-YES path
10650     :
10651  fi
10652
10653  unset _libcurl_with
10654
10655
10656# Sometimes, curses depends on these libraries being linked in...
10657# Check whether --enable-tinfo was given.
10658if test ${enable_tinfo+y}
10659then :
10660  enableval=$enable_tinfo;
10661else $as_nop
10662  enable_tinfo="yes"
10663
10664fi
10665
10666
10667if test "x${enable_tinfo}" != "xno"
10668then :
10669      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Trying to link with tinfo" >&5
10670printf "%s\n" "$as_me: Trying to link with tinfo" >&6;}
10671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
10672printf %s "checking for library containing cur_term... " >&6; }
10673if test ${ac_cv_search_cur_term+y}
10674then :
10675  printf %s "(cached) " >&6
10676else $as_nop
10677  ac_func_search_save_LIBS=$LIBS
10678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679/* end confdefs.h.  */
10680
10681namespace conftest {
10682  extern "C" int cur_term ();
10683}
10684int
10685main (void)
10686{
10687return conftest::cur_term ();
10688  ;
10689  return 0;
10690}
10691_ACEOF
10692for ac_lib in '' tinfow tinfo
10693do
10694  if test -z "$ac_lib"; then
10695    ac_res="none required"
10696  else
10697    ac_res=-l$ac_lib
10698    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10699  fi
10700  if ac_fn_cxx_try_link "$LINENO"
10701then :
10702  ac_cv_search_cur_term=$ac_res
10703fi
10704rm -f core conftest.err conftest.$ac_objext conftest.beam \
10705    conftest$ac_exeext
10706  if test ${ac_cv_search_cur_term+y}
10707then :
10708  break
10709fi
10710done
10711if test ${ac_cv_search_cur_term+y}
10712then :
10713
10714else $as_nop
10715  ac_cv_search_cur_term=no
10716fi
10717rm conftest.$ac_ext
10718LIBS=$ac_func_search_save_LIBS
10719fi
10720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
10721printf "%s\n" "$ac_cv_search_cur_term" >&6; }
10722ac_res=$ac_cv_search_cur_term
10723if test "$ac_res" != no
10724then :
10725  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Linking with tinfo" >&5
10727printf "%s\n" "$as_me: Linking with tinfo" >&6;}
10728else $as_nop
10729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libtinfo not found" >&5
10730printf "%s\n" "$as_me: WARNING: libtinfo not found" >&2;}
10731
10732fi
10733
10734
10735else $as_nop
10736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building with tinfo linking disabled" >&5
10737printf "%s\n" "$as_me: Building with tinfo linking disabled" >&6;}
10738
10739fi
10740
10741case "$host_os" in #(
10742  darwin*) :
10743     ;; #(
10744  *) :
10745    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing Gpm_Open" >&5
10746printf %s "checking for library containing Gpm_Open... " >&6; }
10747if test ${ac_cv_search_Gpm_Open+y}
10748then :
10749  printf %s "(cached) " >&6
10750else $as_nop
10751  ac_func_search_save_LIBS=$LIBS
10752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753/* end confdefs.h.  */
10754
10755namespace conftest {
10756  extern "C" int Gpm_Open ();
10757}
10758int
10759main (void)
10760{
10761return conftest::Gpm_Open ();
10762  ;
10763  return 0;
10764}
10765_ACEOF
10766for ac_lib in '' gpm :libgpm.so.2
10767do
10768  if test -z "$ac_lib"; then
10769    ac_res="none required"
10770  else
10771    ac_res=-l$ac_lib
10772    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10773  fi
10774  if ac_fn_cxx_try_link "$LINENO"
10775then :
10776  ac_cv_search_Gpm_Open=$ac_res
10777fi
10778rm -f core conftest.err conftest.$ac_objext conftest.beam \
10779    conftest$ac_exeext
10780  if test ${ac_cv_search_Gpm_Open+y}
10781then :
10782  break
10783fi
10784done
10785if test ${ac_cv_search_Gpm_Open+y}
10786then :
10787
10788else $as_nop
10789  ac_cv_search_Gpm_Open=no
10790fi
10791rm conftest.$ac_ext
10792LIBS=$ac_func_search_save_LIBS
10793fi
10794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Gpm_Open" >&5
10795printf "%s\n" "$ac_cv_search_Gpm_Open" >&6; }
10796ac_res=$ac_cv_search_Gpm_Open
10797if test "$ac_res" != no
10798then :
10799  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10800  HAVE_GPM="1"
10801else $as_nop
10802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgpm not found. If build fails later consider installing gpm dev package       " >&5
10803printf "%s\n" "$as_me: WARNING: libgpm not found. If build fails later consider installing gpm dev package       " >&2;}
10804
10805fi
10806
10807 ;;
10808esac
10809
10810ac_fn_cxx_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
10811if test "x$ac_cv_header_execinfo_h" = xyes
10812then :
10813  printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
10814
10815fi
10816ac_fn_cxx_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
10817if test "x$ac_cv_header_pty_h" = xyes
10818then :
10819  printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
10820
10821fi
10822ac_fn_cxx_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
10823if test "x$ac_cv_header_util_h" = xyes
10824then :
10825  printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
10826
10827fi
10828ac_fn_cxx_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10829if test "x$ac_cv_header_zlib_h" = xyes
10830then :
10831  printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
10832
10833fi
10834ac_fn_cxx_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
10835if test "x$ac_cv_header_bzlib_h" = xyes
10836then :
10837  printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
10838
10839fi
10840ac_fn_cxx_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
10841if test "x$ac_cv_header_libutil_h" = xyes
10842then :
10843  printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
10844
10845fi
10846ac_fn_cxx_check_header_compile "$LINENO" "sys/ttydefaults.h" "ac_cv_header_sys_ttydefaults_h" "$ac_includes_default"
10847if test "x$ac_cv_header_sys_ttydefaults_h" = xyes
10848then :
10849  printf "%s\n" "#define HAVE_SYS_TTYDEFAULTS_H 1" >>confdefs.h
10850
10851fi
10852
10853
10854# Check whether --enable-simd was given.
10855if test ${enable_simd+y}
10856then :
10857  enableval=$enable_simd;
10858     case "$enable_simd" in #(
10859  no) :
10860    enable_simd="no" ;; #(
10861  yes | "") :
10862    enable_simd="yes" ;; #(
10863  *) :
10864     ;;
10865esac
10866
10867fi
10868
10869
10870if test "x$enable_simd" = "xyes"
10871then :
10872
10873       ac_fn_cxx_check_header_compile "$LINENO" "x86intrin.h" "ac_cv_header_x86intrin_h" "$ac_includes_default"
10874if test "x$ac_cv_header_x86intrin_h" = xyes
10875then :
10876  printf "%s\n" "#define HAVE_X86INTRIN_H 1" >>confdefs.h
10877
10878fi
10879
10880
10881fi
10882
10883
10884
10885# Check whether --with-system_doctest was given.
10886if test ${with_system_doctest+y}
10887then :
10888  withval=$with_system_doctest;
10889fi
10890
10891
10892if test "x$with_system_doctest" = "xyes"
10893then :
10894
10895    ac_fn_cxx_check_header_compile "$LINENO" "doctest/doctest.h" "ac_cv_header_doctest_doctest_h" "$ac_includes_default"
10896if test "x$ac_cv_header_doctest_doctest_h" = xyes
10897then :
10898  printf "%s\n" "#define HAVE_DOCTEST_DOCTEST_H 1" >>confdefs.h
10899
10900fi
10901
10902    if test "x$ac_cv_header_doctest_doctest_h" != "xyes"
10903then :
10904
10905        as_fn_error $? "system doctest not found" "$LINENO" 5
10906fi
10907
10908fi
10909if test "x$with_system_doctest" != "xyes"
10910then :
10911
10912    CPPFLAGS="-I\$(top_srcdir)/src/third-party/doctest-root $CPPFLAGS"
10913
10914fi
10915
10916
10917
10918enable_jemalloc=no
10919
10920# Check whether --with-jemalloc was given.
10921if test ${with_jemalloc+y}
10922then :
10923  withval=$with_jemalloc;
10924    if test "$withval" != "no"; then
10925        enable_jemalloc=yes
10926        modify_env_variables=no
10927        case "$withval" in
10928            yes)
10929                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for jemalloc libs" >&5
10930printf "%s\n" "$as_me: Checking for jemalloc libs" >&6;}
10931                ;;
10932            *)
10933                jemalloc_include="$withval/include"
10934                jemalloc_ldflags="$withval/lib"
10935                modify_env_variables="yes"
10936                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for jemalloc libs in $withval" >&5
10937printf "%s\n" "$as_me: Checking for jemalloc libs in $withval" >&6;}
10938                ;;
10939        esac
10940    fi
10941
10942fi
10943
10944
10945jemalloch=0
10946if test "$enable_jemalloc" != "no"; then
10947    saved_ldflags=$LDFLAGS
10948    saved_cppflags=$CPPFLAGS
10949    saved_libtool_link_flags=$LIBTOOL_LINK_FLAGS
10950    jemalloc_have_headers=0
10951    jemalloc_have_libs=0
10952
10953    if test "$modify_env_variables" != "no"; then
10954
10955  if test "x$CPPFLAGS" = "x"; then
10956    test "x$verbose" = "xyes" && echo "  setting CPPFLAGS to \"-I${jemalloc_include}\""
10957    CPPFLAGS="-I${jemalloc_include}"
10958  else
10959    ats_addto_bugger="-I${jemalloc_include}"
10960    for i in $ats_addto_bugger; do
10961      ats_addto_duplicate="0"
10962      for j in $CPPFLAGS; do
10963        if test "x$i" = "x$j"; then
10964          ats_addto_duplicate="1"
10965          break
10966        fi
10967      done
10968      if test $ats_addto_duplicate = "0"; then
10969        test "x$verbose" = "xyes" && echo "  adding \"$i\" to CPPFLAGS"
10970        CPPFLAGS="$CPPFLAGS $i"
10971      fi
10972    done
10973  fi
10974
10975
10976  if test "x$LDFLAGS" = "x"; then
10977    test "x$verbose" = "xyes" && echo "  setting LDFLAGS to \"-L${jemalloc_ldflags}\""
10978    LDFLAGS="-L${jemalloc_ldflags}"
10979  else
10980    ats_addto_bugger="-L${jemalloc_ldflags}"
10981    for i in $ats_addto_bugger; do
10982      ats_addto_duplicate="0"
10983      for j in $LDFLAGS; do
10984        if test "x$i" = "x$j"; then
10985          ats_addto_duplicate="1"
10986          break
10987        fi
10988      done
10989      if test $ats_addto_duplicate = "0"; then
10990        test "x$verbose" = "xyes" && echo "  adding \"$i\" to LDFLAGS"
10991        LDFLAGS="$LDFLAGS $i"
10992      fi
10993    done
10994  fi
10995
10996
10997  if test "x$LIBTOOL_LINK_FLAGS" = "x"; then
10998    test "x$verbose" = "xyes" && echo "  setting LIBTOOL_LINK_FLAGS to \"-R${jemalloc_ldflags}\""
10999    LIBTOOL_LINK_FLAGS="-R${jemalloc_ldflags}"
11000  else
11001    ats_addto_bugger="-R${jemalloc_ldflags}"
11002    for i in $ats_addto_bugger; do
11003      ats_addto_duplicate="0"
11004      for j in $LIBTOOL_LINK_FLAGS; do
11005        if test "x$i" = "x$j"; then
11006          ats_addto_duplicate="1"
11007          break
11008        fi
11009      done
11010      if test $ats_addto_duplicate = "0"; then
11011        test "x$verbose" = "xyes" && echo "  adding \"$i\" to LIBTOOL_LINK_FLAGS"
11012        LIBTOOL_LINK_FLAGS="$LIBTOOL_LINK_FLAGS $i"
11013      fi
11014    done
11015  fi
11016
11017    fi
11018    # On Darwin, jemalloc symbols are prefixed with je_. Search for that first,
11019    # then fall back to unadorned symbols.
11020    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing je_malloc_stats_print" >&5
11021printf %s "checking for library containing je_malloc_stats_print... " >&6; }
11022if test ${ac_cv_search_je_malloc_stats_print+y}
11023then :
11024  printf %s "(cached) " >&6
11025else $as_nop
11026  ac_func_search_save_LIBS=$LIBS
11027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028/* end confdefs.h.  */
11029
11030namespace conftest {
11031  extern "C" int je_malloc_stats_print ();
11032}
11033int
11034main (void)
11035{
11036return conftest::je_malloc_stats_print ();
11037  ;
11038  return 0;
11039}
11040_ACEOF
11041for ac_lib in '' jemalloc
11042do
11043  if test -z "$ac_lib"; then
11044    ac_res="none required"
11045  else
11046    ac_res=-l$ac_lib
11047    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11048  fi
11049  if ac_fn_cxx_try_link "$LINENO"
11050then :
11051  ac_cv_search_je_malloc_stats_print=$ac_res
11052fi
11053rm -f core conftest.err conftest.$ac_objext conftest.beam \
11054    conftest$ac_exeext
11055  if test ${ac_cv_search_je_malloc_stats_print+y}
11056then :
11057  break
11058fi
11059done
11060if test ${ac_cv_search_je_malloc_stats_print+y}
11061then :
11062
11063else $as_nop
11064  ac_cv_search_je_malloc_stats_print=no
11065fi
11066rm conftest.$ac_ext
11067LIBS=$ac_func_search_save_LIBS
11068fi
11069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_je_malloc_stats_print" >&5
11070printf "%s\n" "$ac_cv_search_je_malloc_stats_print" >&6; }
11071ac_res=$ac_cv_search_je_malloc_stats_print
11072if test "$ac_res" != no
11073then :
11074  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11075  jemalloc_have_libs=1
11076else $as_nop
11077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing malloc_stats_print" >&5
11078printf %s "checking for library containing malloc_stats_print... " >&6; }
11079if test ${ac_cv_search_malloc_stats_print+y}
11080then :
11081  printf %s "(cached) " >&6
11082else $as_nop
11083  ac_func_search_save_LIBS=$LIBS
11084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085/* end confdefs.h.  */
11086
11087namespace conftest {
11088  extern "C" int malloc_stats_print ();
11089}
11090int
11091main (void)
11092{
11093return conftest::malloc_stats_print ();
11094  ;
11095  return 0;
11096}
11097_ACEOF
11098for ac_lib in '' jemalloc
11099do
11100  if test -z "$ac_lib"; then
11101    ac_res="none required"
11102  else
11103    ac_res=-l$ac_lib
11104    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11105  fi
11106  if ac_fn_cxx_try_link "$LINENO"
11107then :
11108  ac_cv_search_malloc_stats_print=$ac_res
11109fi
11110rm -f core conftest.err conftest.$ac_objext conftest.beam \
11111    conftest$ac_exeext
11112  if test ${ac_cv_search_malloc_stats_print+y}
11113then :
11114  break
11115fi
11116done
11117if test ${ac_cv_search_malloc_stats_print+y}
11118then :
11119
11120else $as_nop
11121  ac_cv_search_malloc_stats_print=no
11122fi
11123rm conftest.$ac_ext
11124LIBS=$ac_func_search_save_LIBS
11125fi
11126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc_stats_print" >&5
11127printf "%s\n" "$ac_cv_search_malloc_stats_print" >&6; }
11128ac_res=$ac_cv_search_malloc_stats_print
11129if test "$ac_res" != no
11130then :
11131  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11132  jemalloc_have_libs=1
11133fi
11134
11135
11136fi
11137
11138    if test "$jemalloc_have_libs" != "0"; then
11139        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for jemalloc includes" >&5
11140printf "%s\n" "$as_me: Checking for jemalloc includes" >&6;}
11141               for ac_header in jemalloc/jemalloc.h
11142do :
11143  ac_fn_cxx_check_header_compile "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
11144if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes
11145then :
11146  printf "%s\n" "#define HAVE_JEMALLOC_JEMALLOC_H 1" >>confdefs.h
11147 jemalloc_have_headers=1
11148fi
11149
11150done
11151        if test "$jemalloc_have_headers" != "0"; then
11152            jemalloch=1
11153
11154  if test "x$LIBS" = "x"; then
11155    test "x$verbose" = "xyes" && echo "  setting LIBS to \"-ljemalloc\""
11156    LIBS="-ljemalloc"
11157  else
11158    ats_addto_bugger="-ljemalloc"
11159    for i in $ats_addto_bugger; do
11160      ats_addto_duplicate="0"
11161      for j in $LIBS; do
11162        if test "x$i" = "x$j"; then
11163          ats_addto_duplicate="1"
11164          break
11165        fi
11166      done
11167      if test $ats_addto_duplicate = "0"; then
11168        test "x$verbose" = "xyes" && echo "  adding \"$i\" to LIBS"
11169        LIBS="$LIBS $i"
11170      fi
11171    done
11172  fi
11173
11174        else
11175            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: jemalloc headers not found" >&5
11176printf "%s\n" "$as_me: WARNING: jemalloc headers not found" >&2;}
11177        fi
11178    else
11179        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: jemalloc libs not found" >&5
11180printf "%s\n" "$as_me: WARNING: jemalloc libs not found" >&2;}
11181    fi
11182    if test "$jemalloc_have_libs" = "0"; then
11183        CPPFLAGS=$saved_cppflags
11184        LDFLAGS=$saved_ldflags
11185        LIBTOOL_LINK_FLAGS=$saved_libtool_link_flags
11186        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: jemalloc not found" >&5
11187printf "%s\n" "$as_me: WARNING: jemalloc not found" >&2;}
11188    fi
11189fi
11190
11191
11192
11193
11194
11195# Check whether --with-yajl was given.
11196if test ${with_yajl+y}
11197then :
11198  withval=$with_yajl;
11199        if test "$withval" != "no"
11200then :
11201
11202            case "$withval" in #(
11203  yes) :
11204    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for yajl libs" >&5
11205printf "%s\n" "$as_me: Checking for yajl libs" >&6;} ;; #(
11206  *) :
11207
11208                yajl_saved_ldflags="$LDFLAGS"
11209                yajl_saved_cppflags="$CPPFLAGS"
11210                yajl_saved_libtool_link_flags="$LIBTOOL_LIBK_FLAGS"
11211
11212
11213
11214  if test "x$CPPFLAGS" = "x"; then
11215    test "x$verbose" = "xyes" && echo "  setting CPPFLAGS to \"-I$withval/include\""
11216    CPPFLAGS="-I$withval/include"
11217  else
11218    ats_addto_bugger="-I$withval/include"
11219    for i in $ats_addto_bugger; do
11220      ats_addto_duplicate="0"
11221      for j in $CPPFLAGS; do
11222        if test "x$i" = "x$j"; then
11223          ats_addto_duplicate="1"
11224          break
11225        fi
11226      done
11227      if test $ats_addto_duplicate = "0"; then
11228        test "x$verbose" = "xyes" && echo "  adding \"$i\" to CPPFLAGS"
11229        CPPFLAGS="$CPPFLAGS $i"
11230      fi
11231    done
11232  fi
11233
11234
11235  if test "x$LDFLAGS" = "x"; then
11236    test "x$verbose" = "xyes" && echo "  setting LDFLAGS to \"-I$withval/lib\""
11237    LDFLAGS="-I$withval/lib"
11238  else
11239    ats_addto_bugger="-I$withval/lib"
11240    for i in $ats_addto_bugger; do
11241      ats_addto_duplicate="0"
11242      for j in $LDFLAGS; do
11243        if test "x$i" = "x$j"; then
11244          ats_addto_duplicate="1"
11245          break
11246        fi
11247      done
11248      if test $ats_addto_duplicate = "0"; then
11249        test "x$verbose" = "xyes" && echo "  adding \"$i\" to LDFLAGS"
11250        LDFLAGS="$LDFLAGS $i"
11251      fi
11252    done
11253  fi
11254
11255
11256  if test "x$LIBTOOL_LINK_FLAGS" = "x"; then
11257    test "x$verbose" = "xyes" && echo "  setting LIBTOOL_LINK_FLAGS to \"-R$withval/lib\""
11258    LIBTOOL_LINK_FLAGS="-R$withval/lib"
11259  else
11260    ats_addto_bugger="-R$withval/lib"
11261    for i in $ats_addto_bugger; do
11262      ats_addto_duplicate="0"
11263      for j in $LIBTOOL_LINK_FLAGS; do
11264        if test "x$i" = "x$j"; then
11265          ats_addto_duplicate="1"
11266          break
11267        fi
11268      done
11269      if test $ats_addto_duplicate = "0"; then
11270        test "x$verbose" = "xyes" && echo "  adding \"$i\" to LIBTOOL_LINK_FLAGS"
11271        LIBTOOL_LINK_FLAGS="$LIBTOOL_LINK_FLAGS $i"
11272      fi
11273    done
11274  fi
11275
11276
11277                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for yajl libs in $withval" >&5
11278printf "%s\n" "$as_me: Checking for yajl libs in $withval" >&6;}
11279
11280             ;;
11281esac
11282
11283            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yajl_gen_alloc" >&5
11284printf %s "checking for library containing yajl_gen_alloc... " >&6; }
11285if test ${ac_cv_search_yajl_gen_alloc+y}
11286then :
11287  printf %s "(cached) " >&6
11288else $as_nop
11289  ac_func_search_save_LIBS=$LIBS
11290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291/* end confdefs.h.  */
11292
11293namespace conftest {
11294  extern "C" int yajl_gen_alloc ();
11295}
11296int
11297main (void)
11298{
11299return conftest::yajl_gen_alloc ();
11300  ;
11301  return 0;
11302}
11303_ACEOF
11304for ac_lib in '' yajl
11305do
11306  if test -z "$ac_lib"; then
11307    ac_res="none required"
11308  else
11309    ac_res=-l$ac_lib
11310    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11311  fi
11312  if ac_fn_cxx_try_link "$LINENO"
11313then :
11314  ac_cv_search_yajl_gen_alloc=$ac_res
11315fi
11316rm -f core conftest.err conftest.$ac_objext conftest.beam \
11317    conftest$ac_exeext
11318  if test ${ac_cv_search_yajl_gen_alloc+y}
11319then :
11320  break
11321fi
11322done
11323if test ${ac_cv_search_yajl_gen_alloc+y}
11324then :
11325
11326else $as_nop
11327  ac_cv_search_yajl_gen_alloc=no
11328fi
11329rm conftest.$ac_ext
11330LIBS=$ac_func_search_save_LIBS
11331fi
11332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yajl_gen_alloc" >&5
11333printf "%s\n" "$ac_cv_search_yajl_gen_alloc" >&6; }
11334ac_res=$ac_cv_search_yajl_gen_alloc
11335if test "$ac_res" != no
11336then :
11337  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11338
11339                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for yajl headers" >&5
11340printf "%s\n" "$as_me: Checking for yajl headers" >&6;}
11341                       for ac_header in yajl/yajl_parse.h
11342do :
11343  ac_fn_cxx_check_header_compile "$LINENO" "yajl/yajl_parse.h" "ac_cv_header_yajl_yajl_parse_h" "$ac_includes_default"
11344if test "x$ac_cv_header_yajl_yajl_parse_h" = xyes
11345then :
11346  printf "%s\n" "#define HAVE_YAJL_YAJL_PARSE_H 1" >>confdefs.h
11347 HAVE_LOCAL_YAJL=1
11348else $as_nop
11349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: yajl not found on the local system" >&5
11350printf "%s\n" "$as_me: WARNING: yajl not found on the local system" >&2;}
11351
11352fi
11353
11354done
11355
11356
11357fi
11358
11359
11360
11361fi
11362
11363
11364fi
11365
11366
11367    if test ${HAVE_LOCAL_YAJL+y}
11368then :
11369
11370else $as_nop
11371
11372        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiling with the included version of yajl" >&5
11373printf "%s\n" "$as_me: compiling with the included version of yajl" >&6;}
11374        HAVE_LOCAL_YAJL=0
11375        if test ${yajl_saved_ldflags+y}
11376then :
11377
11378            CPPFLAGS="$yajl_saved_cppflags"
11379            LDFLAGS="$yajl_saved_ldflags"
11380            LIBTOOL_LIBK_FLAGS="$yajl_saved_libtool_link_flags"
11381
11382
11383fi
11384
11385
11386fi
11387
11388
11389
11390
11391
11392
11393
11394
11395# Check whether --with-ncurses was given.
11396if test ${with_ncurses+y}
11397then :
11398  withval=$with_ncurses;
11399else $as_nop
11400  with_ncurses=check
11401fi
11402
11403
11404# Check whether --with-ncursesw was given.
11405if test ${with_ncursesw+y}
11406then :
11407  withval=$with_ncursesw;
11408else $as_nop
11409  with_ncursesw=check
11410fi
11411
11412
11413    ax_saved_LIBS=$LIBS
11414    if test "x$with_ncurses" = xyes || test "x$with_ncursesw" = xyes
11415then :
11416  ax_with_plaincurses=no
11417else $as_nop
11418  ax_with_plaincurses=check
11419fi
11420
11421    ax_cv_curses_which=no
11422
11423    # Test for NcursesW
11424
11425    if test "x$CURSES_LIB" = x && test "x$with_ncursesw" != xno
11426then :
11427
11428        LIBS="$ax_saved_LIBS -lncursesw"
11429
11430        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NcursesW wide-character library" >&5
11431printf %s "checking for NcursesW wide-character library... " >&6; }
11432if test ${ax_cv_ncursesw+y}
11433then :
11434  printf %s "(cached) " >&6
11435else $as_nop
11436
11437            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h.  */
11439
11440namespace conftest {
11441  extern "C" int initscr ();
11442}
11443int
11444main (void)
11445{
11446return conftest::initscr ();
11447  ;
11448  return 0;
11449}
11450_ACEOF
11451if ac_fn_cxx_try_link "$LINENO"
11452then :
11453  ax_cv_ncursesw=yes
11454else $as_nop
11455  ax_cv_ncursesw=no
11456fi
11457rm -f core conftest.err conftest.$ac_objext conftest.beam \
11458    conftest$ac_exeext conftest.$ac_ext
11459
11460fi
11461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncursesw" >&5
11462printf "%s\n" "$ax_cv_ncursesw" >&6; }
11463        if test "x$ax_cv_ncursesw" = xno && test "x$with_ncursesw" = xyes
11464then :
11465
11466            as_fn_error $? "--with-ncursesw specified but could not find NcursesW library" "$LINENO" 5
11467
11468fi
11469
11470        if test "x$ax_cv_ncursesw" = xyes
11471then :
11472
11473            ax_cv_curses=yes
11474            ax_cv_curses_which=ncursesw
11475            CURSES_LIB="-lncursesw"
11476
11477printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
11478
11479
11480printf "%s\n" "#define HAVE_CURSES 1" >>confdefs.h
11481
11482
11483            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncursesw/curses.h" >&5
11484printf %s "checking for working ncursesw/curses.h... " >&6; }
11485if test ${ax_cv_header_ncursesw_curses_h+y}
11486then :
11487  printf %s "(cached) " >&6
11488else $as_nop
11489
11490                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491/* end confdefs.h.  */
11492
11493                        #define _XOPEN_SOURCE_EXTENDED 1
11494                        #include <ncursesw/curses.h>
11495
11496int
11497main (void)
11498{
11499
11500                        chtype a = A_BOLD;
11501                        int b = KEY_LEFT;
11502                        chtype c = COLOR_PAIR(1) & A_COLOR;
11503                        attr_t d = WA_NORMAL;
11504                        cchar_t e;
11505                        wint_t f;
11506                        int g = getattrs(stdscr);
11507                        int h = getcurx(stdscr) + getmaxx(stdscr);
11508                        initscr();
11509                        init_pair(1, COLOR_WHITE, COLOR_RED);
11510                        wattr_set(stdscr, d, 0, NULL);
11511                        wget_wch(stdscr, &f);
11512
11513  ;
11514  return 0;
11515}
11516_ACEOF
11517if ac_fn_cxx_try_link "$LINENO"
11518then :
11519  ax_cv_header_ncursesw_curses_h=yes
11520else $as_nop
11521  ax_cv_header_ncursesw_curses_h=no
11522fi
11523rm -f core conftest.err conftest.$ac_objext conftest.beam \
11524    conftest$ac_exeext conftest.$ac_ext
11525
11526fi
11527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_curses_h" >&5
11528printf "%s\n" "$ax_cv_header_ncursesw_curses_h" >&6; }
11529            if test "x$ax_cv_header_ncursesw_curses_h" = xyes
11530then :
11531
11532                ax_cv_curses_enhanced=yes
11533                ax_cv_curses_color=yes
11534                ax_cv_curses_obsolete=yes
11535
11536printf "%s\n" "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
11537
11538
11539printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
11540
11541
11542printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
11543
11544
11545printf "%s\n" "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h
11546
11547
11548fi
11549
11550            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncursesw.h" >&5
11551printf %s "checking for working ncursesw.h... " >&6; }
11552if test ${ax_cv_header_ncursesw_h+y}
11553then :
11554  printf %s "(cached) " >&6
11555else $as_nop
11556
11557                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558/* end confdefs.h.  */
11559
11560                        #define _XOPEN_SOURCE_EXTENDED 1
11561                        #include <ncursesw.h>
11562
11563int
11564main (void)
11565{
11566
11567                        chtype a = A_BOLD;
11568                        int b = KEY_LEFT;
11569                        chtype c = COLOR_PAIR(1) & A_COLOR;
11570                        attr_t d = WA_NORMAL;
11571                        cchar_t e;
11572                        wint_t f;
11573                        int g = getattrs(stdscr);
11574                        int h = getcurx(stdscr) + getmaxx(stdscr);
11575                        initscr();
11576                        init_pair(1, COLOR_WHITE, COLOR_RED);
11577                        wattr_set(stdscr, d, 0, NULL);
11578                        wget_wch(stdscr, &f);
11579
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584if ac_fn_cxx_try_link "$LINENO"
11585then :
11586  ax_cv_header_ncursesw_h=yes
11587else $as_nop
11588  ax_cv_header_ncursesw_h=no
11589fi
11590rm -f core conftest.err conftest.$ac_objext conftest.beam \
11591    conftest$ac_exeext conftest.$ac_ext
11592
11593fi
11594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_h" >&5
11595printf "%s\n" "$ax_cv_header_ncursesw_h" >&6; }
11596            if test "x$ax_cv_header_ncursesw_h" = xyes
11597then :
11598
11599                ax_cv_curses_enhanced=yes
11600                ax_cv_curses_color=yes
11601                ax_cv_curses_obsolete=yes
11602
11603printf "%s\n" "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
11604
11605
11606printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
11607
11608
11609printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
11610
11611
11612printf "%s\n" "#define HAVE_NCURSESW_H 1" >>confdefs.h
11613
11614
11615fi
11616
11617            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5
11618printf %s "checking for working ncurses.h... " >&6; }
11619if test ${ax_cv_header_ncurses_h_with_ncursesw+y}
11620then :
11621  printf %s "(cached) " >&6
11622else $as_nop
11623
11624                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625/* end confdefs.h.  */
11626
11627                        #define _XOPEN_SOURCE_EXTENDED 1
11628                        #include <ncurses.h>
11629
11630int
11631main (void)
11632{
11633
11634                        chtype a = A_BOLD;
11635                        int b = KEY_LEFT;
11636                        chtype c = COLOR_PAIR(1) & A_COLOR;
11637                        attr_t d = WA_NORMAL;
11638                        cchar_t e;
11639                        wint_t f;
11640                        int g = getattrs(stdscr);
11641                        int h = getcurx(stdscr) + getmaxx(stdscr);
11642                        initscr();
11643                        init_pair(1, COLOR_WHITE, COLOR_RED);
11644                        wattr_set(stdscr, d, 0, NULL);
11645                        wget_wch(stdscr, &f);
11646
11647  ;
11648  return 0;
11649}
11650_ACEOF
11651if ac_fn_cxx_try_link "$LINENO"
11652then :
11653  ax_cv_header_ncurses_h_with_ncursesw=yes
11654else $as_nop
11655  ax_cv_header_ncurses_h_with_ncursesw=no
11656fi
11657rm -f core conftest.err conftest.$ac_objext conftest.beam \
11658    conftest$ac_exeext conftest.$ac_ext
11659
11660fi
11661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h_with_ncursesw" >&5
11662printf "%s\n" "$ax_cv_header_ncurses_h_with_ncursesw" >&6; }
11663            if test "x$ax_cv_header_ncurses_h_with_ncursesw" = xyes
11664then :
11665
11666                ax_cv_curses_enhanced=yes
11667                ax_cv_curses_color=yes
11668                ax_cv_curses_obsolete=yes
11669
11670printf "%s\n" "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
11671
11672
11673printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
11674
11675
11676printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
11677
11678
11679printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
11680
11681
11682fi
11683
11684            if test "x$ax_cv_header_ncursesw_curses_h" = xno && test "x$ax_cv_header_ncursesw_h" = xno && test "x$ax_cv_header_ncurses_h_with_ncursesw" = xno
11685then :
11686
11687                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&5
11688printf "%s\n" "$as_me: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&2;}
11689
11690fi
11691
11692fi
11693
11694fi
11695
11696    # Test for Ncurses
11697
11698    if test "x$CURSES_LIB" = x && test "x$with_ncurses" != xno && test "x$ax_cv_curses_which" = xno
11699then :
11700
11701        LIBS="$ax_saved_LIBS -lncurses"
11702
11703        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ncurses library" >&5
11704printf %s "checking for Ncurses library... " >&6; }
11705if test ${ax_cv_ncurses+y}
11706then :
11707  printf %s "(cached) " >&6
11708else $as_nop
11709
11710            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711/* end confdefs.h.  */
11712
11713namespace conftest {
11714  extern "C" int initscr ();
11715}
11716int
11717main (void)
11718{
11719return conftest::initscr ();
11720  ;
11721  return 0;
11722}
11723_ACEOF
11724if ac_fn_cxx_try_link "$LINENO"
11725then :
11726  ax_cv_ncurses=yes
11727else $as_nop
11728  ax_cv_ncurses=no
11729fi
11730rm -f core conftest.err conftest.$ac_objext conftest.beam \
11731    conftest$ac_exeext conftest.$ac_ext
11732
11733fi
11734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncurses" >&5
11735printf "%s\n" "$ax_cv_ncurses" >&6; }
11736        if test "x$ax_cv_ncurses" = xno && test "x$with_ncurses" = xyes
11737then :
11738
11739            as_fn_error $? "--with-ncurses specified but could not find Ncurses library" "$LINENO" 5
11740
11741fi
11742
11743        if test "x$ax_cv_ncurses" = xyes
11744then :
11745
11746            ax_cv_curses=yes
11747            ax_cv_curses_which=ncurses
11748            CURSES_LIB="-lncurses"
11749
11750printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
11751
11752
11753printf "%s\n" "#define HAVE_CURSES 1" >>confdefs.h
11754
11755
11756            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncurses/curses.h" >&5
11757printf %s "checking for working ncurses/curses.h... " >&6; }
11758if test ${ax_cv_header_ncurses_curses_h+y}
11759then :
11760  printf %s "(cached) " >&6
11761else $as_nop
11762
11763                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764/* end confdefs.h.  */
11765
11766                        #include <ncurses/curses.h>
11767
11768int
11769main (void)
11770{
11771
11772                        chtype a = A_BOLD;
11773                        int b = KEY_LEFT;
11774                        chtype c = COLOR_PAIR(1) & A_COLOR;
11775                        int g = getattrs(stdscr);
11776                        int h = getcurx(stdscr) + getmaxx(stdscr);
11777                        initscr();
11778                        init_pair(1, COLOR_WHITE, COLOR_RED);
11779
11780  ;
11781  return 0;
11782}
11783_ACEOF
11784if ac_fn_cxx_try_link "$LINENO"
11785then :
11786  ax_cv_header_ncurses_curses_h=yes
11787else $as_nop
11788  ax_cv_header_ncurses_curses_h=no
11789fi
11790rm -f core conftest.err conftest.$ac_objext conftest.beam \
11791    conftest$ac_exeext conftest.$ac_ext
11792
11793fi
11794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_curses_h" >&5
11795printf "%s\n" "$ax_cv_header_ncurses_curses_h" >&6; }
11796            if test "x$ax_cv_header_ncurses_curses_h" = xyes
11797then :
11798
11799                ax_cv_curses_color=yes
11800                ax_cv_curses_obsolete=yes
11801
11802printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
11803
11804
11805printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
11806
11807
11808printf "%s\n" "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
11809
11810
11811fi
11812
11813            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5
11814printf %s "checking for working ncurses.h... " >&6; }
11815if test ${ax_cv_header_ncurses_h+y}
11816then :
11817  printf %s "(cached) " >&6
11818else $as_nop
11819
11820                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821/* end confdefs.h.  */
11822
11823                        #include <ncurses.h>
11824
11825int
11826main (void)
11827{
11828
11829                        chtype a = A_BOLD;
11830                        int b = KEY_LEFT;
11831                        chtype c = COLOR_PAIR(1) & A_COLOR;
11832                        int g = getattrs(stdscr);
11833                        int h = getcurx(stdscr) + getmaxx(stdscr);
11834                        initscr();
11835                        init_pair(1, COLOR_WHITE, COLOR_RED);
11836
11837  ;
11838  return 0;
11839}
11840_ACEOF
11841if ac_fn_cxx_try_link "$LINENO"
11842then :
11843  ax_cv_header_ncurses_h=yes
11844else $as_nop
11845  ax_cv_header_ncurses_h=no
11846fi
11847rm -f core conftest.err conftest.$ac_objext conftest.beam \
11848    conftest$ac_exeext conftest.$ac_ext
11849
11850fi
11851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h" >&5
11852printf "%s\n" "$ax_cv_header_ncurses_h" >&6; }
11853            if test "x$ax_cv_header_ncurses_h" = xyes
11854then :
11855
11856                ax_cv_curses_color=yes
11857                ax_cv_curses_obsolete=yes
11858
11859printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
11860
11861
11862printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
11863
11864
11865printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
11866
11867
11868fi
11869
11870            if test "x$ax_cv_header_ncurses_curses_h" = xno && test "x$ax_cv_header_ncurses_h" = xno
11871then :
11872
11873                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&5
11874printf "%s\n" "$as_me: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&2;}
11875
11876fi
11877
11878fi
11879
11880fi
11881
11882    # Test for plain Curses (or if CURSES_LIB was set by user)
11883
11884    if test "x$with_plaincurses" != xno && test "x$ax_cv_curses_which" = xno
11885then :
11886
11887        if test "x$CURSES_LIB" != x
11888then :
11889
11890            LIBS="$ax_saved_LIBS $CURSES_LIB"
11891
11892else $as_nop
11893
11894            LIBS="$ax_saved_LIBS -lcurses"
11895
11896fi
11897
11898        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses library" >&5
11899printf %s "checking for Curses library... " >&6; }
11900if test ${ax_cv_plaincurses+y}
11901then :
11902  printf %s "(cached) " >&6
11903else $as_nop
11904
11905            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906/* end confdefs.h.  */
11907
11908namespace conftest {
11909  extern "C" int initscr ();
11910}
11911int
11912main (void)
11913{
11914return conftest::initscr ();
11915  ;
11916  return 0;
11917}
11918_ACEOF
11919if ac_fn_cxx_try_link "$LINENO"
11920then :
11921  ax_cv_plaincurses=yes
11922else $as_nop
11923  ax_cv_plaincurses=no
11924fi
11925rm -f core conftest.err conftest.$ac_objext conftest.beam \
11926    conftest$ac_exeext conftest.$ac_ext
11927
11928fi
11929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses" >&5
11930printf "%s\n" "$ax_cv_plaincurses" >&6; }
11931
11932        if test "x$ax_cv_plaincurses" = xyes
11933then :
11934
11935            ax_cv_curses=yes
11936            ax_cv_curses_which=plaincurses
11937            if test "x$CURSES_LIB" = x
11938then :
11939
11940                CURSES_LIB="-lcurses"
11941
11942fi
11943
11944printf "%s\n" "#define HAVE_CURSES 1" >>confdefs.h
11945
11946
11947            # Check for base conformance (and header file)
11948
11949            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working curses.h" >&5
11950printf %s "checking for working curses.h... " >&6; }
11951if test ${ax_cv_header_curses_h+y}
11952then :
11953  printf %s "(cached) " >&6
11954else $as_nop
11955
11956                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957/* end confdefs.h.  */
11958
11959                        #include <curses.h>
11960
11961int
11962main (void)
11963{
11964
11965                        chtype a = A_BOLD;
11966                        int b = KEY_LEFT;
11967                        initscr();
11968
11969  ;
11970  return 0;
11971}
11972_ACEOF
11973if ac_fn_cxx_try_link "$LINENO"
11974then :
11975  ax_cv_header_curses_h=yes
11976else $as_nop
11977  ax_cv_header_curses_h=no
11978fi
11979rm -f core conftest.err conftest.$ac_objext conftest.beam \
11980    conftest$ac_exeext conftest.$ac_ext
11981
11982fi
11983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_curses_h" >&5
11984printf "%s\n" "$ax_cv_header_curses_h" >&6; }
11985            if test "x$ax_cv_header_curses_h" = xyes
11986then :
11987
11988
11989printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
11990
11991
11992                # Check for X/Open Enhanced conformance
11993
11994                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X/Open Enhanced Curses conformance" >&5
11995printf %s "checking for X/Open Enhanced Curses conformance... " >&6; }
11996if test ${ax_cv_plaincurses_enhanced+y}
11997then :
11998  printf %s "(cached) " >&6
11999else $as_nop
12000
12001                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h.  */
12003
12004                            #define _XOPEN_SOURCE_EXTENDED 1
12005                            #include <curses.h>
12006                            #ifndef _XOPEN_CURSES
12007                            #error "this Curses library is not enhanced"
12008                            "this Curses library is not enhanced"
12009                            #endif
12010
12011int
12012main (void)
12013{
12014
12015                            chtype a = A_BOLD;
12016                            int b = KEY_LEFT;
12017                            chtype c = COLOR_PAIR(1) & A_COLOR;
12018                            attr_t d = WA_NORMAL;
12019                            cchar_t e;
12020                            wint_t f;
12021                            initscr();
12022                            init_pair(1, COLOR_WHITE, COLOR_RED);
12023                            wattr_set(stdscr, d, 0, NULL);
12024                            wget_wch(stdscr, &f);
12025
12026  ;
12027  return 0;
12028}
12029_ACEOF
12030if ac_fn_cxx_try_link "$LINENO"
12031then :
12032  ax_cv_plaincurses_enhanced=yes
12033else $as_nop
12034  ax_cv_plaincurses_enhanced=no
12035fi
12036rm -f core conftest.err conftest.$ac_objext conftest.beam \
12037    conftest$ac_exeext conftest.$ac_ext
12038
12039fi
12040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_enhanced" >&5
12041printf "%s\n" "$ax_cv_plaincurses_enhanced" >&6; }
12042                if test "x$ax_cv_plaincurses_enhanced" = xyes
12043then :
12044
12045                    ax_cv_curses_enhanced=yes
12046                    ax_cv_curses_color=yes
12047
12048printf "%s\n" "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
12049
12050
12051printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
12052
12053
12054fi
12055
12056                # Check for color functions
12057
12058                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Curses color functions" >&5
12059printf %s "checking for Curses color functions... " >&6; }
12060if test ${ax_cv_plaincurses_color+y}
12061then :
12062  printf %s "(cached) " >&6
12063else $as_nop
12064
12065                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h.  */
12067
12068                        #define _XOPEN_SOURCE_EXTENDED 1
12069                        #include <curses.h>
12070
12071int
12072main (void)
12073{
12074
12075                            chtype a = A_BOLD;
12076                            int b = KEY_LEFT;
12077                            chtype c = COLOR_PAIR(1) & A_COLOR;
12078                            initscr();
12079                            init_pair(1, COLOR_WHITE, COLOR_RED);
12080
12081  ;
12082  return 0;
12083}
12084_ACEOF
12085if ac_fn_cxx_try_link "$LINENO"
12086then :
12087  ax_cv_plaincurses_color=yes
12088else $as_nop
12089  ax_cv_plaincurses_color=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.beam \
12092    conftest$ac_exeext conftest.$ac_ext
12093
12094fi
12095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_color" >&5
12096printf "%s\n" "$ax_cv_plaincurses_color" >&6; }
12097                if test "x$ax_cv_plaincurses_color" = xyes
12098then :
12099
12100                    ax_cv_curses_color=yes
12101
12102printf "%s\n" "#define HAVE_CURSES_COLOR 1" >>confdefs.h
12103
12104
12105fi
12106
12107                # Check for obsolete functions
12108
12109                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for obsolete Curses functions" >&5
12110printf %s "checking for obsolete Curses functions... " >&6; }
12111if test ${ax_cv_plaincurses_obsolete+y}
12112then :
12113  printf %s "(cached) " >&6
12114else $as_nop
12115
12116                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117/* end confdefs.h.  */
12118
12119                        #include <curses.h>
12120
12121int
12122main (void)
12123{
12124
12125                        chtype a = A_BOLD;
12126                        int b = KEY_LEFT;
12127                        int g = getattrs(stdscr);
12128                        int h = getcurx(stdscr) + getmaxx(stdscr);
12129                        initscr();
12130
12131  ;
12132  return 0;
12133}
12134_ACEOF
12135if ac_fn_cxx_try_link "$LINENO"
12136then :
12137  ax_cv_plaincurses_obsolete=yes
12138else $as_nop
12139  ax_cv_plaincurses_obsolete=no
12140fi
12141rm -f core conftest.err conftest.$ac_objext conftest.beam \
12142    conftest$ac_exeext conftest.$ac_ext
12143
12144fi
12145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_obsolete" >&5
12146printf "%s\n" "$ax_cv_plaincurses_obsolete" >&6; }
12147                if test "x$ax_cv_plaincurses_obsolete" = xyes
12148then :
12149
12150                    ax_cv_curses_obsolete=yes
12151
12152printf "%s\n" "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
12153
12154
12155fi
12156
12157fi
12158
12159            if test "x$ax_cv_header_curses_h" = xno
12160then :
12161
12162                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working curses.h" >&5
12163printf "%s\n" "$as_me: WARNING: could not find a working curses.h" >&2;}
12164
12165fi
12166
12167fi
12168
12169fi
12170
12171    if test "x$ax_cv_curses"          != xyes
12172then :
12173  ax_cv_curses=no
12174fi
12175    if test "x$ax_cv_curses_enhanced" != xyes
12176then :
12177  ax_cv_curses_enhanced=no
12178fi
12179    if test "x$ax_cv_curses_color"    != xyes
12180then :
12181  ax_cv_curses_color=no
12182fi
12183    if test "x$ax_cv_curses_obsolete" != xyes
12184then :
12185  ax_cv_curses_obsolete=no
12186fi
12187
12188    LIBS=$ax_saved_LIBS
12189
12190
12191if test "x$ax_cv_curses" = xyes
12192then :
12193
12194else $as_nop
12195  as_fn_error $? "requires an X/Open-compatible Curses library with color" "$LINENO" 5
12196fi
12197
12198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib archive" >&5
12199printf %s "checking lib archive... " >&6; }
12200
12201# Check whether --with-libarchive was given.
12202if test ${with_libarchive+y}
12203then :
12204  withval=$with_libarchive;
12205else $as_nop
12206  with_libarchive="yes"
12207fi
12208
12209if test ".$with_libarchive" = ".no" ; then
12210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12211printf "%s\n" "disabled" >&6; }
12212
12213else
12214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (testing)" >&5
12215printf "%s\n" "(testing)" >&6; }
12216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
12217printf %s "checking for archive_read_new in -larchive... " >&6; }
12218if test ${ac_cv_lib_archive_archive_read_new+y}
12219then :
12220  printf %s "(cached) " >&6
12221else $as_nop
12222  ac_check_lib_save_LIBS=$LIBS
12223LIBS="-larchive  $LIBS"
12224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h.  */
12226
12227namespace conftest {
12228  extern "C" int archive_read_new ();
12229}
12230int
12231main (void)
12232{
12233return conftest::archive_read_new ();
12234  ;
12235  return 0;
12236}
12237_ACEOF
12238if ac_fn_cxx_try_link "$LINENO"
12239then :
12240  ac_cv_lib_archive_archive_read_new=yes
12241else $as_nop
12242  ac_cv_lib_archive_archive_read_new=no
12243fi
12244rm -f core conftest.err conftest.$ac_objext conftest.beam \
12245    conftest$ac_exeext conftest.$ac_ext
12246LIBS=$ac_check_lib_save_LIBS
12247fi
12248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
12249printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
12250if test "x$ac_cv_lib_archive_archive_read_new" = xyes
12251then :
12252  printf "%s\n" "#define HAVE_LIBARCHIVE 1" >>confdefs.h
12253
12254  LIBS="-larchive $LIBS"
12255
12256fi
12257
12258  ac_fn_cxx_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
12259if test "x$ac_cv_header_archive_h" = xyes
12260then :
12261  printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
12262
12263fi
12264
12265  if test "$ac_cv_lib_archive_archive_read_new" = "yes" && \
12266     test "x$ac_cv_header_archive_h" = xyes; then
12267     LIBARCHIVE_LIBS="-larchive"
12268     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib archive" >&5
12269printf %s "checking lib archive... " >&6; }
12270     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBARCHIVE_LIBS" >&5
12271printf "%s\n" "$LIBARCHIVE_LIBS" >&6; }
12272
12273  else
12274     unset ac_cv_header_archive_h
12275     OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_libarchive/lib"
12276     OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_libarchive/include"
12277     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
12278printf %s "checking for archive_read_new in -larchive... " >&6; }
12279if test ${ac_cv_lib_archive_archive_read_new+y}
12280then :
12281  printf %s "(cached) " >&6
12282else $as_nop
12283  ac_check_lib_save_LIBS=$LIBS
12284LIBS="-larchive  $LIBS"
12285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286/* end confdefs.h.  */
12287
12288namespace conftest {
12289  extern "C" int archive_read_new ();
12290}
12291int
12292main (void)
12293{
12294return conftest::archive_read_new ();
12295  ;
12296  return 0;
12297}
12298_ACEOF
12299if ac_fn_cxx_try_link "$LINENO"
12300then :
12301  ac_cv_lib_archive_archive_read_new=yes
12302else $as_nop
12303  ac_cv_lib_archive_archive_read_new=no
12304fi
12305rm -f core conftest.err conftest.$ac_objext conftest.beam \
12306    conftest$ac_exeext conftest.$ac_ext
12307LIBS=$ac_check_lib_save_LIBS
12308fi
12309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
12310printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
12311if test "x$ac_cv_lib_archive_archive_read_new" = xyes
12312then :
12313  printf "%s\n" "#define HAVE_LIBARCHIVE 1" >>confdefs.h
12314
12315  LIBS="-larchive $LIBS"
12316
12317fi
12318
12319     ac_fn_cxx_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
12320if test "x$ac_cv_header_archive_h" = xyes
12321then :
12322  printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
12323
12324fi
12325
12326     CPPFLAGS="$OLDCPPFLAGS"
12327     LDFLAGS="$OLDLDFLAGS"
12328     if test "$ac_cv_lib_archive_archive_read_new" = "yes" && \
12329        test "x$ac_cv_header_archive_h" = xyes; then
12330        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: .setting LIBARCHIVE_LIBS -L$with_libarchive/lib -larchive" >&5
12331printf "%s\n" ".setting LIBARCHIVE_LIBS -L$with_libarchive/lib -larchive" >&6; }
12332        LIBARCHIVE_LDFLAGS="-L$with_libarchive/lib"
12333        LIBARCHIVE_LIBS="-larchive"
12334        test -d "$with_libarchive/include" && LIBARCHIVE_CFLAGS="-I$with_libarchive/include"
12335        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib archive" >&5
12336printf %s "checking lib archive... " >&6; }
12337        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBARCHIVE_LIBS" >&5
12338printf "%s\n" "$LIBARCHIVE_LIBS" >&6; }
12339
12340     else
12341        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib archive" >&5
12342printf %s "checking lib archive... " >&6; }
12343        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344printf "%s\n" "no" >&6; }
12345
12346     fi
12347  fi
12348fi
12349
12350
12351
12352
12353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
12354printf %s "checking lib pcre... " >&6; }
12355
12356# Check whether --with-pcre was given.
12357if test ${with_pcre+y}
12358then :
12359  withval=$with_pcre;
12360else $as_nop
12361  with_pcre="yes"
12362fi
12363
12364if test ".$with_pcre" = ".no" ; then
12365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12366printf "%s\n" "disabled" >&6; }
12367  as_fn_error $? "pcre required to build" "$LINENO" 5
12368else
12369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (testing)" >&5
12370printf "%s\n" "(testing)" >&6; }
12371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12372printf %s "checking for pcre_study in -lpcre... " >&6; }
12373if test ${ac_cv_lib_pcre_pcre_study+y}
12374then :
12375  printf %s "(cached) " >&6
12376else $as_nop
12377  ac_check_lib_save_LIBS=$LIBS
12378LIBS="-lpcre  $LIBS"
12379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380/* end confdefs.h.  */
12381
12382namespace conftest {
12383  extern "C" int pcre_study ();
12384}
12385int
12386main (void)
12387{
12388return conftest::pcre_study ();
12389  ;
12390  return 0;
12391}
12392_ACEOF
12393if ac_fn_cxx_try_link "$LINENO"
12394then :
12395  ac_cv_lib_pcre_pcre_study=yes
12396else $as_nop
12397  ac_cv_lib_pcre_pcre_study=no
12398fi
12399rm -f core conftest.err conftest.$ac_objext conftest.beam \
12400    conftest$ac_exeext conftest.$ac_ext
12401LIBS=$ac_check_lib_save_LIBS
12402fi
12403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12404printf "%s\n" "$ac_cv_lib_pcre_pcre_study" >&6; }
12405if test "x$ac_cv_lib_pcre_pcre_study" = xyes
12406then :
12407  printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h
12408
12409  LIBS="-lpcre $LIBS"
12410
12411fi
12412
12413  saved_LIBS=$LIBS
12414  ac_fn_cxx_check_header_compile "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12415if test "x$ac_cv_header_pcre_h" = xyes
12416then :
12417  printf "%s\n" "#define HAVE_PCRE_H 1" >>confdefs.h
12418
12419fi
12420ac_fn_cxx_check_header_compile "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default"
12421if test "x$ac_cv_header_pcre_pcre_h" = xyes
12422then :
12423  printf "%s\n" "#define HAVE_PCRE_PCRE_H 1" >>confdefs.h
12424
12425fi
12426
12427  if test "$ac_cv_lib_pcre_pcre_study" = "yes" ; then
12428     PCRE_LIBS="-lpcre"
12429     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
12430printf %s "checking lib pcre... " >&6; }
12431     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBS" >&5
12432printf "%s\n" "$PCRE_LIBS" >&6; }
12433
12434  else
12435     OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_pcre/lib"
12436     OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_pcre/include"
12437     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
12438printf %s "checking for pcre_compile in -lpcre... " >&6; }
12439if test ${ac_cv_lib_pcre_pcre_compile+y}
12440then :
12441  printf %s "(cached) " >&6
12442else $as_nop
12443  ac_check_lib_save_LIBS=$LIBS
12444LIBS="-lpcre  $LIBS"
12445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h.  */
12447
12448namespace conftest {
12449  extern "C" int pcre_compile ();
12450}
12451int
12452main (void)
12453{
12454return conftest::pcre_compile ();
12455  ;
12456  return 0;
12457}
12458_ACEOF
12459if ac_fn_cxx_try_link "$LINENO"
12460then :
12461  ac_cv_lib_pcre_pcre_compile=yes
12462else $as_nop
12463  ac_cv_lib_pcre_pcre_compile=no
12464fi
12465rm -f core conftest.err conftest.$ac_objext conftest.beam \
12466    conftest$ac_exeext conftest.$ac_ext
12467LIBS=$ac_check_lib_save_LIBS
12468fi
12469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
12470printf "%s\n" "$ac_cv_lib_pcre_pcre_compile" >&6; }
12471if test "x$ac_cv_lib_pcre_pcre_compile" = xyes
12472then :
12473  printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h
12474
12475  LIBS="-lpcre $LIBS"
12476
12477fi
12478
12479     CPPFLAGS="$OLDCPPFLAGS"
12480     LDFLAGS="$OLDLDFLAGS"
12481     if test "$ac_cv_lib_pcre_pcre_compile" = "yes" ; then
12482        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: .setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&5
12483printf "%s\n" ".setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&6; }
12484        PCRE_LDFLAGS="-L$with_pcre/lib"
12485        PCRE_LIBS="-lpcre"
12486        test -d "$with_pcre/include" && PCRE_CFLAGS="-I$with_pcre/include"
12487        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
12488printf %s "checking lib pcre... " >&6; }
12489        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBS" >&5
12490printf "%s\n" "$PCRE_LIBS" >&6; }
12491
12492     else
12493        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
12494printf %s "checking lib pcre... " >&6; }
12495        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, (WARNING)" >&5
12496printf "%s\n" "no, (WARNING)" >&6; }
12497        as_fn_error $? "pcre required to build" "$LINENO" 5
12498     fi
12499  fi
12500fi
12501
12502
12503
12504
12505    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib readline" >&5
12506printf %s "checking lib readline... " >&6; }
12507
12508# Check whether --with-readline was given.
12509if test ${with_readline+y}
12510then :
12511  withval=$with_readline;
12512else $as_nop
12513  with_readline="yes"
12514
12515fi
12516
12517    saved_CFLAGS=$CFLAGS
12518    saved_CPPFLAGS=$CPPFLAGS
12519    saved_LDFLAGS=$LDFLAGS
12520    saved_LIBS=$LIBS
12521    case "$with_readline" in #(
12522  no) :
12523    as_fn_error $? "readline required to build" "$LINENO" 5 ;; #(
12524  yes) :
12525     ;; #(
12526  *) :
12527            READLINE_CFLAGS="-I$with_readline/include"
12528        READLINE_LDFLAGS="-L$with_readline/lib"
12529
12530  if test "x$CFLAGS" = "x"; then
12531    test "x$verbose" = "xyes" && echo "  setting CFLAGS to \"-I$with_readline/include\""
12532    CFLAGS="-I$with_readline/include"
12533  else
12534    ats_addto_bugger="-I$with_readline/include"
12535    for i in $ats_addto_bugger; do
12536      ats_addto_duplicate="0"
12537      for j in $CFLAGS; do
12538        if test "x$i" = "x$j"; then
12539          ats_addto_duplicate="1"
12540          break
12541        fi
12542      done
12543      if test $ats_addto_duplicate = "0"; then
12544        test "x$verbose" = "xyes" && echo "  adding \"$i\" to CFLAGS"
12545        CFLAGS="$CFLAGS $i"
12546      fi
12547    done
12548  fi
12549
12550
12551  if test "x$CPPFLAGS" = "x"; then
12552    test "x$verbose" = "xyes" && echo "  setting CPPFLAGS to \"-I$with_readline/include\""
12553    CPPFLAGS="-I$with_readline/include"
12554  else
12555    ats_addto_bugger="-I$with_readline/include"
12556    for i in $ats_addto_bugger; do
12557      ats_addto_duplicate="0"
12558      for j in $CPPFLAGS; do
12559        if test "x$i" = "x$j"; then
12560          ats_addto_duplicate="1"
12561          break
12562        fi
12563      done
12564      if test $ats_addto_duplicate = "0"; then
12565        test "x$verbose" = "xyes" && echo "  adding \"$i\" to CPPFLAGS"
12566        CPPFLAGS="$CPPFLAGS $i"
12567      fi
12568    done
12569  fi
12570
12571                LDFLAGS="-L$with_readline/lib $LDFLAGS"
12572             ;;
12573esac
12574
12575    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12576printf %s "checking for library containing readline... " >&6; }
12577if test ${ac_cv_search_readline+y}
12578then :
12579  printf %s "(cached) " >&6
12580else $as_nop
12581  ac_func_search_save_LIBS=$LIBS
12582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583/* end confdefs.h.  */
12584
12585namespace conftest {
12586  extern "C" int readline ();
12587}
12588int
12589main (void)
12590{
12591return conftest::readline ();
12592  ;
12593  return 0;
12594}
12595_ACEOF
12596for ac_lib in '' readline
12597do
12598  if test -z "$ac_lib"; then
12599    ac_res="none required"
12600  else
12601    ac_res=-l$ac_lib
12602    LIBS="-l$ac_lib $CURSES_LIB     $ac_func_search_save_LIBS"
12603  fi
12604  if ac_fn_cxx_try_link "$LINENO"
12605then :
12606  ac_cv_search_readline=$ac_res
12607fi
12608rm -f core conftest.err conftest.$ac_objext conftest.beam \
12609    conftest$ac_exeext
12610  if test ${ac_cv_search_readline+y}
12611then :
12612  break
12613fi
12614done
12615if test ${ac_cv_search_readline+y}
12616then :
12617
12618else $as_nop
12619  ac_cv_search_readline=no
12620fi
12621rm conftest.$ac_ext
12622LIBS=$ac_func_search_save_LIBS
12623fi
12624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12625printf "%s\n" "$ac_cv_search_readline" >&6; }
12626ac_res=$ac_cv_search_readline
12627if test "$ac_res" != no
12628then :
12629  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12630  READLINE_LIBS="-lreadline"
12631else $as_nop
12632  as_fn_error $? "libreadline library not found" "$LINENO" 5
12633fi
12634
12635            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing history_set_history_state" >&5
12636printf %s "checking for library containing history_set_history_state... " >&6; }
12637if test ${ac_cv_search_history_set_history_state+y}
12638then :
12639  printf %s "(cached) " >&6
12640else $as_nop
12641  ac_func_search_save_LIBS=$LIBS
12642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643/* end confdefs.h.  */
12644
12645namespace conftest {
12646  extern "C" int history_set_history_state ();
12647}
12648int
12649main (void)
12650{
12651return conftest::history_set_history_state ();
12652  ;
12653  return 0;
12654}
12655_ACEOF
12656for ac_lib in '' readline
12657do
12658  if test -z "$ac_lib"; then
12659    ac_res="none required"
12660  else
12661    ac_res=-l$ac_lib
12662    LIBS="-l$ac_lib $CURSES_LIB     $ac_func_search_save_LIBS"
12663  fi
12664  if ac_fn_cxx_try_link "$LINENO"
12665then :
12666  ac_cv_search_history_set_history_state=$ac_res
12667fi
12668rm -f core conftest.err conftest.$ac_objext conftest.beam \
12669    conftest$ac_exeext
12670  if test ${ac_cv_search_history_set_history_state+y}
12671then :
12672  break
12673fi
12674done
12675if test ${ac_cv_search_history_set_history_state+y}
12676then :
12677
12678else $as_nop
12679  ac_cv_search_history_set_history_state=no
12680fi
12681rm conftest.$ac_ext
12682LIBS=$ac_func_search_save_LIBS
12683fi
12684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_history_set_history_state" >&5
12685printf "%s\n" "$ac_cv_search_history_set_history_state" >&6; }
12686ac_res=$ac_cv_search_history_set_history_state
12687if test "$ac_res" != no
12688then :
12689  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690
12691else $as_nop
12692  as_fn_error $? "libreadline does not have the required symbols. editline possibly masquerading as readline." "$LINENO" 5
12693fi
12694
12695
12696           for ac_header in readline.h readline/readline.h
12697do :
12698  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
12699ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12700if eval test \"x\$"$as_ac_Header"\" = x"yes"
12701then :
12702  cat >>confdefs.h <<_ACEOF
12703#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
12704_ACEOF
12705         HAVE_READLINE_HEADERS=1
12706        break
12707
12708fi
12709
12710done
12711
12712    if test ${HAVE_READLINE_HEADERS+y}
12713then :
12714
12715else $as_nop
12716  as_fn_error $? "readline headers not found" "$LINENO" 5
12717
12718fi
12719    CFLAGS=$saved_CFLAGS
12720    CPPFLAGS=$saved_CPPFLAGS
12721    LDFLAGS=$saved_LDFLAGS
12722    LIBS=$saved_LIBS
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743	# allow to override gcov location
12744
12745# Check whether --with-gcov was given.
12746if test ${with_gcov+y}
12747then :
12748  withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
12749else $as_nop
12750  _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
12751fi
12752
12753
12754	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
12755printf %s "checking whether to build with code coverage support... " >&6; }
12756	# Check whether --enable-code-coverage was given.
12757if test ${enable_code_coverage+y}
12758then :
12759  enableval=$enable_code_coverage;
12760else $as_nop
12761  enable_code_coverage=no
12762fi
12763
12764
12765	 if test "x$enable_code_coverage" = xyes; then
12766  CODE_COVERAGE_ENABLED_TRUE=
12767  CODE_COVERAGE_ENABLED_FALSE='#'
12768else
12769  CODE_COVERAGE_ENABLED_TRUE='#'
12770  CODE_COVERAGE_ENABLED_FALSE=
12771fi
12772
12773	CODE_COVERAGE_ENABLED=$enable_code_coverage
12774
12775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
12776printf "%s\n" "$enable_code_coverage" >&6; }
12777
12778	if  test "x$enable_code_coverage" = xyes
12779then :
12780
12781
12782	  for ac_prog in gawk mawk nawk awk
12783do
12784  # Extract the first word of "$ac_prog", so it can be a program name with args.
12785set dummy $ac_prog; ac_word=$2
12786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787printf %s "checking for $ac_word... " >&6; }
12788if test ${ac_cv_prog_AWK+y}
12789then :
12790  printf %s "(cached) " >&6
12791else $as_nop
12792  if test -n "$AWK"; then
12793  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12794else
12795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796for as_dir in $PATH
12797do
12798  IFS=$as_save_IFS
12799  case $as_dir in #(((
12800    '') as_dir=./ ;;
12801    */) ;;
12802    *) as_dir=$as_dir/ ;;
12803  esac
12804    for ac_exec_ext in '' $ac_executable_extensions; do
12805  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12806    ac_cv_prog_AWK="$ac_prog"
12807    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12808    break 2
12809  fi
12810done
12811  done
12812IFS=$as_save_IFS
12813
12814fi
12815fi
12816AWK=$ac_cv_prog_AWK
12817if test -n "$AWK"; then
12818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12819printf "%s\n" "$AWK" >&6; }
12820else
12821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822printf "%s\n" "no" >&6; }
12823fi
12824
12825
12826  test -n "$AWK" && break
12827done
12828
12829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
12830printf %s "checking for GNU make... " >&6; }
12831if test ${_cv_gnu_make_command+y}
12832then :
12833  printf %s "(cached) " >&6
12834else $as_nop
12835      _cv_gnu_make_command="" ;
12836    for a in "$MAKE" make gmake gnumake ; do
12837      if test -z "$a" ; then continue ; fi ;
12838      if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
12839        _cv_gnu_make_command=$a ;
12840        AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
12841        ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
12842        break ;
12843      fi
12844    done ;
12845fi
12846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
12847printf "%s\n" "$_cv_gnu_make_command" >&6; }
12848  if test "x$_cv_gnu_make_command" = x""
12849then :
12850  ifGNUmake="#"
12851else $as_nop
12852  ifGNUmake=""
12853fi
12854  if test "x$_cv_gnu_make_command" = x""
12855then :
12856  ifnGNUmake=""
12857else $as_nop
12858  ifnGNUmake="#"
12859fi
12860  if test "x$_cv_gnu_make_command" = x""
12861then :
12862  { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
12863else $as_nop
12864  ax_cv_gnu_make_command=${_cv_gnu_make_command}
12865fi
12866  if test "x$_cv_gnu_make_command" = x""
12867then :
12868  as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
12869fi
12870
12871
12872
12873
12874	# check for gcov
12875	if test -n "$ac_tool_prefix"; then
12876  # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
12877set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
12878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879printf %s "checking for $ac_word... " >&6; }
12880if test ${ac_cv_prog_GCOV+y}
12881then :
12882  printf %s "(cached) " >&6
12883else $as_nop
12884  if test -n "$GCOV"; then
12885  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
12886else
12887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888for as_dir in $PATH
12889do
12890  IFS=$as_save_IFS
12891  case $as_dir in #(((
12892    '') as_dir=./ ;;
12893    */) ;;
12894    *) as_dir=$as_dir/ ;;
12895  esac
12896    for ac_exec_ext in '' $ac_executable_extensions; do
12897  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12898    ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
12899    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12900    break 2
12901  fi
12902done
12903  done
12904IFS=$as_save_IFS
12905
12906fi
12907fi
12908GCOV=$ac_cv_prog_GCOV
12909if test -n "$GCOV"; then
12910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
12911printf "%s\n" "$GCOV" >&6; }
12912else
12913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914printf "%s\n" "no" >&6; }
12915fi
12916
12917
12918fi
12919if test -z "$ac_cv_prog_GCOV"; then
12920  ac_ct_GCOV=$GCOV
12921  # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
12922set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
12923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924printf %s "checking for $ac_word... " >&6; }
12925if test ${ac_cv_prog_ac_ct_GCOV+y}
12926then :
12927  printf %s "(cached) " >&6
12928else $as_nop
12929  if test -n "$ac_ct_GCOV"; then
12930  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
12931else
12932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933for as_dir in $PATH
12934do
12935  IFS=$as_save_IFS
12936  case $as_dir in #(((
12937    '') as_dir=./ ;;
12938    */) ;;
12939    *) as_dir=$as_dir/ ;;
12940  esac
12941    for ac_exec_ext in '' $ac_executable_extensions; do
12942  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12943    ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
12944    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12945    break 2
12946  fi
12947done
12948  done
12949IFS=$as_save_IFS
12950
12951fi
12952fi
12953ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
12954if test -n "$ac_ct_GCOV"; then
12955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
12956printf "%s\n" "$ac_ct_GCOV" >&6; }
12957else
12958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959printf "%s\n" "no" >&6; }
12960fi
12961
12962  if test "x$ac_ct_GCOV" = x; then
12963    GCOV=":"
12964  else
12965    case $cross_compiling:$ac_tool_warned in
12966yes:)
12967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12968printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12969ac_tool_warned=yes ;;
12970esac
12971    GCOV=$ac_ct_GCOV
12972  fi
12973else
12974  GCOV="$ac_cv_prog_GCOV"
12975fi
12976
12977	if test "X$GCOV" = "X:"
12978then :
12979  as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
12980fi
12981
12982
12983		if  test "$GCC" = "no"
12984then :
12985
12986		as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
12987
12988fi
12989
12990	# Extract the first word of "lcov", so it can be a program name with args.
12991set dummy lcov; ac_word=$2
12992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993printf %s "checking for $ac_word... " >&6; }
12994if test ${ac_cv_prog_LCOV+y}
12995then :
12996  printf %s "(cached) " >&6
12997else $as_nop
12998  if test -n "$LCOV"; then
12999  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
13000else
13001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $PATH
13003do
13004  IFS=$as_save_IFS
13005  case $as_dir in #(((
13006    '') as_dir=./ ;;
13007    */) ;;
13008    *) as_dir=$as_dir/ ;;
13009  esac
13010    for ac_exec_ext in '' $ac_executable_extensions; do
13011  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13012    ac_cv_prog_LCOV="lcov"
13013    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13014    break 2
13015  fi
13016done
13017  done
13018IFS=$as_save_IFS
13019
13020fi
13021fi
13022LCOV=$ac_cv_prog_LCOV
13023if test -n "$LCOV"; then
13024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
13025printf "%s\n" "$LCOV" >&6; }
13026else
13027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028printf "%s\n" "no" >&6; }
13029fi
13030
13031
13032	# Extract the first word of "genhtml", so it can be a program name with args.
13033set dummy genhtml; ac_word=$2
13034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035printf %s "checking for $ac_word... " >&6; }
13036if test ${ac_cv_prog_GENHTML+y}
13037then :
13038  printf %s "(cached) " >&6
13039else $as_nop
13040  if test -n "$GENHTML"; then
13041  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
13042else
13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046  IFS=$as_save_IFS
13047  case $as_dir in #(((
13048    '') as_dir=./ ;;
13049    */) ;;
13050    *) as_dir=$as_dir/ ;;
13051  esac
13052    for ac_exec_ext in '' $ac_executable_extensions; do
13053  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13054    ac_cv_prog_GENHTML="genhtml"
13055    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13056    break 2
13057  fi
13058done
13059  done
13060IFS=$as_save_IFS
13061
13062fi
13063fi
13064GENHTML=$ac_cv_prog_GENHTML
13065if test -n "$GENHTML"; then
13066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
13067printf "%s\n" "$GENHTML" >&6; }
13068else
13069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070printf "%s\n" "no" >&6; }
13071fi
13072
13073
13074
13075	if  test x"$LCOV" = x
13076then :
13077
13078		as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
13079
13080fi
13081
13082	if  test x"$GENHTML" = x
13083then :
13084
13085		as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
13086
13087fi
13088
13089			CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
13090	CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage -fprofile-abs-path"
13091	CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage -fprofile-abs-path"
13092	CODE_COVERAGE_LIBS="-lgcov"
13093
13094
13095
13096
13097
13098
13099
13100fi
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114# Check whether --with-sqlite3 was given.
13115if test ${with_sqlite3+y}
13116then :
13117  withval=$with_sqlite3;
13118else $as_nop
13119  with_sqlite3="yes"
13120
13121fi
13122
13123
13124    saved_CFLAGS=$CFLAGS
13125    saved_CPPFLAGS=$CPPFLAGS
13126    saved_LDFLAGS=$LDFLAGS
13127    saved_LIBS=$LIBS
13128
13129    case "$with_sqlite3" in #(
13130  no) :
13131    as_fn_error $? "sqlite3 required to build" "$LINENO" 5 ;; #(
13132  yes) :
13133     ;; #(
13134  *) :
13135
13136  if test "x$CFLAGS" = "x"; then
13137    test "x$verbose" = "xyes" && echo "  setting CFLAGS to \"-I$with_sqlite3/include\""
13138    CFLAGS="-I$with_sqlite3/include"
13139  else
13140    ats_addto_bugger="-I$with_sqlite3/include"
13141    for i in $ats_addto_bugger; do
13142      ats_addto_duplicate="0"
13143      for j in $CFLAGS; do
13144        if test "x$i" = "x$j"; then
13145          ats_addto_duplicate="1"
13146          break
13147        fi
13148      done
13149      if test $ats_addto_duplicate = "0"; then
13150        test "x$verbose" = "xyes" && echo "  adding \"$i\" to CFLAGS"
13151        CFLAGS="$CFLAGS $i"
13152      fi
13153    done
13154  fi
13155
13156
13157  if test "x$CPPFLAGS" = "x"; then
13158    test "x$verbose" = "xyes" && echo "  setting CPPFLAGS to \"-I$with_sqlite3/include\""
13159    CPPFLAGS="-I$with_sqlite3/include"
13160  else
13161    ats_addto_bugger="-I$with_sqlite3/include"
13162    for i in $ats_addto_bugger; do
13163      ats_addto_duplicate="0"
13164      for j in $CPPFLAGS; do
13165        if test "x$i" = "x$j"; then
13166          ats_addto_duplicate="1"
13167          break
13168        fi
13169      done
13170      if test $ats_addto_duplicate = "0"; then
13171        test "x$verbose" = "xyes" && echo "  adding \"$i\" to CPPFLAGS"
13172        CPPFLAGS="$CPPFLAGS $i"
13173      fi
13174    done
13175  fi
13176
13177        SQLITE3_LDFLAGS="-L$with_sqlite3/lib"
13178        SQLITE3_CFLAGS="-I$with_sqlite3/include"
13179        LDFLAGS="-L$with_sqlite3/lib $LDFLAGS"
13180
13181     ;;
13182esac
13183
13184    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open" >&5
13185printf %s "checking for library containing sqlite3_open... " >&6; }
13186if test ${ac_cv_search_sqlite3_open+y}
13187then :
13188  printf %s "(cached) " >&6
13189else $as_nop
13190  ac_func_search_save_LIBS=$LIBS
13191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h.  */
13193
13194namespace conftest {
13195  extern "C" int sqlite3_open ();
13196}
13197int
13198main (void)
13199{
13200return conftest::sqlite3_open ();
13201  ;
13202  return 0;
13203}
13204_ACEOF
13205for ac_lib in '' sqlite3
13206do
13207  if test -z "$ac_lib"; then
13208    ac_res="none required"
13209  else
13210    ac_res=-l$ac_lib
13211    LIBS="-l$ac_lib -pthread     $ac_func_search_save_LIBS"
13212  fi
13213  if ac_fn_cxx_try_link "$LINENO"
13214then :
13215  ac_cv_search_sqlite3_open=$ac_res
13216fi
13217rm -f core conftest.err conftest.$ac_objext conftest.beam \
13218    conftest$ac_exeext
13219  if test ${ac_cv_search_sqlite3_open+y}
13220then :
13221  break
13222fi
13223done
13224if test ${ac_cv_search_sqlite3_open+y}
13225then :
13226
13227else $as_nop
13228  ac_cv_search_sqlite3_open=no
13229fi
13230rm conftest.$ac_ext
13231LIBS=$ac_func_search_save_LIBS
13232fi
13233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open" >&5
13234printf "%s\n" "$ac_cv_search_sqlite3_open" >&6; }
13235ac_res=$ac_cv_search_sqlite3_open
13236if test "$ac_res" != no
13237then :
13238  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13239  SQLITE3_LIBS="-lsqlite3"
13240else $as_nop
13241  as_fn_error $? "sqlite3 library not found" "$LINENO" 5
13242fi
13243
13244
13245           for ac_header in sqlite3.h
13246do :
13247  ac_fn_cxx_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
13248if test "x$ac_cv_header_sqlite3_h" = xyes
13249then :
13250  printf "%s\n" "#define HAVE_SQLITE3_H 1" >>confdefs.h
13251
13252else $as_nop
13253  as_fn_error $? "sqlite3 headers not found" "$LINENO" 5
13254
13255fi
13256
13257done
13258
13259    sqlite3_version_req="3.9.0"
13260    sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
13261    sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
13262    sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
13263    sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13264    if test "x$sqlite3_version_req_micro" = "x" ; then
13265        sqlite3_version_req_micro="0"
13266    fi
13267
13268    sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
13269                               \+ $sqlite3_version_req_minor \* 1000 \
13270                               \+ $sqlite3_version_req_micro`
13271
13272    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
13273printf %s "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
13274    ac_ext=cpp
13275ac_cpp='$CXXCPP $CPPFLAGS'
13276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13279
13280    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281/* end confdefs.h.  */
13282
13283        #include <sqlite3.h>
13284int
13285main (void)
13286{
13287
13288            #if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
13289            // Everything is okay
13290            #else
13291            #  error SQLite version is too old
13292            #endif
13293
13294
13295  ;
13296  return 0;
13297}
13298
13299_ACEOF
13300if ac_fn_cxx_try_compile "$LINENO"
13301then :
13302
13303        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304printf "%s\n" "yes" >&6; }
13305
13306else $as_nop
13307
13308        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13309printf "%s\n" "not found" >&6; }
13310        as_fn_error $? "SQLite3 version >= $sqlite3_version_req is required" "$LINENO" 5
13311
13312
13313fi
13314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13315    ac_ext=cpp
13316ac_cpp='$CXXCPP $CPPFLAGS'
13317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13320
13321
13322    ac_fn_cxx_check_func "$LINENO" "sqlite3_stmt_readonly" "ac_cv_func_sqlite3_stmt_readonly"
13323if test "x$ac_cv_func_sqlite3_stmt_readonly" = xyes
13324then :
13325
13326printf "%s\n" "#define HAVE_SQLITE3_STMT_READONLY /**/" >>confdefs.h
13327
13328
13329fi
13330
13331
13332    ac_fn_cxx_check_func "$LINENO" "sqlite3_value_subtype" "ac_cv_func_sqlite3_value_subtype"
13333if test "x$ac_cv_func_sqlite3_value_subtype" = xyes
13334then :
13335  HAVE_SQLITE3_VALUE_SUBTYPE=1
13336
13337printf "%s\n" "#define HAVE_SQLITE3_VALUE_SUBTYPE /**/" >>confdefs.h
13338
13339
13340fi
13341
13342
13343
13344
13345    CFLAGS=$saved_CFLAGS
13346    CPPFLAGS=$saved_CPPFLAGS
13347    LDFLAGS=$saved_LDFLAGS
13348    LIBS=$saved_LIBS
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
13359
13360
13361ALL_LDFLAGS="$SQLITE3_LDFLAGS $READLINE_LDFLAGS $LIBARCHIVE_LDFLAGS $LIBCURL $LDFLAGS"
13362
13363static_lib_list="libncurses.a libncursesw.a libreadline.a libsqlite3.a libz.a libtinfo.a libtinfow.a"
13364static_lib_list="$static_lib_list libpcre.a libncursesw.a libbz2.a"
13365static_lib_list="$static_lib_list libgpm.a libcurl.a libcrypto.a libssl.a libssh2.a"
13366static_lib_list="$static_lib_list libnghttp2.a liblzma.a libcrypto.a libzstd.a libldap.a"
13367static_lib_list="$static_lib_list libarchive.a libidn2.a libgssapi_krb5.a libbrotlidec-static.a"
13368static_lib_list="$static_lib_list librtmp.a libiconv.a liblz4.a liblber.a libunistring.a"
13369
13370if test x"${enable_static}" = x"yes"; then
13371    case "$host_os" in
13372    darwin*)
13373        STATIC_LDFLAGS="$STATIC_LDFLAGS -Wl,-search_paths_first"
13374        ;;
13375    esac
13376
13377    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -static-libgcc" >&5
13378printf %s "checking whether the linker accepts -static-libgcc... " >&6; }
13379if test ${ax_cv_check_ldflags___static_libgcc+y}
13380then :
13381  printf %s "(cached) " >&6
13382else $as_nop
13383
13384  ax_check_save_flags=$LDFLAGS
13385  LDFLAGS="$LDFLAGS  -static-libgcc"
13386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387/* end confdefs.h.  */
13388
13389int
13390main (void)
13391{
13392
13393  ;
13394  return 0;
13395}
13396_ACEOF
13397if ac_fn_cxx_try_link "$LINENO"
13398then :
13399  ax_cv_check_ldflags___static_libgcc=yes
13400else $as_nop
13401  ax_cv_check_ldflags___static_libgcc=no
13402fi
13403rm -f core conftest.err conftest.$ac_objext conftest.beam \
13404    conftest$ac_exeext conftest.$ac_ext
13405  LDFLAGS=$ax_check_save_flags
13406fi
13407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___static_libgcc" >&5
13408printf "%s\n" "$ax_cv_check_ldflags___static_libgcc" >&6; }
13409if test "x$ax_cv_check_ldflags___static_libgcc" = xyes
13410then :
13411  STATIC_LDFLAGS="$STATIC_LDFLAGS -static-libgcc"
13412else $as_nop
13413  :
13414fi
13415
13416
13417    STATIC_LDFLAGS="$STATIC_LDFLAGS -L`pwd`/src/static-libs"
13418    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -static-libstdc++" >&5
13419printf %s "checking whether the linker accepts -static-libstdc++... " >&6; }
13420if test ${ax_cv_check_ldflags___static_libstdcpp+y}
13421then :
13422  printf %s "(cached) " >&6
13423else $as_nop
13424
13425  ax_check_save_flags=$LDFLAGS
13426  LDFLAGS="$LDFLAGS  -static-libstdc++"
13427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428/* end confdefs.h.  */
13429
13430int
13431main (void)
13432{
13433
13434  ;
13435  return 0;
13436}
13437_ACEOF
13438if ac_fn_cxx_try_link "$LINENO"
13439then :
13440  ax_cv_check_ldflags___static_libstdcpp=yes
13441else $as_nop
13442  ax_cv_check_ldflags___static_libstdcpp=no
13443fi
13444rm -f core conftest.err conftest.$ac_objext conftest.beam \
13445    conftest$ac_exeext conftest.$ac_ext
13446  LDFLAGS=$ax_check_save_flags
13447fi
13448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___static_libstdcpp" >&5
13449printf "%s\n" "$ax_cv_check_ldflags___static_libstdcpp" >&6; }
13450if test "x$ax_cv_check_ldflags___static_libstdcpp" = xyes
13451then :
13452  STATIC_LDFLAGS="$STATIC_LDFLAGS -static-libstdc++"
13453else $as_nop
13454  :
13455fi
13456
13457    # This is a hack to link against static libraries instead of shared
13458    # so that we can build a mostly statically link exe that can
13459    # be downloaded and used right away.  This is required for OS X and
13460    # will, hopefully, make a static binary that is compatible with
13461    # many different versions of Linux.
13462    as_dir=src/static-libs; as_fn_mkdir_p
13463    rm -f src/static-libs/*.a
13464    for libflag in $ALL_LDFLAGS; do
13465        case $libflag in
13466        -Lstatic-libs)
13467        ;;
13468        -L*)
13469                libdir=`echo $libflag | sed -e 's/-L//'`
13470                for slib in $static_lib_list; do
13471                    if test -e "$libdir/$slib" -a ! -e "src/static-libs/$slib"; then
13472                        ln -sf "$libdir/$slib" src/static-libs/.
13473                    fi
13474                done
13475        ;;
13476        esac
13477    done
13478
13479    for slib in $static_lib_list; do
13480        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library $slib" >&5
13481printf %s "checking for static library $slib... " >&6; }
13482        if test -e "src/static-libs/$slib"; then
13483            found_slib=`readlink src/static-libs/$slib`
13484            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_slib" >&5
13485printf "%s\n" "$found_slib" >&6; }
13486        else
13487            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13488printf "%s\n" "not found" >&6; }
13489        fi
13490    done
13491fi
13492
13493
13494case "$host_os" in #(
13495  darwin*) :
13496     ;; #(
13497  *) :
13498
13499    curses_lib=$(echo $CURSES_LIB | sed -e 's/-l//')
13500    if test $? -eq 0
13501then :
13502
13503        case "$curses_lib" in #(
13504  ncurses*) :
13505    if test ${HAVE_GPM+y}
13506then :
13507
13508else $as_nop
13509
13510                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for libgpm dependency" >&5
13511printf "%s\n" "$as_me: Checking for libgpm dependency" >&6;}
13512                saved_LDFLAGS=$LDFLAGS
13513                LDFLAGS="$STATIC_LDFLAGS $LDFLAGS"
13514                saved_LIBS=$LIBS
13515                as_ac_Lib=`printf "%s\n" "ac_cv_lib_$curses_lib""_mousemask" | $as_tr_sh`
13516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mousemask in -l$curses_lib" >&5
13517printf %s "checking for mousemask in -l$curses_lib... " >&6; }
13518if eval test \${$as_ac_Lib+y}
13519then :
13520  printf %s "(cached) " >&6
13521else $as_nop
13522  ac_check_lib_save_LIBS=$LIBS
13523LIBS="-l$curses_lib  $LIBS"
13524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525/* end confdefs.h.  */
13526
13527namespace conftest {
13528  extern "C" int mousemask ();
13529}
13530int
13531main (void)
13532{
13533return conftest::mousemask ();
13534  ;
13535  return 0;
13536}
13537_ACEOF
13538if ac_fn_cxx_try_link "$LINENO"
13539then :
13540  eval "$as_ac_Lib=yes"
13541else $as_nop
13542  eval "$as_ac_Lib=no"
13543fi
13544rm -f core conftest.err conftest.$ac_objext conftest.beam \
13545    conftest$ac_exeext conftest.$ac_ext
13546LIBS=$ac_check_lib_save_LIBS
13547fi
13548eval ac_res=\$$as_ac_Lib
13549	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13550printf "%s\n" "$ac_res" >&6; }
13551if eval test \"x\$"$as_ac_Lib"\" = x"yes"
13552then :
13553
13554                    LDFLAGS=$saved_LDFLAGS
13555                    LIBS=$saved_LIBS
13556
13557else $as_nop
13558  as_fn_error $? "libgpm development libraries are required to build" "$LINENO" 5
13559fi
13560
13561fi             ;; #(
13562  *) :
13563     ;;
13564esac
13565
13566else $as_nop
13567
13568        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to test for dependepncy on gpm." >&5
13569printf "%s\n" "$as_me: WARNING: Unable to test for dependepncy on gpm." >&2;}
13570        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If build fails during make consider installing libgpm development libraries." >&5
13571printf "%s\n" "$as_me: WARNING: If build fails during make consider installing libgpm development libraries." >&2;}
13572
13573fi     ;;
13574esac
13575
13576saved_location=$(pwd)
13577cd $srcdir
13578version=$(expr $(git describe --abbrev=7 --dirty --always --tags 2>/dev/null) : 'v\([0-9]*\.[0-9]*\.[0-9]*.*\)' 2>/dev/null)
13579cd $saved_location
13580if test $? -eq 0
13581then :
13582  version=$(echo $version | tr -d '\n')
13583     version=${version:-${PACKAGE_VERSION}}
13584
13585printf "%s\n" "#define VCS_PACKAGE_STRING \"$PACKAGE_NAME $version\"" >>confdefs.h
13586
13587else $as_nop
13588
13589printf "%s\n" "#define VCS_PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
13590
13591fi
13592
13593 if test $HAVE_LOCAL_YAJL -eq 0; then
13594  USE_INCLUDED_YAJL_TRUE=
13595  USE_INCLUDED_YAJL_FALSE='#'
13596else
13597  USE_INCLUDED_YAJL_TRUE='#'
13598  USE_INCLUDED_YAJL_FALSE=
13599fi
13600
13601 if test x"$LIBCURL" != x""; then
13602  HAVE_LIBCURL_TRUE=
13603  HAVE_LIBCURL_FALSE='#'
13604else
13605  HAVE_LIBCURL_TRUE='#'
13606  HAVE_LIBCURL_FALSE=
13607fi
13608
13609 if  test x"$cross_compiling" != x"no" ; then
13610  DISABLE_DOCUMENTATION_TRUE=
13611  DISABLE_DOCUMENTATION_FALSE='#'
13612else
13613  DISABLE_DOCUMENTATION_TRUE='#'
13614  DISABLE_DOCUMENTATION_FALSE=
13615fi
13616
13617
13618ac_config_headers="$ac_config_headers src/config.h"
13619
13620ac_config_files="$ac_config_files Makefile"
13621
13622ac_config_files="$ac_config_files TESTS_ENVIRONMENT"
13623
13624ac_config_files="$ac_config_files src/Makefile"
13625
13626ac_config_files="$ac_config_files src/base/Makefile"
13627
13628ac_config_files="$ac_config_files src/formats/logfmt/Makefile"
13629
13630ac_config_files="$ac_config_files src/fmtlib/Makefile"
13631
13632ac_config_files="$ac_config_files src/pcrepp/Makefile"
13633
13634ac_config_files="$ac_config_files src/pugixml/Makefile"
13635
13636ac_config_files="$ac_config_files src/tailer/Makefile"
13637
13638ac_config_files="$ac_config_files src/tools/Makefile"
13639
13640ac_config_files="$ac_config_files src/yajl/Makefile"
13641
13642ac_config_files="$ac_config_files src/yajlpp/Makefile"
13643
13644ac_config_files="$ac_config_files test/Makefile"
13645
13646
13647cat >confcache <<\_ACEOF
13648# This file is a shell script that caches the results of configure
13649# tests run on this system so they can be shared between configure
13650# scripts and configure runs, see configure's option --config-cache.
13651# It is not useful on other systems.  If it contains results you don't
13652# want to keep, you may remove or edit it.
13653#
13654# config.status only pays attention to the cache file if you give it
13655# the --recheck option to rerun configure.
13656#
13657# `ac_cv_env_foo' variables (set or unset) will be overridden when
13658# loading this file, other *unset* `ac_cv_foo' will be assigned the
13659# following values.
13660
13661_ACEOF
13662
13663# The following way of writing the cache mishandles newlines in values,
13664# but we know of no workaround that is simple, portable, and efficient.
13665# So, we kill variables containing newlines.
13666# Ultrix sh set writes to stderr and can't be redirected directly,
13667# and sets the high bit in the cache file unless we assign to the vars.
13668(
13669  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13670    eval ac_val=\$$ac_var
13671    case $ac_val in #(
13672    *${as_nl}*)
13673      case $ac_var in #(
13674      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13675printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13676      esac
13677      case $ac_var in #(
13678      _ | IFS | as_nl) ;; #(
13679      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13680      *) { eval $ac_var=; unset $ac_var;} ;;
13681      esac ;;
13682    esac
13683  done
13684
13685  (set) 2>&1 |
13686    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13687    *${as_nl}ac_space=\ *)
13688      # `set' does not quote correctly, so add quotes: double-quote
13689      # substitution turns \\\\ into \\, and sed turns \\ into \.
13690      sed -n \
13691	"s/'/'\\\\''/g;
13692	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13693      ;; #(
13694    *)
13695      # `set' quotes correctly as required by POSIX, so do not add quotes.
13696      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13697      ;;
13698    esac |
13699    sort
13700) |
13701  sed '
13702     /^ac_cv_env_/b end
13703     t clear
13704     :clear
13705     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13706     t end
13707     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13708     :end' >>confcache
13709if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13710  if test -w "$cache_file"; then
13711    if test "x$cache_file" != "x/dev/null"; then
13712      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13713printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13714      if test ! -f "$cache_file" || test -h "$cache_file"; then
13715	cat confcache >"$cache_file"
13716      else
13717        case $cache_file in #(
13718        */* | ?:*)
13719	  mv -f confcache "$cache_file"$$ &&
13720	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13721        *)
13722	  mv -f confcache "$cache_file" ;;
13723	esac
13724      fi
13725    fi
13726  else
13727    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13728printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13729  fi
13730fi
13731rm -f confcache
13732
13733test "x$prefix" = xNONE && prefix=$ac_default_prefix
13734# Let make expand exec_prefix.
13735test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13736
13737DEFS=-DHAVE_CONFIG_H
13738
13739ac_libobjs=
13740ac_ltlibobjs=
13741U=
13742for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13743  # 1. Remove the extension, and $U if already installed.
13744  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13745  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13746  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13747  #    will be set to the directory where LIBOBJS objects are built.
13748  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13749  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13750done
13751LIBOBJS=$ac_libobjs
13752
13753LTLIBOBJS=$ac_ltlibobjs
13754
13755
13756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13757printf %s "checking that generated files are newer than configure... " >&6; }
13758   if test -n "$am_sleep_pid"; then
13759     # Hide warnings about reused PIDs.
13760     wait $am_sleep_pid 2>/dev/null
13761   fi
13762   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13763printf "%s\n" "done" >&6; }
13764 if test -n "$EXEEXT"; then
13765  am__EXEEXT_TRUE=
13766  am__EXEEXT_FALSE='#'
13767else
13768  am__EXEEXT_TRUE='#'
13769  am__EXEEXT_FALSE=
13770fi
13771
13772if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13773  as_fn_error $? "conditional \"AMDEP\" was never defined.
13774Usually this means the macro was only invoked conditionally." "$LINENO" 5
13775fi
13776if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13777  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13778Usually this means the macro was only invoked conditionally." "$LINENO" 5
13779fi
13780if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13781  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13782Usually this means the macro was only invoked conditionally." "$LINENO" 5
13783fi
13784if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13785  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13786Usually this means the macro was only invoked conditionally." "$LINENO" 5
13787fi
13788if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13789  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13790Usually this means the macro was only invoked conditionally." "$LINENO" 5
13791fi
13792if test -z "${HAVE_RE2C_TRUE}" && test -z "${HAVE_RE2C_FALSE}"; then
13793  as_fn_error $? "conditional \"HAVE_RE2C\" was never defined.
13794Usually this means the macro was only invoked conditionally." "$LINENO" 5
13795fi
13796if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
13797  as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
13798Usually this means the macro was only invoked conditionally." "$LINENO" 5
13799fi
13800if test -z "${USE_INCLUDED_YAJL_TRUE}" && test -z "${USE_INCLUDED_YAJL_FALSE}"; then
13801  as_fn_error $? "conditional \"USE_INCLUDED_YAJL\" was never defined.
13802Usually this means the macro was only invoked conditionally." "$LINENO" 5
13803fi
13804if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then
13805  as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined.
13806Usually this means the macro was only invoked conditionally." "$LINENO" 5
13807fi
13808if test -z "${DISABLE_DOCUMENTATION_TRUE}" && test -z "${DISABLE_DOCUMENTATION_FALSE}"; then
13809  as_fn_error $? "conditional \"DISABLE_DOCUMENTATION\" was never defined.
13810Usually this means the macro was only invoked conditionally." "$LINENO" 5
13811fi
13812
13813: "${CONFIG_STATUS=./config.status}"
13814ac_write_fail=0
13815ac_clean_files_save=$ac_clean_files
13816ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13818printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13819as_write_fail=0
13820cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13821#! $SHELL
13822# Generated by $as_me.
13823# Run this file to recreate the current configuration.
13824# Compiler output produced by configure, useful for debugging
13825# configure, is in config.log if it exists.
13826
13827debug=false
13828ac_cs_recheck=false
13829ac_cs_silent=false
13830
13831SHELL=\${CONFIG_SHELL-$SHELL}
13832export SHELL
13833_ASEOF
13834cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13835## -------------------- ##
13836## M4sh Initialization. ##
13837## -------------------- ##
13838
13839# Be more Bourne compatible
13840DUALCASE=1; export DUALCASE # for MKS sh
13841as_nop=:
13842if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13843then :
13844  emulate sh
13845  NULLCMD=:
13846  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13847  # is contrary to our usage.  Disable this feature.
13848  alias -g '${1+"$@"}'='"$@"'
13849  setopt NO_GLOB_SUBST
13850else $as_nop
13851  case `(set -o) 2>/dev/null` in #(
13852  *posix*) :
13853    set -o posix ;; #(
13854  *) :
13855     ;;
13856esac
13857fi
13858
13859
13860
13861# Reset variables that may have inherited troublesome values from
13862# the environment.
13863
13864# IFS needs to be set, to space, tab, and newline, in precisely that order.
13865# (If _AS_PATH_WALK were called with IFS unset, it would have the
13866# side effect of setting IFS to empty, thus disabling word splitting.)
13867# Quoting is to prevent editors from complaining about space-tab.
13868as_nl='
13869'
13870export as_nl
13871IFS=" ""	$as_nl"
13872
13873PS1='$ '
13874PS2='> '
13875PS4='+ '
13876
13877# Ensure predictable behavior from utilities with locale-dependent output.
13878LC_ALL=C
13879export LC_ALL
13880LANGUAGE=C
13881export LANGUAGE
13882
13883# We cannot yet rely on "unset" to work, but we need these variables
13884# to be unset--not just set to an empty or harmless value--now, to
13885# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
13886# also avoids known problems related to "unset" and subshell syntax
13887# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13888for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13889do eval test \${$as_var+y} \
13890  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13891done
13892
13893# Ensure that fds 0, 1, and 2 are open.
13894if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13895if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13896if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
13897
13898# The user is always right.
13899if ${PATH_SEPARATOR+false} :; then
13900  PATH_SEPARATOR=:
13901  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13902    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13903      PATH_SEPARATOR=';'
13904  }
13905fi
13906
13907
13908# Find who we are.  Look in the path if we contain no directory separator.
13909as_myself=
13910case $0 in #((
13911  *[\\/]* ) as_myself=$0 ;;
13912  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913for as_dir in $PATH
13914do
13915  IFS=$as_save_IFS
13916  case $as_dir in #(((
13917    '') as_dir=./ ;;
13918    */) ;;
13919    *) as_dir=$as_dir/ ;;
13920  esac
13921    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13922  done
13923IFS=$as_save_IFS
13924
13925     ;;
13926esac
13927# We did not find ourselves, most probably we were run as `sh COMMAND'
13928# in which case we are not to be found in the path.
13929if test "x$as_myself" = x; then
13930  as_myself=$0
13931fi
13932if test ! -f "$as_myself"; then
13933  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13934  exit 1
13935fi
13936
13937
13938
13939# as_fn_error STATUS ERROR [LINENO LOG_FD]
13940# ----------------------------------------
13941# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13942# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13943# script with STATUS, using 1 if that was 0.
13944as_fn_error ()
13945{
13946  as_status=$1; test $as_status -eq 0 && as_status=1
13947  if test "$4"; then
13948    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13950  fi
13951  printf "%s\n" "$as_me: error: $2" >&2
13952  as_fn_exit $as_status
13953} # as_fn_error
13954
13955
13956
13957# as_fn_set_status STATUS
13958# -----------------------
13959# Set $? to STATUS, without forking.
13960as_fn_set_status ()
13961{
13962  return $1
13963} # as_fn_set_status
13964
13965# as_fn_exit STATUS
13966# -----------------
13967# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13968as_fn_exit ()
13969{
13970  set +e
13971  as_fn_set_status $1
13972  exit $1
13973} # as_fn_exit
13974
13975# as_fn_unset VAR
13976# ---------------
13977# Portably unset VAR.
13978as_fn_unset ()
13979{
13980  { eval $1=; unset $1;}
13981}
13982as_unset=as_fn_unset
13983
13984# as_fn_append VAR VALUE
13985# ----------------------
13986# Append the text in VALUE to the end of the definition contained in VAR. Take
13987# advantage of any shell optimizations that allow amortized linear growth over
13988# repeated appends, instead of the typical quadratic growth present in naive
13989# implementations.
13990if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13991then :
13992  eval 'as_fn_append ()
13993  {
13994    eval $1+=\$2
13995  }'
13996else $as_nop
13997  as_fn_append ()
13998  {
13999    eval $1=\$$1\$2
14000  }
14001fi # as_fn_append
14002
14003# as_fn_arith ARG...
14004# ------------------
14005# Perform arithmetic evaluation on the ARGs, and store the result in the
14006# global $as_val. Take advantage of shells that can avoid forks. The arguments
14007# must be portable across $(()) and expr.
14008if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14009then :
14010  eval 'as_fn_arith ()
14011  {
14012    as_val=$(( $* ))
14013  }'
14014else $as_nop
14015  as_fn_arith ()
14016  {
14017    as_val=`expr "$@" || test $? -eq 1`
14018  }
14019fi # as_fn_arith
14020
14021
14022if expr a : '\(a\)' >/dev/null 2>&1 &&
14023   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14024  as_expr=expr
14025else
14026  as_expr=false
14027fi
14028
14029if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14030  as_basename=basename
14031else
14032  as_basename=false
14033fi
14034
14035if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14036  as_dirname=dirname
14037else
14038  as_dirname=false
14039fi
14040
14041as_me=`$as_basename -- "$0" ||
14042$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14043	 X"$0" : 'X\(//\)$' \| \
14044	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14045printf "%s\n" X/"$0" |
14046    sed '/^.*\/\([^/][^/]*\)\/*$/{
14047	    s//\1/
14048	    q
14049	  }
14050	  /^X\/\(\/\/\)$/{
14051	    s//\1/
14052	    q
14053	  }
14054	  /^X\/\(\/\).*/{
14055	    s//\1/
14056	    q
14057	  }
14058	  s/.*/./; q'`
14059
14060# Avoid depending upon Character Ranges.
14061as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14062as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14063as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14064as_cr_digits='0123456789'
14065as_cr_alnum=$as_cr_Letters$as_cr_digits
14066
14067
14068# Determine whether it's possible to make 'echo' print without a newline.
14069# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14070# for compatibility with existing Makefiles.
14071ECHO_C= ECHO_N= ECHO_T=
14072case `echo -n x` in #(((((
14073-n*)
14074  case `echo 'xy\c'` in
14075  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14076  xy)  ECHO_C='\c';;
14077  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14078       ECHO_T='	';;
14079  esac;;
14080*)
14081  ECHO_N='-n';;
14082esac
14083
14084# For backward compatibility with old third-party macros, we provide
14085# the shell variables $as_echo and $as_echo_n.  New code should use
14086# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14087as_echo='printf %s\n'
14088as_echo_n='printf %s'
14089
14090rm -f conf$$ conf$$.exe conf$$.file
14091if test -d conf$$.dir; then
14092  rm -f conf$$.dir/conf$$.file
14093else
14094  rm -f conf$$.dir
14095  mkdir conf$$.dir 2>/dev/null
14096fi
14097if (echo >conf$$.file) 2>/dev/null; then
14098  if ln -s conf$$.file conf$$ 2>/dev/null; then
14099    as_ln_s='ln -s'
14100    # ... but there are two gotchas:
14101    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14102    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14103    # In both cases, we have to default to `cp -pR'.
14104    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14105      as_ln_s='cp -pR'
14106  elif ln conf$$.file conf$$ 2>/dev/null; then
14107    as_ln_s=ln
14108  else
14109    as_ln_s='cp -pR'
14110  fi
14111else
14112  as_ln_s='cp -pR'
14113fi
14114rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14115rmdir conf$$.dir 2>/dev/null
14116
14117
14118# as_fn_mkdir_p
14119# -------------
14120# Create "$as_dir" as a directory, including parents if necessary.
14121as_fn_mkdir_p ()
14122{
14123
14124  case $as_dir in #(
14125  -*) as_dir=./$as_dir;;
14126  esac
14127  test -d "$as_dir" || eval $as_mkdir_p || {
14128    as_dirs=
14129    while :; do
14130      case $as_dir in #(
14131      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14132      *) as_qdir=$as_dir;;
14133      esac
14134      as_dirs="'$as_qdir' $as_dirs"
14135      as_dir=`$as_dirname -- "$as_dir" ||
14136$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14137	 X"$as_dir" : 'X\(//\)[^/]' \| \
14138	 X"$as_dir" : 'X\(//\)$' \| \
14139	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14140printf "%s\n" X"$as_dir" |
14141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14142	    s//\1/
14143	    q
14144	  }
14145	  /^X\(\/\/\)[^/].*/{
14146	    s//\1/
14147	    q
14148	  }
14149	  /^X\(\/\/\)$/{
14150	    s//\1/
14151	    q
14152	  }
14153	  /^X\(\/\).*/{
14154	    s//\1/
14155	    q
14156	  }
14157	  s/.*/./; q'`
14158      test -d "$as_dir" && break
14159    done
14160    test -z "$as_dirs" || eval "mkdir $as_dirs"
14161  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14162
14163
14164} # as_fn_mkdir_p
14165if mkdir -p . 2>/dev/null; then
14166  as_mkdir_p='mkdir -p "$as_dir"'
14167else
14168  test -d ./-p && rmdir ./-p
14169  as_mkdir_p=false
14170fi
14171
14172
14173# as_fn_executable_p FILE
14174# -----------------------
14175# Test if FILE is an executable regular file.
14176as_fn_executable_p ()
14177{
14178  test -f "$1" && test -x "$1"
14179} # as_fn_executable_p
14180as_test_x='test -x'
14181as_executable_p=as_fn_executable_p
14182
14183# Sed expression to map a string onto a valid CPP name.
14184as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14185
14186# Sed expression to map a string onto a valid variable name.
14187as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14188
14189
14190exec 6>&1
14191## ----------------------------------- ##
14192## Main body of $CONFIG_STATUS script. ##
14193## ----------------------------------- ##
14194_ASEOF
14195test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14196
14197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14198# Save the log message, to keep $0 and so on meaningful, and to
14199# report actual input values of CONFIG_FILES etc. instead of their
14200# values after options handling.
14201ac_log="
14202This file was extended by lnav $as_me 0.10.1, which was
14203generated by GNU Autoconf 2.71.  Invocation command line was
14204
14205  CONFIG_FILES    = $CONFIG_FILES
14206  CONFIG_HEADERS  = $CONFIG_HEADERS
14207  CONFIG_LINKS    = $CONFIG_LINKS
14208  CONFIG_COMMANDS = $CONFIG_COMMANDS
14209  $ $0 $@
14210
14211on `(hostname || uname -n) 2>/dev/null | sed 1q`
14212"
14213
14214_ACEOF
14215
14216case $ac_config_files in *"
14217"*) set x $ac_config_files; shift; ac_config_files=$*;;
14218esac
14219
14220case $ac_config_headers in *"
14221"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14222esac
14223
14224
14225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14226# Files that config.status was made for.
14227config_files="$ac_config_files"
14228config_headers="$ac_config_headers"
14229config_commands="$ac_config_commands"
14230
14231_ACEOF
14232
14233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14234ac_cs_usage="\
14235\`$as_me' instantiates files and other configuration actions
14236from templates according to the current configuration.  Unless the files
14237and actions are specified as TAGs, all are instantiated by default.
14238
14239Usage: $0 [OPTION]... [TAG]...
14240
14241  -h, --help       print this help, then exit
14242  -V, --version    print version number and configuration settings, then exit
14243      --config     print configuration, then exit
14244  -q, --quiet, --silent
14245                   do not print progress messages
14246  -d, --debug      don't remove temporary files
14247      --recheck    update $as_me by reconfiguring in the same conditions
14248      --file=FILE[:TEMPLATE]
14249                   instantiate the configuration file FILE
14250      --header=FILE[:TEMPLATE]
14251                   instantiate the configuration header FILE
14252
14253Configuration files:
14254$config_files
14255
14256Configuration headers:
14257$config_headers
14258
14259Configuration commands:
14260$config_commands
14261
14262Report bugs to <lnav@googlegroups.com>.
14263lnav home page: <http://lnav.org>."
14264
14265_ACEOF
14266ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14267ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14269ac_cs_config='$ac_cs_config_escaped'
14270ac_cs_version="\\
14271lnav config.status 0.10.1
14272configured by $0, generated by GNU Autoconf 2.71,
14273  with options \\"\$ac_cs_config\\"
14274
14275Copyright (C) 2021 Free Software Foundation, Inc.
14276This config.status script is free software; the Free Software Foundation
14277gives unlimited permission to copy, distribute and modify it."
14278
14279ac_pwd='$ac_pwd'
14280srcdir='$srcdir'
14281INSTALL='$INSTALL'
14282MKDIR_P='$MKDIR_P'
14283AWK='$AWK'
14284test -n "\$AWK" || AWK=awk
14285_ACEOF
14286
14287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14288# The default lists apply if the user does not specify any file.
14289ac_need_defaults=:
14290while test $# != 0
14291do
14292  case $1 in
14293  --*=?*)
14294    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14295    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14296    ac_shift=:
14297    ;;
14298  --*=)
14299    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14300    ac_optarg=
14301    ac_shift=:
14302    ;;
14303  *)
14304    ac_option=$1
14305    ac_optarg=$2
14306    ac_shift=shift
14307    ;;
14308  esac
14309
14310  case $ac_option in
14311  # Handling of the options.
14312  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14313    ac_cs_recheck=: ;;
14314  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14315    printf "%s\n" "$ac_cs_version"; exit ;;
14316  --config | --confi | --conf | --con | --co | --c )
14317    printf "%s\n" "$ac_cs_config"; exit ;;
14318  --debug | --debu | --deb | --de | --d | -d )
14319    debug=: ;;
14320  --file | --fil | --fi | --f )
14321    $ac_shift
14322    case $ac_optarg in
14323    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14324    '') as_fn_error $? "missing file argument" ;;
14325    esac
14326    as_fn_append CONFIG_FILES " '$ac_optarg'"
14327    ac_need_defaults=false;;
14328  --header | --heade | --head | --hea )
14329    $ac_shift
14330    case $ac_optarg in
14331    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14332    esac
14333    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14334    ac_need_defaults=false;;
14335  --he | --h)
14336    # Conflict between --help and --header
14337    as_fn_error $? "ambiguous option: \`$1'
14338Try \`$0 --help' for more information.";;
14339  --help | --hel | -h )
14340    printf "%s\n" "$ac_cs_usage"; exit ;;
14341  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14342  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14343    ac_cs_silent=: ;;
14344
14345  # This is an error.
14346  -*) as_fn_error $? "unrecognized option: \`$1'
14347Try \`$0 --help' for more information." ;;
14348
14349  *) as_fn_append ac_config_targets " $1"
14350     ac_need_defaults=false ;;
14351
14352  esac
14353  shift
14354done
14355
14356ac_configure_extra_args=
14357
14358if $ac_cs_silent; then
14359  exec 6>/dev/null
14360  ac_configure_extra_args="$ac_configure_extra_args --silent"
14361fi
14362
14363_ACEOF
14364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14365if \$ac_cs_recheck; then
14366  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14367  shift
14368  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14369  CONFIG_SHELL='$SHELL'
14370  export CONFIG_SHELL
14371  exec "\$@"
14372fi
14373
14374_ACEOF
14375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14376exec 5>>config.log
14377{
14378  echo
14379  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14380## Running $as_me. ##
14381_ASBOX
14382  printf "%s\n" "$ac_log"
14383} >&5
14384
14385_ACEOF
14386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387#
14388# INIT-COMMANDS
14389#
14390AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14391
14392_ACEOF
14393
14394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14395
14396# Handling of arguments.
14397for ac_config_target in $ac_config_targets
14398do
14399  case $ac_config_target in
14400    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14401    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14402    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14403    "TESTS_ENVIRONMENT") CONFIG_FILES="$CONFIG_FILES TESTS_ENVIRONMENT" ;;
14404    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14405    "src/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
14406    "src/formats/logfmt/Makefile") CONFIG_FILES="$CONFIG_FILES src/formats/logfmt/Makefile" ;;
14407    "src/fmtlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/fmtlib/Makefile" ;;
14408    "src/pcrepp/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcrepp/Makefile" ;;
14409    "src/pugixml/Makefile") CONFIG_FILES="$CONFIG_FILES src/pugixml/Makefile" ;;
14410    "src/tailer/Makefile") CONFIG_FILES="$CONFIG_FILES src/tailer/Makefile" ;;
14411    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
14412    "src/yajl/Makefile") CONFIG_FILES="$CONFIG_FILES src/yajl/Makefile" ;;
14413    "src/yajlpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/yajlpp/Makefile" ;;
14414    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14415
14416  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14417  esac
14418done
14419
14420
14421# If the user did not use the arguments to specify the items to instantiate,
14422# then the envvar interface is used.  Set only those that are not.
14423# We use the long form for the default assignment because of an extremely
14424# bizarre bug on SunOS 4.1.3.
14425if $ac_need_defaults; then
14426  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14427  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14428  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14429fi
14430
14431# Have a temporary directory for convenience.  Make it in the build tree
14432# simply because there is no reason against having it here, and in addition,
14433# creating and moving files from /tmp can sometimes cause problems.
14434# Hook for its removal unless debugging.
14435# Note that there is a small window in which the directory will not be cleaned:
14436# after its creation but before its name has been assigned to `$tmp'.
14437$debug ||
14438{
14439  tmp= ac_tmp=
14440  trap 'exit_status=$?
14441  : "${ac_tmp:=$tmp}"
14442  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14443' 0
14444  trap 'as_fn_exit 1' 1 2 13 15
14445}
14446# Create a (secure) tmp directory for tmp files.
14447
14448{
14449  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14450  test -d "$tmp"
14451}  ||
14452{
14453  tmp=./conf$$-$RANDOM
14454  (umask 077 && mkdir "$tmp")
14455} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14456ac_tmp=$tmp
14457
14458# Set up the scripts for CONFIG_FILES section.
14459# No need to generate them if there are no CONFIG_FILES.
14460# This happens for instance with `./config.status config.h'.
14461if test -n "$CONFIG_FILES"; then
14462
14463
14464ac_cr=`echo X | tr X '\015'`
14465# On cygwin, bash can eat \r inside `` if the user requested igncr.
14466# But we know of no other shell where ac_cr would be empty at this
14467# point, so we can use a bashism as a fallback.
14468if test "x$ac_cr" = x; then
14469  eval ac_cr=\$\'\\r\'
14470fi
14471ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14472if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14473  ac_cs_awk_cr='\\r'
14474else
14475  ac_cs_awk_cr=$ac_cr
14476fi
14477
14478echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14479_ACEOF
14480
14481
14482{
14483  echo "cat >conf$$subs.awk <<_ACEOF" &&
14484  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14485  echo "_ACEOF"
14486} >conf$$subs.sh ||
14487  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14488ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14489ac_delim='%!_!# '
14490for ac_last_try in false false false false false :; do
14491  . ./conf$$subs.sh ||
14492    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14493
14494  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14495  if test $ac_delim_n = $ac_delim_num; then
14496    break
14497  elif $ac_last_try; then
14498    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14499  else
14500    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14501  fi
14502done
14503rm -f conf$$subs.sh
14504
14505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14506cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14507_ACEOF
14508sed -n '
14509h
14510s/^/S["/; s/!.*/"]=/
14511p
14512g
14513s/^[^!]*!//
14514:repl
14515t repl
14516s/'"$ac_delim"'$//
14517t delim
14518:nl
14519h
14520s/\(.\{148\}\)..*/\1/
14521t more1
14522s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14523p
14524n
14525b repl
14526:more1
14527s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14528p
14529g
14530s/.\{148\}//
14531t nl
14532:delim
14533h
14534s/\(.\{148\}\)..*/\1/
14535t more2
14536s/["\\]/\\&/g; s/^/"/; s/$/"/
14537p
14538b
14539:more2
14540s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14541p
14542g
14543s/.\{148\}//
14544t delim
14545' <conf$$subs.awk | sed '
14546/^[^""]/{
14547  N
14548  s/\n//
14549}
14550' >>$CONFIG_STATUS || ac_write_fail=1
14551rm -f conf$$subs.awk
14552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14553_ACAWK
14554cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14555  for (key in S) S_is_set[key] = 1
14556  FS = ""
14557
14558}
14559{
14560  line = $ 0
14561  nfields = split(line, field, "@")
14562  substed = 0
14563  len = length(field[1])
14564  for (i = 2; i < nfields; i++) {
14565    key = field[i]
14566    keylen = length(key)
14567    if (S_is_set[key]) {
14568      value = S[key]
14569      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14570      len += length(value) + length(field[++i])
14571      substed = 1
14572    } else
14573      len += 1 + keylen
14574  }
14575
14576  print line
14577}
14578
14579_ACAWK
14580_ACEOF
14581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14582if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14583  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14584else
14585  cat
14586fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14587  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14588_ACEOF
14589
14590# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14591# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14592# trailing colons and then remove the whole line if VPATH becomes empty
14593# (actually we leave an empty line to preserve line numbers).
14594if test "x$srcdir" = x.; then
14595  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14596h
14597s///
14598s/^/:/
14599s/[	 ]*$/:/
14600s/:\$(srcdir):/:/g
14601s/:\${srcdir}:/:/g
14602s/:@srcdir@:/:/g
14603s/^:*//
14604s/:*$//
14605x
14606s/\(=[	 ]*\).*/\1/
14607G
14608s/\n//
14609s/^[^=]*=[	 ]*$//
14610}'
14611fi
14612
14613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14614fi # test -n "$CONFIG_FILES"
14615
14616# Set up the scripts for CONFIG_HEADERS section.
14617# No need to generate them if there are no CONFIG_HEADERS.
14618# This happens for instance with `./config.status Makefile'.
14619if test -n "$CONFIG_HEADERS"; then
14620cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14621BEGIN {
14622_ACEOF
14623
14624# Transform confdefs.h into an awk script `defines.awk', embedded as
14625# here-document in config.status, that substitutes the proper values into
14626# config.h.in to produce config.h.
14627
14628# Create a delimiter string that does not exist in confdefs.h, to ease
14629# handling of long lines.
14630ac_delim='%!_!# '
14631for ac_last_try in false false :; do
14632  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14633  if test -z "$ac_tt"; then
14634    break
14635  elif $ac_last_try; then
14636    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14637  else
14638    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14639  fi
14640done
14641
14642# For the awk script, D is an array of macro values keyed by name,
14643# likewise P contains macro parameters if any.  Preserve backslash
14644# newline sequences.
14645
14646ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14647sed -n '
14648s/.\{148\}/&'"$ac_delim"'/g
14649t rset
14650:rset
14651s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14652t def
14653d
14654:def
14655s/\\$//
14656t bsnl
14657s/["\\]/\\&/g
14658s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14659D["\1"]=" \3"/p
14660s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14661d
14662:bsnl
14663s/["\\]/\\&/g
14664s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14665D["\1"]=" \3\\\\\\n"\\/p
14666t cont
14667s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14668t cont
14669d
14670:cont
14671n
14672s/.\{148\}/&'"$ac_delim"'/g
14673t clear
14674:clear
14675s/\\$//
14676t bsnlc
14677s/["\\]/\\&/g; s/^/"/; s/$/"/p
14678d
14679:bsnlc
14680s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14681b cont
14682' <confdefs.h | sed '
14683s/'"$ac_delim"'/"\\\
14684"/g' >>$CONFIG_STATUS || ac_write_fail=1
14685
14686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14687  for (key in D) D_is_set[key] = 1
14688  FS = ""
14689}
14690/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14691  line = \$ 0
14692  split(line, arg, " ")
14693  if (arg[1] == "#") {
14694    defundef = arg[2]
14695    mac1 = arg[3]
14696  } else {
14697    defundef = substr(arg[1], 2)
14698    mac1 = arg[2]
14699  }
14700  split(mac1, mac2, "(") #)
14701  macro = mac2[1]
14702  prefix = substr(line, 1, index(line, defundef) - 1)
14703  if (D_is_set[macro]) {
14704    # Preserve the white space surrounding the "#".
14705    print prefix "define", macro P[macro] D[macro]
14706    next
14707  } else {
14708    # Replace #undef with comments.  This is necessary, for example,
14709    # in the case of _POSIX_SOURCE, which is predefined and required
14710    # on some systems where configure will not decide to define it.
14711    if (defundef == "undef") {
14712      print "/*", prefix defundef, macro, "*/"
14713      next
14714    }
14715  }
14716}
14717{ print }
14718_ACAWK
14719_ACEOF
14720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14721  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14722fi # test -n "$CONFIG_HEADERS"
14723
14724
14725eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14726shift
14727for ac_tag
14728do
14729  case $ac_tag in
14730  :[FHLC]) ac_mode=$ac_tag; continue;;
14731  esac
14732  case $ac_mode$ac_tag in
14733  :[FHL]*:*);;
14734  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14735  :[FH]-) ac_tag=-:-;;
14736  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14737  esac
14738  ac_save_IFS=$IFS
14739  IFS=:
14740  set x $ac_tag
14741  IFS=$ac_save_IFS
14742  shift
14743  ac_file=$1
14744  shift
14745
14746  case $ac_mode in
14747  :L) ac_source=$1;;
14748  :[FH])
14749    ac_file_inputs=
14750    for ac_f
14751    do
14752      case $ac_f in
14753      -) ac_f="$ac_tmp/stdin";;
14754      *) # Look for the file first in the build tree, then in the source tree
14755	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14756	 # because $ac_f cannot contain `:'.
14757	 test -f "$ac_f" ||
14758	   case $ac_f in
14759	   [\\/$]*) false;;
14760	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14761	   esac ||
14762	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14763      esac
14764      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14765      as_fn_append ac_file_inputs " '$ac_f'"
14766    done
14767
14768    # Let's still pretend it is `configure' which instantiates (i.e., don't
14769    # use $as_me), people would be surprised to read:
14770    #    /* config.h.  Generated by config.status.  */
14771    configure_input='Generated from '`
14772	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14773	`' by configure.'
14774    if test x"$ac_file" != x-; then
14775      configure_input="$ac_file.  $configure_input"
14776      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14777printf "%s\n" "$as_me: creating $ac_file" >&6;}
14778    fi
14779    # Neutralize special characters interpreted by sed in replacement strings.
14780    case $configure_input in #(
14781    *\&* | *\|* | *\\* )
14782       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14783       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14784    *) ac_sed_conf_input=$configure_input;;
14785    esac
14786
14787    case $ac_tag in
14788    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14789      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14790    esac
14791    ;;
14792  esac
14793
14794  ac_dir=`$as_dirname -- "$ac_file" ||
14795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14796	 X"$ac_file" : 'X\(//\)[^/]' \| \
14797	 X"$ac_file" : 'X\(//\)$' \| \
14798	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14799printf "%s\n" X"$ac_file" |
14800    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14801	    s//\1/
14802	    q
14803	  }
14804	  /^X\(\/\/\)[^/].*/{
14805	    s//\1/
14806	    q
14807	  }
14808	  /^X\(\/\/\)$/{
14809	    s//\1/
14810	    q
14811	  }
14812	  /^X\(\/\).*/{
14813	    s//\1/
14814	    q
14815	  }
14816	  s/.*/./; q'`
14817  as_dir="$ac_dir"; as_fn_mkdir_p
14818  ac_builddir=.
14819
14820case "$ac_dir" in
14821.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14822*)
14823  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14824  # A ".." for each directory in $ac_dir_suffix.
14825  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14826  case $ac_top_builddir_sub in
14827  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14828  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14829  esac ;;
14830esac
14831ac_abs_top_builddir=$ac_pwd
14832ac_abs_builddir=$ac_pwd$ac_dir_suffix
14833# for backward compatibility:
14834ac_top_builddir=$ac_top_build_prefix
14835
14836case $srcdir in
14837  .)  # We are building in place.
14838    ac_srcdir=.
14839    ac_top_srcdir=$ac_top_builddir_sub
14840    ac_abs_top_srcdir=$ac_pwd ;;
14841  [\\/]* | ?:[\\/]* )  # Absolute name.
14842    ac_srcdir=$srcdir$ac_dir_suffix;
14843    ac_top_srcdir=$srcdir
14844    ac_abs_top_srcdir=$srcdir ;;
14845  *) # Relative name.
14846    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14847    ac_top_srcdir=$ac_top_build_prefix$srcdir
14848    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14849esac
14850ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14851
14852
14853  case $ac_mode in
14854  :F)
14855  #
14856  # CONFIG_FILE
14857  #
14858
14859  case $INSTALL in
14860  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14861  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14862  esac
14863  ac_MKDIR_P=$MKDIR_P
14864  case $MKDIR_P in
14865  [\\/$]* | ?:[\\/]* ) ;;
14866  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14867  esac
14868_ACEOF
14869
14870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14871# If the template does not know about datarootdir, expand it.
14872# FIXME: This hack should be removed a few years after 2.60.
14873ac_datarootdir_hack=; ac_datarootdir_seen=
14874ac_sed_dataroot='
14875/datarootdir/ {
14876  p
14877  q
14878}
14879/@datadir@/p
14880/@docdir@/p
14881/@infodir@/p
14882/@localedir@/p
14883/@mandir@/p'
14884case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14885*datarootdir*) ac_datarootdir_seen=yes;;
14886*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14888printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14889_ACEOF
14890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14891  ac_datarootdir_hack='
14892  s&@datadir@&$datadir&g
14893  s&@docdir@&$docdir&g
14894  s&@infodir@&$infodir&g
14895  s&@localedir@&$localedir&g
14896  s&@mandir@&$mandir&g
14897  s&\\\${datarootdir}&$datarootdir&g' ;;
14898esac
14899_ACEOF
14900
14901# Neutralize VPATH when `$srcdir' = `.'.
14902# Shell code in configure.ac might set extrasub.
14903# FIXME: do we really want to maintain this feature?
14904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14905ac_sed_extra="$ac_vpsub
14906$extrasub
14907_ACEOF
14908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14909:t
14910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14911s|@configure_input@|$ac_sed_conf_input|;t t
14912s&@top_builddir@&$ac_top_builddir_sub&;t t
14913s&@top_build_prefix@&$ac_top_build_prefix&;t t
14914s&@srcdir@&$ac_srcdir&;t t
14915s&@abs_srcdir@&$ac_abs_srcdir&;t t
14916s&@top_srcdir@&$ac_top_srcdir&;t t
14917s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14918s&@builddir@&$ac_builddir&;t t
14919s&@abs_builddir@&$ac_abs_builddir&;t t
14920s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14921s&@INSTALL@&$ac_INSTALL&;t t
14922s&@MKDIR_P@&$ac_MKDIR_P&;t t
14923$ac_datarootdir_hack
14924"
14925eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14926  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14927
14928test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14929  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14930  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14931      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14933which seems to be undefined.  Please make sure it is defined" >&5
14934printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14935which seems to be undefined.  Please make sure it is defined" >&2;}
14936
14937  rm -f "$ac_tmp/stdin"
14938  case $ac_file in
14939  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14940  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14941  esac \
14942  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14943 ;;
14944  :H)
14945  #
14946  # CONFIG_HEADER
14947  #
14948  if test x"$ac_file" != x-; then
14949    {
14950      printf "%s\n" "/* $configure_input  */" >&1 \
14951      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14952    } >"$ac_tmp/config.h" \
14953      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14954    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14955      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14956printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14957    else
14958      rm -f "$ac_file"
14959      mv "$ac_tmp/config.h" "$ac_file" \
14960	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14961    fi
14962  else
14963    printf "%s\n" "/* $configure_input  */" >&1 \
14964      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14965      || as_fn_error $? "could not create -" "$LINENO" 5
14966  fi
14967# Compute "$ac_file"'s index in $config_headers.
14968_am_arg="$ac_file"
14969_am_stamp_count=1
14970for _am_header in $config_headers :; do
14971  case $_am_header in
14972    $_am_arg | $_am_arg:* )
14973      break ;;
14974    * )
14975      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14976  esac
14977done
14978echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14979$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14980	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14981	 X"$_am_arg" : 'X\(//\)$' \| \
14982	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14983printf "%s\n" X"$_am_arg" |
14984    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14985	    s//\1/
14986	    q
14987	  }
14988	  /^X\(\/\/\)[^/].*/{
14989	    s//\1/
14990	    q
14991	  }
14992	  /^X\(\/\/\)$/{
14993	    s//\1/
14994	    q
14995	  }
14996	  /^X\(\/\).*/{
14997	    s//\1/
14998	    q
14999	  }
15000	  s/.*/./; q'`/stamp-h$_am_stamp_count
15001 ;;
15002
15003  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15004printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15005 ;;
15006  esac
15007
15008
15009  case $ac_file$ac_mode in
15010    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15011  # Older Autoconf quotes --file arguments for eval, but not when files
15012  # are listed without --file.  Let's play safe and only enable the eval
15013  # if we detect the quoting.
15014  # TODO: see whether this extra hack can be removed once we start
15015  # requiring Autoconf 2.70 or later.
15016  case $CONFIG_FILES in #(
15017  *\'*) :
15018    eval set x "$CONFIG_FILES" ;; #(
15019  *) :
15020    set x $CONFIG_FILES ;; #(
15021  *) :
15022     ;;
15023esac
15024  shift
15025  # Used to flag and report bootstrapping failures.
15026  am_rc=0
15027  for am_mf
15028  do
15029    # Strip MF so we end up with the name of the file.
15030    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15031    # Check whether this is an Automake generated Makefile which includes
15032    # dependency-tracking related rules and includes.
15033    # Grep'ing the whole file directly is not great: AIX grep has a line
15034    # limit of 2048, but all sed's we know have understand at least 4000.
15035    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15036      || continue
15037    am_dirpart=`$as_dirname -- "$am_mf" ||
15038$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15039	 X"$am_mf" : 'X\(//\)[^/]' \| \
15040	 X"$am_mf" : 'X\(//\)$' \| \
15041	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15042printf "%s\n" X"$am_mf" |
15043    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15044	    s//\1/
15045	    q
15046	  }
15047	  /^X\(\/\/\)[^/].*/{
15048	    s//\1/
15049	    q
15050	  }
15051	  /^X\(\/\/\)$/{
15052	    s//\1/
15053	    q
15054	  }
15055	  /^X\(\/\).*/{
15056	    s//\1/
15057	    q
15058	  }
15059	  s/.*/./; q'`
15060    am_filepart=`$as_basename -- "$am_mf" ||
15061$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15062	 X"$am_mf" : 'X\(//\)$' \| \
15063	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15064printf "%s\n" X/"$am_mf" |
15065    sed '/^.*\/\([^/][^/]*\)\/*$/{
15066	    s//\1/
15067	    q
15068	  }
15069	  /^X\/\(\/\/\)$/{
15070	    s//\1/
15071	    q
15072	  }
15073	  /^X\/\(\/\).*/{
15074	    s//\1/
15075	    q
15076	  }
15077	  s/.*/./; q'`
15078    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15079      && sed -e '/# am--include-marker/d' "$am_filepart" \
15080        | $MAKE -f - am--depfiles" >&5
15081   (cd "$am_dirpart" \
15082      && sed -e '/# am--include-marker/d' "$am_filepart" \
15083        | $MAKE -f - am--depfiles) >&5 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); } || am_rc=$?
15087  done
15088  if test $am_rc -ne 0; then
15089    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15090printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15091as_fn_error $? "Something went wrong bootstrapping makefile fragments
15092    for automatic dependency tracking.  If GNU make was not used, consider
15093    re-running the configure script with MAKE=\"gmake\" (or whatever is
15094    necessary).  You can also try re-running configure with the
15095    '--disable-dependency-tracking' option to at least be able to build
15096    the package (albeit without support for automatic dependency tracking).
15097See \`config.log' for more details" "$LINENO" 5; }
15098  fi
15099  { am_dirpart=; unset am_dirpart;}
15100  { am_filepart=; unset am_filepart;}
15101  { am_mf=; unset am_mf;}
15102  { am_rc=; unset am_rc;}
15103  rm -f conftest-deps.mk
15104}
15105 ;;
15106
15107  esac
15108done # for ac_tag
15109
15110
15111as_fn_exit 0
15112_ACEOF
15113ac_clean_files=$ac_clean_files_save
15114
15115test $ac_write_fail = 0 ||
15116  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15117
15118
15119# configure is writing to config.log, and then calls config.status.
15120# config.status does its own redirection, appending to config.log.
15121# Unfortunately, on DOS this fails, as config.log is still kept open
15122# by configure, so config.status won't be able to write to it; its
15123# output is simply discarded.  So we exec the FD to /dev/null,
15124# effectively closing config.log, so it can be properly (re)opened and
15125# appended to by config.status.  When coming back to configure, we
15126# need to make the FD available again.
15127if test "$no_create" != yes; then
15128  ac_cs_success=:
15129  ac_config_status_args=
15130  test "$silent" = yes &&
15131    ac_config_status_args="$ac_config_status_args --quiet"
15132  exec 5>/dev/null
15133  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15134  exec 5>>config.log
15135  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15136  # would make configure fail if this is the last instruction.
15137  $ac_cs_success || as_fn_exit 1
15138fi
15139if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15141printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15142fi
15143
15144
15145