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