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