xref: /netbsd-src/external/gpl3/gdb/dist/gdbserver/configure (revision b2c35e17b976cf7ccd7250c86c6f5e95090ed636)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="server.cc"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_header_list=
623ac_subst_vars='LTLIBOBJS
624LIBOBJS
625GNULIB_STDINT_H
626extra_libraries
627IPA_DEPFILES
628srv_xmlfiles
629srv_xmlbuiltin
630GDBSERVER_LIBS
631GDBSERVER_DEPFILES
632RDYNAMIC
633REPORT_BUGS_TEXI
634REPORT_BUGS_TO
635PKGVERSION
636WERROR_CFLAGS
637WARN_CFLAGS
638ustinc
639ustlibs
640CCDEPMODE
641CONFIG_SRC_SUBDIR
642CATOBJEXT
643GENCAT
644INSTOBJEXT
645DATADIRNAME
646CATALOGS
647POSUB
648GMSGFMT
649XGETTEXT
650INCINTL
651LIBINTL_DEP
652LIBINTL
653USE_NLS
654DEPDIR
655am__leading_dot
656host_noncanonical
657target_noncanonical
658WIN32APILIBS
659LTLIBIPT
660LIBIPT
661HAVE_LIBIPT
662PTHREAD_CFLAGS
663PTHREAD_LIBS
664PTHREAD_CC
665ax_pthread_config
666SED
667ALLOCA
668CXX_DIALECT
669HAVE_CXX11
670RANLIB
671AR
672INSTALL_DATA
673INSTALL_SCRIPT
674INSTALL_PROGRAM
675target_os
676target_vendor
677target_cpu
678target
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687INSTALL_STRIP_PROGRAM
688STRIP
689install_sh
690EGREP
691GREP
692CPP
693ac_ct_CXX
694CXXFLAGS
695CXX
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703MAINT
704MAINTAINER_MODE_FALSE
705MAINTAINER_MODE_TRUE
706target_alias
707host_alias
708build_alias
709LIBS
710ECHO_T
711ECHO_N
712ECHO_C
713DEFS
714mandir
715localedir
716libdir
717psdir
718pdfdir
719dvidir
720htmldir
721infodir
722docdir
723oldincludedir
724includedir
725localstatedir
726sharedstatedir
727sysconfdir
728datadir
729datarootdir
730libexecdir
731sbindir
732bindir
733program_transform_name
734prefix
735exec_prefix
736PACKAGE_URL
737PACKAGE_BUGREPORT
738PACKAGE_STRING
739PACKAGE_VERSION
740PACKAGE_TARNAME
741PACKAGE_NAME
742PATH_SEPARATOR
743SHELL'
744ac_subst_files=''
745ac_user_opts='
746enable_option_checking
747enable_maintainer_mode
748enable_largefile
749enable_threading
750with_intel_pt
751with_gnu_ld
752enable_rpath
753with_libipt_prefix
754with_libipt_type
755enable_unit_tests
756with_ust
757with_ust_include
758with_ust_lib
759enable_werror
760enable_build_warnings
761enable_gdb_build_warnings
762with_pkgversion
763with_bugurl
764with_libthread_db
765enable_inprocess_agent
766'
767      ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
773LIBS
774CPPFLAGS
775CXX
776CXXFLAGS
777CCC
778CPP'
779
780
781# Initialize some variables set by options.
782ac_init_help=
783ac_init_version=false
784ac_unrecognized_opts=
785ac_unrecognized_sep=
786# The variables have the same names as the options, with
787# dashes changed to underlines.
788cache_file=/dev/null
789exec_prefix=NONE
790no_create=
791no_recursion=
792prefix=NONE
793program_prefix=NONE
794program_suffix=NONE
795program_transform_name=s,x,x,
796silent=
797site=
798srcdir=
799verbose=
800x_includes=NONE
801x_libraries=NONE
802
803# Installation directory options.
804# These are left unexpanded so users can "make install exec_prefix=/foo"
805# and all the variables that are supposed to be based on exec_prefix
806# by default will actually change.
807# Use braces instead of parens because sh, perl, etc. also accept them.
808# (The list follows the same order as the GNU Coding Standards.)
809bindir='${exec_prefix}/bin'
810sbindir='${exec_prefix}/sbin'
811libexecdir='${exec_prefix}/libexec'
812datarootdir='${prefix}/share'
813datadir='${datarootdir}'
814sysconfdir='${prefix}/etc'
815sharedstatedir='${prefix}/com'
816localstatedir='${prefix}/var'
817includedir='${prefix}/include'
818oldincludedir='/usr/include'
819docdir='${datarootdir}/doc/${PACKAGE}'
820infodir='${datarootdir}/info'
821htmldir='${docdir}'
822dvidir='${docdir}'
823pdfdir='${docdir}'
824psdir='${docdir}'
825libdir='${exec_prefix}/lib'
826localedir='${datarootdir}/locale'
827mandir='${datarootdir}/man'
828
829ac_prev=
830ac_dashdash=
831for ac_option
832do
833  # If the previous option needs an argument, assign it.
834  if test -n "$ac_prev"; then
835    eval $ac_prev=\$ac_option
836    ac_prev=
837    continue
838  fi
839
840  case $ac_option in
841  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842  *=)   ac_optarg= ;;
843  *)    ac_optarg=yes ;;
844  esac
845
846  # Accept the important Cygnus configure options, so we can diagnose typos.
847
848  case $ac_dashdash$ac_option in
849  --)
850    ac_dashdash=yes ;;
851
852  -bindir | --bindir | --bindi | --bind | --bin | --bi)
853    ac_prev=bindir ;;
854  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855    bindir=$ac_optarg ;;
856
857  -build | --build | --buil | --bui | --bu)
858    ac_prev=build_alias ;;
859  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860    build_alias=$ac_optarg ;;
861
862  -cache-file | --cache-file | --cache-fil | --cache-fi \
863  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864    ac_prev=cache_file ;;
865  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867    cache_file=$ac_optarg ;;
868
869  --config-cache | -C)
870    cache_file=config.cache ;;
871
872  -datadir | --datadir | --datadi | --datad)
873    ac_prev=datadir ;;
874  -datadir=* | --datadir=* | --datadi=* | --datad=*)
875    datadir=$ac_optarg ;;
876
877  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878  | --dataroo | --dataro | --datar)
879    ac_prev=datarootdir ;;
880  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882    datarootdir=$ac_optarg ;;
883
884  -disable-* | --disable-*)
885    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886    # Reject names that are not valid shell variable names.
887    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888      as_fn_error $? "invalid feature name: $ac_useropt"
889    ac_useropt_orig=$ac_useropt
890    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891    case $ac_user_opts in
892      *"
893"enable_$ac_useropt"
894"*) ;;
895      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896	 ac_unrecognized_sep=', ';;
897    esac
898    eval enable_$ac_useropt=no ;;
899
900  -docdir | --docdir | --docdi | --doc | --do)
901    ac_prev=docdir ;;
902  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903    docdir=$ac_optarg ;;
904
905  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906    ac_prev=dvidir ;;
907  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908    dvidir=$ac_optarg ;;
909
910  -enable-* | --enable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: $ac_useropt"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=\$ac_optarg ;;
925
926  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928  | --exec | --exe | --ex)
929    ac_prev=exec_prefix ;;
930  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932  | --exec=* | --exe=* | --ex=*)
933    exec_prefix=$ac_optarg ;;
934
935  -gas | --gas | --ga | --g)
936    # Obsolete; use --with-gas.
937    with_gas=yes ;;
938
939  -help | --help | --hel | --he | -h)
940    ac_init_help=long ;;
941  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942    ac_init_help=recursive ;;
943  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944    ac_init_help=short ;;
945
946  -host | --host | --hos | --ho)
947    ac_prev=host_alias ;;
948  -host=* | --host=* | --hos=* | --ho=*)
949    host_alias=$ac_optarg ;;
950
951  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952    ac_prev=htmldir ;;
953  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954  | --ht=*)
955    htmldir=$ac_optarg ;;
956
957  -includedir | --includedir | --includedi | --included | --include \
958  | --includ | --inclu | --incl | --inc)
959    ac_prev=includedir ;;
960  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961  | --includ=* | --inclu=* | --incl=* | --inc=*)
962    includedir=$ac_optarg ;;
963
964  -infodir | --infodir | --infodi | --infod | --info | --inf)
965    ac_prev=infodir ;;
966  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967    infodir=$ac_optarg ;;
968
969  -libdir | --libdir | --libdi | --libd)
970    ac_prev=libdir ;;
971  -libdir=* | --libdir=* | --libdi=* | --libd=*)
972    libdir=$ac_optarg ;;
973
974  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975  | --libexe | --libex | --libe)
976    ac_prev=libexecdir ;;
977  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978  | --libexe=* | --libex=* | --libe=*)
979    libexecdir=$ac_optarg ;;
980
981  -localedir | --localedir | --localedi | --localed | --locale)
982    ac_prev=localedir ;;
983  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984    localedir=$ac_optarg ;;
985
986  -localstatedir | --localstatedir | --localstatedi | --localstated \
987  | --localstate | --localstat | --localsta | --localst | --locals)
988    ac_prev=localstatedir ;;
989  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991    localstatedir=$ac_optarg ;;
992
993  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994    ac_prev=mandir ;;
995  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996    mandir=$ac_optarg ;;
997
998  -nfp | --nfp | --nf)
999    # Obsolete; use --without-fp.
1000    with_fp=no ;;
1001
1002  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003  | --no-cr | --no-c | -n)
1004    no_create=yes ;;
1005
1006  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008    no_recursion=yes ;;
1009
1010  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012  | --oldin | --oldi | --old | --ol | --o)
1013    ac_prev=oldincludedir ;;
1014  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017    oldincludedir=$ac_optarg ;;
1018
1019  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020    ac_prev=prefix ;;
1021  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022    prefix=$ac_optarg ;;
1023
1024  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025  | --program-pre | --program-pr | --program-p)
1026    ac_prev=program_prefix ;;
1027  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029    program_prefix=$ac_optarg ;;
1030
1031  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032  | --program-suf | --program-su | --program-s)
1033    ac_prev=program_suffix ;;
1034  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036    program_suffix=$ac_optarg ;;
1037
1038  -program-transform-name | --program-transform-name \
1039  | --program-transform-nam | --program-transform-na \
1040  | --program-transform-n | --program-transform- \
1041  | --program-transform | --program-transfor \
1042  | --program-transfo | --program-transf \
1043  | --program-trans | --program-tran \
1044  | --progr-tra | --program-tr | --program-t)
1045    ac_prev=program_transform_name ;;
1046  -program-transform-name=* | --program-transform-name=* \
1047  | --program-transform-nam=* | --program-transform-na=* \
1048  | --program-transform-n=* | --program-transform-=* \
1049  | --program-transform=* | --program-transfor=* \
1050  | --program-transfo=* | --program-transf=* \
1051  | --program-trans=* | --program-tran=* \
1052  | --progr-tra=* | --program-tr=* | --program-t=*)
1053    program_transform_name=$ac_optarg ;;
1054
1055  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056    ac_prev=pdfdir ;;
1057  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058    pdfdir=$ac_optarg ;;
1059
1060  -psdir | --psdir | --psdi | --psd | --ps)
1061    ac_prev=psdir ;;
1062  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063    psdir=$ac_optarg ;;
1064
1065  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066  | -silent | --silent | --silen | --sile | --sil)
1067    silent=yes ;;
1068
1069  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070    ac_prev=sbindir ;;
1071  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072  | --sbi=* | --sb=*)
1073    sbindir=$ac_optarg ;;
1074
1075  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077  | --sharedst | --shareds | --shared | --share | --shar \
1078  | --sha | --sh)
1079    ac_prev=sharedstatedir ;;
1080  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083  | --sha=* | --sh=*)
1084    sharedstatedir=$ac_optarg ;;
1085
1086  -site | --site | --sit)
1087    ac_prev=site ;;
1088  -site=* | --site=* | --sit=*)
1089    site=$ac_optarg ;;
1090
1091  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092    ac_prev=srcdir ;;
1093  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094    srcdir=$ac_optarg ;;
1095
1096  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097  | --syscon | --sysco | --sysc | --sys | --sy)
1098    ac_prev=sysconfdir ;;
1099  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101    sysconfdir=$ac_optarg ;;
1102
1103  -target | --target | --targe | --targ | --tar | --ta | --t)
1104    ac_prev=target_alias ;;
1105  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106    target_alias=$ac_optarg ;;
1107
1108  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109    verbose=yes ;;
1110
1111  -version | --version | --versio | --versi | --vers | -V)
1112    ac_init_version=: ;;
1113
1114  -with-* | --with-*)
1115    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116    # Reject names that are not valid shell variable names.
1117    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118      as_fn_error $? "invalid package name: $ac_useropt"
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"with_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval with_$ac_useropt=\$ac_optarg ;;
1129
1130  -without-* | --without-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=no ;;
1145
1146  --x)
1147    # Obsolete; use --with-x.
1148    with_x=yes ;;
1149
1150  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151  | --x-incl | --x-inc | --x-in | --x-i)
1152    ac_prev=x_includes ;;
1153  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155    x_includes=$ac_optarg ;;
1156
1157  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159    ac_prev=x_libraries ;;
1160  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162    x_libraries=$ac_optarg ;;
1163
1164  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information"
1166    ;;
1167
1168  *=*)
1169    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170    # Reject names that are not valid shell variable names.
1171    case $ac_envvar in #(
1172      '' | [0-9]* | *[!_$as_cr_alnum]* )
1173      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174    esac
1175    eval $ac_envvar=\$ac_optarg
1176    export $ac_envvar ;;
1177
1178  *)
1179    # FIXME: should be removed in autoconf 3.0.
1180    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184    ;;
1185
1186  esac
1187done
1188
1189if test -n "$ac_prev"; then
1190  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191  as_fn_error $? "missing argument to $ac_option"
1192fi
1193
1194if test -n "$ac_unrecognized_opts"; then
1195  case $enable_option_checking in
1196    no) ;;
1197    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199  esac
1200fi
1201
1202# Check all directory arguments for consistency.
1203for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204		datadir sysconfdir sharedstatedir localstatedir includedir \
1205		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206		libdir localedir mandir
1207do
1208  eval ac_val=\$$ac_var
1209  # Remove trailing slashes.
1210  case $ac_val in
1211    */ )
1212      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213      eval $ac_var=\$ac_val;;
1214  esac
1215  # Be sure to have absolute directory names.
1216  case $ac_val in
1217    [\\/$]* | ?:[\\/]* )  continue;;
1218    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219  esac
1220  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232  if test "x$build_alias" = x; then
1233    cross_compiling=maybe
1234  elif test "x$build_alias" != "x$host_alias"; then
1235    cross_compiling=yes
1236  fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
1245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248  as_fn_error $? "working directory cannot be determined"
1249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250  as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255  ac_srcdir_defaulted=yes
1256  # Try the directory containing this script, then the parent directory.
1257  ac_confdir=`$as_dirname -- "$as_myself" ||
1258$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259	 X"$as_myself" : 'X\(//\)[^/]' \| \
1260	 X"$as_myself" : 'X\(//\)$' \| \
1261	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262$as_echo X"$as_myself" |
1263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\/\)[^/].*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\/\)$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\).*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  s/.*/./; q'`
1280  srcdir=$ac_confdir
1281  if test ! -r "$srcdir/$ac_unique_file"; then
1282    srcdir=..
1283  fi
1284else
1285  ac_srcdir_defaulted=no
1286fi
1287if test ! -r "$srcdir/$ac_unique_file"; then
1288  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290fi
1291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
1293	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294	pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297  srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_env_${ac_var}_value=\$${ac_var}
1308  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
1311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316  # Omit some internal or obsolete options to make the list less imposing.
1317  # This message is too long to be a string in the A/UX 3.1 sh.
1318  cat <<_ACEOF
1319\`configure' configures this package to adapt to many kinds of systems.
1320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329  -h, --help              display this help and exit
1330      --help=short        display options specific to this package
1331      --help=recursive    display the short help of all the included packages
1332  -V, --version           display version information and exit
1333  -q, --quiet, --silent   do not print \`checking ...' messages
1334      --cache-file=FILE   cache test results in FILE [disabled]
1335  -C, --config-cache      alias for \`--cache-file=config.cache'
1336  -n, --no-create         do not create output files
1337      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339Installation directories:
1340  --prefix=PREFIX         install architecture-independent files in PREFIX
1341                          [$ac_default_prefix]
1342  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                          [PREFIX]
1344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
1353  --bindir=DIR            user executables [EPREFIX/bin]
1354  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355  --libexecdir=DIR        program executables [EPREFIX/libexec]
1356  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359  --libdir=DIR            object code libraries [EPREFIX/lib]
1360  --includedir=DIR        C header files [PREFIX/include]
1361  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364  --infodir=DIR           info documentation [DATAROOTDIR/info]
1365  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366  --mandir=DIR            man documentation [DATAROOTDIR/man]
1367  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1368  --htmldir=DIR           html documentation [DOCDIR]
1369  --dvidir=DIR            dvi documentation [DOCDIR]
1370  --pdfdir=DIR            pdf documentation [DOCDIR]
1371  --psdir=DIR             ps documentation [DOCDIR]
1372_ACEOF
1373
1374  cat <<\_ACEOF
1375
1376Program names:
1377  --program-prefix=PREFIX            prepend PREFIX to installed program names
1378  --program-suffix=SUFFIX            append SUFFIX to installed program names
1379  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
1381System types:
1382  --build=BUILD     configure for building on BUILD [guessed]
1383  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384  --target=TARGET   configure for building compilers for TARGET [HOST]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389
1390  cat <<\_ACEOF
1391
1392Optional Features:
1393  --disable-option-checking  ignore unrecognized --enable/--with options
1394  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396  --enable-maintainer-mode
1397                          enable make rules and dependencies not useful (and
1398                          sometimes confusing) to the casual installer
1399  --disable-largefile     omit support for large files
1400  --enable-threading      include support for parallel processing of data
1401                          (yes/no)
1402  --disable-rpath         do not hardcode runtime library paths
1403  --enable-unit-tests     Enable the inclusion of unit tests when compiling
1404                          GDB
1405  --enable-werror         treat compile warnings as errors
1406  --enable-build-warnings enable build-time compiler warnings if gcc is used
1407  --enable-gdb-build-warnings
1408                          enable GDB specific build-time compiler warnings if
1409                          gcc is used
1410  --enable-inprocess-agent
1411                          inprocess agent
1412
1413Optional Packages:
1414  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1415  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1416  --with-intel-pt         include Intel Processor Trace support (auto/yes/no)
1417  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1418  --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
1419  --without-libipt-prefix     don't search for libipt in includedir and libdir
1420  --with-libipt-type=TYPE     type of library to search for (auto/static/shared)
1421  --with-ust=PATH       Specify prefix directory for the installed UST package
1422                          Equivalent to --with-ust-include=PATH/include
1423                          plus --with-ust-lib=PATH/lib
1424  --with-ust-include=PATH Specify directory for installed UST include files
1425  --with-ust-lib=PATH   Specify the directory for the installed UST library
1426  --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1427  --with-bugurl=URL       Direct users to URL to report a bug
1428  --with-libthread-db=PATH
1429                          use given libthread_db directly
1430
1431Some influential environment variables:
1432  CC          C compiler command
1433  CFLAGS      C compiler flags
1434  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1435              nonstandard directory <lib dir>
1436  LIBS        libraries to pass to the linker, e.g. -l<library>
1437  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438              you have headers in a nonstandard directory <include dir>
1439  CXX         C++ compiler command
1440  CXXFLAGS    C++ compiler flags
1441  CPP         C preprocessor
1442
1443Use these variables to override the choices made by `configure' or to help
1444it to find libraries and programs with nonstandard names/locations.
1445
1446Report bugs to the package provider.
1447_ACEOF
1448ac_status=$?
1449fi
1450
1451if test "$ac_init_help" = "recursive"; then
1452  # If there are subdirs, report their specific --help.
1453  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454    test -d "$ac_dir" ||
1455      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456      continue
1457    ac_builddir=.
1458
1459case "$ac_dir" in
1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461*)
1462  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463  # A ".." for each directory in $ac_dir_suffix.
1464  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465  case $ac_top_builddir_sub in
1466  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468  esac ;;
1469esac
1470ac_abs_top_builddir=$ac_pwd
1471ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472# for backward compatibility:
1473ac_top_builddir=$ac_top_build_prefix
1474
1475case $srcdir in
1476  .)  # We are building in place.
1477    ac_srcdir=.
1478    ac_top_srcdir=$ac_top_builddir_sub
1479    ac_abs_top_srcdir=$ac_pwd ;;
1480  [\\/]* | ?:[\\/]* )  # Absolute name.
1481    ac_srcdir=$srcdir$ac_dir_suffix;
1482    ac_top_srcdir=$srcdir
1483    ac_abs_top_srcdir=$srcdir ;;
1484  *) # Relative name.
1485    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486    ac_top_srcdir=$ac_top_build_prefix$srcdir
1487    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488esac
1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491    cd "$ac_dir" || { ac_status=$?; continue; }
1492    # Check for guested configure.
1493    if test -f "$ac_srcdir/configure.gnu"; then
1494      echo &&
1495      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496    elif test -f "$ac_srcdir/configure"; then
1497      echo &&
1498      $SHELL "$ac_srcdir/configure" --help=recursive
1499    else
1500      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501    fi || ac_status=$?
1502    cd "$ac_pwd" || { ac_status=$?; break; }
1503  done
1504fi
1505
1506test -n "$ac_init_help" && exit $ac_status
1507if $ac_init_version; then
1508  cat <<\_ACEOF
1509configure
1510generated by GNU Autoconf 2.69
1511
1512Copyright (C) 2012 Free Software Foundation, Inc.
1513This configure script is free software; the Free Software Foundation
1514gives unlimited permission to copy, distribute and modify it.
1515_ACEOF
1516  exit
1517fi
1518
1519## ------------------------ ##
1520## Autoconf initialization. ##
1521## ------------------------ ##
1522
1523# ac_fn_c_try_compile LINENO
1524# --------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_compile ()
1527{
1528  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529  rm -f conftest.$ac_objext
1530  if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533  *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537  (eval "$ac_compile") 2>conftest.err
1538  ac_status=$?
1539  if test -s conftest.err; then
1540    grep -v '^ *+' conftest.err >conftest.er1
1541    cat conftest.er1 >&5
1542    mv -f conftest.er1 conftest.err
1543  fi
1544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545  test $ac_status = 0; } && {
1546	 test -z "$ac_c_werror_flag" ||
1547	 test ! -s conftest.err
1548       } && test -s conftest.$ac_objext; then :
1549  ac_retval=0
1550else
1551  $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554	ac_retval=1
1555fi
1556  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557  as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_compile
1560
1561# ac_fn_cxx_try_compile LINENO
1562# ----------------------------
1563# Try to compile conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_cxx_try_compile ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  rm -f conftest.$ac_objext
1568  if { { ac_try="$ac_compile"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575  (eval "$ac_compile") 2>conftest.err
1576  ac_status=$?
1577  if test -s conftest.err; then
1578    grep -v '^ *+' conftest.err >conftest.er1
1579    cat conftest.er1 >&5
1580    mv -f conftest.er1 conftest.err
1581  fi
1582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583  test $ac_status = 0; } && {
1584	 test -z "$ac_cxx_werror_flag" ||
1585	 test ! -s conftest.err
1586       } && test -s conftest.$ac_objext; then :
1587  ac_retval=0
1588else
1589  $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592	ac_retval=1
1593fi
1594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595  as_fn_set_status $ac_retval
1596
1597} # ac_fn_cxx_try_compile
1598
1599# ac_fn_c_try_cpp LINENO
1600# ----------------------
1601# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_cpp ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  if { { ac_try="$ac_cpp conftest.$ac_ext"
1606case "(($ac_try" in
1607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608  *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613  ac_status=$?
1614  if test -s conftest.err; then
1615    grep -v '^ *+' conftest.err >conftest.er1
1616    cat conftest.er1 >&5
1617    mv -f conftest.er1 conftest.err
1618  fi
1619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620  test $ac_status = 0; } > conftest.i && {
1621	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622	 test ! -s conftest.err
1623       }; then :
1624  ac_retval=0
1625else
1626  $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
1629    ac_retval=1
1630fi
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632  as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_cpp
1635
1636# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1639# the include files in INCLUDES and setting the cache variable VAR
1640# accordingly.
1641ac_fn_c_check_header_mongrel ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  if eval \${$3+:} false; then :
1645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646$as_echo_n "checking for $2... " >&6; }
1647if eval \${$3+:} false; then :
1648  $as_echo_n "(cached) " >&6
1649fi
1650eval ac_res=\$$3
1651	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653else
1654  # Is the header compilable?
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1656$as_echo_n "checking $2 usability... " >&6; }
1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659$4
1660#include <$2>
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"; then :
1663  ac_header_compiler=yes
1664else
1665  ac_header_compiler=no
1666fi
1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1669$as_echo "$ac_header_compiler" >&6; }
1670
1671# Is the header present?
1672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1673$as_echo_n "checking $2 presence... " >&6; }
1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h.  */
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_cpp "$LINENO"; then :
1679  ac_header_preproc=yes
1680else
1681  ac_header_preproc=no
1682fi
1683rm -f conftest.err conftest.i conftest.$ac_ext
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1685$as_echo "$ac_header_preproc" >&6; }
1686
1687# So?  What about this header?
1688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1689  yes:no: )
1690    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1691$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1692    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1693$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694    ;;
1695  no:yes:* )
1696    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1697$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1698    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1699$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1700    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1701$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1702    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1703$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1704    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706    ;;
1707esac
1708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709$as_echo_n "checking for $2... " >&6; }
1710if eval \${$3+:} false; then :
1711  $as_echo_n "(cached) " >&6
1712else
1713  eval "$3=\$ac_header_compiler"
1714fi
1715eval ac_res=\$$3
1716	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718fi
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721} # ac_fn_c_check_header_mongrel
1722
1723# ac_fn_c_try_run LINENO
1724# ----------------------
1725# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726# that executables *can* be run.
1727ac_fn_c_try_run ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  if { { ac_try="$ac_link"
1731case "(($ac_try" in
1732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733  *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737  (eval "$ac_link") 2>&5
1738  ac_status=$?
1739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741  { { case "(($ac_try" in
1742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743  *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747  (eval "$ac_try") 2>&5
1748  ac_status=$?
1749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750  test $ac_status = 0; }; }; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: program exited with status $ac_status" >&5
1754       $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757       ac_retval=$ac_status
1758fi
1759  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_run
1764
1765# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766# -------------------------------------------------------
1767# Tests whether HEADER exists and can be compiled using the include files in
1768# INCLUDES, setting the cache variable VAR accordingly.
1769ac_fn_c_check_header_compile ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if eval \${$3+:} false; then :
1775  $as_echo_n "(cached) " >&6
1776else
1777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h.  */
1779$4
1780#include <$2>
1781_ACEOF
1782if ac_fn_c_try_compile "$LINENO"; then :
1783  eval "$3=yes"
1784else
1785  eval "$3=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794} # ac_fn_c_check_header_compile
1795
1796# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1797# -------------------------------------------
1798# Tests whether TYPE exists after having included INCLUDES, setting cache
1799# variable VAR accordingly.
1800ac_fn_c_check_type ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  eval "$3=no"
1809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811$4
1812int
1813main ()
1814{
1815if (sizeof ($2))
1816	 return 0;
1817  ;
1818  return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$4
1825int
1826main ()
1827{
1828if (sizeof (($2)))
1829	    return 0;
1830  ;
1831  return 0;
1832}
1833_ACEOF
1834if ac_fn_c_try_compile "$LINENO"; then :
1835
1836else
1837  eval "$3=yes"
1838fi
1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842fi
1843eval ac_res=\$$3
1844	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845$as_echo "$ac_res" >&6; }
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848} # ac_fn_c_check_type
1849
1850# ac_fn_c_try_link LINENO
1851# -----------------------
1852# Try to link conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_c_try_link ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  rm -f conftest.$ac_objext conftest$ac_exeext
1857  if { { ac_try="$ac_link"
1858case "(($ac_try" in
1859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860  *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864  (eval "$ac_link") 2>conftest.err
1865  ac_status=$?
1866  if test -s conftest.err; then
1867    grep -v '^ *+' conftest.err >conftest.er1
1868    cat conftest.er1 >&5
1869    mv -f conftest.er1 conftest.err
1870  fi
1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; } && {
1873	 test -z "$ac_c_werror_flag" ||
1874	 test ! -s conftest.err
1875       } && test -s conftest$ac_exeext && {
1876	 test "$cross_compiling" = yes ||
1877	 test -x conftest$ac_exeext
1878       }; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884	ac_retval=1
1885fi
1886  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888  # interfere with the next link command; also delete a directory that is
1889  # left behind by Apple's compiler.  We do this before executing the actions.
1890  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892  as_fn_set_status $ac_retval
1893
1894} # ac_fn_c_try_link
1895
1896# ac_fn_c_check_func LINENO FUNC VAR
1897# ----------------------------------
1898# Tests whether FUNC exists, setting the cache variable VAR accordingly
1899ac_fn_c_check_func ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval \${$3+:} false; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1911#define $2 innocuous_$2
1912
1913/* System header to define __stub macros and hopefully few prototypes,
1914    which can conflict with char $2 (); below.
1915    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916    <limits.h> exists even on freestanding compilers.  */
1917
1918#ifdef __STDC__
1919# include <limits.h>
1920#else
1921# include <assert.h>
1922#endif
1923
1924#undef $2
1925
1926/* Override any GCC internal prototype to avoid an error.
1927   Use char because int might match the return type of a GCC
1928   builtin and then its argument prototype would still apply.  */
1929#ifdef __cplusplus
1930extern "C"
1931#endif
1932char $2 ();
1933/* The GNU C library defines this for functions which it implements
1934    to always fail with ENOSYS.  Some functions are actually named
1935    something starting with __ and the normal name is an alias.  */
1936#if defined __stub_$2 || defined __stub___$2
1937choke me
1938#endif
1939
1940int
1941main ()
1942{
1943return $2 ();
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_link "$LINENO"; then :
1949  eval "$3=yes"
1950else
1951  eval "$3=no"
1952fi
1953rm -f core conftest.err conftest.$ac_objext \
1954    conftest$ac_exeext conftest.$ac_ext
1955fi
1956eval ac_res=\$$3
1957	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958$as_echo "$ac_res" >&6; }
1959  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961} # ac_fn_c_check_func
1962
1963# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1964# ---------------------------------------------
1965# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1966# accordingly.
1967ac_fn_c_check_decl ()
1968{
1969  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970  as_decl_name=`echo $2|sed 's/ *(.*//'`
1971  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1973$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1974if eval \${$3+:} false; then :
1975  $as_echo_n "(cached) " >&6
1976else
1977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980int
1981main ()
1982{
1983#ifndef $as_decl_name
1984#ifdef __cplusplus
1985  (void) $as_decl_use;
1986#else
1987  (void) $as_decl_name;
1988#endif
1989#endif
1990
1991  ;
1992  return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996  eval "$3=yes"
1997else
1998  eval "$3=no"
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001fi
2002eval ac_res=\$$3
2003	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004$as_echo "$ac_res" >&6; }
2005  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006
2007} # ac_fn_c_check_decl
2008
2009# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2010# ----------------------------------------------------
2011# Tries to find if the field MEMBER exists in type AGGR, after including
2012# INCLUDES, setting cache variable VAR accordingly.
2013ac_fn_c_check_member ()
2014{
2015  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2017$as_echo_n "checking for $2.$3... " >&6; }
2018if eval \${$4+:} false; then :
2019  $as_echo_n "(cached) " >&6
2020else
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$5
2024int
2025main ()
2026{
2027static $2 ac_aggr;
2028if (ac_aggr.$3)
2029return 0;
2030  ;
2031  return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035  eval "$4=yes"
2036else
2037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$5
2040int
2041main ()
2042{
2043static $2 ac_aggr;
2044if (sizeof ac_aggr.$3)
2045return 0;
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051  eval "$4=yes"
2052else
2053  eval "$4=no"
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059eval ac_res=\$$4
2060	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064} # ac_fn_c_check_member
2065
2066# ac_fn_cxx_try_link LINENO
2067# -------------------------
2068# Try to link conftest.$ac_ext, and return whether this succeeded.
2069ac_fn_cxx_try_link ()
2070{
2071  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072  rm -f conftest.$ac_objext conftest$ac_exeext
2073  if { { ac_try="$ac_link"
2074case "(($ac_try" in
2075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076  *) ac_try_echo=$ac_try;;
2077esac
2078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079$as_echo "$ac_try_echo"; } >&5
2080  (eval "$ac_link") 2>conftest.err
2081  ac_status=$?
2082  if test -s conftest.err; then
2083    grep -v '^ *+' conftest.err >conftest.er1
2084    cat conftest.er1 >&5
2085    mv -f conftest.er1 conftest.err
2086  fi
2087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088  test $ac_status = 0; } && {
2089	 test -z "$ac_cxx_werror_flag" ||
2090	 test ! -s conftest.err
2091       } && test -s conftest$ac_exeext && {
2092	 test "$cross_compiling" = yes ||
2093	 test -x conftest$ac_exeext
2094       }; then :
2095  ac_retval=0
2096else
2097  $as_echo "$as_me: failed program was:" >&5
2098sed 's/^/| /' conftest.$ac_ext >&5
2099
2100	ac_retval=1
2101fi
2102  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2103  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2104  # interfere with the next link command; also delete a directory that is
2105  # left behind by Apple's compiler.  We do this before executing the actions.
2106  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108  as_fn_set_status $ac_retval
2109
2110} # ac_fn_cxx_try_link
2111
2112# ac_fn_cxx_check_func LINENO FUNC VAR
2113# ------------------------------------
2114# Tests whether FUNC exists, setting the cache variable VAR accordingly
2115ac_fn_cxx_check_func ()
2116{
2117  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119$as_echo_n "checking for $2... " >&6; }
2120if eval \${$3+:} false; then :
2121  $as_echo_n "(cached) " >&6
2122else
2123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h.  */
2125/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2126   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2127#define $2 innocuous_$2
2128
2129/* System header to define __stub macros and hopefully few prototypes,
2130    which can conflict with char $2 (); below.
2131    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2132    <limits.h> exists even on freestanding compilers.  */
2133
2134#ifdef __STDC__
2135# include <limits.h>
2136#else
2137# include <assert.h>
2138#endif
2139
2140#undef $2
2141
2142/* Override any GCC internal prototype to avoid an error.
2143   Use char because int might match the return type of a GCC
2144   builtin and then its argument prototype would still apply.  */
2145#ifdef __cplusplus
2146extern "C"
2147#endif
2148char $2 ();
2149/* The GNU C library defines this for functions which it implements
2150    to always fail with ENOSYS.  Some functions are actually named
2151    something starting with __ and the normal name is an alias.  */
2152#if defined __stub_$2 || defined __stub___$2
2153choke me
2154#endif
2155
2156int
2157main ()
2158{
2159return $2 ();
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_cxx_try_link "$LINENO"; then :
2165  eval "$3=yes"
2166else
2167  eval "$3=no"
2168fi
2169rm -f core conftest.err conftest.$ac_objext \
2170    conftest$ac_exeext conftest.$ac_ext
2171fi
2172eval ac_res=\$$3
2173	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
2175  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176
2177} # ac_fn_cxx_check_func
2178
2179# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2180# --------------------------------------------
2181# Tries to find the compile-time value of EXPR in a program that includes
2182# INCLUDES, setting VAR accordingly. Returns whether the value could be
2183# computed
2184ac_fn_c_compute_int ()
2185{
2186  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187  if test "$cross_compiling" = yes; then
2188    # Depending upon the size, compute the lo and hi bounds.
2189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h.  */
2191$4
2192int
2193main ()
2194{
2195static int test_array [1 - 2 * !(($2) >= 0)];
2196test_array [0] = 0;
2197return test_array [0];
2198
2199  ;
2200  return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204  ac_lo=0 ac_mid=0
2205  while :; do
2206    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h.  */
2208$4
2209int
2210main ()
2211{
2212static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213test_array [0] = 0;
2214return test_array [0];
2215
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220if ac_fn_c_try_compile "$LINENO"; then :
2221  ac_hi=$ac_mid; break
2222else
2223  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2224			if test $ac_lo -le $ac_mid; then
2225			  ac_lo= ac_hi=
2226			  break
2227			fi
2228			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231  done
2232else
2233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234/* end confdefs.h.  */
2235$4
2236int
2237main ()
2238{
2239static int test_array [1 - 2 * !(($2) < 0)];
2240test_array [0] = 0;
2241return test_array [0];
2242
2243  ;
2244  return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248  ac_hi=-1 ac_mid=-1
2249  while :; do
2250    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251/* end confdefs.h.  */
2252$4
2253int
2254main ()
2255{
2256static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2257test_array [0] = 0;
2258return test_array [0];
2259
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_compile "$LINENO"; then :
2265  ac_lo=$ac_mid; break
2266else
2267  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2268			if test $ac_mid -le $ac_hi; then
2269			  ac_lo= ac_hi=
2270			  break
2271			fi
2272			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275  done
2276else
2277  ac_lo= ac_hi=
2278fi
2279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280fi
2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282# Binary search between lo and hi bounds.
2283while test "x$ac_lo" != "x$ac_hi"; do
2284  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286/* end confdefs.h.  */
2287$4
2288int
2289main ()
2290{
2291static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292test_array [0] = 0;
2293return test_array [0];
2294
2295  ;
2296  return 0;
2297}
2298_ACEOF
2299if ac_fn_c_try_compile "$LINENO"; then :
2300  ac_hi=$ac_mid
2301else
2302  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2303fi
2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305done
2306case $ac_lo in #((
2307?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2308'') ac_retval=1 ;;
2309esac
2310  else
2311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h.  */
2313$4
2314static long int longval () { return $2; }
2315static unsigned long int ulongval () { return $2; }
2316#include <stdio.h>
2317#include <stdlib.h>
2318int
2319main ()
2320{
2321
2322  FILE *f = fopen ("conftest.val", "w");
2323  if (! f)
2324    return 1;
2325  if (($2) < 0)
2326    {
2327      long int i = longval ();
2328      if (i != ($2))
2329	return 1;
2330      fprintf (f, "%ld", i);
2331    }
2332  else
2333    {
2334      unsigned long int i = ulongval ();
2335      if (i != ($2))
2336	return 1;
2337      fprintf (f, "%lu", i);
2338    }
2339  /* Do not output a trailing newline, as this causes \r\n confusion
2340     on some platforms.  */
2341  return ferror (f) || fclose (f) != 0;
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347if ac_fn_c_try_run "$LINENO"; then :
2348  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2349else
2350  ac_retval=1
2351fi
2352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2353  conftest.$ac_objext conftest.beam conftest.$ac_ext
2354rm -f conftest.val
2355
2356  fi
2357  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358  as_fn_set_status $ac_retval
2359
2360} # ac_fn_c_compute_int
2361cat >config.log <<_ACEOF
2362This file contains any messages produced by compilers while
2363running configure, to aid debugging if configure makes a mistake.
2364
2365It was created by $as_me, which was
2366generated by GNU Autoconf 2.69.  Invocation command line was
2367
2368  $ $0 $@
2369
2370_ACEOF
2371exec 5>>config.log
2372{
2373cat <<_ASUNAME
2374## --------- ##
2375## Platform. ##
2376## --------- ##
2377
2378hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2379uname -m = `(uname -m) 2>/dev/null || echo unknown`
2380uname -r = `(uname -r) 2>/dev/null || echo unknown`
2381uname -s = `(uname -s) 2>/dev/null || echo unknown`
2382uname -v = `(uname -v) 2>/dev/null || echo unknown`
2383
2384/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2385/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2386
2387/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2388/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2389/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2390/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2391/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2392/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2393/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2394
2395_ASUNAME
2396
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402    $as_echo "PATH: $as_dir"
2403  done
2404IFS=$as_save_IFS
2405
2406} >&5
2407
2408cat >&5 <<_ACEOF
2409
2410
2411## ----------- ##
2412## Core tests. ##
2413## ----------- ##
2414
2415_ACEOF
2416
2417
2418# Keep a trace of the command line.
2419# Strip out --no-create and --no-recursion so they do not pile up.
2420# Strip out --silent because we don't want to record it for future runs.
2421# Also quote any args containing shell meta-characters.
2422# Make two passes to allow for proper duplicate-argument suppression.
2423ac_configure_args=
2424ac_configure_args0=
2425ac_configure_args1=
2426ac_must_keep_next=false
2427for ac_pass in 1 2
2428do
2429  for ac_arg
2430  do
2431    case $ac_arg in
2432    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2433    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2434    | -silent | --silent | --silen | --sile | --sil)
2435      continue ;;
2436    *\'*)
2437      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2438    esac
2439    case $ac_pass in
2440    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2441    2)
2442      as_fn_append ac_configure_args1 " '$ac_arg'"
2443      if test $ac_must_keep_next = true; then
2444	ac_must_keep_next=false # Got value, back to normal.
2445      else
2446	case $ac_arg in
2447	  *=* | --config-cache | -C | -disable-* | --disable-* \
2448	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2449	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2450	  | -with-* | --with-* | -without-* | --without-* | --x)
2451	    case "$ac_configure_args0 " in
2452	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2453	    esac
2454	    ;;
2455	  -* ) ac_must_keep_next=true ;;
2456	esac
2457      fi
2458      as_fn_append ac_configure_args " '$ac_arg'"
2459      ;;
2460    esac
2461  done
2462done
2463{ ac_configure_args0=; unset ac_configure_args0;}
2464{ ac_configure_args1=; unset ac_configure_args1;}
2465
2466# When interrupted or exit'd, cleanup temporary files, and complete
2467# config.log.  We remove comments because anyway the quotes in there
2468# would cause problems or look ugly.
2469# WARNING: Use '\'' to represent an apostrophe within the trap.
2470# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2471trap 'exit_status=$?
2472  # Save into config.log some information that might help in debugging.
2473  {
2474    echo
2475
2476    $as_echo "## ---------------- ##
2477## Cache variables. ##
2478## ---------------- ##"
2479    echo
2480    # The following way of writing the cache mishandles newlines in values,
2481(
2482  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2483    eval ac_val=\$$ac_var
2484    case $ac_val in #(
2485    *${as_nl}*)
2486      case $ac_var in #(
2487      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2488$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2489      esac
2490      case $ac_var in #(
2491      _ | IFS | as_nl) ;; #(
2492      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2493      *) { eval $ac_var=; unset $ac_var;} ;;
2494      esac ;;
2495    esac
2496  done
2497  (set) 2>&1 |
2498    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2499    *${as_nl}ac_space=\ *)
2500      sed -n \
2501	"s/'\''/'\''\\\\'\'''\''/g;
2502	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2503      ;; #(
2504    *)
2505      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2506      ;;
2507    esac |
2508    sort
2509)
2510    echo
2511
2512    $as_echo "## ----------------- ##
2513## Output variables. ##
2514## ----------------- ##"
2515    echo
2516    for ac_var in $ac_subst_vars
2517    do
2518      eval ac_val=\$$ac_var
2519      case $ac_val in
2520      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521      esac
2522      $as_echo "$ac_var='\''$ac_val'\''"
2523    done | sort
2524    echo
2525
2526    if test -n "$ac_subst_files"; then
2527      $as_echo "## ------------------- ##
2528## File substitutions. ##
2529## ------------------- ##"
2530      echo
2531      for ac_var in $ac_subst_files
2532      do
2533	eval ac_val=\$$ac_var
2534	case $ac_val in
2535	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536	esac
2537	$as_echo "$ac_var='\''$ac_val'\''"
2538      done | sort
2539      echo
2540    fi
2541
2542    if test -s confdefs.h; then
2543      $as_echo "## ----------- ##
2544## confdefs.h. ##
2545## ----------- ##"
2546      echo
2547      cat confdefs.h
2548      echo
2549    fi
2550    test "$ac_signal" != 0 &&
2551      $as_echo "$as_me: caught signal $ac_signal"
2552    $as_echo "$as_me: exit $exit_status"
2553  } >&5
2554  rm -f core *.core core.conftest.* &&
2555    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556    exit $exit_status
2557' 0
2558for ac_signal in 1 2 13 15; do
2559  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2560done
2561ac_signal=0
2562
2563# confdefs.h avoids OS command line length limits that DEFS can exceed.
2564rm -f -r conftest* confdefs.h
2565
2566$as_echo "/* confdefs.h */" > confdefs.h
2567
2568# Predefined preprocessor variables.
2569
2570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_NAME "$PACKAGE_NAME"
2572_ACEOF
2573
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576_ACEOF
2577
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_VERSION "$PACKAGE_VERSION"
2580_ACEOF
2581
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_STRING "$PACKAGE_STRING"
2584_ACEOF
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588_ACEOF
2589
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_URL "$PACKAGE_URL"
2592_ACEOF
2593
2594
2595# Let the site file select an alternate cache file if it wants to.
2596# Prefer an explicitly selected file to automatically selected ones.
2597ac_site_file1=NONE
2598ac_site_file2=NONE
2599if test -n "$CONFIG_SITE"; then
2600  # We do not want a PATH search for config.site.
2601  case $CONFIG_SITE in #((
2602    -*)  ac_site_file1=./$CONFIG_SITE;;
2603    */*) ac_site_file1=$CONFIG_SITE;;
2604    *)   ac_site_file1=./$CONFIG_SITE;;
2605  esac
2606elif test "x$prefix" != xNONE; then
2607  ac_site_file1=$prefix/share/config.site
2608  ac_site_file2=$prefix/etc/config.site
2609else
2610  ac_site_file1=$ac_default_prefix/share/config.site
2611  ac_site_file2=$ac_default_prefix/etc/config.site
2612fi
2613for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2614do
2615  test "x$ac_site_file" = xNONE && continue
2616  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2617    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2618$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2619    sed 's/^/| /' "$ac_site_file" >&5
2620    . "$ac_site_file" \
2621      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623as_fn_error $? "failed to load site script $ac_site_file
2624See \`config.log' for more details" "$LINENO" 5; }
2625  fi
2626done
2627
2628if test -r "$cache_file"; then
2629  # Some versions of bash will fail to source /dev/null (special files
2630  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2631  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2632    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633$as_echo "$as_me: loading cache $cache_file" >&6;}
2634    case $cache_file in
2635      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2636      *)                      . "./$cache_file";;
2637    esac
2638  fi
2639else
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641$as_echo "$as_me: creating cache $cache_file" >&6;}
2642  >$cache_file
2643fi
2644
2645as_fn_append ac_header_list " stdlib.h"
2646as_fn_append ac_header_list " unistd.h"
2647as_fn_append ac_header_list " sys/param.h"
2648# Check that the precious variables saved in the cache have kept the same
2649# value.
2650ac_cache_corrupted=false
2651for ac_var in $ac_precious_vars; do
2652  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653  eval ac_new_set=\$ac_env_${ac_var}_set
2654  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655  eval ac_new_val=\$ac_env_${ac_var}_value
2656  case $ac_old_set,$ac_new_set in
2657    set,)
2658      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660      ac_cache_corrupted=: ;;
2661    ,set)
2662      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664      ac_cache_corrupted=: ;;
2665    ,);;
2666    *)
2667      if test "x$ac_old_val" != "x$ac_new_val"; then
2668	# differences in whitespace do not lead to failure.
2669	ac_old_val_w=`echo x $ac_old_val`
2670	ac_new_val_w=`echo x $ac_new_val`
2671	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674	  ac_cache_corrupted=:
2675	else
2676	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678	  eval $ac_var=\$ac_old_val
2679	fi
2680	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2681$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2682	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2683$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2684      fi;;
2685  esac
2686  # Pass precious variables to config.status.
2687  if test "$ac_new_set" = set; then
2688    case $ac_new_val in
2689    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690    *) ac_arg=$ac_var=$ac_new_val ;;
2691    esac
2692    case " $ac_configure_args " in
2693      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2694      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695    esac
2696  fi
2697done
2698if $ac_cache_corrupted; then
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704fi
2705## -------------------- ##
2706## Main body of script. ##
2707## -------------------- ##
2708
2709ac_ext=c
2710ac_cpp='$CPP $CPPFLAGS'
2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716
2717
2718
2719
2720
2721ac_config_headers="$ac_config_headers config.h:config.in"
2722
2723
2724
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2726$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2727    # Check whether --enable-maintainer-mode was given.
2728if test "${enable_maintainer_mode+set}" = set; then :
2729  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2730else
2731  USE_MAINTAINER_MODE=no
2732fi
2733
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2735$as_echo "$USE_MAINTAINER_MODE" >&6; }
2736   if test $USE_MAINTAINER_MODE = yes; then
2737  MAINTAINER_MODE_TRUE=
2738  MAINTAINER_MODE_FALSE='#'
2739else
2740  MAINTAINER_MODE_TRUE='#'
2741  MAINTAINER_MODE_FALSE=
2742fi
2743
2744  MAINT=$MAINTAINER_MODE_TRUE
2745
2746
2747
2748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753if test -n "$ac_tool_prefix"; then
2754  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2755set dummy ${ac_tool_prefix}gcc; ac_word=$2
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757$as_echo_n "checking for $ac_word... " >&6; }
2758if ${ac_cv_prog_CC+:} false; then :
2759  $as_echo_n "(cached) " >&6
2760else
2761  if test -n "$CC"; then
2762  ac_cv_prog_CC="$CC" # Let the user override the test.
2763else
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767  IFS=$as_save_IFS
2768  test -z "$as_dir" && as_dir=.
2769    for ac_exec_ext in '' $ac_executable_extensions; do
2770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773    break 2
2774  fi
2775done
2776  done
2777IFS=$as_save_IFS
2778
2779fi
2780fi
2781CC=$ac_cv_prog_CC
2782if test -n "$CC"; then
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2784$as_echo "$CC" >&6; }
2785else
2786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787$as_echo "no" >&6; }
2788fi
2789
2790
2791fi
2792if test -z "$ac_cv_prog_CC"; then
2793  ac_ct_CC=$CC
2794  # Extract the first word of "gcc", so it can be a program name with args.
2795set dummy gcc; ac_word=$2
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
2798if ${ac_cv_prog_ac_ct_CC+:} false; then :
2799  $as_echo_n "(cached) " >&6
2800else
2801  if test -n "$ac_ct_CC"; then
2802  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807  IFS=$as_save_IFS
2808  test -z "$as_dir" && as_dir=.
2809    for ac_exec_ext in '' $ac_executable_extensions; do
2810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811    ac_cv_prog_ac_ct_CC="gcc"
2812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816  done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822if test -n "$ac_ct_CC"; then
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824$as_echo "$ac_ct_CC" >&6; }
2825else
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830  if test "x$ac_ct_CC" = x; then
2831    CC=""
2832  else
2833    case $cross_compiling:$ac_tool_warned in
2834yes:)
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2837ac_tool_warned=yes ;;
2838esac
2839    CC=$ac_ct_CC
2840  fi
2841else
2842  CC="$ac_cv_prog_CC"
2843fi
2844
2845if test -z "$CC"; then
2846          if test -n "$ac_tool_prefix"; then
2847    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2848set dummy ${ac_tool_prefix}cc; ac_word=$2
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if ${ac_cv_prog_CC+:} false; then :
2852  $as_echo_n "(cached) " >&6
2853else
2854  if test -n "$CC"; then
2855  ac_cv_prog_CC="$CC" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862    for ac_exec_ext in '' $ac_executable_extensions; do
2863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864    ac_cv_prog_CC="${ac_tool_prefix}cc"
2865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869  done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874CC=$ac_cv_prog_CC
2875if test -n "$CC"; then
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877$as_echo "$CC" >&6; }
2878else
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883
2884  fi
2885fi
2886if test -z "$CC"; then
2887  # Extract the first word of "cc", so it can be a program name with args.
2888set dummy cc; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
2891if ${ac_cv_prog_CC+:} false; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test -n "$CC"; then
2895  ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
2897  ac_prog_rejected=no
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903    for ac_exec_ext in '' $ac_executable_extensions; do
2904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2906       ac_prog_rejected=yes
2907       continue
2908     fi
2909    ac_cv_prog_CC="cc"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917if test $ac_prog_rejected = yes; then
2918  # We found a bogon in the path, so make sure we never use it.
2919  set dummy $ac_cv_prog_CC
2920  shift
2921  if test $# != 0; then
2922    # We chose a different compiler from the bogus one.
2923    # However, it has the same basename, so the bogon will be chosen
2924    # first if we set CC to just the basename; use the full file name.
2925    shift
2926    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927  fi
2928fi
2929fi
2930fi
2931CC=$ac_cv_prog_CC
2932if test -n "$CC"; then
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934$as_echo "$CC" >&6; }
2935else
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938fi
2939
2940
2941fi
2942if test -z "$CC"; then
2943  if test -n "$ac_tool_prefix"; then
2944  for ac_prog in cl.exe
2945  do
2946    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949$as_echo_n "checking for $ac_word... " >&6; }
2950if ${ac_cv_prog_CC+:} false; then :
2951  $as_echo_n "(cached) " >&6
2952else
2953  if test -n "$CC"; then
2954  ac_cv_prog_CC="$CC" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959  IFS=$as_save_IFS
2960  test -z "$as_dir" && as_dir=.
2961    for ac_exec_ext in '' $ac_executable_extensions; do
2962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968  done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
2973CC=$ac_cv_prog_CC
2974if test -n "$CC"; then
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976$as_echo "$CC" >&6; }
2977else
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980fi
2981
2982
2983    test -n "$CC" && break
2984  done
2985fi
2986if test -z "$CC"; then
2987  ac_ct_CC=$CC
2988  for ac_prog in cl.exe
2989do
2990  # Extract the first word of "$ac_prog", so it can be a program name with args.
2991set dummy $ac_prog; ac_word=$2
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if ${ac_cv_prog_ac_ct_CC+:} false; then :
2995  $as_echo_n "(cached) " >&6
2996else
2997  if test -n "$ac_ct_CC"; then
2998  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003  IFS=$as_save_IFS
3004  test -z "$as_dir" && as_dir=.
3005    for ac_exec_ext in '' $ac_executable_extensions; do
3006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007    ac_cv_prog_ac_ct_CC="$ac_prog"
3008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009    break 2
3010  fi
3011done
3012  done
3013IFS=$as_save_IFS
3014
3015fi
3016fi
3017ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018if test -n "$ac_ct_CC"; then
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3020$as_echo "$ac_ct_CC" >&6; }
3021else
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024fi
3025
3026
3027  test -n "$ac_ct_CC" && break
3028done
3029
3030  if test "x$ac_ct_CC" = x; then
3031    CC=""
3032  else
3033    case $cross_compiling:$ac_tool_warned in
3034yes:)
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037ac_tool_warned=yes ;;
3038esac
3039    CC=$ac_ct_CC
3040  fi
3041fi
3042
3043fi
3044
3045
3046test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048as_fn_error $? "no acceptable C compiler found in \$PATH
3049See \`config.log' for more details" "$LINENO" 5; }
3050
3051# Provide some information about the compiler.
3052$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3053set X $ac_compile
3054ac_compiler=$2
3055for ac_option in --version -v -V -qversion; do
3056  { { ac_try="$ac_compiler $ac_option >&5"
3057case "(($ac_try" in
3058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059  *) ac_try_echo=$ac_try;;
3060esac
3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062$as_echo "$ac_try_echo"; } >&5
3063  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3064  ac_status=$?
3065  if test -s conftest.err; then
3066    sed '10a\
3067... rest of stderr output deleted ...
3068         10q' conftest.err >conftest.er1
3069    cat conftest.er1 >&5
3070  fi
3071  rm -f conftest.er1 conftest.err
3072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073  test $ac_status = 0; }
3074done
3075
3076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077/* end confdefs.h.  */
3078
3079int
3080main ()
3081{
3082
3083  ;
3084  return 0;
3085}
3086_ACEOF
3087ac_clean_files_save=$ac_clean_files
3088ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3089# Try to create an executable without -o first, disregard a.out.
3090# It will help us diagnose broken compilers, and finding out an intuition
3091# of exeext.
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3093$as_echo_n "checking whether the C compiler works... " >&6; }
3094ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095
3096# The possible output files:
3097ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3098
3099ac_rmfiles=
3100for ac_file in $ac_files
3101do
3102  case $ac_file in
3103    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3104    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105  esac
3106done
3107rm -f $ac_rmfiles
3108
3109if { { ac_try="$ac_link_default"
3110case "(($ac_try" in
3111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112  *) ac_try_echo=$ac_try;;
3113esac
3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115$as_echo "$ac_try_echo"; } >&5
3116  (eval "$ac_link_default") 2>&5
3117  ac_status=$?
3118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119  test $ac_status = 0; }; then :
3120  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3123# so that the user can short-circuit this test for compilers unknown to
3124# Autoconf.
3125for ac_file in $ac_files ''
3126do
3127  test -f "$ac_file" || continue
3128  case $ac_file in
3129    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3130	;;
3131    [ab].out )
3132	# We found the default executable, but exeext='' is most
3133	# certainly right.
3134	break;;
3135    *.* )
3136	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137	then :; else
3138	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139	fi
3140	# We set ac_cv_exeext here because the later test for it is not
3141	# safe: cross compilers may not add the suffix if given an `-o'
3142	# argument, so we may need to know it at that point already.
3143	# Even if this section looks crufty: it has the advantage of
3144	# actually working.
3145	break;;
3146    * )
3147	break;;
3148  esac
3149done
3150test "$ac_cv_exeext" = no && ac_cv_exeext=
3151
3152else
3153  ac_file=''
3154fi
3155if test -z "$ac_file"; then :
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157$as_echo "no" >&6; }
3158$as_echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error 77 "C compiler cannot create executables
3164See \`config.log' for more details" "$LINENO" 5; }
3165else
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167$as_echo "yes" >&6; }
3168fi
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3170$as_echo_n "checking for C compiler default output file name... " >&6; }
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3172$as_echo "$ac_file" >&6; }
3173ac_exeext=$ac_cv_exeext
3174
3175rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3176ac_clean_files=$ac_clean_files_save
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3178$as_echo_n "checking for suffix of executables... " >&6; }
3179if { { ac_try="$ac_link"
3180case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185$as_echo "$ac_try_echo"; } >&5
3186  (eval "$ac_link") 2>&5
3187  ac_status=$?
3188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189  test $ac_status = 0; }; then :
3190  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3191# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3192# work properly (i.e., refer to `conftest.exe'), while it won't with
3193# `rm'.
3194for ac_file in conftest.exe conftest conftest.*; do
3195  test -f "$ac_file" || continue
3196  case $ac_file in
3197    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3199	  break;;
3200    * ) break;;
3201  esac
3202done
3203else
3204  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3207See \`config.log' for more details" "$LINENO" 5; }
3208fi
3209rm -f conftest conftest$ac_cv_exeext
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3211$as_echo "$ac_cv_exeext" >&6; }
3212
3213rm -f conftest.$ac_ext
3214EXEEXT=$ac_cv_exeext
3215ac_exeext=$EXEEXT
3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217/* end confdefs.h.  */
3218#include <stdio.h>
3219int
3220main ()
3221{
3222FILE *f = fopen ("conftest.out", "w");
3223 return ferror (f) || fclose (f) != 0;
3224
3225  ;
3226  return 0;
3227}
3228_ACEOF
3229ac_clean_files="$ac_clean_files conftest.out"
3230# Check that the compiler produces executables we can run.  If not, either
3231# the compiler is broken, or we cross compile.
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3233$as_echo_n "checking whether we are cross compiling... " >&6; }
3234if test "$cross_compiling" != yes; then
3235  { { ac_try="$ac_link"
3236case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241$as_echo "$ac_try_echo"; } >&5
3242  (eval "$ac_link") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245  test $ac_status = 0; }
3246  if { ac_try='./conftest$ac_cv_exeext'
3247  { { case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253  (eval "$ac_try") 2>&5
3254  ac_status=$?
3255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256  test $ac_status = 0; }; }; then
3257    cross_compiling=no
3258  else
3259    if test "$cross_compiling" = maybe; then
3260	cross_compiling=yes
3261    else
3262	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error $? "cannot run C compiled programs.
3265If you meant to cross compile, use \`--host'.
3266See \`config.log' for more details" "$LINENO" 5; }
3267    fi
3268  fi
3269fi
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3271$as_echo "$cross_compiling" >&6; }
3272
3273rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3274ac_clean_files=$ac_clean_files_save
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3276$as_echo_n "checking for suffix of object files... " >&6; }
3277if ${ac_cv_objext+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h.  */
3282
3283int
3284main ()
3285{
3286
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291rm -f conftest.o conftest.obj
3292if { { ac_try="$ac_compile"
3293case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
3299  (eval "$ac_compile") 2>&5
3300  ac_status=$?
3301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302  test $ac_status = 0; }; then :
3303  for ac_file in conftest.o conftest.obj conftest.*; do
3304  test -f "$ac_file" || continue;
3305  case $ac_file in
3306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3307    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308       break;;
3309  esac
3310done
3311else
3312  $as_echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317as_fn_error $? "cannot compute suffix of object files: cannot compile
3318See \`config.log' for more details" "$LINENO" 5; }
3319fi
3320rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3323$as_echo "$ac_cv_objext" >&6; }
3324OBJEXT=$ac_cv_objext
3325ac_objext=$OBJEXT
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3328if ${ac_cv_c_compiler_gnu+:} false; then :
3329  $as_echo_n "(cached) " >&6
3330else
3331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337#ifndef __GNUC__
3338       choke me
3339#endif
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345if ac_fn_c_try_compile "$LINENO"; then :
3346  ac_compiler_gnu=yes
3347else
3348  ac_compiler_gnu=no
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351ac_cv_c_compiler_gnu=$ac_compiler_gnu
3352
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3355$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3356if test $ac_compiler_gnu = yes; then
3357  GCC=yes
3358else
3359  GCC=
3360fi
3361ac_test_CFLAGS=${CFLAGS+set}
3362ac_save_CFLAGS=$CFLAGS
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3364$as_echo_n "checking whether $CC accepts -g... " >&6; }
3365if ${ac_cv_prog_cc_g+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  ac_save_c_werror_flag=$ac_c_werror_flag
3369   ac_c_werror_flag=yes
3370   ac_cv_prog_cc_g=no
3371   CFLAGS="-g"
3372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h.  */
3374
3375int
3376main ()
3377{
3378
3379  ;
3380  return 0;
3381}
3382_ACEOF
3383if ac_fn_c_try_compile "$LINENO"; then :
3384  ac_cv_prog_cc_g=yes
3385else
3386  CFLAGS=""
3387      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398if ac_fn_c_try_compile "$LINENO"; then :
3399
3400else
3401  ac_c_werror_flag=$ac_save_c_werror_flag
3402	 CFLAGS="-g"
3403	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414if ac_fn_c_try_compile "$LINENO"; then :
3415  ac_cv_prog_cc_g=yes
3416fi
3417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418fi
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420fi
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422   ac_c_werror_flag=$ac_save_c_werror_flag
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3425$as_echo "$ac_cv_prog_cc_g" >&6; }
3426if test "$ac_test_CFLAGS" = set; then
3427  CFLAGS=$ac_save_CFLAGS
3428elif test $ac_cv_prog_cc_g = yes; then
3429  if test "$GCC" = yes; then
3430    CFLAGS="-g -O2"
3431  else
3432    CFLAGS="-g"
3433  fi
3434else
3435  if test "$GCC" = yes; then
3436    CFLAGS="-O2"
3437  else
3438    CFLAGS=
3439  fi
3440fi
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3443if ${ac_cv_prog_cc_c89+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  ac_cv_prog_cc_c89=no
3447ac_save_CC=$CC
3448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450#include <stdarg.h>
3451#include <stdio.h>
3452struct stat;
3453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3454struct buf { int x; };
3455FILE * (*rcsopen) (struct buf *, struct stat *, int);
3456static char *e (p, i)
3457     char **p;
3458     int i;
3459{
3460  return p[i];
3461}
3462static char *f (char * (*g) (char **, int), char **p, ...)
3463{
3464  char *s;
3465  va_list v;
3466  va_start (v,p);
3467  s = g (p, va_arg (v,int));
3468  va_end (v);
3469  return s;
3470}
3471
3472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3473   function prototypes and stuff, but not '\xHH' hex character constants.
3474   These don't provoke an error unfortunately, instead are silently treated
3475   as 'x'.  The following induces an error, until -std is added to get
3476   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3477   array size at least.  It's necessary to write '\x00'==0 to get something
3478   that's true only with -std.  */
3479int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3480
3481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3482   inside strings and character constants.  */
3483#define FOO(x) 'x'
3484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3485
3486int test (int i, double x);
3487struct s1 {int (*f) (int a);};
3488struct s2 {int (*f) (double a);};
3489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3490int argc;
3491char **argv;
3492int
3493main ()
3494{
3495return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3501	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3502do
3503  CC="$ac_save_CC $ac_arg"
3504  if ac_fn_c_try_compile "$LINENO"; then :
3505  ac_cv_prog_cc_c89=$ac_arg
3506fi
3507rm -f core conftest.err conftest.$ac_objext
3508  test "x$ac_cv_prog_cc_c89" != "xno" && break
3509done
3510rm -f conftest.$ac_ext
3511CC=$ac_save_CC
3512
3513fi
3514# AC_CACHE_VAL
3515case "x$ac_cv_prog_cc_c89" in
3516  x)
3517    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3518$as_echo "none needed" >&6; } ;;
3519  xno)
3520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3521$as_echo "unsupported" >&6; } ;;
3522  *)
3523    CC="$CC $ac_cv_prog_cc_c89"
3524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3526esac
3527if test "x$ac_cv_prog_cc_c89" != xno; then :
3528
3529fi
3530
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537ac_ext=cpp
3538ac_cpp='$CXXCPP $CPPFLAGS'
3539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3542if test -z "$CXX"; then
3543  if test -n "$CCC"; then
3544    CXX=$CCC
3545  else
3546    if test -n "$ac_tool_prefix"; then
3547  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3548  do
3549    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; }
3553if ${ac_cv_prog_CXX+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  if test -n "$CXX"; then
3557  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562  IFS=$as_save_IFS
3563  test -z "$as_dir" && as_dir=.
3564    for ac_exec_ext in '' $ac_executable_extensions; do
3565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568    break 2
3569  fi
3570done
3571  done
3572IFS=$as_save_IFS
3573
3574fi
3575fi
3576CXX=$ac_cv_prog_CXX
3577if test -n "$CXX"; then
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3579$as_echo "$CXX" >&6; }
3580else
3581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583fi
3584
3585
3586    test -n "$CXX" && break
3587  done
3588fi
3589if test -z "$CXX"; then
3590  ac_ct_CXX=$CXX
3591  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3592do
3593  # Extract the first word of "$ac_prog", so it can be a program name with args.
3594set dummy $ac_prog; ac_word=$2
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596$as_echo_n "checking for $ac_word... " >&6; }
3597if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3598  $as_echo_n "(cached) " >&6
3599else
3600  if test -n "$ac_ct_CXX"; then
3601  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3602else
3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604for as_dir in $PATH
3605do
3606  IFS=$as_save_IFS
3607  test -z "$as_dir" && as_dir=.
3608    for ac_exec_ext in '' $ac_executable_extensions; do
3609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610    ac_cv_prog_ac_ct_CXX="$ac_prog"
3611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612    break 2
3613  fi
3614done
3615  done
3616IFS=$as_save_IFS
3617
3618fi
3619fi
3620ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3621if test -n "$ac_ct_CXX"; then
3622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3623$as_echo "$ac_ct_CXX" >&6; }
3624else
3625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626$as_echo "no" >&6; }
3627fi
3628
3629
3630  test -n "$ac_ct_CXX" && break
3631done
3632
3633  if test "x$ac_ct_CXX" = x; then
3634    CXX="g++"
3635  else
3636    case $cross_compiling:$ac_tool_warned in
3637yes:)
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3640ac_tool_warned=yes ;;
3641esac
3642    CXX=$ac_ct_CXX
3643  fi
3644fi
3645
3646  fi
3647fi
3648# Provide some information about the compiler.
3649$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3650set X $ac_compile
3651ac_compiler=$2
3652for ac_option in --version -v -V -qversion; do
3653  { { ac_try="$ac_compiler $ac_option >&5"
3654case "(($ac_try" in
3655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656  *) ac_try_echo=$ac_try;;
3657esac
3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659$as_echo "$ac_try_echo"; } >&5
3660  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3661  ac_status=$?
3662  if test -s conftest.err; then
3663    sed '10a\
3664... rest of stderr output deleted ...
3665         10q' conftest.err >conftest.er1
3666    cat conftest.er1 >&5
3667  fi
3668  rm -f conftest.er1 conftest.err
3669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670  test $ac_status = 0; }
3671done
3672
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3674$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3675if ${ac_cv_cxx_compiler_gnu+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681int
3682main ()
3683{
3684#ifndef __GNUC__
3685       choke me
3686#endif
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692if ac_fn_cxx_try_compile "$LINENO"; then :
3693  ac_compiler_gnu=yes
3694else
3695  ac_compiler_gnu=no
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3699
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3702$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3703if test $ac_compiler_gnu = yes; then
3704  GXX=yes
3705else
3706  GXX=
3707fi
3708ac_test_CXXFLAGS=${CXXFLAGS+set}
3709ac_save_CXXFLAGS=$CXXFLAGS
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3711$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3712if ${ac_cv_prog_cxx_g+:} false; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3716   ac_cxx_werror_flag=yes
3717   ac_cv_prog_cxx_g=no
3718   CXXFLAGS="-g"
3719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721
3722int
3723main ()
3724{
3725
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730if ac_fn_cxx_try_compile "$LINENO"; then :
3731  ac_cv_prog_cxx_g=yes
3732else
3733  CXXFLAGS=""
3734      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745if ac_fn_cxx_try_compile "$LINENO"; then :
3746
3747else
3748  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3749	 CXXFLAGS="-g"
3750	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h.  */
3752
3753int
3754main ()
3755{
3756
3757  ;
3758  return 0;
3759}
3760_ACEOF
3761if ac_fn_cxx_try_compile "$LINENO"; then :
3762  ac_cv_prog_cxx_g=yes
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3772$as_echo "$ac_cv_prog_cxx_g" >&6; }
3773if test "$ac_test_CXXFLAGS" = set; then
3774  CXXFLAGS=$ac_save_CXXFLAGS
3775elif test $ac_cv_prog_cxx_g = yes; then
3776  if test "$GXX" = yes; then
3777    CXXFLAGS="-g -O2"
3778  else
3779    CXXFLAGS="-g"
3780  fi
3781else
3782  if test "$GXX" = yes; then
3783    CXXFLAGS="-O2"
3784  else
3785    CXXFLAGS=
3786  fi
3787fi
3788ac_ext=c
3789ac_cpp='$CPP $CPPFLAGS'
3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793
3794
3795ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3801$as_echo_n "checking how to run the C preprocessor... " >&6; }
3802# On Suns, sometimes $CPP names a directory.
3803if test -n "$CPP" && test -d "$CPP"; then
3804  CPP=
3805fi
3806if test -z "$CPP"; then
3807  if ${ac_cv_prog_CPP+:} false; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810      # Double quotes because CPP needs to be expanded
3811    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3812    do
3813      ac_preproc_ok=false
3814for ac_c_preproc_warn_flag in '' yes
3815do
3816  # Use a header file that comes with gcc, so configuring glibc
3817  # with a fresh cross-compiler works.
3818  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3819  # <limits.h> exists even on freestanding compilers.
3820  # On the NeXT, cc -E runs the code through the compiler's parser,
3821  # not just through cpp. "Syntax error" is here to catch this case.
3822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824#ifdef __STDC__
3825# include <limits.h>
3826#else
3827# include <assert.h>
3828#endif
3829		     Syntax error
3830_ACEOF
3831if ac_fn_c_try_cpp "$LINENO"; then :
3832
3833else
3834  # Broken: fails on valid input.
3835continue
3836fi
3837rm -f conftest.err conftest.i conftest.$ac_ext
3838
3839  # OK, works on sane cases.  Now check whether nonexistent headers
3840  # can be detected and how.
3841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h.  */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if ac_fn_c_try_cpp "$LINENO"; then :
3846  # Broken: success on invalid input.
3847continue
3848else
3849  # Passes both tests.
3850ac_preproc_ok=:
3851break
3852fi
3853rm -f conftest.err conftest.i conftest.$ac_ext
3854
3855done
3856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857rm -f conftest.i conftest.err conftest.$ac_ext
3858if $ac_preproc_ok; then :
3859  break
3860fi
3861
3862    done
3863    ac_cv_prog_CPP=$CPP
3864
3865fi
3866  CPP=$ac_cv_prog_CPP
3867else
3868  ac_cv_prog_CPP=$CPP
3869fi
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3871$as_echo "$CPP" >&6; }
3872ac_preproc_ok=false
3873for ac_c_preproc_warn_flag in '' yes
3874do
3875  # Use a header file that comes with gcc, so configuring glibc
3876  # with a fresh cross-compiler works.
3877  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878  # <limits.h> exists even on freestanding compilers.
3879  # On the NeXT, cc -E runs the code through the compiler's parser,
3880  # not just through cpp. "Syntax error" is here to catch this case.
3881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h.  */
3883#ifdef __STDC__
3884# include <limits.h>
3885#else
3886# include <assert.h>
3887#endif
3888		     Syntax error
3889_ACEOF
3890if ac_fn_c_try_cpp "$LINENO"; then :
3891
3892else
3893  # Broken: fails on valid input.
3894continue
3895fi
3896rm -f conftest.err conftest.i conftest.$ac_ext
3897
3898  # OK, works on sane cases.  Now check whether nonexistent headers
3899  # can be detected and how.
3900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902#include <ac_nonexistent.h>
3903_ACEOF
3904if ac_fn_c_try_cpp "$LINENO"; then :
3905  # Broken: success on invalid input.
3906continue
3907else
3908  # Passes both tests.
3909ac_preproc_ok=:
3910break
3911fi
3912rm -f conftest.err conftest.i conftest.$ac_ext
3913
3914done
3915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3916rm -f conftest.i conftest.err conftest.$ac_ext
3917if $ac_preproc_ok; then :
3918
3919else
3920  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3923See \`config.log' for more details" "$LINENO" 5; }
3924fi
3925
3926ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3932
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3934$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3935if ${ac_cv_path_GREP+:} false; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  if test -z "$GREP"; then
3939  ac_path_GREP_found=false
3940  # Loop through the user's path and test for each of PROGNAME-LIST
3941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3943do
3944  IFS=$as_save_IFS
3945  test -z "$as_dir" && as_dir=.
3946    for ac_prog in grep ggrep; do
3947    for ac_exec_ext in '' $ac_executable_extensions; do
3948      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949      as_fn_executable_p "$ac_path_GREP" || continue
3950# Check for GNU ac_path_GREP and select it if it is found.
3951  # Check for GNU $ac_path_GREP
3952case `"$ac_path_GREP" --version 2>&1` in
3953*GNU*)
3954  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3955*)
3956  ac_count=0
3957  $as_echo_n 0123456789 >"conftest.in"
3958  while :
3959  do
3960    cat "conftest.in" "conftest.in" >"conftest.tmp"
3961    mv "conftest.tmp" "conftest.in"
3962    cp "conftest.in" "conftest.nl"
3963    $as_echo 'GREP' >> "conftest.nl"
3964    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966    as_fn_arith $ac_count + 1 && ac_count=$as_val
3967    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968      # Best one so far, save it but keep looking for a better one
3969      ac_cv_path_GREP="$ac_path_GREP"
3970      ac_path_GREP_max=$ac_count
3971    fi
3972    # 10*(2^10) chars as input seems more than enough
3973    test $ac_count -gt 10 && break
3974  done
3975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3976esac
3977
3978      $ac_path_GREP_found && break 3
3979    done
3980  done
3981  done
3982IFS=$as_save_IFS
3983  if test -z "$ac_cv_path_GREP"; then
3984    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3985  fi
3986else
3987  ac_cv_path_GREP=$GREP
3988fi
3989
3990fi
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3992$as_echo "$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3994
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3997$as_echo_n "checking for egrep... " >&6; }
3998if ${ac_cv_path_EGREP+:} false; then :
3999  $as_echo_n "(cached) " >&6
4000else
4001  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002   then ac_cv_path_EGREP="$GREP -E"
4003   else
4004     if test -z "$EGREP"; then
4005  ac_path_EGREP_found=false
4006  # Loop through the user's path and test for each of PROGNAME-LIST
4007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009do
4010  IFS=$as_save_IFS
4011  test -z "$as_dir" && as_dir=.
4012    for ac_prog in egrep; do
4013    for ac_exec_ext in '' $ac_executable_extensions; do
4014      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4015      as_fn_executable_p "$ac_path_EGREP" || continue
4016# Check for GNU ac_path_EGREP and select it if it is found.
4017  # Check for GNU $ac_path_EGREP
4018case `"$ac_path_EGREP" --version 2>&1` in
4019*GNU*)
4020  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021*)
4022  ac_count=0
4023  $as_echo_n 0123456789 >"conftest.in"
4024  while :
4025  do
4026    cat "conftest.in" "conftest.in" >"conftest.tmp"
4027    mv "conftest.tmp" "conftest.in"
4028    cp "conftest.in" "conftest.nl"
4029    $as_echo 'EGREP' >> "conftest.nl"
4030    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032    as_fn_arith $ac_count + 1 && ac_count=$as_val
4033    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4034      # Best one so far, save it but keep looking for a better one
4035      ac_cv_path_EGREP="$ac_path_EGREP"
4036      ac_path_EGREP_max=$ac_count
4037    fi
4038    # 10*(2^10) chars as input seems more than enough
4039    test $ac_count -gt 10 && break
4040  done
4041  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042esac
4043
4044      $ac_path_EGREP_found && break 3
4045    done
4046  done
4047  done
4048IFS=$as_save_IFS
4049  if test -z "$ac_cv_path_EGREP"; then
4050    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4051  fi
4052else
4053  ac_cv_path_EGREP=$EGREP
4054fi
4055
4056   fi
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4059$as_echo "$ac_cv_path_EGREP" >&6; }
4060 EGREP="$ac_cv_path_EGREP"
4061
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4064$as_echo_n "checking for ANSI C header files... " >&6; }
4065if ${ac_cv_header_stdc+:} false; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070#include <stdlib.h>
4071#include <stdarg.h>
4072#include <string.h>
4073#include <float.h>
4074
4075int
4076main ()
4077{
4078
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083if ac_fn_c_try_compile "$LINENO"; then :
4084  ac_cv_header_stdc=yes
4085else
4086  ac_cv_header_stdc=no
4087fi
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089
4090if test $ac_cv_header_stdc = yes; then
4091  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h.  */
4094#include <string.h>
4095
4096_ACEOF
4097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4098  $EGREP "memchr" >/dev/null 2>&1; then :
4099
4100else
4101  ac_cv_header_stdc=no
4102fi
4103rm -f conftest*
4104
4105fi
4106
4107if test $ac_cv_header_stdc = yes; then
4108  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h.  */
4111#include <stdlib.h>
4112
4113_ACEOF
4114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115  $EGREP "free" >/dev/null 2>&1; then :
4116
4117else
4118  ac_cv_header_stdc=no
4119fi
4120rm -f conftest*
4121
4122fi
4123
4124if test $ac_cv_header_stdc = yes; then
4125  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4126  if test "$cross_compiling" = yes; then :
4127  :
4128else
4129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130/* end confdefs.h.  */
4131#include <ctype.h>
4132#include <stdlib.h>
4133#if ((' ' & 0x0FF) == 0x020)
4134# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4135# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4136#else
4137# define ISLOWER(c) \
4138		   (('a' <= (c) && (c) <= 'i') \
4139		     || ('j' <= (c) && (c) <= 'r') \
4140		     || ('s' <= (c) && (c) <= 'z'))
4141# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4142#endif
4143
4144#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4145int
4146main ()
4147{
4148  int i;
4149  for (i = 0; i < 256; i++)
4150    if (XOR (islower (i), ISLOWER (i))
4151	|| toupper (i) != TOUPPER (i))
4152      return 2;
4153  return 0;
4154}
4155_ACEOF
4156if ac_fn_c_try_run "$LINENO"; then :
4157
4158else
4159  ac_cv_header_stdc=no
4160fi
4161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4162  conftest.$ac_objext conftest.beam conftest.$ac_ext
4163fi
4164
4165fi
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4168$as_echo "$ac_cv_header_stdc" >&6; }
4169if test $ac_cv_header_stdc = yes; then
4170
4171$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4172
4173fi
4174
4175# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4176for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4177		  inttypes.h stdint.h unistd.h
4178do :
4179  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4180ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4181"
4182if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4183  cat >>confdefs.h <<_ACEOF
4184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185_ACEOF
4186
4187fi
4188
4189done
4190
4191
4192
4193  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4194if test "x$ac_cv_header_minix_config_h" = xyes; then :
4195  MINIX=yes
4196else
4197  MINIX=
4198fi
4199
4200
4201  if test "$MINIX" = yes; then
4202
4203$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4204
4205
4206$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4207
4208
4209$as_echo "#define _MINIX 1" >>confdefs.h
4210
4211  fi
4212
4213
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4215$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4216if ${ac_cv_safe_to_define___extensions__+:} false; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220/* end confdefs.h.  */
4221
4222#         define __EXTENSIONS__ 1
4223          $ac_includes_default
4224int
4225main ()
4226{
4227
4228  ;
4229  return 0;
4230}
4231_ACEOF
4232if ac_fn_c_try_compile "$LINENO"; then :
4233  ac_cv_safe_to_define___extensions__=yes
4234else
4235  ac_cv_safe_to_define___extensions__=no
4236fi
4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4240$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4241  test $ac_cv_safe_to_define___extensions__ = yes &&
4242    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4243
4244  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4245
4246  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4247
4248  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4249
4250  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4251
4252
4253# Check whether --enable-largefile was given.
4254if test "${enable_largefile+set}" = set; then :
4255  enableval=$enable_largefile;
4256fi
4257
4258if test "$enable_largefile" != no; then
4259
4260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4261$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4262if ${ac_cv_sys_largefile_CC+:} false; then :
4263  $as_echo_n "(cached) " >&6
4264else
4265  ac_cv_sys_largefile_CC=no
4266     if test "$GCC" != yes; then
4267       ac_save_CC=$CC
4268       while :; do
4269	 # IRIX 6.2 and later do not support large files by default,
4270	 # so use the C compiler's -n32 option if that helps.
4271	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h.  */
4273#include <sys/types.h>
4274 /* Check that off_t can represent 2**63 - 1 correctly.
4275    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4276    since some C++ compilers masquerading as C compilers
4277    incorrectly reject 9223372036854775807.  */
4278#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4279  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4280		       && LARGE_OFF_T % 2147483647 == 1)
4281		      ? 1 : -1];
4282int
4283main ()
4284{
4285
4286  ;
4287  return 0;
4288}
4289_ACEOF
4290	 if ac_fn_c_try_compile "$LINENO"; then :
4291  break
4292fi
4293rm -f core conftest.err conftest.$ac_objext
4294	 CC="$CC -n32"
4295	 if ac_fn_c_try_compile "$LINENO"; then :
4296  ac_cv_sys_largefile_CC=' -n32'; break
4297fi
4298rm -f core conftest.err conftest.$ac_objext
4299	 break
4300       done
4301       CC=$ac_save_CC
4302       rm -f conftest.$ac_ext
4303    fi
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4306$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4307  if test "$ac_cv_sys_largefile_CC" != no; then
4308    CC=$CC$ac_cv_sys_largefile_CC
4309  fi
4310
4311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4312$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4313if ${ac_cv_sys_file_offset_bits+:} false; then :
4314  $as_echo_n "(cached) " >&6
4315else
4316  while :; do
4317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319#include <sys/types.h>
4320 /* Check that off_t can represent 2**63 - 1 correctly.
4321    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4322    since some C++ compilers masquerading as C compilers
4323    incorrectly reject 9223372036854775807.  */
4324#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4325  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4326		       && LARGE_OFF_T % 2147483647 == 1)
4327		      ? 1 : -1];
4328int
4329main ()
4330{
4331
4332  ;
4333  return 0;
4334}
4335_ACEOF
4336if ac_fn_c_try_compile "$LINENO"; then :
4337  ac_cv_sys_file_offset_bits=no; break
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h.  */
4342#define _FILE_OFFSET_BITS 64
4343#include <sys/types.h>
4344 /* Check that off_t can represent 2**63 - 1 correctly.
4345    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4346    since some C++ compilers masquerading as C compilers
4347    incorrectly reject 9223372036854775807.  */
4348#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4349  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4350		       && LARGE_OFF_T % 2147483647 == 1)
4351		      ? 1 : -1];
4352int
4353main ()
4354{
4355
4356  ;
4357  return 0;
4358}
4359_ACEOF
4360if ac_fn_c_try_compile "$LINENO"; then :
4361  ac_cv_sys_file_offset_bits=64; break
4362fi
4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364  ac_cv_sys_file_offset_bits=unknown
4365  break
4366done
4367fi
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4369$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4370case $ac_cv_sys_file_offset_bits in #(
4371  no | unknown) ;;
4372  *)
4373cat >>confdefs.h <<_ACEOF
4374#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4375_ACEOF
4376;;
4377esac
4378rm -rf conftest*
4379  if test $ac_cv_sys_file_offset_bits = unknown; then
4380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4381$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4382if ${ac_cv_sys_large_files+:} false; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  while :; do
4386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h.  */
4388#include <sys/types.h>
4389 /* Check that off_t can represent 2**63 - 1 correctly.
4390    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4391    since some C++ compilers masquerading as C compilers
4392    incorrectly reject 9223372036854775807.  */
4393#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4394  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4395		       && LARGE_OFF_T % 2147483647 == 1)
4396		      ? 1 : -1];
4397int
4398main ()
4399{
4400
4401  ;
4402  return 0;
4403}
4404_ACEOF
4405if ac_fn_c_try_compile "$LINENO"; then :
4406  ac_cv_sys_large_files=no; break
4407fi
4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h.  */
4411#define _LARGE_FILES 1
4412#include <sys/types.h>
4413 /* Check that off_t can represent 2**63 - 1 correctly.
4414    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4415    since some C++ compilers masquerading as C compilers
4416    incorrectly reject 9223372036854775807.  */
4417#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4418  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4419		       && LARGE_OFF_T % 2147483647 == 1)
4420		      ? 1 : -1];
4421int
4422main ()
4423{
4424
4425  ;
4426  return 0;
4427}
4428_ACEOF
4429if ac_fn_c_try_compile "$LINENO"; then :
4430  ac_cv_sys_large_files=1; break
4431fi
4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433  ac_cv_sys_large_files=unknown
4434  break
4435done
4436fi
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4438$as_echo "$ac_cv_sys_large_files" >&6; }
4439case $ac_cv_sys_large_files in #(
4440  no | unknown) ;;
4441  *)
4442cat >>confdefs.h <<_ACEOF
4443#define _LARGE_FILES $ac_cv_sys_large_files
4444_ACEOF
4445;;
4446esac
4447rm -rf conftest*
4448  fi
4449
4450
4451fi
4452
4453ac_aux_dir=
4454for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4455  if test -f "$ac_dir/install-sh"; then
4456    ac_aux_dir=$ac_dir
4457    ac_install_sh="$ac_aux_dir/install-sh -c"
4458    break
4459  elif test -f "$ac_dir/install.sh"; then
4460    ac_aux_dir=$ac_dir
4461    ac_install_sh="$ac_aux_dir/install.sh -c"
4462    break
4463  elif test -f "$ac_dir/shtool"; then
4464    ac_aux_dir=$ac_dir
4465    ac_install_sh="$ac_aux_dir/shtool install -c"
4466    break
4467  fi
4468done
4469if test -z "$ac_aux_dir"; then
4470  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4471fi
4472
4473# These three variables are undocumented and unsupported,
4474# and are intended to be withdrawn in a future Autoconf release.
4475# They can cause serious problems if a builder's source tree is in a directory
4476# whose full name contains unusual characters.
4477ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4478ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4479ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4480
4481
4482# Expand $ac_aux_dir to an absolute path.
4483am_aux_dir=`cd "$ac_aux_dir" && pwd`
4484
4485if test x"${install_sh+set}" != xset; then
4486  case $am_aux_dir in
4487  *\ * | *\	*)
4488    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4489  *)
4490    install_sh="\${SHELL} $am_aux_dir/install-sh"
4491  esac
4492fi
4493
4494# Installed binaries are usually stripped using 'strip' when the user
4495# run "make install-strip".  However 'strip' might not be the right
4496# tool to use in cross-compilation environments, therefore Automake
4497# will honor the 'STRIP' environment variable to overrule this program.
4498if test "$cross_compiling" != no; then
4499  if test -n "$ac_tool_prefix"; then
4500  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4501set dummy ${ac_tool_prefix}strip; ac_word=$2
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503$as_echo_n "checking for $ac_word... " >&6; }
4504if ${ac_cv_prog_STRIP+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  if test -n "$STRIP"; then
4508  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521done
4522  done
4523IFS=$as_save_IFS
4524
4525fi
4526fi
4527STRIP=$ac_cv_prog_STRIP
4528if test -n "$STRIP"; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4530$as_echo "$STRIP" >&6; }
4531else
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
4534fi
4535
4536
4537fi
4538if test -z "$ac_cv_prog_STRIP"; then
4539  ac_ct_STRIP=$STRIP
4540  # Extract the first word of "strip", so it can be a program name with args.
4541set dummy strip; ac_word=$2
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543$as_echo_n "checking for $ac_word... " >&6; }
4544if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  if test -n "$ac_ct_STRIP"; then
4548  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553  IFS=$as_save_IFS
4554  test -z "$as_dir" && as_dir=.
4555    for ac_exec_ext in '' $ac_executable_extensions; do
4556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557    ac_cv_prog_ac_ct_STRIP="strip"
4558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559    break 2
4560  fi
4561done
4562  done
4563IFS=$as_save_IFS
4564
4565fi
4566fi
4567ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4568if test -n "$ac_ct_STRIP"; then
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4570$as_echo "$ac_ct_STRIP" >&6; }
4571else
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573$as_echo "no" >&6; }
4574fi
4575
4576  if test "x$ac_ct_STRIP" = x; then
4577    STRIP=":"
4578  else
4579    case $cross_compiling:$ac_tool_warned in
4580yes:)
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583ac_tool_warned=yes ;;
4584esac
4585    STRIP=$ac_ct_STRIP
4586  fi
4587else
4588  STRIP="$ac_cv_prog_STRIP"
4589fi
4590
4591fi
4592INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4593
4594
4595# Set build, build_cpu, build_vendor and build_os.
4596# Make sure we can run config.sub.
4597$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4598  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4599
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4601$as_echo_n "checking build system type... " >&6; }
4602if ${ac_cv_build+:} false; then :
4603  $as_echo_n "(cached) " >&6
4604else
4605  ac_build_alias=$build_alias
4606test "x$ac_build_alias" = x &&
4607  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4608test "x$ac_build_alias" = x &&
4609  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4610ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4611  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4612
4613fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4615$as_echo "$ac_cv_build" >&6; }
4616case $ac_cv_build in
4617*-*-*) ;;
4618*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4619esac
4620build=$ac_cv_build
4621ac_save_IFS=$IFS; IFS='-'
4622set x $ac_cv_build
4623shift
4624build_cpu=$1
4625build_vendor=$2
4626shift; shift
4627# Remember, the first character of IFS is used to create $*,
4628# except with old shells:
4629build_os=$*
4630IFS=$ac_save_IFS
4631case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4632
4633
4634
4635# Set host, host_cpu, host_vendor, and host_os.
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4637$as_echo_n "checking host system type... " >&6; }
4638if ${ac_cv_host+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  if test "x$host_alias" = x; then
4642  ac_cv_host=$ac_cv_build
4643else
4644  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4645    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4646fi
4647
4648fi
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4650$as_echo "$ac_cv_host" >&6; }
4651case $ac_cv_host in
4652*-*-*) ;;
4653*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4654esac
4655host=$ac_cv_host
4656ac_save_IFS=$IFS; IFS='-'
4657set x $ac_cv_host
4658shift
4659host_cpu=$1
4660host_vendor=$2
4661shift; shift
4662# Remember, the first character of IFS is used to create $*,
4663# except with old shells:
4664host_os=$*
4665IFS=$ac_save_IFS
4666case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4667
4668
4669
4670# Set target, target_cpu, target_vendor, and target_os.
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4672$as_echo_n "checking target system type... " >&6; }
4673if ${ac_cv_target+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  if test "x$target_alias" = x; then
4677  ac_cv_target=$ac_cv_host
4678else
4679  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4680    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4681fi
4682
4683fi
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4685$as_echo "$ac_cv_target" >&6; }
4686case $ac_cv_target in
4687*-*-*) ;;
4688*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4689esac
4690target=$ac_cv_target
4691ac_save_IFS=$IFS; IFS='-'
4692set x $ac_cv_target
4693shift
4694target_cpu=$1
4695target_vendor=$2
4696shift; shift
4697# Remember, the first character of IFS is used to create $*,
4698# except with old shells:
4699target_os=$*
4700IFS=$ac_save_IFS
4701case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4702
4703
4704# The aliases save the names the user supplied, while $host etc.
4705# will get canonicalized.
4706test -n "$target_alias" &&
4707  test "$program_prefix$program_suffix$program_transform_name" = \
4708    NONENONEs,x,x, &&
4709  program_prefix=${target_alias}-
4710
4711# Find a good install program.  We prefer a C program (faster),
4712# so one script is as good as another.  But avoid the broken or
4713# incompatible versions:
4714# SysV /etc/install, /usr/sbin/install
4715# SunOS /usr/etc/install
4716# IRIX /sbin/install
4717# AIX /bin/install
4718# AmigaOS /C/install, which installs bootblocks on floppy discs
4719# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4720# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4721# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4722# OS/2's system install, which has a completely different semantic
4723# ./install, which can be erroneously created by make from ./install.sh.
4724# Reject install programs that cannot install multiple files.
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4726$as_echo_n "checking for a BSD-compatible install... " >&6; }
4727if test -z "$INSTALL"; then
4728if ${ac_cv_path_install+:} false; then :
4729  $as_echo_n "(cached) " >&6
4730else
4731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734  IFS=$as_save_IFS
4735  test -z "$as_dir" && as_dir=.
4736    # Account for people who put trailing slashes in PATH elements.
4737case $as_dir/ in #((
4738  ./ | .// | /[cC]/* | \
4739  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4740  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4741  /usr/ucb/* ) ;;
4742  *)
4743    # OSF1 and SCO ODT 3.0 have their own names for install.
4744    # Don't use installbsd from OSF since it installs stuff as root
4745    # by default.
4746    for ac_prog in ginstall scoinst install; do
4747      for ac_exec_ext in '' $ac_executable_extensions; do
4748	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4749	  if test $ac_prog = install &&
4750	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4751	    # AIX install.  It has an incompatible calling convention.
4752	    :
4753	  elif test $ac_prog = install &&
4754	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4755	    # program-specific install script used by HP pwplus--don't use.
4756	    :
4757	  else
4758	    rm -rf conftest.one conftest.two conftest.dir
4759	    echo one > conftest.one
4760	    echo two > conftest.two
4761	    mkdir conftest.dir
4762	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4763	      test -s conftest.one && test -s conftest.two &&
4764	      test -s conftest.dir/conftest.one &&
4765	      test -s conftest.dir/conftest.two
4766	    then
4767	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4768	      break 3
4769	    fi
4770	  fi
4771	fi
4772      done
4773    done
4774    ;;
4775esac
4776
4777  done
4778IFS=$as_save_IFS
4779
4780rm -rf conftest.one conftest.two conftest.dir
4781
4782fi
4783  if test "${ac_cv_path_install+set}" = set; then
4784    INSTALL=$ac_cv_path_install
4785  else
4786    # As a last resort, use the slow shell script.  Don't cache a
4787    # value for INSTALL within a source directory, because that will
4788    # break other packages using the cache if that directory is
4789    # removed, or if the value is a relative name.
4790    INSTALL=$ac_install_sh
4791  fi
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4794$as_echo "$INSTALL" >&6; }
4795
4796# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4797# It thinks the first close brace ends the variable substitution.
4798test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4799
4800test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4801
4802test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4803
4804if test -n "$ac_tool_prefix"; then
4805  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4806set dummy ${ac_tool_prefix}ar; ac_word=$2
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
4809if ${ac_cv_prog_AR+:} false; then :
4810  $as_echo_n "(cached) " >&6
4811else
4812  if test -n "$AR"; then
4813  ac_cv_prog_AR="$AR" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818  IFS=$as_save_IFS
4819  test -z "$as_dir" && as_dir=.
4820    for ac_exec_ext in '' $ac_executable_extensions; do
4821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822    ac_cv_prog_AR="${ac_tool_prefix}ar"
4823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824    break 2
4825  fi
4826done
4827  done
4828IFS=$as_save_IFS
4829
4830fi
4831fi
4832AR=$ac_cv_prog_AR
4833if test -n "$AR"; then
4834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4835$as_echo "$AR" >&6; }
4836else
4837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }
4839fi
4840
4841
4842fi
4843if test -z "$ac_cv_prog_AR"; then
4844  ac_ct_AR=$AR
4845  # Extract the first word of "ar", so it can be a program name with args.
4846set dummy ar; ac_word=$2
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848$as_echo_n "checking for $ac_word... " >&6; }
4849if ${ac_cv_prog_ac_ct_AR+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  if test -n "$ac_ct_AR"; then
4853  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858  IFS=$as_save_IFS
4859  test -z "$as_dir" && as_dir=.
4860    for ac_exec_ext in '' $ac_executable_extensions; do
4861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862    ac_cv_prog_ac_ct_AR="ar"
4863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864    break 2
4865  fi
4866done
4867  done
4868IFS=$as_save_IFS
4869
4870fi
4871fi
4872ac_ct_AR=$ac_cv_prog_ac_ct_AR
4873if test -n "$ac_ct_AR"; then
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4875$as_echo "$ac_ct_AR" >&6; }
4876else
4877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878$as_echo "no" >&6; }
4879fi
4880
4881  if test "x$ac_ct_AR" = x; then
4882    AR=""
4883  else
4884    case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890    AR=$ac_ct_AR
4891  fi
4892else
4893  AR="$ac_cv_prog_AR"
4894fi
4895
4896if test -n "$ac_tool_prefix"; then
4897  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4898set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900$as_echo_n "checking for $ac_word... " >&6; }
4901if ${ac_cv_prog_RANLIB+:} false; then :
4902  $as_echo_n "(cached) " >&6
4903else
4904  if test -n "$RANLIB"; then
4905  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4906else
4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910  IFS=$as_save_IFS
4911  test -z "$as_dir" && as_dir=.
4912    for ac_exec_ext in '' $ac_executable_extensions; do
4913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916    break 2
4917  fi
4918done
4919  done
4920IFS=$as_save_IFS
4921
4922fi
4923fi
4924RANLIB=$ac_cv_prog_RANLIB
4925if test -n "$RANLIB"; then
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4927$as_echo "$RANLIB" >&6; }
4928else
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }
4931fi
4932
4933
4934fi
4935if test -z "$ac_cv_prog_RANLIB"; then
4936  ac_ct_RANLIB=$RANLIB
4937  # Extract the first word of "ranlib", so it can be a program name with args.
4938set dummy ranlib; ac_word=$2
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940$as_echo_n "checking for $ac_word... " >&6; }
4941if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  if test -n "$ac_ct_RANLIB"; then
4945  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4946else
4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950  IFS=$as_save_IFS
4951  test -z "$as_dir" && as_dir=.
4952    for ac_exec_ext in '' $ac_executable_extensions; do
4953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954    ac_cv_prog_ac_ct_RANLIB="ranlib"
4955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956    break 2
4957  fi
4958done
4959  done
4960IFS=$as_save_IFS
4961
4962fi
4963fi
4964ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4965if test -n "$ac_ct_RANLIB"; then
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4967$as_echo "$ac_ct_RANLIB" >&6; }
4968else
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971fi
4972
4973  if test "x$ac_ct_RANLIB" = x; then
4974    RANLIB=":"
4975  else
4976    case $cross_compiling:$ac_tool_warned in
4977yes:)
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980ac_tool_warned=yes ;;
4981esac
4982    RANLIB=$ac_ct_RANLIB
4983  fi
4984else
4985  RANLIB="$ac_cv_prog_RANLIB"
4986fi
4987
4988
4989test "$program_prefix" != NONE &&
4990  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4991# Use a double $ so make ignores it.
4992test "$program_suffix" != NONE &&
4993  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4994# Double any \ or $.
4995# By default was `s,x,x', remove it if useless.
4996ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4997program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4998
4999
5000# We require a C++11 compiler.  Check if one is available, and if
5001# necessary, set CXX_DIALECT to some -std=xxx switch.
5002
5003  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5004  ac_ext=cpp
5005ac_cpp='$CXXCPP $CPPFLAGS'
5006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5009  CXX_DIALECT=""
5010  ac_success=no
5011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5012$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5013if ${ax_cv_cxx_compile_cxx11+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h.  */
5018
5019
5020// If the compiler admits that it is not ready for C++11, why torture it?
5021// Hopefully, this will speed up the test.
5022
5023#ifndef __cplusplus
5024
5025#error "This is not a C++ compiler"
5026
5027#elif __cplusplus < 201103L
5028
5029#error "This is not a C++11 compiler"
5030
5031#else
5032
5033namespace cxx11
5034{
5035
5036  namespace test_static_assert
5037  {
5038
5039    template <typename T>
5040    struct check
5041    {
5042      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5043    };
5044
5045  }
5046
5047  namespace test_final_override
5048  {
5049
5050    struct Base
5051    {
5052      virtual void f() {}
5053    };
5054
5055    struct Derived : public Base
5056    {
5057      virtual void f() override {}
5058    };
5059
5060  }
5061
5062  namespace test_double_right_angle_brackets
5063  {
5064
5065    template < typename T >
5066    struct check {};
5067
5068    typedef check<void> single_type;
5069    typedef check<check<void>> double_type;
5070    typedef check<check<check<void>>> triple_type;
5071    typedef check<check<check<check<void>>>> quadruple_type;
5072
5073  }
5074
5075  namespace test_decltype
5076  {
5077
5078    int
5079    f()
5080    {
5081      int a = 1;
5082      decltype(a) b = 2;
5083      return a + b;
5084    }
5085
5086  }
5087
5088  namespace test_type_deduction
5089  {
5090
5091    template < typename T1, typename T2 >
5092    struct is_same
5093    {
5094      static const bool value = false;
5095    };
5096
5097    template < typename T >
5098    struct is_same<T, T>
5099    {
5100      static const bool value = true;
5101    };
5102
5103    template < typename T1, typename T2 >
5104    auto
5105    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5106    {
5107      return a1 + a2;
5108    }
5109
5110    int
5111    test(const int c, volatile int v)
5112    {
5113      static_assert(is_same<int, decltype(0)>::value == true, "");
5114      static_assert(is_same<int, decltype(c)>::value == false, "");
5115      static_assert(is_same<int, decltype(v)>::value == false, "");
5116      auto ac = c;
5117      auto av = v;
5118      auto sumi = ac + av + 'x';
5119      auto sumf = ac + av + 1.0;
5120      static_assert(is_same<int, decltype(ac)>::value == true, "");
5121      static_assert(is_same<int, decltype(av)>::value == true, "");
5122      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5123      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5124      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5125      return (sumf > 0.0) ? sumi : add(c, v);
5126    }
5127
5128  }
5129
5130  namespace test_noexcept
5131  {
5132
5133    int f() { return 0; }
5134    int g() noexcept { return 0; }
5135
5136    static_assert(noexcept(f()) == false, "");
5137    static_assert(noexcept(g()) == true, "");
5138
5139  }
5140
5141  namespace test_constexpr
5142  {
5143
5144    template < typename CharT >
5145    unsigned long constexpr
5146    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5147    {
5148      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5149    }
5150
5151    template < typename CharT >
5152    unsigned long constexpr
5153    strlen_c(const CharT *const s) noexcept
5154    {
5155      return strlen_c_r(s, 0UL);
5156    }
5157
5158    static_assert(strlen_c("") == 0UL, "");
5159    static_assert(strlen_c("1") == 1UL, "");
5160    static_assert(strlen_c("example") == 7UL, "");
5161    static_assert(strlen_c("another\0example") == 7UL, "");
5162
5163  }
5164
5165  namespace test_rvalue_references
5166  {
5167
5168    template < int N >
5169    struct answer
5170    {
5171      static constexpr int value = N;
5172    };
5173
5174    answer<1> f(int&)       { return answer<1>(); }
5175    answer<2> f(const int&) { return answer<2>(); }
5176    answer<3> f(int&&)      { return answer<3>(); }
5177
5178    void
5179    test()
5180    {
5181      int i = 0;
5182      const int c = 0;
5183      static_assert(decltype(f(i))::value == 1, "");
5184      static_assert(decltype(f(c))::value == 2, "");
5185      static_assert(decltype(f(0))::value == 3, "");
5186    }
5187
5188  }
5189
5190  namespace test_uniform_initialization
5191  {
5192
5193    struct test
5194    {
5195      static const int zero {};
5196      static const int one {1};
5197    };
5198
5199    static_assert(test::zero == 0, "");
5200    static_assert(test::one == 1, "");
5201
5202  }
5203
5204  namespace test_lambdas
5205  {
5206
5207    void
5208    test1()
5209    {
5210      auto lambda1 = [](){};
5211      auto lambda2 = lambda1;
5212      lambda1();
5213      lambda2();
5214    }
5215
5216    int
5217    test2()
5218    {
5219      auto a = [](int i, int j){ return i + j; }(1, 2);
5220      auto b = []() -> int { return '0'; }();
5221      auto c = [=](){ return a + b; }();
5222      auto d = [&](){ return c; }();
5223      auto e = [a, &b](int x) mutable {
5224        const auto identity = [](int y){ return y; };
5225        for (auto i = 0; i < a; ++i)
5226          a += b--;
5227        return x + identity(a + b);
5228      }(0);
5229      return a + b + c + d + e;
5230    }
5231
5232    int
5233    test3()
5234    {
5235      const auto nullary = [](){ return 0; };
5236      const auto unary = [](int x){ return x; };
5237      using nullary_t = decltype(nullary);
5238      using unary_t = decltype(unary);
5239      const auto higher1st = [](nullary_t f){ return f(); };
5240      const auto higher2nd = [unary](nullary_t f1){
5241        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5242      };
5243      return higher1st(nullary) + higher2nd(nullary)(unary);
5244    }
5245
5246  }
5247
5248  namespace test_variadic_templates
5249  {
5250
5251    template <int...>
5252    struct sum;
5253
5254    template <int N0, int... N1toN>
5255    struct sum<N0, N1toN...>
5256    {
5257      static constexpr auto value = N0 + sum<N1toN...>::value;
5258    };
5259
5260    template <>
5261    struct sum<>
5262    {
5263      static constexpr auto value = 0;
5264    };
5265
5266    static_assert(sum<>::value == 0, "");
5267    static_assert(sum<1>::value == 1, "");
5268    static_assert(sum<23>::value == 23, "");
5269    static_assert(sum<1, 2>::value == 3, "");
5270    static_assert(sum<5, 5, 11>::value == 21, "");
5271    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5272
5273  }
5274
5275  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5276  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5277  // because of this.
5278  namespace test_template_alias_sfinae
5279  {
5280
5281    struct foo {};
5282
5283    template<typename T>
5284    using member = typename T::member_type;
5285
5286    template<typename T>
5287    void func(...) {}
5288
5289    template<typename T>
5290    void func(member<T>*) {}
5291
5292    void test();
5293
5294    void test() { func<foo>(0); }
5295
5296  }
5297
5298}  // namespace cxx11
5299
5300#endif  // __cplusplus >= 201103L
5301
5302
5303
5304_ACEOF
5305if ac_fn_cxx_try_compile "$LINENO"; then :
5306  ax_cv_cxx_compile_cxx11=yes
5307else
5308  ax_cv_cxx_compile_cxx11=no
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311fi
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5313$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5314  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5315    ac_success=yes
5316  fi
5317
5318    if test x$ac_success = xno; then
5319    for alternative in ${ax_cxx_compile_alternatives}; do
5320      switch="-std=gnu++${alternative}"
5321      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5322      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5323$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5324if eval \${$cachevar+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  ac_save_CXX="$CXX"
5328         CXX="$CXX $switch"
5329         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331
5332
5333// If the compiler admits that it is not ready for C++11, why torture it?
5334// Hopefully, this will speed up the test.
5335
5336#ifndef __cplusplus
5337
5338#error "This is not a C++ compiler"
5339
5340#elif __cplusplus < 201103L
5341
5342#error "This is not a C++11 compiler"
5343
5344#else
5345
5346namespace cxx11
5347{
5348
5349  namespace test_static_assert
5350  {
5351
5352    template <typename T>
5353    struct check
5354    {
5355      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5356    };
5357
5358  }
5359
5360  namespace test_final_override
5361  {
5362
5363    struct Base
5364    {
5365      virtual void f() {}
5366    };
5367
5368    struct Derived : public Base
5369    {
5370      virtual void f() override {}
5371    };
5372
5373  }
5374
5375  namespace test_double_right_angle_brackets
5376  {
5377
5378    template < typename T >
5379    struct check {};
5380
5381    typedef check<void> single_type;
5382    typedef check<check<void>> double_type;
5383    typedef check<check<check<void>>> triple_type;
5384    typedef check<check<check<check<void>>>> quadruple_type;
5385
5386  }
5387
5388  namespace test_decltype
5389  {
5390
5391    int
5392    f()
5393    {
5394      int a = 1;
5395      decltype(a) b = 2;
5396      return a + b;
5397    }
5398
5399  }
5400
5401  namespace test_type_deduction
5402  {
5403
5404    template < typename T1, typename T2 >
5405    struct is_same
5406    {
5407      static const bool value = false;
5408    };
5409
5410    template < typename T >
5411    struct is_same<T, T>
5412    {
5413      static const bool value = true;
5414    };
5415
5416    template < typename T1, typename T2 >
5417    auto
5418    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5419    {
5420      return a1 + a2;
5421    }
5422
5423    int
5424    test(const int c, volatile int v)
5425    {
5426      static_assert(is_same<int, decltype(0)>::value == true, "");
5427      static_assert(is_same<int, decltype(c)>::value == false, "");
5428      static_assert(is_same<int, decltype(v)>::value == false, "");
5429      auto ac = c;
5430      auto av = v;
5431      auto sumi = ac + av + 'x';
5432      auto sumf = ac + av + 1.0;
5433      static_assert(is_same<int, decltype(ac)>::value == true, "");
5434      static_assert(is_same<int, decltype(av)>::value == true, "");
5435      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5436      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5437      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5438      return (sumf > 0.0) ? sumi : add(c, v);
5439    }
5440
5441  }
5442
5443  namespace test_noexcept
5444  {
5445
5446    int f() { return 0; }
5447    int g() noexcept { return 0; }
5448
5449    static_assert(noexcept(f()) == false, "");
5450    static_assert(noexcept(g()) == true, "");
5451
5452  }
5453
5454  namespace test_constexpr
5455  {
5456
5457    template < typename CharT >
5458    unsigned long constexpr
5459    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5460    {
5461      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5462    }
5463
5464    template < typename CharT >
5465    unsigned long constexpr
5466    strlen_c(const CharT *const s) noexcept
5467    {
5468      return strlen_c_r(s, 0UL);
5469    }
5470
5471    static_assert(strlen_c("") == 0UL, "");
5472    static_assert(strlen_c("1") == 1UL, "");
5473    static_assert(strlen_c("example") == 7UL, "");
5474    static_assert(strlen_c("another\0example") == 7UL, "");
5475
5476  }
5477
5478  namespace test_rvalue_references
5479  {
5480
5481    template < int N >
5482    struct answer
5483    {
5484      static constexpr int value = N;
5485    };
5486
5487    answer<1> f(int&)       { return answer<1>(); }
5488    answer<2> f(const int&) { return answer<2>(); }
5489    answer<3> f(int&&)      { return answer<3>(); }
5490
5491    void
5492    test()
5493    {
5494      int i = 0;
5495      const int c = 0;
5496      static_assert(decltype(f(i))::value == 1, "");
5497      static_assert(decltype(f(c))::value == 2, "");
5498      static_assert(decltype(f(0))::value == 3, "");
5499    }
5500
5501  }
5502
5503  namespace test_uniform_initialization
5504  {
5505
5506    struct test
5507    {
5508      static const int zero {};
5509      static const int one {1};
5510    };
5511
5512    static_assert(test::zero == 0, "");
5513    static_assert(test::one == 1, "");
5514
5515  }
5516
5517  namespace test_lambdas
5518  {
5519
5520    void
5521    test1()
5522    {
5523      auto lambda1 = [](){};
5524      auto lambda2 = lambda1;
5525      lambda1();
5526      lambda2();
5527    }
5528
5529    int
5530    test2()
5531    {
5532      auto a = [](int i, int j){ return i + j; }(1, 2);
5533      auto b = []() -> int { return '0'; }();
5534      auto c = [=](){ return a + b; }();
5535      auto d = [&](){ return c; }();
5536      auto e = [a, &b](int x) mutable {
5537        const auto identity = [](int y){ return y; };
5538        for (auto i = 0; i < a; ++i)
5539          a += b--;
5540        return x + identity(a + b);
5541      }(0);
5542      return a + b + c + d + e;
5543    }
5544
5545    int
5546    test3()
5547    {
5548      const auto nullary = [](){ return 0; };
5549      const auto unary = [](int x){ return x; };
5550      using nullary_t = decltype(nullary);
5551      using unary_t = decltype(unary);
5552      const auto higher1st = [](nullary_t f){ return f(); };
5553      const auto higher2nd = [unary](nullary_t f1){
5554        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5555      };
5556      return higher1st(nullary) + higher2nd(nullary)(unary);
5557    }
5558
5559  }
5560
5561  namespace test_variadic_templates
5562  {
5563
5564    template <int...>
5565    struct sum;
5566
5567    template <int N0, int... N1toN>
5568    struct sum<N0, N1toN...>
5569    {
5570      static constexpr auto value = N0 + sum<N1toN...>::value;
5571    };
5572
5573    template <>
5574    struct sum<>
5575    {
5576      static constexpr auto value = 0;
5577    };
5578
5579    static_assert(sum<>::value == 0, "");
5580    static_assert(sum<1>::value == 1, "");
5581    static_assert(sum<23>::value == 23, "");
5582    static_assert(sum<1, 2>::value == 3, "");
5583    static_assert(sum<5, 5, 11>::value == 21, "");
5584    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5585
5586  }
5587
5588  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5589  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5590  // because of this.
5591  namespace test_template_alias_sfinae
5592  {
5593
5594    struct foo {};
5595
5596    template<typename T>
5597    using member = typename T::member_type;
5598
5599    template<typename T>
5600    void func(...) {}
5601
5602    template<typename T>
5603    void func(member<T>*) {}
5604
5605    void test();
5606
5607    void test() { func<foo>(0); }
5608
5609  }
5610
5611}  // namespace cxx11
5612
5613#endif  // __cplusplus >= 201103L
5614
5615
5616
5617_ACEOF
5618if ac_fn_cxx_try_compile "$LINENO"; then :
5619  eval $cachevar=yes
5620else
5621  eval $cachevar=no
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624         CXX="$ac_save_CXX"
5625fi
5626eval ac_res=\$$cachevar
5627	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5628$as_echo "$ac_res" >&6; }
5629      if eval test x\$$cachevar = xyes; then
5630        CXX_DIALECT="$switch"
5631        CXX="$CXX $switch"
5632        if test -n "$CXXCPP" ; then
5633          CXXCPP="$CXXCPP $switch"
5634        fi
5635        ac_success=yes
5636        break
5637      fi
5638    done
5639  fi
5640
5641    if test x$ac_success = xno; then
5642                for alternative in ${ax_cxx_compile_alternatives}; do
5643      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5644        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5645        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5646$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5647if eval \${$cachevar+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  ac_save_CXX="$CXX"
5651           CXX="$CXX $switch"
5652           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654
5655
5656// If the compiler admits that it is not ready for C++11, why torture it?
5657// Hopefully, this will speed up the test.
5658
5659#ifndef __cplusplus
5660
5661#error "This is not a C++ compiler"
5662
5663#elif __cplusplus < 201103L
5664
5665#error "This is not a C++11 compiler"
5666
5667#else
5668
5669namespace cxx11
5670{
5671
5672  namespace test_static_assert
5673  {
5674
5675    template <typename T>
5676    struct check
5677    {
5678      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5679    };
5680
5681  }
5682
5683  namespace test_final_override
5684  {
5685
5686    struct Base
5687    {
5688      virtual void f() {}
5689    };
5690
5691    struct Derived : public Base
5692    {
5693      virtual void f() override {}
5694    };
5695
5696  }
5697
5698  namespace test_double_right_angle_brackets
5699  {
5700
5701    template < typename T >
5702    struct check {};
5703
5704    typedef check<void> single_type;
5705    typedef check<check<void>> double_type;
5706    typedef check<check<check<void>>> triple_type;
5707    typedef check<check<check<check<void>>>> quadruple_type;
5708
5709  }
5710
5711  namespace test_decltype
5712  {
5713
5714    int
5715    f()
5716    {
5717      int a = 1;
5718      decltype(a) b = 2;
5719      return a + b;
5720    }
5721
5722  }
5723
5724  namespace test_type_deduction
5725  {
5726
5727    template < typename T1, typename T2 >
5728    struct is_same
5729    {
5730      static const bool value = false;
5731    };
5732
5733    template < typename T >
5734    struct is_same<T, T>
5735    {
5736      static const bool value = true;
5737    };
5738
5739    template < typename T1, typename T2 >
5740    auto
5741    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5742    {
5743      return a1 + a2;
5744    }
5745
5746    int
5747    test(const int c, volatile int v)
5748    {
5749      static_assert(is_same<int, decltype(0)>::value == true, "");
5750      static_assert(is_same<int, decltype(c)>::value == false, "");
5751      static_assert(is_same<int, decltype(v)>::value == false, "");
5752      auto ac = c;
5753      auto av = v;
5754      auto sumi = ac + av + 'x';
5755      auto sumf = ac + av + 1.0;
5756      static_assert(is_same<int, decltype(ac)>::value == true, "");
5757      static_assert(is_same<int, decltype(av)>::value == true, "");
5758      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5759      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5760      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5761      return (sumf > 0.0) ? sumi : add(c, v);
5762    }
5763
5764  }
5765
5766  namespace test_noexcept
5767  {
5768
5769    int f() { return 0; }
5770    int g() noexcept { return 0; }
5771
5772    static_assert(noexcept(f()) == false, "");
5773    static_assert(noexcept(g()) == true, "");
5774
5775  }
5776
5777  namespace test_constexpr
5778  {
5779
5780    template < typename CharT >
5781    unsigned long constexpr
5782    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5783    {
5784      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5785    }
5786
5787    template < typename CharT >
5788    unsigned long constexpr
5789    strlen_c(const CharT *const s) noexcept
5790    {
5791      return strlen_c_r(s, 0UL);
5792    }
5793
5794    static_assert(strlen_c("") == 0UL, "");
5795    static_assert(strlen_c("1") == 1UL, "");
5796    static_assert(strlen_c("example") == 7UL, "");
5797    static_assert(strlen_c("another\0example") == 7UL, "");
5798
5799  }
5800
5801  namespace test_rvalue_references
5802  {
5803
5804    template < int N >
5805    struct answer
5806    {
5807      static constexpr int value = N;
5808    };
5809
5810    answer<1> f(int&)       { return answer<1>(); }
5811    answer<2> f(const int&) { return answer<2>(); }
5812    answer<3> f(int&&)      { return answer<3>(); }
5813
5814    void
5815    test()
5816    {
5817      int i = 0;
5818      const int c = 0;
5819      static_assert(decltype(f(i))::value == 1, "");
5820      static_assert(decltype(f(c))::value == 2, "");
5821      static_assert(decltype(f(0))::value == 3, "");
5822    }
5823
5824  }
5825
5826  namespace test_uniform_initialization
5827  {
5828
5829    struct test
5830    {
5831      static const int zero {};
5832      static const int one {1};
5833    };
5834
5835    static_assert(test::zero == 0, "");
5836    static_assert(test::one == 1, "");
5837
5838  }
5839
5840  namespace test_lambdas
5841  {
5842
5843    void
5844    test1()
5845    {
5846      auto lambda1 = [](){};
5847      auto lambda2 = lambda1;
5848      lambda1();
5849      lambda2();
5850    }
5851
5852    int
5853    test2()
5854    {
5855      auto a = [](int i, int j){ return i + j; }(1, 2);
5856      auto b = []() -> int { return '0'; }();
5857      auto c = [=](){ return a + b; }();
5858      auto d = [&](){ return c; }();
5859      auto e = [a, &b](int x) mutable {
5860        const auto identity = [](int y){ return y; };
5861        for (auto i = 0; i < a; ++i)
5862          a += b--;
5863        return x + identity(a + b);
5864      }(0);
5865      return a + b + c + d + e;
5866    }
5867
5868    int
5869    test3()
5870    {
5871      const auto nullary = [](){ return 0; };
5872      const auto unary = [](int x){ return x; };
5873      using nullary_t = decltype(nullary);
5874      using unary_t = decltype(unary);
5875      const auto higher1st = [](nullary_t f){ return f(); };
5876      const auto higher2nd = [unary](nullary_t f1){
5877        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5878      };
5879      return higher1st(nullary) + higher2nd(nullary)(unary);
5880    }
5881
5882  }
5883
5884  namespace test_variadic_templates
5885  {
5886
5887    template <int...>
5888    struct sum;
5889
5890    template <int N0, int... N1toN>
5891    struct sum<N0, N1toN...>
5892    {
5893      static constexpr auto value = N0 + sum<N1toN...>::value;
5894    };
5895
5896    template <>
5897    struct sum<>
5898    {
5899      static constexpr auto value = 0;
5900    };
5901
5902    static_assert(sum<>::value == 0, "");
5903    static_assert(sum<1>::value == 1, "");
5904    static_assert(sum<23>::value == 23, "");
5905    static_assert(sum<1, 2>::value == 3, "");
5906    static_assert(sum<5, 5, 11>::value == 21, "");
5907    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5908
5909  }
5910
5911  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5912  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5913  // because of this.
5914  namespace test_template_alias_sfinae
5915  {
5916
5917    struct foo {};
5918
5919    template<typename T>
5920    using member = typename T::member_type;
5921
5922    template<typename T>
5923    void func(...) {}
5924
5925    template<typename T>
5926    void func(member<T>*) {}
5927
5928    void test();
5929
5930    void test() { func<foo>(0); }
5931
5932  }
5933
5934}  // namespace cxx11
5935
5936#endif  // __cplusplus >= 201103L
5937
5938
5939
5940_ACEOF
5941if ac_fn_cxx_try_compile "$LINENO"; then :
5942  eval $cachevar=yes
5943else
5944  eval $cachevar=no
5945fi
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947           CXX="$ac_save_CXX"
5948fi
5949eval ac_res=\$$cachevar
5950	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5951$as_echo "$ac_res" >&6; }
5952        if eval test x\$$cachevar = xyes; then
5953          CXX_DIALECT="$switch"
5954          CXX="$CXX $switch"
5955          if test -n "$CXXCPP" ; then
5956            CXXCPP="$CXXCPP $switch"
5957          fi
5958          ac_success=yes
5959          break
5960        fi
5961      done
5962      if test x$ac_success = xyes; then
5963        break
5964      fi
5965    done
5966  fi
5967  ac_ext=c
5968ac_cpp='$CPP $CPPFLAGS'
5969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971ac_compiler_gnu=$ac_cv_c_compiler_gnu
5972
5973  if test x$ax_cxx_compile_cxx11_required = xtrue; then
5974    if test x$ac_success = xno; then
5975      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5976    fi
5977  fi
5978  if test x$ac_success = xno; then
5979    HAVE_CXX11=0
5980    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5981$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5982  else
5983    HAVE_CXX11=1
5984
5985$as_echo "#define HAVE_CXX11 1" >>confdefs.h
5986
5987  fi
5988
5989
5990
5991
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5993$as_echo_n "checking for ANSI C header files... " >&6; }
5994if ${ac_cv_header_stdc+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h.  */
5999#include <stdlib.h>
6000#include <stdarg.h>
6001#include <string.h>
6002#include <float.h>
6003
6004int
6005main ()
6006{
6007
6008  ;
6009  return 0;
6010}
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013  ac_cv_header_stdc=yes
6014else
6015  ac_cv_header_stdc=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018
6019if test $ac_cv_header_stdc = yes; then
6020  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023#include <string.h>
6024
6025_ACEOF
6026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027  $EGREP "memchr" >/dev/null 2>&1; then :
6028
6029else
6030  ac_cv_header_stdc=no
6031fi
6032rm -f conftest*
6033
6034fi
6035
6036if test $ac_cv_header_stdc = yes; then
6037  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040#include <stdlib.h>
6041
6042_ACEOF
6043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044  $EGREP "free" >/dev/null 2>&1; then :
6045
6046else
6047  ac_cv_header_stdc=no
6048fi
6049rm -f conftest*
6050
6051fi
6052
6053if test $ac_cv_header_stdc = yes; then
6054  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6055  if test "$cross_compiling" = yes; then :
6056  :
6057else
6058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059/* end confdefs.h.  */
6060#include <ctype.h>
6061#include <stdlib.h>
6062#if ((' ' & 0x0FF) == 0x020)
6063# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6064# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6065#else
6066# define ISLOWER(c) \
6067		   (('a' <= (c) && (c) <= 'i') \
6068		     || ('j' <= (c) && (c) <= 'r') \
6069		     || ('s' <= (c) && (c) <= 'z'))
6070# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6071#endif
6072
6073#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6074int
6075main ()
6076{
6077  int i;
6078  for (i = 0; i < 256; i++)
6079    if (XOR (islower (i), ISLOWER (i))
6080	|| toupper (i) != TOUPPER (i))
6081      return 2;
6082  return 0;
6083}
6084_ACEOF
6085if ac_fn_c_try_run "$LINENO"; then :
6086
6087else
6088  ac_cv_header_stdc=no
6089fi
6090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6091  conftest.$ac_objext conftest.beam conftest.$ac_ext
6092fi
6093
6094fi
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6097$as_echo "$ac_cv_header_stdc" >&6; }
6098if test $ac_cv_header_stdc = yes; then
6099
6100$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6101
6102fi
6103
6104
6105ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6106if test "x$ac_cv_type_size_t" = xyes; then :
6107
6108else
6109
6110cat >>confdefs.h <<_ACEOF
6111#define size_t unsigned int
6112_ACEOF
6113
6114fi
6115
6116
6117
6118
6119  for ac_header in $ac_header_list
6120do :
6121  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6122ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6123"
6124if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6125  cat >>confdefs.h <<_ACEOF
6126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127_ACEOF
6128
6129fi
6130
6131done
6132
6133
6134
6135
6136
6137
6138
6139ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6140if test "x$ac_cv_type_pid_t" = xyes; then :
6141
6142else
6143
6144cat >>confdefs.h <<_ACEOF
6145#define pid_t int
6146_ACEOF
6147
6148fi
6149
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6151$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6152if ${ac_cv_path_SED+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6156     for ac_i in 1 2 3 4 5 6 7; do
6157       ac_script="$ac_script$as_nl$ac_script"
6158     done
6159     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6160     { ac_script=; unset ac_script;}
6161     if test -z "$SED"; then
6162  ac_path_SED_found=false
6163  # Loop through the user's path and test for each of PROGNAME-LIST
6164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167  IFS=$as_save_IFS
6168  test -z "$as_dir" && as_dir=.
6169    for ac_prog in sed gsed; do
6170    for ac_exec_ext in '' $ac_executable_extensions; do
6171      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6172      as_fn_executable_p "$ac_path_SED" || continue
6173# Check for GNU ac_path_SED and select it if it is found.
6174  # Check for GNU $ac_path_SED
6175case `"$ac_path_SED" --version 2>&1` in
6176*GNU*)
6177  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6178*)
6179  ac_count=0
6180  $as_echo_n 0123456789 >"conftest.in"
6181  while :
6182  do
6183    cat "conftest.in" "conftest.in" >"conftest.tmp"
6184    mv "conftest.tmp" "conftest.in"
6185    cp "conftest.in" "conftest.nl"
6186    $as_echo '' >> "conftest.nl"
6187    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6188    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6189    as_fn_arith $ac_count + 1 && ac_count=$as_val
6190    if test $ac_count -gt ${ac_path_SED_max-0}; then
6191      # Best one so far, save it but keep looking for a better one
6192      ac_cv_path_SED="$ac_path_SED"
6193      ac_path_SED_max=$ac_count
6194    fi
6195    # 10*(2^10) chars as input seems more than enough
6196    test $ac_count -gt 10 && break
6197  done
6198  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6199esac
6200
6201      $ac_path_SED_found && break 3
6202    done
6203  done
6204  done
6205IFS=$as_save_IFS
6206  if test -z "$ac_cv_path_SED"; then
6207    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6208  fi
6209else
6210  ac_cv_path_SED=$SED
6211fi
6212
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6215$as_echo "$ac_cv_path_SED" >&6; }
6216 SED="$ac_cv_path_SED"
6217  rm -f conftest.sed
6218
6219
6220      if test "X$prefix" = "XNONE"; then
6221    acl_final_prefix="$ac_default_prefix"
6222  else
6223    acl_final_prefix="$prefix"
6224  fi
6225  if test "X$exec_prefix" = "XNONE"; then
6226    acl_final_exec_prefix='${prefix}'
6227  else
6228    acl_final_exec_prefix="$exec_prefix"
6229  fi
6230  acl_save_prefix="$prefix"
6231  prefix="$acl_final_prefix"
6232  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6233  prefix="$acl_save_prefix"
6234
6235
6236# Check whether --with-gnu-ld was given.
6237if test "${with_gnu_ld+set}" = set; then :
6238  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6239else
6240  with_gnu_ld=no
6241fi
6242
6243# Prepare PATH_SEPARATOR.
6244# The user is always right.
6245if test "${PATH_SEPARATOR+set}" != set; then
6246  echo "#! /bin/sh" >conf$$.sh
6247  echo  "exit 0"   >>conf$$.sh
6248  chmod +x conf$$.sh
6249  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6250    PATH_SEPARATOR=';'
6251  else
6252    PATH_SEPARATOR=:
6253  fi
6254  rm -f conf$$.sh
6255fi
6256ac_prog=ld
6257if test "$GCC" = yes; then
6258  # Check if gcc -print-prog-name=ld gives a path.
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6260$as_echo_n "checking for ld used by GCC... " >&6; }
6261  case $host in
6262  *-*-mingw*)
6263    # gcc leaves a trailing carriage return which upsets mingw
6264    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6265  *)
6266    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6267  esac
6268  case $ac_prog in
6269    # Accept absolute paths.
6270    [\\/]* | [A-Za-z]:[\\/]*)
6271      re_direlt='/[^/][^/]*/\.\./'
6272      # Canonicalize the path of ld
6273      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6274      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6275	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6276      done
6277      test -z "$LD" && LD="$ac_prog"
6278      ;;
6279  "")
6280    # If it fails, then pretend we aren't using GCC.
6281    ac_prog=ld
6282    ;;
6283  *)
6284    # If it is relative, then search for the first ld in PATH.
6285    with_gnu_ld=unknown
6286    ;;
6287  esac
6288elif test "$with_gnu_ld" = yes; then
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6290$as_echo_n "checking for GNU ld... " >&6; }
6291else
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6293$as_echo_n "checking for non-GNU ld... " >&6; }
6294fi
6295if ${acl_cv_path_LD+:} false; then :
6296  $as_echo_n "(cached) " >&6
6297else
6298  if test -z "$LD"; then
6299  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6300  for ac_dir in $PATH; do
6301    test -z "$ac_dir" && ac_dir=.
6302    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6303      acl_cv_path_LD="$ac_dir/$ac_prog"
6304      # Check to see if the program is GNU ld.  I'd rather use --version,
6305      # but apparently some GNU ld's only accept -v.
6306      # Break only if it was the GNU/non-GNU ld that we prefer.
6307      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
6308	test "$with_gnu_ld" != no && break
6309      else
6310	test "$with_gnu_ld" != yes && break
6311      fi
6312    fi
6313  done
6314  IFS="$ac_save_ifs"
6315else
6316  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6317fi
6318fi
6319
6320LD="$acl_cv_path_LD"
6321if test -n "$LD"; then
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6323$as_echo "$LD" >&6; }
6324else
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6330$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6331if ${acl_cv_prog_gnu_ld+:} false; then :
6332  $as_echo_n "(cached) " >&6
6333else
6334  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6335if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
6336  acl_cv_prog_gnu_ld=yes
6337else
6338  acl_cv_prog_gnu_ld=no
6339fi
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6342$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6343with_gnu_ld=$acl_cv_prog_gnu_ld
6344
6345
6346
6347                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6348$as_echo_n "checking for shared library run path origin... " >&6; }
6349if ${acl_cv_rpath+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352
6353    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6354    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6355    . ./conftest.sh
6356    rm -f ./conftest.sh
6357    acl_cv_rpath=done
6358
6359fi
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6361$as_echo "$acl_cv_rpath" >&6; }
6362  wl="$acl_cv_wl"
6363  libext="$acl_cv_libext"
6364  shlibext="$acl_cv_shlibext"
6365  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6366  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6367  hardcode_direct="$acl_cv_hardcode_direct"
6368  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6369    # Check whether --enable-rpath was given.
6370if test "${enable_rpath+set}" = set; then :
6371  enableval=$enable_rpath; :
6372else
6373  enable_rpath=yes
6374fi
6375
6376
6377
6378  # Set the 'development' global.
6379  . $srcdir/../bfd/development.sh
6380
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6382$as_echo_n "checking for ANSI C header files... " >&6; }
6383if ${ac_cv_header_stdc+:} false; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h.  */
6388#include <stdlib.h>
6389#include <stdarg.h>
6390#include <string.h>
6391#include <float.h>
6392
6393int
6394main ()
6395{
6396
6397  ;
6398  return 0;
6399}
6400_ACEOF
6401if ac_fn_c_try_compile "$LINENO"; then :
6402  ac_cv_header_stdc=yes
6403else
6404  ac_cv_header_stdc=no
6405fi
6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407
6408if test $ac_cv_header_stdc = yes; then
6409  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411/* end confdefs.h.  */
6412#include <string.h>
6413
6414_ACEOF
6415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416  $EGREP "memchr" >/dev/null 2>&1; then :
6417
6418else
6419  ac_cv_header_stdc=no
6420fi
6421rm -f conftest*
6422
6423fi
6424
6425if test $ac_cv_header_stdc = yes; then
6426  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h.  */
6429#include <stdlib.h>
6430
6431_ACEOF
6432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433  $EGREP "free" >/dev/null 2>&1; then :
6434
6435else
6436  ac_cv_header_stdc=no
6437fi
6438rm -f conftest*
6439
6440fi
6441
6442if test $ac_cv_header_stdc = yes; then
6443  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6444  if test "$cross_compiling" = yes; then :
6445  :
6446else
6447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448/* end confdefs.h.  */
6449#include <ctype.h>
6450#include <stdlib.h>
6451#if ((' ' & 0x0FF) == 0x020)
6452# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6453# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6454#else
6455# define ISLOWER(c) \
6456		   (('a' <= (c) && (c) <= 'i') \
6457		     || ('j' <= (c) && (c) <= 'r') \
6458		     || ('s' <= (c) && (c) <= 'z'))
6459# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6460#endif
6461
6462#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6463int
6464main ()
6465{
6466  int i;
6467  for (i = 0; i < 256; i++)
6468    if (XOR (islower (i), ISLOWER (i))
6469	|| toupper (i) != TOUPPER (i))
6470      return 2;
6471  return 0;
6472}
6473_ACEOF
6474if ac_fn_c_try_run "$LINENO"; then :
6475
6476else
6477  ac_cv_header_stdc=no
6478fi
6479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6480  conftest.$ac_objext conftest.beam conftest.$ac_ext
6481fi
6482
6483fi
6484fi
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6486$as_echo "$ac_cv_header_stdc" >&6; }
6487if test $ac_cv_header_stdc = yes; then
6488
6489$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6490
6491fi
6492
6493  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6494# for constant arguments.  Useless!
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6496$as_echo_n "checking for working alloca.h... " >&6; }
6497if ${ac_cv_working_alloca_h+:} false; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502#include <alloca.h>
6503int
6504main ()
6505{
6506char *p = (char *) alloca (2 * sizeof (int));
6507			  if (p) return 0;
6508  ;
6509  return 0;
6510}
6511_ACEOF
6512if ac_fn_c_try_link "$LINENO"; then :
6513  ac_cv_working_alloca_h=yes
6514else
6515  ac_cv_working_alloca_h=no
6516fi
6517rm -f core conftest.err conftest.$ac_objext \
6518    conftest$ac_exeext conftest.$ac_ext
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6521$as_echo "$ac_cv_working_alloca_h" >&6; }
6522if test $ac_cv_working_alloca_h = yes; then
6523
6524$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6525
6526fi
6527
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6529$as_echo_n "checking for alloca... " >&6; }
6530if ${ac_cv_func_alloca_works+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535#ifdef __GNUC__
6536# define alloca __builtin_alloca
6537#else
6538# ifdef _MSC_VER
6539#  include <malloc.h>
6540#  define alloca _alloca
6541# else
6542#  ifdef HAVE_ALLOCA_H
6543#   include <alloca.h>
6544#  else
6545#   ifdef _AIX
6546 #pragma alloca
6547#   else
6548#    ifndef alloca /* predefined by HP cc +Olibcalls */
6549void *alloca (size_t);
6550#    endif
6551#   endif
6552#  endif
6553# endif
6554#endif
6555
6556int
6557main ()
6558{
6559char *p = (char *) alloca (1);
6560				    if (p) return 0;
6561  ;
6562  return 0;
6563}
6564_ACEOF
6565if ac_fn_c_try_link "$LINENO"; then :
6566  ac_cv_func_alloca_works=yes
6567else
6568  ac_cv_func_alloca_works=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext \
6571    conftest$ac_exeext conftest.$ac_ext
6572fi
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6574$as_echo "$ac_cv_func_alloca_works" >&6; }
6575
6576if test $ac_cv_func_alloca_works = yes; then
6577
6578$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6579
6580else
6581  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6582# that cause trouble.  Some versions do not even contain alloca or
6583# contain a buggy version.  If you still want to use their alloca,
6584# use ar to extract alloca.o from them instead of compiling alloca.c.
6585
6586ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6587
6588$as_echo "#define C_ALLOCA 1" >>confdefs.h
6589
6590
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6592$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6593if ${ac_cv_os_cray+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598#if defined CRAY && ! defined CRAY2
6599webecray
6600#else
6601wenotbecray
6602#endif
6603
6604_ACEOF
6605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606  $EGREP "webecray" >/dev/null 2>&1; then :
6607  ac_cv_os_cray=yes
6608else
6609  ac_cv_os_cray=no
6610fi
6611rm -f conftest*
6612
6613fi
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6615$as_echo "$ac_cv_os_cray" >&6; }
6616if test $ac_cv_os_cray = yes; then
6617  for ac_func in _getb67 GETB67 getb67; do
6618    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6619ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6620if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6621
6622cat >>confdefs.h <<_ACEOF
6623#define CRAY_STACKSEG_END $ac_func
6624_ACEOF
6625
6626    break
6627fi
6628
6629  done
6630fi
6631
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6633$as_echo_n "checking stack direction for C alloca... " >&6; }
6634if ${ac_cv_c_stack_direction+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  if test "$cross_compiling" = yes; then :
6638  ac_cv_c_stack_direction=0
6639else
6640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h.  */
6642$ac_includes_default
6643int
6644find_stack_direction (int *addr, int depth)
6645{
6646  int dir, dummy = 0;
6647  if (! addr)
6648    addr = &dummy;
6649  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6650  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6651  return dir + dummy;
6652}
6653
6654int
6655main (int argc, char **argv)
6656{
6657  return find_stack_direction (0, argc + !argv + 20) < 0;
6658}
6659_ACEOF
6660if ac_fn_c_try_run "$LINENO"; then :
6661  ac_cv_c_stack_direction=1
6662else
6663  ac_cv_c_stack_direction=-1
6664fi
6665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6666  conftest.$ac_objext conftest.beam conftest.$ac_ext
6667fi
6668
6669fi
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6671$as_echo "$ac_cv_c_stack_direction" >&6; }
6672cat >>confdefs.h <<_ACEOF
6673#define STACK_DIRECTION $ac_cv_c_stack_direction
6674_ACEOF
6675
6676
6677fi
6678
6679
6680  WIN32APILIBS=
6681  case ${host} in
6682    *mingw32*)
6683
6684$as_echo "#define USE_WIN32API 1" >>confdefs.h
6685
6686      WIN32APILIBS="-lws2_32"
6687      ;;
6688  esac
6689
6690
6691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6692$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6693if ${am_cv_langinfo_codeset+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h.  */
6698#include <langinfo.h>
6699int
6700main ()
6701{
6702char* cs = nl_langinfo(CODESET);
6703  ;
6704  return 0;
6705}
6706_ACEOF
6707if ac_fn_c_try_link "$LINENO"; then :
6708  am_cv_langinfo_codeset=yes
6709else
6710  am_cv_langinfo_codeset=no
6711fi
6712rm -f core conftest.err conftest.$ac_objext \
6713    conftest$ac_exeext conftest.$ac_ext
6714
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6717$as_echo "$am_cv_langinfo_codeset" >&6; }
6718  if test $am_cv_langinfo_codeset = yes; then
6719
6720$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6721
6722  fi
6723
6724
6725  for ac_header in linux/perf_event.h locale.h memory.h signal.h 		   sys/resource.h sys/socket.h 		   sys/un.h sys/wait.h 		   thread_db.h wait.h 		   termios.h 		   dlfcn.h 		   linux/elf.h proc_service.h 		   poll.h sys/poll.h sys/select.h
6726do :
6727  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6728ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6730  cat >>confdefs.h <<_ACEOF
6731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6732_ACEOF
6733
6734fi
6735
6736done
6737
6738
6739
6740for ac_func in getpagesize
6741do :
6742  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6743if test "x$ac_cv_func_getpagesize" = xyes; then :
6744  cat >>confdefs.h <<_ACEOF
6745#define HAVE_GETPAGESIZE 1
6746_ACEOF
6747
6748fi
6749done
6750
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6752$as_echo_n "checking for working mmap... " >&6; }
6753if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  if test "$cross_compiling" = yes; then :
6757  ac_cv_func_mmap_fixed_mapped=no
6758else
6759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761$ac_includes_default
6762/* malloc might have been renamed as rpl_malloc. */
6763#undef malloc
6764
6765/* Thanks to Mike Haertel and Jim Avera for this test.
6766   Here is a matrix of mmap possibilities:
6767	mmap private not fixed
6768	mmap private fixed at somewhere currently unmapped
6769	mmap private fixed at somewhere already mapped
6770	mmap shared not fixed
6771	mmap shared fixed at somewhere currently unmapped
6772	mmap shared fixed at somewhere already mapped
6773   For private mappings, we should verify that changes cannot be read()
6774   back from the file, nor mmap's back from the file at a different
6775   address.  (There have been systems where private was not correctly
6776   implemented like the infamous i386 svr4.0, and systems where the
6777   VM page cache was not coherent with the file system buffer cache
6778   like early versions of FreeBSD and possibly contemporary NetBSD.)
6779   For shared mappings, we should conversely verify that changes get
6780   propagated back to all the places they're supposed to be.
6781
6782   Grep wants private fixed already mapped.
6783   The main things grep needs to know about mmap are:
6784   * does it exist and is it safe to write into the mmap'd area
6785   * how to use it (BSD variants)  */
6786
6787#include <fcntl.h>
6788#include <sys/mman.h>
6789
6790#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6791char *malloc ();
6792#endif
6793
6794/* This mess was copied from the GNU getpagesize.h.  */
6795#ifndef HAVE_GETPAGESIZE
6796# ifdef _SC_PAGESIZE
6797#  define getpagesize() sysconf(_SC_PAGESIZE)
6798# else /* no _SC_PAGESIZE */
6799#  ifdef HAVE_SYS_PARAM_H
6800#   include <sys/param.h>
6801#   ifdef EXEC_PAGESIZE
6802#    define getpagesize() EXEC_PAGESIZE
6803#   else /* no EXEC_PAGESIZE */
6804#    ifdef NBPG
6805#     define getpagesize() NBPG * CLSIZE
6806#     ifndef CLSIZE
6807#      define CLSIZE 1
6808#     endif /* no CLSIZE */
6809#    else /* no NBPG */
6810#     ifdef NBPC
6811#      define getpagesize() NBPC
6812#     else /* no NBPC */
6813#      ifdef PAGESIZE
6814#       define getpagesize() PAGESIZE
6815#      endif /* PAGESIZE */
6816#     endif /* no NBPC */
6817#    endif /* no NBPG */
6818#   endif /* no EXEC_PAGESIZE */
6819#  else /* no HAVE_SYS_PARAM_H */
6820#   define getpagesize() 8192	/* punt totally */
6821#  endif /* no HAVE_SYS_PARAM_H */
6822# endif /* no _SC_PAGESIZE */
6823
6824#endif /* no HAVE_GETPAGESIZE */
6825
6826int
6827main ()
6828{
6829  char *data, *data2, *data3;
6830  const char *cdata2;
6831  int i, pagesize;
6832  int fd, fd2;
6833
6834  pagesize = getpagesize ();
6835
6836  /* First, make a file with some known garbage in it. */
6837  data = (char *) malloc (pagesize);
6838  if (!data)
6839    return 1;
6840  for (i = 0; i < pagesize; ++i)
6841    *(data + i) = rand ();
6842  umask (0);
6843  fd = creat ("conftest.mmap", 0600);
6844  if (fd < 0)
6845    return 2;
6846  if (write (fd, data, pagesize) != pagesize)
6847    return 3;
6848  close (fd);
6849
6850  /* Next, check that the tail of a page is zero-filled.  File must have
6851     non-zero length, otherwise we risk SIGBUS for entire page.  */
6852  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6853  if (fd2 < 0)
6854    return 4;
6855  cdata2 = "";
6856  if (write (fd2, cdata2, 1) != 1)
6857    return 5;
6858  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6859  if (data2 == MAP_FAILED)
6860    return 6;
6861  for (i = 0; i < pagesize; ++i)
6862    if (*(data2 + i))
6863      return 7;
6864  close (fd2);
6865  if (munmap (data2, pagesize))
6866    return 8;
6867
6868  /* Next, try to mmap the file at a fixed address which already has
6869     something else allocated at it.  If we can, also make sure that
6870     we see the same garbage.  */
6871  fd = open ("conftest.mmap", O_RDWR);
6872  if (fd < 0)
6873    return 9;
6874  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6875		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6876    return 10;
6877  for (i = 0; i < pagesize; ++i)
6878    if (*(data + i) != *(data2 + i))
6879      return 11;
6880
6881  /* Finally, make sure that changes to the mapped area do not
6882     percolate back to the file as seen by read().  (This is a bug on
6883     some variants of i386 svr4.0.)  */
6884  for (i = 0; i < pagesize; ++i)
6885    *(data2 + i) = *(data2 + i) + 1;
6886  data3 = (char *) malloc (pagesize);
6887  if (!data3)
6888    return 12;
6889  if (read (fd, data3, pagesize) != pagesize)
6890    return 13;
6891  for (i = 0; i < pagesize; ++i)
6892    if (*(data + i) != *(data3 + i))
6893      return 14;
6894  close (fd);
6895  return 0;
6896}
6897_ACEOF
6898if ac_fn_c_try_run "$LINENO"; then :
6899  ac_cv_func_mmap_fixed_mapped=yes
6900else
6901  ac_cv_func_mmap_fixed_mapped=no
6902fi
6903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6904  conftest.$ac_objext conftest.beam conftest.$ac_ext
6905fi
6906
6907fi
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6909$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6910if test $ac_cv_func_mmap_fixed_mapped = yes; then
6911
6912$as_echo "#define HAVE_MMAP 1" >>confdefs.h
6913
6914fi
6915rm -f conftest.mmap conftest.txt
6916
6917  for ac_header in vfork.h
6918do :
6919  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6920if test "x$ac_cv_header_vfork_h" = xyes; then :
6921  cat >>confdefs.h <<_ACEOF
6922#define HAVE_VFORK_H 1
6923_ACEOF
6924
6925fi
6926
6927done
6928
6929for ac_func in fork vfork
6930do :
6931  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6932ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6933if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6934  cat >>confdefs.h <<_ACEOF
6935#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6936_ACEOF
6937
6938fi
6939done
6940
6941if test "x$ac_cv_func_fork" = xyes; then
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6943$as_echo_n "checking for working fork... " >&6; }
6944if ${ac_cv_func_fork_works+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test "$cross_compiling" = yes; then :
6948  ac_cv_func_fork_works=cross
6949else
6950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952$ac_includes_default
6953int
6954main ()
6955{
6956
6957	  /* By Ruediger Kuhlmann. */
6958	  return fork () < 0;
6959
6960  ;
6961  return 0;
6962}
6963_ACEOF
6964if ac_fn_c_try_run "$LINENO"; then :
6965  ac_cv_func_fork_works=yes
6966else
6967  ac_cv_func_fork_works=no
6968fi
6969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6970  conftest.$ac_objext conftest.beam conftest.$ac_ext
6971fi
6972
6973fi
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6975$as_echo "$ac_cv_func_fork_works" >&6; }
6976
6977else
6978  ac_cv_func_fork_works=$ac_cv_func_fork
6979fi
6980if test "x$ac_cv_func_fork_works" = xcross; then
6981  case $host in
6982    *-*-amigaos* | *-*-msdosdjgpp*)
6983      # Override, as these systems have only a dummy fork() stub
6984      ac_cv_func_fork_works=no
6985      ;;
6986    *)
6987      ac_cv_func_fork_works=yes
6988      ;;
6989  esac
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6991$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6992fi
6993ac_cv_func_vfork_works=$ac_cv_func_vfork
6994if test "x$ac_cv_func_vfork" = xyes; then
6995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6996$as_echo_n "checking for working vfork... " >&6; }
6997if ${ac_cv_func_vfork_works+:} false; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  if test "$cross_compiling" = yes; then :
7001  ac_cv_func_vfork_works=cross
7002else
7003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004/* end confdefs.h.  */
7005/* Thanks to Paul Eggert for this test.  */
7006$ac_includes_default
7007#include <sys/wait.h>
7008#ifdef HAVE_VFORK_H
7009# include <vfork.h>
7010#endif
7011/* On some sparc systems, changes by the child to local and incoming
7012   argument registers are propagated back to the parent.  The compiler
7013   is told about this with #include <vfork.h>, but some compilers
7014   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7015   static variable whose address is put into a register that is
7016   clobbered by the vfork.  */
7017static void
7018#ifdef __cplusplus
7019sparc_address_test (int arg)
7020# else
7021sparc_address_test (arg) int arg;
7022#endif
7023{
7024  static pid_t child;
7025  if (!child) {
7026    child = vfork ();
7027    if (child < 0) {
7028      perror ("vfork");
7029      _exit(2);
7030    }
7031    if (!child) {
7032      arg = getpid();
7033      write(-1, "", 0);
7034      _exit (arg);
7035    }
7036  }
7037}
7038
7039int
7040main ()
7041{
7042  pid_t parent = getpid ();
7043  pid_t child;
7044
7045  sparc_address_test (0);
7046
7047  child = vfork ();
7048
7049  if (child == 0) {
7050    /* Here is another test for sparc vfork register problems.  This
7051       test uses lots of local variables, at least as many local
7052       variables as main has allocated so far including compiler
7053       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7054       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7055       reuse the register of parent for one of the local variables,
7056       since it will think that parent can't possibly be used any more
7057       in this routine.  Assigning to the local variable will thus
7058       munge parent in the parent process.  */
7059    pid_t
7060      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7061      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7062    /* Convince the compiler that p..p7 are live; otherwise, it might
7063       use the same hardware register for all 8 local variables.  */
7064    if (p != p1 || p != p2 || p != p3 || p != p4
7065	|| p != p5 || p != p6 || p != p7)
7066      _exit(1);
7067
7068    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7069       from child file descriptors.  If the child closes a descriptor
7070       before it execs or exits, this munges the parent's descriptor
7071       as well.  Test for this by closing stdout in the child.  */
7072    _exit(close(fileno(stdout)) != 0);
7073  } else {
7074    int status;
7075    struct stat st;
7076
7077    while (wait(&status) != child)
7078      ;
7079    return (
7080	 /* Was there some problem with vforking?  */
7081	 child < 0
7082
7083	 /* Did the child fail?  (This shouldn't happen.)  */
7084	 || status
7085
7086	 /* Did the vfork/compiler bug occur?  */
7087	 || parent != getpid()
7088
7089	 /* Did the file descriptor bug occur?  */
7090	 || fstat(fileno(stdout), &st) != 0
7091	 );
7092  }
7093}
7094_ACEOF
7095if ac_fn_c_try_run "$LINENO"; then :
7096  ac_cv_func_vfork_works=yes
7097else
7098  ac_cv_func_vfork_works=no
7099fi
7100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7101  conftest.$ac_objext conftest.beam conftest.$ac_ext
7102fi
7103
7104fi
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7106$as_echo "$ac_cv_func_vfork_works" >&6; }
7107
7108fi;
7109if test "x$ac_cv_func_fork_works" = xcross; then
7110  ac_cv_func_vfork_works=$ac_cv_func_vfork
7111  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7112$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7113fi
7114
7115if test "x$ac_cv_func_vfork_works" = xyes; then
7116
7117$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7118
7119else
7120
7121$as_echo "#define vfork fork" >>confdefs.h
7122
7123fi
7124if test "x$ac_cv_func_fork_works" = xyes; then
7125
7126$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7127
7128fi
7129
7130  for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
7131		  ptrace64 sbrk setns sigaltstack sigprocmask \
7132		  setpgid setpgrp getrusage getauxval sigtimedwait
7133do :
7134  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7135ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7136if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7137  cat >>confdefs.h <<_ACEOF
7138#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7139_ACEOF
7140
7141fi
7142done
7143
7144
7145  # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
7146  # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
7147  # only in linux/personality.h.
7148  ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7149"
7150if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
7151  ac_have_decl=1
7152else
7153  ac_have_decl=0
7154fi
7155
7156cat >>confdefs.h <<_ACEOF
7157#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7158_ACEOF
7159
7160
7161  ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7162if test "x$ac_cv_have_decl_strstr" = xyes; then :
7163  ac_have_decl=1
7164else
7165  ac_have_decl=0
7166fi
7167
7168cat >>confdefs.h <<_ACEOF
7169#define HAVE_DECL_STRSTR $ac_have_decl
7170_ACEOF
7171
7172
7173  # ----------------------- #
7174  # Checks for structures.  #
7175  # ----------------------- #
7176
7177  ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7178if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7179
7180cat >>confdefs.h <<_ACEOF
7181#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7182_ACEOF
7183
7184
7185fi
7186ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7187if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7188
7189cat >>confdefs.h <<_ACEOF
7190#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7191_ACEOF
7192
7193
7194fi
7195
7196
7197  # On FreeBSD we need libutil for the kinfo_get* functions.  On
7198  # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7199  # Figure out which one to use.
7200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7201$as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7202if ${ac_cv_search_kinfo_getfile+:} false; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  ac_func_search_save_LIBS=$LIBS
7206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h.  */
7208
7209/* Override any GCC internal prototype to avoid an error.
7210   Use char because int might match the return type of a GCC
7211   builtin and then its argument prototype would still apply.  */
7212#ifdef __cplusplus
7213extern "C"
7214#endif
7215char kinfo_getfile ();
7216int
7217main ()
7218{
7219return kinfo_getfile ();
7220  ;
7221  return 0;
7222}
7223_ACEOF
7224for ac_lib in '' util util-freebsd; do
7225  if test -z "$ac_lib"; then
7226    ac_res="none required"
7227  else
7228    ac_res=-l$ac_lib
7229    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7230  fi
7231  if ac_fn_c_try_link "$LINENO"; then :
7232  ac_cv_search_kinfo_getfile=$ac_res
7233fi
7234rm -f core conftest.err conftest.$ac_objext \
7235    conftest$ac_exeext
7236  if ${ac_cv_search_kinfo_getfile+:} false; then :
7237  break
7238fi
7239done
7240if ${ac_cv_search_kinfo_getfile+:} false; then :
7241
7242else
7243  ac_cv_search_kinfo_getfile=no
7244fi
7245rm conftest.$ac_ext
7246LIBS=$ac_func_search_save_LIBS
7247fi
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7249$as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7250ac_res=$ac_cv_search_kinfo_getfile
7251if test "$ac_res" != no; then :
7252  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7253
7254fi
7255
7256
7257  # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
7258  for ac_func in kinfo_getfile
7259do :
7260  ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
7261if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
7262  cat >>confdefs.h <<_ACEOF
7263#define HAVE_KINFO_GETFILE 1
7264_ACEOF
7265
7266fi
7267done
7268
7269
7270  # ----------------------- #
7271  # Check for threading.    #
7272  # ----------------------- #
7273
7274  # Check whether --enable-threading was given.
7275if test "${enable_threading+set}" = set; then :
7276  enableval=$enable_threading; case "$enableval" in
7277    yes) want_threading=yes ;;
7278    no) want_threading=no ;;
7279    *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
7280    esac
7281else
7282  want_threading=yes
7283fi
7284
7285
7286  # Check for std::thread.  This does not work on some platforms, like
7287  # mingw and DJGPP.
7288  ac_ext=cpp
7289ac_cpp='$CXXCPP $CPPFLAGS'
7290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7293
7294
7295
7296
7297
7298ac_ext=c
7299ac_cpp='$CPP $CPPFLAGS'
7300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303
7304ax_pthread_ok=no
7305
7306# We used to check for pthread.h first, but this fails if pthread.h
7307# requires special compiler flags (e.g. on Tru64 or Sequent).
7308# It gets checked for in the link test anyway.
7309
7310# First of all, check if the user has set any of the PTHREAD_LIBS,
7311# etcetera environment variables, and if threads linking works using
7312# them:
7313if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7314        ax_pthread_save_CC="$CC"
7315        ax_pthread_save_CFLAGS="$CFLAGS"
7316        ax_pthread_save_LIBS="$LIBS"
7317        if test "x$PTHREAD_CC" != "x"; then :
7318  CC="$PTHREAD_CC"
7319fi
7320        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7321        LIBS="$PTHREAD_LIBS $LIBS"
7322        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7323$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7324        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326
7327/* Override any GCC internal prototype to avoid an error.
7328   Use char because int might match the return type of a GCC
7329   builtin and then its argument prototype would still apply.  */
7330#ifdef __cplusplus
7331extern "C"
7332#endif
7333char pthread_join ();
7334int
7335main ()
7336{
7337return pthread_join ();
7338  ;
7339  return 0;
7340}
7341_ACEOF
7342if ac_fn_c_try_link "$LINENO"; then :
7343  ax_pthread_ok=yes
7344fi
7345rm -f core conftest.err conftest.$ac_objext \
7346    conftest$ac_exeext conftest.$ac_ext
7347        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7348$as_echo "$ax_pthread_ok" >&6; }
7349        if test "x$ax_pthread_ok" = "xno"; then
7350                PTHREAD_LIBS=""
7351                PTHREAD_CFLAGS=""
7352        fi
7353        CC="$ax_pthread_save_CC"
7354        CFLAGS="$ax_pthread_save_CFLAGS"
7355        LIBS="$ax_pthread_save_LIBS"
7356fi
7357
7358# We must check for the threads library under a number of different
7359# names; the ordering is very important because some systems
7360# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7361# libraries is broken (non-POSIX).
7362
7363# Create a list of thread flags to try.  Items starting with a "-" are
7364# C compiler flags, and other items are library names, except for "none"
7365# which indicates that we try without any flags at all, and "pthread-config"
7366# which is a program returning the flags for the Pth emulation library.
7367
7368ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7369
7370# The ordering *is* (sometimes) important.  Some notes on the
7371# individual items follow:
7372
7373# pthreads: AIX (must check this before -lpthread)
7374# none: in case threads are in libc; should be tried before -Kthread and
7375#       other compiler flags to prevent continual compiler warnings
7376# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7377# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7378#           (Note: HP C rejects this with "bad form for `-t' option")
7379# -pthreads: Solaris/gcc (Note: HP C also rejects)
7380# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7381#      doesn't hurt to check since this sometimes defines pthreads and
7382#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7383#      is present but should not be used directly; and before -mthreads,
7384#      because the compiler interprets this as "-mt" + "-hreads")
7385# -mthreads: Mingw32/gcc, Lynx/gcc
7386# pthread: Linux, etcetera
7387# --thread-safe: KAI C++
7388# pthread-config: use pthread-config program (for GNU Pth library)
7389
7390case $host_os in
7391
7392        freebsd*)
7393
7394        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7395        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7396
7397        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7398        ;;
7399
7400        hpux*)
7401
7402        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7403        # multi-threading and also sets -lpthread."
7404
7405        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7406        ;;
7407
7408        openedition*)
7409
7410        # IBM z/OS requires a feature-test macro to be defined in order to
7411        # enable POSIX threads at all, so give the user a hint if this is
7412        # not set. (We don't define these ourselves, as they can affect
7413        # other portions of the system API in unpredictable ways.)
7414
7415        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416/* end confdefs.h.  */
7417
7418#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7419             AX_PTHREAD_ZOS_MISSING
7420#            endif
7421
7422_ACEOF
7423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7424  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
7425  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7426$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7427fi
7428rm -f conftest*
7429
7430        ;;
7431
7432        solaris*)
7433
7434        # On Solaris (at least, for some versions), libc contains stubbed
7435        # (non-functional) versions of the pthreads routines, so link-based
7436        # tests will erroneously succeed. (N.B.: The stubs are missing
7437        # pthread_cleanup_push, or rather a function called by this macro,
7438        # so we could check for that, but who knows whether they'll stub
7439        # that too in a future libc.)  So we'll check first for the
7440        # standard Solaris way of linking pthreads (-mt -lpthread).
7441
7442        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
7443        ;;
7444esac
7445
7446# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7447
7448if test "x$GCC" = "xyes"; then :
7449  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
7450fi
7451
7452# The presence of a feature test macro requesting re-entrant function
7453# definitions is, on some systems, a strong hint that pthreads support is
7454# correctly enabled
7455
7456case $host_os in
7457        darwin* | hpux* | linux* | osf* | solaris*)
7458        ax_pthread_check_macro="_REENTRANT"
7459        ;;
7460
7461        aix*)
7462        ax_pthread_check_macro="_THREAD_SAFE"
7463        ;;
7464
7465        *)
7466        ax_pthread_check_macro="--"
7467        ;;
7468esac
7469if test "x$ax_pthread_check_macro" = "x--"; then :
7470  ax_pthread_check_cond=0
7471else
7472  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7473fi
7474
7475# Are we compiling with Clang?
7476
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7478$as_echo_n "checking whether $CC is Clang... " >&6; }
7479if ${ax_cv_PTHREAD_CLANG+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  ax_cv_PTHREAD_CLANG=no
7483     # Note that Autoconf sets GCC=yes for Clang as well as GCC
7484     if test "x$GCC" = "xyes"; then
7485        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7488#            if defined(__clang__) && defined(__llvm__)
7489             AX_PTHREAD_CC_IS_CLANG
7490#            endif
7491
7492_ACEOF
7493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7494  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
7495  ax_cv_PTHREAD_CLANG=yes
7496fi
7497rm -f conftest*
7498
7499     fi
7500
7501fi
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7503$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7504ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7505
7506ax_pthread_clang_warning=no
7507
7508# Clang needs special handling, because older versions handle the -pthread
7509# option in a rather... idiosyncratic way
7510
7511if test "x$ax_pthread_clang" = "xyes"; then
7512
7513        # Clang takes -pthread; it has never supported any other flag
7514
7515        # (Note 1: This will need to be revisited if a system that Clang
7516        # supports has POSIX threads in a separate library.  This tends not
7517        # to be the way of modern systems, but it's conceivable.)
7518
7519        # (Note 2: On some systems, notably Darwin, -pthread is not needed
7520        # to get POSIX threads support; the API is always present and
7521        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7522        # -pthread does define _REENTRANT, and while the Darwin headers
7523        # ignore this macro, third-party headers might not.)
7524
7525        PTHREAD_CFLAGS="-pthread"
7526        PTHREAD_LIBS=
7527
7528        ax_pthread_ok=yes
7529
7530        # However, older versions of Clang make a point of warning the user
7531        # that, in an invocation where only linking and no compilation is
7532        # taking place, the -pthread option has no effect ("argument unused
7533        # during compilation").  They expect -pthread to be passed in only
7534        # when source code is being compiled.
7535        #
7536        # Problem is, this is at odds with the way Automake and most other
7537        # C build frameworks function, which is that the same flags used in
7538        # compilation (CFLAGS) are also used in linking.  Many systems
7539        # supported by AX_PTHREAD require exactly this for POSIX threads
7540        # support, and in fact it is often not straightforward to specify a
7541        # flag that is used only in the compilation phase and not in
7542        # linking.  Such a scenario is extremely rare in practice.
7543        #
7544        # Even though use of the -pthread flag in linking would only print
7545        # a warning, this can be a nuisance for well-run software projects
7546        # that build with -Werror.  So if the active version of Clang has
7547        # this misfeature, we search for an option to squash it.
7548
7549        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7550$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7551if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7555             # Create an alternate version of $ac_link that compiles and
7556             # links in two steps (.c -> .o, .o -> exe) instead of one
7557             # (.c -> exe), because the warning occurs only in the second
7558             # step
7559             ax_pthread_save_ac_link="$ac_link"
7560             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7561             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7562             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7563             ax_pthread_save_CFLAGS="$CFLAGS"
7564             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7565                if test "x$ax_pthread_try" = "xunknown"; then :
7566  break
7567fi
7568                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7569                ac_link="$ax_pthread_save_ac_link"
7570                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int main(void){return 0;}
7573_ACEOF
7574if ac_fn_c_try_link "$LINENO"; then :
7575  ac_link="$ax_pthread_2step_ac_link"
7576                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577/* end confdefs.h.  */
7578int main(void){return 0;}
7579_ACEOF
7580if ac_fn_c_try_link "$LINENO"; then :
7581  break
7582fi
7583rm -f core conftest.err conftest.$ac_objext \
7584    conftest$ac_exeext conftest.$ac_ext
7585
7586fi
7587rm -f core conftest.err conftest.$ac_objext \
7588    conftest$ac_exeext conftest.$ac_ext
7589             done
7590             ac_link="$ax_pthread_save_ac_link"
7591             CFLAGS="$ax_pthread_save_CFLAGS"
7592             if test "x$ax_pthread_try" = "x"; then :
7593  ax_pthread_try=no
7594fi
7595             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7596
7597fi
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7599$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7600
7601        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7602                no | unknown) ;;
7603                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7604        esac
7605
7606fi # $ax_pthread_clang = yes
7607
7608if test "x$ax_pthread_ok" = "xno"; then
7609for ax_pthread_try_flag in $ax_pthread_flags; do
7610
7611        case $ax_pthread_try_flag in
7612                none)
7613                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7614$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7615                ;;
7616
7617                -mt,pthread)
7618                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
7619$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
7620                PTHREAD_CFLAGS="-mt"
7621                PTHREAD_LIBS="-lpthread"
7622                ;;
7623
7624                -*)
7625                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7626$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7627                PTHREAD_CFLAGS="$ax_pthread_try_flag"
7628                ;;
7629
7630                pthread-config)
7631                # Extract the first word of "pthread-config", so it can be a program name with args.
7632set dummy pthread-config; ac_word=$2
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634$as_echo_n "checking for $ac_word... " >&6; }
7635if ${ac_cv_prog_ax_pthread_config+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  if test -n "$ax_pthread_config"; then
7639  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7640else
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646    for ac_exec_ext in '' $ac_executable_extensions; do
7647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648    ac_cv_prog_ax_pthread_config="yes"
7649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650    break 2
7651  fi
7652done
7653  done
7654IFS=$as_save_IFS
7655
7656  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7657fi
7658fi
7659ax_pthread_config=$ac_cv_prog_ax_pthread_config
7660if test -n "$ax_pthread_config"; then
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7662$as_echo "$ax_pthread_config" >&6; }
7663else
7664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665$as_echo "no" >&6; }
7666fi
7667
7668
7669                if test "x$ax_pthread_config" = "xno"; then :
7670  continue
7671fi
7672                PTHREAD_CFLAGS="`pthread-config --cflags`"
7673                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7674                ;;
7675
7676                *)
7677                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7678$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7679                PTHREAD_LIBS="-l$ax_pthread_try_flag"
7680                ;;
7681        esac
7682
7683        ax_pthread_save_CFLAGS="$CFLAGS"
7684        ax_pthread_save_LIBS="$LIBS"
7685        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7686        LIBS="$PTHREAD_LIBS $LIBS"
7687
7688        # Check for various functions.  We must include pthread.h,
7689        # since some functions may be macros.  (On the Sequent, we
7690        # need a special flag -Kthread to make this header compile.)
7691        # We check for pthread_join because it is in -lpthread on IRIX
7692        # while pthread_create is in libc.  We check for pthread_attr_init
7693        # due to DEC craziness with -lpthreads.  We check for
7694        # pthread_cleanup_push because it is one of the few pthread
7695        # functions on Solaris that doesn't have a non-functional libc stub.
7696        # We try pthread_create on general principles.
7697
7698        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h.  */
7700#include <pthread.h>
7701#                       if $ax_pthread_check_cond
7702#                        error "$ax_pthread_check_macro must be defined"
7703#                       endif
7704                        static void routine(void *a) { a = 0; }
7705                        static void *start_routine(void *a) { return a; }
7706int
7707main ()
7708{
7709pthread_t th; pthread_attr_t attr;
7710                        pthread_create(&th, 0, start_routine, 0);
7711                        pthread_join(th, 0);
7712                        pthread_attr_init(&attr);
7713                        pthread_cleanup_push(routine, 0);
7714                        pthread_cleanup_pop(0) /* ; */
7715  ;
7716  return 0;
7717}
7718_ACEOF
7719if ac_fn_c_try_link "$LINENO"; then :
7720  ax_pthread_ok=yes
7721fi
7722rm -f core conftest.err conftest.$ac_objext \
7723    conftest$ac_exeext conftest.$ac_ext
7724
7725        CFLAGS="$ax_pthread_save_CFLAGS"
7726        LIBS="$ax_pthread_save_LIBS"
7727
7728        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7729$as_echo "$ax_pthread_ok" >&6; }
7730        if test "x$ax_pthread_ok" = "xyes"; then :
7731  break
7732fi
7733
7734        PTHREAD_LIBS=""
7735        PTHREAD_CFLAGS=""
7736done
7737fi
7738
7739# Various other checks:
7740if test "x$ax_pthread_ok" = "xyes"; then
7741        ax_pthread_save_CFLAGS="$CFLAGS"
7742        ax_pthread_save_LIBS="$LIBS"
7743        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7744        LIBS="$PTHREAD_LIBS $LIBS"
7745
7746        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7747        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7748$as_echo_n "checking for joinable pthread attribute... " >&6; }
7749if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
7750  $as_echo_n "(cached) " >&6
7751else
7752  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7753             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7754                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756#include <pthread.h>
7757int
7758main ()
7759{
7760int attr = $ax_pthread_attr; return attr /* ; */
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765if ac_fn_c_try_link "$LINENO"; then :
7766  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7767fi
7768rm -f core conftest.err conftest.$ac_objext \
7769    conftest$ac_exeext conftest.$ac_ext
7770             done
7771
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7774$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7775        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7776               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7777               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
7778
7779cat >>confdefs.h <<_ACEOF
7780#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
7781_ACEOF
7782
7783               ax_pthread_joinable_attr_defined=yes
7784
7785fi
7786
7787        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7788$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
7789if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
7790  $as_echo_n "(cached) " >&6
7791else
7792  ax_cv_PTHREAD_SPECIAL_FLAGS=no
7793             case $host_os in
7794             solaris*)
7795             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7796             ;;
7797             esac
7798
7799fi
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7801$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7802        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7803               test "x$ax_pthread_special_flags_added" != "xyes"; then :
7804  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7805               ax_pthread_special_flags_added=yes
7806fi
7807
7808        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7809$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7810if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815#include <pthread.h>
7816int
7817main ()
7818{
7819int i = PTHREAD_PRIO_INHERIT;
7820  ;
7821  return 0;
7822}
7823_ACEOF
7824if ac_fn_c_try_link "$LINENO"; then :
7825  ax_cv_PTHREAD_PRIO_INHERIT=yes
7826else
7827  ax_cv_PTHREAD_PRIO_INHERIT=no
7828fi
7829rm -f core conftest.err conftest.$ac_objext \
7830    conftest$ac_exeext conftest.$ac_ext
7831
7832fi
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7834$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7835        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7836               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
7837
7838$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7839
7840               ax_pthread_prio_inherit_defined=yes
7841
7842fi
7843
7844        CFLAGS="$ax_pthread_save_CFLAGS"
7845        LIBS="$ax_pthread_save_LIBS"
7846
7847        # More AIX lossage: compile with *_r variant
7848        if test "x$GCC" != "xyes"; then
7849            case $host_os in
7850                aix*)
7851                case "x/$CC" in #(
7852  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7853    #handle absolute path differently from PATH based program lookup
7854                     case "x$CC" in #(
7855  x/*) :
7856    if as_fn_executable_p ${CC}_r; then :
7857  PTHREAD_CC="${CC}_r"
7858fi ;; #(
7859  *) :
7860    for ac_prog in ${CC}_r
7861do
7862  # Extract the first word of "$ac_prog", so it can be a program name with args.
7863set dummy $ac_prog; ac_word=$2
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
7866if ${ac_cv_prog_PTHREAD_CC+:} false; then :
7867  $as_echo_n "(cached) " >&6
7868else
7869  if test -n "$PTHREAD_CC"; then
7870  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7871else
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875  IFS=$as_save_IFS
7876  test -z "$as_dir" && as_dir=.
7877    for ac_exec_ext in '' $ac_executable_extensions; do
7878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7879    ac_cv_prog_PTHREAD_CC="$ac_prog"
7880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881    break 2
7882  fi
7883done
7884  done
7885IFS=$as_save_IFS
7886
7887fi
7888fi
7889PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7890if test -n "$PTHREAD_CC"; then
7891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7892$as_echo "$PTHREAD_CC" >&6; }
7893else
7894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896fi
7897
7898
7899  test -n "$PTHREAD_CC" && break
7900done
7901test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7902 ;;
7903esac ;; #(
7904  *) :
7905     ;;
7906esac
7907                ;;
7908            esac
7909        fi
7910fi
7911
7912test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7913
7914
7915
7916
7917
7918# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7919if test "x$ax_pthread_ok" = "xyes"; then
7920        threads=yes
7921        :
7922else
7923        ax_pthread_ok=no
7924        threads=no
7925fi
7926ac_ext=cpp
7927ac_cpp='$CXXCPP $CPPFLAGS'
7928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7931
7932
7933  save_LIBS="$LIBS"
7934  LIBS="$PTHREAD_LIBS $LIBS"
7935  save_CXXFLAGS="$CXXFLAGS"
7936  CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
7937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
7938$as_echo_n "checking for std::thread... " >&6; }
7939if ${gdb_cv_cxx_std_thread+:} false; then :
7940  $as_echo_n "(cached) " >&6
7941else
7942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h.  */
7944  #if defined (__MINGW32__) || defined (__CYGWIN__)
7945    # ifdef _WIN32_WINNT
7946    #  if _WIN32_WINNT < 0x0501
7947    #   undef _WIN32_WINNT
7948    #   define _WIN32_WINNT 0x0501
7949    #  endif
7950    # else
7951    #  define _WIN32_WINNT 0x0501
7952    # endif
7953    #endif	/* __MINGW32__ || __CYGWIN__ */
7954    #include <thread>
7955    void callback() { }
7956int
7957main ()
7958{
7959std::thread t(callback);
7960  ;
7961  return 0;
7962}
7963_ACEOF
7964if ac_fn_cxx_try_compile "$LINENO"; then :
7965  gdb_cv_cxx_std_thread=yes
7966else
7967  gdb_cv_cxx_std_thread=no
7968fi
7969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970fi
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
7972$as_echo "$gdb_cv_cxx_std_thread" >&6; }
7973
7974  if test "$threads" = "yes"; then
7975    # This check must be here, while LIBS includes any necessary
7976    # threading library.
7977    for ac_func in pthread_sigmask pthread_setname_np
7978do :
7979  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7980ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7981if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7982  cat >>confdefs.h <<_ACEOF
7983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7984_ACEOF
7985
7986fi
7987done
7988
7989  fi
7990  LIBS="$save_LIBS"
7991  CXXFLAGS="$save_CXXFLAGS"
7992
7993  if test "$want_threading" = "yes"; then
7994    if test "$gdb_cv_cxx_std_thread" = "yes"; then
7995
7996$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
7997
7998    fi
7999  fi
8000  ac_ext=c
8001ac_cpp='$CPP $CPPFLAGS'
8002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005
8006
8007      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
8008$as_echo_n "checking for sigsetjmp... " >&6; }
8009if ${gdb_cv_func_sigsetjmp+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013/* end confdefs.h.  */
8014#include <setjmp.h>
8015int
8016main ()
8017{
8018sigjmp_buf env;
8019           while (! sigsetjmp (env, 1))
8020             siglongjmp (env, 1);
8021
8022  ;
8023  return 0;
8024}
8025_ACEOF
8026if ac_fn_c_try_compile "$LINENO"; then :
8027  gdb_cv_func_sigsetjmp=yes
8028else
8029  gdb_cv_func_sigsetjmp=no
8030
8031fi
8032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033
8034fi
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8036$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8037  if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8038
8039$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8040
8041  fi
8042
8043
8044# Check whether --with-intel_pt was given.
8045if test "${with_intel_pt+set}" = set; then :
8046  withval=$with_intel_pt;
8047else
8048  with_intel_pt=auto
8049fi
8050
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
8052$as_echo_n "checking whether to use intel pt... " >&6; }
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
8054$as_echo "$with_intel_pt" >&6; }
8055
8056  if test "${with_intel_pt}" = no; then
8057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
8058$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
8059    HAVE_LIBIPT=no
8060  else
8061    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062/* end confdefs.h.  */
8063
8064  #include <linux/perf_event.h>
8065  #ifndef PERF_ATTR_SIZE_VER5
8066  # error
8067  #endif
8068
8069_ACEOF
8070if ac_fn_c_try_cpp "$LINENO"; then :
8071  perf_event=yes
8072else
8073  perf_event=no
8074fi
8075rm -f conftest.err conftest.i conftest.$ac_ext
8076    if test "$perf_event" != yes; then
8077      if test "$with_intel_pt" = yes; then
8078	as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
8079      else
8080	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
8081$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
8082      fi
8083    fi
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093    use_additional=yes
8094
8095  acl_save_prefix="$prefix"
8096  prefix="$acl_final_prefix"
8097  acl_save_exec_prefix="$exec_prefix"
8098  exec_prefix="$acl_final_exec_prefix"
8099
8100    eval additional_includedir=\"$includedir\"
8101    eval additional_libdir=\"$libdir\"
8102
8103  exec_prefix="$acl_save_exec_prefix"
8104  prefix="$acl_save_prefix"
8105
8106
8107# Check whether --with-libipt-prefix was given.
8108if test "${with_libipt_prefix+set}" = set; then :
8109  withval=$with_libipt_prefix;
8110    if test "X$withval" = "Xno"; then
8111      use_additional=no
8112    else
8113      if test "X$withval" = "X"; then
8114
8115  acl_save_prefix="$prefix"
8116  prefix="$acl_final_prefix"
8117  acl_save_exec_prefix="$exec_prefix"
8118  exec_prefix="$acl_final_exec_prefix"
8119
8120          eval additional_includedir=\"$includedir\"
8121          eval additional_libdir=\"$libdir\"
8122
8123  exec_prefix="$acl_save_exec_prefix"
8124  prefix="$acl_save_prefix"
8125
8126      else
8127        additional_includedir="$withval/include"
8128        additional_libdir="$withval/lib"
8129      fi
8130    fi
8131
8132fi
8133
8134
8135# Check whether --with-libipt-type was given.
8136if test "${with_libipt_type+set}" = set; then :
8137  withval=$with_libipt_type;  with_libipt_type=$withval
8138else
8139   with_libipt_type=auto
8140fi
8141
8142  lib_type=`eval echo \$with_libipt_type`
8143
8144      LIBIPT=
8145  LTLIBIPT=
8146  INCIPT=
8147  rpathdirs=
8148  ltrpathdirs=
8149  names_already_handled=
8150  names_next_round='ipt '
8151  while test -n "$names_next_round"; do
8152    names_this_round="$names_next_round"
8153    names_next_round=
8154    for name in $names_this_round; do
8155      already_handled=
8156      for n in $names_already_handled; do
8157        if test "$n" = "$name"; then
8158          already_handled=yes
8159          break
8160        fi
8161      done
8162      if test -z "$already_handled"; then
8163        names_already_handled="$names_already_handled $name"
8164                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8165        eval value=\"\$HAVE_LIB$uppername\"
8166        if test -n "$value"; then
8167          if test "$value" = yes; then
8168            eval value=\"\$LIB$uppername\"
8169            test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
8170            eval value=\"\$LTLIB$uppername\"
8171            test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
8172          else
8173                                    :
8174          fi
8175        else
8176                              found_dir=
8177          found_la=
8178          found_so=
8179          found_a=
8180          if test $use_additional = yes; then
8181            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8182              found_dir="$additional_libdir"
8183              found_so="$additional_libdir/lib$name.$shlibext"
8184              if test -f "$additional_libdir/lib$name.la"; then
8185                found_la="$additional_libdir/lib$name.la"
8186              fi
8187            elif test x$lib_type != xshared; then
8188              if test -f "$additional_libdir/lib$name.$libext"; then
8189                found_dir="$additional_libdir"
8190                found_a="$additional_libdir/lib$name.$libext"
8191                if test -f "$additional_libdir/lib$name.la"; then
8192                  found_la="$additional_libdir/lib$name.la"
8193                fi
8194              fi
8195            fi
8196          fi
8197          if test "X$found_dir" = "X"; then
8198            for x in $LDFLAGS $LTLIBIPT; do
8199
8200  acl_save_prefix="$prefix"
8201  prefix="$acl_final_prefix"
8202  acl_save_exec_prefix="$exec_prefix"
8203  exec_prefix="$acl_final_exec_prefix"
8204  eval x=\"$x\"
8205  exec_prefix="$acl_save_exec_prefix"
8206  prefix="$acl_save_prefix"
8207
8208              case "$x" in
8209                -L*)
8210                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8211                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8212                    found_dir="$dir"
8213                    found_so="$dir/lib$name.$shlibext"
8214                    if test -f "$dir/lib$name.la"; then
8215                      found_la="$dir/lib$name.la"
8216                    fi
8217                  elif test x$lib_type != xshared; then
8218                    if test -f "$dir/lib$name.$libext"; then
8219                      found_dir="$dir"
8220                      found_a="$dir/lib$name.$libext"
8221                      if test -f "$dir/lib$name.la"; then
8222                        found_la="$dir/lib$name.la"
8223                      fi
8224                    fi
8225                  fi
8226                  ;;
8227              esac
8228              if test "X$found_dir" != "X"; then
8229                break
8230              fi
8231            done
8232          fi
8233          if test "X$found_dir" != "X"; then
8234                        LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
8235            if test "X$found_so" != "X"; then
8236                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8237                                LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
8238              else
8239                                                                                haveit=
8240                for x in $ltrpathdirs; do
8241                  if test "X$x" = "X$found_dir"; then
8242                    haveit=yes
8243                    break
8244                  fi
8245                done
8246                if test -z "$haveit"; then
8247                  ltrpathdirs="$ltrpathdirs $found_dir"
8248                fi
8249                                if test "$hardcode_direct" = yes; then
8250                                                      LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
8251                else
8252                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8253                                                            LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
8254                                                            haveit=
8255                    for x in $rpathdirs; do
8256                      if test "X$x" = "X$found_dir"; then
8257                        haveit=yes
8258                        break
8259                      fi
8260                    done
8261                    if test -z "$haveit"; then
8262                      rpathdirs="$rpathdirs $found_dir"
8263                    fi
8264                  else
8265                                                                                haveit=
8266                    for x in $LDFLAGS $LIBIPT; do
8267
8268  acl_save_prefix="$prefix"
8269  prefix="$acl_final_prefix"
8270  acl_save_exec_prefix="$exec_prefix"
8271  exec_prefix="$acl_final_exec_prefix"
8272  eval x=\"$x\"
8273  exec_prefix="$acl_save_exec_prefix"
8274  prefix="$acl_save_prefix"
8275
8276                      if test "X$x" = "X-L$found_dir"; then
8277                        haveit=yes
8278                        break
8279                      fi
8280                    done
8281                    if test -z "$haveit"; then
8282                      LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
8283                    fi
8284                    if test "$hardcode_minus_L" != no; then
8285                                                                                        LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
8286                    else
8287                                                                                                                                                                                LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
8288                    fi
8289                  fi
8290                fi
8291              fi
8292            else
8293              if test "X$found_a" != "X"; then
8294                                LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
8295              else
8296                                                LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
8297              fi
8298            fi
8299                        additional_includedir=
8300            case "$found_dir" in
8301              */lib | */lib/)
8302                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8303                additional_includedir="$basedir/include"
8304                ;;
8305            esac
8306            if test "X$additional_includedir" != "X"; then
8307                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8308                haveit=
8309                if test "X$additional_includedir" = "X/usr/local/include"; then
8310                  if test -n "$GCC"; then
8311                    case $host_os in
8312                      linux*) haveit=yes;;
8313                    esac
8314                  fi
8315                fi
8316                if test -z "$haveit"; then
8317                  for x in $CPPFLAGS $INCIPT; do
8318
8319  acl_save_prefix="$prefix"
8320  prefix="$acl_final_prefix"
8321  acl_save_exec_prefix="$exec_prefix"
8322  exec_prefix="$acl_final_exec_prefix"
8323  eval x=\"$x\"
8324  exec_prefix="$acl_save_exec_prefix"
8325  prefix="$acl_save_prefix"
8326
8327                    if test "X$x" = "X-I$additional_includedir"; then
8328                      haveit=yes
8329                      break
8330                    fi
8331                  done
8332                  if test -z "$haveit"; then
8333                    if test -d "$additional_includedir"; then
8334                                            INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
8335                    fi
8336                  fi
8337                fi
8338              fi
8339            fi
8340                        if test -n "$found_la"; then
8341                                                        save_libdir="$libdir"
8342              case "$found_la" in
8343                */* | *\\*) . "$found_la" ;;
8344                *) . "./$found_la" ;;
8345              esac
8346              libdir="$save_libdir"
8347                            for dep in $dependency_libs; do
8348                case "$dep" in
8349                  -L*)
8350                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8351                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
8352                      haveit=
8353                      if test "X$additional_libdir" = "X/usr/local/lib"; then
8354                        if test -n "$GCC"; then
8355                          case $host_os in
8356                            linux*) haveit=yes;;
8357                          esac
8358                        fi
8359                      fi
8360                      if test -z "$haveit"; then
8361                        haveit=
8362                        for x in $LDFLAGS $LIBIPT; do
8363
8364  acl_save_prefix="$prefix"
8365  prefix="$acl_final_prefix"
8366  acl_save_exec_prefix="$exec_prefix"
8367  exec_prefix="$acl_final_exec_prefix"
8368  eval x=\"$x\"
8369  exec_prefix="$acl_save_exec_prefix"
8370  prefix="$acl_save_prefix"
8371
8372                          if test "X$x" = "X-L$additional_libdir"; then
8373                            haveit=yes
8374                            break
8375                          fi
8376                        done
8377                        if test -z "$haveit"; then
8378                          if test -d "$additional_libdir"; then
8379                                                        LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
8380                          fi
8381                        fi
8382                        haveit=
8383                        for x in $LDFLAGS $LTLIBIPT; do
8384
8385  acl_save_prefix="$prefix"
8386  prefix="$acl_final_prefix"
8387  acl_save_exec_prefix="$exec_prefix"
8388  exec_prefix="$acl_final_exec_prefix"
8389  eval x=\"$x\"
8390  exec_prefix="$acl_save_exec_prefix"
8391  prefix="$acl_save_prefix"
8392
8393                          if test "X$x" = "X-L$additional_libdir"; then
8394                            haveit=yes
8395                            break
8396                          fi
8397                        done
8398                        if test -z "$haveit"; then
8399                          if test -d "$additional_libdir"; then
8400                                                        LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
8401                          fi
8402                        fi
8403                      fi
8404                    fi
8405                    ;;
8406                  -R*)
8407                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8408                    if test "$enable_rpath" != no; then
8409                                                                  haveit=
8410                      for x in $rpathdirs; do
8411                        if test "X$x" = "X$dir"; then
8412                          haveit=yes
8413                          break
8414                        fi
8415                      done
8416                      if test -z "$haveit"; then
8417                        rpathdirs="$rpathdirs $dir"
8418                      fi
8419                                                                  haveit=
8420                      for x in $ltrpathdirs; do
8421                        if test "X$x" = "X$dir"; then
8422                          haveit=yes
8423                          break
8424                        fi
8425                      done
8426                      if test -z "$haveit"; then
8427                        ltrpathdirs="$ltrpathdirs $dir"
8428                      fi
8429                    fi
8430                    ;;
8431                  -l*)
8432                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8433                    ;;
8434                  *.la)
8435                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8436                    ;;
8437                  *)
8438                                        LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
8439                    LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
8440                    ;;
8441                esac
8442              done
8443            fi
8444          else
8445                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8446              LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
8447              LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
8448            else
8449              LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
8450              LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
8451            fi
8452          fi
8453        fi
8454      fi
8455    done
8456  done
8457  if test "X$rpathdirs" != "X"; then
8458    if test -n "$hardcode_libdir_separator"; then
8459                        alldirs=
8460      for found_dir in $rpathdirs; do
8461        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8462      done
8463            acl_save_libdir="$libdir"
8464      libdir="$alldirs"
8465      eval flag=\"$hardcode_libdir_flag_spec\"
8466      libdir="$acl_save_libdir"
8467      LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
8468    else
8469            for found_dir in $rpathdirs; do
8470        acl_save_libdir="$libdir"
8471        libdir="$found_dir"
8472        eval flag=\"$hardcode_libdir_flag_spec\"
8473        libdir="$acl_save_libdir"
8474        LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
8475      done
8476    fi
8477  fi
8478  if test "X$ltrpathdirs" != "X"; then
8479            for found_dir in $ltrpathdirs; do
8480      LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
8481    done
8482  fi
8483
8484
8485        ac_save_CPPFLAGS="$CPPFLAGS"
8486
8487  for element in $INCIPT; do
8488    haveit=
8489    for x in $CPPFLAGS; do
8490
8491  acl_save_prefix="$prefix"
8492  prefix="$acl_final_prefix"
8493  acl_save_exec_prefix="$exec_prefix"
8494  exec_prefix="$acl_final_exec_prefix"
8495  eval x=\"$x\"
8496  exec_prefix="$acl_save_exec_prefix"
8497  prefix="$acl_save_prefix"
8498
8499      if test "X$x" = "X$element"; then
8500        haveit=yes
8501        break
8502      fi
8503    done
8504    if test -z "$haveit"; then
8505      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8506    fi
8507  done
8508
8509
8510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
8511$as_echo_n "checking for libipt... " >&6; }
8512if ${ac_cv_libipt+:} false; then :
8513  $as_echo_n "(cached) " >&6
8514else
8515
8516    ac_save_LIBS="$LIBS"
8517    LIBS="$LIBS $LIBIPT"
8518    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h.  */
8520#include "intel-pt.h"
8521int
8522main ()
8523{
8524pt_insn_alloc_decoder (0);
8525  ;
8526  return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_link "$LINENO"; then :
8530  ac_cv_libipt=yes
8531else
8532  ac_cv_libipt=no
8533fi
8534rm -f core conftest.err conftest.$ac_objext \
8535    conftest$ac_exeext conftest.$ac_ext
8536    LIBS="$ac_save_LIBS"
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
8540$as_echo "$ac_cv_libipt" >&6; }
8541  if test "$ac_cv_libipt" = yes; then
8542    HAVE_LIBIPT=yes
8543
8544$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
8545
8546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
8547$as_echo_n "checking how to link with libipt... " >&6; }
8548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
8549$as_echo "$LIBIPT" >&6; }
8550  else
8551    HAVE_LIBIPT=no
8552            CPPFLAGS="$ac_save_CPPFLAGS"
8553    LIBIPT=
8554    LTLIBIPT=
8555  fi
8556
8557
8558
8559
8560
8561
8562    if test "$HAVE_LIBIPT" != yes; then
8563      if test "$with_intel_pt" = yes; then
8564	as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
8565      else
8566	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
8567$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
8568      fi
8569    else
8570      save_LIBS=$LIBS
8571      LIBS="$LIBS $LIBIPT"
8572      for ac_func in pt_insn_event
8573do :
8574  ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
8575if test "x$ac_cv_func_pt_insn_event" = xyes; then :
8576  cat >>confdefs.h <<_ACEOF
8577#define HAVE_PT_INSN_EVENT 1
8578_ACEOF
8579
8580fi
8581done
8582
8583      ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
8584"
8585if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
8586
8587cat >>confdefs.h <<_ACEOF
8588#define HAVE_STRUCT_PT_INSN_ENABLED 1
8589_ACEOF
8590
8591
8592fi
8593ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
8594"
8595if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
8596
8597cat >>confdefs.h <<_ACEOF
8598#define HAVE_STRUCT_PT_INSN_RESYNCED 1
8599_ACEOF
8600
8601
8602fi
8603
8604      LIBS=$save_LIBS
8605    fi
8606  fi
8607
8608  # Check if the compiler and runtime support printing long longs.
8609
8610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
8611$as_echo_n "checking for long long support in printf... " >&6; }
8612if ${gdb_cv_printf_has_long_long+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  if test "$cross_compiling" = yes; then :
8616  gdb_cv_printf_has_long_long=no
8617else
8618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620$ac_includes_default
8621int
8622main ()
8623{
8624char buf[32];
8625    long long l = 0;
8626    l = (l << 16) + 0x0123;
8627    l = (l << 16) + 0x4567;
8628    l = (l << 16) + 0x89ab;
8629    l = (l << 16) + 0xcdef;
8630    sprintf (buf, "0x%016llx", l);
8631    return (strcmp ("0x0123456789abcdef", buf));
8632  ;
8633  return 0;
8634}
8635_ACEOF
8636if ac_fn_c_try_run "$LINENO"; then :
8637  gdb_cv_printf_has_long_long=yes
8638else
8639  gdb_cv_printf_has_long_long=no
8640fi
8641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8642  conftest.$ac_objext conftest.beam conftest.$ac_ext
8643fi
8644
8645fi
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
8647$as_echo "$gdb_cv_printf_has_long_long" >&6; }
8648  if test "$gdb_cv_printf_has_long_long" = yes; then
8649
8650$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
8651
8652  fi
8653
8654
8655$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
8656
8657 for ac_header in sys/procfs.h
8658do :
8659  ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
8660if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
8661  cat >>confdefs.h <<_ACEOF
8662#define HAVE_SYS_PROCFS_H 1
8663_ACEOF
8664
8665fi
8666
8667done
8668
8669  if test "$ac_cv_header_sys_procfs_h" = yes; then
8670
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
8672$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
8673 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678
8679#define _SYSCALL32
8680#include <sys/procfs.h>
8681int
8682main ()
8683{
8684gregset_t avar
8685  ;
8686  return 0;
8687}
8688_ACEOF
8689if ac_fn_c_try_compile "$LINENO"; then :
8690  bfd_cv_have_sys_procfs_type_gregset_t=yes
8691else
8692  bfd_cv_have_sys_procfs_type_gregset_t=no
8693
8694fi
8695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696fi
8697
8698 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8699
8700$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
8701
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
8704$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
8705
8706
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
8708$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
8709 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
8710  $as_echo_n "(cached) " >&6
8711else
8712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h.  */
8714
8715#define _SYSCALL32
8716#include <sys/procfs.h>
8717int
8718main ()
8719{
8720fpregset_t avar
8721  ;
8722  return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_compile "$LINENO"; then :
8726  bfd_cv_have_sys_procfs_type_fpregset_t=yes
8727else
8728  bfd_cv_have_sys_procfs_type_fpregset_t=no
8729
8730fi
8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732fi
8733
8734 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8735
8736$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
8737
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
8740$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
8741
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8744$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8745 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750
8751#define _SYSCALL32
8752#include <sys/procfs.h>
8753int
8754main ()
8755{
8756prgregset_t avar
8757  ;
8758  return 0;
8759}
8760_ACEOF
8761if ac_fn_c_try_compile "$LINENO"; then :
8762  bfd_cv_have_sys_procfs_type_prgregset_t=yes
8763else
8764  bfd_cv_have_sys_procfs_type_prgregset_t=no
8765
8766fi
8767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768fi
8769
8770 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8771
8772$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8776$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8777
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8780$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8781 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
8782  $as_echo_n "(cached) " >&6
8783else
8784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785/* end confdefs.h.  */
8786
8787#define _SYSCALL32
8788#include <sys/procfs.h>
8789int
8790main ()
8791{
8792prfpregset_t avar
8793  ;
8794  return 0;
8795}
8796_ACEOF
8797if ac_fn_c_try_compile "$LINENO"; then :
8798  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
8799else
8800  bfd_cv_have_sys_procfs_type_prfpregset_t=no
8801
8802fi
8803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804fi
8805
8806 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8807
8808$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8809
8810 fi
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8812$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8813
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
8816$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
8817 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
8818  $as_echo_n "(cached) " >&6
8819else
8820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821/* end confdefs.h.  */
8822
8823#define _SYSCALL32
8824#include <sys/procfs.h>
8825int
8826main ()
8827{
8828prgregset32_t avar
8829  ;
8830  return 0;
8831}
8832_ACEOF
8833if ac_fn_c_try_compile "$LINENO"; then :
8834  bfd_cv_have_sys_procfs_type_prgregset32_t=yes
8835else
8836  bfd_cv_have_sys_procfs_type_prgregset32_t=no
8837
8838fi
8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840fi
8841
8842 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8843
8844$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
8845
8846 fi
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
8848$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
8849
8850
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
8852$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
8853 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
8854  $as_echo_n "(cached) " >&6
8855else
8856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857/* end confdefs.h.  */
8858
8859#define _SYSCALL32
8860#include <sys/procfs.h>
8861int
8862main ()
8863{
8864lwpid_t avar
8865  ;
8866  return 0;
8867}
8868_ACEOF
8869if ac_fn_c_try_compile "$LINENO"; then :
8870  bfd_cv_have_sys_procfs_type_lwpid_t=yes
8871else
8872  bfd_cv_have_sys_procfs_type_lwpid_t=no
8873
8874fi
8875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876fi
8877
8878 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8879
8880$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8881
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8884$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8885
8886
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8888$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8889 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
8890  $as_echo_n "(cached) " >&6
8891else
8892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893/* end confdefs.h.  */
8894
8895#define _SYSCALL32
8896#include <sys/procfs.h>
8897int
8898main ()
8899{
8900psaddr_t avar
8901  ;
8902  return 0;
8903}
8904_ACEOF
8905if ac_fn_c_try_compile "$LINENO"; then :
8906  bfd_cv_have_sys_procfs_type_psaddr_t=yes
8907else
8908  bfd_cv_have_sys_procfs_type_psaddr_t=no
8909
8910fi
8911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912fi
8913
8914 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8915
8916$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8917
8918 fi
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8920$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8921
8922
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8924$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8925 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h.  */
8930
8931#define _SYSCALL32
8932#include <sys/procfs.h>
8933int
8934main ()
8935{
8936elf_fpregset_t avar
8937  ;
8938  return 0;
8939}
8940_ACEOF
8941if ac_fn_c_try_compile "$LINENO"; then :
8942  bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
8943else
8944  bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
8945
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948fi
8949
8950 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8951
8952$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8956$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8957
8958  fi
8959
8960# This is set by GDB_AC_COMMON.
8961
8962
8963
8964# Check whether we will enable the inclusion of unit tests when
8965# compiling GDB.
8966#
8967# The default value of this option changes depending whether we're on
8968# development mode (in which case it's "true") or not (in which case
8969# it's "false").  The $development variable is set by the GDB_AC_COMMON
8970# macro, which must therefore be used before GDB_AC_SELFTEST.
8971
8972if test "x$development" != xtrue && test "x$development" != xfalse; then :
8973  as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
8974fi
8975
8976# Check whether --enable-unit-tests was given.
8977if test "${enable_unit_tests+set}" = set; then :
8978  enableval=$enable_unit_tests; case "${enableval}" in
8979  yes)  enable_unittests=true  ;;
8980  no)   enable_unittests=false ;;
8981  *)    as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
8982esac
8983else
8984  enable_unittests=$development
8985fi
8986
8987
8988if $enable_unittests; then
8989
8990$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
8991
8992
8993fi
8994
8995
8996 case ${build_alias} in
8997  "") build_noncanonical=${build} ;;
8998  *) build_noncanonical=${build_alias} ;;
8999esac
9000
9001 case ${host_alias} in
9002  "") host_noncanonical=${build_noncanonical} ;;
9003  *) host_noncanonical=${host_alias} ;;
9004esac
9005
9006 case ${target_alias} in
9007  "") target_noncanonical=${host_noncanonical} ;;
9008  *) target_noncanonical=${target_alias} ;;
9009esac
9010
9011
9012
9013
9014
9015
9016# Dependency checking.
9017rm -rf .tst 2>/dev/null
9018mkdir .tst 2>/dev/null
9019if test -d .tst; then
9020  am__leading_dot=.
9021else
9022  am__leading_dot=_
9023fi
9024rmdir .tst 2>/dev/null
9025
9026DEPDIR="${am__leading_dot}deps"
9027
9028ac_config_commands="$ac_config_commands depdir"
9029
9030
9031
9032# If we haven't got the data from the intl directory,
9033# assume NLS is disabled.
9034USE_NLS=no
9035LIBINTL=
9036LIBINTL_DEP=
9037INCINTL=
9038XGETTEXT=
9039GMSGFMT=
9040POSUB=
9041
9042if test -f  ../intl/config.intl; then
9043  .  ../intl/config.intl
9044fi
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9046$as_echo_n "checking whether NLS is requested... " >&6; }
9047if test x"$USE_NLS" != xyes; then
9048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049$as_echo "no" >&6; }
9050else
9051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9052$as_echo "yes" >&6; }
9053
9054$as_echo "#define ENABLE_NLS 1" >>confdefs.h
9055
9056
9057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
9058$as_echo_n "checking for catalogs to be installed... " >&6; }
9059  # Look for .po and .gmo files in the source directory.
9060  CATALOGS=
9061  XLINGUAS=
9062  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9063    # If there aren't any .gmo files the shell will give us the
9064    # literal string "../path/to/srcdir/po/*.gmo" which has to be
9065    # weeded out.
9066    case "$cat" in *\**)
9067      continue;;
9068    esac
9069    # The quadruple backslash is collapsed to a double backslash
9070    # by the backticks, then collapsed again by the double quotes,
9071    # leaving us with one backslash in the sed expression (right
9072    # before the dot that mustn't act as a wildcard).
9073    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
9074    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
9075    # The user is allowed to set LINGUAS to a list of languages to
9076    # install catalogs for.  If it's empty that means "all of them."
9077    if test "x$LINGUAS" = x; then
9078      CATALOGS="$CATALOGS $cat"
9079      XLINGUAS="$XLINGUAS $lang"
9080    else
9081      case "$LINGUAS" in *$lang*)
9082        CATALOGS="$CATALOGS $cat"
9083        XLINGUAS="$XLINGUAS $lang"
9084        ;;
9085      esac
9086    fi
9087  done
9088  LINGUAS="$XLINGUAS"
9089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
9090$as_echo "$LINGUAS" >&6; }
9091
9092
9093    DATADIRNAME=share
9094
9095  INSTOBJEXT=.mo
9096
9097  GENCAT=gencat
9098
9099  CATOBJEXT=.gmo
9100
9101fi
9102
9103# Create sub-directories for objects and dependencies.
9104CONFIG_SRC_SUBDIR="arch gdbsupport nat target"
9105
9106
9107ac_config_commands="$ac_config_commands gdbdepdir"
9108
9109
9110depcc="$CC"   am_compiler_list=
9111
9112am_depcomp=$ac_aux_dir/depcomp
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9114$as_echo_n "checking dependency style of $depcc... " >&6; }
9115if ${am_cv_CC_dependencies_compiler_type+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  if test -f "$am_depcomp"; then
9119  # We make a subdir and do the tests there.  Otherwise we can end up
9120  # making bogus files that we don't know about and never remove.  For
9121  # instance it was reported that on HP-UX the gcc test will end up
9122  # making a dummy file named `D' -- because `-MD' means `put the output
9123  # in D'.
9124  mkdir conftest.dir
9125  # Copy depcomp to subdir because otherwise we won't find it if we're
9126  # using a relative directory.
9127  cp "$am_depcomp" conftest.dir
9128  cd conftest.dir
9129  # We will build objects and dependencies in a subdirectory because
9130  # it helps to detect inapplicable dependency modes.  For instance
9131  # both Tru64's cc and ICC support -MD to output dependencies as a
9132  # side effect of compilation, but ICC will put the dependencies in
9133  # the current directory while Tru64 will put them in the object
9134  # directory.
9135  mkdir sub
9136
9137  am_cv_CC_dependencies_compiler_type=none
9138  if test "$am_compiler_list" = ""; then
9139     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9140  fi
9141  for depmode in $am_compiler_list; do
9142    if test $depmode = none; then break; fi
9143
9144    $as_echo "$as_me:$LINENO: trying $depmode" >&5
9145    # Setup a source with many dependencies, because some compilers
9146    # like to wrap large dependency lists on column 80 (with \), and
9147    # we should not choose a depcomp mode which is confused by this.
9148    #
9149    # We need to recreate these files for each test, as the compiler may
9150    # overwrite some of them when testing with obscure command lines.
9151    # This happens at least with the AIX C compiler.
9152    : > sub/conftest.c
9153    for i in 1 2 3 4 5 6; do
9154      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9155      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9156      # Solaris 8's {/usr,}/bin/sh.
9157      touch sub/conftst$i.h
9158    done
9159    echo "include sub/conftest.Po" > confmf
9160
9161    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9162    # mode.  It turns out that the SunPro C++ compiler does not properly
9163    # handle `-M -o', and we need to detect this.
9164    depcmd="depmode=$depmode \
9165       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9166       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9167       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9168    echo "| $depcmd" | sed -e 's/  */ /g' >&5
9169    if env $depcmd > conftest.err 2>&1 &&
9170       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9171       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9172       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9173      # icc doesn't choke on unknown options, it will just issue warnings
9174      # or remarks (even with -Werror).  So we grep stderr for any message
9175      # that says an option was ignored or not supported.
9176      # When given -MP, icc 7.0 and 7.1 complain thusly:
9177      #   icc: Command line warning: ignoring option '-M'; no argument required
9178      # The diagnosis changed in icc 8.0:
9179      #   icc: Command line remark: option '-MP' not supported
9180      if (grep 'ignoring option' conftest.err ||
9181          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9182        am_cv_CC_dependencies_compiler_type=$depmode
9183	$as_echo "$as_me:$LINENO: success" >&5
9184        break
9185      fi
9186    fi
9187    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9188    sed -e 's/^/| /' < conftest.err >&5
9189  done
9190
9191  cd ..
9192  rm -rf conftest.dir
9193else
9194  am_cv_CC_dependencies_compiler_type=none
9195fi
9196
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9199$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9200if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
9201then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9202else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9203
9204fi
9205
9206
9207for ac_header in termios.h sys/reg.h string.h 		 sys/procfs.h linux/elf.h 		 fcntl.h signal.h sys/file.h 		 sys/ioctl.h netinet/in.h sys/socket.h netdb.h 		 netinet/tcp.h arpa/inet.h ws2tcpip.h
9208do :
9209  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9210ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9211if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9212  cat >>confdefs.h <<_ACEOF
9213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9214_ACEOF
9215
9216fi
9217
9218done
9219
9220for ac_header in vfork.h
9221do :
9222  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9223if test "x$ac_cv_header_vfork_h" = xyes; then :
9224  cat >>confdefs.h <<_ACEOF
9225#define HAVE_VFORK_H 1
9226_ACEOF
9227
9228fi
9229
9230done
9231
9232for ac_func in fork vfork
9233do :
9234  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9235ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9236if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9237  cat >>confdefs.h <<_ACEOF
9238#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9239_ACEOF
9240
9241fi
9242done
9243
9244if test "x$ac_cv_func_fork" = xyes; then
9245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9246$as_echo_n "checking for working fork... " >&6; }
9247if ${ac_cv_func_fork_works+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  if test "$cross_compiling" = yes; then :
9251  ac_cv_func_fork_works=cross
9252else
9253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254/* end confdefs.h.  */
9255$ac_includes_default
9256int
9257main ()
9258{
9259
9260	  /* By Ruediger Kuhlmann. */
9261	  return fork () < 0;
9262
9263  ;
9264  return 0;
9265}
9266_ACEOF
9267if ac_fn_c_try_run "$LINENO"; then :
9268  ac_cv_func_fork_works=yes
9269else
9270  ac_cv_func_fork_works=no
9271fi
9272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9273  conftest.$ac_objext conftest.beam conftest.$ac_ext
9274fi
9275
9276fi
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9278$as_echo "$ac_cv_func_fork_works" >&6; }
9279
9280else
9281  ac_cv_func_fork_works=$ac_cv_func_fork
9282fi
9283if test "x$ac_cv_func_fork_works" = xcross; then
9284  case $host in
9285    *-*-amigaos* | *-*-msdosdjgpp*)
9286      # Override, as these systems have only a dummy fork() stub
9287      ac_cv_func_fork_works=no
9288      ;;
9289    *)
9290      ac_cv_func_fork_works=yes
9291      ;;
9292  esac
9293  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9294$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9295fi
9296ac_cv_func_vfork_works=$ac_cv_func_vfork
9297if test "x$ac_cv_func_vfork" = xyes; then
9298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9299$as_echo_n "checking for working vfork... " >&6; }
9300if ${ac_cv_func_vfork_works+:} false; then :
9301  $as_echo_n "(cached) " >&6
9302else
9303  if test "$cross_compiling" = yes; then :
9304  ac_cv_func_vfork_works=cross
9305else
9306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h.  */
9308/* Thanks to Paul Eggert for this test.  */
9309$ac_includes_default
9310#include <sys/wait.h>
9311#ifdef HAVE_VFORK_H
9312# include <vfork.h>
9313#endif
9314/* On some sparc systems, changes by the child to local and incoming
9315   argument registers are propagated back to the parent.  The compiler
9316   is told about this with #include <vfork.h>, but some compilers
9317   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9318   static variable whose address is put into a register that is
9319   clobbered by the vfork.  */
9320static void
9321#ifdef __cplusplus
9322sparc_address_test (int arg)
9323# else
9324sparc_address_test (arg) int arg;
9325#endif
9326{
9327  static pid_t child;
9328  if (!child) {
9329    child = vfork ();
9330    if (child < 0) {
9331      perror ("vfork");
9332      _exit(2);
9333    }
9334    if (!child) {
9335      arg = getpid();
9336      write(-1, "", 0);
9337      _exit (arg);
9338    }
9339  }
9340}
9341
9342int
9343main ()
9344{
9345  pid_t parent = getpid ();
9346  pid_t child;
9347
9348  sparc_address_test (0);
9349
9350  child = vfork ();
9351
9352  if (child == 0) {
9353    /* Here is another test for sparc vfork register problems.  This
9354       test uses lots of local variables, at least as many local
9355       variables as main has allocated so far including compiler
9356       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9357       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9358       reuse the register of parent for one of the local variables,
9359       since it will think that parent can't possibly be used any more
9360       in this routine.  Assigning to the local variable will thus
9361       munge parent in the parent process.  */
9362    pid_t
9363      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9364      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9365    /* Convince the compiler that p..p7 are live; otherwise, it might
9366       use the same hardware register for all 8 local variables.  */
9367    if (p != p1 || p != p2 || p != p3 || p != p4
9368	|| p != p5 || p != p6 || p != p7)
9369      _exit(1);
9370
9371    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9372       from child file descriptors.  If the child closes a descriptor
9373       before it execs or exits, this munges the parent's descriptor
9374       as well.  Test for this by closing stdout in the child.  */
9375    _exit(close(fileno(stdout)) != 0);
9376  } else {
9377    int status;
9378    struct stat st;
9379
9380    while (wait(&status) != child)
9381      ;
9382    return (
9383	 /* Was there some problem with vforking?  */
9384	 child < 0
9385
9386	 /* Did the child fail?  (This shouldn't happen.)  */
9387	 || status
9388
9389	 /* Did the vfork/compiler bug occur?  */
9390	 || parent != getpid()
9391
9392	 /* Did the file descriptor bug occur?  */
9393	 || fstat(fileno(stdout), &st) != 0
9394	 );
9395  }
9396}
9397_ACEOF
9398if ac_fn_c_try_run "$LINENO"; then :
9399  ac_cv_func_vfork_works=yes
9400else
9401  ac_cv_func_vfork_works=no
9402fi
9403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9404  conftest.$ac_objext conftest.beam conftest.$ac_ext
9405fi
9406
9407fi
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9409$as_echo "$ac_cv_func_vfork_works" >&6; }
9410
9411fi;
9412if test "x$ac_cv_func_fork_works" = xcross; then
9413  ac_cv_func_vfork_works=$ac_cv_func_vfork
9414  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9415$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9416fi
9417
9418if test "x$ac_cv_func_vfork_works" = xyes; then
9419
9420$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9421
9422else
9423
9424$as_echo "#define vfork fork" >>confdefs.h
9425
9426fi
9427if test "x$ac_cv_func_fork_works" = xyes; then
9428
9429$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9430
9431fi
9432
9433for ac_func in pread pwrite pread64
9434do :
9435  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9436ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9437if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9438  cat >>confdefs.h <<_ACEOF
9439#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9440_ACEOF
9441
9442fi
9443done
9444
9445
9446# Check the return and argument types of ptrace.
9447
9448
9449for ac_header in sys/ptrace.h ptrace.h
9450do :
9451  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9453if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9454  cat >>confdefs.h <<_ACEOF
9455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9456_ACEOF
9457
9458fi
9459
9460done
9461
9462
9463gdb_ptrace_headers='
9464#include <sys/types.h>
9465#if HAVE_SYS_PTRACE_H
9466# include <sys/ptrace.h>
9467#endif
9468#if HAVE_UNISTD_H
9469# include <unistd.h>
9470#endif
9471'
9472
9473# Check return type.  Varargs (used on GNU/Linux) conflict with the
9474# empty argument list, so check for that explicitly.
9475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
9476$as_echo_n "checking return type of ptrace... " >&6; }
9477if ${gdb_cv_func_ptrace_ret+:} false; then :
9478  $as_echo_n "(cached) " >&6
9479else
9480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h.  */
9482 $gdb_ptrace_headers
9483int
9484main ()
9485{
9486extern long ptrace (enum __ptrace_request, ...);
9487
9488  ;
9489  return 0;
9490}
9491_ACEOF
9492if ac_fn_c_try_compile "$LINENO"; then :
9493  gdb_cv_func_ptrace_ret='long'
9494else
9495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496/* end confdefs.h.  */
9497$gdb_ptrace_headers
9498int
9499main ()
9500{
9501extern int ptrace ();
9502
9503  ;
9504  return 0;
9505}
9506_ACEOF
9507if ac_fn_c_try_compile "$LINENO"; then :
9508  gdb_cv_func_ptrace_ret='int'
9509else
9510  gdb_cv_func_ptrace_ret='long'
9511
9512fi
9513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9514
9515fi
9516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517
9518fi
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
9520$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
9521
9522
9523cat >>confdefs.h <<_ACEOF
9524#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
9525_ACEOF
9526
9527
9528# Check argument types.
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
9530$as_echo_n "checking types of arguments for ptrace... " >&6; }
9531if ${gdb_cv_func_ptrace_args+:} false; then :
9532  $as_echo_n "(cached) " >&6
9533else
9534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h.  */
9536$gdb_ptrace_headers
9537int
9538main ()
9539{
9540extern long ptrace (enum __ptrace_request, ...);
9541
9542  ;
9543  return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_compile "$LINENO"; then :
9547  gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
9548else
9549  for gdb_arg1 in 'int' 'long'; do
9550	for gdb_arg2 in 'pid_t' 'int' 'long'; do
9551	  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
9552	    for gdb_arg4 in 'int' 'long' 'void *'; do
9553	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554/* end confdefs.h.  */
9555$gdb_ptrace_headers
9556int
9557main ()
9558{
9559extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
9560
9561  ;
9562  return 0;
9563}
9564_ACEOF
9565if ac_fn_c_try_compile "$LINENO"; then :
9566  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
9567		 break 4;
9568
9569fi
9570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571
9572	      for gdb_arg5 in 'int *' 'int' 'long'; do
9573		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h.  */
9575$gdb_ptrace_headers
9576int
9577main ()
9578{
9579extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
9580
9581  ;
9582  return 0;
9583}
9584_ACEOF
9585if ac_fn_c_try_compile "$LINENO"; then :
9586  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
9587		   break 5;
9588
9589fi
9590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591	      done
9592	    done
9593	  done
9594	done
9595      done
9596      # Provide a safe default value.
9597      : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9598
9599fi
9600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
9604$as_echo "$gdb_cv_func_ptrace_args" >&6; }
9605
9606ac_save_IFS=$IFS; IFS=','
9607set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
9608IFS=$ac_save_IFS
9609shift
9610
9611cat >>confdefs.h <<_ACEOF
9612#define PTRACE_TYPE_ARG1 $1
9613_ACEOF
9614
9615
9616cat >>confdefs.h <<_ACEOF
9617#define PTRACE_TYPE_ARG3 $3
9618_ACEOF
9619
9620
9621cat >>confdefs.h <<_ACEOF
9622#define PTRACE_TYPE_ARG4 $4
9623_ACEOF
9624
9625if test -n "$5"; then
9626
9627cat >>confdefs.h <<_ACEOF
9628#define PTRACE_TYPE_ARG5 $5
9629_ACEOF
9630
9631fi
9632
9633
9634# Check for UST
9635ustlibs=""
9636ustinc=""
9637
9638
9639# Check whether --with-ust was given.
9640if test "${with_ust+set}" = set; then :
9641  withval=$with_ust;
9642fi
9643
9644
9645# Check whether --with-ust_include was given.
9646if test "${with_ust_include+set}" = set; then :
9647  withval=$with_ust_include;
9648fi
9649
9650
9651# Check whether --with-ust_lib was given.
9652if test "${with_ust_lib+set}" = set; then :
9653  withval=$with_ust_lib;
9654fi
9655
9656
9657case $with_ust in
9658  no)
9659    ustlibs=
9660    ustinc=
9661    ;;
9662  "" | yes)
9663    ustlibs=" -lust "
9664    ustinc=""
9665    ;;
9666  *)
9667    ustlibs="-L$with_ust/lib -lust"
9668    ustinc="-I$with_ust/include "
9669    ;;
9670esac
9671if test "x$with_ust_include" != x; then
9672  ustinc="-I$with_ust_include "
9673fi
9674if test "x$with_ust_lib" != x; then
9675  ustlibs="-L$with_ust_lib -lust"
9676fi
9677
9678if test "x$with_ust" != "xno"; then
9679  saved_CFLAGS="$CFLAGS"
9680  CFLAGS="$CFLAGS $ustinc"
9681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
9682$as_echo_n "checking for ust... " >&6; }
9683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h.  */
9685
9686#define CONFIG_UST_GDB_INTEGRATION
9687#include <ust/ust.h>
9688
9689int
9690main ()
9691{
9692
9693
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_compile "$LINENO"; then :
9699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9700$as_echo "yes" >&6; };
9701
9702$as_echo "#define HAVE_UST 1" >>confdefs.h
9703
9704else
9705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706$as_echo "no" >&6; }
9707     ustlibs= ; ustinc=
9708
9709fi
9710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9711  CFLAGS="$saved_CFLAGS"
9712fi
9713
9714# Flags needed for UST
9715
9716
9717
9718
9719
9720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
9721$as_echo_n "checking the compiler type... " >&6; }
9722if ${gdb_cv_compiler_type+:} false; then :
9723  $as_echo_n "(cached) " >&6
9724else
9725  gdb_cv_compiler_type=unknown
9726  if test "$gdb_cv_compiler_type" = unknown; then
9727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h.  */
9729
9730int
9731main ()
9732{
9733
9734                          #if !defined __GNUC__ || defined __clang__
9735                          #error not gcc
9736                          #endif
9737
9738  ;
9739  return 0;
9740}
9741_ACEOF
9742if ac_fn_c_try_compile "$LINENO"; then :
9743  gdb_cv_compiler_type=gcc
9744fi
9745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746  fi
9747
9748  if test "$gdb_cv_compiler_type" = unknown; then
9749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751
9752int
9753main ()
9754{
9755
9756                          #ifndef __clang__
9757                          #error not clang
9758                          #endif
9759
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764if ac_fn_c_try_compile "$LINENO"; then :
9765  gdb_cv_compiler_type=clang
9766fi
9767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768  fi
9769
9770fi
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
9772$as_echo "$gdb_cv_compiler_type" >&6; }
9773
9774 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
9775
9776
9777# Check whether --enable-werror was given.
9778if test "${enable_werror+set}" = set; then :
9779  enableval=$enable_werror; case "${enableval}" in
9780     yes | y) ERROR_ON_WARNING="yes" ;;
9781     no | n)  ERROR_ON_WARNING="no" ;;
9782     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9783   esac
9784fi
9785
9786
9787# Enable -Werror by default when using gcc.  Turn it off for releases.
9788if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
9789    ERROR_ON_WARNING=yes
9790fi
9791
9792WERROR_CFLAGS=""
9793if test "${ERROR_ON_WARNING}" = yes ; then
9794    WERROR_CFLAGS="-Werror"
9795fi
9796
9797# The options we'll try to enable.
9798build_warnings="-Wall -Wpointer-arith \
9799-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
9800-Wno-switch -Wno-char-subscripts \
9801-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
9802-Wno-sign-compare -Wno-error=maybe-uninitialized \
9803-Wno-mismatched-tags \
9804-Wno-error=deprecated-register \
9805-Wsuggest-override \
9806-Wimplicit-fallthrough=3 \
9807-Wduplicated-cond \
9808-Wshadow=local \
9809-Wdeprecated-copy \
9810-Wdeprecated-copy-dtor \
9811-Wredundant-move \
9812-Wmissing-declarations \
9813-Wstrict-null-sentinel \
9814"
9815
9816# The -Wmissing-prototypes flag will be accepted by GCC, but results
9817# in a warning being printed about the flag not being valid for C++,
9818# this is something to do with using ccache, and argument ordering.
9819if test "$GDB_COMPILER_TYPE" != gcc; then
9820  build_warnings="$build_warnings -Wmissing-prototypes"
9821fi
9822
9823case "${host}" in
9824  *-*-mingw32*)
9825    # Enable -Wno-format by default when using gcc on mingw since many
9826    # GCC versions complain about %I64.
9827    build_warnings="$build_warnings -Wno-format" ;;
9828  *-*-solaris*)
9829    # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
9830    # doesn't understand.
9831    build_warnings="$build_warnings -Wno-unknown-pragmas"
9832    # Solaris 11 <unistd.h> marks vfork deprecated.
9833    build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
9834  *)
9835    # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
9836    # but there's a special case for this below.
9837    build_warnings="$build_warnings -Wformat-nonliteral" ;;
9838esac
9839
9840# Check whether --enable-build-warnings was given.
9841if test "${enable_build_warnings+set}" = set; then :
9842  enableval=$enable_build_warnings; case "${enableval}" in
9843  yes)	;;
9844  no)	build_warnings="-w";;
9845  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9846        build_warnings="${build_warnings} ${t}";;
9847  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9848        build_warnings="${t} ${build_warnings}";;
9849  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9850esac
9851if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
9852  echo "Setting compiler warning flags = $build_warnings" 6>&1
9853fi
9854fi
9855# Check whether --enable-gdb-build-warnings was given.
9856if test "${enable_gdb_build_warnings+set}" = set; then :
9857  enableval=$enable_gdb_build_warnings; case "${enableval}" in
9858  yes)	;;
9859  no)	build_warnings="-w";;
9860  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9861        build_warnings="${build_warnings} ${t}";;
9862  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9863        build_warnings="${t} ${build_warnings}";;
9864  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9865esac
9866if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
9867  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9868fi
9869fi
9870
9871# The set of warnings supported by a C++ compiler is not the same as
9872# of the C compiler.
9873ac_ext=cpp
9874ac_cpp='$CXXCPP $CPPFLAGS'
9875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9878
9879
9880WARN_CFLAGS=""
9881if test "x${build_warnings}" != x -a "x$GCC" = xyes
9882then
9883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
9884$as_echo_n "checking compiler warning flags... " >&6; }
9885    # Separate out the -Werror flag as some files just cannot be
9886    # compiled with it enabled.
9887    for w in ${build_warnings}; do
9888	# GCC does not complain about -Wno-unknown-warning.  Invert
9889	# and test -Wunknown-warning instead.
9890	case $w in
9891	-Wno-*)
9892		wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
9893        -Wformat-nonliteral)
9894		# gcc requires -Wformat before -Wformat-nonliteral
9895		# will work, so stick them together.
9896		w="-Wformat $w"
9897		wtest="$w"
9898		;;
9899	*)
9900		wtest=$w ;;
9901	esac
9902
9903	case $w in
9904	-Werr*) WERROR_CFLAGS=-Werror ;;
9905	*)
9906	    # Check whether GCC accepts it.
9907	    saved_CFLAGS="$CFLAGS"
9908	    CFLAGS="$CFLAGS -Werror $wtest"
9909	    saved_CXXFLAGS="$CXXFLAGS"
9910	    CXXFLAGS="$CXXFLAGS -Werror $wtest"
9911	    if test "x$w" = "x-Wunused-variable"; then
9912	      # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
9913	      # fixed in GCC 4.9.  This test is derived from the gdb
9914	      # source code that triggered this bug in GCC.
9915	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916/* end confdefs.h.  */
9917struct scoped_restore_base {};
9918		    struct scoped_restore_tmpl : public scoped_restore_base {
9919		      ~scoped_restore_tmpl() {}
9920		    };
9921int
9922main ()
9923{
9924const scoped_restore_base &b = scoped_restore_tmpl();
9925
9926  ;
9927  return 0;
9928}
9929_ACEOF
9930if ac_fn_cxx_try_compile "$LINENO"; then :
9931  WARN_CFLAGS="${WARN_CFLAGS} $w"
9932fi
9933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934	    else
9935	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937
9938int
9939main ()
9940{
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946if ac_fn_cxx_try_compile "$LINENO"; then :
9947  WARN_CFLAGS="${WARN_CFLAGS} $w"
9948fi
9949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950	    fi
9951	    CFLAGS="$saved_CFLAGS"
9952	    CXXFLAGS="$saved_CXXFLAGS"
9953	esac
9954    done
9955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
9956$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
9957fi
9958
9959
9960
9961ac_ext=c
9962ac_cpp='$CPP $CPPFLAGS'
9963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9965ac_compiler_gnu=$ac_cv_c_compiler_gnu
9966
9967
9968
9969old_LIBS="$LIBS"
9970LIBS="$LIBS -ldl"
9971for ac_func in dladdr
9972do :
9973  ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
9974if test "x$ac_cv_func_dladdr" = xyes; then :
9975  cat >>confdefs.h <<_ACEOF
9976#define HAVE_DLADDR 1
9977_ACEOF
9978
9979fi
9980done
9981
9982LIBS="$old_LIBS"
9983
9984
9985  # Check for presence and size of long long.
9986  ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9987if test "x$ac_cv_type_long_long" = xyes; then :
9988
9989cat >>confdefs.h <<_ACEOF
9990#define HAVE_LONG_LONG 1
9991_ACEOF
9992
9993# The cast to long int works around a bug in the HP C Compiler
9994# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9995# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9996# This bug is HP SR number 8606223364.
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9998$as_echo_n "checking size of long long... " >&6; }
9999if ${ac_cv_sizeof_long_long+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10003
10004else
10005  if test "$ac_cv_type_long_long" = yes; then
10006     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10008as_fn_error 77 "cannot compute sizeof (long long)
10009See \`config.log' for more details" "$LINENO" 5; }
10010   else
10011     ac_cv_sizeof_long_long=0
10012   fi
10013fi
10014
10015fi
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10017$as_echo "$ac_cv_sizeof_long_long" >&6; }
10018
10019
10020
10021cat >>confdefs.h <<_ACEOF
10022#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10023_ACEOF
10024
10025
10026fi
10027
10028
10029  as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
10030ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
10031if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
10032  ac_have_decl=1
10033else
10034  ac_have_decl=0
10035fi
10036
10037cat >>confdefs.h <<_ACEOF
10038#define HAVE_DECL_BASENAME $ac_have_decl
10039_ACEOF
10040ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10041if test "x$ac_cv_have_decl_ffs" = xyes; then :
10042  ac_have_decl=1
10043else
10044  ac_have_decl=0
10045fi
10046
10047cat >>confdefs.h <<_ACEOF
10048#define HAVE_DECL_FFS $ac_have_decl
10049_ACEOF
10050ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10051if test "x$ac_cv_have_decl_asprintf" = xyes; then :
10052  ac_have_decl=1
10053else
10054  ac_have_decl=0
10055fi
10056
10057cat >>confdefs.h <<_ACEOF
10058#define HAVE_DECL_ASPRINTF $ac_have_decl
10059_ACEOF
10060ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10061if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
10062  ac_have_decl=1
10063else
10064  ac_have_decl=0
10065fi
10066
10067cat >>confdefs.h <<_ACEOF
10068#define HAVE_DECL_VASPRINTF $ac_have_decl
10069_ACEOF
10070ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10071if test "x$ac_cv_have_decl_snprintf" = xyes; then :
10072  ac_have_decl=1
10073else
10074  ac_have_decl=0
10075fi
10076
10077cat >>confdefs.h <<_ACEOF
10078#define HAVE_DECL_SNPRINTF $ac_have_decl
10079_ACEOF
10080ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10081if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
10082  ac_have_decl=1
10083else
10084  ac_have_decl=0
10085fi
10086
10087cat >>confdefs.h <<_ACEOF
10088#define HAVE_DECL_VSNPRINTF $ac_have_decl
10089_ACEOF
10090
10091  ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10092if test "x$ac_cv_have_decl_strtol" = xyes; then :
10093  ac_have_decl=1
10094else
10095  ac_have_decl=0
10096fi
10097
10098cat >>confdefs.h <<_ACEOF
10099#define HAVE_DECL_STRTOL $ac_have_decl
10100_ACEOF
10101ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10102if test "x$ac_cv_have_decl_strtoul" = xyes; then :
10103  ac_have_decl=1
10104else
10105  ac_have_decl=0
10106fi
10107
10108cat >>confdefs.h <<_ACEOF
10109#define HAVE_DECL_STRTOUL $ac_have_decl
10110_ACEOF
10111ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10112if test "x$ac_cv_have_decl_strtoll" = xyes; then :
10113  ac_have_decl=1
10114else
10115  ac_have_decl=0
10116fi
10117
10118cat >>confdefs.h <<_ACEOF
10119#define HAVE_DECL_STRTOLL $ac_have_decl
10120_ACEOF
10121ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10122if test "x$ac_cv_have_decl_strtoull" = xyes; then :
10123  ac_have_decl=1
10124else
10125  ac_have_decl=0
10126fi
10127
10128cat >>confdefs.h <<_ACEOF
10129#define HAVE_DECL_STRTOULL $ac_have_decl
10130_ACEOF
10131
10132  ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10133if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
10134  ac_have_decl=1
10135else
10136  ac_have_decl=0
10137fi
10138
10139cat >>confdefs.h <<_ACEOF
10140#define HAVE_DECL_STRVERSCMP $ac_have_decl
10141_ACEOF
10142
10143
10144
10145ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
10146if test "x$ac_cv_have_decl_perror" = xyes; then :
10147  ac_have_decl=1
10148else
10149  ac_have_decl=0
10150fi
10151
10152cat >>confdefs.h <<_ACEOF
10153#define HAVE_DECL_PERROR $ac_have_decl
10154_ACEOF
10155ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10156if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
10157  ac_have_decl=1
10158else
10159  ac_have_decl=0
10160fi
10161
10162cat >>confdefs.h <<_ACEOF
10163#define HAVE_DECL_VASPRINTF $ac_have_decl
10164_ACEOF
10165ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10166if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
10167  ac_have_decl=1
10168else
10169  ac_have_decl=0
10170fi
10171
10172cat >>confdefs.h <<_ACEOF
10173#define HAVE_DECL_VSNPRINTF $ac_have_decl
10174_ACEOF
10175
10176
10177ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10178#if HAVE_SYS_SOCKET_H
10179# include <sys/socket.h>
10180#elif HAVE_WS2TCPIP_H
10181# include <ws2tcpip.h>
10182#endif
10183
10184"
10185if test "x$ac_cv_type_socklen_t" = xyes; then :
10186
10187cat >>confdefs.h <<_ACEOF
10188#define HAVE_SOCKLEN_T 1
10189_ACEOF
10190
10191
10192fi
10193
10194
10195case "${target}" in
10196  *-android*)
10197    # Starting with NDK version 9, <elf.h> actually includes definitions
10198    # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
10199    # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
10200    # leading to conflicts with the defintions from <linux/elf.h>.
10201    # This makes it impossible for us to include both <elf.h> and
10202    # <linux/elf.h>, which means that, in practice, we do not have
10203    # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
10204    # Therefore, do not try to auto-detect availability, as it would
10205    # get it wrong on this platform.
10206    ;;
10207  *)
10208    ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
10209
10210"
10211if test "x$ac_cv_type_Elf32_auxv_t" = xyes; then :
10212
10213cat >>confdefs.h <<_ACEOF
10214#define HAVE_ELF32_AUXV_T 1
10215_ACEOF
10216
10217
10218fi
10219ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
10220
10221"
10222if test "x$ac_cv_type_Elf64_auxv_t" = xyes; then :
10223
10224cat >>confdefs.h <<_ACEOF
10225#define HAVE_ELF64_AUXV_T 1
10226_ACEOF
10227
10228
10229fi
10230
10231esac
10232
10233
10234
10235# Check whether --with-pkgversion was given.
10236if test "${with_pkgversion+set}" = set; then :
10237  withval=$with_pkgversion; case "$withval" in
10238      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
10239      no)  PKGVERSION= ;;
10240      *)   PKGVERSION="($withval) " ;;
10241     esac
10242else
10243  PKGVERSION="(GDB) "
10244
10245fi
10246
10247
10248
10249
10250
10251# Check whether --with-bugurl was given.
10252if test "${with_bugurl+set}" = set; then :
10253  withval=$with_bugurl; case "$withval" in
10254      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
10255      no)  BUGURL=
10256	   ;;
10257      *)   BUGURL="$withval"
10258	   ;;
10259     esac
10260else
10261  BUGURL="http://www.gnu.org/software/gdb/bugs/"
10262
10263fi
10264
10265  case ${BUGURL} in
10266  "")
10267    REPORT_BUGS_TO=
10268    REPORT_BUGS_TEXI=
10269    ;;
10270  *)
10271    REPORT_BUGS_TO="<$BUGURL>"
10272    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10273    ;;
10274  esac;
10275
10276
10277
10278
10279cat >>confdefs.h <<_ACEOF
10280#define PKGVERSION "$PKGVERSION"
10281_ACEOF
10282
10283
10284cat >>confdefs.h <<_ACEOF
10285#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
10286_ACEOF
10287
10288
10289# Check for various supplementary target information (beyond the
10290# triplet) which might affect the choices in configure.srv.
10291case "${target}" in
10292  i[34567]86-*-linux*)
10293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
10294$as_echo_n "checking if building for x86-64... " >&6; }
10295if ${gdb_cv_i386_is_x86_64+:} false; then :
10296  $as_echo_n "(cached) " >&6
10297else
10298  save_CPPFLAGS="$CPPFLAGS"
10299                    CPPFLAGS="$CPPFLAGS $CFLAGS"
10300                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302
10303#if __x86_64__
10304got it
10305#endif
10306
10307_ACEOF
10308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10309  $EGREP "got it" >/dev/null 2>&1; then :
10310  gdb_cv_i386_is_x86_64=yes
10311else
10312  gdb_cv_i386_is_x86_64=no
10313fi
10314rm -f conftest*
10315
10316                    CPPFLAGS="$save_CPPFLAGS"
10317fi
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
10319$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
10320    ;;
10321
10322  x86_64-*-linux*)
10323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x32" >&5
10324$as_echo_n "checking if building for x32... " >&6; }
10325if ${gdb_cv_x86_is_x32+:} false; then :
10326  $as_echo_n "(cached) " >&6
10327else
10328  save_CPPFLAGS="$CPPFLAGS"
10329		    CPPFLAGS="$CPPFLAGS $CFLAGS"
10330		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h.  */
10332
10333#if __x86_64__ && __ILP32__
10334got it
10335#endif
10336
10337_ACEOF
10338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10339  $EGREP "got it" >/dev/null 2>&1; then :
10340  gdb_cv_x86_is_x32=yes
10341else
10342  gdb_cv_x86_is_x32=no
10343fi
10344rm -f conftest*
10345
10346		    CPPFLAGS="$save_CPPFLAGS"
10347fi
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_x86_is_x32" >&5
10349$as_echo "$gdb_cv_x86_is_x32" >&6; }
10350    ;;
10351
10352  m68k-*-*)
10353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
10354$as_echo_n "checking if building for Coldfire... " >&6; }
10355if ${gdb_cv_m68k_is_coldfire+:} false; then :
10356  $as_echo_n "(cached) " >&6
10357else
10358  save_CPPFLAGS="$CPPFLAGS"
10359                    CPPFLAGS="$CPPFLAGS $CFLAGS"
10360                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361/* end confdefs.h.  */
10362
10363#ifdef __mcoldfire__
10364got it
10365#endif
10366
10367_ACEOF
10368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10369  $EGREP "got it" >/dev/null 2>&1; then :
10370  gdb_cv_m68k_is_coldfire=yes
10371else
10372  gdb_cv_m68k_is_coldfire=no
10373fi
10374rm -f conftest*
10375
10376                    CPPFLAGS="$save_CPPFLAGS"
10377fi
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
10379$as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
10380    ;;
10381esac
10382
10383. ${srcdir}/configure.srv
10384
10385if test "${srv_mingwce}" = "yes"; then
10386  LIBS="$LIBS -lws2"
10387elif test "${srv_mingw}" = "yes"; then
10388  # WIN32APILIBS is set by GDB_AC_COMMON.
10389  LIBS="$LIBS $WIN32APILIBS"
10390fi
10391
10392if test "${srv_linux_usrregs}" = "yes"; then
10393
10394$as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
10395
10396fi
10397
10398if test "${srv_linux_regsets}" = "yes"; then
10399
10400$as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
10401
10402
10403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10404$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10405  if ${gdbsrv_cv_have_ptrace_getregs+:} false; then :
10406  $as_echo_n "(cached) " >&6
10407else
10408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h.  */
10410#include <sys/ptrace.h>
10411int
10412main ()
10413{
10414PTRACE_GETREGS;
10415  ;
10416  return 0;
10417}
10418_ACEOF
10419if ac_fn_c_try_compile "$LINENO"; then :
10420  gdbsrv_cv_have_ptrace_getregs=yes
10421else
10422  gdbsrv_cv_have_ptrace_getregs=no
10423
10424fi
10425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426
10427fi
10428
10429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
10430$as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
10431  if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
10432
10433$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10434
10435  fi
10436
10437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10438$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10439  if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false; then :
10440  $as_echo_n "(cached) " >&6
10441else
10442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h.  */
10444#include <sys/ptrace.h>
10445int
10446main ()
10447{
10448PTRACE_GETFPXREGS;
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_compile "$LINENO"; then :
10454  gdbsrv_cv_have_ptrace_getfpxregs=yes
10455else
10456  gdbsrv_cv_have_ptrace_getfpxregs=no
10457
10458fi
10459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460
10461fi
10462
10463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
10464$as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
10465  if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
10466
10467$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10468
10469  fi
10470fi
10471
10472if test "${srv_linux_btrace}" = "yes"; then
10473
10474$as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
10475
10476fi
10477
10478if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
10479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
10480$as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
10481   if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false; then :
10482  $as_echo_n "(cached) " >&6
10483else
10484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485/* end confdefs.h.  */
10486#include <thread_db.h>
10487int
10488main ()
10489{
10490lwpid_t avar
10491  ;
10492  return 0;
10493}
10494_ACEOF
10495if ac_fn_c_try_compile "$LINENO"; then :
10496  gdbserver_cv_have_thread_db_type_lwpid_t=yes
10497else
10498  gdbserver_cv_have_thread_db_type_lwpid_t=no
10499
10500fi
10501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502
10503fi
10504
10505   if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
10506
10507$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10508
10509   fi
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
10511$as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
10512
10513fi
10514
10515if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
10516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
10517$as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
10518   if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false; then :
10519  $as_echo_n "(cached) " >&6
10520else
10521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522/* end confdefs.h.  */
10523#include <thread_db.h>
10524int
10525main ()
10526{
10527psaddr_t avar
10528  ;
10529  return 0;
10530}
10531_ACEOF
10532if ac_fn_c_try_compile "$LINENO"; then :
10533  gdbserver_cv_have_thread_db_type_psaddr_t=yes
10534else
10535  gdbserver_cv_have_thread_db_type_psaddr_t=no
10536
10537fi
10538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539
10540fi
10541
10542   if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
10543
10544$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10545
10546   fi
10547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
10548$as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
10549
10550fi
10551
10552old_LIBS="$LIBS"
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10554$as_echo_n "checking for dlopen in -ldl... " >&6; }
10555if ${ac_cv_lib_dl_dlopen+:} false; then :
10556  $as_echo_n "(cached) " >&6
10557else
10558  ac_check_lib_save_LIBS=$LIBS
10559LIBS="-ldl  $LIBS"
10560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561/* end confdefs.h.  */
10562
10563/* Override any GCC internal prototype to avoid an error.
10564   Use char because int might match the return type of a GCC
10565   builtin and then its argument prototype would still apply.  */
10566#ifdef __cplusplus
10567extern "C"
10568#endif
10569char dlopen ();
10570int
10571main ()
10572{
10573return dlopen ();
10574  ;
10575  return 0;
10576}
10577_ACEOF
10578if ac_fn_c_try_link "$LINENO"; then :
10579  ac_cv_lib_dl_dlopen=yes
10580else
10581  ac_cv_lib_dl_dlopen=no
10582fi
10583rm -f core conftest.err conftest.$ac_objext \
10584    conftest$ac_exeext conftest.$ac_ext
10585LIBS=$ac_check_lib_save_LIBS
10586fi
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10588$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10589if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10590  cat >>confdefs.h <<_ACEOF
10591#define HAVE_LIBDL 1
10592_ACEOF
10593
10594  LIBS="-ldl $LIBS"
10595
10596fi
10597
10598LIBS="$old_LIBS"
10599
10600srv_thread_depfiles=
10601srv_libs=
10602
10603if test "$srv_linux_thread_db" = "yes"; then
10604  if test "$ac_cv_lib_dl_dlopen" = "yes"; then
10605    srv_libs="-ldl"
10606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
10607$as_echo_n "checking for the dynamic export flag... " >&6; }
10608    old_LDFLAGS="$LDFLAGS"
10609    # Older GNU ld supports --export-dynamic but --dynamic-list may not be
10610    # supported there.
10611    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
10612    LDFLAGS="$LDFLAGS $RDYNAMIC"
10613    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614/* end confdefs.h.  */
10615
10616int
10617main ()
10618{
10619
10620  ;
10621  return 0;
10622}
10623_ACEOF
10624if ac_fn_c_try_link "$LINENO"; then :
10625  found="-Wl,--dynamic-list"
10626       RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
10627else
10628  RDYNAMIC="-rdynamic"
10629       LDFLAGS="$old_LDFLAGS $RDYNAMIC"
10630       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631/* end confdefs.h.  */
10632
10633int
10634main ()
10635{
10636
10637  ;
10638  return 0;
10639}
10640_ACEOF
10641if ac_fn_c_try_link "$LINENO"; then :
10642  found="-rdynamic"
10643else
10644  found="no"
10645	  RDYNAMIC=""
10646
10647fi
10648rm -f core conftest.err conftest.$ac_objext \
10649    conftest$ac_exeext conftest.$ac_ext
10650
10651fi
10652rm -f core conftest.err conftest.$ac_objext \
10653    conftest$ac_exeext conftest.$ac_ext
10654
10655    LDFLAGS="$old_LDFLAGS"
10656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
10657$as_echo "$found" >&6; }
10658  else
10659    srv_libs="-lthread_db"
10660  fi
10661
10662  srv_thread_depfiles="thread-db.o proc-service.o"
10663
10664$as_echo "#define USE_THREAD_DB 1" >>confdefs.h
10665
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
10667$as_echo_n "checking for TD_VERSION... " >&6; }
10668if ${gdbsrv_cv_have_td_version+:} false; then :
10669  $as_echo_n "(cached) " >&6
10670else
10671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672/* end confdefs.h.  */
10673#include <thread_db.h>
10674int
10675main ()
10676{
10677TD_VERSION;
10678  ;
10679  return 0;
10680}
10681_ACEOF
10682if ac_fn_c_try_compile "$LINENO"; then :
10683  gdbsrv_cv_have_td_version=yes
10684else
10685  gdbsrv_cv_have_td_version=no
10686
10687fi
10688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10689
10690fi
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
10692$as_echo "$gdbsrv_cv_have_td_version" >&6; }
10693  if test "$gdbsrv_cv_have_td_version" = yes; then
10694
10695$as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
10696
10697  fi
10698fi
10699
10700
10701# Check whether --with-libthread-db was given.
10702if test "${with_libthread_db+set}" = set; then :
10703  withval=$with_libthread_db; srv_libthread_db_path="${withval}"
10704  srv_libs="$srv_libthread_db_path"
10705
10706fi
10707
10708
10709if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
10710
10711$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
10712
10713fi
10714
10715if test "$srv_xmlfiles" != ""; then
10716  srv_xmlbuiltin="xml-builtin.o"
10717
10718$as_echo "#define USE_XML 1" >>confdefs.h
10719
10720
10721  tmp_xmlfiles=$srv_xmlfiles
10722  srv_xmlfiles=""
10723  for f in $tmp_xmlfiles; do
10724    srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
10725  done
10726fi
10727
10728GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
10729GDBSERVER_LIBS="$srv_libs"
10730
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
10732$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
10733if ${gdbsrv_cv_have_sync_builtins+:} false; then :
10734  $as_echo_n "(cached) " >&6
10735else
10736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737/* end confdefs.h.  */
10738
10739int
10740main ()
10741{
10742int foo, bar;
10743	 bar = __sync_val_compare_and_swap(&foo, 0, 1);
10744
10745  ;
10746  return 0;
10747}
10748_ACEOF
10749if ac_fn_c_try_link "$LINENO"; then :
10750  gdbsrv_cv_have_sync_builtins=yes
10751else
10752  gdbsrv_cv_have_sync_builtins=no
10753
10754fi
10755rm -f core conftest.err conftest.$ac_objext \
10756    conftest$ac_exeext conftest.$ac_ext
10757
10758fi
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
10760$as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
10761if test "$gdbsrv_cv_have_sync_builtins" = yes; then
10762
10763$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
10764
10765fi
10766
10767saved_cflags="$CFLAGS"
10768CFLAGS="$CFLAGS -fvisibility=hidden"
10769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770/* end confdefs.h.  */
10771
10772int
10773main ()
10774{
10775
10776  ;
10777  return 0;
10778}
10779_ACEOF
10780if ac_fn_c_try_compile "$LINENO"; then :
10781  gdbsrv_cv_have_visibility_hidden=yes
10782else
10783  gdbsrv_cv_have_visibility_hidden=no
10784fi
10785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786CFLAGS="$saved_cflags"
10787
10788IPA_DEPFILES=""
10789extra_libraries=""
10790
10791# check whether to enable the inprocess agent
10792if test "$ipa_obj" != "" \
10793   -a "$gdbsrv_cv_have_sync_builtins" = yes \
10794   -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
10795   have_ipa=true
10796else
10797   have_ipa=false
10798fi
10799
10800# Check whether --enable-inprocess-agent was given.
10801if test "${enable_inprocess_agent+set}" = set; then :
10802  enableval=$enable_inprocess_agent; case "$enableval" in
10803  yes) want_ipa=true ;;
10804  no) want_ipa=false ;;
10805  *) as_fn_error $? "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
10806esac
10807else
10808  want_ipa=$have_ipa
10809fi
10810
10811
10812if $want_ipa ; then
10813   if $have_ipa ; then
10814     IPA_DEPFILES="$ipa_obj"
10815     extra_libraries="$extra_libraries libinproctrace.so"
10816   else
10817     as_fn_error $? "inprocess agent not supported for this target" "$LINENO" 5
10818   fi
10819fi
10820
10821
10822
10823
10824
10825
10826
10827
10828GNULIB=../gnulib/import
10829
10830GNULIB_STDINT_H=
10831if test x"$STDINT_H" != x; then
10832  GNULIB_STDINT_H=$GNULIB/$STDINT_H
10833fi
10834
10835
10836ac_config_files="$ac_config_files Makefile"
10837
10838
10839cat >confcache <<\_ACEOF
10840# This file is a shell script that caches the results of configure
10841# tests run on this system so they can be shared between configure
10842# scripts and configure runs, see configure's option --config-cache.
10843# It is not useful on other systems.  If it contains results you don't
10844# want to keep, you may remove or edit it.
10845#
10846# config.status only pays attention to the cache file if you give it
10847# the --recheck option to rerun configure.
10848#
10849# `ac_cv_env_foo' variables (set or unset) will be overridden when
10850# loading this file, other *unset* `ac_cv_foo' will be assigned the
10851# following values.
10852
10853_ACEOF
10854
10855# The following way of writing the cache mishandles newlines in values,
10856# but we know of no workaround that is simple, portable, and efficient.
10857# So, we kill variables containing newlines.
10858# Ultrix sh set writes to stderr and can't be redirected directly,
10859# and sets the high bit in the cache file unless we assign to the vars.
10860(
10861  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10862    eval ac_val=\$$ac_var
10863    case $ac_val in #(
10864    *${as_nl}*)
10865      case $ac_var in #(
10866      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10867$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10868      esac
10869      case $ac_var in #(
10870      _ | IFS | as_nl) ;; #(
10871      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10872      *) { eval $ac_var=; unset $ac_var;} ;;
10873      esac ;;
10874    esac
10875  done
10876
10877  (set) 2>&1 |
10878    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10879    *${as_nl}ac_space=\ *)
10880      # `set' does not quote correctly, so add quotes: double-quote
10881      # substitution turns \\\\ into \\, and sed turns \\ into \.
10882      sed -n \
10883	"s/'/'\\\\''/g;
10884	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10885      ;; #(
10886    *)
10887      # `set' quotes correctly as required by POSIX, so do not add quotes.
10888      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10889      ;;
10890    esac |
10891    sort
10892) |
10893  sed '
10894     /^ac_cv_env_/b end
10895     t clear
10896     :clear
10897     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10898     t end
10899     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10900     :end' >>confcache
10901if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10902  if test -w "$cache_file"; then
10903    if test "x$cache_file" != "x/dev/null"; then
10904      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10905$as_echo "$as_me: updating cache $cache_file" >&6;}
10906      if test ! -f "$cache_file" || test -h "$cache_file"; then
10907	cat confcache >"$cache_file"
10908      else
10909        case $cache_file in #(
10910        */* | ?:*)
10911	  mv -f confcache "$cache_file"$$ &&
10912	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10913        *)
10914	  mv -f confcache "$cache_file" ;;
10915	esac
10916      fi
10917    fi
10918  else
10919    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10920$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10921  fi
10922fi
10923rm -f confcache
10924
10925test "x$prefix" = xNONE && prefix=$ac_default_prefix
10926# Let make expand exec_prefix.
10927test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10928
10929DEFS=-DHAVE_CONFIG_H
10930
10931ac_libobjs=
10932ac_ltlibobjs=
10933U=
10934for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10935  # 1. Remove the extension, and $U if already installed.
10936  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10937  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10938  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10939  #    will be set to the directory where LIBOBJS objects are built.
10940  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10941  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10942done
10943LIBOBJS=$ac_libobjs
10944
10945LTLIBOBJS=$ac_ltlibobjs
10946
10947
10948if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10949  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10950Usually this means the macro was only invoked conditionally." "$LINENO" 5
10951fi
10952
10953: "${CONFIG_STATUS=./config.status}"
10954ac_write_fail=0
10955ac_clean_files_save=$ac_clean_files
10956ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10958$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10959as_write_fail=0
10960cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10961#! $SHELL
10962# Generated by $as_me.
10963# Run this file to recreate the current configuration.
10964# Compiler output produced by configure, useful for debugging
10965# configure, is in config.log if it exists.
10966
10967debug=false
10968ac_cs_recheck=false
10969ac_cs_silent=false
10970
10971SHELL=\${CONFIG_SHELL-$SHELL}
10972export SHELL
10973_ASEOF
10974cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10975## -------------------- ##
10976## M4sh Initialization. ##
10977## -------------------- ##
10978
10979# Be more Bourne compatible
10980DUALCASE=1; export DUALCASE # for MKS sh
10981if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10982  emulate sh
10983  NULLCMD=:
10984  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10985  # is contrary to our usage.  Disable this feature.
10986  alias -g '${1+"$@"}'='"$@"'
10987  setopt NO_GLOB_SUBST
10988else
10989  case `(set -o) 2>/dev/null` in #(
10990  *posix*) :
10991    set -o posix ;; #(
10992  *) :
10993     ;;
10994esac
10995fi
10996
10997
10998as_nl='
10999'
11000export as_nl
11001# Printing a long string crashes Solaris 7 /usr/bin/printf.
11002as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11003as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11004as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11005# Prefer a ksh shell builtin over an external printf program on Solaris,
11006# but without wasting forks for bash or zsh.
11007if test -z "$BASH_VERSION$ZSH_VERSION" \
11008    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11009  as_echo='print -r --'
11010  as_echo_n='print -rn --'
11011elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11012  as_echo='printf %s\n'
11013  as_echo_n='printf %s'
11014else
11015  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11016    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11017    as_echo_n='/usr/ucb/echo -n'
11018  else
11019    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11020    as_echo_n_body='eval
11021      arg=$1;
11022      case $arg in #(
11023      *"$as_nl"*)
11024	expr "X$arg" : "X\\(.*\\)$as_nl";
11025	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11026      esac;
11027      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11028    '
11029    export as_echo_n_body
11030    as_echo_n='sh -c $as_echo_n_body as_echo'
11031  fi
11032  export as_echo_body
11033  as_echo='sh -c $as_echo_body as_echo'
11034fi
11035
11036# The user is always right.
11037if test "${PATH_SEPARATOR+set}" != set; then
11038  PATH_SEPARATOR=:
11039  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11040    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11041      PATH_SEPARATOR=';'
11042  }
11043fi
11044
11045
11046# IFS
11047# We need space, tab and new line, in precisely that order.  Quoting is
11048# there to prevent editors from complaining about space-tab.
11049# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11050# splitting by setting IFS to empty value.)
11051IFS=" ""	$as_nl"
11052
11053# Find who we are.  Look in the path if we contain no directory separator.
11054as_myself=
11055case $0 in #((
11056  *[\\/]* ) as_myself=$0 ;;
11057  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058for as_dir in $PATH
11059do
11060  IFS=$as_save_IFS
11061  test -z "$as_dir" && as_dir=.
11062    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11063  done
11064IFS=$as_save_IFS
11065
11066     ;;
11067esac
11068# We did not find ourselves, most probably we were run as `sh COMMAND'
11069# in which case we are not to be found in the path.
11070if test "x$as_myself" = x; then
11071  as_myself=$0
11072fi
11073if test ! -f "$as_myself"; then
11074  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11075  exit 1
11076fi
11077
11078# Unset variables that we do not need and which cause bugs (e.g. in
11079# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11080# suppresses any "Segmentation fault" message there.  '((' could
11081# trigger a bug in pdksh 5.2.14.
11082for as_var in BASH_ENV ENV MAIL MAILPATH
11083do eval test x\${$as_var+set} = xset \
11084  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11085done
11086PS1='$ '
11087PS2='> '
11088PS4='+ '
11089
11090# NLS nuisances.
11091LC_ALL=C
11092export LC_ALL
11093LANGUAGE=C
11094export LANGUAGE
11095
11096# CDPATH.
11097(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11098
11099
11100# as_fn_error STATUS ERROR [LINENO LOG_FD]
11101# ----------------------------------------
11102# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11103# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11104# script with STATUS, using 1 if that was 0.
11105as_fn_error ()
11106{
11107  as_status=$1; test $as_status -eq 0 && as_status=1
11108  if test "$4"; then
11109    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11110    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11111  fi
11112  $as_echo "$as_me: error: $2" >&2
11113  as_fn_exit $as_status
11114} # as_fn_error
11115
11116
11117# as_fn_set_status STATUS
11118# -----------------------
11119# Set $? to STATUS, without forking.
11120as_fn_set_status ()
11121{
11122  return $1
11123} # as_fn_set_status
11124
11125# as_fn_exit STATUS
11126# -----------------
11127# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11128as_fn_exit ()
11129{
11130  set +e
11131  as_fn_set_status $1
11132  exit $1
11133} # as_fn_exit
11134
11135# as_fn_unset VAR
11136# ---------------
11137# Portably unset VAR.
11138as_fn_unset ()
11139{
11140  { eval $1=; unset $1;}
11141}
11142as_unset=as_fn_unset
11143# as_fn_append VAR VALUE
11144# ----------------------
11145# Append the text in VALUE to the end of the definition contained in VAR. Take
11146# advantage of any shell optimizations that allow amortized linear growth over
11147# repeated appends, instead of the typical quadratic growth present in naive
11148# implementations.
11149if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11150  eval 'as_fn_append ()
11151  {
11152    eval $1+=\$2
11153  }'
11154else
11155  as_fn_append ()
11156  {
11157    eval $1=\$$1\$2
11158  }
11159fi # as_fn_append
11160
11161# as_fn_arith ARG...
11162# ------------------
11163# Perform arithmetic evaluation on the ARGs, and store the result in the
11164# global $as_val. Take advantage of shells that can avoid forks. The arguments
11165# must be portable across $(()) and expr.
11166if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11167  eval 'as_fn_arith ()
11168  {
11169    as_val=$(( $* ))
11170  }'
11171else
11172  as_fn_arith ()
11173  {
11174    as_val=`expr "$@" || test $? -eq 1`
11175  }
11176fi # as_fn_arith
11177
11178
11179if expr a : '\(a\)' >/dev/null 2>&1 &&
11180   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11181  as_expr=expr
11182else
11183  as_expr=false
11184fi
11185
11186if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11187  as_basename=basename
11188else
11189  as_basename=false
11190fi
11191
11192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11193  as_dirname=dirname
11194else
11195  as_dirname=false
11196fi
11197
11198as_me=`$as_basename -- "$0" ||
11199$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11200	 X"$0" : 'X\(//\)$' \| \
11201	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11202$as_echo X/"$0" |
11203    sed '/^.*\/\([^/][^/]*\)\/*$/{
11204	    s//\1/
11205	    q
11206	  }
11207	  /^X\/\(\/\/\)$/{
11208	    s//\1/
11209	    q
11210	  }
11211	  /^X\/\(\/\).*/{
11212	    s//\1/
11213	    q
11214	  }
11215	  s/.*/./; q'`
11216
11217# Avoid depending upon Character Ranges.
11218as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11219as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11220as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11221as_cr_digits='0123456789'
11222as_cr_alnum=$as_cr_Letters$as_cr_digits
11223
11224ECHO_C= ECHO_N= ECHO_T=
11225case `echo -n x` in #(((((
11226-n*)
11227  case `echo 'xy\c'` in
11228  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11229  xy)  ECHO_C='\c';;
11230  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11231       ECHO_T='	';;
11232  esac;;
11233*)
11234  ECHO_N='-n';;
11235esac
11236
11237rm -f conf$$ conf$$.exe conf$$.file
11238if test -d conf$$.dir; then
11239  rm -f conf$$.dir/conf$$.file
11240else
11241  rm -f conf$$.dir
11242  mkdir conf$$.dir 2>/dev/null
11243fi
11244if (echo >conf$$.file) 2>/dev/null; then
11245  if ln -s conf$$.file conf$$ 2>/dev/null; then
11246    as_ln_s='ln -s'
11247    # ... but there are two gotchas:
11248    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11249    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11250    # In both cases, we have to default to `cp -pR'.
11251    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11252      as_ln_s='cp -pR'
11253  elif ln conf$$.file conf$$ 2>/dev/null; then
11254    as_ln_s=ln
11255  else
11256    as_ln_s='cp -pR'
11257  fi
11258else
11259  as_ln_s='cp -pR'
11260fi
11261rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11262rmdir conf$$.dir 2>/dev/null
11263
11264
11265# as_fn_mkdir_p
11266# -------------
11267# Create "$as_dir" as a directory, including parents if necessary.
11268as_fn_mkdir_p ()
11269{
11270
11271  case $as_dir in #(
11272  -*) as_dir=./$as_dir;;
11273  esac
11274  test -d "$as_dir" || eval $as_mkdir_p || {
11275    as_dirs=
11276    while :; do
11277      case $as_dir in #(
11278      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11279      *) as_qdir=$as_dir;;
11280      esac
11281      as_dirs="'$as_qdir' $as_dirs"
11282      as_dir=`$as_dirname -- "$as_dir" ||
11283$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11284	 X"$as_dir" : 'X\(//\)[^/]' \| \
11285	 X"$as_dir" : 'X\(//\)$' \| \
11286	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11287$as_echo X"$as_dir" |
11288    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11289	    s//\1/
11290	    q
11291	  }
11292	  /^X\(\/\/\)[^/].*/{
11293	    s//\1/
11294	    q
11295	  }
11296	  /^X\(\/\/\)$/{
11297	    s//\1/
11298	    q
11299	  }
11300	  /^X\(\/\).*/{
11301	    s//\1/
11302	    q
11303	  }
11304	  s/.*/./; q'`
11305      test -d "$as_dir" && break
11306    done
11307    test -z "$as_dirs" || eval "mkdir $as_dirs"
11308  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11309
11310
11311} # as_fn_mkdir_p
11312if mkdir -p . 2>/dev/null; then
11313  as_mkdir_p='mkdir -p "$as_dir"'
11314else
11315  test -d ./-p && rmdir ./-p
11316  as_mkdir_p=false
11317fi
11318
11319
11320# as_fn_executable_p FILE
11321# -----------------------
11322# Test if FILE is an executable regular file.
11323as_fn_executable_p ()
11324{
11325  test -f "$1" && test -x "$1"
11326} # as_fn_executable_p
11327as_test_x='test -x'
11328as_executable_p=as_fn_executable_p
11329
11330# Sed expression to map a string onto a valid CPP name.
11331as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11332
11333# Sed expression to map a string onto a valid variable name.
11334as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11335
11336
11337exec 6>&1
11338## ----------------------------------- ##
11339## Main body of $CONFIG_STATUS script. ##
11340## ----------------------------------- ##
11341_ASEOF
11342test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11343
11344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11345# Save the log message, to keep $0 and so on meaningful, and to
11346# report actual input values of CONFIG_FILES etc. instead of their
11347# values after options handling.
11348ac_log="
11349This file was extended by $as_me, which was
11350generated by GNU Autoconf 2.69.  Invocation command line was
11351
11352  CONFIG_FILES    = $CONFIG_FILES
11353  CONFIG_HEADERS  = $CONFIG_HEADERS
11354  CONFIG_LINKS    = $CONFIG_LINKS
11355  CONFIG_COMMANDS = $CONFIG_COMMANDS
11356  $ $0 $@
11357
11358on `(hostname || uname -n) 2>/dev/null | sed 1q`
11359"
11360
11361_ACEOF
11362
11363case $ac_config_files in *"
11364"*) set x $ac_config_files; shift; ac_config_files=$*;;
11365esac
11366
11367case $ac_config_headers in *"
11368"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11369esac
11370
11371
11372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11373# Files that config.status was made for.
11374config_files="$ac_config_files"
11375config_headers="$ac_config_headers"
11376config_commands="$ac_config_commands"
11377
11378_ACEOF
11379
11380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11381ac_cs_usage="\
11382\`$as_me' instantiates files and other configuration actions
11383from templates according to the current configuration.  Unless the files
11384and actions are specified as TAGs, all are instantiated by default.
11385
11386Usage: $0 [OPTION]... [TAG]...
11387
11388  -h, --help       print this help, then exit
11389  -V, --version    print version number and configuration settings, then exit
11390      --config     print configuration, then exit
11391  -q, --quiet, --silent
11392                   do not print progress messages
11393  -d, --debug      don't remove temporary files
11394      --recheck    update $as_me by reconfiguring in the same conditions
11395      --file=FILE[:TEMPLATE]
11396                   instantiate the configuration file FILE
11397      --header=FILE[:TEMPLATE]
11398                   instantiate the configuration header FILE
11399
11400Configuration files:
11401$config_files
11402
11403Configuration headers:
11404$config_headers
11405
11406Configuration commands:
11407$config_commands
11408
11409Report bugs to the package provider."
11410
11411_ACEOF
11412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11413ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11414ac_cs_version="\\
11415config.status
11416configured by $0, generated by GNU Autoconf 2.69,
11417  with options \\"\$ac_cs_config\\"
11418
11419Copyright (C) 2012 Free Software Foundation, Inc.
11420This config.status script is free software; the Free Software Foundation
11421gives unlimited permission to copy, distribute and modify it."
11422
11423ac_pwd='$ac_pwd'
11424srcdir='$srcdir'
11425INSTALL='$INSTALL'
11426test -n "\$AWK" || AWK=awk
11427_ACEOF
11428
11429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11430# The default lists apply if the user does not specify any file.
11431ac_need_defaults=:
11432while test $# != 0
11433do
11434  case $1 in
11435  --*=?*)
11436    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11437    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11438    ac_shift=:
11439    ;;
11440  --*=)
11441    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11442    ac_optarg=
11443    ac_shift=:
11444    ;;
11445  *)
11446    ac_option=$1
11447    ac_optarg=$2
11448    ac_shift=shift
11449    ;;
11450  esac
11451
11452  case $ac_option in
11453  # Handling of the options.
11454  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11455    ac_cs_recheck=: ;;
11456  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11457    $as_echo "$ac_cs_version"; exit ;;
11458  --config | --confi | --conf | --con | --co | --c )
11459    $as_echo "$ac_cs_config"; exit ;;
11460  --debug | --debu | --deb | --de | --d | -d )
11461    debug=: ;;
11462  --file | --fil | --fi | --f )
11463    $ac_shift
11464    case $ac_optarg in
11465    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11466    '') as_fn_error $? "missing file argument" ;;
11467    esac
11468    as_fn_append CONFIG_FILES " '$ac_optarg'"
11469    ac_need_defaults=false;;
11470  --header | --heade | --head | --hea )
11471    $ac_shift
11472    case $ac_optarg in
11473    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11474    esac
11475    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11476    ac_need_defaults=false;;
11477  --he | --h)
11478    # Conflict between --help and --header
11479    as_fn_error $? "ambiguous option: \`$1'
11480Try \`$0 --help' for more information.";;
11481  --help | --hel | -h )
11482    $as_echo "$ac_cs_usage"; exit ;;
11483  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11484  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11485    ac_cs_silent=: ;;
11486
11487  # This is an error.
11488  -*) as_fn_error $? "unrecognized option: \`$1'
11489Try \`$0 --help' for more information." ;;
11490
11491  *) as_fn_append ac_config_targets " $1"
11492     ac_need_defaults=false ;;
11493
11494  esac
11495  shift
11496done
11497
11498ac_configure_extra_args=
11499
11500if $ac_cs_silent; then
11501  exec 6>/dev/null
11502  ac_configure_extra_args="$ac_configure_extra_args --silent"
11503fi
11504
11505_ACEOF
11506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11507if \$ac_cs_recheck; then
11508  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11509  shift
11510  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11511  CONFIG_SHELL='$SHELL'
11512  export CONFIG_SHELL
11513  exec "\$@"
11514fi
11515
11516_ACEOF
11517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11518exec 5>>config.log
11519{
11520  echo
11521  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11522## Running $as_me. ##
11523_ASBOX
11524  $as_echo "$ac_log"
11525} >&5
11526
11527_ACEOF
11528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11529#
11530# INIT-COMMANDS
11531#
11532ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
11533ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
11534
11535_ACEOF
11536
11537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11538
11539# Handling of arguments.
11540for ac_config_target in $ac_config_targets
11541do
11542  case $ac_config_target in
11543    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11544    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
11545    "gdbdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbdepdir" ;;
11546    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11547
11548  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11549  esac
11550done
11551
11552
11553# If the user did not use the arguments to specify the items to instantiate,
11554# then the envvar interface is used.  Set only those that are not.
11555# We use the long form for the default assignment because of an extremely
11556# bizarre bug on SunOS 4.1.3.
11557if $ac_need_defaults; then
11558  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11559  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11560  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11561fi
11562
11563# Have a temporary directory for convenience.  Make it in the build tree
11564# simply because there is no reason against having it here, and in addition,
11565# creating and moving files from /tmp can sometimes cause problems.
11566# Hook for its removal unless debugging.
11567# Note that there is a small window in which the directory will not be cleaned:
11568# after its creation but before its name has been assigned to `$tmp'.
11569$debug ||
11570{
11571  tmp= ac_tmp=
11572  trap 'exit_status=$?
11573  : "${ac_tmp:=$tmp}"
11574  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11575' 0
11576  trap 'as_fn_exit 1' 1 2 13 15
11577}
11578# Create a (secure) tmp directory for tmp files.
11579
11580{
11581  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11582  test -d "$tmp"
11583}  ||
11584{
11585  tmp=./conf$$-$RANDOM
11586  (umask 077 && mkdir "$tmp")
11587} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11588ac_tmp=$tmp
11589
11590# Set up the scripts for CONFIG_FILES section.
11591# No need to generate them if there are no CONFIG_FILES.
11592# This happens for instance with `./config.status config.h'.
11593if test -n "$CONFIG_FILES"; then
11594
11595
11596ac_cr=`echo X | tr X '\015'`
11597# On cygwin, bash can eat \r inside `` if the user requested igncr.
11598# But we know of no other shell where ac_cr would be empty at this
11599# point, so we can use a bashism as a fallback.
11600if test "x$ac_cr" = x; then
11601  eval ac_cr=\$\'\\r\'
11602fi
11603ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11604if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11605  ac_cs_awk_cr='\\r'
11606else
11607  ac_cs_awk_cr=$ac_cr
11608fi
11609
11610echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11611_ACEOF
11612
11613
11614{
11615  echo "cat >conf$$subs.awk <<_ACEOF" &&
11616  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11617  echo "_ACEOF"
11618} >conf$$subs.sh ||
11619  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11620ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11621ac_delim='%!_!# '
11622for ac_last_try in false false false false false :; do
11623  . ./conf$$subs.sh ||
11624    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11625
11626  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11627  if test $ac_delim_n = $ac_delim_num; then
11628    break
11629  elif $ac_last_try; then
11630    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11631  else
11632    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11633  fi
11634done
11635rm -f conf$$subs.sh
11636
11637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11638cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11639_ACEOF
11640sed -n '
11641h
11642s/^/S["/; s/!.*/"]=/
11643p
11644g
11645s/^[^!]*!//
11646:repl
11647t repl
11648s/'"$ac_delim"'$//
11649t delim
11650:nl
11651h
11652s/\(.\{148\}\)..*/\1/
11653t more1
11654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11655p
11656n
11657b repl
11658:more1
11659s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11660p
11661g
11662s/.\{148\}//
11663t nl
11664:delim
11665h
11666s/\(.\{148\}\)..*/\1/
11667t more2
11668s/["\\]/\\&/g; s/^/"/; s/$/"/
11669p
11670b
11671:more2
11672s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11673p
11674g
11675s/.\{148\}//
11676t delim
11677' <conf$$subs.awk | sed '
11678/^[^""]/{
11679  N
11680  s/\n//
11681}
11682' >>$CONFIG_STATUS || ac_write_fail=1
11683rm -f conf$$subs.awk
11684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11685_ACAWK
11686cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11687  for (key in S) S_is_set[key] = 1
11688  FS = ""
11689
11690}
11691{
11692  line = $ 0
11693  nfields = split(line, field, "@")
11694  substed = 0
11695  len = length(field[1])
11696  for (i = 2; i < nfields; i++) {
11697    key = field[i]
11698    keylen = length(key)
11699    if (S_is_set[key]) {
11700      value = S[key]
11701      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11702      len += length(value) + length(field[++i])
11703      substed = 1
11704    } else
11705      len += 1 + keylen
11706  }
11707
11708  print line
11709}
11710
11711_ACAWK
11712_ACEOF
11713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11715  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11716else
11717  cat
11718fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11719  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11720_ACEOF
11721
11722# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11723# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11724# trailing colons and then remove the whole line if VPATH becomes empty
11725# (actually we leave an empty line to preserve line numbers).
11726if test "x$srcdir" = x.; then
11727  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11728h
11729s///
11730s/^/:/
11731s/[	 ]*$/:/
11732s/:\$(srcdir):/:/g
11733s/:\${srcdir}:/:/g
11734s/:@srcdir@:/:/g
11735s/^:*//
11736s/:*$//
11737x
11738s/\(=[	 ]*\).*/\1/
11739G
11740s/\n//
11741s/^[^=]*=[	 ]*$//
11742}'
11743fi
11744
11745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11746fi # test -n "$CONFIG_FILES"
11747
11748# Set up the scripts for CONFIG_HEADERS section.
11749# No need to generate them if there are no CONFIG_HEADERS.
11750# This happens for instance with `./config.status Makefile'.
11751if test -n "$CONFIG_HEADERS"; then
11752cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11753BEGIN {
11754_ACEOF
11755
11756# Transform confdefs.h into an awk script `defines.awk', embedded as
11757# here-document in config.status, that substitutes the proper values into
11758# config.h.in to produce config.h.
11759
11760# Create a delimiter string that does not exist in confdefs.h, to ease
11761# handling of long lines.
11762ac_delim='%!_!# '
11763for ac_last_try in false false :; do
11764  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11765  if test -z "$ac_tt"; then
11766    break
11767  elif $ac_last_try; then
11768    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11769  else
11770    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11771  fi
11772done
11773
11774# For the awk script, D is an array of macro values keyed by name,
11775# likewise P contains macro parameters if any.  Preserve backslash
11776# newline sequences.
11777
11778ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11779sed -n '
11780s/.\{148\}/&'"$ac_delim"'/g
11781t rset
11782:rset
11783s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11784t def
11785d
11786:def
11787s/\\$//
11788t bsnl
11789s/["\\]/\\&/g
11790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11791D["\1"]=" \3"/p
11792s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11793d
11794:bsnl
11795s/["\\]/\\&/g
11796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11797D["\1"]=" \3\\\\\\n"\\/p
11798t cont
11799s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11800t cont
11801d
11802:cont
11803n
11804s/.\{148\}/&'"$ac_delim"'/g
11805t clear
11806:clear
11807s/\\$//
11808t bsnlc
11809s/["\\]/\\&/g; s/^/"/; s/$/"/p
11810d
11811:bsnlc
11812s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11813b cont
11814' <confdefs.h | sed '
11815s/'"$ac_delim"'/"\\\
11816"/g' >>$CONFIG_STATUS || ac_write_fail=1
11817
11818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11819  for (key in D) D_is_set[key] = 1
11820  FS = ""
11821}
11822/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11823  line = \$ 0
11824  split(line, arg, " ")
11825  if (arg[1] == "#") {
11826    defundef = arg[2]
11827    mac1 = arg[3]
11828  } else {
11829    defundef = substr(arg[1], 2)
11830    mac1 = arg[2]
11831  }
11832  split(mac1, mac2, "(") #)
11833  macro = mac2[1]
11834  prefix = substr(line, 1, index(line, defundef) - 1)
11835  if (D_is_set[macro]) {
11836    # Preserve the white space surrounding the "#".
11837    print prefix "define", macro P[macro] D[macro]
11838    next
11839  } else {
11840    # Replace #undef with comments.  This is necessary, for example,
11841    # in the case of _POSIX_SOURCE, which is predefined and required
11842    # on some systems where configure will not decide to define it.
11843    if (defundef == "undef") {
11844      print "/*", prefix defundef, macro, "*/"
11845      next
11846    }
11847  }
11848}
11849{ print }
11850_ACAWK
11851_ACEOF
11852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11853  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11854fi # test -n "$CONFIG_HEADERS"
11855
11856
11857eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11858shift
11859for ac_tag
11860do
11861  case $ac_tag in
11862  :[FHLC]) ac_mode=$ac_tag; continue;;
11863  esac
11864  case $ac_mode$ac_tag in
11865  :[FHL]*:*);;
11866  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11867  :[FH]-) ac_tag=-:-;;
11868  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11869  esac
11870  ac_save_IFS=$IFS
11871  IFS=:
11872  set x $ac_tag
11873  IFS=$ac_save_IFS
11874  shift
11875  ac_file=$1
11876  shift
11877
11878  case $ac_mode in
11879  :L) ac_source=$1;;
11880  :[FH])
11881    ac_file_inputs=
11882    for ac_f
11883    do
11884      case $ac_f in
11885      -) ac_f="$ac_tmp/stdin";;
11886      *) # Look for the file first in the build tree, then in the source tree
11887	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11888	 # because $ac_f cannot contain `:'.
11889	 test -f "$ac_f" ||
11890	   case $ac_f in
11891	   [\\/$]*) false;;
11892	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11893	   esac ||
11894	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11895      esac
11896      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11897      as_fn_append ac_file_inputs " '$ac_f'"
11898    done
11899
11900    # Let's still pretend it is `configure' which instantiates (i.e., don't
11901    # use $as_me), people would be surprised to read:
11902    #    /* config.h.  Generated by config.status.  */
11903    configure_input='Generated from '`
11904	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11905	`' by configure.'
11906    if test x"$ac_file" != x-; then
11907      configure_input="$ac_file.  $configure_input"
11908      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11909$as_echo "$as_me: creating $ac_file" >&6;}
11910    fi
11911    # Neutralize special characters interpreted by sed in replacement strings.
11912    case $configure_input in #(
11913    *\&* | *\|* | *\\* )
11914       ac_sed_conf_input=`$as_echo "$configure_input" |
11915       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11916    *) ac_sed_conf_input=$configure_input;;
11917    esac
11918
11919    case $ac_tag in
11920    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11921      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11922    esac
11923    ;;
11924  esac
11925
11926  ac_dir=`$as_dirname -- "$ac_file" ||
11927$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11928	 X"$ac_file" : 'X\(//\)[^/]' \| \
11929	 X"$ac_file" : 'X\(//\)$' \| \
11930	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11931$as_echo X"$ac_file" |
11932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11933	    s//\1/
11934	    q
11935	  }
11936	  /^X\(\/\/\)[^/].*/{
11937	    s//\1/
11938	    q
11939	  }
11940	  /^X\(\/\/\)$/{
11941	    s//\1/
11942	    q
11943	  }
11944	  /^X\(\/\).*/{
11945	    s//\1/
11946	    q
11947	  }
11948	  s/.*/./; q'`
11949  as_dir="$ac_dir"; as_fn_mkdir_p
11950  ac_builddir=.
11951
11952case "$ac_dir" in
11953.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11954*)
11955  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11956  # A ".." for each directory in $ac_dir_suffix.
11957  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11958  case $ac_top_builddir_sub in
11959  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11960  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11961  esac ;;
11962esac
11963ac_abs_top_builddir=$ac_pwd
11964ac_abs_builddir=$ac_pwd$ac_dir_suffix
11965# for backward compatibility:
11966ac_top_builddir=$ac_top_build_prefix
11967
11968case $srcdir in
11969  .)  # We are building in place.
11970    ac_srcdir=.
11971    ac_top_srcdir=$ac_top_builddir_sub
11972    ac_abs_top_srcdir=$ac_pwd ;;
11973  [\\/]* | ?:[\\/]* )  # Absolute name.
11974    ac_srcdir=$srcdir$ac_dir_suffix;
11975    ac_top_srcdir=$srcdir
11976    ac_abs_top_srcdir=$srcdir ;;
11977  *) # Relative name.
11978    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11979    ac_top_srcdir=$ac_top_build_prefix$srcdir
11980    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11981esac
11982ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11983
11984
11985  case $ac_mode in
11986  :F)
11987  #
11988  # CONFIG_FILE
11989  #
11990
11991  case $INSTALL in
11992  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11993  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11994  esac
11995_ACEOF
11996
11997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11998# If the template does not know about datarootdir, expand it.
11999# FIXME: This hack should be removed a few years after 2.60.
12000ac_datarootdir_hack=; ac_datarootdir_seen=
12001ac_sed_dataroot='
12002/datarootdir/ {
12003  p
12004  q
12005}
12006/@datadir@/p
12007/@docdir@/p
12008/@infodir@/p
12009/@localedir@/p
12010/@mandir@/p'
12011case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12012*datarootdir*) ac_datarootdir_seen=yes;;
12013*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12014  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12015$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12016_ACEOF
12017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018  ac_datarootdir_hack='
12019  s&@datadir@&$datadir&g
12020  s&@docdir@&$docdir&g
12021  s&@infodir@&$infodir&g
12022  s&@localedir@&$localedir&g
12023  s&@mandir@&$mandir&g
12024  s&\\\${datarootdir}&$datarootdir&g' ;;
12025esac
12026_ACEOF
12027
12028# Neutralize VPATH when `$srcdir' = `.'.
12029# Shell code in configure.ac might set extrasub.
12030# FIXME: do we really want to maintain this feature?
12031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12032ac_sed_extra="$ac_vpsub
12033$extrasub
12034_ACEOF
12035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12036:t
12037/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12038s|@configure_input@|$ac_sed_conf_input|;t t
12039s&@top_builddir@&$ac_top_builddir_sub&;t t
12040s&@top_build_prefix@&$ac_top_build_prefix&;t t
12041s&@srcdir@&$ac_srcdir&;t t
12042s&@abs_srcdir@&$ac_abs_srcdir&;t t
12043s&@top_srcdir@&$ac_top_srcdir&;t t
12044s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12045s&@builddir@&$ac_builddir&;t t
12046s&@abs_builddir@&$ac_abs_builddir&;t t
12047s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12048s&@INSTALL@&$ac_INSTALL&;t t
12049$ac_datarootdir_hack
12050"
12051eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12052  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12053
12054test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12055  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12056  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12057      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12058  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12059which seems to be undefined.  Please make sure it is defined" >&5
12060$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12061which seems to be undefined.  Please make sure it is defined" >&2;}
12062
12063  rm -f "$ac_tmp/stdin"
12064  case $ac_file in
12065  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12066  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12067  esac \
12068  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12069 ;;
12070  :H)
12071  #
12072  # CONFIG_HEADER
12073  #
12074  if test x"$ac_file" != x-; then
12075    {
12076      $as_echo "/* $configure_input  */" \
12077      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12078    } >"$ac_tmp/config.h" \
12079      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12080    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12081      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12082$as_echo "$as_me: $ac_file is unchanged" >&6;}
12083    else
12084      rm -f "$ac_file"
12085      mv "$ac_tmp/config.h" "$ac_file" \
12086	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12087    fi
12088  else
12089    $as_echo "/* $configure_input  */" \
12090      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12091      || as_fn_error $? "could not create -" "$LINENO" 5
12092  fi
12093 ;;
12094
12095  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12096$as_echo "$as_me: executing $ac_file commands" >&6;}
12097 ;;
12098  esac
12099
12100
12101  case $ac_file$ac_mode in
12102    "config.h":H) echo > stamp-h ;;
12103    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
12104    "gdbdepdir":C)
12105  for subdir in ${CONFIG_SRC_SUBDIR}
12106  do
12107      $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
12108  done ;;
12109
12110  esac
12111done # for ac_tag
12112
12113
12114as_fn_exit 0
12115_ACEOF
12116ac_clean_files=$ac_clean_files_save
12117
12118test $ac_write_fail = 0 ||
12119  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12120
12121
12122# configure is writing to config.log, and then calls config.status.
12123# config.status does its own redirection, appending to config.log.
12124# Unfortunately, on DOS this fails, as config.log is still kept open
12125# by configure, so config.status won't be able to write to it; its
12126# output is simply discarded.  So we exec the FD to /dev/null,
12127# effectively closing config.log, so it can be properly (re)opened and
12128# appended to by config.status.  When coming back to configure, we
12129# need to make the FD available again.
12130if test "$no_create" != yes; then
12131  ac_cs_success=:
12132  ac_config_status_args=
12133  test "$silent" = yes &&
12134    ac_config_status_args="$ac_config_status_args --quiet"
12135  exec 5>/dev/null
12136  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12137  exec 5>>config.log
12138  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12139  # would make configure fail if this is the last instruction.
12140  $ac_cs_success || as_fn_exit 1
12141fi
12142if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12144$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12145fi
12146
12147