1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cpplib  .
4#
5# Report bugs to <gcc-bugs@gcc.gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: gcc-bugs@gcc.gnu.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='cpplib'
582PACKAGE_TARNAME='cpplib'
583PACKAGE_VERSION=' '
584PACKAGE_STRING='cpplib  '
585PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
586PACKAGE_URL=''
587
588ac_unique_file="ucnid.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='LTLIBOBJS
626CET_HOST_FLAGS
627PICFLAG
628MAINT
629USED_CATALOGS
630PACKAGE
631LTLIBICONV
632LIBICONV
633CATOBJEXT
634GENCAT
635INSTOBJEXT
636DATADIRNAME
637CATALOGS
638POSUB
639GMSGFMT
640XGETTEXT
641INCINTL
642LIBINTL_DEP
643LIBINTL
644USE_NLS
645ALLOCA
646LIBOBJS
647CXXDEPMODE
648DEPDIR
649am__leading_dot
650WERROR
651noexception_flags
652WARN_PEDANTIC
653c_warn
654warn
655AUTOHEADER
656AUTOCONF
657ACLOCAL
658EGREP
659GREP
660CPP
661AR
662RANLIB
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
673INSTALL_DATA
674INSTALL_SCRIPT
675INSTALL_PROGRAM
676SET_MAKE
677target_os
678target_vendor
679target_cpu
680target
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689target_alias
690host_alias
691build_alias
692LIBS
693ECHO_T
694ECHO_N
695ECHO_C
696DEFS
697mandir
698localedir
699libdir
700psdir
701pdfdir
702dvidir
703htmldir
704infodir
705docdir
706oldincludedir
707includedir
708localstatedir
709sharedstatedir
710sysconfdir
711datadir
712datarootdir
713libexecdir
714sbindir
715bindir
716program_transform_name
717prefix
718exec_prefix
719PACKAGE_URL
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
726SHELL'
727ac_subst_files=''
728ac_user_opts='
729enable_option_checking
730enable_largefile
731enable_werror_always
732with_gnu_ld
733enable_rpath
734with_libiconv_prefix
735with_libiconv_type
736enable_maintainer_mode
737enable_checking
738enable_canonical_system_headers
739enable_host_shared
740enable_cet
741enable_valgrind_annotations
742'
743      ac_precious_vars='build_alias
744host_alias
745target_alias
746CC
747CFLAGS
748LDFLAGS
749LIBS
750CPPFLAGS
751CXX
752CXXFLAGS
753CCC
754CPP'
755
756
757# Initialize some variables set by options.
758ac_init_help=
759ac_init_version=false
760ac_unrecognized_opts=
761ac_unrecognized_sep=
762# The variables have the same names as the options, with
763# dashes changed to underlines.
764cache_file=/dev/null
765exec_prefix=NONE
766no_create=
767no_recursion=
768prefix=NONE
769program_prefix=NONE
770program_suffix=NONE
771program_transform_name=s,x,x,
772silent=
773site=
774srcdir=
775verbose=
776x_includes=NONE
777x_libraries=NONE
778
779# Installation directory options.
780# These are left unexpanded so users can "make install exec_prefix=/foo"
781# and all the variables that are supposed to be based on exec_prefix
782# by default will actually change.
783# Use braces instead of parens because sh, perl, etc. also accept them.
784# (The list follows the same order as the GNU Coding Standards.)
785bindir='${exec_prefix}/bin'
786sbindir='${exec_prefix}/sbin'
787libexecdir='${exec_prefix}/libexec'
788datarootdir='${prefix}/share'
789datadir='${datarootdir}'
790sysconfdir='${prefix}/etc'
791sharedstatedir='${prefix}/com'
792localstatedir='${prefix}/var'
793includedir='${prefix}/include'
794oldincludedir='/usr/include'
795docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796infodir='${datarootdir}/info'
797htmldir='${docdir}'
798dvidir='${docdir}'
799pdfdir='${docdir}'
800psdir='${docdir}'
801libdir='${exec_prefix}/lib'
802localedir='${datarootdir}/locale'
803mandir='${datarootdir}/man'
804
805ac_prev=
806ac_dashdash=
807for ac_option
808do
809  # If the previous option needs an argument, assign it.
810  if test -n "$ac_prev"; then
811    eval $ac_prev=\$ac_option
812    ac_prev=
813    continue
814  fi
815
816  case $ac_option in
817  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818  *=)   ac_optarg= ;;
819  *)    ac_optarg=yes ;;
820  esac
821
822  # Accept the important Cygnus configure options, so we can diagnose typos.
823
824  case $ac_dashdash$ac_option in
825  --)
826    ac_dashdash=yes ;;
827
828  -bindir | --bindir | --bindi | --bind | --bin | --bi)
829    ac_prev=bindir ;;
830  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831    bindir=$ac_optarg ;;
832
833  -build | --build | --buil | --bui | --bu)
834    ac_prev=build_alias ;;
835  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836    build_alias=$ac_optarg ;;
837
838  -cache-file | --cache-file | --cache-fil | --cache-fi \
839  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840    ac_prev=cache_file ;;
841  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843    cache_file=$ac_optarg ;;
844
845  --config-cache | -C)
846    cache_file=config.cache ;;
847
848  -datadir | --datadir | --datadi | --datad)
849    ac_prev=datadir ;;
850  -datadir=* | --datadir=* | --datadi=* | --datad=*)
851    datadir=$ac_optarg ;;
852
853  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854  | --dataroo | --dataro | --datar)
855    ac_prev=datarootdir ;;
856  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858    datarootdir=$ac_optarg ;;
859
860  -disable-* | --disable-*)
861    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862    # Reject names that are not valid shell variable names.
863    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864      as_fn_error $? "invalid feature name: $ac_useropt"
865    ac_useropt_orig=$ac_useropt
866    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867    case $ac_user_opts in
868      *"
869"enable_$ac_useropt"
870"*) ;;
871      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872	 ac_unrecognized_sep=', ';;
873    esac
874    eval enable_$ac_useropt=no ;;
875
876  -docdir | --docdir | --docdi | --doc | --do)
877    ac_prev=docdir ;;
878  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879    docdir=$ac_optarg ;;
880
881  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882    ac_prev=dvidir ;;
883  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884    dvidir=$ac_optarg ;;
885
886  -enable-* | --enable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error $? "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=\$ac_optarg ;;
901
902  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904  | --exec | --exe | --ex)
905    ac_prev=exec_prefix ;;
906  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908  | --exec=* | --exe=* | --ex=*)
909    exec_prefix=$ac_optarg ;;
910
911  -gas | --gas | --ga | --g)
912    # Obsolete; use --with-gas.
913    with_gas=yes ;;
914
915  -help | --help | --hel | --he | -h)
916    ac_init_help=long ;;
917  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918    ac_init_help=recursive ;;
919  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920    ac_init_help=short ;;
921
922  -host | --host | --hos | --ho)
923    ac_prev=host_alias ;;
924  -host=* | --host=* | --hos=* | --ho=*)
925    host_alias=$ac_optarg ;;
926
927  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928    ac_prev=htmldir ;;
929  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930  | --ht=*)
931    htmldir=$ac_optarg ;;
932
933  -includedir | --includedir | --includedi | --included | --include \
934  | --includ | --inclu | --incl | --inc)
935    ac_prev=includedir ;;
936  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937  | --includ=* | --inclu=* | --incl=* | --inc=*)
938    includedir=$ac_optarg ;;
939
940  -infodir | --infodir | --infodi | --infod | --info | --inf)
941    ac_prev=infodir ;;
942  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943    infodir=$ac_optarg ;;
944
945  -libdir | --libdir | --libdi | --libd)
946    ac_prev=libdir ;;
947  -libdir=* | --libdir=* | --libdi=* | --libd=*)
948    libdir=$ac_optarg ;;
949
950  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951  | --libexe | --libex | --libe)
952    ac_prev=libexecdir ;;
953  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954  | --libexe=* | --libex=* | --libe=*)
955    libexecdir=$ac_optarg ;;
956
957  -localedir | --localedir | --localedi | --localed | --locale)
958    ac_prev=localedir ;;
959  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960    localedir=$ac_optarg ;;
961
962  -localstatedir | --localstatedir | --localstatedi | --localstated \
963  | --localstate | --localstat | --localsta | --localst | --locals)
964    ac_prev=localstatedir ;;
965  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967    localstatedir=$ac_optarg ;;
968
969  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970    ac_prev=mandir ;;
971  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972    mandir=$ac_optarg ;;
973
974  -nfp | --nfp | --nf)
975    # Obsolete; use --without-fp.
976    with_fp=no ;;
977
978  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979  | --no-cr | --no-c | -n)
980    no_create=yes ;;
981
982  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984    no_recursion=yes ;;
985
986  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988  | --oldin | --oldi | --old | --ol | --o)
989    ac_prev=oldincludedir ;;
990  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993    oldincludedir=$ac_optarg ;;
994
995  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996    ac_prev=prefix ;;
997  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998    prefix=$ac_optarg ;;
999
1000  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001  | --program-pre | --program-pr | --program-p)
1002    ac_prev=program_prefix ;;
1003  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005    program_prefix=$ac_optarg ;;
1006
1007  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008  | --program-suf | --program-su | --program-s)
1009    ac_prev=program_suffix ;;
1010  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012    program_suffix=$ac_optarg ;;
1013
1014  -program-transform-name | --program-transform-name \
1015  | --program-transform-nam | --program-transform-na \
1016  | --program-transform-n | --program-transform- \
1017  | --program-transform | --program-transfor \
1018  | --program-transfo | --program-transf \
1019  | --program-trans | --program-tran \
1020  | --progr-tra | --program-tr | --program-t)
1021    ac_prev=program_transform_name ;;
1022  -program-transform-name=* | --program-transform-name=* \
1023  | --program-transform-nam=* | --program-transform-na=* \
1024  | --program-transform-n=* | --program-transform-=* \
1025  | --program-transform=* | --program-transfor=* \
1026  | --program-transfo=* | --program-transf=* \
1027  | --program-trans=* | --program-tran=* \
1028  | --progr-tra=* | --program-tr=* | --program-t=*)
1029    program_transform_name=$ac_optarg ;;
1030
1031  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032    ac_prev=pdfdir ;;
1033  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034    pdfdir=$ac_optarg ;;
1035
1036  -psdir | --psdir | --psdi | --psd | --ps)
1037    ac_prev=psdir ;;
1038  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039    psdir=$ac_optarg ;;
1040
1041  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042  | -silent | --silent | --silen | --sile | --sil)
1043    silent=yes ;;
1044
1045  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046    ac_prev=sbindir ;;
1047  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048  | --sbi=* | --sb=*)
1049    sbindir=$ac_optarg ;;
1050
1051  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053  | --sharedst | --shareds | --shared | --share | --shar \
1054  | --sha | --sh)
1055    ac_prev=sharedstatedir ;;
1056  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059  | --sha=* | --sh=*)
1060    sharedstatedir=$ac_optarg ;;
1061
1062  -site | --site | --sit)
1063    ac_prev=site ;;
1064  -site=* | --site=* | --sit=*)
1065    site=$ac_optarg ;;
1066
1067  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068    ac_prev=srcdir ;;
1069  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070    srcdir=$ac_optarg ;;
1071
1072  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073  | --syscon | --sysco | --sysc | --sys | --sy)
1074    ac_prev=sysconfdir ;;
1075  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077    sysconfdir=$ac_optarg ;;
1078
1079  -target | --target | --targe | --targ | --tar | --ta | --t)
1080    ac_prev=target_alias ;;
1081  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082    target_alias=$ac_optarg ;;
1083
1084  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085    verbose=yes ;;
1086
1087  -version | --version | --versio | --versi | --vers | -V)
1088    ac_init_version=: ;;
1089
1090  -with-* | --with-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      as_fn_error $? "invalid package name: $ac_useropt"
1095    ac_useropt_orig=$ac_useropt
1096    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097    case $ac_user_opts in
1098      *"
1099"with_$ac_useropt"
1100"*) ;;
1101      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102	 ac_unrecognized_sep=', ';;
1103    esac
1104    eval with_$ac_useropt=\$ac_optarg ;;
1105
1106  -without-* | --without-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=no ;;
1121
1122  --x)
1123    # Obsolete; use --with-x.
1124    with_x=yes ;;
1125
1126  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127  | --x-incl | --x-inc | --x-in | --x-i)
1128    ac_prev=x_includes ;;
1129  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131    x_includes=$ac_optarg ;;
1132
1133  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135    ac_prev=x_libraries ;;
1136  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138    x_libraries=$ac_optarg ;;
1139
1140  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141Try \`$0 --help' for more information"
1142    ;;
1143
1144  *=*)
1145    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146    # Reject names that are not valid shell variable names.
1147    case $ac_envvar in #(
1148      '' | [0-9]* | *[!_$as_cr_alnum]* )
1149      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150    esac
1151    eval $ac_envvar=\$ac_optarg
1152    export $ac_envvar ;;
1153
1154  *)
1155    # FIXME: should be removed in autoconf 3.0.
1156    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160    ;;
1161
1162  esac
1163done
1164
1165if test -n "$ac_prev"; then
1166  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167  as_fn_error $? "missing argument to $ac_option"
1168fi
1169
1170if test -n "$ac_unrecognized_opts"; then
1171  case $enable_option_checking in
1172    no) ;;
1173    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175  esac
1176fi
1177
1178# Check all directory arguments for consistency.
1179for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180		datadir sysconfdir sharedstatedir localstatedir includedir \
1181		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182		libdir localedir mandir
1183do
1184  eval ac_val=\$$ac_var
1185  # Remove trailing slashes.
1186  case $ac_val in
1187    */ )
1188      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189      eval $ac_var=\$ac_val;;
1190  esac
1191  # Be sure to have absolute directory names.
1192  case $ac_val in
1193    [\\/$]* | ?:[\\/]* )  continue;;
1194    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195  esac
1196  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197done
1198
1199# There might be people who depend on the old broken behavior: `$host'
1200# used to hold the argument of --host etc.
1201# FIXME: To remove some day.
1202build=$build_alias
1203host=$host_alias
1204target=$target_alias
1205
1206# FIXME: To remove some day.
1207if test "x$host_alias" != x; then
1208  if test "x$build_alias" = x; then
1209    cross_compiling=maybe
1210  elif test "x$build_alias" != "x$host_alias"; then
1211    cross_compiling=yes
1212  fi
1213fi
1214
1215ac_tool_prefix=
1216test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218test "$silent" = yes && exec 6>/dev/null
1219
1220
1221ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222ac_ls_di=`ls -di .` &&
1223ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224  as_fn_error $? "working directory cannot be determined"
1225test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226  as_fn_error $? "pwd does not report name of working directory"
1227
1228
1229# Find the source files, if location was not specified.
1230if test -z "$srcdir"; then
1231  ac_srcdir_defaulted=yes
1232  # Try the directory containing this script, then the parent directory.
1233  ac_confdir=`$as_dirname -- "$as_myself" ||
1234$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235	 X"$as_myself" : 'X\(//\)[^/]' \| \
1236	 X"$as_myself" : 'X\(//\)$' \| \
1237	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238$as_echo X"$as_myself" |
1239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240	    s//\1/
1241	    q
1242	  }
1243	  /^X\(\/\/\)[^/].*/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)$/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\).*/{
1252	    s//\1/
1253	    q
1254	  }
1255	  s/.*/./; q'`
1256  srcdir=$ac_confdir
1257  if test ! -r "$srcdir/$ac_unique_file"; then
1258    srcdir=..
1259  fi
1260else
1261  ac_srcdir_defaulted=no
1262fi
1263if test ! -r "$srcdir/$ac_unique_file"; then
1264  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266fi
1267ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268ac_abs_confdir=`(
1269	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270	pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273  srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283  eval ac_env_${ac_var}_value=\$${ac_var}
1284  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
1287
1288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292  # Omit some internal or obsolete options to make the list less imposing.
1293  # This message is too long to be a string in the A/UX 3.1 sh.
1294  cat <<_ACEOF
1295\`configure' configures cpplib   to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305  -h, --help              display this help and exit
1306      --help=short        display options specific to this package
1307      --help=recursive    display the short help of all the included packages
1308  -V, --version           display version information and exit
1309  -q, --quiet, --silent   do not print \`checking ...' messages
1310      --cache-file=FILE   cache test results in FILE [disabled]
1311  -C, --config-cache      alias for \`--cache-file=config.cache'
1312  -n, --no-create         do not create output files
1313      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315Installation directories:
1316  --prefix=PREFIX         install architecture-independent files in PREFIX
1317                          [$ac_default_prefix]
1318  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                          [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329  --bindir=DIR            user executables [EPREFIX/bin]
1330  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1331  --libexecdir=DIR        program executables [EPREFIX/libexec]
1332  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1333  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1334  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1335  --libdir=DIR            object code libraries [EPREFIX/lib]
1336  --includedir=DIR        C header files [PREFIX/include]
1337  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1338  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1339  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1340  --infodir=DIR           info documentation [DATAROOTDIR/info]
1341  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1342  --mandir=DIR            man documentation [DATAROOTDIR/man]
1343  --docdir=DIR            documentation root [DATAROOTDIR/doc/cpplib]
1344  --htmldir=DIR           html documentation [DOCDIR]
1345  --dvidir=DIR            dvi documentation [DOCDIR]
1346  --pdfdir=DIR            pdf documentation [DOCDIR]
1347  --psdir=DIR             ps documentation [DOCDIR]
1348_ACEOF
1349
1350  cat <<\_ACEOF
1351
1352System types:
1353  --build=BUILD     configure for building on BUILD [guessed]
1354  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1355  --target=TARGET   configure for building compilers for TARGET [HOST]
1356_ACEOF
1357fi
1358
1359if test -n "$ac_init_help"; then
1360  case $ac_init_help in
1361     short | recursive ) echo "Configuration of cpplib  :";;
1362   esac
1363  cat <<\_ACEOF
1364
1365Optional Features:
1366  --disable-option-checking  ignore unrecognized --enable/--with options
1367  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369  --disable-largefile     omit support for large files
1370  --enable-werror-always  enable -Werror despite compiler version
1371  --disable-rpath         do not hardcode runtime library paths
1372  --enable-maintainer-mode enable rules only needed by maintainers
1373  --enable-checking[=LIST]
1374                          enable expensive run-time checks. With LIST, enable
1375                          only specific categories of checks. Categories are:
1376                          yes,no,all,none,release. Flags are: misc,valgrind or
1377                          other strings
1378  --enable-canonical-system-headers
1379                          enable or disable system headers canonicalization
1380  --enable-host-shared    build host code as shared libraries
1381  --enable-cet            enable Intel CET in host libraries [default=auto]
1382  --enable-valgrind-annotations
1383                          enable valgrind runtime interaction
1384
1385Optional Packages:
1386  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1387  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1388  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1389  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1390  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1391  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1392
1393Some influential environment variables:
1394  CC          C compiler command
1395  CFLAGS      C compiler flags
1396  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1397              nonstandard directory <lib dir>
1398  LIBS        libraries to pass to the linker, e.g. -l<library>
1399  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400              you have headers in a nonstandard directory <include dir>
1401  CXX         C++ compiler command
1402  CXXFLAGS    C++ compiler flags
1403  CPP         C preprocessor
1404
1405Use these variables to override the choices made by `configure' or to help
1406it to find libraries and programs with nonstandard names/locations.
1407
1408Report bugs to <gcc-bugs@gcc.gnu.org>.
1409_ACEOF
1410ac_status=$?
1411fi
1412
1413if test "$ac_init_help" = "recursive"; then
1414  # If there are subdirs, report their specific --help.
1415  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416    test -d "$ac_dir" ||
1417      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418      continue
1419    ac_builddir=.
1420
1421case "$ac_dir" in
1422.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423*)
1424  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425  # A ".." for each directory in $ac_dir_suffix.
1426  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427  case $ac_top_builddir_sub in
1428  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430  esac ;;
1431esac
1432ac_abs_top_builddir=$ac_pwd
1433ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434# for backward compatibility:
1435ac_top_builddir=$ac_top_build_prefix
1436
1437case $srcdir in
1438  .)  # We are building in place.
1439    ac_srcdir=.
1440    ac_top_srcdir=$ac_top_builddir_sub
1441    ac_abs_top_srcdir=$ac_pwd ;;
1442  [\\/]* | ?:[\\/]* )  # Absolute name.
1443    ac_srcdir=$srcdir$ac_dir_suffix;
1444    ac_top_srcdir=$srcdir
1445    ac_abs_top_srcdir=$srcdir ;;
1446  *) # Relative name.
1447    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448    ac_top_srcdir=$ac_top_build_prefix$srcdir
1449    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450esac
1451ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453    cd "$ac_dir" || { ac_status=$?; continue; }
1454    # Check for guested configure.
1455    if test -f "$ac_srcdir/configure.gnu"; then
1456      echo &&
1457      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458    elif test -f "$ac_srcdir/configure"; then
1459      echo &&
1460      $SHELL "$ac_srcdir/configure" --help=recursive
1461    else
1462      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463    fi || ac_status=$?
1464    cd "$ac_pwd" || { ac_status=$?; break; }
1465  done
1466fi
1467
1468test -n "$ac_init_help" && exit $ac_status
1469if $ac_init_version; then
1470  cat <<\_ACEOF
1471cpplib configure
1472generated by GNU Autoconf 2.69
1473
1474Copyright (C) 2012 Free Software Foundation, Inc.
1475This configure script is free software; the Free Software Foundation
1476gives unlimited permission to copy, distribute and modify it.
1477_ACEOF
1478  exit
1479fi
1480
1481## ------------------------ ##
1482## Autoconf initialization. ##
1483## ------------------------ ##
1484
1485# ac_fn_c_try_compile LINENO
1486# --------------------------
1487# Try to compile conftest.$ac_ext, and return whether this succeeded.
1488ac_fn_c_try_compile ()
1489{
1490  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491  rm -f conftest.$ac_objext
1492  if { { ac_try="$ac_compile"
1493case "(($ac_try" in
1494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495  *) ac_try_echo=$ac_try;;
1496esac
1497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498$as_echo "$ac_try_echo"; } >&5
1499  (eval "$ac_compile") 2>conftest.err
1500  ac_status=$?
1501  if test -s conftest.err; then
1502    grep -v '^ *+' conftest.err >conftest.er1
1503    cat conftest.er1 >&5
1504    mv -f conftest.er1 conftest.err
1505  fi
1506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507  test $ac_status = 0; } && {
1508	 test -z "$ac_c_werror_flag" ||
1509	 test ! -s conftest.err
1510       } && test -s conftest.$ac_objext; then :
1511  ac_retval=0
1512else
1513  $as_echo "$as_me: failed program was:" >&5
1514sed 's/^/| /' conftest.$ac_ext >&5
1515
1516	ac_retval=1
1517fi
1518  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519  as_fn_set_status $ac_retval
1520
1521} # ac_fn_c_try_compile
1522
1523# ac_fn_cxx_try_compile LINENO
1524# ----------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_cxx_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_cxx_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_cxx_try_compile
1560
1561# ac_fn_c_try_cpp LINENO
1562# ----------------------
1563# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_cpp ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  if { { ac_try="$ac_cpp conftest.$ac_ext"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } > conftest.i && {
1583	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       }; then :
1586  ac_retval=0
1587else
1588  $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591    ac_retval=1
1592fi
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_cpp
1597
1598# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599# -------------------------------------------------------
1600# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601# the include files in INCLUDES and setting the cache variable VAR
1602# accordingly.
1603ac_fn_c_check_header_mongrel ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  if eval \${$3+:} false; then :
1607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
1609if eval \${$3+:} false; then :
1610  $as_echo_n "(cached) " >&6
1611fi
1612eval ac_res=\$$3
1613	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614$as_echo "$ac_res" >&6; }
1615else
1616  # Is the header compilable?
1617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618$as_echo_n "checking $2 usability... " >&6; }
1619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h.  */
1621$4
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625  ac_header_compiler=yes
1626else
1627  ac_header_compiler=no
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631$as_echo "$ac_header_compiler" >&6; }
1632
1633# Is the header present?
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635$as_echo_n "checking $2 presence... " >&6; }
1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h.  */
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_cpp "$LINENO"; then :
1641  ac_header_preproc=yes
1642else
1643  ac_header_preproc=no
1644fi
1645rm -f conftest.err conftest.i conftest.$ac_ext
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647$as_echo "$ac_header_preproc" >&6; }
1648
1649# So?  What about this header?
1650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651  yes:no: )
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656    ;;
1657  no:yes:* )
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1661$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1665$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668( $as_echo "## ----------------------------------- ##
1669## Report this to gcc-bugs@gcc.gnu.org ##
1670## ----------------------------------- ##"
1671     ) | sed "s/^/$as_me: WARNING:     /" >&2
1672    ;;
1673esac
1674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if eval \${$3+:} false; then :
1677  $as_echo_n "(cached) " >&6
1678else
1679  eval "$3=\$ac_header_compiler"
1680fi
1681eval ac_res=\$$3
1682	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_c_check_header_mongrel
1688
1689# ac_fn_c_try_run LINENO
1690# ----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692# that executables *can* be run.
1693ac_fn_c_try_run ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_link") 2>&5
1704  ac_status=$?
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707  { { case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_try") 2>&5
1714  ac_status=$?
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; }; }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: program exited with status $ac_status" >&5
1720       $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723       ac_retval=$ac_status
1724fi
1725  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_run
1730
1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732# -------------------------------------------------------
1733# Tests whether HEADER exists and can be compiled using the include files in
1734# INCLUDES, setting the cache variable VAR accordingly.
1735ac_fn_c_check_header_compile ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if eval \${$3+:} false; then :
1741  $as_echo_n "(cached) " >&6
1742else
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749  eval "$3=yes"
1750else
1751  eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760} # ac_fn_c_check_header_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  rm -f conftest.$ac_objext conftest$ac_exeext
1769  if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_link") 2>conftest.err
1777  ac_status=$?
1778  if test -s conftest.err; then
1779    grep -v '^ *+' conftest.err >conftest.er1
1780    cat conftest.er1 >&5
1781    mv -f conftest.er1 conftest.err
1782  fi
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } && {
1785	 test -z "$ac_c_werror_flag" ||
1786	 test ! -s conftest.err
1787       } && test -s conftest$ac_exeext && {
1788	 test "$cross_compiling" = yes ||
1789	 test -x conftest$ac_exeext
1790       }; then :
1791  ac_retval=0
1792else
1793  $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796	ac_retval=1
1797fi
1798  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800  # interfere with the next link command; also delete a directory that is
1801  # left behind by Apple's compiler.  We do this before executing the actions.
1802  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804  as_fn_set_status $ac_retval
1805
1806} # ac_fn_c_try_link
1807
1808# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809# -------------------------------------------
1810# Tests whether TYPE exists after having included INCLUDES, setting cache
1811# variable VAR accordingly.
1812ac_fn_c_check_type ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818  $as_echo_n "(cached) " >&6
1819else
1820  eval "$3=no"
1821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823$4
1824int
1825main ()
1826{
1827if (sizeof ($2))
1828	 return 0;
1829  ;
1830  return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h.  */
1836$4
1837int
1838main ()
1839{
1840if (sizeof (($2)))
1841	    return 0;
1842  ;
1843  return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_compile "$LINENO"; then :
1847
1848else
1849  eval "$3=yes"
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852fi
1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854fi
1855eval ac_res=\$$3
1856	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860} # ac_fn_c_check_type
1861
1862# ac_fn_c_find_uintX_t LINENO BITS VAR
1863# ------------------------------------
1864# Finds an unsigned integer type with width BITS, setting cache variable VAR
1865# accordingly.
1866ac_fn_c_find_uintX_t ()
1867{
1868  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1870$as_echo_n "checking for uint$2_t... " >&6; }
1871if eval \${$3+:} false; then :
1872  $as_echo_n "(cached) " >&6
1873else
1874  eval "$3=no"
1875     # Order is important - never check a type that is potentially smaller
1876     # than half of the expected target width.
1877     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1878	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1879       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h.  */
1881$ac_includes_default
1882int
1883main ()
1884{
1885static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1886test_array [0] = 0;
1887return test_array [0];
1888
1889  ;
1890  return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  case $ac_type in #(
1895  uint$2_t) :
1896    eval "$3=yes" ;; #(
1897  *) :
1898    eval "$3=\$ac_type" ;;
1899esac
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902       if eval test \"x\$"$3"\" = x"no"; then :
1903
1904else
1905  break
1906fi
1907     done
1908fi
1909eval ac_res=\$$3
1910	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914} # ac_fn_c_find_uintX_t
1915
1916# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917# --------------------------------------------
1918# Tries to find the compile-time value of EXPR in a program that includes
1919# INCLUDES, setting VAR accordingly. Returns whether the value could be
1920# computed
1921ac_fn_c_compute_int ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  if test "$cross_compiling" = yes; then
1925    # Depending upon the size, compute the lo and hi bounds.
1926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) >= 0)];
1933test_array [0] = 0;
1934return test_array [0];
1935
1936  ;
1937  return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941  ac_lo=0 ac_mid=0
1942  while :; do
1943    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945$4
1946int
1947main ()
1948{
1949static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950test_array [0] = 0;
1951return test_array [0];
1952
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958  ac_hi=$ac_mid; break
1959else
1960  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1961			if test $ac_lo -le $ac_mid; then
1962			  ac_lo= ac_hi=
1963			  break
1964			fi
1965			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968  done
1969else
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972$4
1973int
1974main ()
1975{
1976static int test_array [1 - 2 * !(($2) < 0)];
1977test_array [0] = 0;
1978return test_array [0];
1979
1980  ;
1981  return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985  ac_hi=-1 ac_mid=-1
1986  while :; do
1987    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990int
1991main ()
1992{
1993static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1994test_array [0] = 0;
1995return test_array [0];
1996
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002  ac_lo=$ac_mid; break
2003else
2004  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2005			if test $ac_mid -le $ac_hi; then
2006			  ac_lo= ac_hi=
2007			  break
2008			fi
2009			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012  done
2013else
2014  ac_lo= ac_hi=
2015fi
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019# Binary search between lo and hi bounds.
2020while test "x$ac_lo" != "x$ac_hi"; do
2021  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h.  */
2024$4
2025int
2026main ()
2027{
2028static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029test_array [0] = 0;
2030return test_array [0];
2031
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037  ac_hi=$ac_mid
2038else
2039  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042done
2043case $ac_lo in #((
2044?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2045'') ac_retval=1 ;;
2046esac
2047  else
2048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051static long int longval () { return $2; }
2052static unsigned long int ulongval () { return $2; }
2053#include <stdio.h>
2054#include <stdlib.h>
2055int
2056main ()
2057{
2058
2059  FILE *f = fopen ("conftest.val", "w");
2060  if (! f)
2061    return 1;
2062  if (($2) < 0)
2063    {
2064      long int i = longval ();
2065      if (i != ($2))
2066	return 1;
2067      fprintf (f, "%ld", i);
2068    }
2069  else
2070    {
2071      unsigned long int i = ulongval ();
2072      if (i != ($2))
2073	return 1;
2074      fprintf (f, "%lu", i);
2075    }
2076  /* Do not output a trailing newline, as this causes \r\n confusion
2077     on some platforms.  */
2078  return ferror (f) || fclose (f) != 0;
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_run "$LINENO"; then :
2085  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2086else
2087  ac_retval=1
2088fi
2089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2090  conftest.$ac_objext conftest.beam conftest.$ac_ext
2091rm -f conftest.val
2092
2093  fi
2094  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095  as_fn_set_status $ac_retval
2096
2097} # ac_fn_c_compute_int
2098
2099# ac_fn_c_check_func LINENO FUNC VAR
2100# ----------------------------------
2101# Tests whether FUNC exists, setting the cache variable VAR accordingly
2102ac_fn_c_check_func ()
2103{
2104  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106$as_echo_n "checking for $2... " >&6; }
2107if eval \${$3+:} false; then :
2108  $as_echo_n "(cached) " >&6
2109else
2110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2113   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2114#define $2 innocuous_$2
2115
2116/* System header to define __stub macros and hopefully few prototypes,
2117    which can conflict with char $2 (); below.
2118    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2119    <limits.h> exists even on freestanding compilers.  */
2120
2121#ifdef __STDC__
2122# include <limits.h>
2123#else
2124# include <assert.h>
2125#endif
2126
2127#undef $2
2128
2129/* Override any GCC internal prototype to avoid an error.
2130   Use char because int might match the return type of a GCC
2131   builtin and then its argument prototype would still apply.  */
2132#ifdef __cplusplus
2133extern "C"
2134#endif
2135char $2 ();
2136/* The GNU C library defines this for functions which it implements
2137    to always fail with ENOSYS.  Some functions are actually named
2138    something starting with __ and the normal name is an alias.  */
2139#if defined __stub_$2 || defined __stub___$2
2140choke me
2141#endif
2142
2143int
2144main ()
2145{
2146return $2 ();
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_link "$LINENO"; then :
2152  eval "$3=yes"
2153else
2154  eval "$3=no"
2155fi
2156rm -f core conftest.err conftest.$ac_objext \
2157    conftest$ac_exeext conftest.$ac_ext
2158fi
2159eval ac_res=\$$3
2160	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161$as_echo "$ac_res" >&6; }
2162  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163
2164} # ac_fn_c_check_func
2165
2166# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2167# ---------------------------------------------
2168# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2169# accordingly.
2170ac_fn_c_check_decl ()
2171{
2172  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173  as_decl_name=`echo $2|sed 's/ *(.*//'`
2174  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2176$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2177if eval \${$3+:} false; then :
2178  $as_echo_n "(cached) " >&6
2179else
2180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$4
2183int
2184main ()
2185{
2186#ifndef $as_decl_name
2187#ifdef __cplusplus
2188  (void) $as_decl_use;
2189#else
2190  (void) $as_decl_name;
2191#endif
2192#endif
2193
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198if ac_fn_c_try_compile "$LINENO"; then :
2199  eval "$3=yes"
2200else
2201  eval "$3=no"
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204fi
2205eval ac_res=\$$3
2206	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209
2210} # ac_fn_c_check_decl
2211
2212# ac_fn_cxx_try_link LINENO
2213# -------------------------
2214# Try to link conftest.$ac_ext, and return whether this succeeded.
2215ac_fn_cxx_try_link ()
2216{
2217  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218  rm -f conftest.$ac_objext conftest$ac_exeext
2219  if { { ac_try="$ac_link"
2220case "(($ac_try" in
2221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222  *) ac_try_echo=$ac_try;;
2223esac
2224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225$as_echo "$ac_try_echo"; } >&5
2226  (eval "$ac_link") 2>conftest.err
2227  ac_status=$?
2228  if test -s conftest.err; then
2229    grep -v '^ *+' conftest.err >conftest.er1
2230    cat conftest.er1 >&5
2231    mv -f conftest.er1 conftest.err
2232  fi
2233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234  test $ac_status = 0; } && {
2235	 test -z "$ac_cxx_werror_flag" ||
2236	 test ! -s conftest.err
2237       } && test -s conftest$ac_exeext && {
2238	 test "$cross_compiling" = yes ||
2239	 test -x conftest$ac_exeext
2240       }; then :
2241  ac_retval=0
2242else
2243  $as_echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246	ac_retval=1
2247fi
2248  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2249  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2250  # interfere with the next link command; also delete a directory that is
2251  # left behind by Apple's compiler.  We do this before executing the actions.
2252  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2253  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254  as_fn_set_status $ac_retval
2255
2256} # ac_fn_cxx_try_link
2257cat >config.log <<_ACEOF
2258This file contains any messages produced by compilers while
2259running configure, to aid debugging if configure makes a mistake.
2260
2261It was created by cpplib $as_me  , which was
2262generated by GNU Autoconf 2.69.  Invocation command line was
2263
2264  $ $0 $@
2265
2266_ACEOF
2267exec 5>>config.log
2268{
2269cat <<_ASUNAME
2270## --------- ##
2271## Platform. ##
2272## --------- ##
2273
2274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2282
2283/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2284/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2287/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2288/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2289/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2290
2291_ASUNAME
2292
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296  IFS=$as_save_IFS
2297  test -z "$as_dir" && as_dir=.
2298    $as_echo "PATH: $as_dir"
2299  done
2300IFS=$as_save_IFS
2301
2302} >&5
2303
2304cat >&5 <<_ACEOF
2305
2306
2307## ----------- ##
2308## Core tests. ##
2309## ----------- ##
2310
2311_ACEOF
2312
2313
2314# Keep a trace of the command line.
2315# Strip out --no-create and --no-recursion so they do not pile up.
2316# Strip out --silent because we don't want to record it for future runs.
2317# Also quote any args containing shell meta-characters.
2318# Make two passes to allow for proper duplicate-argument suppression.
2319ac_configure_args=
2320ac_configure_args0=
2321ac_configure_args1=
2322ac_must_keep_next=false
2323for ac_pass in 1 2
2324do
2325  for ac_arg
2326  do
2327    case $ac_arg in
2328    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330    | -silent | --silent | --silen | --sile | --sil)
2331      continue ;;
2332    *\'*)
2333      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334    esac
2335    case $ac_pass in
2336    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337    2)
2338      as_fn_append ac_configure_args1 " '$ac_arg'"
2339      if test $ac_must_keep_next = true; then
2340	ac_must_keep_next=false # Got value, back to normal.
2341      else
2342	case $ac_arg in
2343	  *=* | --config-cache | -C | -disable-* | --disable-* \
2344	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346	  | -with-* | --with-* | -without-* | --without-* | --x)
2347	    case "$ac_configure_args0 " in
2348	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349	    esac
2350	    ;;
2351	  -* ) ac_must_keep_next=true ;;
2352	esac
2353      fi
2354      as_fn_append ac_configure_args " '$ac_arg'"
2355      ;;
2356    esac
2357  done
2358done
2359{ ac_configure_args0=; unset ac_configure_args0;}
2360{ ac_configure_args1=; unset ac_configure_args1;}
2361
2362# When interrupted or exit'd, cleanup temporary files, and complete
2363# config.log.  We remove comments because anyway the quotes in there
2364# would cause problems or look ugly.
2365# WARNING: Use '\'' to represent an apostrophe within the trap.
2366# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367trap 'exit_status=$?
2368  # Save into config.log some information that might help in debugging.
2369  {
2370    echo
2371
2372    $as_echo "## ---------------- ##
2373## Cache variables. ##
2374## ---------------- ##"
2375    echo
2376    # The following way of writing the cache mishandles newlines in values,
2377(
2378  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379    eval ac_val=\$$ac_var
2380    case $ac_val in #(
2381    *${as_nl}*)
2382      case $ac_var in #(
2383      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385      esac
2386      case $ac_var in #(
2387      _ | IFS | as_nl) ;; #(
2388      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389      *) { eval $ac_var=; unset $ac_var;} ;;
2390      esac ;;
2391    esac
2392  done
2393  (set) 2>&1 |
2394    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395    *${as_nl}ac_space=\ *)
2396      sed -n \
2397	"s/'\''/'\''\\\\'\'''\''/g;
2398	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399      ;; #(
2400    *)
2401      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402      ;;
2403    esac |
2404    sort
2405)
2406    echo
2407
2408    $as_echo "## ----------------- ##
2409## Output variables. ##
2410## ----------------- ##"
2411    echo
2412    for ac_var in $ac_subst_vars
2413    do
2414      eval ac_val=\$$ac_var
2415      case $ac_val in
2416      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417      esac
2418      $as_echo "$ac_var='\''$ac_val'\''"
2419    done | sort
2420    echo
2421
2422    if test -n "$ac_subst_files"; then
2423      $as_echo "## ------------------- ##
2424## File substitutions. ##
2425## ------------------- ##"
2426      echo
2427      for ac_var in $ac_subst_files
2428      do
2429	eval ac_val=\$$ac_var
2430	case $ac_val in
2431	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432	esac
2433	$as_echo "$ac_var='\''$ac_val'\''"
2434      done | sort
2435      echo
2436    fi
2437
2438    if test -s confdefs.h; then
2439      $as_echo "## ----------- ##
2440## confdefs.h. ##
2441## ----------- ##"
2442      echo
2443      cat confdefs.h
2444      echo
2445    fi
2446    test "$ac_signal" != 0 &&
2447      $as_echo "$as_me: caught signal $ac_signal"
2448    $as_echo "$as_me: exit $exit_status"
2449  } >&5
2450  rm -f core *.core core.conftest.* &&
2451    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452    exit $exit_status
2453' 0
2454for ac_signal in 1 2 13 15; do
2455  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456done
2457ac_signal=0
2458
2459# confdefs.h avoids OS command line length limits that DEFS can exceed.
2460rm -f -r conftest* confdefs.h
2461
2462$as_echo "/* confdefs.h */" > confdefs.h
2463
2464# Predefined preprocessor variables.
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_NAME "$PACKAGE_NAME"
2468_ACEOF
2469
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472_ACEOF
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_VERSION "$PACKAGE_VERSION"
2476_ACEOF
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_STRING "$PACKAGE_STRING"
2480_ACEOF
2481
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484_ACEOF
2485
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_URL "$PACKAGE_URL"
2488_ACEOF
2489
2490
2491# Let the site file select an alternate cache file if it wants to.
2492# Prefer an explicitly selected file to automatically selected ones.
2493ac_site_file1=NONE
2494ac_site_file2=NONE
2495if test -n "$CONFIG_SITE"; then
2496  # We do not want a PATH search for config.site.
2497  case $CONFIG_SITE in #((
2498    -*)  ac_site_file1=./$CONFIG_SITE;;
2499    */*) ac_site_file1=$CONFIG_SITE;;
2500    *)   ac_site_file1=./$CONFIG_SITE;;
2501  esac
2502elif test "x$prefix" != xNONE; then
2503  ac_site_file1=$prefix/share/config.site
2504  ac_site_file2=$prefix/etc/config.site
2505else
2506  ac_site_file1=$ac_default_prefix/share/config.site
2507  ac_site_file2=$ac_default_prefix/etc/config.site
2508fi
2509for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510do
2511  test "x$ac_site_file" = xNONE && continue
2512  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515    sed 's/^/| /' "$ac_site_file" >&5
2516    . "$ac_site_file" \
2517      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519as_fn_error $? "failed to load site script $ac_site_file
2520See \`config.log' for more details" "$LINENO" 5; }
2521  fi
2522done
2523
2524if test -r "$cache_file"; then
2525  # Some versions of bash will fail to source /dev/null (special files
2526  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2527  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529$as_echo "$as_me: loading cache $cache_file" >&6;}
2530    case $cache_file in
2531      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532      *)                      . "./$cache_file";;
2533    esac
2534  fi
2535else
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537$as_echo "$as_me: creating cache $cache_file" >&6;}
2538  >$cache_file
2539fi
2540
2541# Check that the precious variables saved in the cache have kept the same
2542# value.
2543ac_cache_corrupted=false
2544for ac_var in $ac_precious_vars; do
2545  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546  eval ac_new_set=\$ac_env_${ac_var}_set
2547  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548  eval ac_new_val=\$ac_env_${ac_var}_value
2549  case $ac_old_set,$ac_new_set in
2550    set,)
2551      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553      ac_cache_corrupted=: ;;
2554    ,set)
2555      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557      ac_cache_corrupted=: ;;
2558    ,);;
2559    *)
2560      if test "x$ac_old_val" != "x$ac_new_val"; then
2561	# differences in whitespace do not lead to failure.
2562	ac_old_val_w=`echo x $ac_old_val`
2563	ac_new_val_w=`echo x $ac_new_val`
2564	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567	  ac_cache_corrupted=:
2568	else
2569	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571	  eval $ac_var=\$ac_old_val
2572	fi
2573	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2574$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2575	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2576$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2577      fi;;
2578  esac
2579  # Pass precious variables to config.status.
2580  if test "$ac_new_set" = set; then
2581    case $ac_new_val in
2582    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583    *) ac_arg=$ac_var=$ac_new_val ;;
2584    esac
2585    case " $ac_configure_args " in
2586      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2587      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588    esac
2589  fi
2590done
2591if $ac_cache_corrupted; then
2592  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2597fi
2598## -------------------- ##
2599## Main body of script. ##
2600## -------------------- ##
2601
2602ac_ext=c
2603ac_cpp='$CPP $CPPFLAGS'
2604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607
2608
2609
2610
2611ac_aux_dir=
2612for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2613  if test -f "$ac_dir/install-sh"; then
2614    ac_aux_dir=$ac_dir
2615    ac_install_sh="$ac_aux_dir/install-sh -c"
2616    break
2617  elif test -f "$ac_dir/install.sh"; then
2618    ac_aux_dir=$ac_dir
2619    ac_install_sh="$ac_aux_dir/install.sh -c"
2620    break
2621  elif test -f "$ac_dir/shtool"; then
2622    ac_aux_dir=$ac_dir
2623    ac_install_sh="$ac_aux_dir/shtool install -c"
2624    break
2625  fi
2626done
2627if test -z "$ac_aux_dir"; then
2628  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2629fi
2630
2631# These three variables are undocumented and unsupported,
2632# and are intended to be withdrawn in a future Autoconf release.
2633# They can cause serious problems if a builder's source tree is in a directory
2634# whose full name contains unusual characters.
2635ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2636ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2637ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2638
2639
2640# Make sure we can run config.sub.
2641$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2642  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2643
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2645$as_echo_n "checking build system type... " >&6; }
2646if ${ac_cv_build+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  ac_build_alias=$build_alias
2650test "x$ac_build_alias" = x &&
2651  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2652test "x$ac_build_alias" = x &&
2653  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2654ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2656
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2659$as_echo "$ac_cv_build" >&6; }
2660case $ac_cv_build in
2661*-*-*) ;;
2662*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2663esac
2664build=$ac_cv_build
2665ac_save_IFS=$IFS; IFS='-'
2666set x $ac_cv_build
2667shift
2668build_cpu=$1
2669build_vendor=$2
2670shift; shift
2671# Remember, the first character of IFS is used to create $*,
2672# except with old shells:
2673build_os=$*
2674IFS=$ac_save_IFS
2675case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2676
2677
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2679$as_echo_n "checking host system type... " >&6; }
2680if ${ac_cv_host+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test "x$host_alias" = x; then
2684  ac_cv_host=$ac_cv_build
2685else
2686  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2687    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2688fi
2689
2690fi
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2692$as_echo "$ac_cv_host" >&6; }
2693case $ac_cv_host in
2694*-*-*) ;;
2695*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2696esac
2697host=$ac_cv_host
2698ac_save_IFS=$IFS; IFS='-'
2699set x $ac_cv_host
2700shift
2701host_cpu=$1
2702host_vendor=$2
2703shift; shift
2704# Remember, the first character of IFS is used to create $*,
2705# except with old shells:
2706host_os=$*
2707IFS=$ac_save_IFS
2708case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2709
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2712$as_echo_n "checking target system type... " >&6; }
2713if ${ac_cv_target+:} false; then :
2714  $as_echo_n "(cached) " >&6
2715else
2716  if test "x$target_alias" = x; then
2717  ac_cv_target=$ac_cv_host
2718else
2719  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2720    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2721fi
2722
2723fi
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2725$as_echo "$ac_cv_target" >&6; }
2726case $ac_cv_target in
2727*-*-*) ;;
2728*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2729esac
2730target=$ac_cv_target
2731ac_save_IFS=$IFS; IFS='-'
2732set x $ac_cv_target
2733shift
2734target_cpu=$1
2735target_vendor=$2
2736shift; shift
2737# Remember, the first character of IFS is used to create $*,
2738# except with old shells:
2739target_os=$*
2740IFS=$ac_save_IFS
2741case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2742
2743
2744# The aliases save the names the user supplied, while $host etc.
2745# will get canonicalized.
2746test -n "$target_alias" &&
2747  test "$program_prefix$program_suffix$program_transform_name" = \
2748    NONENONEs,x,x, &&
2749  program_prefix=${target_alias}-
2750
2751
2752# Checks for programs.
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2754$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2755set x ${MAKE-make}
2756ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2757if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  cat >conftest.make <<\_ACEOF
2761SHELL = /bin/sh
2762all:
2763	@echo '@@@%%%=$(MAKE)=@@@%%%'
2764_ACEOF
2765# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2766case `${MAKE-make} -f conftest.make 2>/dev/null` in
2767  *@@@%%%=?*=@@@%%%*)
2768    eval ac_cv_prog_make_${ac_make}_set=yes;;
2769  *)
2770    eval ac_cv_prog_make_${ac_make}_set=no;;
2771esac
2772rm -f conftest.make
2773fi
2774if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776$as_echo "yes" >&6; }
2777  SET_MAKE=
2778else
2779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780$as_echo "no" >&6; }
2781  SET_MAKE="MAKE=${MAKE-make}"
2782fi
2783
2784# Find a good install program.  We prefer a C program (faster),
2785# so one script is as good as another.  But avoid the broken or
2786# incompatible versions:
2787# SysV /etc/install, /usr/sbin/install
2788# SunOS /usr/etc/install
2789# IRIX /sbin/install
2790# AIX /bin/install
2791# AmigaOS /C/install, which installs bootblocks on floppy discs
2792# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2793# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2794# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2795# OS/2's system install, which has a completely different semantic
2796# ./install, which can be erroneously created by make from ./install.sh.
2797# Reject install programs that cannot install multiple files.
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2799$as_echo_n "checking for a BSD-compatible install... " >&6; }
2800if test -z "$INSTALL"; then
2801if ${ac_cv_path_install+:} false; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  as_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    # Account for people who put trailing slashes in PATH elements.
2810case $as_dir/ in #((
2811  ./ | .// | /[cC]/* | \
2812  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2813  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2814  /usr/ucb/* ) ;;
2815  *)
2816    # OSF1 and SCO ODT 3.0 have their own names for install.
2817    # Don't use installbsd from OSF since it installs stuff as root
2818    # by default.
2819    for ac_prog in ginstall scoinst install; do
2820      for ac_exec_ext in '' $ac_executable_extensions; do
2821	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2822	  if test $ac_prog = install &&
2823	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2824	    # AIX install.  It has an incompatible calling convention.
2825	    :
2826	  elif test $ac_prog = install &&
2827	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2828	    # program-specific install script used by HP pwplus--don't use.
2829	    :
2830	  else
2831	    rm -rf conftest.one conftest.two conftest.dir
2832	    echo one > conftest.one
2833	    echo two > conftest.two
2834	    mkdir conftest.dir
2835	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2836	      test -s conftest.one && test -s conftest.two &&
2837	      test -s conftest.dir/conftest.one &&
2838	      test -s conftest.dir/conftest.two
2839	    then
2840	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2841	      break 3
2842	    fi
2843	  fi
2844	fi
2845      done
2846    done
2847    ;;
2848esac
2849
2850  done
2851IFS=$as_save_IFS
2852
2853rm -rf conftest.one conftest.two conftest.dir
2854
2855fi
2856  if test "${ac_cv_path_install+set}" = set; then
2857    INSTALL=$ac_cv_path_install
2858  else
2859    # As a last resort, use the slow shell script.  Don't cache a
2860    # value for INSTALL within a source directory, because that will
2861    # break other packages using the cache if that directory is
2862    # removed, or if the value is a relative name.
2863    INSTALL=$ac_install_sh
2864  fi
2865fi
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2867$as_echo "$INSTALL" >&6; }
2868
2869# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2870# It thinks the first close brace ends the variable substitution.
2871test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2872
2873test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2874
2875test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2876
2877ac_ext=c
2878ac_cpp='$CPP $CPPFLAGS'
2879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882if test -n "$ac_tool_prefix"; then
2883  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886$as_echo_n "checking for $ac_word... " >&6; }
2887if ${ac_cv_prog_CC+:} false; then :
2888  $as_echo_n "(cached) " >&6
2889else
2890  if test -n "$CC"; then
2891  ac_cv_prog_CC="$CC" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896  IFS=$as_save_IFS
2897  test -z "$as_dir" && as_dir=.
2898    for ac_exec_ext in '' $ac_executable_extensions; do
2899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902    break 2
2903  fi
2904done
2905  done
2906IFS=$as_save_IFS
2907
2908fi
2909fi
2910CC=$ac_cv_prog_CC
2911if test -n "$CC"; then
2912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913$as_echo "$CC" >&6; }
2914else
2915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916$as_echo "no" >&6; }
2917fi
2918
2919
2920fi
2921if test -z "$ac_cv_prog_CC"; then
2922  ac_ct_CC=$CC
2923  # Extract the first word of "gcc", so it can be a program name with args.
2924set dummy gcc; ac_word=$2
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if ${ac_cv_prog_ac_ct_CC+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  if test -n "$ac_ct_CC"; then
2931  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940    ac_cv_prog_ac_ct_CC="gcc"
2941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951if test -n "$ac_ct_CC"; then
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953$as_echo "$ac_ct_CC" >&6; }
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959  if test "x$ac_ct_CC" = x; then
2960    CC=""
2961  else
2962    case $cross_compiling:$ac_tool_warned in
2963yes:)
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966ac_tool_warned=yes ;;
2967esac
2968    CC=$ac_ct_CC
2969  fi
2970else
2971  CC="$ac_cv_prog_CC"
2972fi
2973
2974if test -z "$CC"; then
2975          if test -n "$ac_tool_prefix"; then
2976    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2977set dummy ${ac_tool_prefix}cc; ac_word=$2
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979$as_echo_n "checking for $ac_word... " >&6; }
2980if ${ac_cv_prog_CC+:} false; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  if test -n "$CC"; then
2984  ac_cv_prog_CC="$CC" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993    ac_cv_prog_CC="${ac_tool_prefix}cc"
2994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003CC=$ac_cv_prog_CC
3004if test -n "$CC"; then
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006$as_echo "$CC" >&6; }
3007else
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009$as_echo "no" >&6; }
3010fi
3011
3012
3013  fi
3014fi
3015if test -z "$CC"; then
3016  # Extract the first word of "cc", so it can be a program name with args.
3017set dummy cc; ac_word=$2
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019$as_echo_n "checking for $ac_word... " >&6; }
3020if ${ac_cv_prog_CC+:} false; then :
3021  $as_echo_n "(cached) " >&6
3022else
3023  if test -n "$CC"; then
3024  ac_cv_prog_CC="$CC" # Let the user override the test.
3025else
3026  ac_prog_rejected=no
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030  IFS=$as_save_IFS
3031  test -z "$as_dir" && as_dir=.
3032    for ac_exec_ext in '' $ac_executable_extensions; do
3033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3035       ac_prog_rejected=yes
3036       continue
3037     fi
3038    ac_cv_prog_CC="cc"
3039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046if test $ac_prog_rejected = yes; then
3047  # We found a bogon in the path, so make sure we never use it.
3048  set dummy $ac_cv_prog_CC
3049  shift
3050  if test $# != 0; then
3051    # We chose a different compiler from the bogus one.
3052    # However, it has the same basename, so the bogon will be chosen
3053    # first if we set CC to just the basename; use the full file name.
3054    shift
3055    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3056  fi
3057fi
3058fi
3059fi
3060CC=$ac_cv_prog_CC
3061if test -n "$CC"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063$as_echo "$CC" >&6; }
3064else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066$as_echo "no" >&6; }
3067fi
3068
3069
3070fi
3071if test -z "$CC"; then
3072  if test -n "$ac_tool_prefix"; then
3073  for ac_prog in cl.exe
3074  do
3075    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if ${ac_cv_prog_CC+:} false; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  if test -n "$CC"; then
3083  ac_cv_prog_CC="$CC" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088  IFS=$as_save_IFS
3089  test -z "$as_dir" && as_dir=.
3090    for ac_exec_ext in '' $ac_executable_extensions; do
3091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094    break 2
3095  fi
3096done
3097  done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102CC=$ac_cv_prog_CC
3103if test -n "$CC"; then
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105$as_echo "$CC" >&6; }
3106else
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112    test -n "$CC" && break
3113  done
3114fi
3115if test -z "$CC"; then
3116  ac_ct_CC=$CC
3117  for ac_prog in cl.exe
3118do
3119  # Extract the first word of "$ac_prog", so it can be a program name with args.
3120set dummy $ac_prog; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test -n "$ac_ct_CC"; then
3127  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  test -z "$as_dir" && as_dir=.
3134    for ac_exec_ext in '' $ac_executable_extensions; do
3135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136    ac_cv_prog_ac_ct_CC="$ac_prog"
3137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138    break 2
3139  fi
3140done
3141  done
3142IFS=$as_save_IFS
3143
3144fi
3145fi
3146ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147if test -n "$ac_ct_CC"; then
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149$as_echo "$ac_ct_CC" >&6; }
3150else
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153fi
3154
3155
3156  test -n "$ac_ct_CC" && break
3157done
3158
3159  if test "x$ac_ct_CC" = x; then
3160    CC=""
3161  else
3162    case $cross_compiling:$ac_tool_warned in
3163yes:)
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166ac_tool_warned=yes ;;
3167esac
3168    CC=$ac_ct_CC
3169  fi
3170fi
3171
3172fi
3173
3174
3175test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177as_fn_error $? "no acceptable C compiler found in \$PATH
3178See \`config.log' for more details" "$LINENO" 5; }
3179
3180# Provide some information about the compiler.
3181$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3182set X $ac_compile
3183ac_compiler=$2
3184for ac_option in --version -v -V -qversion; do
3185  { { ac_try="$ac_compiler $ac_option >&5"
3186case "(($ac_try" in
3187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188  *) ac_try_echo=$ac_try;;
3189esac
3190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191$as_echo "$ac_try_echo"; } >&5
3192  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3193  ac_status=$?
3194  if test -s conftest.err; then
3195    sed '10a\
3196... rest of stderr output deleted ...
3197         10q' conftest.err >conftest.er1
3198    cat conftest.er1 >&5
3199  fi
3200  rm -f conftest.er1 conftest.err
3201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202  test $ac_status = 0; }
3203done
3204
3205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h.  */
3207
3208int
3209main ()
3210{
3211
3212  ;
3213  return 0;
3214}
3215_ACEOF
3216ac_clean_files_save=$ac_clean_files
3217ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3218# Try to create an executable without -o first, disregard a.out.
3219# It will help us diagnose broken compilers, and finding out an intuition
3220# of exeext.
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222$as_echo_n "checking whether the C compiler works... " >&6; }
3223ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3224
3225# The possible output files:
3226ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227
3228ac_rmfiles=
3229for ac_file in $ac_files
3230do
3231  case $ac_file in
3232    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3234  esac
3235done
3236rm -f $ac_rmfiles
3237
3238if { { ac_try="$ac_link_default"
3239case "(($ac_try" in
3240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241  *) ac_try_echo=$ac_try;;
3242esac
3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244$as_echo "$ac_try_echo"; } >&5
3245  (eval "$ac_link_default") 2>&5
3246  ac_status=$?
3247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }; then :
3249  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3250# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3251# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3252# so that the user can short-circuit this test for compilers unknown to
3253# Autoconf.
3254for ac_file in $ac_files ''
3255do
3256  test -f "$ac_file" || continue
3257  case $ac_file in
3258    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3259	;;
3260    [ab].out )
3261	# We found the default executable, but exeext='' is most
3262	# certainly right.
3263	break;;
3264    *.* )
3265	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3266	then :; else
3267	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268	fi
3269	# We set ac_cv_exeext here because the later test for it is not
3270	# safe: cross compilers may not add the suffix if given an `-o'
3271	# argument, so we may need to know it at that point already.
3272	# Even if this section looks crufty: it has the advantage of
3273	# actually working.
3274	break;;
3275    * )
3276	break;;
3277  esac
3278done
3279test "$ac_cv_exeext" = no && ac_cv_exeext=
3280
3281else
3282  ac_file=''
3283fi
3284if test -z "$ac_file"; then :
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287$as_echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292as_fn_error 77 "C compiler cannot create executables
3293See \`config.log' for more details" "$LINENO" 5; }
3294else
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296$as_echo "yes" >&6; }
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3299$as_echo_n "checking for C compiler default output file name... " >&6; }
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3301$as_echo "$ac_file" >&6; }
3302ac_exeext=$ac_cv_exeext
3303
3304rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3305ac_clean_files=$ac_clean_files_save
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3307$as_echo_n "checking for suffix of executables... " >&6; }
3308if { { ac_try="$ac_link"
3309case "(($ac_try" in
3310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311  *) ac_try_echo=$ac_try;;
3312esac
3313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314$as_echo "$ac_try_echo"; } >&5
3315  (eval "$ac_link") 2>&5
3316  ac_status=$?
3317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318  test $ac_status = 0; }; then :
3319  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3321# work properly (i.e., refer to `conftest.exe'), while it won't with
3322# `rm'.
3323for ac_file in conftest.exe conftest conftest.*; do
3324  test -f "$ac_file" || continue
3325  case $ac_file in
3326    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328	  break;;
3329    * ) break;;
3330  esac
3331done
3332else
3333  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3336See \`config.log' for more details" "$LINENO" 5; }
3337fi
3338rm -f conftest conftest$ac_cv_exeext
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340$as_echo "$ac_cv_exeext" >&6; }
3341
3342rm -f conftest.$ac_ext
3343EXEEXT=$ac_cv_exeext
3344ac_exeext=$EXEEXT
3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347#include <stdio.h>
3348int
3349main ()
3350{
3351FILE *f = fopen ("conftest.out", "w");
3352 return ferror (f) || fclose (f) != 0;
3353
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358ac_clean_files="$ac_clean_files conftest.out"
3359# Check that the compiler produces executables we can run.  If not, either
3360# the compiler is broken, or we cross compile.
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3362$as_echo_n "checking whether we are cross compiling... " >&6; }
3363if test "$cross_compiling" != yes; then
3364  { { ac_try="$ac_link"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371  (eval "$ac_link") 2>&5
3372  ac_status=$?
3373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374  test $ac_status = 0; }
3375  if { ac_try='./conftest$ac_cv_exeext'
3376  { { case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382  (eval "$ac_try") 2>&5
3383  ac_status=$?
3384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385  test $ac_status = 0; }; }; then
3386    cross_compiling=no
3387  else
3388    if test "$cross_compiling" = maybe; then
3389	cross_compiling=yes
3390    else
3391	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393as_fn_error $? "cannot run C compiled programs.
3394If you meant to cross compile, use \`--host'.
3395See \`config.log' for more details" "$LINENO" 5; }
3396    fi
3397  fi
3398fi
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3400$as_echo "$cross_compiling" >&6; }
3401
3402rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3403ac_clean_files=$ac_clean_files_save
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3405$as_echo_n "checking for suffix of object files... " >&6; }
3406if ${ac_cv_objext+:} false; then :
3407  $as_echo_n "(cached) " >&6
3408else
3409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420rm -f conftest.o conftest.obj
3421if { { ac_try="$ac_compile"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428  (eval "$ac_compile") 2>&5
3429  ac_status=$?
3430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431  test $ac_status = 0; }; then :
3432  for ac_file in conftest.o conftest.obj conftest.*; do
3433  test -f "$ac_file" || continue;
3434  case $ac_file in
3435    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437       break;;
3438  esac
3439done
3440else
3441  $as_echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
3444{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446as_fn_error $? "cannot compute suffix of object files: cannot compile
3447See \`config.log' for more details" "$LINENO" 5; }
3448fi
3449rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3452$as_echo "$ac_cv_objext" >&6; }
3453OBJEXT=$ac_cv_objext
3454ac_objext=$OBJEXT
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3456$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3457if ${ac_cv_c_compiler_gnu+:} false; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h.  */
3462
3463int
3464main ()
3465{
3466#ifndef __GNUC__
3467       choke me
3468#endif
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474if ac_fn_c_try_compile "$LINENO"; then :
3475  ac_compiler_gnu=yes
3476else
3477  ac_compiler_gnu=no
3478fi
3479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480ac_cv_c_compiler_gnu=$ac_compiler_gnu
3481
3482fi
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3484$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3485if test $ac_compiler_gnu = yes; then
3486  GCC=yes
3487else
3488  GCC=
3489fi
3490ac_test_CFLAGS=${CFLAGS+set}
3491ac_save_CFLAGS=$CFLAGS
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3493$as_echo_n "checking whether $CC accepts -g... " >&6; }
3494if ${ac_cv_prog_cc_g+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  ac_save_c_werror_flag=$ac_c_werror_flag
3498   ac_c_werror_flag=yes
3499   ac_cv_prog_cc_g=no
3500   CFLAGS="-g"
3501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503
3504int
3505main ()
3506{
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512if ac_fn_c_try_compile "$LINENO"; then :
3513  ac_cv_prog_cc_g=yes
3514else
3515  CFLAGS=""
3516      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518
3519int
3520main ()
3521{
3522
3523  ;
3524  return 0;
3525}
3526_ACEOF
3527if ac_fn_c_try_compile "$LINENO"; then :
3528
3529else
3530  ac_c_werror_flag=$ac_save_c_werror_flag
3531	 CFLAGS="-g"
3532	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534
3535int
3536main ()
3537{
3538
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543if ac_fn_c_try_compile "$LINENO"; then :
3544  ac_cv_prog_cc_g=yes
3545fi
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547fi
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549fi
3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551   ac_c_werror_flag=$ac_save_c_werror_flag
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3554$as_echo "$ac_cv_prog_cc_g" >&6; }
3555if test "$ac_test_CFLAGS" = set; then
3556  CFLAGS=$ac_save_CFLAGS
3557elif test $ac_cv_prog_cc_g = yes; then
3558  if test "$GCC" = yes; then
3559    CFLAGS="-g -O2"
3560  else
3561    CFLAGS="-g"
3562  fi
3563else
3564  if test "$GCC" = yes; then
3565    CFLAGS="-O2"
3566  else
3567    CFLAGS=
3568  fi
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3571$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3572if ${ac_cv_prog_cc_c89+:} false; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  ac_cv_prog_cc_c89=no
3576ac_save_CC=$CC
3577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579#include <stdarg.h>
3580#include <stdio.h>
3581struct stat;
3582/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3583struct buf { int x; };
3584FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585static char *e (p, i)
3586     char **p;
3587     int i;
3588{
3589  return p[i];
3590}
3591static char *f (char * (*g) (char **, int), char **p, ...)
3592{
3593  char *s;
3594  va_list v;
3595  va_start (v,p);
3596  s = g (p, va_arg (v,int));
3597  va_end (v);
3598  return s;
3599}
3600
3601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3602   function prototypes and stuff, but not '\xHH' hex character constants.
3603   These don't provoke an error unfortunately, instead are silently treated
3604   as 'x'.  The following induces an error, until -std is added to get
3605   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3606   array size at least.  It's necessary to write '\x00'==0 to get something
3607   that's true only with -std.  */
3608int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611   inside strings and character constants.  */
3612#define FOO(x) 'x'
3613int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614
3615int test (int i, double x);
3616struct s1 {int (*f) (int a);};
3617struct s2 {int (*f) (double a);};
3618int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619int argc;
3620char **argv;
3621int
3622main ()
3623{
3624return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631do
3632  CC="$ac_save_CC $ac_arg"
3633  if ac_fn_c_try_compile "$LINENO"; then :
3634  ac_cv_prog_cc_c89=$ac_arg
3635fi
3636rm -f core conftest.err conftest.$ac_objext
3637  test "x$ac_cv_prog_cc_c89" != "xno" && break
3638done
3639rm -f conftest.$ac_ext
3640CC=$ac_save_CC
3641
3642fi
3643# AC_CACHE_VAL
3644case "x$ac_cv_prog_cc_c89" in
3645  x)
3646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647$as_echo "none needed" >&6; } ;;
3648  xno)
3649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650$as_echo "unsupported" >&6; } ;;
3651  *)
3652    CC="$CC $ac_cv_prog_cc_c89"
3653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655esac
3656if test "x$ac_cv_prog_cc_c89" != xno; then :
3657
3658fi
3659
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666ac_ext=cpp
3667ac_cpp='$CXXCPP $CPPFLAGS'
3668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671if test -z "$CXX"; then
3672  if test -n "$CCC"; then
3673    CXX=$CCC
3674  else
3675    if test -n "$ac_tool_prefix"; then
3676  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3677  do
3678    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681$as_echo_n "checking for $ac_word... " >&6; }
3682if ${ac_cv_prog_CXX+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  if test -n "$CXX"; then
3686  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3687else
3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693    for ac_exec_ext in '' $ac_executable_extensions; do
3694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697    break 2
3698  fi
3699done
3700  done
3701IFS=$as_save_IFS
3702
3703fi
3704fi
3705CXX=$ac_cv_prog_CXX
3706if test -n "$CXX"; then
3707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3708$as_echo "$CXX" >&6; }
3709else
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711$as_echo "no" >&6; }
3712fi
3713
3714
3715    test -n "$CXX" && break
3716  done
3717fi
3718if test -z "$CXX"; then
3719  ac_ct_CXX=$CXX
3720  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3721do
3722  # Extract the first word of "$ac_prog", so it can be a program name with args.
3723set dummy $ac_prog; ac_word=$2
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725$as_echo_n "checking for $ac_word... " >&6; }
3726if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  if test -n "$ac_ct_CXX"; then
3730  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735  IFS=$as_save_IFS
3736  test -z "$as_dir" && as_dir=.
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739    ac_cv_prog_ac_ct_CXX="$ac_prog"
3740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741    break 2
3742  fi
3743done
3744  done
3745IFS=$as_save_IFS
3746
3747fi
3748fi
3749ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3750if test -n "$ac_ct_CXX"; then
3751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3752$as_echo "$ac_ct_CXX" >&6; }
3753else
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759  test -n "$ac_ct_CXX" && break
3760done
3761
3762  if test "x$ac_ct_CXX" = x; then
3763    CXX="g++"
3764  else
3765    case $cross_compiling:$ac_tool_warned in
3766yes:)
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769ac_tool_warned=yes ;;
3770esac
3771    CXX=$ac_ct_CXX
3772  fi
3773fi
3774
3775  fi
3776fi
3777# Provide some information about the compiler.
3778$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3779set X $ac_compile
3780ac_compiler=$2
3781for ac_option in --version -v -V -qversion; do
3782  { { ac_try="$ac_compiler $ac_option >&5"
3783case "(($ac_try" in
3784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785  *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788$as_echo "$ac_try_echo"; } >&5
3789  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3790  ac_status=$?
3791  if test -s conftest.err; then
3792    sed '10a\
3793... rest of stderr output deleted ...
3794         10q' conftest.err >conftest.er1
3795    cat conftest.er1 >&5
3796  fi
3797  rm -f conftest.er1 conftest.err
3798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799  test $ac_status = 0; }
3800done
3801
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3803$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3804if ${ac_cv_cxx_compiler_gnu+:} false; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h.  */
3809
3810int
3811main ()
3812{
3813#ifndef __GNUC__
3814       choke me
3815#endif
3816
3817  ;
3818  return 0;
3819}
3820_ACEOF
3821if ac_fn_cxx_try_compile "$LINENO"; then :
3822  ac_compiler_gnu=yes
3823else
3824  ac_compiler_gnu=no
3825fi
3826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3828
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3831$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3832if test $ac_compiler_gnu = yes; then
3833  GXX=yes
3834else
3835  GXX=
3836fi
3837ac_test_CXXFLAGS=${CXXFLAGS+set}
3838ac_save_CXXFLAGS=$CXXFLAGS
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3840$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3841if ${ac_cv_prog_cxx_g+:} false; then :
3842  $as_echo_n "(cached) " >&6
3843else
3844  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3845   ac_cxx_werror_flag=yes
3846   ac_cv_prog_cxx_g=no
3847   CXXFLAGS="-g"
3848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859if ac_fn_cxx_try_compile "$LINENO"; then :
3860  ac_cv_prog_cxx_g=yes
3861else
3862  CXXFLAGS=""
3863      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865
3866int
3867main ()
3868{
3869
3870  ;
3871  return 0;
3872}
3873_ACEOF
3874if ac_fn_cxx_try_compile "$LINENO"; then :
3875
3876else
3877  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3878	 CXXFLAGS="-g"
3879	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881
3882int
3883main ()
3884{
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890if ac_fn_cxx_try_compile "$LINENO"; then :
3891  ac_cv_prog_cxx_g=yes
3892fi
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894fi
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899fi
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3901$as_echo "$ac_cv_prog_cxx_g" >&6; }
3902if test "$ac_test_CXXFLAGS" = set; then
3903  CXXFLAGS=$ac_save_CXXFLAGS
3904elif test $ac_cv_prog_cxx_g = yes; then
3905  if test "$GXX" = yes; then
3906    CXXFLAGS="-g -O2"
3907  else
3908    CXXFLAGS="-g"
3909  fi
3910else
3911  if test "$GXX" = yes; then
3912    CXXFLAGS="-O2"
3913  else
3914    CXXFLAGS=
3915  fi
3916fi
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923if test -n "$ac_tool_prefix"; then
3924  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3925set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927$as_echo_n "checking for $ac_word... " >&6; }
3928if ${ac_cv_prog_RANLIB+:} false; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  if test -n "$RANLIB"; then
3932  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937  IFS=$as_save_IFS
3938  test -z "$as_dir" && as_dir=.
3939    for ac_exec_ext in '' $ac_executable_extensions; do
3940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943    break 2
3944  fi
3945done
3946  done
3947IFS=$as_save_IFS
3948
3949fi
3950fi
3951RANLIB=$ac_cv_prog_RANLIB
3952if test -n "$RANLIB"; then
3953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3954$as_echo "$RANLIB" >&6; }
3955else
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
3958fi
3959
3960
3961fi
3962if test -z "$ac_cv_prog_RANLIB"; then
3963  ac_ct_RANLIB=$RANLIB
3964  # Extract the first word of "ranlib", so it can be a program name with args.
3965set dummy ranlib; ac_word=$2
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967$as_echo_n "checking for $ac_word... " >&6; }
3968if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3969  $as_echo_n "(cached) " >&6
3970else
3971  if test -n "$ac_ct_RANLIB"; then
3972  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3973else
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977  IFS=$as_save_IFS
3978  test -z "$as_dir" && as_dir=.
3979    for ac_exec_ext in '' $ac_executable_extensions; do
3980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981    ac_cv_prog_ac_ct_RANLIB="ranlib"
3982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983    break 2
3984  fi
3985done
3986  done
3987IFS=$as_save_IFS
3988
3989fi
3990fi
3991ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3992if test -n "$ac_ct_RANLIB"; then
3993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3994$as_echo "$ac_ct_RANLIB" >&6; }
3995else
3996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
3998fi
3999
4000  if test "x$ac_ct_RANLIB" = x; then
4001    RANLIB=":"
4002  else
4003    case $cross_compiling:$ac_tool_warned in
4004yes:)
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007ac_tool_warned=yes ;;
4008esac
4009    RANLIB=$ac_ct_RANLIB
4010  fi
4011else
4012  RANLIB="$ac_cv_prog_RANLIB"
4013fi
4014
4015if test -n "$ac_tool_prefix"; then
4016  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4017set dummy ${ac_tool_prefix}ar; ac_word=$2
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019$as_echo_n "checking for $ac_word... " >&6; }
4020if ${ac_cv_prog_AR+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  if test -n "$AR"; then
4024  ac_cv_prog_AR="$AR" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029  IFS=$as_save_IFS
4030  test -z "$as_dir" && as_dir=.
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_AR="${ac_tool_prefix}ar"
4034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038  done
4039IFS=$as_save_IFS
4040
4041fi
4042fi
4043AR=$ac_cv_prog_AR
4044if test -n "$AR"; then
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4046$as_echo "$AR" >&6; }
4047else
4048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049$as_echo "no" >&6; }
4050fi
4051
4052
4053fi
4054if test -z "$ac_cv_prog_AR"; then
4055  ac_ct_AR=$AR
4056  # Extract the first word of "ar", so it can be a program name with args.
4057set dummy ar; ac_word=$2
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059$as_echo_n "checking for $ac_word... " >&6; }
4060if ${ac_cv_prog_ac_ct_AR+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  if test -n "$ac_ct_AR"; then
4064  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4065else
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071    for ac_exec_ext in '' $ac_executable_extensions; do
4072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073    ac_cv_prog_ac_ct_AR="ar"
4074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075    break 2
4076  fi
4077done
4078  done
4079IFS=$as_save_IFS
4080
4081fi
4082fi
4083ac_ct_AR=$ac_cv_prog_ac_ct_AR
4084if test -n "$ac_ct_AR"; then
4085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4086$as_echo "$ac_ct_AR" >&6; }
4087else
4088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
4090fi
4091
4092  if test "x$ac_ct_AR" = x; then
4093    AR=""
4094  else
4095    case $cross_compiling:$ac_tool_warned in
4096yes:)
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4099ac_tool_warned=yes ;;
4100esac
4101    AR=$ac_ct_AR
4102  fi
4103else
4104  AR="$ac_cv_prog_AR"
4105fi
4106
4107
4108
4109ac_ext=c
4110ac_cpp='$CPP $CPPFLAGS'
4111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4115$as_echo_n "checking how to run the C preprocessor... " >&6; }
4116# On Suns, sometimes $CPP names a directory.
4117if test -n "$CPP" && test -d "$CPP"; then
4118  CPP=
4119fi
4120if test -z "$CPP"; then
4121  if ${ac_cv_prog_CPP+:} false; then :
4122  $as_echo_n "(cached) " >&6
4123else
4124      # Double quotes because CPP needs to be expanded
4125    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4126    do
4127      ac_preproc_ok=false
4128for ac_c_preproc_warn_flag in '' yes
4129do
4130  # Use a header file that comes with gcc, so configuring glibc
4131  # with a fresh cross-compiler works.
4132  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133  # <limits.h> exists even on freestanding compilers.
4134  # On the NeXT, cc -E runs the code through the compiler's parser,
4135  # not just through cpp. "Syntax error" is here to catch this case.
4136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h.  */
4138#ifdef __STDC__
4139# include <limits.h>
4140#else
4141# include <assert.h>
4142#endif
4143		     Syntax error
4144_ACEOF
4145if ac_fn_c_try_cpp "$LINENO"; then :
4146
4147else
4148  # Broken: fails on valid input.
4149continue
4150fi
4151rm -f conftest.err conftest.i conftest.$ac_ext
4152
4153  # OK, works on sane cases.  Now check whether nonexistent headers
4154  # can be detected and how.
4155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h.  */
4157#include <ac_nonexistent.h>
4158_ACEOF
4159if ac_fn_c_try_cpp "$LINENO"; then :
4160  # Broken: success on invalid input.
4161continue
4162else
4163  # Passes both tests.
4164ac_preproc_ok=:
4165break
4166fi
4167rm -f conftest.err conftest.i conftest.$ac_ext
4168
4169done
4170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171rm -f conftest.i conftest.err conftest.$ac_ext
4172if $ac_preproc_ok; then :
4173  break
4174fi
4175
4176    done
4177    ac_cv_prog_CPP=$CPP
4178
4179fi
4180  CPP=$ac_cv_prog_CPP
4181else
4182  ac_cv_prog_CPP=$CPP
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4185$as_echo "$CPP" >&6; }
4186ac_preproc_ok=false
4187for ac_c_preproc_warn_flag in '' yes
4188do
4189  # Use a header file that comes with gcc, so configuring glibc
4190  # with a fresh cross-compiler works.
4191  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192  # <limits.h> exists even on freestanding compilers.
4193  # On the NeXT, cc -E runs the code through the compiler's parser,
4194  # not just through cpp. "Syntax error" is here to catch this case.
4195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h.  */
4197#ifdef __STDC__
4198# include <limits.h>
4199#else
4200# include <assert.h>
4201#endif
4202		     Syntax error
4203_ACEOF
4204if ac_fn_c_try_cpp "$LINENO"; then :
4205
4206else
4207  # Broken: fails on valid input.
4208continue
4209fi
4210rm -f conftest.err conftest.i conftest.$ac_ext
4211
4212  # OK, works on sane cases.  Now check whether nonexistent headers
4213  # can be detected and how.
4214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216#include <ac_nonexistent.h>
4217_ACEOF
4218if ac_fn_c_try_cpp "$LINENO"; then :
4219  # Broken: success on invalid input.
4220continue
4221else
4222  # Passes both tests.
4223ac_preproc_ok=:
4224break
4225fi
4226rm -f conftest.err conftest.i conftest.$ac_ext
4227
4228done
4229# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230rm -f conftest.i conftest.err conftest.$ac_ext
4231if $ac_preproc_ok; then :
4232
4233else
4234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4237See \`config.log' for more details" "$LINENO" 5; }
4238fi
4239
4240ac_ext=c
4241ac_cpp='$CPP $CPPFLAGS'
4242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4248$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4249if ${ac_cv_path_GREP+:} false; then :
4250  $as_echo_n "(cached) " >&6
4251else
4252  if test -z "$GREP"; then
4253  ac_path_GREP_found=false
4254  # Loop through the user's path and test for each of PROGNAME-LIST
4255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257do
4258  IFS=$as_save_IFS
4259  test -z "$as_dir" && as_dir=.
4260    for ac_prog in grep ggrep; do
4261    for ac_exec_ext in '' $ac_executable_extensions; do
4262      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4263      as_fn_executable_p "$ac_path_GREP" || continue
4264# Check for GNU ac_path_GREP and select it if it is found.
4265  # Check for GNU $ac_path_GREP
4266case `"$ac_path_GREP" --version 2>&1` in
4267*GNU*)
4268  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4269*)
4270  ac_count=0
4271  $as_echo_n 0123456789 >"conftest.in"
4272  while :
4273  do
4274    cat "conftest.in" "conftest.in" >"conftest.tmp"
4275    mv "conftest.tmp" "conftest.in"
4276    cp "conftest.in" "conftest.nl"
4277    $as_echo 'GREP' >> "conftest.nl"
4278    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280    as_fn_arith $ac_count + 1 && ac_count=$as_val
4281    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4282      # Best one so far, save it but keep looking for a better one
4283      ac_cv_path_GREP="$ac_path_GREP"
4284      ac_path_GREP_max=$ac_count
4285    fi
4286    # 10*(2^10) chars as input seems more than enough
4287    test $ac_count -gt 10 && break
4288  done
4289  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290esac
4291
4292      $ac_path_GREP_found && break 3
4293    done
4294  done
4295  done
4296IFS=$as_save_IFS
4297  if test -z "$ac_cv_path_GREP"; then
4298    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4299  fi
4300else
4301  ac_cv_path_GREP=$GREP
4302fi
4303
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4306$as_echo "$ac_cv_path_GREP" >&6; }
4307 GREP="$ac_cv_path_GREP"
4308
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4311$as_echo_n "checking for egrep... " >&6; }
4312if ${ac_cv_path_EGREP+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4316   then ac_cv_path_EGREP="$GREP -E"
4317   else
4318     if test -z "$EGREP"; then
4319  ac_path_EGREP_found=false
4320  # Loop through the user's path and test for each of PROGNAME-LIST
4321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323do
4324  IFS=$as_save_IFS
4325  test -z "$as_dir" && as_dir=.
4326    for ac_prog in egrep; do
4327    for ac_exec_ext in '' $ac_executable_extensions; do
4328      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4329      as_fn_executable_p "$ac_path_EGREP" || continue
4330# Check for GNU ac_path_EGREP and select it if it is found.
4331  # Check for GNU $ac_path_EGREP
4332case `"$ac_path_EGREP" --version 2>&1` in
4333*GNU*)
4334  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4335*)
4336  ac_count=0
4337  $as_echo_n 0123456789 >"conftest.in"
4338  while :
4339  do
4340    cat "conftest.in" "conftest.in" >"conftest.tmp"
4341    mv "conftest.tmp" "conftest.in"
4342    cp "conftest.in" "conftest.nl"
4343    $as_echo 'EGREP' >> "conftest.nl"
4344    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346    as_fn_arith $ac_count + 1 && ac_count=$as_val
4347    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4348      # Best one so far, save it but keep looking for a better one
4349      ac_cv_path_EGREP="$ac_path_EGREP"
4350      ac_path_EGREP_max=$ac_count
4351    fi
4352    # 10*(2^10) chars as input seems more than enough
4353    test $ac_count -gt 10 && break
4354  done
4355  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356esac
4357
4358      $ac_path_EGREP_found && break 3
4359    done
4360  done
4361  done
4362IFS=$as_save_IFS
4363  if test -z "$ac_cv_path_EGREP"; then
4364    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365  fi
4366else
4367  ac_cv_path_EGREP=$EGREP
4368fi
4369
4370   fi
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4373$as_echo "$ac_cv_path_EGREP" >&6; }
4374 EGREP="$ac_cv_path_EGREP"
4375
4376
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4378$as_echo_n "checking for ANSI C header files... " >&6; }
4379if ${ac_cv_header_stdc+:} false; then :
4380  $as_echo_n "(cached) " >&6
4381else
4382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h.  */
4384#include <stdlib.h>
4385#include <stdarg.h>
4386#include <string.h>
4387#include <float.h>
4388
4389int
4390main ()
4391{
4392
4393  ;
4394  return 0;
4395}
4396_ACEOF
4397if ac_fn_c_try_compile "$LINENO"; then :
4398  ac_cv_header_stdc=yes
4399else
4400  ac_cv_header_stdc=no
4401fi
4402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403
4404if test $ac_cv_header_stdc = yes; then
4405  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408#include <string.h>
4409
4410_ACEOF
4411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412  $EGREP "memchr" >/dev/null 2>&1; then :
4413
4414else
4415  ac_cv_header_stdc=no
4416fi
4417rm -f conftest*
4418
4419fi
4420
4421if test $ac_cv_header_stdc = yes; then
4422  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h.  */
4425#include <stdlib.h>
4426
4427_ACEOF
4428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429  $EGREP "free" >/dev/null 2>&1; then :
4430
4431else
4432  ac_cv_header_stdc=no
4433fi
4434rm -f conftest*
4435
4436fi
4437
4438if test $ac_cv_header_stdc = yes; then
4439  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4440  if test "$cross_compiling" = yes; then :
4441  :
4442else
4443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h.  */
4445#include <ctype.h>
4446#include <stdlib.h>
4447#if ((' ' & 0x0FF) == 0x020)
4448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4450#else
4451# define ISLOWER(c) \
4452		   (('a' <= (c) && (c) <= 'i') \
4453		     || ('j' <= (c) && (c) <= 'r') \
4454		     || ('s' <= (c) && (c) <= 'z'))
4455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456#endif
4457
4458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4459int
4460main ()
4461{
4462  int i;
4463  for (i = 0; i < 256; i++)
4464    if (XOR (islower (i), ISLOWER (i))
4465	|| toupper (i) != TOUPPER (i))
4466      return 2;
4467  return 0;
4468}
4469_ACEOF
4470if ac_fn_c_try_run "$LINENO"; then :
4471
4472else
4473  ac_cv_header_stdc=no
4474fi
4475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4476  conftest.$ac_objext conftest.beam conftest.$ac_ext
4477fi
4478
4479fi
4480fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4482$as_echo "$ac_cv_header_stdc" >&6; }
4483if test $ac_cv_header_stdc = yes; then
4484
4485$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4486
4487fi
4488
4489# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4490for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4491		  inttypes.h stdint.h unistd.h
4492do :
4493  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4494ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4495"
4496if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4497  cat >>confdefs.h <<_ACEOF
4498#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4499_ACEOF
4500
4501fi
4502
4503done
4504
4505
4506
4507  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4508if test "x$ac_cv_header_minix_config_h" = xyes; then :
4509  MINIX=yes
4510else
4511  MINIX=
4512fi
4513
4514
4515  if test "$MINIX" = yes; then
4516
4517$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4518
4519
4520$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4521
4522
4523$as_echo "#define _MINIX 1" >>confdefs.h
4524
4525  fi
4526
4527
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4529$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4530if ${ac_cv_safe_to_define___extensions__+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535
4536#         define __EXTENSIONS__ 1
4537          $ac_includes_default
4538int
4539main ()
4540{
4541
4542  ;
4543  return 0;
4544}
4545_ACEOF
4546if ac_fn_c_try_compile "$LINENO"; then :
4547  ac_cv_safe_to_define___extensions__=yes
4548else
4549  ac_cv_safe_to_define___extensions__=no
4550fi
4551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4554$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4555  test $ac_cv_safe_to_define___extensions__ = yes &&
4556    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4557
4558  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4559
4560  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4561
4562  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4563
4564  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4565
4566
4567# Check whether --enable-largefile was given.
4568if test "${enable_largefile+set}" = set; then :
4569  enableval=$enable_largefile;
4570fi
4571
4572if test "$enable_largefile" != no; then
4573
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4575$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4576if ${ac_cv_sys_largefile_CC+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  ac_cv_sys_largefile_CC=no
4580     if test "$GCC" != yes; then
4581       ac_save_CC=$CC
4582       while :; do
4583	 # IRIX 6.2 and later do not support large files by default,
4584	 # so use the C compiler's -n32 option if that helps.
4585	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h.  */
4587#include <sys/types.h>
4588 /* Check that off_t can represent 2**63 - 1 correctly.
4589    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4590    since some C++ compilers masquerading as C compilers
4591    incorrectly reject 9223372036854775807.  */
4592#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4593  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4594		       && LARGE_OFF_T % 2147483647 == 1)
4595		      ? 1 : -1];
4596int
4597main ()
4598{
4599
4600  ;
4601  return 0;
4602}
4603_ACEOF
4604	 if ac_fn_c_try_compile "$LINENO"; then :
4605  break
4606fi
4607rm -f core conftest.err conftest.$ac_objext
4608	 CC="$CC -n32"
4609	 if ac_fn_c_try_compile "$LINENO"; then :
4610  ac_cv_sys_largefile_CC=' -n32'; break
4611fi
4612rm -f core conftest.err conftest.$ac_objext
4613	 break
4614       done
4615       CC=$ac_save_CC
4616       rm -f conftest.$ac_ext
4617    fi
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4620$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4621  if test "$ac_cv_sys_largefile_CC" != no; then
4622    CC=$CC$ac_cv_sys_largefile_CC
4623  fi
4624
4625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4626$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4627if ${ac_cv_sys_file_offset_bits+:} false; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  while :; do
4631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h.  */
4633#include <sys/types.h>
4634 /* Check that off_t can represent 2**63 - 1 correctly.
4635    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4636    since some C++ compilers masquerading as C compilers
4637    incorrectly reject 9223372036854775807.  */
4638#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4639  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4640		       && LARGE_OFF_T % 2147483647 == 1)
4641		      ? 1 : -1];
4642int
4643main ()
4644{
4645
4646  ;
4647  return 0;
4648}
4649_ACEOF
4650if ac_fn_c_try_compile "$LINENO"; then :
4651  ac_cv_sys_file_offset_bits=no; break
4652fi
4653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656#define _FILE_OFFSET_BITS 64
4657#include <sys/types.h>
4658 /* Check that off_t can represent 2**63 - 1 correctly.
4659    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4660    since some C++ compilers masquerading as C compilers
4661    incorrectly reject 9223372036854775807.  */
4662#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4663  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4664		       && LARGE_OFF_T % 2147483647 == 1)
4665		      ? 1 : -1];
4666int
4667main ()
4668{
4669
4670  ;
4671  return 0;
4672}
4673_ACEOF
4674if ac_fn_c_try_compile "$LINENO"; then :
4675  ac_cv_sys_file_offset_bits=64; break
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678  ac_cv_sys_file_offset_bits=unknown
4679  break
4680done
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4683$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4684case $ac_cv_sys_file_offset_bits in #(
4685  no | unknown) ;;
4686  *)
4687cat >>confdefs.h <<_ACEOF
4688#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4689_ACEOF
4690;;
4691esac
4692rm -rf conftest*
4693  if test $ac_cv_sys_file_offset_bits = unknown; then
4694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4695$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4696if ${ac_cv_sys_large_files+:} false; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  while :; do
4700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h.  */
4702#include <sys/types.h>
4703 /* Check that off_t can represent 2**63 - 1 correctly.
4704    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4705    since some C++ compilers masquerading as C compilers
4706    incorrectly reject 9223372036854775807.  */
4707#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4708  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4709		       && LARGE_OFF_T % 2147483647 == 1)
4710		      ? 1 : -1];
4711int
4712main ()
4713{
4714
4715  ;
4716  return 0;
4717}
4718_ACEOF
4719if ac_fn_c_try_compile "$LINENO"; then :
4720  ac_cv_sys_large_files=no; break
4721fi
4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h.  */
4725#define _LARGE_FILES 1
4726#include <sys/types.h>
4727 /* Check that off_t can represent 2**63 - 1 correctly.
4728    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4729    since some C++ compilers masquerading as C compilers
4730    incorrectly reject 9223372036854775807.  */
4731#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4732  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4733		       && LARGE_OFF_T % 2147483647 == 1)
4734		      ? 1 : -1];
4735int
4736main ()
4737{
4738
4739  ;
4740  return 0;
4741}
4742_ACEOF
4743if ac_fn_c_try_compile "$LINENO"; then :
4744  ac_cv_sys_large_files=1; break
4745fi
4746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747  ac_cv_sys_large_files=unknown
4748  break
4749done
4750fi
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4752$as_echo "$ac_cv_sys_large_files" >&6; }
4753case $ac_cv_sys_large_files in #(
4754  no | unknown) ;;
4755  *)
4756cat >>confdefs.h <<_ACEOF
4757#define _LARGE_FILES $ac_cv_sys_large_files
4758_ACEOF
4759;;
4760esac
4761rm -rf conftest*
4762  fi
4763
4764
4765fi
4766
4767
4768MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4769for ac_prog in aclocal
4770do
4771  # Extract the first word of "$ac_prog", so it can be a program name with args.
4772set dummy $ac_prog; ac_word=$2
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774$as_echo_n "checking for $ac_word... " >&6; }
4775if ${ac_cv_prog_ACLOCAL+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  if test -n "$ACLOCAL"; then
4779  ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_exec_ext in '' $ac_executable_extensions; do
4787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788    ac_cv_prog_ACLOCAL="$ac_prog"
4789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790    break 2
4791  fi
4792done
4793  done
4794IFS=$as_save_IFS
4795
4796fi
4797fi
4798ACLOCAL=$ac_cv_prog_ACLOCAL
4799if test -n "$ACLOCAL"; then
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4801$as_echo "$ACLOCAL" >&6; }
4802else
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804$as_echo "no" >&6; }
4805fi
4806
4807
4808  test -n "$ACLOCAL" && break
4809done
4810test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4811
4812for ac_prog in autoconf
4813do
4814  # Extract the first word of "$ac_prog", so it can be a program name with args.
4815set dummy $ac_prog; ac_word=$2
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817$as_echo_n "checking for $ac_word... " >&6; }
4818if ${ac_cv_prog_AUTOCONF+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  if test -n "$AUTOCONF"; then
4822  ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4823else
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827  IFS=$as_save_IFS
4828  test -z "$as_dir" && as_dir=.
4829    for ac_exec_ext in '' $ac_executable_extensions; do
4830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831    ac_cv_prog_AUTOCONF="$ac_prog"
4832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833    break 2
4834  fi
4835done
4836  done
4837IFS=$as_save_IFS
4838
4839fi
4840fi
4841AUTOCONF=$ac_cv_prog_AUTOCONF
4842if test -n "$AUTOCONF"; then
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4844$as_echo "$AUTOCONF" >&6; }
4845else
4846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847$as_echo "no" >&6; }
4848fi
4849
4850
4851  test -n "$AUTOCONF" && break
4852done
4853test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4854
4855for ac_prog in autoheader
4856do
4857  # Extract the first word of "$ac_prog", so it can be a program name with args.
4858set dummy $ac_prog; ac_word=$2
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860$as_echo_n "checking for $ac_word... " >&6; }
4861if ${ac_cv_prog_AUTOHEADER+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  if test -n "$AUTOHEADER"; then
4865  ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870  IFS=$as_save_IFS
4871  test -z "$as_dir" && as_dir=.
4872    for ac_exec_ext in '' $ac_executable_extensions; do
4873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874    ac_cv_prog_AUTOHEADER="$ac_prog"
4875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876    break 2
4877  fi
4878done
4879  done
4880IFS=$as_save_IFS
4881
4882fi
4883fi
4884AUTOHEADER=$ac_cv_prog_AUTOHEADER
4885if test -n "$AUTOHEADER"; then
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4887$as_echo "$AUTOHEADER" >&6; }
4888else
4889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890$as_echo "no" >&6; }
4891fi
4892
4893
4894  test -n "$AUTOHEADER" && break
4895done
4896test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4897
4898
4899# Figure out what compiler warnings we can enable.
4900# See config/warnings.m4 for details.
4901
4902ac_ext=c
4903ac_cpp='$CPP $CPPFLAGS'
4904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907
4908warn=
4909save_CFLAGS="$CFLAGS"
4910for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4911			  -Wmissing-format-attribute; do
4912  # Do the check with the no- prefix removed since gcc silently
4913  # accepts any -Wno-* option on purpose
4914  case $real_option in
4915    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4916    *) option=$real_option ;;
4917  esac
4918  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4919
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4921$as_echo_n "checking whether $CC supports $option... " >&6; }
4922if eval \${$as_acx_Woption+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  CFLAGS="$option"
4926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928
4929int
4930main ()
4931{
4932
4933  ;
4934  return 0;
4935}
4936_ACEOF
4937if ac_fn_c_try_compile "$LINENO"; then :
4938  eval "$as_acx_Woption=yes"
4939else
4940  eval "$as_acx_Woption=no"
4941fi
4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943
4944fi
4945eval ac_res=\$$as_acx_Woption
4946	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4947$as_echo "$ac_res" >&6; }
4948  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4949  warn="$warn${warn:+ }$real_option"
4950fi
4951  done
4952CFLAGS="$save_CFLAGS"
4953ac_ext=c
4954ac_cpp='$CPP $CPPFLAGS'
4955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958
4959
4960ac_ext=c
4961ac_cpp='$CPP $CPPFLAGS'
4962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
4966c_warn=
4967save_CFLAGS="$CFLAGS"
4968for real_option in -Wstrict-prototypes -Wmissing-prototypes \
4969			  -Wold-style-definition -Wc++-compat; do
4970  # Do the check with the no- prefix removed since gcc silently
4971  # accepts any -Wno-* option on purpose
4972  case $real_option in
4973    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4974    *) option=$real_option ;;
4975  esac
4976  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4977
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4979$as_echo_n "checking whether $CC supports $option... " >&6; }
4980if eval \${$as_acx_Woption+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  CFLAGS="$option"
4984    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985/* end confdefs.h.  */
4986
4987int
4988main ()
4989{
4990
4991  ;
4992  return 0;
4993}
4994_ACEOF
4995if ac_fn_c_try_compile "$LINENO"; then :
4996  eval "$as_acx_Woption=yes"
4997else
4998  eval "$as_acx_Woption=no"
4999fi
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001
5002fi
5003eval ac_res=\$$as_acx_Woption
5004	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5005$as_echo "$ac_res" >&6; }
5006  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5007  c_warn="$c_warn${c_warn:+ }$real_option"
5008fi
5009  done
5010CFLAGS="$save_CFLAGS"
5011ac_ext=c
5012ac_cpp='$CPP $CPPFLAGS'
5013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016
5017
5018ac_ext=c
5019ac_cpp='$CPP $CPPFLAGS'
5020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023
5024WARN_PEDANTIC=
5025# Do the check with the no- prefix removed from the warning options
5026# since gcc silently accepts any -Wno-* option on purpose
5027if test "$GCC" = yes; then :
5028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5029$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5030if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  save_CFLAGS="$CFLAGS"
5034CFLAGS="-pedantic -Wlong-long"
5035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h.  */
5037
5038int
5039main ()
5040{
5041
5042  ;
5043  return 0;
5044}
5045_ACEOF
5046if ac_fn_c_try_compile "$LINENO"; then :
5047  acx_cv_prog_cc_pedantic__Wlong_long=yes
5048else
5049  acx_cv_prog_cc_pedantic__Wlong_long=no
5050fi
5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052CFLAGS="$save_CFLAGS"
5053fi
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5055$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5056if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5057  WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5058fi
5059
5060fi
5061ac_ext=c
5062ac_cpp='$CPP $CPPFLAGS'
5063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066
5067
5068
5069# Disable exceptions and RTTI if building with g++
5070ac_ext=c
5071ac_cpp='$CPP $CPPFLAGS'
5072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075
5076noexception_flags=
5077save_CFLAGS="$CFLAGS"
5078for real_option in -fno-exceptions -fno-rtti; do
5079  # Do the check with the no- prefix removed since gcc silently
5080  # accepts any -Wno-* option on purpose
5081  case $real_option in
5082    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5083    *) option=$real_option ;;
5084  esac
5085  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5086
5087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5088$as_echo_n "checking whether $CC supports $option... " >&6; }
5089if eval \${$as_acx_Woption+:} false; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092  CFLAGS="$option"
5093    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h.  */
5095
5096int
5097main ()
5098{
5099
5100  ;
5101  return 0;
5102}
5103_ACEOF
5104if ac_fn_c_try_compile "$LINENO"; then :
5105  eval "$as_acx_Woption=yes"
5106else
5107  eval "$as_acx_Woption=no"
5108fi
5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110
5111fi
5112eval ac_res=\$$as_acx_Woption
5113	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5114$as_echo "$ac_res" >&6; }
5115  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5116  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
5117fi
5118  done
5119CFLAGS="$save_CFLAGS"
5120ac_ext=c
5121ac_cpp='$CPP $CPPFLAGS'
5122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126
5127
5128# Only enable with --enable-werror-always until existing warnings are
5129# corrected.
5130ac_ext=c
5131ac_cpp='$CPP $CPPFLAGS'
5132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136WERROR=
5137# Check whether --enable-werror-always was given.
5138if test "${enable_werror_always+set}" = set; then :
5139  enableval=$enable_werror_always;
5140else
5141  enable_werror_always=no
5142fi
5143
5144if test $enable_werror_always = yes; then :
5145  WERROR="$WERROR${WERROR:+ }-Werror"
5146fi
5147
5148ac_ext=c
5149ac_cpp='$CPP $CPPFLAGS'
5150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154
5155
5156# Dependency checking.
5157rm -rf .tst 2>/dev/null
5158mkdir .tst 2>/dev/null
5159if test -d .tst; then
5160  am__leading_dot=.
5161else
5162  am__leading_dot=_
5163fi
5164rmdir .tst 2>/dev/null
5165
5166DEPDIR="${am__leading_dot}deps"
5167
5168ac_config_commands="$ac_config_commands depdir"
5169
5170
5171ac_ext=cpp
5172ac_cpp='$CXXCPP $CPPFLAGS'
5173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5176
5177
5178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180int i;
5181_ACEOF
5182if ac_fn_cxx_try_compile "$LINENO"; then :
5183
5184else
5185  as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188ac_ext=c
5189ac_cpp='$CPP $CPPFLAGS'
5190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194depcc="$CXX"  am_compiler_list=
5195
5196am_depcomp=$ac_aux_dir/depcomp
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5198$as_echo_n "checking dependency style of $depcc... " >&6; }
5199if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  if test -f "$am_depcomp"; then
5203  # We make a subdir and do the tests there.  Otherwise we can end up
5204  # making bogus files that we don't know about and never remove.  For
5205  # instance it was reported that on HP-UX the gcc test will end up
5206  # making a dummy file named `D' -- because `-MD' means `put the output
5207  # in D'.
5208  mkdir conftest.dir
5209  # Copy depcomp to subdir because otherwise we won't find it if we're
5210  # using a relative directory.
5211  cp "$am_depcomp" conftest.dir
5212  cd conftest.dir
5213  # We will build objects and dependencies in a subdirectory because
5214  # it helps to detect inapplicable dependency modes.  For instance
5215  # both Tru64's cc and ICC support -MD to output dependencies as a
5216  # side effect of compilation, but ICC will put the dependencies in
5217  # the current directory while Tru64 will put them in the object
5218  # directory.
5219  mkdir sub
5220
5221  am_cv_CXX_dependencies_compiler_type=none
5222  if test "$am_compiler_list" = ""; then
5223     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5224  fi
5225  for depmode in $am_compiler_list; do
5226    if test $depmode = none; then break; fi
5227
5228    $as_echo "$as_me:$LINENO: trying $depmode" >&5
5229    # Setup a source with many dependencies, because some compilers
5230    # like to wrap large dependency lists on column 80 (with \), and
5231    # we should not choose a depcomp mode which is confused by this.
5232    #
5233    # We need to recreate these files for each test, as the compiler may
5234    # overwrite some of them when testing with obscure command lines.
5235    # This happens at least with the AIX C compiler.
5236    : > sub/conftest.c
5237    for i in 1 2 3 4 5 6; do
5238      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5239      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5240      # Solaris 8's {/usr,}/bin/sh.
5241      touch sub/conftst$i.h
5242    done
5243    echo "include sub/conftest.Po" > confmf
5244
5245    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5246    # mode.  It turns out that the SunPro C++ compiler does not properly
5247    # handle `-M -o', and we need to detect this.
5248    depcmd="depmode=$depmode \
5249       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5250       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5251       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5252    echo "| $depcmd" | sed -e 's/  */ /g' >&5
5253    if env $depcmd > conftest.err 2>&1 &&
5254       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5255       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5256       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5257      # icc doesn't choke on unknown options, it will just issue warnings
5258      # or remarks (even with -Werror).  So we grep stderr for any message
5259      # that says an option was ignored or not supported.
5260      # When given -MP, icc 7.0 and 7.1 complain thusly:
5261      #   icc: Command line warning: ignoring option '-M'; no argument required
5262      # The diagnosis changed in icc 8.0:
5263      #   icc: Command line remark: option '-MP' not supported
5264      if (grep 'ignoring option' conftest.err ||
5265          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5266        am_cv_CXX_dependencies_compiler_type=$depmode
5267	$as_echo "$as_me:$LINENO: success" >&5
5268        break
5269      fi
5270    fi
5271    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5272    sed -e 's/^/| /' < conftest.err >&5
5273  done
5274
5275  cd ..
5276  rm -rf conftest.dir
5277else
5278  am_cv_CXX_dependencies_compiler_type=none
5279fi
5280
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5283$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5284if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5285then as_fn_error $? "no usable dependency style found" "$LINENO" 5
5286else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5287
5288fi
5289
5290
5291# Checks for header files.
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5293$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5294if ${ac_cv_header_time+:} false; then :
5295  $as_echo_n "(cached) " >&6
5296else
5297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h.  */
5299#include <sys/types.h>
5300#include <sys/time.h>
5301#include <time.h>
5302
5303int
5304main ()
5305{
5306if ((struct tm *) 0)
5307return 0;
5308  ;
5309  return 0;
5310}
5311_ACEOF
5312if ac_fn_c_try_compile "$LINENO"; then :
5313  ac_cv_header_time=yes
5314else
5315  ac_cv_header_time=no
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5320$as_echo "$ac_cv_header_time" >&6; }
5321if test $ac_cv_header_time = yes; then
5322
5323$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5324
5325fi
5326
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5328$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5329if ${gcc_cv_header_string+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334#include <string.h>
5335#include <strings.h>
5336int
5337main ()
5338{
5339
5340  ;
5341  return 0;
5342}
5343_ACEOF
5344if ac_fn_c_try_compile "$LINENO"; then :
5345  gcc_cv_header_string=yes
5346else
5347  gcc_cv_header_string=no
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350fi
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5352$as_echo "$gcc_cv_header_string" >&6; }
5353if test $gcc_cv_header_string = yes; then
5354
5355$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5356
5357fi
5358
5359
5360for ac_header in locale.h fcntl.h limits.h stddef.h \
5361	stdlib.h strings.h string.h sys/file.h unistd.h
5362do :
5363  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5365if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5366  cat >>confdefs.h <<_ACEOF
5367#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368_ACEOF
5369
5370fi
5371
5372done
5373
5374
5375# Checks for typedefs, structures, and compiler characteristics.
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5377$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5378if ${ac_cv_c_bigendian+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  ac_cv_c_bigendian=unknown
5382    # See if we're dealing with a universal compiler.
5383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h.  */
5385#ifndef __APPLE_CC__
5386	       not a universal capable compiler
5387	     #endif
5388	     typedef int dummy;
5389
5390_ACEOF
5391if ac_fn_c_try_compile "$LINENO"; then :
5392
5393	# Check for potential -arch flags.  It is not universal unless
5394	# there are at least two -arch flags with different values.
5395	ac_arch=
5396	ac_prev=
5397	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5398	 if test -n "$ac_prev"; then
5399	   case $ac_word in
5400	     i?86 | x86_64 | ppc | ppc64)
5401	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5402		 ac_arch=$ac_word
5403	       else
5404		 ac_cv_c_bigendian=universal
5405		 break
5406	       fi
5407	       ;;
5408	   esac
5409	   ac_prev=
5410	 elif test "x$ac_word" = "x-arch"; then
5411	   ac_prev=arch
5412	 fi
5413       done
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416    if test $ac_cv_c_bigendian = unknown; then
5417      # See if sys/param.h defines the BYTE_ORDER macro.
5418      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h.  */
5420#include <sys/types.h>
5421	     #include <sys/param.h>
5422
5423int
5424main ()
5425{
5426#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5427		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5428		     && LITTLE_ENDIAN)
5429	      bogus endian macros
5430	     #endif
5431
5432  ;
5433  return 0;
5434}
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"; then :
5437  # It does; now see whether it defined to BIG_ENDIAN or not.
5438	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440#include <sys/types.h>
5441		#include <sys/param.h>
5442
5443int
5444main ()
5445{
5446#if BYTE_ORDER != BIG_ENDIAN
5447		 not big endian
5448		#endif
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454if ac_fn_c_try_compile "$LINENO"; then :
5455  ac_cv_c_bigendian=yes
5456else
5457  ac_cv_c_bigendian=no
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460fi
5461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462    fi
5463    if test $ac_cv_c_bigendian = unknown; then
5464      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5465      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h.  */
5467#include <limits.h>
5468
5469int
5470main ()
5471{
5472#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5473	      bogus endian macros
5474	     #endif
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_compile "$LINENO"; then :
5481  # It does; now see whether it defined to _BIG_ENDIAN or not.
5482	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483/* end confdefs.h.  */
5484#include <limits.h>
5485
5486int
5487main ()
5488{
5489#ifndef _BIG_ENDIAN
5490		 not big endian
5491		#endif
5492
5493  ;
5494  return 0;
5495}
5496_ACEOF
5497if ac_fn_c_try_compile "$LINENO"; then :
5498  ac_cv_c_bigendian=yes
5499else
5500  ac_cv_c_bigendian=no
5501fi
5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503fi
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505    fi
5506    if test $ac_cv_c_bigendian = unknown; then
5507      # Compile a test program.
5508      if test "$cross_compiling" = yes; then :
5509  # Try to guess by grepping values from an object file.
5510	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511/* end confdefs.h.  */
5512short int ascii_mm[] =
5513		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5514		short int ascii_ii[] =
5515		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5516		int use_ascii (int i) {
5517		  return ascii_mm[i] + ascii_ii[i];
5518		}
5519		short int ebcdic_ii[] =
5520		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5521		short int ebcdic_mm[] =
5522		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5523		int use_ebcdic (int i) {
5524		  return ebcdic_mm[i] + ebcdic_ii[i];
5525		}
5526		extern int foo;
5527
5528int
5529main ()
5530{
5531return use_ascii (foo) == use_ebcdic (foo);
5532  ;
5533  return 0;
5534}
5535_ACEOF
5536if ac_fn_c_try_compile "$LINENO"; then :
5537  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5538	      ac_cv_c_bigendian=yes
5539	    fi
5540	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5541	      if test "$ac_cv_c_bigendian" = unknown; then
5542		ac_cv_c_bigendian=no
5543	      else
5544		# finding both strings is unlikely to happen, but who knows?
5545		ac_cv_c_bigendian=unknown
5546	      fi
5547	    fi
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553$ac_includes_default
5554int
5555main ()
5556{
5557
5558	     /* Are we little or big endian?  From Harbison&Steele.  */
5559	     union
5560	     {
5561	       long int l;
5562	       char c[sizeof (long int)];
5563	     } u;
5564	     u.l = 1;
5565	     return u.c[sizeof (long int) - 1] == 1;
5566
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_run "$LINENO"; then :
5572  ac_cv_c_bigendian=no
5573else
5574  ac_cv_c_bigendian=yes
5575fi
5576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5577  conftest.$ac_objext conftest.beam conftest.$ac_ext
5578fi
5579
5580    fi
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5583$as_echo "$ac_cv_c_bigendian" >&6; }
5584 case $ac_cv_c_bigendian in #(
5585   yes)
5586     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5587;; #(
5588   no)
5589      ;; #(
5590   universal)
5591
5592$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5593
5594     ;; #(
5595   *)
5596     as_fn_error $? "unknown endianness
5597 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5598 esac
5599
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5601$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5602if ${ac_cv_c_const+:} false; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607
5608int
5609main ()
5610{
5611
5612#ifndef __cplusplus
5613  /* Ultrix mips cc rejects this sort of thing.  */
5614  typedef int charset[2];
5615  const charset cs = { 0, 0 };
5616  /* SunOS 4.1.1 cc rejects this.  */
5617  char const *const *pcpcc;
5618  char **ppc;
5619  /* NEC SVR4.0.2 mips cc rejects this.  */
5620  struct point {int x, y;};
5621  static struct point const zero = {0,0};
5622  /* AIX XL C 1.02.0.0 rejects this.
5623     It does not let you subtract one const X* pointer from another in
5624     an arm of an if-expression whose if-part is not a constant
5625     expression */
5626  const char *g = "string";
5627  pcpcc = &g + (g ? g-g : 0);
5628  /* HPUX 7.0 cc rejects these. */
5629  ++pcpcc;
5630  ppc = (char**) pcpcc;
5631  pcpcc = (char const *const *) ppc;
5632  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5633    char tx;
5634    char *t = &tx;
5635    char const *s = 0 ? (char *) 0 : (char const *) 0;
5636
5637    *t++ = 0;
5638    if (s) return 0;
5639  }
5640  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5641    int x[] = {25, 17};
5642    const int *foo = &x[0];
5643    ++foo;
5644  }
5645  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5646    typedef const int *iptr;
5647    iptr p = 0;
5648    ++p;
5649  }
5650  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5651       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5652    struct s { int j; const int *ap[3]; } bx;
5653    struct s *b = &bx; b->j = 5;
5654  }
5655  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5656    const int foo = 10;
5657    if (!foo) return 0;
5658  }
5659  return !cs[0] && !zero.x;
5660#endif
5661
5662  ;
5663  return 0;
5664}
5665_ACEOF
5666if ac_fn_c_try_compile "$LINENO"; then :
5667  ac_cv_c_const=yes
5668else
5669  ac_cv_c_const=no
5670fi
5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5674$as_echo "$ac_cv_c_const" >&6; }
5675if test $ac_cv_c_const = no; then
5676
5677$as_echo "#define const /**/" >>confdefs.h
5678
5679fi
5680
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5682$as_echo_n "checking for inline... " >&6; }
5683if ${ac_cv_c_inline+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  ac_cv_c_inline=no
5687for ac_kw in inline __inline__ __inline; do
5688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h.  */
5690#ifndef __cplusplus
5691typedef int foo_t;
5692static $ac_kw foo_t static_foo () {return 0; }
5693$ac_kw foo_t foo () {return 0; }
5694#endif
5695
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then :
5698  ac_cv_c_inline=$ac_kw
5699fi
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701  test "$ac_cv_c_inline" != no && break
5702done
5703
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5706$as_echo "$ac_cv_c_inline" >&6; }
5707
5708case $ac_cv_c_inline in
5709  inline | yes) ;;
5710  *)
5711    case $ac_cv_c_inline in
5712      no) ac_val=;;
5713      *) ac_val=$ac_cv_c_inline;;
5714    esac
5715    cat >>confdefs.h <<_ACEOF
5716#ifndef __cplusplus
5717#define inline $ac_val
5718#endif
5719_ACEOF
5720    ;;
5721esac
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5724$as_echo_n "checking for obstacks... " >&6; }
5725if ${ac_cv_func_obstack+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h.  */
5730$ac_includes_default
5731		      #include "obstack.h"
5732int
5733main ()
5734{
5735struct obstack mem;
5736		       #define obstack_chunk_alloc malloc
5737		       #define obstack_chunk_free free
5738		       obstack_init (&mem);
5739		       obstack_free (&mem, 0);
5740  ;
5741  return 0;
5742}
5743_ACEOF
5744if ac_fn_c_try_link "$LINENO"; then :
5745  ac_cv_func_obstack=yes
5746else
5747  ac_cv_func_obstack=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext \
5750    conftest$ac_exeext conftest.$ac_ext
5751fi
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5753$as_echo "$ac_cv_func_obstack" >&6; }
5754if test $ac_cv_func_obstack = yes; then
5755
5756$as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5757
5758else
5759  case " $LIBOBJS " in
5760  *" obstack.$ac_objext "* ) ;;
5761  *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5762 ;;
5763esac
5764
5765fi
5766
5767ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5768if test "x$ac_cv_type_off_t" = xyes; then :
5769
5770else
5771
5772cat >>confdefs.h <<_ACEOF
5773#define off_t long int
5774_ACEOF
5775
5776fi
5777
5778ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5779if test "x$ac_cv_type_size_t" = xyes; then :
5780
5781else
5782
5783cat >>confdefs.h <<_ACEOF
5784#define size_t unsigned int
5785_ACEOF
5786
5787fi
5788
5789ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5790if test "x$ac_cv_type_ssize_t" = xyes; then :
5791
5792else
5793
5794cat >>confdefs.h <<_ACEOF
5795#define ssize_t int
5796_ACEOF
5797
5798fi
5799
5800
5801  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5802if test "x$ac_cv_type_uintptr_t" = xyes; then :
5803
5804$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5805
5806else
5807  for ac_type in 'unsigned int' 'unsigned long int' \
5808	'unsigned long long int'; do
5809       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810/* end confdefs.h.  */
5811$ac_includes_default
5812int
5813main ()
5814{
5815static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5816test_array [0] = 0;
5817return test_array [0];
5818
5819  ;
5820  return 0;
5821}
5822_ACEOF
5823if ac_fn_c_try_compile "$LINENO"; then :
5824
5825cat >>confdefs.h <<_ACEOF
5826#define uintptr_t $ac_type
5827_ACEOF
5828
5829	  ac_type=
5830fi
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832       test -z "$ac_type" && break
5833     done
5834fi
5835
5836
5837ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5838if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
5839
5840else
5841
5842cat >>confdefs.h <<_ACEOF
5843#define ptrdiff_t int
5844_ACEOF
5845
5846fi
5847
5848ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5849case $ac_cv_c_uint64_t in #(
5850  no|yes) ;; #(
5851  *)
5852
5853$as_echo "#define _UINT64_T 1" >>confdefs.h
5854
5855
5856cat >>confdefs.h <<_ACEOF
5857#define uint64_t $ac_cv_c_uint64_t
5858_ACEOF
5859;;
5860  esac
5861
5862if test x"$ac_cv_c_uint64_t" = x"no"; then
5863  as_fn_error $? "uint64_t not found" "$LINENO" 5
5864fi
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5866$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5867if ${ac_cv_struct_tm+:} false; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h.  */
5872#include <sys/types.h>
5873#include <time.h>
5874
5875int
5876main ()
5877{
5878struct tm tm;
5879				     int *p = &tm.tm_sec;
5880				     return !p;
5881  ;
5882  return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886  ac_cv_struct_tm=time.h
5887else
5888  ac_cv_struct_tm=sys/time.h
5889fi
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891fi
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5893$as_echo "$ac_cv_struct_tm" >&6; }
5894if test $ac_cv_struct_tm = sys/time.h; then
5895
5896$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5897
5898fi
5899
5900# The cast to long int works around a bug in the HP C Compiler
5901# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5902# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5903# This bug is HP SR number 8606223364.
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5905$as_echo_n "checking size of int... " >&6; }
5906if ${ac_cv_sizeof_int+:} false; then :
5907  $as_echo_n "(cached) " >&6
5908else
5909  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5910
5911else
5912  if test "$ac_cv_type_int" = yes; then
5913     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915as_fn_error 77 "cannot compute sizeof (int)
5916See \`config.log' for more details" "$LINENO" 5; }
5917   else
5918     ac_cv_sizeof_int=0
5919   fi
5920fi
5921
5922fi
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5924$as_echo "$ac_cv_sizeof_int" >&6; }
5925
5926
5927
5928cat >>confdefs.h <<_ACEOF
5929#define SIZEOF_INT $ac_cv_sizeof_int
5930_ACEOF
5931
5932
5933# The cast to long int works around a bug in the HP C Compiler
5934# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5935# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5936# This bug is HP SR number 8606223364.
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5938$as_echo_n "checking size of long... " >&6; }
5939if ${ac_cv_sizeof_long+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5943
5944else
5945  if test "$ac_cv_type_long" = yes; then
5946     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948as_fn_error 77 "cannot compute sizeof (long)
5949See \`config.log' for more details" "$LINENO" 5; }
5950   else
5951     ac_cv_sizeof_long=0
5952   fi
5953fi
5954
5955fi
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5957$as_echo "$ac_cv_sizeof_long" >&6; }
5958
5959
5960
5961cat >>confdefs.h <<_ACEOF
5962#define SIZEOF_LONG $ac_cv_sizeof_long
5963_ACEOF
5964
5965
5966
5967for ac_func in clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
5968do :
5969  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5971if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5972  cat >>confdefs.h <<_ACEOF
5973#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5974_ACEOF
5975
5976fi
5977done
5978
5979ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5980if test "x$ac_cv_have_decl_abort" = xyes; then :
5981  ac_have_decl=1
5982else
5983  ac_have_decl=0
5984fi
5985
5986cat >>confdefs.h <<_ACEOF
5987#define HAVE_DECL_ABORT $ac_have_decl
5988_ACEOF
5989ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5990if test "x$ac_cv_have_decl_asprintf" = xyes; then :
5991  ac_have_decl=1
5992else
5993  ac_have_decl=0
5994fi
5995
5996cat >>confdefs.h <<_ACEOF
5997#define HAVE_DECL_ASPRINTF $ac_have_decl
5998_ACEOF
5999as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6000ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6001if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
6002  ac_have_decl=1
6003else
6004  ac_have_decl=0
6005fi
6006
6007cat >>confdefs.h <<_ACEOF
6008#define HAVE_DECL_BASENAME $ac_have_decl
6009_ACEOF
6010ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6011if test "x$ac_cv_have_decl_errno" = xyes; then :
6012  ac_have_decl=1
6013else
6014  ac_have_decl=0
6015fi
6016
6017cat >>confdefs.h <<_ACEOF
6018#define HAVE_DECL_ERRNO $ac_have_decl
6019_ACEOF
6020ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6021if test "x$ac_cv_have_decl_getopt" = xyes; then :
6022  ac_have_decl=1
6023else
6024  ac_have_decl=0
6025fi
6026
6027cat >>confdefs.h <<_ACEOF
6028#define HAVE_DECL_GETOPT $ac_have_decl
6029_ACEOF
6030ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6031if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
6032  ac_have_decl=1
6033else
6034  ac_have_decl=0
6035fi
6036
6037cat >>confdefs.h <<_ACEOF
6038#define HAVE_DECL_VASPRINTF $ac_have_decl
6039_ACEOF
6040
6041ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6042if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
6043  ac_have_decl=1
6044else
6045  ac_have_decl=0
6046fi
6047
6048cat >>confdefs.h <<_ACEOF
6049#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6050_ACEOF
6051ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6052if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
6053  ac_have_decl=1
6054else
6055  ac_have_decl=0
6056fi
6057
6058cat >>confdefs.h <<_ACEOF
6059#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6060_ACEOF
6061ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6062if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
6063  ac_have_decl=1
6064else
6065  ac_have_decl=0
6066fi
6067
6068cat >>confdefs.h <<_ACEOF
6069#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6070_ACEOF
6071ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6072if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
6073  ac_have_decl=1
6074else
6075  ac_have_decl=0
6076fi
6077
6078cat >>confdefs.h <<_ACEOF
6079#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6080_ACEOF
6081ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6082if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then :
6083  ac_have_decl=1
6084else
6085  ac_have_decl=0
6086fi
6087
6088cat >>confdefs.h <<_ACEOF
6089#define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6090_ACEOF
6091ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6092if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
6093  ac_have_decl=1
6094else
6095  ac_have_decl=0
6096fi
6097
6098cat >>confdefs.h <<_ACEOF
6099#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6100_ACEOF
6101ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6102if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then :
6103  ac_have_decl=1
6104else
6105  ac_have_decl=0
6106fi
6107
6108cat >>confdefs.h <<_ACEOF
6109#define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6110_ACEOF
6111ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6112if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then :
6113  ac_have_decl=1
6114else
6115  ac_have_decl=0
6116fi
6117
6118cat >>confdefs.h <<_ACEOF
6119#define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6120_ACEOF
6121ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6122if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
6123  ac_have_decl=1
6124else
6125  ac_have_decl=0
6126fi
6127
6128cat >>confdefs.h <<_ACEOF
6129#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6130_ACEOF
6131ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6132if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
6133  ac_have_decl=1
6134else
6135  ac_have_decl=0
6136fi
6137
6138cat >>confdefs.h <<_ACEOF
6139#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6140_ACEOF
6141ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6142if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
6143  ac_have_decl=1
6144else
6145  ac_have_decl=0
6146fi
6147
6148cat >>confdefs.h <<_ACEOF
6149#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6150_ACEOF
6151ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6152if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
6153  ac_have_decl=1
6154else
6155  ac_have_decl=0
6156fi
6157
6158cat >>confdefs.h <<_ACEOF
6159#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6160_ACEOF
6161ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6162if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
6163  ac_have_decl=1
6164else
6165  ac_have_decl=0
6166fi
6167
6168cat >>confdefs.h <<_ACEOF
6169#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6170_ACEOF
6171ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6172if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6173  ac_have_decl=1
6174else
6175  ac_have_decl=0
6176fi
6177
6178cat >>confdefs.h <<_ACEOF
6179#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6180_ACEOF
6181ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6182if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
6183  ac_have_decl=1
6184else
6185  ac_have_decl=0
6186fi
6187
6188cat >>confdefs.h <<_ACEOF
6189#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6190_ACEOF
6191ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6192if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
6193  ac_have_decl=1
6194else
6195  ac_have_decl=0
6196fi
6197
6198cat >>confdefs.h <<_ACEOF
6199#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6200_ACEOF
6201
6202
6203# Checks for library functions.
6204# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6205# for constant arguments.  Useless!
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6207$as_echo_n "checking for working alloca.h... " >&6; }
6208if ${ac_cv_working_alloca_h+:} false; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h.  */
6213#include <alloca.h>
6214int
6215main ()
6216{
6217char *p = (char *) alloca (2 * sizeof (int));
6218			  if (p) return 0;
6219  ;
6220  return 0;
6221}
6222_ACEOF
6223if ac_fn_c_try_link "$LINENO"; then :
6224  ac_cv_working_alloca_h=yes
6225else
6226  ac_cv_working_alloca_h=no
6227fi
6228rm -f core conftest.err conftest.$ac_objext \
6229    conftest$ac_exeext conftest.$ac_ext
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6232$as_echo "$ac_cv_working_alloca_h" >&6; }
6233if test $ac_cv_working_alloca_h = yes; then
6234
6235$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6236
6237fi
6238
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6240$as_echo_n "checking for alloca... " >&6; }
6241if ${ac_cv_func_alloca_works+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245/* end confdefs.h.  */
6246#ifdef __GNUC__
6247# define alloca __builtin_alloca
6248#else
6249# ifdef _MSC_VER
6250#  include <malloc.h>
6251#  define alloca _alloca
6252# else
6253#  ifdef HAVE_ALLOCA_H
6254#   include <alloca.h>
6255#  else
6256#   ifdef _AIX
6257 #pragma alloca
6258#   else
6259#    ifndef alloca /* predefined by HP cc +Olibcalls */
6260void *alloca (size_t);
6261#    endif
6262#   endif
6263#  endif
6264# endif
6265#endif
6266
6267int
6268main ()
6269{
6270char *p = (char *) alloca (1);
6271				    if (p) return 0;
6272  ;
6273  return 0;
6274}
6275_ACEOF
6276if ac_fn_c_try_link "$LINENO"; then :
6277  ac_cv_func_alloca_works=yes
6278else
6279  ac_cv_func_alloca_works=no
6280fi
6281rm -f core conftest.err conftest.$ac_objext \
6282    conftest$ac_exeext conftest.$ac_ext
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6285$as_echo "$ac_cv_func_alloca_works" >&6; }
6286
6287if test $ac_cv_func_alloca_works = yes; then
6288
6289$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6290
6291else
6292  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6293# that cause trouble.  Some versions do not even contain alloca or
6294# contain a buggy version.  If you still want to use their alloca,
6295# use ar to extract alloca.o from them instead of compiling alloca.c.
6296
6297ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6298
6299$as_echo "#define C_ALLOCA 1" >>confdefs.h
6300
6301
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6303$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6304if ${ac_cv_os_cray+:} false; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308/* end confdefs.h.  */
6309#if defined CRAY && ! defined CRAY2
6310webecray
6311#else
6312wenotbecray
6313#endif
6314
6315_ACEOF
6316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317  $EGREP "webecray" >/dev/null 2>&1; then :
6318  ac_cv_os_cray=yes
6319else
6320  ac_cv_os_cray=no
6321fi
6322rm -f conftest*
6323
6324fi
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6326$as_echo "$ac_cv_os_cray" >&6; }
6327if test $ac_cv_os_cray = yes; then
6328  for ac_func in _getb67 GETB67 getb67; do
6329    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6331if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6332
6333cat >>confdefs.h <<_ACEOF
6334#define CRAY_STACKSEG_END $ac_func
6335_ACEOF
6336
6337    break
6338fi
6339
6340  done
6341fi
6342
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6344$as_echo_n "checking stack direction for C alloca... " >&6; }
6345if ${ac_cv_c_stack_direction+:} false; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348  if test "$cross_compiling" = yes; then :
6349  ac_cv_c_stack_direction=0
6350else
6351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h.  */
6353$ac_includes_default
6354int
6355find_stack_direction (int *addr, int depth)
6356{
6357  int dir, dummy = 0;
6358  if (! addr)
6359    addr = &dummy;
6360  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6361  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6362  return dir + dummy;
6363}
6364
6365int
6366main (int argc, char **argv)
6367{
6368  return find_stack_direction (0, argc + !argv + 20) < 0;
6369}
6370_ACEOF
6371if ac_fn_c_try_run "$LINENO"; then :
6372  ac_cv_c_stack_direction=1
6373else
6374  ac_cv_c_stack_direction=-1
6375fi
6376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6377  conftest.$ac_objext conftest.beam conftest.$ac_ext
6378fi
6379
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6382$as_echo "$ac_cv_c_stack_direction" >&6; }
6383cat >>confdefs.h <<_ACEOF
6384#define STACK_DIRECTION $ac_cv_c_stack_direction
6385_ACEOF
6386
6387
6388fi
6389
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6391$as_echo_n "checking for ANSI C header files... " >&6; }
6392if ${ac_cv_header_stdc+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397#include <stdlib.h>
6398#include <stdarg.h>
6399#include <string.h>
6400#include <float.h>
6401
6402int
6403main ()
6404{
6405
6406  ;
6407  return 0;
6408}
6409_ACEOF
6410if ac_fn_c_try_compile "$LINENO"; then :
6411  ac_cv_header_stdc=yes
6412else
6413  ac_cv_header_stdc=no
6414fi
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416
6417if test $ac_cv_header_stdc = yes; then
6418  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421#include <string.h>
6422
6423_ACEOF
6424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425  $EGREP "memchr" >/dev/null 2>&1; then :
6426
6427else
6428  ac_cv_header_stdc=no
6429fi
6430rm -f conftest*
6431
6432fi
6433
6434if test $ac_cv_header_stdc = yes; then
6435  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h.  */
6438#include <stdlib.h>
6439
6440_ACEOF
6441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442  $EGREP "free" >/dev/null 2>&1; then :
6443
6444else
6445  ac_cv_header_stdc=no
6446fi
6447rm -f conftest*
6448
6449fi
6450
6451if test $ac_cv_header_stdc = yes; then
6452  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6453  if test "$cross_compiling" = yes; then :
6454  :
6455else
6456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h.  */
6458#include <ctype.h>
6459#include <stdlib.h>
6460#if ((' ' & 0x0FF) == 0x020)
6461# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6462# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6463#else
6464# define ISLOWER(c) \
6465		   (('a' <= (c) && (c) <= 'i') \
6466		     || ('j' <= (c) && (c) <= 'r') \
6467		     || ('s' <= (c) && (c) <= 'z'))
6468# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6469#endif
6470
6471#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6472int
6473main ()
6474{
6475  int i;
6476  for (i = 0; i < 256; i++)
6477    if (XOR (islower (i), ISLOWER (i))
6478	|| toupper (i) != TOUPPER (i))
6479      return 2;
6480  return 0;
6481}
6482_ACEOF
6483if ac_fn_c_try_run "$LINENO"; then :
6484
6485else
6486  ac_cv_header_stdc=no
6487fi
6488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6489  conftest.$ac_objext conftest.beam conftest.$ac_ext
6490fi
6491
6492fi
6493fi
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6495$as_echo "$ac_cv_header_stdc" >&6; }
6496if test $ac_cv_header_stdc = yes; then
6497
6498$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6499
6500fi
6501
6502
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6504$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6505if ${am_cv_langinfo_codeset+:} false; then :
6506  $as_echo_n "(cached) " >&6
6507else
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510#include <langinfo.h>
6511int
6512main ()
6513{
6514char* cs = nl_langinfo(CODESET);
6515  ;
6516  return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_link "$LINENO"; then :
6520  am_cv_langinfo_codeset=yes
6521else
6522  am_cv_langinfo_codeset=no
6523fi
6524rm -f core conftest.err conftest.$ac_objext \
6525    conftest$ac_exeext conftest.$ac_ext
6526
6527fi
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6529$as_echo "$am_cv_langinfo_codeset" >&6; }
6530  if test $am_cv_langinfo_codeset = yes; then
6531
6532$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6533
6534  fi
6535
6536# If we haven't got the data from the intl directory,
6537# assume NLS is disabled.
6538USE_NLS=no
6539LIBINTL=
6540LIBINTL_DEP=
6541INCINTL=
6542XGETTEXT=
6543GMSGFMT=
6544POSUB=
6545
6546if test -f  ../intl/config.intl; then
6547  .  ../intl/config.intl
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6550$as_echo_n "checking whether NLS is requested... " >&6; }
6551if test x"$USE_NLS" != xyes; then
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553$as_echo "no" >&6; }
6554else
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556$as_echo "yes" >&6; }
6557
6558$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6559
6560
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6562$as_echo_n "checking for catalogs to be installed... " >&6; }
6563  # Look for .po and .gmo files in the source directory.
6564  CATALOGS=
6565  XLINGUAS=
6566  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6567    # If there aren't any .gmo files the shell will give us the
6568    # literal string "../path/to/srcdir/po/*.gmo" which has to be
6569    # weeded out.
6570    case "$cat" in *\**)
6571      continue;;
6572    esac
6573    # The quadruple backslash is collapsed to a double backslash
6574    # by the backticks, then collapsed again by the double quotes,
6575    # leaving us with one backslash in the sed expression (right
6576    # before the dot that mustn't act as a wildcard).
6577    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6578    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6579    # The user is allowed to set LINGUAS to a list of languages to
6580    # install catalogs for.  If it's empty that means "all of them."
6581    if test "x$LINGUAS" = x; then
6582      CATALOGS="$CATALOGS $cat"
6583      XLINGUAS="$XLINGUAS $lang"
6584    else
6585      case "$LINGUAS" in *$lang*)
6586        CATALOGS="$CATALOGS $cat"
6587        XLINGUAS="$XLINGUAS $lang"
6588        ;;
6589      esac
6590    fi
6591  done
6592  LINGUAS="$XLINGUAS"
6593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6594$as_echo "$LINGUAS" >&6; }
6595
6596
6597    DATADIRNAME=share
6598
6599  INSTOBJEXT=.mo
6600
6601  GENCAT=gencat
6602
6603  CATOBJEXT=.gmo
6604
6605fi
6606
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6608$as_echo_n "checking for uchar... " >&6; }
6609if ${gcc_cv_type_uchar+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h.  */
6614
6615#include <sys/types.h>
6616
6617int
6618main ()
6619{
6620if ((uchar *)0) return 0;
6621 if (sizeof(uchar)) return 0;
6622  ;
6623  return 0;
6624}
6625_ACEOF
6626if ac_fn_c_try_compile "$LINENO"; then :
6627  ac_cv_type_uchar=yes
6628else
6629  ac_cv_type_uchar=no
6630fi
6631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632fi
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6634$as_echo "$gcc_cv_type_uchar" >&6; }
6635if test $ac_cv_type_uchar = yes; then
6636
6637$as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6638
6639fi
6640
6641# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6642# iconv() prototype.
6643ac_ext=cpp
6644ac_cpp='$CXXCPP $CPPFLAGS'
6645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6648
6649
6650      if test "X$prefix" = "XNONE"; then
6651    acl_final_prefix="$ac_default_prefix"
6652  else
6653    acl_final_prefix="$prefix"
6654  fi
6655  if test "X$exec_prefix" = "XNONE"; then
6656    acl_final_exec_prefix='${prefix}'
6657  else
6658    acl_final_exec_prefix="$exec_prefix"
6659  fi
6660  acl_save_prefix="$prefix"
6661  prefix="$acl_final_prefix"
6662  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6663  prefix="$acl_save_prefix"
6664
6665
6666# Check whether --with-gnu-ld was given.
6667if test "${with_gnu_ld+set}" = set; then :
6668  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6669else
6670  with_gnu_ld=no
6671fi
6672
6673# Prepare PATH_SEPARATOR.
6674# The user is always right.
6675if test "${PATH_SEPARATOR+set}" != set; then
6676  echo "#! /bin/sh" >conf$$.sh
6677  echo  "exit 0"   >>conf$$.sh
6678  chmod +x conf$$.sh
6679  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6680    PATH_SEPARATOR=';'
6681  else
6682    PATH_SEPARATOR=:
6683  fi
6684  rm -f conf$$.sh
6685fi
6686ac_prog=ld
6687if test "$GCC" = yes; then
6688  # Check if gcc -print-prog-name=ld gives a path.
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6690$as_echo_n "checking for ld used by GCC... " >&6; }
6691  case $host in
6692  *-*-mingw*)
6693    # gcc leaves a trailing carriage return which upsets mingw
6694    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6695  *)
6696    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6697  esac
6698  case $ac_prog in
6699    # Accept absolute paths.
6700    [\\/]* | [A-Za-z]:[\\/]*)
6701      re_direlt='/[^/][^/]*/\.\./'
6702      # Canonicalize the path of ld
6703      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6704      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6705	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6706      done
6707      test -z "$LD" && LD="$ac_prog"
6708      ;;
6709  "")
6710    # If it fails, then pretend we aren't using GCC.
6711    ac_prog=ld
6712    ;;
6713  *)
6714    # If it is relative, then search for the first ld in PATH.
6715    with_gnu_ld=unknown
6716    ;;
6717  esac
6718elif test "$with_gnu_ld" = yes; then
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6720$as_echo_n "checking for GNU ld... " >&6; }
6721else
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6723$as_echo_n "checking for non-GNU ld... " >&6; }
6724fi
6725if ${acl_cv_path_LD+:} false; then :
6726  $as_echo_n "(cached) " >&6
6727else
6728  if test -z "$LD"; then
6729  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6730  for ac_dir in $PATH; do
6731    test -z "$ac_dir" && ac_dir=.
6732    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6733      acl_cv_path_LD="$ac_dir/$ac_prog"
6734      # Check to see if the program is GNU ld.  I'd rather use --version,
6735      # but apparently some GNU ld's only accept -v.
6736      # Break only if it was the GNU/non-GNU ld that we prefer.
6737      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6738	test "$with_gnu_ld" != no && break
6739      else
6740	test "$with_gnu_ld" != yes && break
6741      fi
6742    fi
6743  done
6744  IFS="$ac_save_ifs"
6745else
6746  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6747fi
6748fi
6749
6750LD="$acl_cv_path_LD"
6751if test -n "$LD"; then
6752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6753$as_echo "$LD" >&6; }
6754else
6755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756$as_echo "no" >&6; }
6757fi
6758test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6760$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6761if ${acl_cv_prog_gnu_ld+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6765if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6766  acl_cv_prog_gnu_ld=yes
6767else
6768  acl_cv_prog_gnu_ld=no
6769fi
6770fi
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6772$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6773with_gnu_ld=$acl_cv_prog_gnu_ld
6774
6775
6776
6777                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6778$as_echo_n "checking for shared library run path origin... " >&6; }
6779if ${acl_cv_rpath+:} false; then :
6780  $as_echo_n "(cached) " >&6
6781else
6782
6783    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6784    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6785    . ./conftest.sh
6786    rm -f ./conftest.sh
6787    acl_cv_rpath=done
6788
6789fi
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6791$as_echo "$acl_cv_rpath" >&6; }
6792  wl="$acl_cv_wl"
6793  libext="$acl_cv_libext"
6794  shlibext="$acl_cv_shlibext"
6795  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6796  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6797  hardcode_direct="$acl_cv_hardcode_direct"
6798  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6799    # Check whether --enable-rpath was given.
6800if test "${enable_rpath+set}" = set; then :
6801  enableval=$enable_rpath; :
6802else
6803  enable_rpath=yes
6804fi
6805
6806
6807
6808
6809
6810
6811
6812
6813    use_additional=yes
6814
6815  acl_save_prefix="$prefix"
6816  prefix="$acl_final_prefix"
6817  acl_save_exec_prefix="$exec_prefix"
6818  exec_prefix="$acl_final_exec_prefix"
6819
6820    eval additional_includedir=\"$includedir\"
6821    eval additional_libdir=\"$libdir\"
6822
6823  exec_prefix="$acl_save_exec_prefix"
6824  prefix="$acl_save_prefix"
6825
6826
6827# Check whether --with-libiconv-prefix was given.
6828if test "${with_libiconv_prefix+set}" = set; then :
6829  withval=$with_libiconv_prefix;
6830    if test "X$withval" = "Xno"; then
6831      use_additional=no
6832    else
6833      if test "X$withval" = "X"; then
6834
6835  acl_save_prefix="$prefix"
6836  prefix="$acl_final_prefix"
6837  acl_save_exec_prefix="$exec_prefix"
6838  exec_prefix="$acl_final_exec_prefix"
6839
6840          eval additional_includedir=\"$includedir\"
6841          eval additional_libdir=\"$libdir\"
6842
6843  exec_prefix="$acl_save_exec_prefix"
6844  prefix="$acl_save_prefix"
6845
6846      else
6847        additional_includedir="$withval/include"
6848        additional_libdir="$withval/lib"
6849      fi
6850    fi
6851
6852fi
6853
6854
6855# Check whether --with-libiconv-type was given.
6856if test "${with_libiconv_type+set}" = set; then :
6857  withval=$with_libiconv_type;  with_libiconv_type=$withval
6858else
6859   with_libiconv_type=auto
6860fi
6861
6862  lib_type=`eval echo \$with_libiconv_type`
6863
6864      LIBICONV=
6865  LTLIBICONV=
6866  INCICONV=
6867  rpathdirs=
6868  ltrpathdirs=
6869  names_already_handled=
6870  names_next_round='iconv '
6871  while test -n "$names_next_round"; do
6872    names_this_round="$names_next_round"
6873    names_next_round=
6874    for name in $names_this_round; do
6875      already_handled=
6876      for n in $names_already_handled; do
6877        if test "$n" = "$name"; then
6878          already_handled=yes
6879          break
6880        fi
6881      done
6882      if test -z "$already_handled"; then
6883        names_already_handled="$names_already_handled $name"
6884                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6885        eval value=\"\$HAVE_LIB$uppername\"
6886        if test -n "$value"; then
6887          if test "$value" = yes; then
6888            eval value=\"\$LIB$uppername\"
6889            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6890            eval value=\"\$LTLIB$uppername\"
6891            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6892          else
6893                                    :
6894          fi
6895        else
6896                              found_dir=
6897          found_la=
6898          found_so=
6899          found_a=
6900          if test $use_additional = yes; then
6901            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6902              found_dir="$additional_libdir"
6903              found_so="$additional_libdir/lib$name.$shlibext"
6904              if test -f "$additional_libdir/lib$name.la"; then
6905                found_la="$additional_libdir/lib$name.la"
6906              fi
6907            elif test x$lib_type != xshared; then
6908              if test -f "$additional_libdir/lib$name.$libext"; then
6909                found_dir="$additional_libdir"
6910                found_a="$additional_libdir/lib$name.$libext"
6911                if test -f "$additional_libdir/lib$name.la"; then
6912                  found_la="$additional_libdir/lib$name.la"
6913                fi
6914              fi
6915            fi
6916          fi
6917          if test "X$found_dir" = "X"; then
6918            for x in $LDFLAGS $LTLIBICONV; do
6919
6920  acl_save_prefix="$prefix"
6921  prefix="$acl_final_prefix"
6922  acl_save_exec_prefix="$exec_prefix"
6923  exec_prefix="$acl_final_exec_prefix"
6924  eval x=\"$x\"
6925  exec_prefix="$acl_save_exec_prefix"
6926  prefix="$acl_save_prefix"
6927
6928              case "$x" in
6929                -L*)
6930                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6931                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6932                    found_dir="$dir"
6933                    found_so="$dir/lib$name.$shlibext"
6934                    if test -f "$dir/lib$name.la"; then
6935                      found_la="$dir/lib$name.la"
6936                    fi
6937                  elif test x$lib_type != xshared; then
6938                    if test -f "$dir/lib$name.$libext"; then
6939                      found_dir="$dir"
6940                      found_a="$dir/lib$name.$libext"
6941                      if test -f "$dir/lib$name.la"; then
6942                        found_la="$dir/lib$name.la"
6943                      fi
6944                    fi
6945                  fi
6946                  ;;
6947              esac
6948              if test "X$found_dir" != "X"; then
6949                break
6950              fi
6951            done
6952          fi
6953          if test "X$found_dir" != "X"; then
6954                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6955            if test "X$found_so" != "X"; then
6956                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6957                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6958              else
6959                                                                                haveit=
6960                for x in $ltrpathdirs; do
6961                  if test "X$x" = "X$found_dir"; then
6962                    haveit=yes
6963                    break
6964                  fi
6965                done
6966                if test -z "$haveit"; then
6967                  ltrpathdirs="$ltrpathdirs $found_dir"
6968                fi
6969                                if test "$hardcode_direct" = yes; then
6970                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6971                else
6972                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6973                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6974                                                            haveit=
6975                    for x in $rpathdirs; do
6976                      if test "X$x" = "X$found_dir"; then
6977                        haveit=yes
6978                        break
6979                      fi
6980                    done
6981                    if test -z "$haveit"; then
6982                      rpathdirs="$rpathdirs $found_dir"
6983                    fi
6984                  else
6985                                                                                haveit=
6986                    for x in $LDFLAGS $LIBICONV; do
6987
6988  acl_save_prefix="$prefix"
6989  prefix="$acl_final_prefix"
6990  acl_save_exec_prefix="$exec_prefix"
6991  exec_prefix="$acl_final_exec_prefix"
6992  eval x=\"$x\"
6993  exec_prefix="$acl_save_exec_prefix"
6994  prefix="$acl_save_prefix"
6995
6996                      if test "X$x" = "X-L$found_dir"; then
6997                        haveit=yes
6998                        break
6999                      fi
7000                    done
7001                    if test -z "$haveit"; then
7002                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7003                    fi
7004                    if test "$hardcode_minus_L" != no; then
7005                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7006                    else
7007                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7008                    fi
7009                  fi
7010                fi
7011              fi
7012            else
7013              if test "X$found_a" != "X"; then
7014                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7015              else
7016                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7017              fi
7018            fi
7019                        additional_includedir=
7020            case "$found_dir" in
7021              */lib | */lib/)
7022                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7023                additional_includedir="$basedir/include"
7024                ;;
7025            esac
7026            if test "X$additional_includedir" != "X"; then
7027                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7028                haveit=
7029                if test "X$additional_includedir" = "X/usr/local/include"; then
7030                  if test -n "$GCC"; then
7031                    case $host_os in
7032                      linux*) haveit=yes;;
7033                    esac
7034                  fi
7035                fi
7036                if test -z "$haveit"; then
7037                  for x in $CPPFLAGS $INCICONV; do
7038
7039  acl_save_prefix="$prefix"
7040  prefix="$acl_final_prefix"
7041  acl_save_exec_prefix="$exec_prefix"
7042  exec_prefix="$acl_final_exec_prefix"
7043  eval x=\"$x\"
7044  exec_prefix="$acl_save_exec_prefix"
7045  prefix="$acl_save_prefix"
7046
7047                    if test "X$x" = "X-I$additional_includedir"; then
7048                      haveit=yes
7049                      break
7050                    fi
7051                  done
7052                  if test -z "$haveit"; then
7053                    if test -d "$additional_includedir"; then
7054                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7055                    fi
7056                  fi
7057                fi
7058              fi
7059            fi
7060                        if test -n "$found_la"; then
7061                                                        save_libdir="$libdir"
7062              case "$found_la" in
7063                */* | *\\*) . "$found_la" ;;
7064                *) . "./$found_la" ;;
7065              esac
7066              libdir="$save_libdir"
7067                            for dep in $dependency_libs; do
7068                case "$dep" in
7069                  -L*)
7070                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7071                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7072                      haveit=
7073                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7074                        if test -n "$GCC"; then
7075                          case $host_os in
7076                            linux*) haveit=yes;;
7077                          esac
7078                        fi
7079                      fi
7080                      if test -z "$haveit"; then
7081                        haveit=
7082                        for x in $LDFLAGS $LIBICONV; do
7083
7084  acl_save_prefix="$prefix"
7085  prefix="$acl_final_prefix"
7086  acl_save_exec_prefix="$exec_prefix"
7087  exec_prefix="$acl_final_exec_prefix"
7088  eval x=\"$x\"
7089  exec_prefix="$acl_save_exec_prefix"
7090  prefix="$acl_save_prefix"
7091
7092                          if test "X$x" = "X-L$additional_libdir"; then
7093                            haveit=yes
7094                            break
7095                          fi
7096                        done
7097                        if test -z "$haveit"; then
7098                          if test -d "$additional_libdir"; then
7099                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7100                          fi
7101                        fi
7102                        haveit=
7103                        for x in $LDFLAGS $LTLIBICONV; do
7104
7105  acl_save_prefix="$prefix"
7106  prefix="$acl_final_prefix"
7107  acl_save_exec_prefix="$exec_prefix"
7108  exec_prefix="$acl_final_exec_prefix"
7109  eval x=\"$x\"
7110  exec_prefix="$acl_save_exec_prefix"
7111  prefix="$acl_save_prefix"
7112
7113                          if test "X$x" = "X-L$additional_libdir"; then
7114                            haveit=yes
7115                            break
7116                          fi
7117                        done
7118                        if test -z "$haveit"; then
7119                          if test -d "$additional_libdir"; then
7120                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7121                          fi
7122                        fi
7123                      fi
7124                    fi
7125                    ;;
7126                  -R*)
7127                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7128                    if test "$enable_rpath" != no; then
7129                                                                  haveit=
7130                      for x in $rpathdirs; do
7131                        if test "X$x" = "X$dir"; then
7132                          haveit=yes
7133                          break
7134                        fi
7135                      done
7136                      if test -z "$haveit"; then
7137                        rpathdirs="$rpathdirs $dir"
7138                      fi
7139                                                                  haveit=
7140                      for x in $ltrpathdirs; do
7141                        if test "X$x" = "X$dir"; then
7142                          haveit=yes
7143                          break
7144                        fi
7145                      done
7146                      if test -z "$haveit"; then
7147                        ltrpathdirs="$ltrpathdirs $dir"
7148                      fi
7149                    fi
7150                    ;;
7151                  -l*)
7152                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7153                    ;;
7154                  *.la)
7155                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7156                    ;;
7157                  *)
7158                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7159                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7160                    ;;
7161                esac
7162              done
7163            fi
7164          else
7165                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7166              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7167              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7168            else
7169              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7170              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7171            fi
7172          fi
7173        fi
7174      fi
7175    done
7176  done
7177  if test "X$rpathdirs" != "X"; then
7178    if test -n "$hardcode_libdir_separator"; then
7179                        alldirs=
7180      for found_dir in $rpathdirs; do
7181        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7182      done
7183            acl_save_libdir="$libdir"
7184      libdir="$alldirs"
7185      eval flag=\"$hardcode_libdir_flag_spec\"
7186      libdir="$acl_save_libdir"
7187      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7188    else
7189            for found_dir in $rpathdirs; do
7190        acl_save_libdir="$libdir"
7191        libdir="$found_dir"
7192        eval flag=\"$hardcode_libdir_flag_spec\"
7193        libdir="$acl_save_libdir"
7194        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7195      done
7196    fi
7197  fi
7198  if test "X$ltrpathdirs" != "X"; then
7199            for found_dir in $ltrpathdirs; do
7200      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7201    done
7202  fi
7203
7204
7205
7206
7207
7208
7209
7210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7211$as_echo_n "checking for iconv... " >&6; }
7212if ${am_cv_func_iconv+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215
7216    am_cv_func_iconv="no, consider installing GNU libiconv"
7217    am_cv_lib_iconv=no
7218                    am_save_CPPFLAGS="$CPPFLAGS"
7219    CPPFLAGS="$CPPFLAGS $INCICONV"
7220    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h.  */
7222#include <stdlib.h>
7223#include <iconv.h>
7224int
7225main ()
7226{
7227iconv_t cd = iconv_open("","");
7228       iconv(cd,NULL,NULL,NULL,NULL);
7229       iconv_close(cd);
7230  ;
7231  return 0;
7232}
7233_ACEOF
7234if ac_fn_cxx_try_link "$LINENO"; then :
7235  am_cv_func_iconv=yes
7236fi
7237rm -f core conftest.err conftest.$ac_objext \
7238    conftest$ac_exeext conftest.$ac_ext
7239    CPPFLAGS="$am_save_CPPFLAGS"
7240
7241    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7242      for _libs in .libs _libs; do
7243        am_save_CPPFLAGS="$CPPFLAGS"
7244        am_save_LIBS="$LIBS"
7245        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7246        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7247        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249#include <stdlib.h>
7250#include <iconv.h>
7251int
7252main ()
7253{
7254iconv_t cd = iconv_open("","");
7255           iconv(cd,NULL,NULL,NULL,NULL);
7256           iconv_close(cd);
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_cxx_try_link "$LINENO"; then :
7262  INCICONV="-I../libiconv/include"
7263          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7264          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7265          am_cv_lib_iconv=yes
7266          am_cv_func_iconv=yes
7267fi
7268rm -f core conftest.err conftest.$ac_objext \
7269    conftest$ac_exeext conftest.$ac_ext
7270        CPPFLAGS="$am_save_CPPFLAGS"
7271        LIBS="$am_save_LIBS"
7272        if test "$am_cv_func_iconv" = "yes"; then
7273          break
7274        fi
7275      done
7276    fi
7277
7278    if test "$am_cv_func_iconv" != yes; then
7279      am_save_CPPFLAGS="$CPPFLAGS"
7280      am_save_LIBS="$LIBS"
7281      CPPFLAGS="$CPPFLAGS $INCICONV"
7282      LIBS="$LIBS $LIBICONV"
7283      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h.  */
7285#include <stdlib.h>
7286#include <iconv.h>
7287int
7288main ()
7289{
7290iconv_t cd = iconv_open("","");
7291         iconv(cd,NULL,NULL,NULL,NULL);
7292         iconv_close(cd);
7293  ;
7294  return 0;
7295}
7296_ACEOF
7297if ac_fn_cxx_try_link "$LINENO"; then :
7298  am_cv_lib_iconv=yes
7299        am_cv_func_iconv=yes
7300fi
7301rm -f core conftest.err conftest.$ac_objext \
7302    conftest$ac_exeext conftest.$ac_ext
7303      CPPFLAGS="$am_save_CPPFLAGS"
7304      LIBS="$am_save_LIBS"
7305    fi
7306
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7309$as_echo "$am_cv_func_iconv" >&6; }
7310  if test "$am_cv_func_iconv" = yes; then
7311
7312$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7313
7314  fi
7315  if test "$am_cv_lib_iconv" = yes; then
7316
7317  for element in $INCICONV; do
7318    haveit=
7319    for x in $CPPFLAGS; do
7320
7321  acl_save_prefix="$prefix"
7322  prefix="$acl_final_prefix"
7323  acl_save_exec_prefix="$exec_prefix"
7324  exec_prefix="$acl_final_exec_prefix"
7325  eval x=\"$x\"
7326  exec_prefix="$acl_save_exec_prefix"
7327  prefix="$acl_save_prefix"
7328
7329      if test "X$x" = "X$element"; then
7330        haveit=yes
7331        break
7332      fi
7333    done
7334    if test -z "$haveit"; then
7335      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7336    fi
7337  done
7338
7339    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7340$as_echo_n "checking how to link with libiconv... " >&6; }
7341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7342$as_echo "$LIBICONV" >&6; }
7343  else
7344    LIBICONV=
7345    LTLIBICONV=
7346  fi
7347
7348
7349
7350  if test "$am_cv_func_iconv" = yes; then
7351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7352$as_echo_n "checking for iconv declaration... " >&6; }
7353    if ${am_cv_proto_iconv+:} false; then :
7354  $as_echo_n "(cached) " >&6
7355else
7356
7357      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358/* end confdefs.h.  */
7359
7360#include <stdlib.h>
7361#include <iconv.h>
7362extern
7363#ifdef __cplusplus
7364"C"
7365#endif
7366#if defined(__STDC__) || defined(__cplusplus)
7367size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7368#else
7369size_t iconv();
7370#endif
7371
7372int
7373main ()
7374{
7375
7376  ;
7377  return 0;
7378}
7379_ACEOF
7380if ac_fn_cxx_try_compile "$LINENO"; then :
7381  am_cv_proto_iconv_arg1=""
7382else
7383  am_cv_proto_iconv_arg1="const"
7384fi
7385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7387fi
7388
7389    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7391         }$am_cv_proto_iconv" >&5
7392$as_echo "${ac_t:-
7393         }$am_cv_proto_iconv" >&6; }
7394
7395cat >>confdefs.h <<_ACEOF
7396#define ICONV_CONST $am_cv_proto_iconv_arg1
7397_ACEOF
7398
7399  fi
7400
7401ac_ext=c
7402ac_cpp='$CPP $CPPFLAGS'
7403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
7407
7408# More defines and substitutions.
7409PACKAGE="$PACKAGE_TARNAME"
7410
7411cat >>confdefs.h <<_ACEOF
7412#define PACKAGE "$PACKAGE"
7413_ACEOF
7414
7415
7416
7417if test "x$enable_nls" != xno; then
7418  USED_CATALOGS='$(CATALOGS)'
7419else
7420  USED_CATALOGS=
7421fi
7422
7423
7424# Check whether --enable-maintainer-mode was given.
7425if test "${enable_maintainer_mode+set}" = set; then :
7426  enableval=$enable_maintainer_mode;
7427else
7428  enable_maintainer_mode=no
7429fi
7430
7431
7432if test "x$enable_maintainer_mode" = xno; then
7433  MAINT='#'
7434else
7435  MAINT=
7436fi
7437
7438
7439# Enable expensive internal checks
7440is_release=
7441if test -f $srcdir/../gcc/DEV-PHASE \
7442   && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
7443  is_release=yes
7444fi
7445
7446# Check whether --enable-checking was given.
7447if test "${enable_checking+set}" = set; then :
7448  enableval=$enable_checking; ac_checking_flags="${enableval}"
7449else
7450
7451# Determine the default checks.
7452if test x$is_release = x ; then
7453  ac_checking_flags=yes
7454else
7455  ac_checking_flags=release
7456fi
7457fi
7458
7459IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
7460for check in release $ac_checking_flags
7461do
7462	case $check in
7463	# these set all the flags to specific states
7464	yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7465	no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;;
7466	release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7467	# these enable particular checks
7468	assert) ac_assert_checking=1 ;;
7469	misc) ac_checking=1 ;;
7470	valgrind) ac_valgrind_checking=1 ;;
7471	# accept
7472	*) ;;
7473	esac
7474done
7475IFS="$ac_save_IFS"
7476
7477if test x$ac_checking != x ; then
7478
7479$as_echo "#define CHECKING_P 1" >>confdefs.h
7480
7481else
7482  $as_echo "#define CHECKING_P 0" >>confdefs.h
7483
7484fi
7485
7486if test x$ac_assert_checking != x ; then
7487
7488$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7489
7490fi
7491
7492if test x$ac_valgrind_checking != x ; then
7493
7494$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7495
7496fi
7497
7498# Check whether --enable-canonical-system-headers was given.
7499if test "${enable_canonical_system_headers+set}" = set; then :
7500  enableval=$enable_canonical_system_headers;
7501else
7502  enable_canonical_system_headers=yes
7503fi
7504
7505if test $enable_canonical_system_headers != no; then
7506
7507$as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7508
7509fi
7510
7511case $target in
7512  i?86-* | x86_64-*)
7513    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515
7516int
7517main ()
7518{
7519asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7520  ;
7521  return 0;
7522}
7523_ACEOF
7524if ac_fn_c_try_compile "$LINENO"; then :
7525
7526$as_echo "#define HAVE_SSE4 1" >>confdefs.h
7527
7528fi
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530esac
7531
7532# Enable --enable-host-shared.
7533# Check whether --enable-host-shared was given.
7534if test "${enable_host_shared+set}" = set; then :
7535  enableval=$enable_host_shared; PICFLAG=-fPIC
7536else
7537  PICFLAG=
7538fi
7539
7540
7541
7542# Enable Intel CET on Intel CET enabled host if jit is enabled.
7543 # Check whether --enable-cet was given.
7544if test "${enable_cet+set}" = set; then :
7545  enableval=$enable_cet;
7546      case "$enableval" in
7547       yes|no|auto) ;;
7548       *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
7549                          esac
7550
7551else
7552  enable_cet=auto
7553fi
7554
7555
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
7557$as_echo_n "checking for CET support... " >&6; }
7558
7559case "$host" in
7560  i[34567]86-*-linux* | x86_64-*-linux*)
7561    may_have_cet=yes
7562    cet_save_CFLAGS="$CFLAGS"
7563    CFLAGS="$CFLAGS -fcf-protection"
7564    case "$enable_cet" in
7565      auto)
7566	# Check if target supports multi-byte NOPs
7567	# and if compiler and assembler support CET.
7568	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570
7571int
7572main ()
7573{
7574
7575#if !defined(__SSE2__)
7576#error target does not support multi-byte NOPs
7577#else
7578asm ("setssbsy");
7579#endif
7580
7581  ;
7582  return 0;
7583}
7584_ACEOF
7585if ac_fn_c_try_compile "$LINENO"; then :
7586  enable_cet=yes
7587else
7588  enable_cet=no
7589fi
7590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591	;;
7592      yes)
7593	# Check if compiler and assembler support CET.
7594	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h.  */
7596
7597int
7598main ()
7599{
7600asm ("setssbsy");
7601  ;
7602  return 0;
7603}
7604_ACEOF
7605if ac_fn_c_try_compile "$LINENO"; then :
7606  support_cet=yes
7607else
7608  support_cet=no
7609fi
7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611	if test $support_cet = "no"; then
7612	  if test x$enable_bootstrap != xno \
7613	     && test -z "${with_build_subdir}" \
7614	     && (test ! -f ../stage_current \
7615	         || test `cat ../stage_current` != "stage1"); then
7616	    # Require CET support only for the final GCC build.
7617	    as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
7618	  else
7619	    # Don't enable CET without CET support for non-bootstrap
7620	    # build, in stage1 nor for build support.
7621	    enable_cet=no
7622	  fi
7623	fi
7624	;;
7625    esac
7626    CFLAGS="$cet_save_CFLAGS"
7627    ;;
7628  *)
7629    may_have_cet=no
7630    enable_cet=no
7631    ;;
7632esac
7633
7634cet_save_CFLAGS="$CFLAGS"
7635CFLAGS="$CFLAGS -fcf-protection=none"
7636cet_save_LDFLAGS="$LDFLAGS"
7637LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
7638if test x$may_have_cet = xyes; then
7639  # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
7640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h.  */
7642
7643int
7644main ()
7645{
7646return 0;
7647  ;
7648  return 0;
7649}
7650_ACEOF
7651if ac_fn_c_try_link "$LINENO"; then :
7652  may_have_cet=yes
7653else
7654  may_have_cet=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext \
7657    conftest$ac_exeext conftest.$ac_ext
7658fi
7659
7660if test x$may_have_cet = xyes; then
7661  if test x$cross_compiling = xno; then
7662    if test "$cross_compiling" = yes; then :
7663  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7665as_fn_error $? "cannot run test program while cross compiling
7666See \`config.log' for more details" "$LINENO" 5; }
7667else
7668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669/* end confdefs.h.  */
7670
7671static void
7672foo (void)
7673{
7674}
7675
7676static void
7677__attribute__ ((noinline, noclone))
7678xxx (void (*f) (void))
7679{
7680  f ();
7681}
7682
7683static void
7684__attribute__ ((noinline, noclone))
7685bar (void)
7686{
7687  xxx (foo);
7688}
7689
7690int
7691main ()
7692{
7693  bar ();
7694  return 0;
7695}
7696
7697_ACEOF
7698if ac_fn_c_try_run "$LINENO"; then :
7699  have_cet=no
7700else
7701  have_cet=yes
7702fi
7703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7704  conftest.$ac_objext conftest.beam conftest.$ac_ext
7705fi
7706
7707    if test x$enable_cet = xno -a x$have_cet = xyes; then
7708      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7709    fi
7710  fi
7711else
7712  # Enable CET in cross compiler if possible so that it will run on both
7713  # CET and non-CET hosts.
7714  have_cet=yes
7715fi
7716if test x$enable_cet = xyes; then
7717  CET_HOST_FLAGS="-fcf-protection"
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7719$as_echo "yes" >&6; }
7720else
7721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723fi
7724CFLAGS="$cet_save_CFLAGS"
7725LDFLAGS="$cet_save_LDFLAGS"
7726
7727case x$enable_languages in
7728*jit*)
7729  ;;
7730*)
7731  CET_HOST_FLAGS=
7732  ;;
7733esac
7734
7735
7736# Check whether --enable-valgrind-annotations was given.
7737if test "${enable_valgrind_annotations+set}" = set; then :
7738  enableval=$enable_valgrind_annotations;
7739else
7740  enable_valgrind_annotations=no
7741fi
7742
7743if test x$enable_valgrind_annotations != xno \
7744    || test x$ac_valgrind_checking != x; then
7745  if (test $have_valgrind_h = no \
7746      && test $gcc_cv_header_memcheck_h = no \
7747      && test $gcc_cv_header_valgrind_memcheck_h = no); then
7748    as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7749  fi
7750
7751$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7752
7753fi
7754
7755# Output.
7756
7757ac_config_headers="$ac_config_headers config.h:config.in"
7758
7759ac_config_files="$ac_config_files Makefile"
7760
7761cat >confcache <<\_ACEOF
7762# This file is a shell script that caches the results of configure
7763# tests run on this system so they can be shared between configure
7764# scripts and configure runs, see configure's option --config-cache.
7765# It is not useful on other systems.  If it contains results you don't
7766# want to keep, you may remove or edit it.
7767#
7768# config.status only pays attention to the cache file if you give it
7769# the --recheck option to rerun configure.
7770#
7771# `ac_cv_env_foo' variables (set or unset) will be overridden when
7772# loading this file, other *unset* `ac_cv_foo' will be assigned the
7773# following values.
7774
7775_ACEOF
7776
7777# The following way of writing the cache mishandles newlines in values,
7778# but we know of no workaround that is simple, portable, and efficient.
7779# So, we kill variables containing newlines.
7780# Ultrix sh set writes to stderr and can't be redirected directly,
7781# and sets the high bit in the cache file unless we assign to the vars.
7782(
7783  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7784    eval ac_val=\$$ac_var
7785    case $ac_val in #(
7786    *${as_nl}*)
7787      case $ac_var in #(
7788      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7789$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7790      esac
7791      case $ac_var in #(
7792      _ | IFS | as_nl) ;; #(
7793      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7794      *) { eval $ac_var=; unset $ac_var;} ;;
7795      esac ;;
7796    esac
7797  done
7798
7799  (set) 2>&1 |
7800    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7801    *${as_nl}ac_space=\ *)
7802      # `set' does not quote correctly, so add quotes: double-quote
7803      # substitution turns \\\\ into \\, and sed turns \\ into \.
7804      sed -n \
7805	"s/'/'\\\\''/g;
7806	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7807      ;; #(
7808    *)
7809      # `set' quotes correctly as required by POSIX, so do not add quotes.
7810      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7811      ;;
7812    esac |
7813    sort
7814) |
7815  sed '
7816     /^ac_cv_env_/b end
7817     t clear
7818     :clear
7819     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7820     t end
7821     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7822     :end' >>confcache
7823if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7824  if test -w "$cache_file"; then
7825    if test "x$cache_file" != "x/dev/null"; then
7826      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7827$as_echo "$as_me: updating cache $cache_file" >&6;}
7828      if test ! -f "$cache_file" || test -h "$cache_file"; then
7829	cat confcache >"$cache_file"
7830      else
7831        case $cache_file in #(
7832        */* | ?:*)
7833	  mv -f confcache "$cache_file"$$ &&
7834	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7835        *)
7836	  mv -f confcache "$cache_file" ;;
7837	esac
7838      fi
7839    fi
7840  else
7841    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7842$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7843  fi
7844fi
7845rm -f confcache
7846
7847test "x$prefix" = xNONE && prefix=$ac_default_prefix
7848# Let make expand exec_prefix.
7849test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7850
7851DEFS=-DHAVE_CONFIG_H
7852
7853ac_libobjs=
7854ac_ltlibobjs=
7855U=
7856for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7857  # 1. Remove the extension, and $U if already installed.
7858  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7859  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7860  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7861  #    will be set to the directory where LIBOBJS objects are built.
7862  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7863  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7864done
7865LIBOBJS=$ac_libobjs
7866
7867LTLIBOBJS=$ac_ltlibobjs
7868
7869
7870
7871
7872: "${CONFIG_STATUS=./config.status}"
7873ac_write_fail=0
7874ac_clean_files_save=$ac_clean_files
7875ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7877$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7878as_write_fail=0
7879cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7880#! $SHELL
7881# Generated by $as_me.
7882# Run this file to recreate the current configuration.
7883# Compiler output produced by configure, useful for debugging
7884# configure, is in config.log if it exists.
7885
7886debug=false
7887ac_cs_recheck=false
7888ac_cs_silent=false
7889
7890SHELL=\${CONFIG_SHELL-$SHELL}
7891export SHELL
7892_ASEOF
7893cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7894## -------------------- ##
7895## M4sh Initialization. ##
7896## -------------------- ##
7897
7898# Be more Bourne compatible
7899DUALCASE=1; export DUALCASE # for MKS sh
7900if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7901  emulate sh
7902  NULLCMD=:
7903  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7904  # is contrary to our usage.  Disable this feature.
7905  alias -g '${1+"$@"}'='"$@"'
7906  setopt NO_GLOB_SUBST
7907else
7908  case `(set -o) 2>/dev/null` in #(
7909  *posix*) :
7910    set -o posix ;; #(
7911  *) :
7912     ;;
7913esac
7914fi
7915
7916
7917as_nl='
7918'
7919export as_nl
7920# Printing a long string crashes Solaris 7 /usr/bin/printf.
7921as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7922as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7923as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7924# Prefer a ksh shell builtin over an external printf program on Solaris,
7925# but without wasting forks for bash or zsh.
7926if test -z "$BASH_VERSION$ZSH_VERSION" \
7927    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7928  as_echo='print -r --'
7929  as_echo_n='print -rn --'
7930elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7931  as_echo='printf %s\n'
7932  as_echo_n='printf %s'
7933else
7934  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7935    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7936    as_echo_n='/usr/ucb/echo -n'
7937  else
7938    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7939    as_echo_n_body='eval
7940      arg=$1;
7941      case $arg in #(
7942      *"$as_nl"*)
7943	expr "X$arg" : "X\\(.*\\)$as_nl";
7944	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7945      esac;
7946      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7947    '
7948    export as_echo_n_body
7949    as_echo_n='sh -c $as_echo_n_body as_echo'
7950  fi
7951  export as_echo_body
7952  as_echo='sh -c $as_echo_body as_echo'
7953fi
7954
7955# The user is always right.
7956if test "${PATH_SEPARATOR+set}" != set; then
7957  PATH_SEPARATOR=:
7958  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7959    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7960      PATH_SEPARATOR=';'
7961  }
7962fi
7963
7964
7965# IFS
7966# We need space, tab and new line, in precisely that order.  Quoting is
7967# there to prevent editors from complaining about space-tab.
7968# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7969# splitting by setting IFS to empty value.)
7970IFS=" ""	$as_nl"
7971
7972# Find who we are.  Look in the path if we contain no directory separator.
7973as_myself=
7974case $0 in #((
7975  *[\\/]* ) as_myself=$0 ;;
7976  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979  IFS=$as_save_IFS
7980  test -z "$as_dir" && as_dir=.
7981    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7982  done
7983IFS=$as_save_IFS
7984
7985     ;;
7986esac
7987# We did not find ourselves, most probably we were run as `sh COMMAND'
7988# in which case we are not to be found in the path.
7989if test "x$as_myself" = x; then
7990  as_myself=$0
7991fi
7992if test ! -f "$as_myself"; then
7993  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7994  exit 1
7995fi
7996
7997# Unset variables that we do not need and which cause bugs (e.g. in
7998# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7999# suppresses any "Segmentation fault" message there.  '((' could
8000# trigger a bug in pdksh 5.2.14.
8001for as_var in BASH_ENV ENV MAIL MAILPATH
8002do eval test x\${$as_var+set} = xset \
8003  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8004done
8005PS1='$ '
8006PS2='> '
8007PS4='+ '
8008
8009# NLS nuisances.
8010LC_ALL=C
8011export LC_ALL
8012LANGUAGE=C
8013export LANGUAGE
8014
8015# CDPATH.
8016(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8017
8018
8019# as_fn_error STATUS ERROR [LINENO LOG_FD]
8020# ----------------------------------------
8021# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8022# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8023# script with STATUS, using 1 if that was 0.
8024as_fn_error ()
8025{
8026  as_status=$1; test $as_status -eq 0 && as_status=1
8027  if test "$4"; then
8028    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8029    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8030  fi
8031  $as_echo "$as_me: error: $2" >&2
8032  as_fn_exit $as_status
8033} # as_fn_error
8034
8035
8036# as_fn_set_status STATUS
8037# -----------------------
8038# Set $? to STATUS, without forking.
8039as_fn_set_status ()
8040{
8041  return $1
8042} # as_fn_set_status
8043
8044# as_fn_exit STATUS
8045# -----------------
8046# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8047as_fn_exit ()
8048{
8049  set +e
8050  as_fn_set_status $1
8051  exit $1
8052} # as_fn_exit
8053
8054# as_fn_unset VAR
8055# ---------------
8056# Portably unset VAR.
8057as_fn_unset ()
8058{
8059  { eval $1=; unset $1;}
8060}
8061as_unset=as_fn_unset
8062# as_fn_append VAR VALUE
8063# ----------------------
8064# Append the text in VALUE to the end of the definition contained in VAR. Take
8065# advantage of any shell optimizations that allow amortized linear growth over
8066# repeated appends, instead of the typical quadratic growth present in naive
8067# implementations.
8068if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8069  eval 'as_fn_append ()
8070  {
8071    eval $1+=\$2
8072  }'
8073else
8074  as_fn_append ()
8075  {
8076    eval $1=\$$1\$2
8077  }
8078fi # as_fn_append
8079
8080# as_fn_arith ARG...
8081# ------------------
8082# Perform arithmetic evaluation on the ARGs, and store the result in the
8083# global $as_val. Take advantage of shells that can avoid forks. The arguments
8084# must be portable across $(()) and expr.
8085if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8086  eval 'as_fn_arith ()
8087  {
8088    as_val=$(( $* ))
8089  }'
8090else
8091  as_fn_arith ()
8092  {
8093    as_val=`expr "$@" || test $? -eq 1`
8094  }
8095fi # as_fn_arith
8096
8097
8098if expr a : '\(a\)' >/dev/null 2>&1 &&
8099   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8100  as_expr=expr
8101else
8102  as_expr=false
8103fi
8104
8105if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8106  as_basename=basename
8107else
8108  as_basename=false
8109fi
8110
8111if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8112  as_dirname=dirname
8113else
8114  as_dirname=false
8115fi
8116
8117as_me=`$as_basename -- "$0" ||
8118$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8119	 X"$0" : 'X\(//\)$' \| \
8120	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8121$as_echo X/"$0" |
8122    sed '/^.*\/\([^/][^/]*\)\/*$/{
8123	    s//\1/
8124	    q
8125	  }
8126	  /^X\/\(\/\/\)$/{
8127	    s//\1/
8128	    q
8129	  }
8130	  /^X\/\(\/\).*/{
8131	    s//\1/
8132	    q
8133	  }
8134	  s/.*/./; q'`
8135
8136# Avoid depending upon Character Ranges.
8137as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8139as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8140as_cr_digits='0123456789'
8141as_cr_alnum=$as_cr_Letters$as_cr_digits
8142
8143ECHO_C= ECHO_N= ECHO_T=
8144case `echo -n x` in #(((((
8145-n*)
8146  case `echo 'xy\c'` in
8147  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8148  xy)  ECHO_C='\c';;
8149  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8150       ECHO_T='	';;
8151  esac;;
8152*)
8153  ECHO_N='-n';;
8154esac
8155
8156rm -f conf$$ conf$$.exe conf$$.file
8157if test -d conf$$.dir; then
8158  rm -f conf$$.dir/conf$$.file
8159else
8160  rm -f conf$$.dir
8161  mkdir conf$$.dir 2>/dev/null
8162fi
8163if (echo >conf$$.file) 2>/dev/null; then
8164  if ln -s conf$$.file conf$$ 2>/dev/null; then
8165    as_ln_s='ln -s'
8166    # ... but there are two gotchas:
8167    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8168    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8169    # In both cases, we have to default to `cp -pR'.
8170    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8171      as_ln_s='cp -pR'
8172  elif ln conf$$.file conf$$ 2>/dev/null; then
8173    as_ln_s=ln
8174  else
8175    as_ln_s='cp -pR'
8176  fi
8177else
8178  as_ln_s='cp -pR'
8179fi
8180rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8181rmdir conf$$.dir 2>/dev/null
8182
8183
8184# as_fn_mkdir_p
8185# -------------
8186# Create "$as_dir" as a directory, including parents if necessary.
8187as_fn_mkdir_p ()
8188{
8189
8190  case $as_dir in #(
8191  -*) as_dir=./$as_dir;;
8192  esac
8193  test -d "$as_dir" || eval $as_mkdir_p || {
8194    as_dirs=
8195    while :; do
8196      case $as_dir in #(
8197      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8198      *) as_qdir=$as_dir;;
8199      esac
8200      as_dirs="'$as_qdir' $as_dirs"
8201      as_dir=`$as_dirname -- "$as_dir" ||
8202$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8203	 X"$as_dir" : 'X\(//\)[^/]' \| \
8204	 X"$as_dir" : 'X\(//\)$' \| \
8205	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8206$as_echo X"$as_dir" |
8207    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8208	    s//\1/
8209	    q
8210	  }
8211	  /^X\(\/\/\)[^/].*/{
8212	    s//\1/
8213	    q
8214	  }
8215	  /^X\(\/\/\)$/{
8216	    s//\1/
8217	    q
8218	  }
8219	  /^X\(\/\).*/{
8220	    s//\1/
8221	    q
8222	  }
8223	  s/.*/./; q'`
8224      test -d "$as_dir" && break
8225    done
8226    test -z "$as_dirs" || eval "mkdir $as_dirs"
8227  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8228
8229
8230} # as_fn_mkdir_p
8231if mkdir -p . 2>/dev/null; then
8232  as_mkdir_p='mkdir -p "$as_dir"'
8233else
8234  test -d ./-p && rmdir ./-p
8235  as_mkdir_p=false
8236fi
8237
8238
8239# as_fn_executable_p FILE
8240# -----------------------
8241# Test if FILE is an executable regular file.
8242as_fn_executable_p ()
8243{
8244  test -f "$1" && test -x "$1"
8245} # as_fn_executable_p
8246as_test_x='test -x'
8247as_executable_p=as_fn_executable_p
8248
8249# Sed expression to map a string onto a valid CPP name.
8250as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8251
8252# Sed expression to map a string onto a valid variable name.
8253as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8254
8255
8256exec 6>&1
8257## ----------------------------------- ##
8258## Main body of $CONFIG_STATUS script. ##
8259## ----------------------------------- ##
8260_ASEOF
8261test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8262
8263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8264# Save the log message, to keep $0 and so on meaningful, and to
8265# report actual input values of CONFIG_FILES etc. instead of their
8266# values after options handling.
8267ac_log="
8268This file was extended by cpplib $as_me  , which was
8269generated by GNU Autoconf 2.69.  Invocation command line was
8270
8271  CONFIG_FILES    = $CONFIG_FILES
8272  CONFIG_HEADERS  = $CONFIG_HEADERS
8273  CONFIG_LINKS    = $CONFIG_LINKS
8274  CONFIG_COMMANDS = $CONFIG_COMMANDS
8275  $ $0 $@
8276
8277on `(hostname || uname -n) 2>/dev/null | sed 1q`
8278"
8279
8280_ACEOF
8281
8282case $ac_config_files in *"
8283"*) set x $ac_config_files; shift; ac_config_files=$*;;
8284esac
8285
8286case $ac_config_headers in *"
8287"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8288esac
8289
8290
8291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8292# Files that config.status was made for.
8293config_files="$ac_config_files"
8294config_headers="$ac_config_headers"
8295config_commands="$ac_config_commands"
8296
8297_ACEOF
8298
8299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8300ac_cs_usage="\
8301\`$as_me' instantiates files and other configuration actions
8302from templates according to the current configuration.  Unless the files
8303and actions are specified as TAGs, all are instantiated by default.
8304
8305Usage: $0 [OPTION]... [TAG]...
8306
8307  -h, --help       print this help, then exit
8308  -V, --version    print version number and configuration settings, then exit
8309      --config     print configuration, then exit
8310  -q, --quiet, --silent
8311                   do not print progress messages
8312  -d, --debug      don't remove temporary files
8313      --recheck    update $as_me by reconfiguring in the same conditions
8314      --file=FILE[:TEMPLATE]
8315                   instantiate the configuration file FILE
8316      --header=FILE[:TEMPLATE]
8317                   instantiate the configuration header FILE
8318
8319Configuration files:
8320$config_files
8321
8322Configuration headers:
8323$config_headers
8324
8325Configuration commands:
8326$config_commands
8327
8328Report bugs to <gcc-bugs@gcc.gnu.org>."
8329
8330_ACEOF
8331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8332ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8333ac_cs_version="\\
8334cpplib config.status
8335configured by $0, generated by GNU Autoconf 2.69,
8336  with options \\"\$ac_cs_config\\"
8337
8338Copyright (C) 2012 Free Software Foundation, Inc.
8339This config.status script is free software; the Free Software Foundation
8340gives unlimited permission to copy, distribute and modify it."
8341
8342ac_pwd='$ac_pwd'
8343srcdir='$srcdir'
8344INSTALL='$INSTALL'
8345test -n "\$AWK" || AWK=awk
8346_ACEOF
8347
8348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8349# The default lists apply if the user does not specify any file.
8350ac_need_defaults=:
8351while test $# != 0
8352do
8353  case $1 in
8354  --*=?*)
8355    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8356    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8357    ac_shift=:
8358    ;;
8359  --*=)
8360    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8361    ac_optarg=
8362    ac_shift=:
8363    ;;
8364  *)
8365    ac_option=$1
8366    ac_optarg=$2
8367    ac_shift=shift
8368    ;;
8369  esac
8370
8371  case $ac_option in
8372  # Handling of the options.
8373  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8374    ac_cs_recheck=: ;;
8375  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8376    $as_echo "$ac_cs_version"; exit ;;
8377  --config | --confi | --conf | --con | --co | --c )
8378    $as_echo "$ac_cs_config"; exit ;;
8379  --debug | --debu | --deb | --de | --d | -d )
8380    debug=: ;;
8381  --file | --fil | --fi | --f )
8382    $ac_shift
8383    case $ac_optarg in
8384    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8385    '') as_fn_error $? "missing file argument" ;;
8386    esac
8387    as_fn_append CONFIG_FILES " '$ac_optarg'"
8388    ac_need_defaults=false;;
8389  --header | --heade | --head | --hea )
8390    $ac_shift
8391    case $ac_optarg in
8392    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8393    esac
8394    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8395    ac_need_defaults=false;;
8396  --he | --h)
8397    # Conflict between --help and --header
8398    as_fn_error $? "ambiguous option: \`$1'
8399Try \`$0 --help' for more information.";;
8400  --help | --hel | -h )
8401    $as_echo "$ac_cs_usage"; exit ;;
8402  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8403  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8404    ac_cs_silent=: ;;
8405
8406  # This is an error.
8407  -*) as_fn_error $? "unrecognized option: \`$1'
8408Try \`$0 --help' for more information." ;;
8409
8410  *) as_fn_append ac_config_targets " $1"
8411     ac_need_defaults=false ;;
8412
8413  esac
8414  shift
8415done
8416
8417ac_configure_extra_args=
8418
8419if $ac_cs_silent; then
8420  exec 6>/dev/null
8421  ac_configure_extra_args="$ac_configure_extra_args --silent"
8422fi
8423
8424_ACEOF
8425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8426if \$ac_cs_recheck; then
8427  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8428  shift
8429  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8430  CONFIG_SHELL='$SHELL'
8431  export CONFIG_SHELL
8432  exec "\$@"
8433fi
8434
8435_ACEOF
8436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8437exec 5>>config.log
8438{
8439  echo
8440  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8441## Running $as_me. ##
8442_ASBOX
8443  $as_echo "$ac_log"
8444} >&5
8445
8446_ACEOF
8447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8448#
8449# INIT-COMMANDS
8450#
8451ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8452
8453_ACEOF
8454
8455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8456
8457# Handling of arguments.
8458for ac_config_target in $ac_config_targets
8459do
8460  case $ac_config_target in
8461    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8462    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8463    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8464
8465  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8466  esac
8467done
8468
8469
8470# If the user did not use the arguments to specify the items to instantiate,
8471# then the envvar interface is used.  Set only those that are not.
8472# We use the long form for the default assignment because of an extremely
8473# bizarre bug on SunOS 4.1.3.
8474if $ac_need_defaults; then
8475  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8476  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8477  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8478fi
8479
8480# Have a temporary directory for convenience.  Make it in the build tree
8481# simply because there is no reason against having it here, and in addition,
8482# creating and moving files from /tmp can sometimes cause problems.
8483# Hook for its removal unless debugging.
8484# Note that there is a small window in which the directory will not be cleaned:
8485# after its creation but before its name has been assigned to `$tmp'.
8486$debug ||
8487{
8488  tmp= ac_tmp=
8489  trap 'exit_status=$?
8490  : "${ac_tmp:=$tmp}"
8491  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8492' 0
8493  trap 'as_fn_exit 1' 1 2 13 15
8494}
8495# Create a (secure) tmp directory for tmp files.
8496
8497{
8498  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8499  test -d "$tmp"
8500}  ||
8501{
8502  tmp=./conf$$-$RANDOM
8503  (umask 077 && mkdir "$tmp")
8504} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8505ac_tmp=$tmp
8506
8507# Set up the scripts for CONFIG_FILES section.
8508# No need to generate them if there are no CONFIG_FILES.
8509# This happens for instance with `./config.status config.h'.
8510if test -n "$CONFIG_FILES"; then
8511
8512
8513ac_cr=`echo X | tr X '\015'`
8514# On cygwin, bash can eat \r inside `` if the user requested igncr.
8515# But we know of no other shell where ac_cr would be empty at this
8516# point, so we can use a bashism as a fallback.
8517if test "x$ac_cr" = x; then
8518  eval ac_cr=\$\'\\r\'
8519fi
8520ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8521if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8522  ac_cs_awk_cr='\\r'
8523else
8524  ac_cs_awk_cr=$ac_cr
8525fi
8526
8527echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8528_ACEOF
8529
8530
8531{
8532  echo "cat >conf$$subs.awk <<_ACEOF" &&
8533  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8534  echo "_ACEOF"
8535} >conf$$subs.sh ||
8536  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8537ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8538ac_delim='%!_!# '
8539for ac_last_try in false false false false false :; do
8540  . ./conf$$subs.sh ||
8541    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8542
8543  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8544  if test $ac_delim_n = $ac_delim_num; then
8545    break
8546  elif $ac_last_try; then
8547    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8548  else
8549    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8550  fi
8551done
8552rm -f conf$$subs.sh
8553
8554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8555cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8556_ACEOF
8557sed -n '
8558h
8559s/^/S["/; s/!.*/"]=/
8560p
8561g
8562s/^[^!]*!//
8563:repl
8564t repl
8565s/'"$ac_delim"'$//
8566t delim
8567:nl
8568h
8569s/\(.\{148\}\)..*/\1/
8570t more1
8571s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8572p
8573n
8574b repl
8575:more1
8576s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8577p
8578g
8579s/.\{148\}//
8580t nl
8581:delim
8582h
8583s/\(.\{148\}\)..*/\1/
8584t more2
8585s/["\\]/\\&/g; s/^/"/; s/$/"/
8586p
8587b
8588:more2
8589s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8590p
8591g
8592s/.\{148\}//
8593t delim
8594' <conf$$subs.awk | sed '
8595/^[^""]/{
8596  N
8597  s/\n//
8598}
8599' >>$CONFIG_STATUS || ac_write_fail=1
8600rm -f conf$$subs.awk
8601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8602_ACAWK
8603cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8604  for (key in S) S_is_set[key] = 1
8605  FS = ""
8606
8607}
8608{
8609  line = $ 0
8610  nfields = split(line, field, "@")
8611  substed = 0
8612  len = length(field[1])
8613  for (i = 2; i < nfields; i++) {
8614    key = field[i]
8615    keylen = length(key)
8616    if (S_is_set[key]) {
8617      value = S[key]
8618      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8619      len += length(value) + length(field[++i])
8620      substed = 1
8621    } else
8622      len += 1 + keylen
8623  }
8624
8625  print line
8626}
8627
8628_ACAWK
8629_ACEOF
8630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8631if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8632  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8633else
8634  cat
8635fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8636  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8637_ACEOF
8638
8639# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8640# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8641# trailing colons and then remove the whole line if VPATH becomes empty
8642# (actually we leave an empty line to preserve line numbers).
8643if test "x$srcdir" = x.; then
8644  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8645h
8646s///
8647s/^/:/
8648s/[	 ]*$/:/
8649s/:\$(srcdir):/:/g
8650s/:\${srcdir}:/:/g
8651s/:@srcdir@:/:/g
8652s/^:*//
8653s/:*$//
8654x
8655s/\(=[	 ]*\).*/\1/
8656G
8657s/\n//
8658s/^[^=]*=[	 ]*$//
8659}'
8660fi
8661
8662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8663fi # test -n "$CONFIG_FILES"
8664
8665# Set up the scripts for CONFIG_HEADERS section.
8666# No need to generate them if there are no CONFIG_HEADERS.
8667# This happens for instance with `./config.status Makefile'.
8668if test -n "$CONFIG_HEADERS"; then
8669cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8670BEGIN {
8671_ACEOF
8672
8673# Transform confdefs.h into an awk script `defines.awk', embedded as
8674# here-document in config.status, that substitutes the proper values into
8675# config.h.in to produce config.h.
8676
8677# Create a delimiter string that does not exist in confdefs.h, to ease
8678# handling of long lines.
8679ac_delim='%!_!# '
8680for ac_last_try in false false :; do
8681  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8682  if test -z "$ac_tt"; then
8683    break
8684  elif $ac_last_try; then
8685    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8686  else
8687    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8688  fi
8689done
8690
8691# For the awk script, D is an array of macro values keyed by name,
8692# likewise P contains macro parameters if any.  Preserve backslash
8693# newline sequences.
8694
8695ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8696sed -n '
8697s/.\{148\}/&'"$ac_delim"'/g
8698t rset
8699:rset
8700s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8701t def
8702d
8703:def
8704s/\\$//
8705t bsnl
8706s/["\\]/\\&/g
8707s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8708D["\1"]=" \3"/p
8709s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8710d
8711:bsnl
8712s/["\\]/\\&/g
8713s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8714D["\1"]=" \3\\\\\\n"\\/p
8715t cont
8716s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8717t cont
8718d
8719:cont
8720n
8721s/.\{148\}/&'"$ac_delim"'/g
8722t clear
8723:clear
8724s/\\$//
8725t bsnlc
8726s/["\\]/\\&/g; s/^/"/; s/$/"/p
8727d
8728:bsnlc
8729s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8730b cont
8731' <confdefs.h | sed '
8732s/'"$ac_delim"'/"\\\
8733"/g' >>$CONFIG_STATUS || ac_write_fail=1
8734
8735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8736  for (key in D) D_is_set[key] = 1
8737  FS = ""
8738}
8739/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8740  line = \$ 0
8741  split(line, arg, " ")
8742  if (arg[1] == "#") {
8743    defundef = arg[2]
8744    mac1 = arg[3]
8745  } else {
8746    defundef = substr(arg[1], 2)
8747    mac1 = arg[2]
8748  }
8749  split(mac1, mac2, "(") #)
8750  macro = mac2[1]
8751  prefix = substr(line, 1, index(line, defundef) - 1)
8752  if (D_is_set[macro]) {
8753    # Preserve the white space surrounding the "#".
8754    print prefix "define", macro P[macro] D[macro]
8755    next
8756  } else {
8757    # Replace #undef with comments.  This is necessary, for example,
8758    # in the case of _POSIX_SOURCE, which is predefined and required
8759    # on some systems where configure will not decide to define it.
8760    if (defundef == "undef") {
8761      print "/*", prefix defundef, macro, "*/"
8762      next
8763    }
8764  }
8765}
8766{ print }
8767_ACAWK
8768_ACEOF
8769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8770  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8771fi # test -n "$CONFIG_HEADERS"
8772
8773
8774eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8775shift
8776for ac_tag
8777do
8778  case $ac_tag in
8779  :[FHLC]) ac_mode=$ac_tag; continue;;
8780  esac
8781  case $ac_mode$ac_tag in
8782  :[FHL]*:*);;
8783  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8784  :[FH]-) ac_tag=-:-;;
8785  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8786  esac
8787  ac_save_IFS=$IFS
8788  IFS=:
8789  set x $ac_tag
8790  IFS=$ac_save_IFS
8791  shift
8792  ac_file=$1
8793  shift
8794
8795  case $ac_mode in
8796  :L) ac_source=$1;;
8797  :[FH])
8798    ac_file_inputs=
8799    for ac_f
8800    do
8801      case $ac_f in
8802      -) ac_f="$ac_tmp/stdin";;
8803      *) # Look for the file first in the build tree, then in the source tree
8804	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8805	 # because $ac_f cannot contain `:'.
8806	 test -f "$ac_f" ||
8807	   case $ac_f in
8808	   [\\/$]*) false;;
8809	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8810	   esac ||
8811	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8812      esac
8813      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8814      as_fn_append ac_file_inputs " '$ac_f'"
8815    done
8816
8817    # Let's still pretend it is `configure' which instantiates (i.e., don't
8818    # use $as_me), people would be surprised to read:
8819    #    /* config.h.  Generated by config.status.  */
8820    configure_input='Generated from '`
8821	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8822	`' by configure.'
8823    if test x"$ac_file" != x-; then
8824      configure_input="$ac_file.  $configure_input"
8825      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8826$as_echo "$as_me: creating $ac_file" >&6;}
8827    fi
8828    # Neutralize special characters interpreted by sed in replacement strings.
8829    case $configure_input in #(
8830    *\&* | *\|* | *\\* )
8831       ac_sed_conf_input=`$as_echo "$configure_input" |
8832       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8833    *) ac_sed_conf_input=$configure_input;;
8834    esac
8835
8836    case $ac_tag in
8837    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8838      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8839    esac
8840    ;;
8841  esac
8842
8843  ac_dir=`$as_dirname -- "$ac_file" ||
8844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8845	 X"$ac_file" : 'X\(//\)[^/]' \| \
8846	 X"$ac_file" : 'X\(//\)$' \| \
8847	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8848$as_echo X"$ac_file" |
8849    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8850	    s//\1/
8851	    q
8852	  }
8853	  /^X\(\/\/\)[^/].*/{
8854	    s//\1/
8855	    q
8856	  }
8857	  /^X\(\/\/\)$/{
8858	    s//\1/
8859	    q
8860	  }
8861	  /^X\(\/\).*/{
8862	    s//\1/
8863	    q
8864	  }
8865	  s/.*/./; q'`
8866  as_dir="$ac_dir"; as_fn_mkdir_p
8867  ac_builddir=.
8868
8869case "$ac_dir" in
8870.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8871*)
8872  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8873  # A ".." for each directory in $ac_dir_suffix.
8874  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8875  case $ac_top_builddir_sub in
8876  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8877  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8878  esac ;;
8879esac
8880ac_abs_top_builddir=$ac_pwd
8881ac_abs_builddir=$ac_pwd$ac_dir_suffix
8882# for backward compatibility:
8883ac_top_builddir=$ac_top_build_prefix
8884
8885case $srcdir in
8886  .)  # We are building in place.
8887    ac_srcdir=.
8888    ac_top_srcdir=$ac_top_builddir_sub
8889    ac_abs_top_srcdir=$ac_pwd ;;
8890  [\\/]* | ?:[\\/]* )  # Absolute name.
8891    ac_srcdir=$srcdir$ac_dir_suffix;
8892    ac_top_srcdir=$srcdir
8893    ac_abs_top_srcdir=$srcdir ;;
8894  *) # Relative name.
8895    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8896    ac_top_srcdir=$ac_top_build_prefix$srcdir
8897    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8898esac
8899ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8900
8901
8902  case $ac_mode in
8903  :F)
8904  #
8905  # CONFIG_FILE
8906  #
8907
8908  case $INSTALL in
8909  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8910  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8911  esac
8912_ACEOF
8913
8914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8915# If the template does not know about datarootdir, expand it.
8916# FIXME: This hack should be removed a few years after 2.60.
8917ac_datarootdir_hack=; ac_datarootdir_seen=
8918ac_sed_dataroot='
8919/datarootdir/ {
8920  p
8921  q
8922}
8923/@datadir@/p
8924/@docdir@/p
8925/@infodir@/p
8926/@localedir@/p
8927/@mandir@/p'
8928case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8929*datarootdir*) ac_datarootdir_seen=yes;;
8930*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8931  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8932$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8933_ACEOF
8934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8935  ac_datarootdir_hack='
8936  s&@datadir@&$datadir&g
8937  s&@docdir@&$docdir&g
8938  s&@infodir@&$infodir&g
8939  s&@localedir@&$localedir&g
8940  s&@mandir@&$mandir&g
8941  s&\\\${datarootdir}&$datarootdir&g' ;;
8942esac
8943_ACEOF
8944
8945# Neutralize VPATH when `$srcdir' = `.'.
8946# Shell code in configure.ac might set extrasub.
8947# FIXME: do we really want to maintain this feature?
8948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8949ac_sed_extra="$ac_vpsub
8950$extrasub
8951_ACEOF
8952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8953:t
8954/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8955s|@configure_input@|$ac_sed_conf_input|;t t
8956s&@top_builddir@&$ac_top_builddir_sub&;t t
8957s&@top_build_prefix@&$ac_top_build_prefix&;t t
8958s&@srcdir@&$ac_srcdir&;t t
8959s&@abs_srcdir@&$ac_abs_srcdir&;t t
8960s&@top_srcdir@&$ac_top_srcdir&;t t
8961s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8962s&@builddir@&$ac_builddir&;t t
8963s&@abs_builddir@&$ac_abs_builddir&;t t
8964s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8965s&@INSTALL@&$ac_INSTALL&;t t
8966$ac_datarootdir_hack
8967"
8968eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8969  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8970
8971test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8972  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8973  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8974      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8975  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8976which seems to be undefined.  Please make sure it is defined" >&5
8977$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8978which seems to be undefined.  Please make sure it is defined" >&2;}
8979
8980  rm -f "$ac_tmp/stdin"
8981  case $ac_file in
8982  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8983  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8984  esac \
8985  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8986 ;;
8987  :H)
8988  #
8989  # CONFIG_HEADER
8990  #
8991  if test x"$ac_file" != x-; then
8992    {
8993      $as_echo "/* $configure_input  */" \
8994      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8995    } >"$ac_tmp/config.h" \
8996      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8997    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8998      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8999$as_echo "$as_me: $ac_file is unchanged" >&6;}
9000    else
9001      rm -f "$ac_file"
9002      mv "$ac_tmp/config.h" "$ac_file" \
9003	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9004    fi
9005  else
9006    $as_echo "/* $configure_input  */" \
9007      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9008      || as_fn_error $? "could not create -" "$LINENO" 5
9009  fi
9010 ;;
9011
9012  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9013$as_echo "$as_me: executing $ac_file commands" >&6;}
9014 ;;
9015  esac
9016
9017
9018  case $ac_file$ac_mode in
9019    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9020    "config.h":H) echo timestamp > stamp-h1 ;;
9021
9022  esac
9023done # for ac_tag
9024
9025
9026as_fn_exit 0
9027_ACEOF
9028ac_clean_files=$ac_clean_files_save
9029
9030test $ac_write_fail = 0 ||
9031  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9032
9033
9034# configure is writing to config.log, and then calls config.status.
9035# config.status does its own redirection, appending to config.log.
9036# Unfortunately, on DOS this fails, as config.log is still kept open
9037# by configure, so config.status won't be able to write to it; its
9038# output is simply discarded.  So we exec the FD to /dev/null,
9039# effectively closing config.log, so it can be properly (re)opened and
9040# appended to by config.status.  When coming back to configure, we
9041# need to make the FD available again.
9042if test "$no_create" != yes; then
9043  ac_cs_success=:
9044  ac_config_status_args=
9045  test "$silent" = yes &&
9046    ac_config_status_args="$ac_config_status_args --quiet"
9047  exec 5>/dev/null
9048  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9049  exec 5>>config.log
9050  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9051  # would make configure fail if this is the last instruction.
9052  $ac_cs_success || as_fn_exit 1
9053fi
9054if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9055  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9056$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9057fi
9058
9059