1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="Makefile.am"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_header_list=
623ac_subst_vars='am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
626LIBOBJS
627locdir_flag
628inst_dir
629inst_flag
630sound_flag
631SDL_LIBS
632SDL_CFLAGS
633SDL_CONFIG
634POSUB
635LTLIBINTL
636LIBINTL
637INTLLIBS
638INTL_LIBTOOL_SUFFIX_PREFIX
639INTLOBJS
640GENCAT
641INSTOBJEXT
642DATADIRNAME
643CATOBJEXT
644USE_INCLUDED_LIBINTL
645BUILD_INCLUDED_LIBINTL
646INTLBISON
647LTLIBICONV
648LIBICONV
649HAVE_WPRINTF
650HAVE_SNPRINTF
651HAVE_ASPRINTF
652HAVE_POSIX_PRINTF
653GLIBC21
654ALLOCA
655EGREP
656GREP
657CPP
658RANLIB
659am__fastdepCC_FALSE
660am__fastdepCC_TRUE
661CCDEPMODE
662am__nodep
663AMDEPBACKSLASH
664AMDEP_FALSE
665AMDEP_TRUE
666am__quote
667am__include
668DEPDIR
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
676MSGMERGE
677XGETTEXT
678GMSGFMT
679MSGFMT
680USE_NLS
681MKINSTALLDIRS
682AM_BACKSLASH
683AM_DEFAULT_VERBOSITY
684AM_DEFAULT_V
685AM_V
686am__untar
687am__tar
688AMTAR
689am__leading_dot
690SET_MAKE
691AWK
692mkdir_p
693MKDIR_P
694INSTALL_STRIP_PROGRAM
695STRIP
696install_sh
697MAKEINFO
698AUTOHEADER
699AUTOMAKE
700AUTOCONF
701ACLOCAL
702VERSION
703PACKAGE
704CYGPATH_W
705am__isrc
706INSTALL_DATA
707INSTALL_SCRIPT
708INSTALL_PROGRAM
709target_os
710target_vendor
711target_cpu
712target
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740runstatedir
741localstatedir
742sharedstatedir
743sysconfdir
744datadir
745datarootdir
746libexecdir
747sbindir
748bindir
749program_transform_name
750prefix
751exec_prefix
752PACKAGE_URL
753PACKAGE_BUGREPORT
754PACKAGE_STRING
755PACKAGE_VERSION
756PACKAGE_TARNAME
757PACKAGE_NAME
758PATH_SEPARATOR
759SHELL'
760ac_subst_files=''
761ac_user_opts='
762enable_option_checking
763enable_silent_rules
764enable_nls
765enable_dependency_tracking
766with_gnu_ld
767enable_rpath
768with_libiconv_prefix
769with_included_gettext
770with_libintl_prefix
771with_sdl_prefix
772with_sdl_exec_prefix
773enable_sdltest
774enable_sound
775enable_install
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CPP'
786
787
788# Initialize some variables set by options.
789ac_init_help=
790ac_init_version=false
791ac_unrecognized_opts=
792ac_unrecognized_sep=
793# The variables have the same names as the options, with
794# dashes changed to underlines.
795cache_file=/dev/null
796exec_prefix=NONE
797no_create=
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
806verbose=
807x_includes=NONE
808x_libraries=NONE
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
815# (The list follows the same order as the GNU Coding Standards.)
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
824runstatedir='${localstatedir}/run'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -runstatedir | --runstatedir | --runstatedi | --runstated \
1078  | --runstate | --runstat | --runsta | --runst | --runs \
1079  | --run | --ru | --r)
1080    ac_prev=runstatedir ;;
1081  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1082  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1083  | --run=* | --ru=* | --r=*)
1084    runstatedir=$ac_optarg ;;
1085
1086  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087    ac_prev=sbindir ;;
1088  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089  | --sbi=* | --sb=*)
1090    sbindir=$ac_optarg ;;
1091
1092  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094  | --sharedst | --shareds | --shared | --share | --shar \
1095  | --sha | --sh)
1096    ac_prev=sharedstatedir ;;
1097  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100  | --sha=* | --sh=*)
1101    sharedstatedir=$ac_optarg ;;
1102
1103  -site | --site | --sit)
1104    ac_prev=site ;;
1105  -site=* | --site=* | --sit=*)
1106    site=$ac_optarg ;;
1107
1108  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109    ac_prev=srcdir ;;
1110  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111    srcdir=$ac_optarg ;;
1112
1113  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114  | --syscon | --sysco | --sysc | --sys | --sy)
1115    ac_prev=sysconfdir ;;
1116  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118    sysconfdir=$ac_optarg ;;
1119
1120  -target | --target | --targe | --targ | --tar | --ta | --t)
1121    ac_prev=target_alias ;;
1122  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123    target_alias=$ac_optarg ;;
1124
1125  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126    verbose=yes ;;
1127
1128  -version | --version | --versio | --versi | --vers | -V)
1129    ac_init_version=: ;;
1130
1131  -with-* | --with-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=\$ac_optarg ;;
1146
1147  -without-* | --without-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=no ;;
1162
1163  --x)
1164    # Obsolete; use --with-x.
1165    with_x=yes ;;
1166
1167  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168  | --x-incl | --x-inc | --x-in | --x-i)
1169    ac_prev=x_includes ;;
1170  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172    x_includes=$ac_optarg ;;
1173
1174  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176    ac_prev=x_libraries ;;
1177  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179    x_libraries=$ac_optarg ;;
1180
1181  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182Try \`$0 --help' for more information"
1183    ;;
1184
1185  *=*)
1186    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187    # Reject names that are not valid shell variable names.
1188    case $ac_envvar in #(
1189      '' | [0-9]* | *[!_$as_cr_alnum]* )
1190      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191    esac
1192    eval $ac_envvar=\$ac_optarg
1193    export $ac_envvar ;;
1194
1195  *)
1196    # FIXME: should be removed in autoconf 3.0.
1197    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201    ;;
1202
1203  esac
1204done
1205
1206if test -n "$ac_prev"; then
1207  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208  as_fn_error $? "missing argument to $ac_option"
1209fi
1210
1211if test -n "$ac_unrecognized_opts"; then
1212  case $enable_option_checking in
1213    no) ;;
1214    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216  esac
1217fi
1218
1219# Check all directory arguments for consistency.
1220for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221		datadir sysconfdir sharedstatedir localstatedir includedir \
1222		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223		libdir localedir mandir runstatedir
1224do
1225  eval ac_val=\$$ac_var
1226  # Remove trailing slashes.
1227  case $ac_val in
1228    */ )
1229      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230      eval $ac_var=\$ac_val;;
1231  esac
1232  # Be sure to have absolute directory names.
1233  case $ac_val in
1234    [\\/$]* | ?:[\\/]* )  continue;;
1235    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236  esac
1237  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238done
1239
1240# There might be people who depend on the old broken behavior: `$host'
1241# used to hold the argument of --host etc.
1242# FIXME: To remove some day.
1243build=$build_alias
1244host=$host_alias
1245target=$target_alias
1246
1247# FIXME: To remove some day.
1248if test "x$host_alias" != x; then
1249  if test "x$build_alias" = x; then
1250    cross_compiling=maybe
1251  elif test "x$build_alias" != "x$host_alias"; then
1252    cross_compiling=yes
1253  fi
1254fi
1255
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
1260
1261
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265  as_fn_error $? "working directory cannot be determined"
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267  as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272  ac_srcdir_defaulted=yes
1273  # Try the directory containing this script, then the parent directory.
1274  ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276	 X"$as_myself" : 'X\(//\)[^/]' \| \
1277	 X"$as_myself" : 'X\(//\)$' \| \
1278	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)[^/].*/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)$/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\).*/{
1293	    s//\1/
1294	    q
1295	  }
1296	  s/.*/./; q'`
1297  srcdir=$ac_confdir
1298  if test ! -r "$srcdir/$ac_unique_file"; then
1299    srcdir=..
1300  fi
1301else
1302  ac_srcdir_defaulted=no
1303fi
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
1310	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311	pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314  srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_env_${ac_var}_value=\$${ac_var}
1325  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
1328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333  # Omit some internal or obsolete options to make the list less imposing.
1334  # This message is too long to be a string in the A/UX 3.1 sh.
1335  cat <<_ACEOF
1336\`configure' configures this package to adapt to many kinds of systems.
1337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346  -h, --help              display this help and exit
1347      --help=short        display options specific to this package
1348      --help=recursive    display the short help of all the included packages
1349  -V, --version           display version information and exit
1350  -q, --quiet, --silent   do not print \`checking ...' messages
1351      --cache-file=FILE   cache test results in FILE [disabled]
1352  -C, --config-cache      alias for \`--cache-file=config.cache'
1353  -n, --no-create         do not create output files
1354      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356Installation directories:
1357  --prefix=PREFIX         install architecture-independent files in PREFIX
1358                          [$ac_default_prefix]
1359  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                          [PREFIX]
1361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
1370  --bindir=DIR            user executables [EPREFIX/bin]
1371  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372  --libexecdir=DIR        program executables [EPREFIX/libexec]
1373  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1377  --libdir=DIR            object code libraries [EPREFIX/lib]
1378  --includedir=DIR        C header files [PREFIX/include]
1379  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1380  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1381  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1382  --infodir=DIR           info documentation [DATAROOTDIR/info]
1383  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1384  --mandir=DIR            man documentation [DATAROOTDIR/man]
1385  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1386  --htmldir=DIR           html documentation [DOCDIR]
1387  --dvidir=DIR            dvi documentation [DOCDIR]
1388  --pdfdir=DIR            pdf documentation [DOCDIR]
1389  --psdir=DIR             ps documentation [DOCDIR]
1390_ACEOF
1391
1392  cat <<\_ACEOF
1393
1394Program names:
1395  --program-prefix=PREFIX            prepend PREFIX to installed program names
1396  --program-suffix=SUFFIX            append SUFFIX to installed program names
1397  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1398
1399System types:
1400  --build=BUILD     configure for building on BUILD [guessed]
1401  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402  --target=TARGET   configure for building compilers for TARGET [HOST]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407
1408  cat <<\_ACEOF
1409
1410Optional Features:
1411  --disable-option-checking  ignore unrecognized --enable/--with options
1412  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1413  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1414  --enable-silent-rules   less verbose build output (undo: "make V=1")
1415  --disable-silent-rules  verbose build output (undo: "make V=0")
1416  --disable-nls           do not use Native Language Support
1417  --enable-dependency-tracking
1418                          do not reject slow dependency extractors
1419  --disable-dependency-tracking
1420                          speeds up one-time build
1421  --disable-rpath         do not hardcode runtime library paths
1422  --disable-sdltest       Do not try to compile and run a test SDL program
1423  --disable-sound         Disables sound
1424  --disable-install       No installation. Played from the source directory.
1425
1426Optional Packages:
1427  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1430  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1431  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1432  --with-included-gettext use the GNU gettext library included here
1433  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1434  --without-libintl-prefix     don't search for libintl in includedir and libdir
1435  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1436  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1437
1438Some influential environment variables:
1439  CC          C compiler command
1440  CFLAGS      C compiler flags
1441  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442              nonstandard directory <lib dir>
1443  LIBS        libraries to pass to the linker, e.g. -l<library>
1444  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445              you have headers in a nonstandard directory <include dir>
1446  CPP         C preprocessor
1447
1448Use these variables to override the choices made by `configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
1450
1451Report bugs to the package provider.
1452_ACEOF
1453ac_status=$?
1454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457  # If there are subdirs, report their specific --help.
1458  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459    test -d "$ac_dir" ||
1460      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461      continue
1462    ac_builddir=.
1463
1464case "$ac_dir" in
1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466*)
1467  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468  # A ".." for each directory in $ac_dir_suffix.
1469  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470  case $ac_top_builddir_sub in
1471  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473  esac ;;
1474esac
1475ac_abs_top_builddir=$ac_pwd
1476ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477# for backward compatibility:
1478ac_top_builddir=$ac_top_build_prefix
1479
1480case $srcdir in
1481  .)  # We are building in place.
1482    ac_srcdir=.
1483    ac_top_srcdir=$ac_top_builddir_sub
1484    ac_abs_top_srcdir=$ac_pwd ;;
1485  [\\/]* | ?:[\\/]* )  # Absolute name.
1486    ac_srcdir=$srcdir$ac_dir_suffix;
1487    ac_top_srcdir=$srcdir
1488    ac_abs_top_srcdir=$srcdir ;;
1489  *) # Relative name.
1490    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491    ac_top_srcdir=$ac_top_build_prefix$srcdir
1492    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493esac
1494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496    cd "$ac_dir" || { ac_status=$?; continue; }
1497    # Check for guested configure.
1498    if test -f "$ac_srcdir/configure.gnu"; then
1499      echo &&
1500      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501    elif test -f "$ac_srcdir/configure"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure" --help=recursive
1504    else
1505      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506    fi || ac_status=$?
1507    cd "$ac_pwd" || { ac_status=$?; break; }
1508  done
1509fi
1510
1511test -n "$ac_init_help" && exit $ac_status
1512if $ac_init_version; then
1513  cat <<\_ACEOF
1514configure
1515generated by GNU Autoconf 2.69
1516
1517Copyright (C) 2012 Free Software Foundation, Inc.
1518This configure script is free software; the Free Software Foundation
1519gives unlimited permission to copy, distribute and modify it.
1520_ACEOF
1521  exit
1522fi
1523
1524## ------------------------ ##
1525## Autoconf initialization. ##
1526## ------------------------ ##
1527
1528# ac_fn_c_try_compile LINENO
1529# --------------------------
1530# Try to compile conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_c_try_compile ()
1532{
1533  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534  rm -f conftest.$ac_objext
1535  if { { ac_try="$ac_compile"
1536case "(($ac_try" in
1537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538  *) ac_try_echo=$ac_try;;
1539esac
1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541$as_echo "$ac_try_echo"; } >&5
1542  (eval "$ac_compile") 2>conftest.err
1543  ac_status=$?
1544  if test -s conftest.err; then
1545    grep -v '^ *+' conftest.err >conftest.er1
1546    cat conftest.er1 >&5
1547    mv -f conftest.er1 conftest.err
1548  fi
1549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550  test $ac_status = 0; } && {
1551	 test -z "$ac_c_werror_flag" ||
1552	 test ! -s conftest.err
1553       } && test -s conftest.$ac_objext; then :
1554  ac_retval=0
1555else
1556  $as_echo "$as_me: failed program was:" >&5
1557sed 's/^/| /' conftest.$ac_ext >&5
1558
1559	ac_retval=1
1560fi
1561  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562  as_fn_set_status $ac_retval
1563
1564} # ac_fn_c_try_compile
1565
1566# ac_fn_c_try_link LINENO
1567# -----------------------
1568# Try to link conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_link ()
1570{
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  rm -f conftest.$ac_objext conftest$ac_exeext
1573  if { { ac_try="$ac_link"
1574case "(($ac_try" in
1575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576  *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580  (eval "$ac_link") 2>conftest.err
1581  ac_status=$?
1582  if test -s conftest.err; then
1583    grep -v '^ *+' conftest.err >conftest.er1
1584    cat conftest.er1 >&5
1585    mv -f conftest.er1 conftest.err
1586  fi
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; } && {
1589	 test -z "$ac_c_werror_flag" ||
1590	 test ! -s conftest.err
1591       } && test -s conftest$ac_exeext && {
1592	 test "$cross_compiling" = yes ||
1593	 test -x conftest$ac_exeext
1594       }; then :
1595  ac_retval=0
1596else
1597  $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600	ac_retval=1
1601fi
1602  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604  # interfere with the next link command; also delete a directory that is
1605  # left behind by Apple's compiler.  We do this before executing the actions.
1606  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608  as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_link
1611
1612# ac_fn_c_try_cpp LINENO
1613# ----------------------
1614# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_cpp ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  if { { ac_try="$ac_cpp conftest.$ac_ext"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626  ac_status=$?
1627  if test -s conftest.err; then
1628    grep -v '^ *+' conftest.err >conftest.er1
1629    cat conftest.er1 >&5
1630    mv -f conftest.er1 conftest.err
1631  fi
1632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } > conftest.i && {
1634	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635	 test ! -s conftest.err
1636       }; then :
1637  ac_retval=0
1638else
1639  $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642    ac_retval=1
1643fi
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645  as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_cpp
1648
1649# ac_fn_c_try_run LINENO
1650# ----------------------
1651# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1652# that executables *can* be run.
1653ac_fn_c_try_run ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  if { { ac_try="$ac_link"
1657case "(($ac_try" in
1658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659  *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663  (eval "$ac_link") 2>&5
1664  ac_status=$?
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1667  { { case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673  (eval "$ac_try") 2>&5
1674  ac_status=$?
1675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676  test $ac_status = 0; }; }; then :
1677  ac_retval=0
1678else
1679  $as_echo "$as_me: program exited with status $ac_status" >&5
1680       $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683       ac_retval=$ac_status
1684fi
1685  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687  as_fn_set_status $ac_retval
1688
1689} # ac_fn_c_try_run
1690
1691# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1692# -------------------------------------------
1693# Tests whether TYPE exists after having included INCLUDES, setting cache
1694# variable VAR accordingly.
1695ac_fn_c_check_type ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; }
1700if eval \${$3+:} false; then :
1701  $as_echo_n "(cached) " >&6
1702else
1703  eval "$3=no"
1704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h.  */
1706$4
1707int
1708main ()
1709{
1710if (sizeof ($2))
1711	 return 0;
1712  ;
1713  return 0;
1714}
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then :
1717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h.  */
1719$4
1720int
1721main ()
1722{
1723if (sizeof (($2)))
1724	    return 0;
1725  ;
1726  return 0;
1727}
1728_ACEOF
1729if ac_fn_c_try_compile "$LINENO"; then :
1730
1731else
1732  eval "$3=yes"
1733fi
1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735fi
1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737fi
1738eval ac_res=\$$3
1739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743} # ac_fn_c_check_type
1744
1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists and can be compiled using the include files in
1748# INCLUDES, setting the cache variable VAR accordingly.
1749ac_fn_c_check_header_compile ()
1750{
1751  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if eval \${$3+:} false; then :
1755  $as_echo_n "(cached) " >&6
1756else
1757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h.  */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763  eval "$3=yes"
1764else
1765  eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774} # ac_fn_c_check_header_compile
1775
1776# ac_fn_c_check_func LINENO FUNC VAR
1777# ----------------------------------
1778# Tests whether FUNC exists, setting the cache variable VAR accordingly
1779ac_fn_c_check_func ()
1780{
1781  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785  $as_echo_n "(cached) " >&6
1786else
1787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h.  */
1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1790   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1791#define $2 innocuous_$2
1792
1793/* System header to define __stub macros and hopefully few prototypes,
1794    which can conflict with char $2 (); below.
1795    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1796    <limits.h> exists even on freestanding compilers.  */
1797
1798#ifdef __STDC__
1799# include <limits.h>
1800#else
1801# include <assert.h>
1802#endif
1803
1804#undef $2
1805
1806/* Override any GCC internal prototype to avoid an error.
1807   Use char because int might match the return type of a GCC
1808   builtin and then its argument prototype would still apply.  */
1809#ifdef __cplusplus
1810extern "C"
1811#endif
1812char $2 ();
1813/* The GNU C library defines this for functions which it implements
1814    to always fail with ENOSYS.  Some functions are actually named
1815    something starting with __ and the normal name is an alias.  */
1816#if defined __stub_$2 || defined __stub___$2
1817choke me
1818#endif
1819
1820int
1821main ()
1822{
1823return $2 ();
1824  ;
1825  return 0;
1826}
1827_ACEOF
1828if ac_fn_c_try_link "$LINENO"; then :
1829  eval "$3=yes"
1830else
1831  eval "$3=no"
1832fi
1833rm -f core conftest.err conftest.$ac_objext \
1834    conftest$ac_exeext conftest.$ac_ext
1835fi
1836eval ac_res=\$$3
1837	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841} # ac_fn_c_check_func
1842
1843# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844# -------------------------------------------------------
1845# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846# the include files in INCLUDES and setting the cache variable VAR
1847# accordingly.
1848ac_fn_c_check_header_mongrel ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  if eval \${$3+:} false; then :
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856fi
1857eval ac_res=\$$3
1858	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860else
1861  # Is the header compilable?
1862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863$as_echo_n "checking $2 usability... " >&6; }
1864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866$4
1867#include <$2>
1868_ACEOF
1869if ac_fn_c_try_compile "$LINENO"; then :
1870  ac_header_compiler=yes
1871else
1872  ac_header_compiler=no
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876$as_echo "$ac_header_compiler" >&6; }
1877
1878# Is the header present?
1879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880$as_echo_n "checking $2 presence... " >&6; }
1881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h.  */
1883#include <$2>
1884_ACEOF
1885if ac_fn_c_try_cpp "$LINENO"; then :
1886  ac_header_preproc=yes
1887else
1888  ac_header_preproc=no
1889fi
1890rm -f conftest.err conftest.i conftest.$ac_ext
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892$as_echo "$ac_header_preproc" >&6; }
1893
1894# So?  What about this header?
1895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896  yes:no: )
1897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901    ;;
1902  no:yes:* )
1903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1906$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1910$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913    ;;
1914esac
1915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if eval \${$3+:} false; then :
1918  $as_echo_n "(cached) " >&6
1919else
1920  eval "$3=\$ac_header_compiler"
1921fi
1922eval ac_res=\$$3
1923	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924$as_echo "$ac_res" >&6; }
1925fi
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928} # ac_fn_c_check_header_mongrel
1929
1930# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1931# --------------------------------------------
1932# Tries to find the compile-time value of EXPR in a program that includes
1933# INCLUDES, setting VAR accordingly. Returns whether the value could be
1934# computed
1935ac_fn_c_compute_int ()
1936{
1937  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938  if test "$cross_compiling" = yes; then
1939    # Depending upon the size, compute the lo and hi bounds.
1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943int
1944main ()
1945{
1946static int test_array [1 - 2 * !(($2) >= 0)];
1947test_array [0] = 0;
1948return test_array [0];
1949
1950  ;
1951  return 0;
1952}
1953_ACEOF
1954if ac_fn_c_try_compile "$LINENO"; then :
1955  ac_lo=0 ac_mid=0
1956  while :; do
1957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959$4
1960int
1961main ()
1962{
1963static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1964test_array [0] = 0;
1965return test_array [0];
1966
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972  ac_hi=$ac_mid; break
1973else
1974  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1975			if test $ac_lo -le $ac_mid; then
1976			  ac_lo= ac_hi=
1977			  break
1978			fi
1979			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982  done
1983else
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987int
1988main ()
1989{
1990static int test_array [1 - 2 * !(($2) < 0)];
1991test_array [0] = 0;
1992return test_array [0];
1993
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999  ac_hi=-1 ac_mid=-1
2000  while :; do
2001    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003$4
2004int
2005main ()
2006{
2007static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2008test_array [0] = 0;
2009return test_array [0];
2010
2011  ;
2012  return 0;
2013}
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016  ac_lo=$ac_mid; break
2017else
2018  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2019			if test $ac_mid -le $ac_hi; then
2020			  ac_lo= ac_hi=
2021			  break
2022			fi
2023			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2024fi
2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026  done
2027else
2028  ac_lo= ac_hi=
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033# Binary search between lo and hi bounds.
2034while test "x$ac_lo" != "x$ac_hi"; do
2035  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037/* end confdefs.h.  */
2038$4
2039int
2040main ()
2041{
2042static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2043test_array [0] = 0;
2044return test_array [0];
2045
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051  ac_hi=$ac_mid
2052else
2053  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056done
2057case $ac_lo in #((
2058?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2059'') ac_retval=1 ;;
2060esac
2061  else
2062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h.  */
2064$4
2065static long int longval () { return $2; }
2066static unsigned long int ulongval () { return $2; }
2067#include <stdio.h>
2068#include <stdlib.h>
2069int
2070main ()
2071{
2072
2073  FILE *f = fopen ("conftest.val", "w");
2074  if (! f)
2075    return 1;
2076  if (($2) < 0)
2077    {
2078      long int i = longval ();
2079      if (i != ($2))
2080	return 1;
2081      fprintf (f, "%ld", i);
2082    }
2083  else
2084    {
2085      unsigned long int i = ulongval ();
2086      if (i != ($2))
2087	return 1;
2088      fprintf (f, "%lu", i);
2089    }
2090  /* Do not output a trailing newline, as this causes \r\n confusion
2091     on some platforms.  */
2092  return ferror (f) || fclose (f) != 0;
2093
2094  ;
2095  return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_run "$LINENO"; then :
2099  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2100else
2101  ac_retval=1
2102fi
2103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2104  conftest.$ac_objext conftest.beam conftest.$ac_ext
2105rm -f conftest.val
2106
2107  fi
2108  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109  as_fn_set_status $ac_retval
2110
2111} # ac_fn_c_compute_int
2112cat >config.log <<_ACEOF
2113This file contains any messages produced by compilers while
2114running configure, to aid debugging if configure makes a mistake.
2115
2116It was created by $as_me, which was
2117generated by GNU Autoconf 2.69.  Invocation command line was
2118
2119  $ $0 $@
2120
2121_ACEOF
2122exec 5>>config.log
2123{
2124cat <<_ASUNAME
2125## --------- ##
2126## Platform. ##
2127## --------- ##
2128
2129hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2130uname -m = `(uname -m) 2>/dev/null || echo unknown`
2131uname -r = `(uname -r) 2>/dev/null || echo unknown`
2132uname -s = `(uname -s) 2>/dev/null || echo unknown`
2133uname -v = `(uname -v) 2>/dev/null || echo unknown`
2134
2135/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2136/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2137
2138/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2139/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2140/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2141/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2142/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2143/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2144/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2145
2146_ASUNAME
2147
2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151  IFS=$as_save_IFS
2152  test -z "$as_dir" && as_dir=.
2153    $as_echo "PATH: $as_dir"
2154  done
2155IFS=$as_save_IFS
2156
2157} >&5
2158
2159cat >&5 <<_ACEOF
2160
2161
2162## ----------- ##
2163## Core tests. ##
2164## ----------- ##
2165
2166_ACEOF
2167
2168
2169# Keep a trace of the command line.
2170# Strip out --no-create and --no-recursion so they do not pile up.
2171# Strip out --silent because we don't want to record it for future runs.
2172# Also quote any args containing shell meta-characters.
2173# Make two passes to allow for proper duplicate-argument suppression.
2174ac_configure_args=
2175ac_configure_args0=
2176ac_configure_args1=
2177ac_must_keep_next=false
2178for ac_pass in 1 2
2179do
2180  for ac_arg
2181  do
2182    case $ac_arg in
2183    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2184    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2185    | -silent | --silent | --silen | --sile | --sil)
2186      continue ;;
2187    *\'*)
2188      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2189    esac
2190    case $ac_pass in
2191    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2192    2)
2193      as_fn_append ac_configure_args1 " '$ac_arg'"
2194      if test $ac_must_keep_next = true; then
2195	ac_must_keep_next=false # Got value, back to normal.
2196      else
2197	case $ac_arg in
2198	  *=* | --config-cache | -C | -disable-* | --disable-* \
2199	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2200	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2201	  | -with-* | --with-* | -without-* | --without-* | --x)
2202	    case "$ac_configure_args0 " in
2203	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204	    esac
2205	    ;;
2206	  -* ) ac_must_keep_next=true ;;
2207	esac
2208      fi
2209      as_fn_append ac_configure_args " '$ac_arg'"
2210      ;;
2211    esac
2212  done
2213done
2214{ ac_configure_args0=; unset ac_configure_args0;}
2215{ ac_configure_args1=; unset ac_configure_args1;}
2216
2217# When interrupted or exit'd, cleanup temporary files, and complete
2218# config.log.  We remove comments because anyway the quotes in there
2219# would cause problems or look ugly.
2220# WARNING: Use '\'' to represent an apostrophe within the trap.
2221# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2222trap 'exit_status=$?
2223  # Save into config.log some information that might help in debugging.
2224  {
2225    echo
2226
2227    $as_echo "## ---------------- ##
2228## Cache variables. ##
2229## ---------------- ##"
2230    echo
2231    # The following way of writing the cache mishandles newlines in values,
2232(
2233  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2234    eval ac_val=\$$ac_var
2235    case $ac_val in #(
2236    *${as_nl}*)
2237      case $ac_var in #(
2238      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2240      esac
2241      case $ac_var in #(
2242      _ | IFS | as_nl) ;; #(
2243      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2244      *) { eval $ac_var=; unset $ac_var;} ;;
2245      esac ;;
2246    esac
2247  done
2248  (set) 2>&1 |
2249    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2250    *${as_nl}ac_space=\ *)
2251      sed -n \
2252	"s/'\''/'\''\\\\'\'''\''/g;
2253	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2254      ;; #(
2255    *)
2256      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2257      ;;
2258    esac |
2259    sort
2260)
2261    echo
2262
2263    $as_echo "## ----------------- ##
2264## Output variables. ##
2265## ----------------- ##"
2266    echo
2267    for ac_var in $ac_subst_vars
2268    do
2269      eval ac_val=\$$ac_var
2270      case $ac_val in
2271      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272      esac
2273      $as_echo "$ac_var='\''$ac_val'\''"
2274    done | sort
2275    echo
2276
2277    if test -n "$ac_subst_files"; then
2278      $as_echo "## ------------------- ##
2279## File substitutions. ##
2280## ------------------- ##"
2281      echo
2282      for ac_var in $ac_subst_files
2283      do
2284	eval ac_val=\$$ac_var
2285	case $ac_val in
2286	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287	esac
2288	$as_echo "$ac_var='\''$ac_val'\''"
2289      done | sort
2290      echo
2291    fi
2292
2293    if test -s confdefs.h; then
2294      $as_echo "## ----------- ##
2295## confdefs.h. ##
2296## ----------- ##"
2297      echo
2298      cat confdefs.h
2299      echo
2300    fi
2301    test "$ac_signal" != 0 &&
2302      $as_echo "$as_me: caught signal $ac_signal"
2303    $as_echo "$as_me: exit $exit_status"
2304  } >&5
2305  rm -f core *.core core.conftest.* &&
2306    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307    exit $exit_status
2308' 0
2309for ac_signal in 1 2 13 15; do
2310  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2311done
2312ac_signal=0
2313
2314# confdefs.h avoids OS command line length limits that DEFS can exceed.
2315rm -f -r conftest* confdefs.h
2316
2317$as_echo "/* confdefs.h */" > confdefs.h
2318
2319# Predefined preprocessor variables.
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_NAME "$PACKAGE_NAME"
2323_ACEOF
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327_ACEOF
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_VERSION "$PACKAGE_VERSION"
2331_ACEOF
2332
2333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_STRING "$PACKAGE_STRING"
2335_ACEOF
2336
2337cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339_ACEOF
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_URL "$PACKAGE_URL"
2343_ACEOF
2344
2345
2346# Let the site file select an alternate cache file if it wants to.
2347# Prefer an explicitly selected file to automatically selected ones.
2348ac_site_file1=NONE
2349ac_site_file2=NONE
2350if test -n "$CONFIG_SITE"; then
2351  # We do not want a PATH search for config.site.
2352  case $CONFIG_SITE in #((
2353    -*)  ac_site_file1=./$CONFIG_SITE;;
2354    */*) ac_site_file1=$CONFIG_SITE;;
2355    *)   ac_site_file1=./$CONFIG_SITE;;
2356  esac
2357elif test "x$prefix" != xNONE; then
2358  ac_site_file1=$prefix/share/config.site
2359  ac_site_file2=$prefix/etc/config.site
2360else
2361  ac_site_file1=$ac_default_prefix/share/config.site
2362  ac_site_file2=$ac_default_prefix/etc/config.site
2363fi
2364for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2365do
2366  test "x$ac_site_file" = xNONE && continue
2367  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2368    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2370    sed 's/^/| /' "$ac_site_file" >&5
2371    . "$ac_site_file" \
2372      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374as_fn_error $? "failed to load site script $ac_site_file
2375See \`config.log' for more details" "$LINENO" 5; }
2376  fi
2377done
2378
2379if test -r "$cache_file"; then
2380  # Some versions of bash will fail to source /dev/null (special files
2381  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2382  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384$as_echo "$as_me: loading cache $cache_file" >&6;}
2385    case $cache_file in
2386      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387      *)                      . "./$cache_file";;
2388    esac
2389  fi
2390else
2391  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392$as_echo "$as_me: creating cache $cache_file" >&6;}
2393  >$cache_file
2394fi
2395
2396as_fn_append ac_header_list " stdlib.h"
2397as_fn_append ac_header_list " unistd.h"
2398as_fn_append ac_header_list " sys/param.h"
2399# Check that the precious variables saved in the cache have kept the same
2400# value.
2401ac_cache_corrupted=false
2402for ac_var in $ac_precious_vars; do
2403  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2404  eval ac_new_set=\$ac_env_${ac_var}_set
2405  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2406  eval ac_new_val=\$ac_env_${ac_var}_value
2407  case $ac_old_set,$ac_new_set in
2408    set,)
2409      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2411      ac_cache_corrupted=: ;;
2412    ,set)
2413      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2415      ac_cache_corrupted=: ;;
2416    ,);;
2417    *)
2418      if test "x$ac_old_val" != "x$ac_new_val"; then
2419	# differences in whitespace do not lead to failure.
2420	ac_old_val_w=`echo x $ac_old_val`
2421	ac_new_val_w=`echo x $ac_new_val`
2422	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2423	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2425	  ac_cache_corrupted=:
2426	else
2427	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2429	  eval $ac_var=\$ac_old_val
2430	fi
2431	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2432$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2433	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2434$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2435      fi;;
2436  esac
2437  # Pass precious variables to config.status.
2438  if test "$ac_new_set" = set; then
2439    case $ac_new_val in
2440    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2441    *) ac_arg=$ac_var=$ac_new_val ;;
2442    esac
2443    case " $ac_configure_args " in
2444      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2445      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2446    esac
2447  fi
2448done
2449if $ac_cache_corrupted; then
2450  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2454  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455fi
2456## -------------------- ##
2457## Main body of script. ##
2458## -------------------- ##
2459
2460ac_ext=c
2461ac_cpp='$CPP $CPPFLAGS'
2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465
2466
2467
2468ac_aux_dir=
2469for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2470  if test -f "$ac_dir/install-sh"; then
2471    ac_aux_dir=$ac_dir
2472    ac_install_sh="$ac_aux_dir/install-sh -c"
2473    break
2474  elif test -f "$ac_dir/install.sh"; then
2475    ac_aux_dir=$ac_dir
2476    ac_install_sh="$ac_aux_dir/install.sh -c"
2477    break
2478  elif test -f "$ac_dir/shtool"; then
2479    ac_aux_dir=$ac_dir
2480    ac_install_sh="$ac_aux_dir/shtool install -c"
2481    break
2482  fi
2483done
2484if test -z "$ac_aux_dir"; then
2485  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2486fi
2487
2488# These three variables are undocumented and unsupported,
2489# and are intended to be withdrawn in a future Autoconf release.
2490# They can cause serious problems if a builder's source tree is in a directory
2491# whose full name contains unusual characters.
2492ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2493ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2494ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2495
2496
2497# Make sure we can run config.sub.
2498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2499  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2500
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2502$as_echo_n "checking build system type... " >&6; }
2503if ${ac_cv_build+:} false; then :
2504  $as_echo_n "(cached) " >&6
2505else
2506  ac_build_alias=$build_alias
2507test "x$ac_build_alias" = x &&
2508  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509test "x$ac_build_alias" = x &&
2510  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2512  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2513
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2516$as_echo "$ac_cv_build" >&6; }
2517case $ac_cv_build in
2518*-*-*) ;;
2519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2520esac
2521build=$ac_cv_build
2522ac_save_IFS=$IFS; IFS='-'
2523set x $ac_cv_build
2524shift
2525build_cpu=$1
2526build_vendor=$2
2527shift; shift
2528# Remember, the first character of IFS is used to create $*,
2529# except with old shells:
2530build_os=$*
2531IFS=$ac_save_IFS
2532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2533
2534
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2536$as_echo_n "checking host system type... " >&6; }
2537if ${ac_cv_host+:} false; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  if test "x$host_alias" = x; then
2541  ac_cv_host=$ac_cv_build
2542else
2543  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2544    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2545fi
2546
2547fi
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2549$as_echo "$ac_cv_host" >&6; }
2550case $ac_cv_host in
2551*-*-*) ;;
2552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2553esac
2554host=$ac_cv_host
2555ac_save_IFS=$IFS; IFS='-'
2556set x $ac_cv_host
2557shift
2558host_cpu=$1
2559host_vendor=$2
2560shift; shift
2561# Remember, the first character of IFS is used to create $*,
2562# except with old shells:
2563host_os=$*
2564IFS=$ac_save_IFS
2565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2566
2567
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2569$as_echo_n "checking target system type... " >&6; }
2570if ${ac_cv_target+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  if test "x$target_alias" = x; then
2574  ac_cv_target=$ac_cv_host
2575else
2576  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2577    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2578fi
2579
2580fi
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2582$as_echo "$ac_cv_target" >&6; }
2583case $ac_cv_target in
2584*-*-*) ;;
2585*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2586esac
2587target=$ac_cv_target
2588ac_save_IFS=$IFS; IFS='-'
2589set x $ac_cv_target
2590shift
2591target_cpu=$1
2592target_vendor=$2
2593shift; shift
2594# Remember, the first character of IFS is used to create $*,
2595# except with old shells:
2596target_os=$*
2597IFS=$ac_save_IFS
2598case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2599
2600
2601# The aliases save the names the user supplied, while $host etc.
2602# will get canonicalized.
2603test -n "$target_alias" &&
2604  test "$program_prefix$program_suffix$program_transform_name" = \
2605    NONENONEs,x,x, &&
2606  program_prefix=${target_alias}-
2607
2608ac_config_headers="$ac_config_headers config.h"
2609
2610
2611am__api_version='1.15'
2612
2613# Find a good install program.  We prefer a C program (faster),
2614# so one script is as good as another.  But avoid the broken or
2615# incompatible versions:
2616# SysV /etc/install, /usr/sbin/install
2617# SunOS /usr/etc/install
2618# IRIX /sbin/install
2619# AIX /bin/install
2620# AmigaOS /C/install, which installs bootblocks on floppy discs
2621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2622# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2624# OS/2's system install, which has a completely different semantic
2625# ./install, which can be erroneously created by make from ./install.sh.
2626# Reject install programs that cannot install multiple files.
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2628$as_echo_n "checking for a BSD-compatible install... " >&6; }
2629if test -z "$INSTALL"; then
2630if ${ac_cv_path_install+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    # Account for people who put trailing slashes in PATH elements.
2639case $as_dir/ in #((
2640  ./ | .// | /[cC]/* | \
2641  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2642  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643  /usr/ucb/* ) ;;
2644  *)
2645    # OSF1 and SCO ODT 3.0 have their own names for install.
2646    # Don't use installbsd from OSF since it installs stuff as root
2647    # by default.
2648    for ac_prog in ginstall scoinst install; do
2649      for ac_exec_ext in '' $ac_executable_extensions; do
2650	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2651	  if test $ac_prog = install &&
2652	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653	    # AIX install.  It has an incompatible calling convention.
2654	    :
2655	  elif test $ac_prog = install &&
2656	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657	    # program-specific install script used by HP pwplus--don't use.
2658	    :
2659	  else
2660	    rm -rf conftest.one conftest.two conftest.dir
2661	    echo one > conftest.one
2662	    echo two > conftest.two
2663	    mkdir conftest.dir
2664	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2665	      test -s conftest.one && test -s conftest.two &&
2666	      test -s conftest.dir/conftest.one &&
2667	      test -s conftest.dir/conftest.two
2668	    then
2669	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2670	      break 3
2671	    fi
2672	  fi
2673	fi
2674      done
2675    done
2676    ;;
2677esac
2678
2679  done
2680IFS=$as_save_IFS
2681
2682rm -rf conftest.one conftest.two conftest.dir
2683
2684fi
2685  if test "${ac_cv_path_install+set}" = set; then
2686    INSTALL=$ac_cv_path_install
2687  else
2688    # As a last resort, use the slow shell script.  Don't cache a
2689    # value for INSTALL within a source directory, because that will
2690    # break other packages using the cache if that directory is
2691    # removed, or if the value is a relative name.
2692    INSTALL=$ac_install_sh
2693  fi
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2696$as_echo "$INSTALL" >&6; }
2697
2698# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2699# It thinks the first close brace ends the variable substitution.
2700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2701
2702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2703
2704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2707$as_echo_n "checking whether build environment is sane... " >&6; }
2708# Reject unsafe characters in $srcdir or the absolute working directory
2709# name.  Accept space and tab only in the latter.
2710am_lf='
2711'
2712case `pwd` in
2713  *[\\\"\#\$\&\'\`$am_lf]*)
2714    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2715esac
2716case $srcdir in
2717  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2718    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2719esac
2720
2721# Do 'set' in a subshell so we don't clobber the current shell's
2722# arguments.  Must try -L first in case configure is actually a
2723# symlink; some systems play weird games with the mod time of symlinks
2724# (eg FreeBSD returns the mod time of the symlink's containing
2725# directory).
2726if (
2727   am_has_slept=no
2728   for am_try in 1 2; do
2729     echo "timestamp, slept: $am_has_slept" > conftest.file
2730     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2731     if test "$*" = "X"; then
2732	# -L didn't work.
2733	set X `ls -t "$srcdir/configure" conftest.file`
2734     fi
2735     if test "$*" != "X $srcdir/configure conftest.file" \
2736	&& test "$*" != "X conftest.file $srcdir/configure"; then
2737
2738	# If neither matched, then we have a broken ls.  This can happen
2739	# if, for instance, CONFIG_SHELL is bash and it inherits a
2740	# broken ls alias from the environment.  This has actually
2741	# happened.  Such a system could not be considered "sane".
2742	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2743  alias in your environment" "$LINENO" 5
2744     fi
2745     if test "$2" = conftest.file || test $am_try -eq 2; then
2746       break
2747     fi
2748     # Just in case.
2749     sleep 1
2750     am_has_slept=yes
2751   done
2752   test "$2" = conftest.file
2753   )
2754then
2755   # Ok.
2756   :
2757else
2758   as_fn_error $? "newly created file is older than distributed files!
2759Check your system clock" "$LINENO" 5
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2762$as_echo "yes" >&6; }
2763# If we didn't sleep, we still need to ensure time stamps of config.status and
2764# generated files are strictly newer.
2765am_sleep_pid=
2766if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2767  ( sleep 1 ) &
2768  am_sleep_pid=$!
2769fi
2770
2771rm -f conftest.file
2772
2773test "$program_prefix" != NONE &&
2774  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2775# Use a double $ so make ignores it.
2776test "$program_suffix" != NONE &&
2777  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2778# Double any \ or $.
2779# By default was `s,x,x', remove it if useless.
2780ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2781program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2782
2783# Expand $ac_aux_dir to an absolute path.
2784am_aux_dir=`cd "$ac_aux_dir" && pwd`
2785
2786if test x"${MISSING+set}" != xset; then
2787  case $am_aux_dir in
2788  *\ * | *\	*)
2789    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2790  *)
2791    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2792  esac
2793fi
2794# Use eval to expand $SHELL
2795if eval "$MISSING --is-lightweight"; then
2796  am_missing_run="$MISSING "
2797else
2798  am_missing_run=
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2800$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2801fi
2802
2803if test x"${install_sh+set}" != xset; then
2804  case $am_aux_dir in
2805  *\ * | *\	*)
2806    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2807  *)
2808    install_sh="\${SHELL} $am_aux_dir/install-sh"
2809  esac
2810fi
2811
2812# Installed binaries are usually stripped using 'strip' when the user
2813# run "make install-strip".  However 'strip' might not be the right
2814# tool to use in cross-compilation environments, therefore Automake
2815# will honor the 'STRIP' environment variable to overrule this program.
2816if test "$cross_compiling" != no; then
2817  if test -n "$ac_tool_prefix"; then
2818  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2819set dummy ${ac_tool_prefix}strip; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_STRIP+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$STRIP"; then
2826  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833    for ac_exec_ext in '' $ac_executable_extensions; do
2834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845STRIP=$ac_cv_prog_STRIP
2846if test -n "$STRIP"; then
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2848$as_echo "$STRIP" >&6; }
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855fi
2856if test -z "$ac_cv_prog_STRIP"; then
2857  ac_ct_STRIP=$STRIP
2858  # Extract the first word of "strip", so it can be a program name with args.
2859set dummy strip; ac_word=$2
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861$as_echo_n "checking for $ac_word... " >&6; }
2862if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  if test -n "$ac_ct_STRIP"; then
2866  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871  IFS=$as_save_IFS
2872  test -z "$as_dir" && as_dir=.
2873    for ac_exec_ext in '' $ac_executable_extensions; do
2874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875    ac_cv_prog_ac_ct_STRIP="strip"
2876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880  done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2886if test -n "$ac_ct_STRIP"; then
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2888$as_echo "$ac_ct_STRIP" >&6; }
2889else
2890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891$as_echo "no" >&6; }
2892fi
2893
2894  if test "x$ac_ct_STRIP" = x; then
2895    STRIP=":"
2896  else
2897    case $cross_compiling:$ac_tool_warned in
2898yes:)
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901ac_tool_warned=yes ;;
2902esac
2903    STRIP=$ac_ct_STRIP
2904  fi
2905else
2906  STRIP="$ac_cv_prog_STRIP"
2907fi
2908
2909fi
2910INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2911
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2913$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2914if test -z "$MKDIR_P"; then
2915  if ${ac_cv_path_mkdir+:} false; then :
2916  $as_echo_n "(cached) " >&6
2917else
2918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923    for ac_prog in mkdir gmkdir; do
2924	 for ac_exec_ext in '' $ac_executable_extensions; do
2925	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2926	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2927	     'mkdir (GNU coreutils) '* | \
2928	     'mkdir (coreutils) '* | \
2929	     'mkdir (fileutils) '4.1*)
2930	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2931	       break 3;;
2932	   esac
2933	 done
2934       done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939
2940  test -d ./--version && rmdir ./--version
2941  if test "${ac_cv_path_mkdir+set}" = set; then
2942    MKDIR_P="$ac_cv_path_mkdir -p"
2943  else
2944    # As a last resort, use the slow shell script.  Don't cache a
2945    # value for MKDIR_P within a source directory, because that will
2946    # break other packages using the cache if that directory is
2947    # removed, or if the value is a relative name.
2948    MKDIR_P="$ac_install_sh -d"
2949  fi
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2952$as_echo "$MKDIR_P" >&6; }
2953
2954for ac_prog in gawk mawk nawk awk
2955do
2956  # Extract the first word of "$ac_prog", so it can be a program name with args.
2957set dummy $ac_prog; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_AWK+:} false; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if test -n "$AWK"; then
2964  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  test -z "$as_dir" && as_dir=.
2971    for ac_exec_ext in '' $ac_executable_extensions; do
2972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973    ac_cv_prog_AWK="$ac_prog"
2974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975    break 2
2976  fi
2977done
2978  done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983AWK=$ac_cv_prog_AWK
2984if test -n "$AWK"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2986$as_echo "$AWK" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992
2993  test -n "$AWK" && break
2994done
2995
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2997$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2998set x ${MAKE-make}
2999ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3000if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  cat >conftest.make <<\_ACEOF
3004SHELL = /bin/sh
3005all:
3006	@echo '@@@%%%=$(MAKE)=@@@%%%'
3007_ACEOF
3008# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3009case `${MAKE-make} -f conftest.make 2>/dev/null` in
3010  *@@@%%%=?*=@@@%%%*)
3011    eval ac_cv_prog_make_${ac_make}_set=yes;;
3012  *)
3013    eval ac_cv_prog_make_${ac_make}_set=no;;
3014esac
3015rm -f conftest.make
3016fi
3017if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019$as_echo "yes" >&6; }
3020  SET_MAKE=
3021else
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024  SET_MAKE="MAKE=${MAKE-make}"
3025fi
3026
3027rm -rf .tst 2>/dev/null
3028mkdir .tst 2>/dev/null
3029if test -d .tst; then
3030  am__leading_dot=.
3031else
3032  am__leading_dot=_
3033fi
3034rmdir .tst 2>/dev/null
3035
3036# Check whether --enable-silent-rules was given.
3037if test "${enable_silent_rules+set}" = set; then :
3038  enableval=$enable_silent_rules;
3039fi
3040
3041case $enable_silent_rules in # (((
3042  yes) AM_DEFAULT_VERBOSITY=0;;
3043   no) AM_DEFAULT_VERBOSITY=1;;
3044    *) AM_DEFAULT_VERBOSITY=1;;
3045esac
3046am_make=${MAKE-make}
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3048$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3049if ${am_cv_make_support_nested_variables+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  if $as_echo 'TRUE=$(BAR$(V))
3053BAR0=false
3054BAR1=true
3055V=1
3056am__doit:
3057	@$(TRUE)
3058.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3059  am_cv_make_support_nested_variables=yes
3060else
3061  am_cv_make_support_nested_variables=no
3062fi
3063fi
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3065$as_echo "$am_cv_make_support_nested_variables" >&6; }
3066if test $am_cv_make_support_nested_variables = yes; then
3067    AM_V='$(V)'
3068  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3069else
3070  AM_V=$AM_DEFAULT_VERBOSITY
3071  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3072fi
3073AM_BACKSLASH='\'
3074
3075if test "`cd $srcdir && pwd`" != "`pwd`"; then
3076  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3077  # is not polluted with repeated "-I."
3078  am__isrc=' -I$(srcdir)'
3079  # test to see if srcdir already configured
3080  if test -f $srcdir/config.status; then
3081    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3082  fi
3083fi
3084
3085# test whether we have cygpath
3086if test -z "$CYGPATH_W"; then
3087  if (cygpath --version) >/dev/null 2>/dev/null; then
3088    CYGPATH_W='cygpath -w'
3089  else
3090    CYGPATH_W=echo
3091  fi
3092fi
3093
3094
3095# Define the identity of the package.
3096
3097 PACKAGE=lpairs
3098 VERSION=1.0.5
3099
3100
3101cat >>confdefs.h <<_ACEOF
3102#define PACKAGE "$PACKAGE"
3103_ACEOF
3104
3105
3106cat >>confdefs.h <<_ACEOF
3107#define VERSION "$VERSION"
3108_ACEOF
3109
3110# Some tools Automake needs.
3111
3112ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3113
3114
3115AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3116
3117
3118AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3119
3120
3121AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3122
3123
3124MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3125
3126# For better backward compatibility.  To be removed once Automake 1.9.x
3127# dies out for good.  For more background, see:
3128# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3129# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3130mkdir_p='$(MKDIR_P)'
3131
3132# We need awk for the "check" target (and possibly the TAP driver).  The
3133# system "awk" is bad on some platforms.
3134# Always define AMTAR for backward compatibility.  Yes, it's still used
3135# in the wild :-(  We should find a proper way to deprecate it ...
3136AMTAR='$${TAR-tar}'
3137
3138
3139# We'll loop over all known methods to create a tar archive until one works.
3140_am_tools='gnutar  pax cpio none'
3141
3142am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3143
3144
3145
3146
3147
3148
3149# POSIX will say in a future version that running "rm -f" with no argument
3150# is OK; and we want to be able to make that assumption in our Makefile
3151# recipes.  So use an aggressive probe to check that the usage we want is
3152# actually supported "in the wild" to an acceptable degree.
3153# See automake bug#10828.
3154# To make any issue more visible, cause the running configure to be aborted
3155# by default if the 'rm' program in use doesn't match our expectations; the
3156# user can still override this though.
3157if rm -f && rm -fr && rm -rf; then : OK; else
3158  cat >&2 <<'END'
3159Oops!
3160
3161Your 'rm' program seems unable to run without file operands specified
3162on the command line, even when the '-f' option is present.  This is contrary
3163to the behaviour of most rm programs out there, and not conforming with
3164the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3165
3166Please tell bug-automake@gnu.org about your system, including the value
3167of your $PATH and any error possibly output before this message.  This
3168can help us improve future automake versions.
3169
3170END
3171  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3172    echo 'Configuration will proceed anyway, since you have set the' >&2
3173    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3174    echo >&2
3175  else
3176    cat >&2 <<'END'
3177Aborting the configuration process, to ensure you take notice of the issue.
3178
3179You can download and install GNU coreutils to get an 'rm' implementation
3180that behaves properly: <http://www.gnu.org/software/coreutils/>.
3181
3182If you want to complete the configuration process using your problematic
3183'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3184to "yes", and re-run configure.
3185
3186END
3187    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3188  fi
3189fi
3190
3191
3192
3193        MKINSTALLDIRS=
3194  if test -n "$ac_aux_dir"; then
3195    case "$ac_aux_dir" in
3196      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3197      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3198    esac
3199  fi
3200  if test -z "$MKINSTALLDIRS"; then
3201    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3202  fi
3203
3204
3205
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3207$as_echo_n "checking whether NLS is requested... " >&6; }
3208    # Check whether --enable-nls was given.
3209if test "${enable_nls+set}" = set; then :
3210  enableval=$enable_nls; USE_NLS=$enableval
3211else
3212  USE_NLS=yes
3213fi
3214
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3216$as_echo "$USE_NLS" >&6; }
3217
3218
3219
3220
3221
3222
3223# Prepare PATH_SEPARATOR.
3224# The user is always right.
3225if test "${PATH_SEPARATOR+set}" != set; then
3226  echo "#! /bin/sh" >conf$$.sh
3227  echo  "exit 0"   >>conf$$.sh
3228  chmod +x conf$$.sh
3229  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3230    PATH_SEPARATOR=';'
3231  else
3232    PATH_SEPARATOR=:
3233  fi
3234  rm -f conf$$.sh
3235fi
3236
3237# Find out how to test for executable files. Don't use a zero-byte file,
3238# as systems may use methods other than mode bits to determine executability.
3239cat >conf$$.file <<_ASEOF
3240#! /bin/sh
3241exit 0
3242_ASEOF
3243chmod +x conf$$.file
3244if test -x conf$$.file >/dev/null 2>&1; then
3245  ac_executable_p="test -x"
3246else
3247  ac_executable_p="test -f"
3248fi
3249rm -f conf$$.file
3250
3251# Extract the first word of "msgfmt", so it can be a program name with args.
3252set dummy msgfmt; ac_word=$2
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254$as_echo_n "checking for $ac_word... " >&6; }
3255if ${ac_cv_path_MSGFMT+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  case "$MSGFMT" in
3259  [\\/]* | ?:[\\/]*)
3260    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3261    ;;
3262  *)
3263    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3264    for ac_dir in $PATH; do
3265      IFS="$ac_save_IFS"
3266      test -z "$ac_dir" && ac_dir=.
3267      for ac_exec_ext in '' $ac_executable_extensions; do
3268        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3269          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3270     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3271            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3272            break 2
3273          fi
3274        fi
3275      done
3276    done
3277    IFS="$ac_save_IFS"
3278  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3279    ;;
3280esac
3281fi
3282MSGFMT="$ac_cv_path_MSGFMT"
3283if test "$MSGFMT" != ":"; then
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3285$as_echo "$MSGFMT" >&6; }
3286else
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289fi
3290
3291  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3292set dummy gmsgfmt; ac_word=$2
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294$as_echo_n "checking for $ac_word... " >&6; }
3295if ${ac_cv_path_GMSGFMT+:} false; then :
3296  $as_echo_n "(cached) " >&6
3297else
3298  case $GMSGFMT in
3299  [\\/]* | ?:[\\/]*)
3300  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3301  ;;
3302  *)
3303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3319  ;;
3320esac
3321fi
3322GMSGFMT=$ac_cv_path_GMSGFMT
3323if test -n "$GMSGFMT"; then
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3325$as_echo "$GMSGFMT" >&6; }
3326else
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328$as_echo "no" >&6; }
3329fi
3330
3331
3332
3333
3334# Prepare PATH_SEPARATOR.
3335# The user is always right.
3336if test "${PATH_SEPARATOR+set}" != set; then
3337  echo "#! /bin/sh" >conf$$.sh
3338  echo  "exit 0"   >>conf$$.sh
3339  chmod +x conf$$.sh
3340  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3341    PATH_SEPARATOR=';'
3342  else
3343    PATH_SEPARATOR=:
3344  fi
3345  rm -f conf$$.sh
3346fi
3347
3348# Find out how to test for executable files. Don't use a zero-byte file,
3349# as systems may use methods other than mode bits to determine executability.
3350cat >conf$$.file <<_ASEOF
3351#! /bin/sh
3352exit 0
3353_ASEOF
3354chmod +x conf$$.file
3355if test -x conf$$.file >/dev/null 2>&1; then
3356  ac_executable_p="test -x"
3357else
3358  ac_executable_p="test -f"
3359fi
3360rm -f conf$$.file
3361
3362# Extract the first word of "xgettext", so it can be a program name with args.
3363set dummy xgettext; ac_word=$2
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365$as_echo_n "checking for $ac_word... " >&6; }
3366if ${ac_cv_path_XGETTEXT+:} false; then :
3367  $as_echo_n "(cached) " >&6
3368else
3369  case "$XGETTEXT" in
3370  [\\/]* | ?:[\\/]*)
3371    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3372    ;;
3373  *)
3374    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3375    for ac_dir in $PATH; do
3376      IFS="$ac_save_IFS"
3377      test -z "$ac_dir" && ac_dir=.
3378      for ac_exec_ext in '' $ac_executable_extensions; do
3379        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3380          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3381     (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
3382            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3383            break 2
3384          fi
3385        fi
3386      done
3387    done
3388    IFS="$ac_save_IFS"
3389  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3390    ;;
3391esac
3392fi
3393XGETTEXT="$ac_cv_path_XGETTEXT"
3394if test "$XGETTEXT" != ":"; then
3395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3396$as_echo "$XGETTEXT" >&6; }
3397else
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399$as_echo "no" >&6; }
3400fi
3401
3402    rm -f messages.po
3403
3404
3405# Prepare PATH_SEPARATOR.
3406# The user is always right.
3407if test "${PATH_SEPARATOR+set}" != set; then
3408  echo "#! /bin/sh" >conf$$.sh
3409  echo  "exit 0"   >>conf$$.sh
3410  chmod +x conf$$.sh
3411  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3412    PATH_SEPARATOR=';'
3413  else
3414    PATH_SEPARATOR=:
3415  fi
3416  rm -f conf$$.sh
3417fi
3418
3419# Find out how to test for executable files. Don't use a zero-byte file,
3420# as systems may use methods other than mode bits to determine executability.
3421cat >conf$$.file <<_ASEOF
3422#! /bin/sh
3423exit 0
3424_ASEOF
3425chmod +x conf$$.file
3426if test -x conf$$.file >/dev/null 2>&1; then
3427  ac_executable_p="test -x"
3428else
3429  ac_executable_p="test -f"
3430fi
3431rm -f conf$$.file
3432
3433# Extract the first word of "msgmerge", so it can be a program name with args.
3434set dummy msgmerge; ac_word=$2
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436$as_echo_n "checking for $ac_word... " >&6; }
3437if ${ac_cv_path_MSGMERGE+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440  case "$MSGMERGE" in
3441  [\\/]* | ?:[\\/]*)
3442    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3443    ;;
3444  *)
3445    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3446    for ac_dir in $PATH; do
3447      IFS="$ac_save_IFS"
3448      test -z "$ac_dir" && ac_dir=.
3449      for ac_exec_ext in '' $ac_executable_extensions; do
3450        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3451          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3452            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3453            break 2
3454          fi
3455        fi
3456      done
3457    done
3458    IFS="$ac_save_IFS"
3459  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3460    ;;
3461esac
3462fi
3463MSGMERGE="$ac_cv_path_MSGMERGE"
3464if test "$MSGMERGE" != ":"; then
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3466$as_echo "$MSGMERGE" >&6; }
3467else
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
3470fi
3471
3472
3473      if test "$GMSGFMT" != ":"; then
3474            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3475       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3476      : ;
3477    else
3478      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3479      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3480$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3481      GMSGFMT=":"
3482    fi
3483  fi
3484
3485      if test "$XGETTEXT" != ":"; then
3486            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3487       (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
3488      : ;
3489    else
3490      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3491$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3492      XGETTEXT=":"
3493    fi
3494        rm -f messages.po
3495  fi
3496
3497  ac_config_commands="$ac_config_commands default-1"
3498
3499
3500DEPDIR="${am__leading_dot}deps"
3501
3502ac_config_commands="$ac_config_commands depfiles"
3503
3504
3505am_make=${MAKE-make}
3506cat > confinc << 'END'
3507am__doit:
3508	@echo this is the am__doit target
3509.PHONY: am__doit
3510END
3511# If we don't find an include directive, just comment out the code.
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3513$as_echo_n "checking for style of include used by $am_make... " >&6; }
3514am__include="#"
3515am__quote=
3516_am_result=none
3517# First try GNU make style include.
3518echo "include confinc" > confmf
3519# Ignore all kinds of additional output from 'make'.
3520case `$am_make -s -f confmf 2> /dev/null` in #(
3521*the\ am__doit\ target*)
3522  am__include=include
3523  am__quote=
3524  _am_result=GNU
3525  ;;
3526esac
3527# Now try BSD make style include.
3528if test "$am__include" = "#"; then
3529   echo '.include "confinc"' > confmf
3530   case `$am_make -s -f confmf 2> /dev/null` in #(
3531   *the\ am__doit\ target*)
3532     am__include=.include
3533     am__quote="\""
3534     _am_result=BSD
3535     ;;
3536   esac
3537fi
3538
3539
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3541$as_echo "$_am_result" >&6; }
3542rm -f confinc confmf
3543
3544# Check whether --enable-dependency-tracking was given.
3545if test "${enable_dependency_tracking+set}" = set; then :
3546  enableval=$enable_dependency_tracking;
3547fi
3548
3549if test "x$enable_dependency_tracking" != xno; then
3550  am_depcomp="$ac_aux_dir/depcomp"
3551  AMDEPBACKSLASH='\'
3552  am__nodep='_no'
3553fi
3554 if test "x$enable_dependency_tracking" != xno; then
3555  AMDEP_TRUE=
3556  AMDEP_FALSE='#'
3557else
3558  AMDEP_TRUE='#'
3559  AMDEP_FALSE=
3560fi
3561
3562
3563ac_ext=c
3564ac_cpp='$CPP $CPPFLAGS'
3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568if test -n "$ac_tool_prefix"; then
3569  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3570set dummy ${ac_tool_prefix}gcc; ac_word=$2
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572$as_echo_n "checking for $ac_word... " >&6; }
3573if ${ac_cv_prog_CC+:} false; then :
3574  $as_echo_n "(cached) " >&6
3575else
3576  if test -n "$CC"; then
3577  ac_cv_prog_CC="$CC" # Let the user override the test.
3578else
3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582  IFS=$as_save_IFS
3583  test -z "$as_dir" && as_dir=.
3584    for ac_exec_ext in '' $ac_executable_extensions; do
3585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588    break 2
3589  fi
3590done
3591  done
3592IFS=$as_save_IFS
3593
3594fi
3595fi
3596CC=$ac_cv_prog_CC
3597if test -n "$CC"; then
3598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599$as_echo "$CC" >&6; }
3600else
3601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602$as_echo "no" >&6; }
3603fi
3604
3605
3606fi
3607if test -z "$ac_cv_prog_CC"; then
3608  ac_ct_CC=$CC
3609  # Extract the first word of "gcc", so it can be a program name with args.
3610set dummy gcc; ac_word=$2
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612$as_echo_n "checking for $ac_word... " >&6; }
3613if ${ac_cv_prog_ac_ct_CC+:} false; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616  if test -n "$ac_ct_CC"; then
3617  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3618else
3619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620for as_dir in $PATH
3621do
3622  IFS=$as_save_IFS
3623  test -z "$as_dir" && as_dir=.
3624    for ac_exec_ext in '' $ac_executable_extensions; do
3625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626    ac_cv_prog_ac_ct_CC="gcc"
3627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628    break 2
3629  fi
3630done
3631  done
3632IFS=$as_save_IFS
3633
3634fi
3635fi
3636ac_ct_CC=$ac_cv_prog_ac_ct_CC
3637if test -n "$ac_ct_CC"; then
3638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3639$as_echo "$ac_ct_CC" >&6; }
3640else
3641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642$as_echo "no" >&6; }
3643fi
3644
3645  if test "x$ac_ct_CC" = x; then
3646    CC=""
3647  else
3648    case $cross_compiling:$ac_tool_warned in
3649yes:)
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3652ac_tool_warned=yes ;;
3653esac
3654    CC=$ac_ct_CC
3655  fi
3656else
3657  CC="$ac_cv_prog_CC"
3658fi
3659
3660if test -z "$CC"; then
3661          if test -n "$ac_tool_prefix"; then
3662    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3663set dummy ${ac_tool_prefix}cc; ac_word=$2
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665$as_echo_n "checking for $ac_word... " >&6; }
3666if ${ac_cv_prog_CC+:} false; then :
3667  $as_echo_n "(cached) " >&6
3668else
3669  if test -n "$CC"; then
3670  ac_cv_prog_CC="$CC" # Let the user override the test.
3671else
3672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673for as_dir in $PATH
3674do
3675  IFS=$as_save_IFS
3676  test -z "$as_dir" && as_dir=.
3677    for ac_exec_ext in '' $ac_executable_extensions; do
3678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679    ac_cv_prog_CC="${ac_tool_prefix}cc"
3680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681    break 2
3682  fi
3683done
3684  done
3685IFS=$as_save_IFS
3686
3687fi
3688fi
3689CC=$ac_cv_prog_CC
3690if test -n "$CC"; then
3691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692$as_echo "$CC" >&6; }
3693else
3694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695$as_echo "no" >&6; }
3696fi
3697
3698
3699  fi
3700fi
3701if test -z "$CC"; then
3702  # Extract the first word of "cc", so it can be a program name with args.
3703set dummy cc; ac_word=$2
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705$as_echo_n "checking for $ac_word... " >&6; }
3706if ${ac_cv_prog_CC+:} false; then :
3707  $as_echo_n "(cached) " >&6
3708else
3709  if test -n "$CC"; then
3710  ac_cv_prog_CC="$CC" # Let the user override the test.
3711else
3712  ac_prog_rejected=no
3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH
3715do
3716  IFS=$as_save_IFS
3717  test -z "$as_dir" && as_dir=.
3718    for ac_exec_ext in '' $ac_executable_extensions; do
3719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3720    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3721       ac_prog_rejected=yes
3722       continue
3723     fi
3724    ac_cv_prog_CC="cc"
3725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726    break 2
3727  fi
3728done
3729  done
3730IFS=$as_save_IFS
3731
3732if test $ac_prog_rejected = yes; then
3733  # We found a bogon in the path, so make sure we never use it.
3734  set dummy $ac_cv_prog_CC
3735  shift
3736  if test $# != 0; then
3737    # We chose a different compiler from the bogus one.
3738    # However, it has the same basename, so the bogon will be chosen
3739    # first if we set CC to just the basename; use the full file name.
3740    shift
3741    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3742  fi
3743fi
3744fi
3745fi
3746CC=$ac_cv_prog_CC
3747if test -n "$CC"; then
3748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749$as_echo "$CC" >&6; }
3750else
3751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752$as_echo "no" >&6; }
3753fi
3754
3755
3756fi
3757if test -z "$CC"; then
3758  if test -n "$ac_tool_prefix"; then
3759  for ac_prog in cl.exe
3760  do
3761    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3762set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764$as_echo_n "checking for $ac_word... " >&6; }
3765if ${ac_cv_prog_CC+:} false; then :
3766  $as_echo_n "(cached) " >&6
3767else
3768  if test -n "$CC"; then
3769  ac_cv_prog_CC="$CC" # Let the user override the test.
3770else
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774  IFS=$as_save_IFS
3775  test -z "$as_dir" && as_dir=.
3776    for ac_exec_ext in '' $ac_executable_extensions; do
3777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780    break 2
3781  fi
3782done
3783  done
3784IFS=$as_save_IFS
3785
3786fi
3787fi
3788CC=$ac_cv_prog_CC
3789if test -n "$CC"; then
3790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791$as_echo "$CC" >&6; }
3792else
3793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794$as_echo "no" >&6; }
3795fi
3796
3797
3798    test -n "$CC" && break
3799  done
3800fi
3801if test -z "$CC"; then
3802  ac_ct_CC=$CC
3803  for ac_prog in cl.exe
3804do
3805  # Extract the first word of "$ac_prog", so it can be a program name with args.
3806set dummy $ac_prog; ac_word=$2
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808$as_echo_n "checking for $ac_word... " >&6; }
3809if ${ac_cv_prog_ac_ct_CC+:} false; then :
3810  $as_echo_n "(cached) " >&6
3811else
3812  if test -n "$ac_ct_CC"; then
3813  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3814else
3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816for as_dir in $PATH
3817do
3818  IFS=$as_save_IFS
3819  test -z "$as_dir" && as_dir=.
3820    for ac_exec_ext in '' $ac_executable_extensions; do
3821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822    ac_cv_prog_ac_ct_CC="$ac_prog"
3823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824    break 2
3825  fi
3826done
3827  done
3828IFS=$as_save_IFS
3829
3830fi
3831fi
3832ac_ct_CC=$ac_cv_prog_ac_ct_CC
3833if test -n "$ac_ct_CC"; then
3834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3835$as_echo "$ac_ct_CC" >&6; }
3836else
3837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838$as_echo "no" >&6; }
3839fi
3840
3841
3842  test -n "$ac_ct_CC" && break
3843done
3844
3845  if test "x$ac_ct_CC" = x; then
3846    CC=""
3847  else
3848    case $cross_compiling:$ac_tool_warned in
3849yes:)
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3852ac_tool_warned=yes ;;
3853esac
3854    CC=$ac_ct_CC
3855  fi
3856fi
3857
3858fi
3859
3860
3861test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863as_fn_error $? "no acceptable C compiler found in \$PATH
3864See \`config.log' for more details" "$LINENO" 5; }
3865
3866# Provide some information about the compiler.
3867$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3868set X $ac_compile
3869ac_compiler=$2
3870for ac_option in --version -v -V -qversion; do
3871  { { ac_try="$ac_compiler $ac_option >&5"
3872case "(($ac_try" in
3873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874  *) ac_try_echo=$ac_try;;
3875esac
3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877$as_echo "$ac_try_echo"; } >&5
3878  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3879  ac_status=$?
3880  if test -s conftest.err; then
3881    sed '10a\
3882... rest of stderr output deleted ...
3883         10q' conftest.err >conftest.er1
3884    cat conftest.er1 >&5
3885  fi
3886  rm -f conftest.er1 conftest.err
3887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888  test $ac_status = 0; }
3889done
3890
3891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892/* end confdefs.h.  */
3893
3894int
3895main ()
3896{
3897
3898  ;
3899  return 0;
3900}
3901_ACEOF
3902ac_clean_files_save=$ac_clean_files
3903ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3904# Try to create an executable without -o first, disregard a.out.
3905# It will help us diagnose broken compilers, and finding out an intuition
3906# of exeext.
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3908$as_echo_n "checking whether the C compiler works... " >&6; }
3909ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3910
3911# The possible output files:
3912ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3913
3914ac_rmfiles=
3915for ac_file in $ac_files
3916do
3917  case $ac_file in
3918    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3919    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3920  esac
3921done
3922rm -f $ac_rmfiles
3923
3924if { { ac_try="$ac_link_default"
3925case "(($ac_try" in
3926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927  *) ac_try_echo=$ac_try;;
3928esac
3929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930$as_echo "$ac_try_echo"; } >&5
3931  (eval "$ac_link_default") 2>&5
3932  ac_status=$?
3933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934  test $ac_status = 0; }; then :
3935  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3936# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3937# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3938# so that the user can short-circuit this test for compilers unknown to
3939# Autoconf.
3940for ac_file in $ac_files ''
3941do
3942  test -f "$ac_file" || continue
3943  case $ac_file in
3944    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3945	;;
3946    [ab].out )
3947	# We found the default executable, but exeext='' is most
3948	# certainly right.
3949	break;;
3950    *.* )
3951	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3952	then :; else
3953	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3954	fi
3955	# We set ac_cv_exeext here because the later test for it is not
3956	# safe: cross compilers may not add the suffix if given an `-o'
3957	# argument, so we may need to know it at that point already.
3958	# Even if this section looks crufty: it has the advantage of
3959	# actually working.
3960	break;;
3961    * )
3962	break;;
3963  esac
3964done
3965test "$ac_cv_exeext" = no && ac_cv_exeext=
3966
3967else
3968  ac_file=''
3969fi
3970if test -z "$ac_file"; then :
3971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973$as_echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978as_fn_error 77 "C compiler cannot create executables
3979See \`config.log' for more details" "$LINENO" 5; }
3980else
3981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982$as_echo "yes" >&6; }
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3985$as_echo_n "checking for C compiler default output file name... " >&6; }
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987$as_echo "$ac_file" >&6; }
3988ac_exeext=$ac_cv_exeext
3989
3990rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3991ac_clean_files=$ac_clean_files_save
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993$as_echo_n "checking for suffix of executables... " >&6; }
3994if { { ac_try="$ac_link"
3995case "(($ac_try" in
3996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997  *) ac_try_echo=$ac_try;;
3998esac
3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000$as_echo "$ac_try_echo"; } >&5
4001  (eval "$ac_link") 2>&5
4002  ac_status=$?
4003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004  test $ac_status = 0; }; then :
4005  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4007# work properly (i.e., refer to `conftest.exe'), while it won't with
4008# `rm'.
4009for ac_file in conftest.exe conftest conftest.*; do
4010  test -f "$ac_file" || continue
4011  case $ac_file in
4012    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014	  break;;
4015    * ) break;;
4016  esac
4017done
4018else
4019  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4022See \`config.log' for more details" "$LINENO" 5; }
4023fi
4024rm -f conftest conftest$ac_cv_exeext
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026$as_echo "$ac_cv_exeext" >&6; }
4027
4028rm -f conftest.$ac_ext
4029EXEEXT=$ac_cv_exeext
4030ac_exeext=$EXEEXT
4031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h.  */
4033#include <stdio.h>
4034int
4035main ()
4036{
4037FILE *f = fopen ("conftest.out", "w");
4038 return ferror (f) || fclose (f) != 0;
4039
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044ac_clean_files="$ac_clean_files conftest.out"
4045# Check that the compiler produces executables we can run.  If not, either
4046# the compiler is broken, or we cross compile.
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4048$as_echo_n "checking whether we are cross compiling... " >&6; }
4049if test "$cross_compiling" != yes; then
4050  { { ac_try="$ac_link"
4051case "(($ac_try" in
4052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053  *) ac_try_echo=$ac_try;;
4054esac
4055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056$as_echo "$ac_try_echo"; } >&5
4057  (eval "$ac_link") 2>&5
4058  ac_status=$?
4059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060  test $ac_status = 0; }
4061  if { ac_try='./conftest$ac_cv_exeext'
4062  { { case "(($ac_try" in
4063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064  *) ac_try_echo=$ac_try;;
4065esac
4066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067$as_echo "$ac_try_echo"; } >&5
4068  (eval "$ac_try") 2>&5
4069  ac_status=$?
4070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071  test $ac_status = 0; }; }; then
4072    cross_compiling=no
4073  else
4074    if test "$cross_compiling" = maybe; then
4075	cross_compiling=yes
4076    else
4077	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4079as_fn_error $? "cannot run C compiled programs.
4080If you meant to cross compile, use \`--host'.
4081See \`config.log' for more details" "$LINENO" 5; }
4082    fi
4083  fi
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4086$as_echo "$cross_compiling" >&6; }
4087
4088rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4089ac_clean_files=$ac_clean_files_save
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4091$as_echo_n "checking for suffix of object files... " >&6; }
4092if ${ac_cv_objext+:} false; then :
4093  $as_echo_n "(cached) " >&6
4094else
4095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096/* end confdefs.h.  */
4097
4098int
4099main ()
4100{
4101
4102  ;
4103  return 0;
4104}
4105_ACEOF
4106rm -f conftest.o conftest.obj
4107if { { ac_try="$ac_compile"
4108case "(($ac_try" in
4109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110  *) ac_try_echo=$ac_try;;
4111esac
4112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4113$as_echo "$ac_try_echo"; } >&5
4114  (eval "$ac_compile") 2>&5
4115  ac_status=$?
4116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117  test $ac_status = 0; }; then :
4118  for ac_file in conftest.o conftest.obj conftest.*; do
4119  test -f "$ac_file" || continue;
4120  case $ac_file in
4121    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4122    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4123       break;;
4124  esac
4125done
4126else
4127  $as_echo "$as_me: failed program was:" >&5
4128sed 's/^/| /' conftest.$ac_ext >&5
4129
4130{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4132as_fn_error $? "cannot compute suffix of object files: cannot compile
4133See \`config.log' for more details" "$LINENO" 5; }
4134fi
4135rm -f conftest.$ac_cv_objext conftest.$ac_ext
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4138$as_echo "$ac_cv_objext" >&6; }
4139OBJEXT=$ac_cv_objext
4140ac_objext=$OBJEXT
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4142$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4143if ${ac_cv_c_compiler_gnu+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148
4149int
4150main ()
4151{
4152#ifndef __GNUC__
4153       choke me
4154#endif
4155
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160if ac_fn_c_try_compile "$LINENO"; then :
4161  ac_compiler_gnu=yes
4162else
4163  ac_compiler_gnu=no
4164fi
4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166ac_cv_c_compiler_gnu=$ac_compiler_gnu
4167
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4170$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4171if test $ac_compiler_gnu = yes; then
4172  GCC=yes
4173else
4174  GCC=
4175fi
4176ac_test_CFLAGS=${CFLAGS+set}
4177ac_save_CFLAGS=$CFLAGS
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4179$as_echo_n "checking whether $CC accepts -g... " >&6; }
4180if ${ac_cv_prog_cc_g+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  ac_save_c_werror_flag=$ac_c_werror_flag
4184   ac_c_werror_flag=yes
4185   ac_cv_prog_cc_g=no
4186   CFLAGS="-g"
4187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189
4190int
4191main ()
4192{
4193
4194  ;
4195  return 0;
4196}
4197_ACEOF
4198if ac_fn_c_try_compile "$LINENO"; then :
4199  ac_cv_prog_cc_g=yes
4200else
4201  CFLAGS=""
4202      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h.  */
4204
4205int
4206main ()
4207{
4208
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_compile "$LINENO"; then :
4214
4215else
4216  ac_c_werror_flag=$ac_save_c_werror_flag
4217	 CFLAGS="-g"
4218	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h.  */
4220
4221int
4222main ()
4223{
4224
4225  ;
4226  return 0;
4227}
4228_ACEOF
4229if ac_fn_c_try_compile "$LINENO"; then :
4230  ac_cv_prog_cc_g=yes
4231fi
4232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233fi
4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235fi
4236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237   ac_c_werror_flag=$ac_save_c_werror_flag
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4240$as_echo "$ac_cv_prog_cc_g" >&6; }
4241if test "$ac_test_CFLAGS" = set; then
4242  CFLAGS=$ac_save_CFLAGS
4243elif test $ac_cv_prog_cc_g = yes; then
4244  if test "$GCC" = yes; then
4245    CFLAGS="-g -O2"
4246  else
4247    CFLAGS="-g"
4248  fi
4249else
4250  if test "$GCC" = yes; then
4251    CFLAGS="-O2"
4252  else
4253    CFLAGS=
4254  fi
4255fi
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4257$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4258if ${ac_cv_prog_cc_c89+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  ac_cv_prog_cc_c89=no
4262ac_save_CC=$CC
4263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264/* end confdefs.h.  */
4265#include <stdarg.h>
4266#include <stdio.h>
4267struct stat;
4268/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4269struct buf { int x; };
4270FILE * (*rcsopen) (struct buf *, struct stat *, int);
4271static char *e (p, i)
4272     char **p;
4273     int i;
4274{
4275  return p[i];
4276}
4277static char *f (char * (*g) (char **, int), char **p, ...)
4278{
4279  char *s;
4280  va_list v;
4281  va_start (v,p);
4282  s = g (p, va_arg (v,int));
4283  va_end (v);
4284  return s;
4285}
4286
4287/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4288   function prototypes and stuff, but not '\xHH' hex character constants.
4289   These don't provoke an error unfortunately, instead are silently treated
4290   as 'x'.  The following induces an error, until -std is added to get
4291   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4292   array size at least.  It's necessary to write '\x00'==0 to get something
4293   that's true only with -std.  */
4294int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4295
4296/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4297   inside strings and character constants.  */
4298#define FOO(x) 'x'
4299int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4300
4301int test (int i, double x);
4302struct s1 {int (*f) (int a);};
4303struct s2 {int (*f) (double a);};
4304int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4305int argc;
4306char **argv;
4307int
4308main ()
4309{
4310return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4311  ;
4312  return 0;
4313}
4314_ACEOF
4315for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4316	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4317do
4318  CC="$ac_save_CC $ac_arg"
4319  if ac_fn_c_try_compile "$LINENO"; then :
4320  ac_cv_prog_cc_c89=$ac_arg
4321fi
4322rm -f core conftest.err conftest.$ac_objext
4323  test "x$ac_cv_prog_cc_c89" != "xno" && break
4324done
4325rm -f conftest.$ac_ext
4326CC=$ac_save_CC
4327
4328fi
4329# AC_CACHE_VAL
4330case "x$ac_cv_prog_cc_c89" in
4331  x)
4332    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4333$as_echo "none needed" >&6; } ;;
4334  xno)
4335    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4336$as_echo "unsupported" >&6; } ;;
4337  *)
4338    CC="$CC $ac_cv_prog_cc_c89"
4339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4340$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4341esac
4342if test "x$ac_cv_prog_cc_c89" != xno; then :
4343
4344fi
4345
4346ac_ext=c
4347ac_cpp='$CPP $CPPFLAGS'
4348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351
4352ac_ext=c
4353ac_cpp='$CPP $CPPFLAGS'
4354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4358$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4359if ${am_cv_prog_cc_c_o+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364
4365int
4366main ()
4367{
4368
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373  # Make sure it works both with $CC and with simple cc.
4374  # Following AC_PROG_CC_C_O, we do the test twice because some
4375  # compilers refuse to overwrite an existing .o file with -o,
4376  # though they will create one.
4377  am_cv_prog_cc_c_o=yes
4378  for am_i in 1 2; do
4379    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4380   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } \
4384         && test -f conftest2.$ac_objext; then
4385      : OK
4386    else
4387      am_cv_prog_cc_c_o=no
4388      break
4389    fi
4390  done
4391  rm -f core conftest*
4392  unset am_i
4393fi
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4395$as_echo "$am_cv_prog_cc_c_o" >&6; }
4396if test "$am_cv_prog_cc_c_o" != yes; then
4397   # Losing compiler, so override with the script.
4398   # FIXME: It is wrong to rewrite CC.
4399   # But if we don't then we get into trouble of one sort or another.
4400   # A longer-term fix would be to have automake use am__CC in this case,
4401   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4402   CC="$am_aux_dir/compile $CC"
4403fi
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410
4411depcc="$CC"   am_compiler_list=
4412
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4414$as_echo_n "checking dependency style of $depcc... " >&6; }
4415if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4416  $as_echo_n "(cached) " >&6
4417else
4418  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4419  # We make a subdir and do the tests there.  Otherwise we can end up
4420  # making bogus files that we don't know about and never remove.  For
4421  # instance it was reported that on HP-UX the gcc test will end up
4422  # making a dummy file named 'D' -- because '-MD' means "put the output
4423  # in D".
4424  rm -rf conftest.dir
4425  mkdir conftest.dir
4426  # Copy depcomp to subdir because otherwise we won't find it if we're
4427  # using a relative directory.
4428  cp "$am_depcomp" conftest.dir
4429  cd conftest.dir
4430  # We will build objects and dependencies in a subdirectory because
4431  # it helps to detect inapplicable dependency modes.  For instance
4432  # both Tru64's cc and ICC support -MD to output dependencies as a
4433  # side effect of compilation, but ICC will put the dependencies in
4434  # the current directory while Tru64 will put them in the object
4435  # directory.
4436  mkdir sub
4437
4438  am_cv_CC_dependencies_compiler_type=none
4439  if test "$am_compiler_list" = ""; then
4440     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4441  fi
4442  am__universal=false
4443  case " $depcc " in #(
4444     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4445     esac
4446
4447  for depmode in $am_compiler_list; do
4448    # Setup a source with many dependencies, because some compilers
4449    # like to wrap large dependency lists on column 80 (with \), and
4450    # we should not choose a depcomp mode which is confused by this.
4451    #
4452    # We need to recreate these files for each test, as the compiler may
4453    # overwrite some of them when testing with obscure command lines.
4454    # This happens at least with the AIX C compiler.
4455    : > sub/conftest.c
4456    for i in 1 2 3 4 5 6; do
4457      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4458      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4459      # Solaris 10 /bin/sh.
4460      echo '/* dummy */' > sub/conftst$i.h
4461    done
4462    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4463
4464    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4465    # mode.  It turns out that the SunPro C++ compiler does not properly
4466    # handle '-M -o', and we need to detect this.  Also, some Intel
4467    # versions had trouble with output in subdirs.
4468    am__obj=sub/conftest.${OBJEXT-o}
4469    am__minus_obj="-o $am__obj"
4470    case $depmode in
4471    gcc)
4472      # This depmode causes a compiler race in universal mode.
4473      test "$am__universal" = false || continue
4474      ;;
4475    nosideeffect)
4476      # After this tag, mechanisms are not by side-effect, so they'll
4477      # only be used when explicitly requested.
4478      if test "x$enable_dependency_tracking" = xyes; then
4479	continue
4480      else
4481	break
4482      fi
4483      ;;
4484    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4485      # This compiler won't grok '-c -o', but also, the minuso test has
4486      # not run yet.  These depmodes are late enough in the game, and
4487      # so weak that their functioning should not be impacted.
4488      am__obj=conftest.${OBJEXT-o}
4489      am__minus_obj=
4490      ;;
4491    none) break ;;
4492    esac
4493    if depmode=$depmode \
4494       source=sub/conftest.c object=$am__obj \
4495       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4496       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4497         >/dev/null 2>conftest.err &&
4498       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4499       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4500       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4501       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4502      # icc doesn't choke on unknown options, it will just issue warnings
4503      # or remarks (even with -Werror).  So we grep stderr for any message
4504      # that says an option was ignored or not supported.
4505      # When given -MP, icc 7.0 and 7.1 complain thusly:
4506      #   icc: Command line warning: ignoring option '-M'; no argument required
4507      # The diagnosis changed in icc 8.0:
4508      #   icc: Command line remark: option '-MP' not supported
4509      if (grep 'ignoring option' conftest.err ||
4510          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4511        am_cv_CC_dependencies_compiler_type=$depmode
4512        break
4513      fi
4514    fi
4515  done
4516
4517  cd ..
4518  rm -rf conftest.dir
4519else
4520  am_cv_CC_dependencies_compiler_type=none
4521fi
4522
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4525$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4526CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4527
4528 if
4529  test "x$enable_dependency_tracking" != xno \
4530  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4531  am__fastdepCC_TRUE=
4532  am__fastdepCC_FALSE='#'
4533else
4534  am__fastdepCC_TRUE='#'
4535  am__fastdepCC_FALSE=
4536fi
4537
4538
4539if test -n "$ac_tool_prefix"; then
4540  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4541set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543$as_echo_n "checking for $ac_word... " >&6; }
4544if ${ac_cv_prog_RANLIB+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  if test -n "$RANLIB"; then
4548  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553  IFS=$as_save_IFS
4554  test -z "$as_dir" && as_dir=.
4555    for ac_exec_ext in '' $ac_executable_extensions; do
4556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559    break 2
4560  fi
4561done
4562  done
4563IFS=$as_save_IFS
4564
4565fi
4566fi
4567RANLIB=$ac_cv_prog_RANLIB
4568if test -n "$RANLIB"; then
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4570$as_echo "$RANLIB" >&6; }
4571else
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573$as_echo "no" >&6; }
4574fi
4575
4576
4577fi
4578if test -z "$ac_cv_prog_RANLIB"; then
4579  ac_ct_RANLIB=$RANLIB
4580  # Extract the first word of "ranlib", so it can be a program name with args.
4581set dummy ranlib; ac_word=$2
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583$as_echo_n "checking for $ac_word... " >&6; }
4584if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4585  $as_echo_n "(cached) " >&6
4586else
4587  if test -n "$ac_ct_RANLIB"; then
4588  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4589else
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593  IFS=$as_save_IFS
4594  test -z "$as_dir" && as_dir=.
4595    for ac_exec_ext in '' $ac_executable_extensions; do
4596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597    ac_cv_prog_ac_ct_RANLIB="ranlib"
4598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599    break 2
4600  fi
4601done
4602  done
4603IFS=$as_save_IFS
4604
4605fi
4606fi
4607ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4608if test -n "$ac_ct_RANLIB"; then
4609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4610$as_echo "$ac_ct_RANLIB" >&6; }
4611else
4612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613$as_echo "no" >&6; }
4614fi
4615
4616  if test "x$ac_ct_RANLIB" = x; then
4617    RANLIB=":"
4618  else
4619    case $cross_compiling:$ac_tool_warned in
4620yes:)
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4623ac_tool_warned=yes ;;
4624esac
4625    RANLIB=$ac_ct_RANLIB
4626  fi
4627else
4628  RANLIB="$ac_cv_prog_RANLIB"
4629fi
4630
4631
4632
4633        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4634$as_echo_n "checking for strerror in -lcposix... " >&6; }
4635if ${ac_cv_lib_cposix_strerror+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  ac_check_lib_save_LIBS=$LIBS
4639LIBS="-lcposix  $LIBS"
4640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h.  */
4642
4643/* Override any GCC internal prototype to avoid an error.
4644   Use char because int might match the return type of a GCC
4645   builtin and then its argument prototype would still apply.  */
4646#ifdef __cplusplus
4647extern "C"
4648#endif
4649char strerror ();
4650int
4651main ()
4652{
4653return strerror ();
4654  ;
4655  return 0;
4656}
4657_ACEOF
4658if ac_fn_c_try_link "$LINENO"; then :
4659  ac_cv_lib_cposix_strerror=yes
4660else
4661  ac_cv_lib_cposix_strerror=no
4662fi
4663rm -f core conftest.err conftest.$ac_objext \
4664    conftest$ac_exeext conftest.$ac_ext
4665LIBS=$ac_check_lib_save_LIBS
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4668$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4669if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
4670  LIBS="$LIBS -lcposix"
4671fi
4672
4673
4674
4675ac_ext=c
4676ac_cpp='$CPP $CPPFLAGS'
4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4681$as_echo_n "checking how to run the C preprocessor... " >&6; }
4682# On Suns, sometimes $CPP names a directory.
4683if test -n "$CPP" && test -d "$CPP"; then
4684  CPP=
4685fi
4686if test -z "$CPP"; then
4687  if ${ac_cv_prog_CPP+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690      # Double quotes because CPP needs to be expanded
4691    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4692    do
4693      ac_preproc_ok=false
4694for ac_c_preproc_warn_flag in '' yes
4695do
4696  # Use a header file that comes with gcc, so configuring glibc
4697  # with a fresh cross-compiler works.
4698  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699  # <limits.h> exists even on freestanding compilers.
4700  # On the NeXT, cc -E runs the code through the compiler's parser,
4701  # not just through cpp. "Syntax error" is here to catch this case.
4702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h.  */
4704#ifdef __STDC__
4705# include <limits.h>
4706#else
4707# include <assert.h>
4708#endif
4709		     Syntax error
4710_ACEOF
4711if ac_fn_c_try_cpp "$LINENO"; then :
4712
4713else
4714  # Broken: fails on valid input.
4715continue
4716fi
4717rm -f conftest.err conftest.i conftest.$ac_ext
4718
4719  # OK, works on sane cases.  Now check whether nonexistent headers
4720  # can be detected and how.
4721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h.  */
4723#include <ac_nonexistent.h>
4724_ACEOF
4725if ac_fn_c_try_cpp "$LINENO"; then :
4726  # Broken: success on invalid input.
4727continue
4728else
4729  # Passes both tests.
4730ac_preproc_ok=:
4731break
4732fi
4733rm -f conftest.err conftest.i conftest.$ac_ext
4734
4735done
4736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4737rm -f conftest.i conftest.err conftest.$ac_ext
4738if $ac_preproc_ok; then :
4739  break
4740fi
4741
4742    done
4743    ac_cv_prog_CPP=$CPP
4744
4745fi
4746  CPP=$ac_cv_prog_CPP
4747else
4748  ac_cv_prog_CPP=$CPP
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4751$as_echo "$CPP" >&6; }
4752ac_preproc_ok=false
4753for ac_c_preproc_warn_flag in '' yes
4754do
4755  # Use a header file that comes with gcc, so configuring glibc
4756  # with a fresh cross-compiler works.
4757  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4758  # <limits.h> exists even on freestanding compilers.
4759  # On the NeXT, cc -E runs the code through the compiler's parser,
4760  # not just through cpp. "Syntax error" is here to catch this case.
4761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h.  */
4763#ifdef __STDC__
4764# include <limits.h>
4765#else
4766# include <assert.h>
4767#endif
4768		     Syntax error
4769_ACEOF
4770if ac_fn_c_try_cpp "$LINENO"; then :
4771
4772else
4773  # Broken: fails on valid input.
4774continue
4775fi
4776rm -f conftest.err conftest.i conftest.$ac_ext
4777
4778  # OK, works on sane cases.  Now check whether nonexistent headers
4779  # can be detected and how.
4780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h.  */
4782#include <ac_nonexistent.h>
4783_ACEOF
4784if ac_fn_c_try_cpp "$LINENO"; then :
4785  # Broken: success on invalid input.
4786continue
4787else
4788  # Passes both tests.
4789ac_preproc_ok=:
4790break
4791fi
4792rm -f conftest.err conftest.i conftest.$ac_ext
4793
4794done
4795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4796rm -f conftest.i conftest.err conftest.$ac_ext
4797if $ac_preproc_ok; then :
4798
4799else
4800  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4802as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4803See \`config.log' for more details" "$LINENO" 5; }
4804fi
4805
4806ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4814$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4815if ${ac_cv_path_GREP+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818  if test -z "$GREP"; then
4819  ac_path_GREP_found=false
4820  # Loop through the user's path and test for each of PROGNAME-LIST
4821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823do
4824  IFS=$as_save_IFS
4825  test -z "$as_dir" && as_dir=.
4826    for ac_prog in grep ggrep; do
4827    for ac_exec_ext in '' $ac_executable_extensions; do
4828      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4829      as_fn_executable_p "$ac_path_GREP" || continue
4830# Check for GNU ac_path_GREP and select it if it is found.
4831  # Check for GNU $ac_path_GREP
4832case `"$ac_path_GREP" --version 2>&1` in
4833*GNU*)
4834  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4835*)
4836  ac_count=0
4837  $as_echo_n 0123456789 >"conftest.in"
4838  while :
4839  do
4840    cat "conftest.in" "conftest.in" >"conftest.tmp"
4841    mv "conftest.tmp" "conftest.in"
4842    cp "conftest.in" "conftest.nl"
4843    $as_echo 'GREP' >> "conftest.nl"
4844    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846    as_fn_arith $ac_count + 1 && ac_count=$as_val
4847    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4848      # Best one so far, save it but keep looking for a better one
4849      ac_cv_path_GREP="$ac_path_GREP"
4850      ac_path_GREP_max=$ac_count
4851    fi
4852    # 10*(2^10) chars as input seems more than enough
4853    test $ac_count -gt 10 && break
4854  done
4855  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856esac
4857
4858      $ac_path_GREP_found && break 3
4859    done
4860  done
4861  done
4862IFS=$as_save_IFS
4863  if test -z "$ac_cv_path_GREP"; then
4864    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4865  fi
4866else
4867  ac_cv_path_GREP=$GREP
4868fi
4869
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4872$as_echo "$ac_cv_path_GREP" >&6; }
4873 GREP="$ac_cv_path_GREP"
4874
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4877$as_echo_n "checking for egrep... " >&6; }
4878if ${ac_cv_path_EGREP+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4882   then ac_cv_path_EGREP="$GREP -E"
4883   else
4884     if test -z "$EGREP"; then
4885  ac_path_EGREP_found=false
4886  # Loop through the user's path and test for each of PROGNAME-LIST
4887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4889do
4890  IFS=$as_save_IFS
4891  test -z "$as_dir" && as_dir=.
4892    for ac_prog in egrep; do
4893    for ac_exec_ext in '' $ac_executable_extensions; do
4894      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4895      as_fn_executable_p "$ac_path_EGREP" || continue
4896# Check for GNU ac_path_EGREP and select it if it is found.
4897  # Check for GNU $ac_path_EGREP
4898case `"$ac_path_EGREP" --version 2>&1` in
4899*GNU*)
4900  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4901*)
4902  ac_count=0
4903  $as_echo_n 0123456789 >"conftest.in"
4904  while :
4905  do
4906    cat "conftest.in" "conftest.in" >"conftest.tmp"
4907    mv "conftest.tmp" "conftest.in"
4908    cp "conftest.in" "conftest.nl"
4909    $as_echo 'EGREP' >> "conftest.nl"
4910    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4911    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4912    as_fn_arith $ac_count + 1 && ac_count=$as_val
4913    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4914      # Best one so far, save it but keep looking for a better one
4915      ac_cv_path_EGREP="$ac_path_EGREP"
4916      ac_path_EGREP_max=$ac_count
4917    fi
4918    # 10*(2^10) chars as input seems more than enough
4919    test $ac_count -gt 10 && break
4920  done
4921  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922esac
4923
4924      $ac_path_EGREP_found && break 3
4925    done
4926  done
4927  done
4928IFS=$as_save_IFS
4929  if test -z "$ac_cv_path_EGREP"; then
4930    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931  fi
4932else
4933  ac_cv_path_EGREP=$EGREP
4934fi
4935
4936   fi
4937fi
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4939$as_echo "$ac_cv_path_EGREP" >&6; }
4940 EGREP="$ac_cv_path_EGREP"
4941
4942
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4944$as_echo_n "checking for ANSI C header files... " >&6; }
4945if ${ac_cv_header_stdc+:} false; then :
4946  $as_echo_n "(cached) " >&6
4947else
4948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949/* end confdefs.h.  */
4950#include <stdlib.h>
4951#include <stdarg.h>
4952#include <string.h>
4953#include <float.h>
4954
4955int
4956main ()
4957{
4958
4959  ;
4960  return 0;
4961}
4962_ACEOF
4963if ac_fn_c_try_compile "$LINENO"; then :
4964  ac_cv_header_stdc=yes
4965else
4966  ac_cv_header_stdc=no
4967fi
4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969
4970if test $ac_cv_header_stdc = yes; then
4971  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h.  */
4974#include <string.h>
4975
4976_ACEOF
4977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4978  $EGREP "memchr" >/dev/null 2>&1; then :
4979
4980else
4981  ac_cv_header_stdc=no
4982fi
4983rm -f conftest*
4984
4985fi
4986
4987if test $ac_cv_header_stdc = yes; then
4988  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991#include <stdlib.h>
4992
4993_ACEOF
4994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4995  $EGREP "free" >/dev/null 2>&1; then :
4996
4997else
4998  ac_cv_header_stdc=no
4999fi
5000rm -f conftest*
5001
5002fi
5003
5004if test $ac_cv_header_stdc = yes; then
5005  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5006  if test "$cross_compiling" = yes; then :
5007  :
5008else
5009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011#include <ctype.h>
5012#include <stdlib.h>
5013#if ((' ' & 0x0FF) == 0x020)
5014# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5015# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5016#else
5017# define ISLOWER(c) \
5018		   (('a' <= (c) && (c) <= 'i') \
5019		     || ('j' <= (c) && (c) <= 'r') \
5020		     || ('s' <= (c) && (c) <= 'z'))
5021# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5022#endif
5023
5024#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5025int
5026main ()
5027{
5028  int i;
5029  for (i = 0; i < 256; i++)
5030    if (XOR (islower (i), ISLOWER (i))
5031	|| toupper (i) != TOUPPER (i))
5032      return 2;
5033  return 0;
5034}
5035_ACEOF
5036if ac_fn_c_try_run "$LINENO"; then :
5037
5038else
5039  ac_cv_header_stdc=no
5040fi
5041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5042  conftest.$ac_objext conftest.beam conftest.$ac_ext
5043fi
5044
5045fi
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5048$as_echo "$ac_cv_header_stdc" >&6; }
5049if test $ac_cv_header_stdc = yes; then
5050
5051$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5052
5053fi
5054
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5056$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5057if ${ac_cv_c_const+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062
5063int
5064main ()
5065{
5066
5067#ifndef __cplusplus
5068  /* Ultrix mips cc rejects this sort of thing.  */
5069  typedef int charset[2];
5070  const charset cs = { 0, 0 };
5071  /* SunOS 4.1.1 cc rejects this.  */
5072  char const *const *pcpcc;
5073  char **ppc;
5074  /* NEC SVR4.0.2 mips cc rejects this.  */
5075  struct point {int x, y;};
5076  static struct point const zero = {0,0};
5077  /* AIX XL C 1.02.0.0 rejects this.
5078     It does not let you subtract one const X* pointer from another in
5079     an arm of an if-expression whose if-part is not a constant
5080     expression */
5081  const char *g = "string";
5082  pcpcc = &g + (g ? g-g : 0);
5083  /* HPUX 7.0 cc rejects these. */
5084  ++pcpcc;
5085  ppc = (char**) pcpcc;
5086  pcpcc = (char const *const *) ppc;
5087  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5088    char tx;
5089    char *t = &tx;
5090    char const *s = 0 ? (char *) 0 : (char const *) 0;
5091
5092    *t++ = 0;
5093    if (s) return 0;
5094  }
5095  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5096    int x[] = {25, 17};
5097    const int *foo = &x[0];
5098    ++foo;
5099  }
5100  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5101    typedef const int *iptr;
5102    iptr p = 0;
5103    ++p;
5104  }
5105  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5106       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5107    struct s { int j; const int *ap[3]; } bx;
5108    struct s *b = &bx; b->j = 5;
5109  }
5110  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5111    const int foo = 10;
5112    if (!foo) return 0;
5113  }
5114  return !cs[0] && !zero.x;
5115#endif
5116
5117  ;
5118  return 0;
5119}
5120_ACEOF
5121if ac_fn_c_try_compile "$LINENO"; then :
5122  ac_cv_c_const=yes
5123else
5124  ac_cv_c_const=no
5125fi
5126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127fi
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5129$as_echo "$ac_cv_c_const" >&6; }
5130if test $ac_cv_c_const = no; then
5131
5132$as_echo "#define const /**/" >>confdefs.h
5133
5134fi
5135
5136
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
5138$as_echo_n "checking for signed... " >&6; }
5139if ${bh_cv_c_signed+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h.  */
5144
5145int
5146main ()
5147{
5148signed char x;
5149  ;
5150  return 0;
5151}
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"; then :
5154  bh_cv_c_signed=yes
5155else
5156  bh_cv_c_signed=no
5157fi
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
5161$as_echo "$bh_cv_c_signed" >&6; }
5162  if test $bh_cv_c_signed = no; then
5163
5164$as_echo "#define signed /**/" >>confdefs.h
5165
5166  fi
5167
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5169$as_echo_n "checking for inline... " >&6; }
5170if ${ac_cv_c_inline+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  ac_cv_c_inline=no
5174for ac_kw in inline __inline__ __inline; do
5175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h.  */
5177#ifndef __cplusplus
5178typedef int foo_t;
5179static $ac_kw foo_t static_foo () {return 0; }
5180$ac_kw foo_t foo () {return 0; }
5181#endif
5182
5183_ACEOF
5184if ac_fn_c_try_compile "$LINENO"; then :
5185  ac_cv_c_inline=$ac_kw
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188  test "$ac_cv_c_inline" != no && break
5189done
5190
5191fi
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5193$as_echo "$ac_cv_c_inline" >&6; }
5194
5195case $ac_cv_c_inline in
5196  inline | yes) ;;
5197  *)
5198    case $ac_cv_c_inline in
5199      no) ac_val=;;
5200      *) ac_val=$ac_cv_c_inline;;
5201    esac
5202    cat >>confdefs.h <<_ACEOF
5203#ifndef __cplusplus
5204#define inline $ac_val
5205#endif
5206_ACEOF
5207    ;;
5208esac
5209
5210# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5211for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5212		  inttypes.h stdint.h unistd.h
5213do :
5214  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5215ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5216"
5217if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5218  cat >>confdefs.h <<_ACEOF
5219#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5220_ACEOF
5221
5222fi
5223
5224done
5225
5226
5227ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5228if test "x$ac_cv_type_off_t" = xyes; then :
5229
5230else
5231
5232cat >>confdefs.h <<_ACEOF
5233#define off_t long int
5234_ACEOF
5235
5236fi
5237
5238ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5239if test "x$ac_cv_type_size_t" = xyes; then :
5240
5241else
5242
5243cat >>confdefs.h <<_ACEOF
5244#define size_t unsigned int
5245_ACEOF
5246
5247fi
5248
5249
5250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
5251$as_echo_n "checking for long long... " >&6; }
5252if ${ac_cv_type_long_long+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257long long ll = 1LL; int i = 63;
5258int
5259main ()
5260{
5261long long llmax = (long long) -1;
5262     return ll << i | ll >> i | llmax / ll | llmax % ll;
5263  ;
5264  return 0;
5265}
5266_ACEOF
5267if ac_fn_c_try_link "$LINENO"; then :
5268  ac_cv_type_long_long=yes
5269else
5270  ac_cv_type_long_long=no
5271fi
5272rm -f core conftest.err conftest.$ac_objext \
5273    conftest$ac_exeext conftest.$ac_ext
5274fi
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
5276$as_echo "$ac_cv_type_long_long" >&6; }
5277  if test $ac_cv_type_long_long = yes; then
5278
5279$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5280
5281  fi
5282
5283
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
5285$as_echo_n "checking for long double... " >&6; }
5286if ${gt_cv_c_long_double+:} false; then :
5287  $as_echo_n "(cached) " >&6
5288else
5289  if test "$GCC" = yes; then
5290       gt_cv_c_long_double=yes
5291     else
5292       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294
5295         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5296         long double foo = 0.0;
5297         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5298         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5299
5300int
5301main ()
5302{
5303
5304  ;
5305  return 0;
5306}
5307_ACEOF
5308if ac_fn_c_try_compile "$LINENO"; then :
5309  gt_cv_c_long_double=yes
5310else
5311  gt_cv_c_long_double=no
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314     fi
5315fi
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
5317$as_echo "$gt_cv_c_long_double" >&6; }
5318  if test $gt_cv_c_long_double = yes; then
5319
5320$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
5321
5322  fi
5323
5324
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5326$as_echo_n "checking for wchar_t... " >&6; }
5327if ${gt_cv_c_wchar_t+:} false; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h.  */
5332#include <stddef.h>
5333       wchar_t foo = (wchar_t)'\0';
5334int
5335main ()
5336{
5337
5338  ;
5339  return 0;
5340}
5341_ACEOF
5342if ac_fn_c_try_compile "$LINENO"; then :
5343  gt_cv_c_wchar_t=yes
5344else
5345  gt_cv_c_wchar_t=no
5346fi
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348fi
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5350$as_echo "$gt_cv_c_wchar_t" >&6; }
5351  if test $gt_cv_c_wchar_t = yes; then
5352
5353$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5354
5355  fi
5356
5357
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5359$as_echo_n "checking for wint_t... " >&6; }
5360if ${gt_cv_c_wint_t+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h.  */
5365#include <wchar.h>
5366       wint_t foo = (wchar_t)'\0';
5367int
5368main ()
5369{
5370
5371  ;
5372  return 0;
5373}
5374_ACEOF
5375if ac_fn_c_try_compile "$LINENO"; then :
5376  gt_cv_c_wint_t=yes
5377else
5378  gt_cv_c_wint_t=no
5379fi
5380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5383$as_echo "$gt_cv_c_wint_t" >&6; }
5384  if test $gt_cv_c_wint_t = yes; then
5385
5386$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5387
5388  fi
5389
5390
5391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5392$as_echo_n "checking for inttypes.h... " >&6; }
5393if ${jm_ac_cv_header_inttypes_h+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398#include <sys/types.h>
5399#include <inttypes.h>
5400int
5401main ()
5402{
5403uintmax_t i = (uintmax_t) -1;
5404  ;
5405  return 0;
5406}
5407_ACEOF
5408if ac_fn_c_try_compile "$LINENO"; then :
5409  jm_ac_cv_header_inttypes_h=yes
5410else
5411  jm_ac_cv_header_inttypes_h=no
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
5416$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
5417  if test $jm_ac_cv_header_inttypes_h = yes; then
5418
5419cat >>confdefs.h <<_ACEOF
5420#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5421_ACEOF
5422
5423  fi
5424
5425
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5427$as_echo_n "checking for stdint.h... " >&6; }
5428if ${jm_ac_cv_header_stdint_h+:} false; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h.  */
5433#include <sys/types.h>
5434#include <stdint.h>
5435int
5436main ()
5437{
5438uintmax_t i = (uintmax_t) -1;
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444  jm_ac_cv_header_stdint_h=yes
5445else
5446  jm_ac_cv_header_stdint_h=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
5451$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
5452  if test $jm_ac_cv_header_stdint_h = yes; then
5453
5454cat >>confdefs.h <<_ACEOF
5455#define HAVE_STDINT_H_WITH_UINTMAX 1
5456_ACEOF
5457
5458  fi
5459
5460
5461
5462
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
5464$as_echo_n "checking for intmax_t... " >&6; }
5465if ${gt_cv_c_intmax_t+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470
5471#include <stddef.h>
5472#include <stdlib.h>
5473#if HAVE_STDINT_H_WITH_UINTMAX
5474#include <stdint.h>
5475#endif
5476#if HAVE_INTTYPES_H_WITH_UINTMAX
5477#include <inttypes.h>
5478#endif
5479
5480int
5481main ()
5482{
5483intmax_t x = -1;
5484  ;
5485  return 0;
5486}
5487_ACEOF
5488if ac_fn_c_try_compile "$LINENO"; then :
5489  gt_cv_c_intmax_t=yes
5490else
5491  gt_cv_c_intmax_t=no
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494fi
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
5496$as_echo "$gt_cv_c_intmax_t" >&6; }
5497  if test $gt_cv_c_intmax_t = yes; then
5498
5499$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5500
5501  fi
5502
5503
5504
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
5506$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
5507if ${gt_cv_func_printf_posix+:} false; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510
5511      if test "$cross_compiling" = yes; then :
5512
5513        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515
5516#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5517  notposix
5518#endif
5519
5520_ACEOF
5521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522  $EGREP "notposix" >/dev/null 2>&1; then :
5523  gt_cv_func_printf_posix="guessing no"
5524else
5525  gt_cv_func_printf_posix="guessing yes"
5526fi
5527rm -f conftest*
5528
5529
5530else
5531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533
5534#include <stdio.h>
5535#include <string.h>
5536/* The string "%2$d %1$d", with dollar characters protected from the shell's
5537   dollar expansion (possibly an autoconf bug).  */
5538static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5539static char buf[100];
5540int main ()
5541{
5542  sprintf (buf, format, 33, 55);
5543  return (strcmp (buf, "55 33") != 0);
5544}
5545_ACEOF
5546if ac_fn_c_try_run "$LINENO"; then :
5547  gt_cv_func_printf_posix=yes
5548else
5549  gt_cv_func_printf_posix=no
5550fi
5551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5552  conftest.$ac_objext conftest.beam conftest.$ac_ext
5553fi
5554
5555
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
5558$as_echo "$gt_cv_func_printf_posix" >&6; }
5559  case $gt_cv_func_printf_posix in
5560    *yes)
5561
5562$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
5563
5564      ;;
5565  esac
5566
5567# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5568# for constant arguments.  Useless!
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5570$as_echo_n "checking for working alloca.h... " >&6; }
5571if ${ac_cv_working_alloca_h+:} false; then :
5572  $as_echo_n "(cached) " >&6
5573else
5574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h.  */
5576#include <alloca.h>
5577int
5578main ()
5579{
5580char *p = (char *) alloca (2 * sizeof (int));
5581			  if (p) return 0;
5582  ;
5583  return 0;
5584}
5585_ACEOF
5586if ac_fn_c_try_link "$LINENO"; then :
5587  ac_cv_working_alloca_h=yes
5588else
5589  ac_cv_working_alloca_h=no
5590fi
5591rm -f core conftest.err conftest.$ac_objext \
5592    conftest$ac_exeext conftest.$ac_ext
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5595$as_echo "$ac_cv_working_alloca_h" >&6; }
5596if test $ac_cv_working_alloca_h = yes; then
5597
5598$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5599
5600fi
5601
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5603$as_echo_n "checking for alloca... " >&6; }
5604if ${ac_cv_func_alloca_works+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609#ifdef __GNUC__
5610# define alloca __builtin_alloca
5611#else
5612# ifdef _MSC_VER
5613#  include <malloc.h>
5614#  define alloca _alloca
5615# else
5616#  ifdef HAVE_ALLOCA_H
5617#   include <alloca.h>
5618#  else
5619#   ifdef _AIX
5620 #pragma alloca
5621#   else
5622#    ifndef alloca /* predefined by HP cc +Olibcalls */
5623void *alloca (size_t);
5624#    endif
5625#   endif
5626#  endif
5627# endif
5628#endif
5629
5630int
5631main ()
5632{
5633char *p = (char *) alloca (1);
5634				    if (p) return 0;
5635  ;
5636  return 0;
5637}
5638_ACEOF
5639if ac_fn_c_try_link "$LINENO"; then :
5640  ac_cv_func_alloca_works=yes
5641else
5642  ac_cv_func_alloca_works=no
5643fi
5644rm -f core conftest.err conftest.$ac_objext \
5645    conftest$ac_exeext conftest.$ac_ext
5646fi
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5648$as_echo "$ac_cv_func_alloca_works" >&6; }
5649
5650if test $ac_cv_func_alloca_works = yes; then
5651
5652$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5653
5654else
5655  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5656# that cause trouble.  Some versions do not even contain alloca or
5657# contain a buggy version.  If you still want to use their alloca,
5658# use ar to extract alloca.o from them instead of compiling alloca.c.
5659
5660ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5661
5662$as_echo "#define C_ALLOCA 1" >>confdefs.h
5663
5664
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5666$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5667if ${ac_cv_os_cray+:} false; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h.  */
5672#if defined CRAY && ! defined CRAY2
5673webecray
5674#else
5675wenotbecray
5676#endif
5677
5678_ACEOF
5679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680  $EGREP "webecray" >/dev/null 2>&1; then :
5681  ac_cv_os_cray=yes
5682else
5683  ac_cv_os_cray=no
5684fi
5685rm -f conftest*
5686
5687fi
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5689$as_echo "$ac_cv_os_cray" >&6; }
5690if test $ac_cv_os_cray = yes; then
5691  for ac_func in _getb67 GETB67 getb67; do
5692    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5693ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5694if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5695
5696cat >>confdefs.h <<_ACEOF
5697#define CRAY_STACKSEG_END $ac_func
5698_ACEOF
5699
5700    break
5701fi
5702
5703  done
5704fi
5705
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5707$as_echo_n "checking stack direction for C alloca... " >&6; }
5708if ${ac_cv_c_stack_direction+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  if test "$cross_compiling" = yes; then :
5712  ac_cv_c_stack_direction=0
5713else
5714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715/* end confdefs.h.  */
5716$ac_includes_default
5717int
5718find_stack_direction (int *addr, int depth)
5719{
5720  int dir, dummy = 0;
5721  if (! addr)
5722    addr = &dummy;
5723  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5724  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5725  return dir + dummy;
5726}
5727
5728int
5729main (int argc, char **argv)
5730{
5731  return find_stack_direction (0, argc + !argv + 20) < 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_run "$LINENO"; then :
5735  ac_cv_c_stack_direction=1
5736else
5737  ac_cv_c_stack_direction=-1
5738fi
5739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5740  conftest.$ac_objext conftest.beam conftest.$ac_ext
5741fi
5742
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5745$as_echo "$ac_cv_c_stack_direction" >&6; }
5746cat >>confdefs.h <<_ACEOF
5747#define STACK_DIRECTION $ac_cv_c_stack_direction
5748_ACEOF
5749
5750
5751fi
5752
5753
5754
5755
5756  for ac_header in $ac_header_list
5757do :
5758  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5759ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5760"
5761if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5762  cat >>confdefs.h <<_ACEOF
5763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5764_ACEOF
5765
5766fi
5767
5768done
5769
5770
5771
5772
5773
5774
5775
5776
5777for ac_func in getpagesize
5778do :
5779  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5780if test "x$ac_cv_func_getpagesize" = xyes; then :
5781  cat >>confdefs.h <<_ACEOF
5782#define HAVE_GETPAGESIZE 1
5783_ACEOF
5784
5785fi
5786done
5787
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5789$as_echo_n "checking for working mmap... " >&6; }
5790if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
5793  if test "$cross_compiling" = yes; then :
5794  ac_cv_func_mmap_fixed_mapped=no
5795else
5796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h.  */
5798$ac_includes_default
5799/* malloc might have been renamed as rpl_malloc. */
5800#undef malloc
5801
5802/* Thanks to Mike Haertel and Jim Avera for this test.
5803   Here is a matrix of mmap possibilities:
5804	mmap private not fixed
5805	mmap private fixed at somewhere currently unmapped
5806	mmap private fixed at somewhere already mapped
5807	mmap shared not fixed
5808	mmap shared fixed at somewhere currently unmapped
5809	mmap shared fixed at somewhere already mapped
5810   For private mappings, we should verify that changes cannot be read()
5811   back from the file, nor mmap's back from the file at a different
5812   address.  (There have been systems where private was not correctly
5813   implemented like the infamous i386 svr4.0, and systems where the
5814   VM page cache was not coherent with the file system buffer cache
5815   like early versions of FreeBSD and possibly contemporary NetBSD.)
5816   For shared mappings, we should conversely verify that changes get
5817   propagated back to all the places they're supposed to be.
5818
5819   Grep wants private fixed already mapped.
5820   The main things grep needs to know about mmap are:
5821   * does it exist and is it safe to write into the mmap'd area
5822   * how to use it (BSD variants)  */
5823
5824#include <fcntl.h>
5825#include <sys/mman.h>
5826
5827#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5828char *malloc ();
5829#endif
5830
5831/* This mess was copied from the GNU getpagesize.h.  */
5832#ifndef HAVE_GETPAGESIZE
5833# ifdef _SC_PAGESIZE
5834#  define getpagesize() sysconf(_SC_PAGESIZE)
5835# else /* no _SC_PAGESIZE */
5836#  ifdef HAVE_SYS_PARAM_H
5837#   include <sys/param.h>
5838#   ifdef EXEC_PAGESIZE
5839#    define getpagesize() EXEC_PAGESIZE
5840#   else /* no EXEC_PAGESIZE */
5841#    ifdef NBPG
5842#     define getpagesize() NBPG * CLSIZE
5843#     ifndef CLSIZE
5844#      define CLSIZE 1
5845#     endif /* no CLSIZE */
5846#    else /* no NBPG */
5847#     ifdef NBPC
5848#      define getpagesize() NBPC
5849#     else /* no NBPC */
5850#      ifdef PAGESIZE
5851#       define getpagesize() PAGESIZE
5852#      endif /* PAGESIZE */
5853#     endif /* no NBPC */
5854#    endif /* no NBPG */
5855#   endif /* no EXEC_PAGESIZE */
5856#  else /* no HAVE_SYS_PARAM_H */
5857#   define getpagesize() 8192	/* punt totally */
5858#  endif /* no HAVE_SYS_PARAM_H */
5859# endif /* no _SC_PAGESIZE */
5860
5861#endif /* no HAVE_GETPAGESIZE */
5862
5863int
5864main ()
5865{
5866  char *data, *data2, *data3;
5867  const char *cdata2;
5868  int i, pagesize;
5869  int fd, fd2;
5870
5871  pagesize = getpagesize ();
5872
5873  /* First, make a file with some known garbage in it. */
5874  data = (char *) malloc (pagesize);
5875  if (!data)
5876    return 1;
5877  for (i = 0; i < pagesize; ++i)
5878    *(data + i) = rand ();
5879  umask (0);
5880  fd = creat ("conftest.mmap", 0600);
5881  if (fd < 0)
5882    return 2;
5883  if (write (fd, data, pagesize) != pagesize)
5884    return 3;
5885  close (fd);
5886
5887  /* Next, check that the tail of a page is zero-filled.  File must have
5888     non-zero length, otherwise we risk SIGBUS for entire page.  */
5889  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5890  if (fd2 < 0)
5891    return 4;
5892  cdata2 = "";
5893  if (write (fd2, cdata2, 1) != 1)
5894    return 5;
5895  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5896  if (data2 == MAP_FAILED)
5897    return 6;
5898  for (i = 0; i < pagesize; ++i)
5899    if (*(data2 + i))
5900      return 7;
5901  close (fd2);
5902  if (munmap (data2, pagesize))
5903    return 8;
5904
5905  /* Next, try to mmap the file at a fixed address which already has
5906     something else allocated at it.  If we can, also make sure that
5907     we see the same garbage.  */
5908  fd = open ("conftest.mmap", O_RDWR);
5909  if (fd < 0)
5910    return 9;
5911  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5912		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
5913    return 10;
5914  for (i = 0; i < pagesize; ++i)
5915    if (*(data + i) != *(data2 + i))
5916      return 11;
5917
5918  /* Finally, make sure that changes to the mapped area do not
5919     percolate back to the file as seen by read().  (This is a bug on
5920     some variants of i386 svr4.0.)  */
5921  for (i = 0; i < pagesize; ++i)
5922    *(data2 + i) = *(data2 + i) + 1;
5923  data3 = (char *) malloc (pagesize);
5924  if (!data3)
5925    return 12;
5926  if (read (fd, data3, pagesize) != pagesize)
5927    return 13;
5928  for (i = 0; i < pagesize; ++i)
5929    if (*(data + i) != *(data3 + i))
5930      return 14;
5931  close (fd);
5932  free (data);
5933  free (data3);
5934  return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_run "$LINENO"; then :
5938  ac_cv_func_mmap_fixed_mapped=yes
5939else
5940  ac_cv_func_mmap_fixed_mapped=no
5941fi
5942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5943  conftest.$ac_objext conftest.beam conftest.$ac_ext
5944fi
5945
5946fi
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5948$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5949if test $ac_cv_func_mmap_fixed_mapped = yes; then
5950
5951$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5952
5953fi
5954rm -f conftest.mmap conftest.txt
5955
5956
5957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5958$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5959if ${ac_cv_gnu_library_2_1+:} false; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964
5965#include <features.h>
5966#ifdef __GNU_LIBRARY__
5967 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5968  Lucky GNU user
5969 #endif
5970#endif
5971
5972_ACEOF
5973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5975  ac_cv_gnu_library_2_1=yes
5976else
5977  ac_cv_gnu_library_2_1=no
5978fi
5979rm -f conftest*
5980
5981
5982
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5985$as_echo "$ac_cv_gnu_library_2_1" >&6; }
5986
5987    GLIBC21="$ac_cv_gnu_library_2_1"
5988
5989
5990
5991
5992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5993$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5994if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997
5998      if test "$cross_compiling" = yes; then :
5999
6000          # Guess based on the CPU.
6001          case "$host_cpu" in
6002            alpha* | i3456786 | m68k | s390*)
6003              gt_cv_int_divbyzero_sigfpe="guessing yes";;
6004            *)
6005              gt_cv_int_divbyzero_sigfpe="guessing no";;
6006          esac
6007
6008else
6009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h.  */
6011
6012#include <stdlib.h>
6013#include <signal.h>
6014
6015static void
6016#ifdef __cplusplus
6017sigfpe_handler (int sig)
6018#else
6019sigfpe_handler (sig) int sig;
6020#endif
6021{
6022  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6023  exit (sig != SIGFPE);
6024}
6025
6026int x = 1;
6027int y = 0;
6028int z;
6029int nan;
6030
6031int main ()
6032{
6033  signal (SIGFPE, sigfpe_handler);
6034/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6035#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6036  signal (SIGTRAP, sigfpe_handler);
6037#endif
6038/* Linux/SPARC yields signal SIGILL.  */
6039#if defined (__sparc__) && defined (__linux__)
6040  signal (SIGILL, sigfpe_handler);
6041#endif
6042
6043  z = x / y;
6044  nan = y / y;
6045  exit (1);
6046}
6047
6048_ACEOF
6049if ac_fn_c_try_run "$LINENO"; then :
6050  gt_cv_int_divbyzero_sigfpe=yes
6051else
6052  gt_cv_int_divbyzero_sigfpe=no
6053fi
6054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6055  conftest.$ac_objext conftest.beam conftest.$ac_ext
6056fi
6057
6058
6059fi
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
6061$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
6062  case "$gt_cv_int_divbyzero_sigfpe" in
6063    *yes) value=1;;
6064    *) value=0;;
6065  esac
6066
6067cat >>confdefs.h <<_ACEOF
6068#define INTDIV0_RAISES_SIGFPE $value
6069_ACEOF
6070
6071
6072
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
6074$as_echo_n "checking for unsigned long long... " >&6; }
6075if ${ac_cv_type_unsigned_long_long+:} false; then :
6076  $as_echo_n "(cached) " >&6
6077else
6078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080unsigned long long ull = 1ULL; int i = 63;
6081int
6082main ()
6083{
6084unsigned long long ullmax = (unsigned long long) -1;
6085     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_link "$LINENO"; then :
6091  ac_cv_type_unsigned_long_long=yes
6092else
6093  ac_cv_type_unsigned_long_long=no
6094fi
6095rm -f core conftest.err conftest.$ac_objext \
6096    conftest$ac_exeext conftest.$ac_ext
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
6099$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
6100  if test $ac_cv_type_unsigned_long_long = yes; then
6101
6102$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
6103
6104  fi
6105
6106
6107
6108
6109  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6110
6111    test $ac_cv_type_unsigned_long_long = yes \
6112      && ac_type='unsigned long long' \
6113      || ac_type='unsigned long'
6114
6115cat >>confdefs.h <<_ACEOF
6116#define uintmax_t $ac_type
6117_ACEOF
6118
6119  else
6120
6121$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6122
6123  fi
6124
6125
6126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6127$as_echo_n "checking for inttypes.h... " >&6; }
6128if ${gt_cv_header_inttypes_h+:} false; then :
6129  $as_echo_n "(cached) " >&6
6130else
6131
6132    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134#include <sys/types.h>
6135#include <inttypes.h>
6136int
6137main ()
6138{
6139
6140  ;
6141  return 0;
6142}
6143_ACEOF
6144if ac_fn_c_try_compile "$LINENO"; then :
6145  gt_cv_header_inttypes_h=yes
6146else
6147  gt_cv_header_inttypes_h=no
6148fi
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150
6151fi
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
6153$as_echo "$gt_cv_header_inttypes_h" >&6; }
6154  if test $gt_cv_header_inttypes_h = yes; then
6155
6156cat >>confdefs.h <<_ACEOF
6157#define HAVE_INTTYPES_H 1
6158_ACEOF
6159
6160  fi
6161
6162
6163
6164  if test $gt_cv_header_inttypes_h = yes; then
6165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6166$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6167if ${gt_cv_inttypes_pri_broken+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170
6171        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173#include <inttypes.h>
6174#ifdef PRId32
6175char *p = PRId32;
6176#endif
6177
6178int
6179main ()
6180{
6181
6182  ;
6183  return 0;
6184}
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then :
6187  gt_cv_inttypes_pri_broken=no
6188else
6189  gt_cv_inttypes_pri_broken=yes
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6195$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6196  fi
6197  if test "$gt_cv_inttypes_pri_broken" = yes; then
6198
6199cat >>confdefs.h <<_ACEOF
6200#define PRI_MACROS_BROKEN 1
6201_ACEOF
6202
6203  fi
6204
6205
6206  for ac_header in stdint.h
6207do :
6208  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6209if test "x$ac_cv_header_stdint_h" = xyes; then :
6210  cat >>confdefs.h <<_ACEOF
6211#define HAVE_STDINT_H 1
6212_ACEOF
6213
6214fi
6215
6216done
6217
6218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
6219$as_echo_n "checking for SIZE_MAX... " >&6; }
6220  result=
6221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h.  */
6223
6224#include <limits.h>
6225#if HAVE_STDINT_H
6226#include <stdint.h>
6227#endif
6228#ifdef SIZE_MAX
6229Found it
6230#endif
6231
6232_ACEOF
6233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234  $EGREP "Found it" >/dev/null 2>&1; then :
6235  result=yes
6236fi
6237rm -f conftest*
6238
6239  if test -z "$result"; then
6240                    if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
6241
6242else
6243  result=?
6244fi
6245
6246
6247    if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
6248
6249else
6250  result=?
6251fi
6252
6253
6254    if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
6255
6256else
6257  result=?
6258fi
6259
6260
6261    if test "$fits_in_uint" = 1; then
6262                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263/* end confdefs.h.  */
6264#include <stddef.h>
6265        extern size_t foo;
6266        extern unsigned long foo;
6267
6268int
6269main ()
6270{
6271
6272  ;
6273  return 0;
6274}
6275_ACEOF
6276if ac_fn_c_try_compile "$LINENO"; then :
6277  fits_in_uint=0
6278fi
6279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280    fi
6281    if test -z "$result"; then
6282      if test "$fits_in_uint" = 1; then
6283        result="$res_hi$res_lo"U
6284      else
6285        result="$res_hi$res_lo"UL
6286      fi
6287    else
6288            result='~(size_t)0'
6289    fi
6290  fi
6291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6292$as_echo "$result" >&6; }
6293  if test "$result" != yes; then
6294
6295cat >>confdefs.h <<_ACEOF
6296#define SIZE_MAX $result
6297_ACEOF
6298
6299  fi
6300
6301
6302
6303  for ac_header in stdint.h
6304do :
6305  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6306if test "x$ac_cv_header_stdint_h" = xyes; then :
6307  cat >>confdefs.h <<_ACEOF
6308#define HAVE_STDINT_H 1
6309_ACEOF
6310
6311fi
6312
6313done
6314
6315
6316
6317      if test "X$prefix" = "XNONE"; then
6318    acl_final_prefix="$ac_default_prefix"
6319  else
6320    acl_final_prefix="$prefix"
6321  fi
6322  if test "X$exec_prefix" = "XNONE"; then
6323    acl_final_exec_prefix='${prefix}'
6324  else
6325    acl_final_exec_prefix="$exec_prefix"
6326  fi
6327  acl_save_prefix="$prefix"
6328  prefix="$acl_final_prefix"
6329  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6330  prefix="$acl_save_prefix"
6331
6332
6333# Check whether --with-gnu-ld was given.
6334if test "${with_gnu_ld+set}" = set; then :
6335  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6336else
6337  with_gnu_ld=no
6338fi
6339
6340# Prepare PATH_SEPARATOR.
6341# The user is always right.
6342if test "${PATH_SEPARATOR+set}" != set; then
6343  echo "#! /bin/sh" >conf$$.sh
6344  echo  "exit 0"   >>conf$$.sh
6345  chmod +x conf$$.sh
6346  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6347    PATH_SEPARATOR=';'
6348  else
6349    PATH_SEPARATOR=:
6350  fi
6351  rm -f conf$$.sh
6352fi
6353ac_prog=ld
6354if test "$GCC" = yes; then
6355  # Check if gcc -print-prog-name=ld gives a path.
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6357$as_echo_n "checking for ld used by GCC... " >&6; }
6358  case $host in
6359  *-*-mingw*)
6360    # gcc leaves a trailing carriage return which upsets mingw
6361    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6362  *)
6363    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6364  esac
6365  case $ac_prog in
6366    # Accept absolute paths.
6367    [\\/]* | [A-Za-z]:[\\/]*)
6368      re_direlt='/[^/][^/]*/\.\./'
6369      # Canonicalize the path of ld
6370      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6371      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6372	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6373      done
6374      test -z "$LD" && LD="$ac_prog"
6375      ;;
6376  "")
6377    # If it fails, then pretend we aren't using GCC.
6378    ac_prog=ld
6379    ;;
6380  *)
6381    # If it is relative, then search for the first ld in PATH.
6382    with_gnu_ld=unknown
6383    ;;
6384  esac
6385elif test "$with_gnu_ld" = yes; then
6386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6387$as_echo_n "checking for GNU ld... " >&6; }
6388else
6389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6390$as_echo_n "checking for non-GNU ld... " >&6; }
6391fi
6392if ${acl_cv_path_LD+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  if test -z "$LD"; then
6396  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6397  for ac_dir in $PATH; do
6398    test -z "$ac_dir" && ac_dir=.
6399    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6400      acl_cv_path_LD="$ac_dir/$ac_prog"
6401      # Check to see if the program is GNU ld.  I'd rather use --version,
6402      # but apparently some GNU ld's only accept -v.
6403      # Break only if it was the GNU/non-GNU ld that we prefer.
6404      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6405      *GNU* | *'with BFD'*)
6406	test "$with_gnu_ld" != no && break ;;
6407      *)
6408	test "$with_gnu_ld" != yes && break ;;
6409      esac
6410    fi
6411  done
6412  IFS="$ac_save_ifs"
6413else
6414  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6415fi
6416fi
6417
6418LD="$acl_cv_path_LD"
6419if test -n "$LD"; then
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6421$as_echo "$LD" >&6; }
6422else
6423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
6425fi
6426test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6428$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6429if ${acl_cv_prog_gnu_ld+:} false; then :
6430  $as_echo_n "(cached) " >&6
6431else
6432  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6433case `$LD -v 2>&1 </dev/null` in
6434*GNU* | *'with BFD'*)
6435  acl_cv_prog_gnu_ld=yes ;;
6436*)
6437  acl_cv_prog_gnu_ld=no ;;
6438esac
6439fi
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6441$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6442with_gnu_ld=$acl_cv_prog_gnu_ld
6443
6444
6445
6446                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6447$as_echo_n "checking for shared library run path origin... " >&6; }
6448if ${acl_cv_rpath+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451
6452    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6453    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6454    . ./conftest.sh
6455    rm -f ./conftest.sh
6456    acl_cv_rpath=done
6457
6458fi
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6460$as_echo "$acl_cv_rpath" >&6; }
6461  wl="$acl_cv_wl"
6462  libext="$acl_cv_libext"
6463  shlibext="$acl_cv_shlibext"
6464  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6465  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6466  hardcode_direct="$acl_cv_hardcode_direct"
6467  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6468    # Check whether --enable-rpath was given.
6469if test "${enable_rpath+set}" = set; then :
6470  enableval=$enable_rpath; :
6471else
6472  enable_rpath=yes
6473fi
6474
6475
6476
6477
6478
6479
6480
6481
6482    use_additional=yes
6483
6484  acl_save_prefix="$prefix"
6485  prefix="$acl_final_prefix"
6486  acl_save_exec_prefix="$exec_prefix"
6487  exec_prefix="$acl_final_exec_prefix"
6488
6489    eval additional_includedir=\"$includedir\"
6490    eval additional_libdir=\"$libdir\"
6491
6492  exec_prefix="$acl_save_exec_prefix"
6493  prefix="$acl_save_prefix"
6494
6495
6496# Check whether --with-libiconv-prefix was given.
6497if test "${with_libiconv_prefix+set}" = set; then :
6498  withval=$with_libiconv_prefix;
6499    if test "X$withval" = "Xno"; then
6500      use_additional=no
6501    else
6502      if test "X$withval" = "X"; then
6503
6504  acl_save_prefix="$prefix"
6505  prefix="$acl_final_prefix"
6506  acl_save_exec_prefix="$exec_prefix"
6507  exec_prefix="$acl_final_exec_prefix"
6508
6509          eval additional_includedir=\"$includedir\"
6510          eval additional_libdir=\"$libdir\"
6511
6512  exec_prefix="$acl_save_exec_prefix"
6513  prefix="$acl_save_prefix"
6514
6515      else
6516        additional_includedir="$withval/include"
6517        additional_libdir="$withval/lib"
6518      fi
6519    fi
6520
6521fi
6522
6523      LIBICONV=
6524  LTLIBICONV=
6525  INCICONV=
6526  rpathdirs=
6527  ltrpathdirs=
6528  names_already_handled=
6529  names_next_round='iconv '
6530  while test -n "$names_next_round"; do
6531    names_this_round="$names_next_round"
6532    names_next_round=
6533    for name in $names_this_round; do
6534      already_handled=
6535      for n in $names_already_handled; do
6536        if test "$n" = "$name"; then
6537          already_handled=yes
6538          break
6539        fi
6540      done
6541      if test -z "$already_handled"; then
6542        names_already_handled="$names_already_handled $name"
6543                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6544        eval value=\"\$HAVE_LIB$uppername\"
6545        if test -n "$value"; then
6546          if test "$value" = yes; then
6547            eval value=\"\$LIB$uppername\"
6548            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6549            eval value=\"\$LTLIB$uppername\"
6550            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6551          else
6552                                    :
6553          fi
6554        else
6555                              found_dir=
6556          found_la=
6557          found_so=
6558          found_a=
6559          if test $use_additional = yes; then
6560            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6561              found_dir="$additional_libdir"
6562              found_so="$additional_libdir/lib$name.$shlibext"
6563              if test -f "$additional_libdir/lib$name.la"; then
6564                found_la="$additional_libdir/lib$name.la"
6565              fi
6566            else
6567              if test -f "$additional_libdir/lib$name.$libext"; then
6568                found_dir="$additional_libdir"
6569                found_a="$additional_libdir/lib$name.$libext"
6570                if test -f "$additional_libdir/lib$name.la"; then
6571                  found_la="$additional_libdir/lib$name.la"
6572                fi
6573              fi
6574            fi
6575          fi
6576          if test "X$found_dir" = "X"; then
6577            for x in $LDFLAGS $LTLIBICONV; do
6578
6579  acl_save_prefix="$prefix"
6580  prefix="$acl_final_prefix"
6581  acl_save_exec_prefix="$exec_prefix"
6582  exec_prefix="$acl_final_exec_prefix"
6583  eval x=\"$x\"
6584  exec_prefix="$acl_save_exec_prefix"
6585  prefix="$acl_save_prefix"
6586
6587              case "$x" in
6588                -L*)
6589                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6590                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6591                    found_dir="$dir"
6592                    found_so="$dir/lib$name.$shlibext"
6593                    if test -f "$dir/lib$name.la"; then
6594                      found_la="$dir/lib$name.la"
6595                    fi
6596                  else
6597                    if test -f "$dir/lib$name.$libext"; then
6598                      found_dir="$dir"
6599                      found_a="$dir/lib$name.$libext"
6600                      if test -f "$dir/lib$name.la"; then
6601                        found_la="$dir/lib$name.la"
6602                      fi
6603                    fi
6604                  fi
6605                  ;;
6606              esac
6607              if test "X$found_dir" != "X"; then
6608                break
6609              fi
6610            done
6611          fi
6612          if test "X$found_dir" != "X"; then
6613                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6614            if test "X$found_so" != "X"; then
6615                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6616                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6617              else
6618                                                                                haveit=
6619                for x in $ltrpathdirs; do
6620                  if test "X$x" = "X$found_dir"; then
6621                    haveit=yes
6622                    break
6623                  fi
6624                done
6625                if test -z "$haveit"; then
6626                  ltrpathdirs="$ltrpathdirs $found_dir"
6627                fi
6628                                if test "$hardcode_direct" = yes; then
6629                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6630                else
6631                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6632                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6633                                                            haveit=
6634                    for x in $rpathdirs; do
6635                      if test "X$x" = "X$found_dir"; then
6636                        haveit=yes
6637                        break
6638                      fi
6639                    done
6640                    if test -z "$haveit"; then
6641                      rpathdirs="$rpathdirs $found_dir"
6642                    fi
6643                  else
6644                                                                                haveit=
6645                    for x in $LDFLAGS $LIBICONV; do
6646
6647  acl_save_prefix="$prefix"
6648  prefix="$acl_final_prefix"
6649  acl_save_exec_prefix="$exec_prefix"
6650  exec_prefix="$acl_final_exec_prefix"
6651  eval x=\"$x\"
6652  exec_prefix="$acl_save_exec_prefix"
6653  prefix="$acl_save_prefix"
6654
6655                      if test "X$x" = "X-L$found_dir"; then
6656                        haveit=yes
6657                        break
6658                      fi
6659                    done
6660                    if test -z "$haveit"; then
6661                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6662                    fi
6663                    if test "$hardcode_minus_L" != no; then
6664                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6665                    else
6666                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6667                    fi
6668                  fi
6669                fi
6670              fi
6671            else
6672              if test "X$found_a" != "X"; then
6673                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6674              else
6675                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6676              fi
6677            fi
6678                        additional_includedir=
6679            case "$found_dir" in
6680              */lib | */lib/)
6681                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6682                additional_includedir="$basedir/include"
6683                ;;
6684            esac
6685            if test "X$additional_includedir" != "X"; then
6686                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6687                haveit=
6688                if test "X$additional_includedir" = "X/usr/local/include"; then
6689                  if test -n "$GCC"; then
6690                    case $host_os in
6691                      linux*) haveit=yes;;
6692                    esac
6693                  fi
6694                fi
6695                if test -z "$haveit"; then
6696                  for x in $CPPFLAGS $INCICONV; do
6697
6698  acl_save_prefix="$prefix"
6699  prefix="$acl_final_prefix"
6700  acl_save_exec_prefix="$exec_prefix"
6701  exec_prefix="$acl_final_exec_prefix"
6702  eval x=\"$x\"
6703  exec_prefix="$acl_save_exec_prefix"
6704  prefix="$acl_save_prefix"
6705
6706                    if test "X$x" = "X-I$additional_includedir"; then
6707                      haveit=yes
6708                      break
6709                    fi
6710                  done
6711                  if test -z "$haveit"; then
6712                    if test -d "$additional_includedir"; then
6713                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6714                    fi
6715                  fi
6716                fi
6717              fi
6718            fi
6719                        if test -n "$found_la"; then
6720                                                        save_libdir="$libdir"
6721              case "$found_la" in
6722                */* | *\\*) . "$found_la" ;;
6723                *) . "./$found_la" ;;
6724              esac
6725              libdir="$save_libdir"
6726                            for dep in $dependency_libs; do
6727                case "$dep" in
6728                  -L*)
6729                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6730                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
6731                      haveit=
6732                      if test "X$additional_libdir" = "X/usr/local/lib"; then
6733                        if test -n "$GCC"; then
6734                          case $host_os in
6735                            linux*) haveit=yes;;
6736                          esac
6737                        fi
6738                      fi
6739                      if test -z "$haveit"; then
6740                        haveit=
6741                        for x in $LDFLAGS $LIBICONV; do
6742
6743  acl_save_prefix="$prefix"
6744  prefix="$acl_final_prefix"
6745  acl_save_exec_prefix="$exec_prefix"
6746  exec_prefix="$acl_final_exec_prefix"
6747  eval x=\"$x\"
6748  exec_prefix="$acl_save_exec_prefix"
6749  prefix="$acl_save_prefix"
6750
6751                          if test "X$x" = "X-L$additional_libdir"; then
6752                            haveit=yes
6753                            break
6754                          fi
6755                        done
6756                        if test -z "$haveit"; then
6757                          if test -d "$additional_libdir"; then
6758                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6759                          fi
6760                        fi
6761                        haveit=
6762                        for x in $LDFLAGS $LTLIBICONV; do
6763
6764  acl_save_prefix="$prefix"
6765  prefix="$acl_final_prefix"
6766  acl_save_exec_prefix="$exec_prefix"
6767  exec_prefix="$acl_final_exec_prefix"
6768  eval x=\"$x\"
6769  exec_prefix="$acl_save_exec_prefix"
6770  prefix="$acl_save_prefix"
6771
6772                          if test "X$x" = "X-L$additional_libdir"; then
6773                            haveit=yes
6774                            break
6775                          fi
6776                        done
6777                        if test -z "$haveit"; then
6778                          if test -d "$additional_libdir"; then
6779                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6780                          fi
6781                        fi
6782                      fi
6783                    fi
6784                    ;;
6785                  -R*)
6786                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6787                    if test "$enable_rpath" != no; then
6788                                                                  haveit=
6789                      for x in $rpathdirs; do
6790                        if test "X$x" = "X$dir"; then
6791                          haveit=yes
6792                          break
6793                        fi
6794                      done
6795                      if test -z "$haveit"; then
6796                        rpathdirs="$rpathdirs $dir"
6797                      fi
6798                                                                  haveit=
6799                      for x in $ltrpathdirs; do
6800                        if test "X$x" = "X$dir"; then
6801                          haveit=yes
6802                          break
6803                        fi
6804                      done
6805                      if test -z "$haveit"; then
6806                        ltrpathdirs="$ltrpathdirs $dir"
6807                      fi
6808                    fi
6809                    ;;
6810                  -l*)
6811                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6812                    ;;
6813                  *.la)
6814                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6815                    ;;
6816                  *)
6817                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6818                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6819                    ;;
6820                esac
6821              done
6822            fi
6823          else
6824                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6825            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6826          fi
6827        fi
6828      fi
6829    done
6830  done
6831  if test "X$rpathdirs" != "X"; then
6832    if test -n "$hardcode_libdir_separator"; then
6833                        alldirs=
6834      for found_dir in $rpathdirs; do
6835        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6836      done
6837            acl_save_libdir="$libdir"
6838      libdir="$alldirs"
6839      eval flag=\"$hardcode_libdir_flag_spec\"
6840      libdir="$acl_save_libdir"
6841      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6842    else
6843            for found_dir in $rpathdirs; do
6844        acl_save_libdir="$libdir"
6845        libdir="$found_dir"
6846        eval flag=\"$hardcode_libdir_flag_spec\"
6847        libdir="$acl_save_libdir"
6848        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6849      done
6850    fi
6851  fi
6852  if test "X$ltrpathdirs" != "X"; then
6853            for found_dir in $ltrpathdirs; do
6854      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6855    done
6856  fi
6857
6858
6859
6860
6861
6862
6863
6864
6865  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
6866if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
6867
6868else
6869
6870$as_echo "#define ptrdiff_t long" >>confdefs.h
6871
6872
6873fi
6874
6875  for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6876stdlib.h string.h unistd.h sys/param.h
6877do :
6878  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6881  cat >>confdefs.h <<_ACEOF
6882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6883_ACEOF
6884
6885fi
6886
6887done
6888
6889  for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
6890mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
6891strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
6892__fsetlocking
6893do :
6894  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6895ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6896if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6897  cat >>confdefs.h <<_ACEOF
6898#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6899_ACEOF
6900
6901fi
6902done
6903
6904
6905
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
6907$as_echo_n "checking whether _snprintf is declared... " >&6; }
6908if ${ac_cv_have_decl__snprintf+:} false; then :
6909  $as_echo_n "(cached) " >&6
6910else
6911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912/* end confdefs.h.  */
6913#include <stdio.h>
6914int
6915main ()
6916{
6917
6918#ifndef _snprintf
6919  char *p = (char *) _snprintf;
6920#endif
6921
6922  ;
6923  return 0;
6924}
6925_ACEOF
6926if ac_fn_c_try_compile "$LINENO"; then :
6927  ac_cv_have_decl__snprintf=yes
6928else
6929  ac_cv_have_decl__snprintf=no
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932fi
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
6934$as_echo "$ac_cv_have_decl__snprintf" >&6; }
6935  if test $ac_cv_have_decl__snprintf = yes; then
6936    gt_value=1
6937  else
6938    gt_value=0
6939  fi
6940
6941cat >>confdefs.h <<_ACEOF
6942#define HAVE_DECL__SNPRINTF $gt_value
6943_ACEOF
6944
6945
6946
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
6948$as_echo_n "checking whether _snwprintf is declared... " >&6; }
6949if ${ac_cv_have_decl__snwprintf+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h.  */
6954#include <stdio.h>
6955int
6956main ()
6957{
6958
6959#ifndef _snwprintf
6960  char *p = (char *) _snwprintf;
6961#endif
6962
6963  ;
6964  return 0;
6965}
6966_ACEOF
6967if ac_fn_c_try_compile "$LINENO"; then :
6968  ac_cv_have_decl__snwprintf=yes
6969else
6970  ac_cv_have_decl__snwprintf=no
6971fi
6972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973fi
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
6975$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
6976  if test $ac_cv_have_decl__snwprintf = yes; then
6977    gt_value=1
6978  else
6979    gt_value=0
6980  fi
6981
6982cat >>confdefs.h <<_ACEOF
6983#define HAVE_DECL__SNWPRINTF $gt_value
6984_ACEOF
6985
6986
6987
6988
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
6990$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
6991if ${ac_cv_have_decl_feof_unlocked+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996#include <stdio.h>
6997int
6998main ()
6999{
7000
7001#ifndef feof_unlocked
7002  char *p = (char *) feof_unlocked;
7003#endif
7004
7005  ;
7006  return 0;
7007}
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"; then :
7010  ac_cv_have_decl_feof_unlocked=yes
7011else
7012  ac_cv_have_decl_feof_unlocked=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7017$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7018  if test $ac_cv_have_decl_feof_unlocked = yes; then
7019    gt_value=1
7020  else
7021    gt_value=0
7022  fi
7023
7024cat >>confdefs.h <<_ACEOF
7025#define HAVE_DECL_FEOF_UNLOCKED $gt_value
7026_ACEOF
7027
7028
7029
7030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7031$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7032if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036/* end confdefs.h.  */
7037#include <stdio.h>
7038int
7039main ()
7040{
7041
7042#ifndef fgets_unlocked
7043  char *p = (char *) fgets_unlocked;
7044#endif
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050if ac_fn_c_try_compile "$LINENO"; then :
7051  ac_cv_have_decl_fgets_unlocked=yes
7052else
7053  ac_cv_have_decl_fgets_unlocked=no
7054fi
7055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056fi
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7058$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7059  if test $ac_cv_have_decl_fgets_unlocked = yes; then
7060    gt_value=1
7061  else
7062    gt_value=0
7063  fi
7064
7065cat >>confdefs.h <<_ACEOF
7066#define HAVE_DECL_FGETS_UNLOCKED $gt_value
7067_ACEOF
7068
7069
7070
7071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
7072$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
7073if ${ac_cv_have_decl_getc_unlocked+:} false; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077/* end confdefs.h.  */
7078#include <stdio.h>
7079int
7080main ()
7081{
7082
7083#ifndef getc_unlocked
7084  char *p = (char *) getc_unlocked;
7085#endif
7086
7087  ;
7088  return 0;
7089}
7090_ACEOF
7091if ac_fn_c_try_compile "$LINENO"; then :
7092  ac_cv_have_decl_getc_unlocked=yes
7093else
7094  ac_cv_have_decl_getc_unlocked=no
7095fi
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097fi
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
7099$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
7100  if test $ac_cv_have_decl_getc_unlocked = yes; then
7101    gt_value=1
7102  else
7103    gt_value=0
7104  fi
7105
7106cat >>confdefs.h <<_ACEOF
7107#define HAVE_DECL_GETC_UNLOCKED $gt_value
7108_ACEOF
7109
7110
7111
7112  case $gt_cv_func_printf_posix in
7113    *yes) HAVE_POSIX_PRINTF=1 ;;
7114    *) HAVE_POSIX_PRINTF=0 ;;
7115  esac
7116
7117  if test "$ac_cv_func_asprintf" = yes; then
7118    HAVE_ASPRINTF=1
7119  else
7120    HAVE_ASPRINTF=0
7121  fi
7122
7123  if test "$ac_cv_func_snprintf" = yes; then
7124    HAVE_SNPRINTF=1
7125  else
7126    HAVE_SNPRINTF=0
7127  fi
7128
7129  if test "$ac_cv_func_wprintf" = yes; then
7130    HAVE_WPRINTF=1
7131  else
7132    HAVE_WPRINTF=0
7133  fi
7134
7135
7136
7137
7138
7139
7140
7141          am_save_CPPFLAGS="$CPPFLAGS"
7142
7143  for element in $INCICONV; do
7144    haveit=
7145    for x in $CPPFLAGS; do
7146
7147  acl_save_prefix="$prefix"
7148  prefix="$acl_final_prefix"
7149  acl_save_exec_prefix="$exec_prefix"
7150  exec_prefix="$acl_final_exec_prefix"
7151  eval x=\"$x\"
7152  exec_prefix="$acl_save_exec_prefix"
7153  prefix="$acl_save_prefix"
7154
7155      if test "X$x" = "X$element"; then
7156        haveit=yes
7157        break
7158      fi
7159    done
7160    if test -z "$haveit"; then
7161      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7162    fi
7163  done
7164
7165
7166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7167$as_echo_n "checking for iconv... " >&6; }
7168if ${am_cv_func_iconv+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171
7172    am_cv_func_iconv="no, consider installing GNU libiconv"
7173    am_cv_lib_iconv=no
7174    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175/* end confdefs.h.  */
7176#include <stdlib.h>
7177#include <iconv.h>
7178int
7179main ()
7180{
7181iconv_t cd = iconv_open("","");
7182       iconv(cd,NULL,NULL,NULL,NULL);
7183       iconv_close(cd);
7184  ;
7185  return 0;
7186}
7187_ACEOF
7188if ac_fn_c_try_link "$LINENO"; then :
7189  am_cv_func_iconv=yes
7190fi
7191rm -f core conftest.err conftest.$ac_objext \
7192    conftest$ac_exeext conftest.$ac_ext
7193    if test "$am_cv_func_iconv" != yes; then
7194      am_save_LIBS="$LIBS"
7195      LIBS="$LIBS $LIBICONV"
7196      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h.  */
7198#include <stdlib.h>
7199#include <iconv.h>
7200int
7201main ()
7202{
7203iconv_t cd = iconv_open("","");
7204         iconv(cd,NULL,NULL,NULL,NULL);
7205         iconv_close(cd);
7206  ;
7207  return 0;
7208}
7209_ACEOF
7210if ac_fn_c_try_link "$LINENO"; then :
7211  am_cv_lib_iconv=yes
7212        am_cv_func_iconv=yes
7213fi
7214rm -f core conftest.err conftest.$ac_objext \
7215    conftest$ac_exeext conftest.$ac_ext
7216      LIBS="$am_save_LIBS"
7217    fi
7218
7219fi
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7221$as_echo "$am_cv_func_iconv" >&6; }
7222  if test "$am_cv_func_iconv" = yes; then
7223
7224$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7225
7226  fi
7227  if test "$am_cv_lib_iconv" = yes; then
7228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7229$as_echo_n "checking how to link with libiconv... " >&6; }
7230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7231$as_echo "$LIBICONV" >&6; }
7232  else
7233            CPPFLAGS="$am_save_CPPFLAGS"
7234    LIBICONV=
7235    LTLIBICONV=
7236  fi
7237
7238
7239
7240  if test "$am_cv_func_iconv" = yes; then
7241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7242$as_echo_n "checking for iconv declaration... " >&6; }
7243    if ${am_cv_proto_iconv+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246
7247      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249
7250#include <stdlib.h>
7251#include <iconv.h>
7252extern
7253#ifdef __cplusplus
7254"C"
7255#endif
7256#if defined(__STDC__) || defined(__cplusplus)
7257size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7258#else
7259size_t iconv();
7260#endif
7261
7262int
7263main ()
7264{
7265
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270if ac_fn_c_try_compile "$LINENO"; then :
7271  am_cv_proto_iconv_arg1=""
7272else
7273  am_cv_proto_iconv_arg1="const"
7274fi
7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276      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);"
7277fi
7278
7279    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7281         }$am_cv_proto_iconv" >&5
7282$as_echo "${ac_t:-
7283         }$am_cv_proto_iconv" >&6; }
7284
7285cat >>confdefs.h <<_ACEOF
7286#define ICONV_CONST $am_cv_proto_iconv_arg1
7287_ACEOF
7288
7289  fi
7290
7291
7292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7293$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7294if ${am_cv_langinfo_codeset+:} false; then :
7295  $as_echo_n "(cached) " >&6
7296else
7297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h.  */
7299#include <langinfo.h>
7300int
7301main ()
7302{
7303char* cs = nl_langinfo(CODESET);
7304  ;
7305  return 0;
7306}
7307_ACEOF
7308if ac_fn_c_try_link "$LINENO"; then :
7309  am_cv_langinfo_codeset=yes
7310else
7311  am_cv_langinfo_codeset=no
7312fi
7313rm -f core conftest.err conftest.$ac_objext \
7314    conftest$ac_exeext conftest.$ac_ext
7315
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7318$as_echo "$am_cv_langinfo_codeset" >&6; }
7319  if test $am_cv_langinfo_codeset = yes; then
7320
7321$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7322
7323  fi
7324
7325  if test $ac_cv_header_locale_h = yes; then
7326
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7328$as_echo_n "checking for LC_MESSAGES... " >&6; }
7329if ${am_cv_val_LC_MESSAGES+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334#include <locale.h>
7335int
7336main ()
7337{
7338return LC_MESSAGES
7339  ;
7340  return 0;
7341}
7342_ACEOF
7343if ac_fn_c_try_link "$LINENO"; then :
7344  am_cv_val_LC_MESSAGES=yes
7345else
7346  am_cv_val_LC_MESSAGES=no
7347fi
7348rm -f core conftest.err conftest.$ac_objext \
7349    conftest$ac_exeext conftest.$ac_ext
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7352$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7353  if test $am_cv_val_LC_MESSAGES = yes; then
7354
7355$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7356
7357  fi
7358
7359  fi
7360
7361                      for ac_prog in bison
7362do
7363  # Extract the first word of "$ac_prog", so it can be a program name with args.
7364set dummy $ac_prog; ac_word=$2
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366$as_echo_n "checking for $ac_word... " >&6; }
7367if ${ac_cv_prog_INTLBISON+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  if test -n "$INTLBISON"; then
7371  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376  IFS=$as_save_IFS
7377  test -z "$as_dir" && as_dir=.
7378    for ac_exec_ext in '' $ac_executable_extensions; do
7379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380    ac_cv_prog_INTLBISON="$ac_prog"
7381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382    break 2
7383  fi
7384done
7385  done
7386IFS=$as_save_IFS
7387
7388fi
7389fi
7390INTLBISON=$ac_cv_prog_INTLBISON
7391if test -n "$INTLBISON"; then
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7393$as_echo "$INTLBISON" >&6; }
7394else
7395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398
7399
7400  test -n "$INTLBISON" && break
7401done
7402
7403  if test -z "$INTLBISON"; then
7404    ac_verc_fail=yes
7405  else
7406        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7407$as_echo_n "checking version of bison... " >&6; }
7408    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7409    case $ac_prog_version in
7410      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7411      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7412         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7413      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7414    esac
7415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7416$as_echo "$ac_prog_version" >&6; }
7417  fi
7418  if test $ac_verc_fail = yes; then
7419    INTLBISON=:
7420  fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7438$as_echo_n "checking whether NLS is requested... " >&6; }
7439    # Check whether --enable-nls was given.
7440if test "${enable_nls+set}" = set; then :
7441  enableval=$enable_nls; USE_NLS=$enableval
7442else
7443  USE_NLS=yes
7444fi
7445
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7447$as_echo "$USE_NLS" >&6; }
7448
7449
7450
7451
7452    BUILD_INCLUDED_LIBINTL=no
7453    USE_INCLUDED_LIBINTL=no
7454
7455  LIBINTL=
7456  LTLIBINTL=
7457  POSUB=
7458
7459    if test "$USE_NLS" = "yes"; then
7460    gt_use_preinstalled_gnugettext=no
7461
7462      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
7463$as_echo_n "checking whether included gettext is requested... " >&6; }
7464
7465# Check whether --with-included-gettext was given.
7466if test "${with_included_gettext+set}" = set; then :
7467  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
7468else
7469  nls_cv_force_use_gnu_gettext=no
7470fi
7471
7472      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
7473$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
7474
7475      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7476      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7477
7478
7479
7480
7481
7482
7483        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7484$as_echo_n "checking for GNU gettext in libc... " >&6; }
7485if ${gt_cv_func_gnugettext1_libc+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490#include <libintl.h>
7491extern int _nl_msg_cat_cntr;
7492extern int *_nl_domain_bindings;
7493int
7494main ()
7495{
7496bindtextdomain ("", "");
7497return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7498  ;
7499  return 0;
7500}
7501_ACEOF
7502if ac_fn_c_try_link "$LINENO"; then :
7503  gt_cv_func_gnugettext1_libc=yes
7504else
7505  gt_cv_func_gnugettext1_libc=no
7506fi
7507rm -f core conftest.err conftest.$ac_objext \
7508    conftest$ac_exeext conftest.$ac_ext
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
7511$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
7512
7513        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7514
7515
7516
7517    use_additional=yes
7518
7519  acl_save_prefix="$prefix"
7520  prefix="$acl_final_prefix"
7521  acl_save_exec_prefix="$exec_prefix"
7522  exec_prefix="$acl_final_exec_prefix"
7523
7524    eval additional_includedir=\"$includedir\"
7525    eval additional_libdir=\"$libdir\"
7526
7527  exec_prefix="$acl_save_exec_prefix"
7528  prefix="$acl_save_prefix"
7529
7530
7531# Check whether --with-libintl-prefix was given.
7532if test "${with_libintl_prefix+set}" = set; then :
7533  withval=$with_libintl_prefix;
7534    if test "X$withval" = "Xno"; then
7535      use_additional=no
7536    else
7537      if test "X$withval" = "X"; then
7538
7539  acl_save_prefix="$prefix"
7540  prefix="$acl_final_prefix"
7541  acl_save_exec_prefix="$exec_prefix"
7542  exec_prefix="$acl_final_exec_prefix"
7543
7544          eval additional_includedir=\"$includedir\"
7545          eval additional_libdir=\"$libdir\"
7546
7547  exec_prefix="$acl_save_exec_prefix"
7548  prefix="$acl_save_prefix"
7549
7550      else
7551        additional_includedir="$withval/include"
7552        additional_libdir="$withval/lib"
7553      fi
7554    fi
7555
7556fi
7557
7558      LIBINTL=
7559  LTLIBINTL=
7560  INCINTL=
7561  rpathdirs=
7562  ltrpathdirs=
7563  names_already_handled=
7564  names_next_round='intl '
7565  while test -n "$names_next_round"; do
7566    names_this_round="$names_next_round"
7567    names_next_round=
7568    for name in $names_this_round; do
7569      already_handled=
7570      for n in $names_already_handled; do
7571        if test "$n" = "$name"; then
7572          already_handled=yes
7573          break
7574        fi
7575      done
7576      if test -z "$already_handled"; then
7577        names_already_handled="$names_already_handled $name"
7578                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7579        eval value=\"\$HAVE_LIB$uppername\"
7580        if test -n "$value"; then
7581          if test "$value" = yes; then
7582            eval value=\"\$LIB$uppername\"
7583            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7584            eval value=\"\$LTLIB$uppername\"
7585            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7586          else
7587                                    :
7588          fi
7589        else
7590                              found_dir=
7591          found_la=
7592          found_so=
7593          found_a=
7594          if test $use_additional = yes; then
7595            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7596              found_dir="$additional_libdir"
7597              found_so="$additional_libdir/lib$name.$shlibext"
7598              if test -f "$additional_libdir/lib$name.la"; then
7599                found_la="$additional_libdir/lib$name.la"
7600              fi
7601            else
7602              if test -f "$additional_libdir/lib$name.$libext"; then
7603                found_dir="$additional_libdir"
7604                found_a="$additional_libdir/lib$name.$libext"
7605                if test -f "$additional_libdir/lib$name.la"; then
7606                  found_la="$additional_libdir/lib$name.la"
7607                fi
7608              fi
7609            fi
7610          fi
7611          if test "X$found_dir" = "X"; then
7612            for x in $LDFLAGS $LTLIBINTL; do
7613
7614  acl_save_prefix="$prefix"
7615  prefix="$acl_final_prefix"
7616  acl_save_exec_prefix="$exec_prefix"
7617  exec_prefix="$acl_final_exec_prefix"
7618  eval x=\"$x\"
7619  exec_prefix="$acl_save_exec_prefix"
7620  prefix="$acl_save_prefix"
7621
7622              case "$x" in
7623                -L*)
7624                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7625                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7626                    found_dir="$dir"
7627                    found_so="$dir/lib$name.$shlibext"
7628                    if test -f "$dir/lib$name.la"; then
7629                      found_la="$dir/lib$name.la"
7630                    fi
7631                  else
7632                    if test -f "$dir/lib$name.$libext"; then
7633                      found_dir="$dir"
7634                      found_a="$dir/lib$name.$libext"
7635                      if test -f "$dir/lib$name.la"; then
7636                        found_la="$dir/lib$name.la"
7637                      fi
7638                    fi
7639                  fi
7640                  ;;
7641              esac
7642              if test "X$found_dir" != "X"; then
7643                break
7644              fi
7645            done
7646          fi
7647          if test "X$found_dir" != "X"; then
7648                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7649            if test "X$found_so" != "X"; then
7650                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7651                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7652              else
7653                                                                                haveit=
7654                for x in $ltrpathdirs; do
7655                  if test "X$x" = "X$found_dir"; then
7656                    haveit=yes
7657                    break
7658                  fi
7659                done
7660                if test -z "$haveit"; then
7661                  ltrpathdirs="$ltrpathdirs $found_dir"
7662                fi
7663                                if test "$hardcode_direct" = yes; then
7664                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7665                else
7666                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7667                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7668                                                            haveit=
7669                    for x in $rpathdirs; do
7670                      if test "X$x" = "X$found_dir"; then
7671                        haveit=yes
7672                        break
7673                      fi
7674                    done
7675                    if test -z "$haveit"; then
7676                      rpathdirs="$rpathdirs $found_dir"
7677                    fi
7678                  else
7679                                                                                haveit=
7680                    for x in $LDFLAGS $LIBINTL; do
7681
7682  acl_save_prefix="$prefix"
7683  prefix="$acl_final_prefix"
7684  acl_save_exec_prefix="$exec_prefix"
7685  exec_prefix="$acl_final_exec_prefix"
7686  eval x=\"$x\"
7687  exec_prefix="$acl_save_exec_prefix"
7688  prefix="$acl_save_prefix"
7689
7690                      if test "X$x" = "X-L$found_dir"; then
7691                        haveit=yes
7692                        break
7693                      fi
7694                    done
7695                    if test -z "$haveit"; then
7696                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7697                    fi
7698                    if test "$hardcode_minus_L" != no; then
7699                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7700                    else
7701                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7702                    fi
7703                  fi
7704                fi
7705              fi
7706            else
7707              if test "X$found_a" != "X"; then
7708                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7709              else
7710                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7711              fi
7712            fi
7713                        additional_includedir=
7714            case "$found_dir" in
7715              */lib | */lib/)
7716                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7717                additional_includedir="$basedir/include"
7718                ;;
7719            esac
7720            if test "X$additional_includedir" != "X"; then
7721                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7722                haveit=
7723                if test "X$additional_includedir" = "X/usr/local/include"; then
7724                  if test -n "$GCC"; then
7725                    case $host_os in
7726                      linux*) haveit=yes;;
7727                    esac
7728                  fi
7729                fi
7730                if test -z "$haveit"; then
7731                  for x in $CPPFLAGS $INCINTL; do
7732
7733  acl_save_prefix="$prefix"
7734  prefix="$acl_final_prefix"
7735  acl_save_exec_prefix="$exec_prefix"
7736  exec_prefix="$acl_final_exec_prefix"
7737  eval x=\"$x\"
7738  exec_prefix="$acl_save_exec_prefix"
7739  prefix="$acl_save_prefix"
7740
7741                    if test "X$x" = "X-I$additional_includedir"; then
7742                      haveit=yes
7743                      break
7744                    fi
7745                  done
7746                  if test -z "$haveit"; then
7747                    if test -d "$additional_includedir"; then
7748                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7749                    fi
7750                  fi
7751                fi
7752              fi
7753            fi
7754                        if test -n "$found_la"; then
7755                                                        save_libdir="$libdir"
7756              case "$found_la" in
7757                */* | *\\*) . "$found_la" ;;
7758                *) . "./$found_la" ;;
7759              esac
7760              libdir="$save_libdir"
7761                            for dep in $dependency_libs; do
7762                case "$dep" in
7763                  -L*)
7764                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7765                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7766                      haveit=
7767                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7768                        if test -n "$GCC"; then
7769                          case $host_os in
7770                            linux*) haveit=yes;;
7771                          esac
7772                        fi
7773                      fi
7774                      if test -z "$haveit"; then
7775                        haveit=
7776                        for x in $LDFLAGS $LIBINTL; do
7777
7778  acl_save_prefix="$prefix"
7779  prefix="$acl_final_prefix"
7780  acl_save_exec_prefix="$exec_prefix"
7781  exec_prefix="$acl_final_exec_prefix"
7782  eval x=\"$x\"
7783  exec_prefix="$acl_save_exec_prefix"
7784  prefix="$acl_save_prefix"
7785
7786                          if test "X$x" = "X-L$additional_libdir"; then
7787                            haveit=yes
7788                            break
7789                          fi
7790                        done
7791                        if test -z "$haveit"; then
7792                          if test -d "$additional_libdir"; then
7793                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7794                          fi
7795                        fi
7796                        haveit=
7797                        for x in $LDFLAGS $LTLIBINTL; do
7798
7799  acl_save_prefix="$prefix"
7800  prefix="$acl_final_prefix"
7801  acl_save_exec_prefix="$exec_prefix"
7802  exec_prefix="$acl_final_exec_prefix"
7803  eval x=\"$x\"
7804  exec_prefix="$acl_save_exec_prefix"
7805  prefix="$acl_save_prefix"
7806
7807                          if test "X$x" = "X-L$additional_libdir"; then
7808                            haveit=yes
7809                            break
7810                          fi
7811                        done
7812                        if test -z "$haveit"; then
7813                          if test -d "$additional_libdir"; then
7814                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7815                          fi
7816                        fi
7817                      fi
7818                    fi
7819                    ;;
7820                  -R*)
7821                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7822                    if test "$enable_rpath" != no; then
7823                                                                  haveit=
7824                      for x in $rpathdirs; do
7825                        if test "X$x" = "X$dir"; then
7826                          haveit=yes
7827                          break
7828                        fi
7829                      done
7830                      if test -z "$haveit"; then
7831                        rpathdirs="$rpathdirs $dir"
7832                      fi
7833                                                                  haveit=
7834                      for x in $ltrpathdirs; do
7835                        if test "X$x" = "X$dir"; then
7836                          haveit=yes
7837                          break
7838                        fi
7839                      done
7840                      if test -z "$haveit"; then
7841                        ltrpathdirs="$ltrpathdirs $dir"
7842                      fi
7843                    fi
7844                    ;;
7845                  -l*)
7846                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7847                    ;;
7848                  *.la)
7849                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7850                    ;;
7851                  *)
7852                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7853                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7854                    ;;
7855                esac
7856              done
7857            fi
7858          else
7859                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7860            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7861          fi
7862        fi
7863      fi
7864    done
7865  done
7866  if test "X$rpathdirs" != "X"; then
7867    if test -n "$hardcode_libdir_separator"; then
7868                        alldirs=
7869      for found_dir in $rpathdirs; do
7870        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7871      done
7872            acl_save_libdir="$libdir"
7873      libdir="$alldirs"
7874      eval flag=\"$hardcode_libdir_flag_spec\"
7875      libdir="$acl_save_libdir"
7876      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7877    else
7878            for found_dir in $rpathdirs; do
7879        acl_save_libdir="$libdir"
7880        libdir="$found_dir"
7881        eval flag=\"$hardcode_libdir_flag_spec\"
7882        libdir="$acl_save_libdir"
7883        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7884      done
7885    fi
7886  fi
7887  if test "X$ltrpathdirs" != "X"; then
7888            for found_dir in $ltrpathdirs; do
7889      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7890    done
7891  fi
7892
7893          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7894$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7895if ${gt_cv_func_gnugettext1_libintl+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  gt_save_CPPFLAGS="$CPPFLAGS"
7899            CPPFLAGS="$CPPFLAGS $INCINTL"
7900            gt_save_LIBS="$LIBS"
7901            LIBS="$LIBS $LIBINTL"
7902                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h.  */
7904#include <libintl.h>
7905extern int _nl_msg_cat_cntr;
7906extern
7907#ifdef __cplusplus
7908"C"
7909#endif
7910const char *_nl_expand_alias ();
7911int
7912main ()
7913{
7914bindtextdomain ("", "");
7915return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7916  ;
7917  return 0;
7918}
7919_ACEOF
7920if ac_fn_c_try_link "$LINENO"; then :
7921  gt_cv_func_gnugettext1_libintl=yes
7922else
7923  gt_cv_func_gnugettext1_libintl=no
7924fi
7925rm -f core conftest.err conftest.$ac_objext \
7926    conftest$ac_exeext conftest.$ac_ext
7927                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7928              LIBS="$LIBS $LIBICONV"
7929              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h.  */
7931#include <libintl.h>
7932extern int _nl_msg_cat_cntr;
7933extern
7934#ifdef __cplusplus
7935"C"
7936#endif
7937const char *_nl_expand_alias ();
7938int
7939main ()
7940{
7941bindtextdomain ("", "");
7942return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7943  ;
7944  return 0;
7945}
7946_ACEOF
7947if ac_fn_c_try_link "$LINENO"; then :
7948  LIBINTL="$LIBINTL $LIBICONV"
7949                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7950                gt_cv_func_gnugettext1_libintl=yes
7951
7952fi
7953rm -f core conftest.err conftest.$ac_objext \
7954    conftest$ac_exeext conftest.$ac_ext
7955            fi
7956            CPPFLAGS="$gt_save_CPPFLAGS"
7957            LIBS="$gt_save_LIBS"
7958fi
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
7960$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
7961        fi
7962
7963                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7964           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7965                && test "$PACKAGE" != gettext-runtime \
7966                && test "$PACKAGE" != gettext-tools; }; then
7967          gt_use_preinstalled_gnugettext=yes
7968        else
7969                    LIBINTL=
7970          LTLIBINTL=
7971          INCINTL=
7972        fi
7973
7974
7975        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7976                              nls_cv_use_gnu_gettext=yes
7977        fi
7978      fi
7979
7980      if test "$nls_cv_use_gnu_gettext" = "yes"; then
7981                BUILD_INCLUDED_LIBINTL=yes
7982        USE_INCLUDED_LIBINTL=yes
7983        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7984        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7985        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7986      fi
7987
7988      if test "$gt_use_preinstalled_gnugettext" = "yes" \
7989         || test "$nls_cv_use_gnu_gettext" = "yes"; then
7990                CATOBJEXT=.gmo
7991      fi
7992
7993
7994    if test "$gt_use_preinstalled_gnugettext" = "yes" \
7995       || test "$nls_cv_use_gnu_gettext" = "yes"; then
7996
7997$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7998
7999    else
8000      USE_NLS=no
8001    fi
8002  fi
8003
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8005$as_echo_n "checking whether to use NLS... " >&6; }
8006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8007$as_echo "$USE_NLS" >&6; }
8008  if test "$USE_NLS" = "yes"; then
8009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8010$as_echo_n "checking where the gettext function comes from... " >&6; }
8011    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8012      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8013        gt_source="external libintl"
8014      else
8015        gt_source="libc"
8016      fi
8017    else
8018      gt_source="included intl directory"
8019    fi
8020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8021$as_echo "$gt_source" >&6; }
8022  fi
8023
8024  if test "$USE_NLS" = "yes"; then
8025
8026    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8027      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8028        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8029$as_echo_n "checking how to link with libintl... " >&6; }
8030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8031$as_echo "$LIBINTL" >&6; }
8032
8033  for element in $INCINTL; do
8034    haveit=
8035    for x in $CPPFLAGS; do
8036
8037  acl_save_prefix="$prefix"
8038  prefix="$acl_final_prefix"
8039  acl_save_exec_prefix="$exec_prefix"
8040  exec_prefix="$acl_final_exec_prefix"
8041  eval x=\"$x\"
8042  exec_prefix="$acl_save_exec_prefix"
8043  prefix="$acl_save_prefix"
8044
8045      if test "X$x" = "X$element"; then
8046        haveit=yes
8047        break
8048      fi
8049    done
8050    if test -z "$haveit"; then
8051      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8052    fi
8053  done
8054
8055      fi
8056
8057
8058$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8059
8060
8061$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8062
8063    fi
8064
8065        POSUB=po
8066  fi
8067
8068
8069            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8070      BUILD_INCLUDED_LIBINTL=yes
8071    fi
8072
8073
8074
8075
8076
8077        nls_cv_header_intl=
8078    nls_cv_header_libgt=
8079
8080        DATADIRNAME=share
8081
8082
8083        INSTOBJEXT=.mo
8084
8085
8086        GENCAT=gencat
8087
8088
8089        if test "$USE_INCLUDED_LIBINTL" = yes; then
8090      INTLOBJS="\$(GETTOBJS)"
8091    fi
8092
8093
8094        INTL_LIBTOOL_SUFFIX_PREFIX=
8095
8096
8097
8098    INTLLIBS="$LIBINTL"
8099
8100
8101
8102
8103
8104
8105ac_ext=c
8106ac_cpp='$CPP $CPPFLAGS'
8107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110if test -n "$ac_tool_prefix"; then
8111  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8112set dummy ${ac_tool_prefix}gcc; ac_word=$2
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if ${ac_cv_prog_CC+:} false; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  if test -n "$CC"; then
8119  ac_cv_prog_CC="$CC" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124  IFS=$as_save_IFS
8125  test -z "$as_dir" && as_dir=.
8126    for ac_exec_ext in '' $ac_executable_extensions; do
8127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128    ac_cv_prog_CC="${ac_tool_prefix}gcc"
8129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130    break 2
8131  fi
8132done
8133  done
8134IFS=$as_save_IFS
8135
8136fi
8137fi
8138CC=$ac_cv_prog_CC
8139if test -n "$CC"; then
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8141$as_echo "$CC" >&6; }
8142else
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
8145fi
8146
8147
8148fi
8149if test -z "$ac_cv_prog_CC"; then
8150  ac_ct_CC=$CC
8151  # Extract the first word of "gcc", so it can be a program name with args.
8152set dummy gcc; ac_word=$2
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154$as_echo_n "checking for $ac_word... " >&6; }
8155if ${ac_cv_prog_ac_ct_CC+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  if test -n "$ac_ct_CC"; then
8159  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164  IFS=$as_save_IFS
8165  test -z "$as_dir" && as_dir=.
8166    for ac_exec_ext in '' $ac_executable_extensions; do
8167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168    ac_cv_prog_ac_ct_CC="gcc"
8169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170    break 2
8171  fi
8172done
8173  done
8174IFS=$as_save_IFS
8175
8176fi
8177fi
8178ac_ct_CC=$ac_cv_prog_ac_ct_CC
8179if test -n "$ac_ct_CC"; then
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8181$as_echo "$ac_ct_CC" >&6; }
8182else
8183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184$as_echo "no" >&6; }
8185fi
8186
8187  if test "x$ac_ct_CC" = x; then
8188    CC=""
8189  else
8190    case $cross_compiling:$ac_tool_warned in
8191yes:)
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194ac_tool_warned=yes ;;
8195esac
8196    CC=$ac_ct_CC
8197  fi
8198else
8199  CC="$ac_cv_prog_CC"
8200fi
8201
8202if test -z "$CC"; then
8203          if test -n "$ac_tool_prefix"; then
8204    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8205set dummy ${ac_tool_prefix}cc; ac_word=$2
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207$as_echo_n "checking for $ac_word... " >&6; }
8208if ${ac_cv_prog_CC+:} false; then :
8209  $as_echo_n "(cached) " >&6
8210else
8211  if test -n "$CC"; then
8212  ac_cv_prog_CC="$CC" # Let the user override the test.
8213else
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217  IFS=$as_save_IFS
8218  test -z "$as_dir" && as_dir=.
8219    for ac_exec_ext in '' $ac_executable_extensions; do
8220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221    ac_cv_prog_CC="${ac_tool_prefix}cc"
8222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223    break 2
8224  fi
8225done
8226  done
8227IFS=$as_save_IFS
8228
8229fi
8230fi
8231CC=$ac_cv_prog_CC
8232if test -n "$CC"; then
8233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8234$as_echo "$CC" >&6; }
8235else
8236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237$as_echo "no" >&6; }
8238fi
8239
8240
8241  fi
8242fi
8243if test -z "$CC"; then
8244  # Extract the first word of "cc", so it can be a program name with args.
8245set dummy cc; ac_word=$2
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247$as_echo_n "checking for $ac_word... " >&6; }
8248if ${ac_cv_prog_CC+:} false; then :
8249  $as_echo_n "(cached) " >&6
8250else
8251  if test -n "$CC"; then
8252  ac_cv_prog_CC="$CC" # Let the user override the test.
8253else
8254  ac_prog_rejected=no
8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258  IFS=$as_save_IFS
8259  test -z "$as_dir" && as_dir=.
8260    for ac_exec_ext in '' $ac_executable_extensions; do
8261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8263       ac_prog_rejected=yes
8264       continue
8265     fi
8266    ac_cv_prog_CC="cc"
8267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268    break 2
8269  fi
8270done
8271  done
8272IFS=$as_save_IFS
8273
8274if test $ac_prog_rejected = yes; then
8275  # We found a bogon in the path, so make sure we never use it.
8276  set dummy $ac_cv_prog_CC
8277  shift
8278  if test $# != 0; then
8279    # We chose a different compiler from the bogus one.
8280    # However, it has the same basename, so the bogon will be chosen
8281    # first if we set CC to just the basename; use the full file name.
8282    shift
8283    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8284  fi
8285fi
8286fi
8287fi
8288CC=$ac_cv_prog_CC
8289if test -n "$CC"; then
8290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8291$as_echo "$CC" >&6; }
8292else
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
8295fi
8296
8297
8298fi
8299if test -z "$CC"; then
8300  if test -n "$ac_tool_prefix"; then
8301  for ac_prog in cl.exe
8302  do
8303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
8307if ${ac_cv_prog_CC+:} false; then :
8308  $as_echo_n "(cached) " >&6
8309else
8310  if test -n "$CC"; then
8311  ac_cv_prog_CC="$CC" # Let the user override the test.
8312else
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316  IFS=$as_save_IFS
8317  test -z "$as_dir" && as_dir=.
8318    for ac_exec_ext in '' $ac_executable_extensions; do
8319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322    break 2
8323  fi
8324done
8325  done
8326IFS=$as_save_IFS
8327
8328fi
8329fi
8330CC=$ac_cv_prog_CC
8331if test -n "$CC"; then
8332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8333$as_echo "$CC" >&6; }
8334else
8335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
8337fi
8338
8339
8340    test -n "$CC" && break
8341  done
8342fi
8343if test -z "$CC"; then
8344  ac_ct_CC=$CC
8345  for ac_prog in cl.exe
8346do
8347  # Extract the first word of "$ac_prog", so it can be a program name with args.
8348set dummy $ac_prog; ac_word=$2
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350$as_echo_n "checking for $ac_word... " >&6; }
8351if ${ac_cv_prog_ac_ct_CC+:} false; then :
8352  $as_echo_n "(cached) " >&6
8353else
8354  if test -n "$ac_ct_CC"; then
8355  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8356else
8357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358for as_dir in $PATH
8359do
8360  IFS=$as_save_IFS
8361  test -z "$as_dir" && as_dir=.
8362    for ac_exec_ext in '' $ac_executable_extensions; do
8363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364    ac_cv_prog_ac_ct_CC="$ac_prog"
8365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366    break 2
8367  fi
8368done
8369  done
8370IFS=$as_save_IFS
8371
8372fi
8373fi
8374ac_ct_CC=$ac_cv_prog_ac_ct_CC
8375if test -n "$ac_ct_CC"; then
8376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8377$as_echo "$ac_ct_CC" >&6; }
8378else
8379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380$as_echo "no" >&6; }
8381fi
8382
8383
8384  test -n "$ac_ct_CC" && break
8385done
8386
8387  if test "x$ac_ct_CC" = x; then
8388    CC=""
8389  else
8390    case $cross_compiling:$ac_tool_warned in
8391yes:)
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8394ac_tool_warned=yes ;;
8395esac
8396    CC=$ac_ct_CC
8397  fi
8398fi
8399
8400fi
8401
8402
8403test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8405as_fn_error $? "no acceptable C compiler found in \$PATH
8406See \`config.log' for more details" "$LINENO" 5; }
8407
8408# Provide some information about the compiler.
8409$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8410set X $ac_compile
8411ac_compiler=$2
8412for ac_option in --version -v -V -qversion; do
8413  { { ac_try="$ac_compiler $ac_option >&5"
8414case "(($ac_try" in
8415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416  *) ac_try_echo=$ac_try;;
8417esac
8418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8419$as_echo "$ac_try_echo"; } >&5
8420  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8421  ac_status=$?
8422  if test -s conftest.err; then
8423    sed '10a\
8424... rest of stderr output deleted ...
8425         10q' conftest.err >conftest.er1
8426    cat conftest.er1 >&5
8427  fi
8428  rm -f conftest.er1 conftest.err
8429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8430  test $ac_status = 0; }
8431done
8432
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8434$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8435if ${ac_cv_c_compiler_gnu+:} false; then :
8436  $as_echo_n "(cached) " >&6
8437else
8438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439/* end confdefs.h.  */
8440
8441int
8442main ()
8443{
8444#ifndef __GNUC__
8445       choke me
8446#endif
8447
8448  ;
8449  return 0;
8450}
8451_ACEOF
8452if ac_fn_c_try_compile "$LINENO"; then :
8453  ac_compiler_gnu=yes
8454else
8455  ac_compiler_gnu=no
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458ac_cv_c_compiler_gnu=$ac_compiler_gnu
8459
8460fi
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8462$as_echo "$ac_cv_c_compiler_gnu" >&6; }
8463if test $ac_compiler_gnu = yes; then
8464  GCC=yes
8465else
8466  GCC=
8467fi
8468ac_test_CFLAGS=${CFLAGS+set}
8469ac_save_CFLAGS=$CFLAGS
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8471$as_echo_n "checking whether $CC accepts -g... " >&6; }
8472if ${ac_cv_prog_cc_g+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  ac_save_c_werror_flag=$ac_c_werror_flag
8476   ac_c_werror_flag=yes
8477   ac_cv_prog_cc_g=no
8478   CFLAGS="-g"
8479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481
8482int
8483main ()
8484{
8485
8486  ;
8487  return 0;
8488}
8489_ACEOF
8490if ac_fn_c_try_compile "$LINENO"; then :
8491  ac_cv_prog_cc_g=yes
8492else
8493  CFLAGS=""
8494      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495/* end confdefs.h.  */
8496
8497int
8498main ()
8499{
8500
8501  ;
8502  return 0;
8503}
8504_ACEOF
8505if ac_fn_c_try_compile "$LINENO"; then :
8506
8507else
8508  ac_c_werror_flag=$ac_save_c_werror_flag
8509	 CFLAGS="-g"
8510	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h.  */
8512
8513int
8514main ()
8515{
8516
8517  ;
8518  return 0;
8519}
8520_ACEOF
8521if ac_fn_c_try_compile "$LINENO"; then :
8522  ac_cv_prog_cc_g=yes
8523fi
8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525fi
8526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527fi
8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529   ac_c_werror_flag=$ac_save_c_werror_flag
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8532$as_echo "$ac_cv_prog_cc_g" >&6; }
8533if test "$ac_test_CFLAGS" = set; then
8534  CFLAGS=$ac_save_CFLAGS
8535elif test $ac_cv_prog_cc_g = yes; then
8536  if test "$GCC" = yes; then
8537    CFLAGS="-g -O2"
8538  else
8539    CFLAGS="-g"
8540  fi
8541else
8542  if test "$GCC" = yes; then
8543    CFLAGS="-O2"
8544  else
8545    CFLAGS=
8546  fi
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8549$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8550if ${ac_cv_prog_cc_c89+:} false; then :
8551  $as_echo_n "(cached) " >&6
8552else
8553  ac_cv_prog_cc_c89=no
8554ac_save_CC=$CC
8555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556/* end confdefs.h.  */
8557#include <stdarg.h>
8558#include <stdio.h>
8559struct stat;
8560/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8561struct buf { int x; };
8562FILE * (*rcsopen) (struct buf *, struct stat *, int);
8563static char *e (p, i)
8564     char **p;
8565     int i;
8566{
8567  return p[i];
8568}
8569static char *f (char * (*g) (char **, int), char **p, ...)
8570{
8571  char *s;
8572  va_list v;
8573  va_start (v,p);
8574  s = g (p, va_arg (v,int));
8575  va_end (v);
8576  return s;
8577}
8578
8579/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
8580   function prototypes and stuff, but not '\xHH' hex character constants.
8581   These don't provoke an error unfortunately, instead are silently treated
8582   as 'x'.  The following induces an error, until -std is added to get
8583   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
8584   array size at least.  It's necessary to write '\x00'==0 to get something
8585   that's true only with -std.  */
8586int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8587
8588/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8589   inside strings and character constants.  */
8590#define FOO(x) 'x'
8591int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8592
8593int test (int i, double x);
8594struct s1 {int (*f) (int a);};
8595struct s2 {int (*f) (double a);};
8596int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8597int argc;
8598char **argv;
8599int
8600main ()
8601{
8602return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8603  ;
8604  return 0;
8605}
8606_ACEOF
8607for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8608	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8609do
8610  CC="$ac_save_CC $ac_arg"
8611  if ac_fn_c_try_compile "$LINENO"; then :
8612  ac_cv_prog_cc_c89=$ac_arg
8613fi
8614rm -f core conftest.err conftest.$ac_objext
8615  test "x$ac_cv_prog_cc_c89" != "xno" && break
8616done
8617rm -f conftest.$ac_ext
8618CC=$ac_save_CC
8619
8620fi
8621# AC_CACHE_VAL
8622case "x$ac_cv_prog_cc_c89" in
8623  x)
8624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8625$as_echo "none needed" >&6; } ;;
8626  xno)
8627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8628$as_echo "unsupported" >&6; } ;;
8629  *)
8630    CC="$CC $ac_cv_prog_cc_c89"
8631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8632$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8633esac
8634if test "x$ac_cv_prog_cc_c89" != xno; then :
8635
8636fi
8637
8638ac_ext=c
8639ac_cpp='$CPP $CPPFLAGS'
8640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8642ac_compiler_gnu=$ac_cv_c_compiler_gnu
8643
8644ac_ext=c
8645ac_cpp='$CPP $CPPFLAGS'
8646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8648ac_compiler_gnu=$ac_cv_c_compiler_gnu
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
8650$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
8651if ${am_cv_prog_cc_c_o+:} false; then :
8652  $as_echo_n "(cached) " >&6
8653else
8654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h.  */
8656
8657int
8658main ()
8659{
8660
8661  ;
8662  return 0;
8663}
8664_ACEOF
8665  # Make sure it works both with $CC and with simple cc.
8666  # Following AC_PROG_CC_C_O, we do the test twice because some
8667  # compilers refuse to overwrite an existing .o file with -o,
8668  # though they will create one.
8669  am_cv_prog_cc_c_o=yes
8670  for am_i in 1 2; do
8671    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
8672   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
8673   ac_status=$?
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } \
8676         && test -f conftest2.$ac_objext; then
8677      : OK
8678    else
8679      am_cv_prog_cc_c_o=no
8680      break
8681    fi
8682  done
8683  rm -f core conftest*
8684  unset am_i
8685fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
8687$as_echo "$am_cv_prog_cc_c_o" >&6; }
8688if test "$am_cv_prog_cc_c_o" != yes; then
8689   # Losing compiler, so override with the script.
8690   # FIXME: It is wrong to rewrite CC.
8691   # But if we don't then we get into trouble of one sort or another.
8692   # A longer-term fix would be to have automake use am__CC in this case,
8693   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
8694   CC="$am_aux_dir/compile $CC"
8695fi
8696ac_ext=c
8697ac_cpp='$CPP $CPPFLAGS'
8698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702
8703depcc="$CC"   am_compiler_list=
8704
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8706$as_echo_n "checking dependency style of $depcc... " >&6; }
8707if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8708  $as_echo_n "(cached) " >&6
8709else
8710  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8711  # We make a subdir and do the tests there.  Otherwise we can end up
8712  # making bogus files that we don't know about and never remove.  For
8713  # instance it was reported that on HP-UX the gcc test will end up
8714  # making a dummy file named 'D' -- because '-MD' means "put the output
8715  # in D".
8716  rm -rf conftest.dir
8717  mkdir conftest.dir
8718  # Copy depcomp to subdir because otherwise we won't find it if we're
8719  # using a relative directory.
8720  cp "$am_depcomp" conftest.dir
8721  cd conftest.dir
8722  # We will build objects and dependencies in a subdirectory because
8723  # it helps to detect inapplicable dependency modes.  For instance
8724  # both Tru64's cc and ICC support -MD to output dependencies as a
8725  # side effect of compilation, but ICC will put the dependencies in
8726  # the current directory while Tru64 will put them in the object
8727  # directory.
8728  mkdir sub
8729
8730  am_cv_CC_dependencies_compiler_type=none
8731  if test "$am_compiler_list" = ""; then
8732     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8733  fi
8734  am__universal=false
8735  case " $depcc " in #(
8736     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8737     esac
8738
8739  for depmode in $am_compiler_list; do
8740    # Setup a source with many dependencies, because some compilers
8741    # like to wrap large dependency lists on column 80 (with \), and
8742    # we should not choose a depcomp mode which is confused by this.
8743    #
8744    # We need to recreate these files for each test, as the compiler may
8745    # overwrite some of them when testing with obscure command lines.
8746    # This happens at least with the AIX C compiler.
8747    : > sub/conftest.c
8748    for i in 1 2 3 4 5 6; do
8749      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8750      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8751      # Solaris 10 /bin/sh.
8752      echo '/* dummy */' > sub/conftst$i.h
8753    done
8754    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8755
8756    # We check with '-c' and '-o' for the sake of the "dashmstdout"
8757    # mode.  It turns out that the SunPro C++ compiler does not properly
8758    # handle '-M -o', and we need to detect this.  Also, some Intel
8759    # versions had trouble with output in subdirs.
8760    am__obj=sub/conftest.${OBJEXT-o}
8761    am__minus_obj="-o $am__obj"
8762    case $depmode in
8763    gcc)
8764      # This depmode causes a compiler race in universal mode.
8765      test "$am__universal" = false || continue
8766      ;;
8767    nosideeffect)
8768      # After this tag, mechanisms are not by side-effect, so they'll
8769      # only be used when explicitly requested.
8770      if test "x$enable_dependency_tracking" = xyes; then
8771	continue
8772      else
8773	break
8774      fi
8775      ;;
8776    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8777      # This compiler won't grok '-c -o', but also, the minuso test has
8778      # not run yet.  These depmodes are late enough in the game, and
8779      # so weak that their functioning should not be impacted.
8780      am__obj=conftest.${OBJEXT-o}
8781      am__minus_obj=
8782      ;;
8783    none) break ;;
8784    esac
8785    if depmode=$depmode \
8786       source=sub/conftest.c object=$am__obj \
8787       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8788       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8789         >/dev/null 2>conftest.err &&
8790       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8791       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8792       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8793       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8794      # icc doesn't choke on unknown options, it will just issue warnings
8795      # or remarks (even with -Werror).  So we grep stderr for any message
8796      # that says an option was ignored or not supported.
8797      # When given -MP, icc 7.0 and 7.1 complain thusly:
8798      #   icc: Command line warning: ignoring option '-M'; no argument required
8799      # The diagnosis changed in icc 8.0:
8800      #   icc: Command line remark: option '-MP' not supported
8801      if (grep 'ignoring option' conftest.err ||
8802          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8803        am_cv_CC_dependencies_compiler_type=$depmode
8804        break
8805      fi
8806    fi
8807  done
8808
8809  cd ..
8810  rm -rf conftest.dir
8811else
8812  am_cv_CC_dependencies_compiler_type=none
8813fi
8814
8815fi
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8817$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8818CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8819
8820 if
8821  test "x$enable_dependency_tracking" != xno \
8822  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8823  am__fastdepCC_TRUE=
8824  am__fastdepCC_FALSE='#'
8825else
8826  am__fastdepCC_TRUE='#'
8827  am__fastdepCC_FALSE=
8828fi
8829
8830
8831if test -n "$ac_tool_prefix"; then
8832  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8833set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
8836if ${ac_cv_prog_RANLIB+:} false; then :
8837  $as_echo_n "(cached) " >&6
8838else
8839  if test -n "$RANLIB"; then
8840  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845  IFS=$as_save_IFS
8846  test -z "$as_dir" && as_dir=.
8847    for ac_exec_ext in '' $ac_executable_extensions; do
8848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851    break 2
8852  fi
8853done
8854  done
8855IFS=$as_save_IFS
8856
8857fi
8858fi
8859RANLIB=$ac_cv_prog_RANLIB
8860if test -n "$RANLIB"; then
8861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8862$as_echo "$RANLIB" >&6; }
8863else
8864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
8866fi
8867
8868
8869fi
8870if test -z "$ac_cv_prog_RANLIB"; then
8871  ac_ct_RANLIB=$RANLIB
8872  # Extract the first word of "ranlib", so it can be a program name with args.
8873set dummy ranlib; ac_word=$2
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875$as_echo_n "checking for $ac_word... " >&6; }
8876if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  if test -n "$ac_ct_RANLIB"; then
8880  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885  IFS=$as_save_IFS
8886  test -z "$as_dir" && as_dir=.
8887    for ac_exec_ext in '' $ac_executable_extensions; do
8888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889    ac_cv_prog_ac_ct_RANLIB="ranlib"
8890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891    break 2
8892  fi
8893done
8894  done
8895IFS=$as_save_IFS
8896
8897fi
8898fi
8899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8900if test -n "$ac_ct_RANLIB"; then
8901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8902$as_echo "$ac_ct_RANLIB" >&6; }
8903else
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
8906fi
8907
8908  if test "x$ac_ct_RANLIB" = x; then
8909    RANLIB=":"
8910  else
8911    case $cross_compiling:$ac_tool_warned in
8912yes:)
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915ac_tool_warned=yes ;;
8916esac
8917    RANLIB=$ac_ct_RANLIB
8918  fi
8919else
8920  RANLIB="$ac_cv_prog_RANLIB"
8921fi
8922
8923
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8925$as_echo_n "checking for main in -lm... " >&6; }
8926if ${ac_cv_lib_m_main+:} false; then :
8927  $as_echo_n "(cached) " >&6
8928else
8929  ac_check_lib_save_LIBS=$LIBS
8930LIBS="-lm  $LIBS"
8931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933
8934
8935int
8936main ()
8937{
8938return main ();
8939  ;
8940  return 0;
8941}
8942_ACEOF
8943if ac_fn_c_try_link "$LINENO"; then :
8944  ac_cv_lib_m_main=yes
8945else
8946  ac_cv_lib_m_main=no
8947fi
8948rm -f core conftest.err conftest.$ac_objext \
8949    conftest$ac_exeext conftest.$ac_ext
8950LIBS=$ac_check_lib_save_LIBS
8951fi
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8953$as_echo "$ac_cv_lib_m_main" >&6; }
8954if test "x$ac_cv_lib_m_main" = xyes; then :
8955  cat >>confdefs.h <<_ACEOF
8956#define HAVE_LIBM 1
8957_ACEOF
8958
8959  LIBS="-lm $LIBS"
8960
8961else
8962  as_fn_error $? "lib math is needed" "$LINENO" 5
8963fi
8964
8965
8966
8967# Check whether --with-sdl-prefix was given.
8968if test "${with_sdl_prefix+set}" = set; then :
8969  withval=$with_sdl_prefix; sdl_prefix="$withval"
8970else
8971  sdl_prefix=""
8972fi
8973
8974
8975# Check whether --with-sdl-exec-prefix was given.
8976if test "${with_sdl_exec_prefix+set}" = set; then :
8977  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
8978else
8979  sdl_exec_prefix=""
8980fi
8981
8982# Check whether --enable-sdltest was given.
8983if test "${enable_sdltest+set}" = set; then :
8984  enableval=$enable_sdltest;
8985else
8986  enable_sdltest=yes
8987fi
8988
8989
8990  if test x$sdl_exec_prefix != x ; then
8991     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
8992     if test x${SDL_CONFIG+set} != xset ; then
8993        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
8994     fi
8995  fi
8996  if test x$sdl_prefix != x ; then
8997     sdl_args="$sdl_args --prefix=$sdl_prefix"
8998     if test x${SDL_CONFIG+set} != xset ; then
8999        SDL_CONFIG=$sdl_prefix/bin/sdl-config
9000     fi
9001  fi
9002
9003
9004  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
9005  # Extract the first word of "sdl-config", so it can be a program name with args.
9006set dummy sdl-config; ac_word=$2
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008$as_echo_n "checking for $ac_word... " >&6; }
9009if ${ac_cv_path_SDL_CONFIG+:} false; then :
9010  $as_echo_n "(cached) " >&6
9011else
9012  case $SDL_CONFIG in
9013  [\\/]* | ?:[\\/]*)
9014  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9015  ;;
9016  *)
9017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018for as_dir in $PATH
9019do
9020  IFS=$as_save_IFS
9021  test -z "$as_dir" && as_dir=.
9022    for ac_exec_ext in '' $ac_executable_extensions; do
9023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9024    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026    break 2
9027  fi
9028done
9029  done
9030IFS=$as_save_IFS
9031
9032  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9033  ;;
9034esac
9035fi
9036SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9037if test -n "$SDL_CONFIG"; then
9038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
9039$as_echo "$SDL_CONFIG" >&6; }
9040else
9041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
9043fi
9044
9045
9046  min_sdl_version=1.0.0
9047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
9048$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
9049  no_sdl=""
9050  if test "$SDL_CONFIG" = "no" ; then
9051    no_sdl=yes
9052  else
9053    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
9054    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
9055
9056    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
9057           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9058    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
9059           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9060    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
9061           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9062    if test "x$enable_sdltest" = "xyes" ; then
9063      ac_save_CFLAGS="$CFLAGS"
9064      ac_save_LIBS="$LIBS"
9065      CFLAGS="$CFLAGS $SDL_CFLAGS"
9066      LIBS="$LIBS $SDL_LIBS"
9067      rm -f conf.sdltest
9068      if test "$cross_compiling" = yes; then :
9069  echo $ac_n "cross compiling; assumed OK... $ac_c"
9070else
9071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072/* end confdefs.h.  */
9073
9074#include <stdio.h>
9075#include <stdlib.h>
9076#include <string.h>
9077#include "SDL.h"
9078
9079char*
9080my_strdup (char *str)
9081{
9082  char *new_str;
9083
9084  if (str)
9085    {
9086      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
9087      strcpy (new_str, str);
9088    }
9089  else
9090    new_str = NULL;
9091
9092  return new_str;
9093}
9094
9095int main (int argc, char *argv[])
9096{
9097  int major, minor, micro;
9098  char *tmp_version;
9099
9100  /* This hangs on some systems (?)
9101  system ("touch conf.sdltest");
9102  */
9103  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
9104
9105  /* HP/UX 9 (%@#!) writes to sscanf strings */
9106  tmp_version = my_strdup("$min_sdl_version");
9107  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9108     printf("%s, bad version string\n", "$min_sdl_version");
9109     exit(1);
9110   }
9111
9112   if (($sdl_major_version > major) ||
9113      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
9114      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
9115    {
9116      return 0;
9117    }
9118  else
9119    {
9120      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
9121      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
9122      printf("*** best to upgrade to the required version.\n");
9123      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
9124      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
9125      printf("*** config.cache before re-running configure\n");
9126      return 1;
9127    }
9128}
9129
9130
9131_ACEOF
9132if ac_fn_c_try_run "$LINENO"; then :
9133
9134else
9135  no_sdl=yes
9136fi
9137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9138  conftest.$ac_objext conftest.beam conftest.$ac_ext
9139fi
9140
9141       CFLAGS="$ac_save_CFLAGS"
9142       LIBS="$ac_save_LIBS"
9143     fi
9144  fi
9145  if test "x$no_sdl" = x ; then
9146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9147$as_echo "yes" >&6; }
9148     :
9149  else
9150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151$as_echo "no" >&6; }
9152     if test "$SDL_CONFIG" = "no" ; then
9153       echo "*** The sdl-config script installed by SDL could not be found"
9154       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
9155       echo "*** your path, or set the SDL_CONFIG environment variable to the"
9156       echo "*** full path to sdl-config."
9157     else
9158       if test -f conf.sdltest ; then
9159        :
9160       else
9161          echo "*** Could not run SDL test program, checking why..."
9162          CFLAGS="$CFLAGS $SDL_CFLAGS"
9163          LIBS="$LIBS $SDL_LIBS"
9164          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h.  */
9166
9167#include <stdio.h>
9168#include "SDL.h"
9169
9170int main(int argc, char *argv[])
9171{ return 0; }
9172#undef  main
9173#define main K_and_R_C_main
9174
9175int
9176main ()
9177{
9178 return 0;
9179  ;
9180  return 0;
9181}
9182_ACEOF
9183if ac_fn_c_try_link "$LINENO"; then :
9184   echo "*** The test program compiled, but did not run. This usually means"
9185          echo "*** that the run-time linker is not finding SDL or finding the wrong"
9186          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
9187          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9188          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
9189          echo "*** is required on your system"
9190	  echo "***"
9191          echo "*** If you have an old version installed, it is best to remove it, although"
9192          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9193else
9194   echo "*** The test program failed to compile or link. See the file config.log for the"
9195          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
9196          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
9197          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
9198fi
9199rm -f core conftest.err conftest.$ac_objext \
9200    conftest$ac_exeext conftest.$ac_ext
9201          CFLAGS="$ac_save_CFLAGS"
9202          LIBS="$ac_save_LIBS"
9203       fi
9204     fi
9205     SDL_CFLAGS=""
9206     SDL_LIBS=""
9207     as_fn_error $? "lib SDL is needed" "$LINENO" 5
9208  fi
9209
9210
9211  rm -f conf.sdltest
9212
9213CFLAGS="$CFLAGS $SDL_CFLAGS -Wno-unused-result"
9214LIBS="$LIBS $SDL_LIBS"
9215
9216# Check whether --with-sdl-prefix was given.
9217if test "${with_sdl_prefix+set}" = set; then :
9218  withval=$with_sdl_prefix; sdl_prefix="$withval"
9219else
9220  sdl_prefix=""
9221fi
9222
9223
9224# Check whether --with-sdl-exec-prefix was given.
9225if test "${with_sdl_exec_prefix+set}" = set; then :
9226  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
9227else
9228  sdl_exec_prefix=""
9229fi
9230
9231# Check whether --enable-sdltest was given.
9232if test "${enable_sdltest+set}" = set; then :
9233  enableval=$enable_sdltest;
9234else
9235  enable_sdltest=yes
9236fi
9237
9238
9239  if test x$sdl_exec_prefix != x ; then
9240     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
9241     if test x${SDL_CONFIG+set} != xset ; then
9242        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
9243     fi
9244  fi
9245  if test x$sdl_prefix != x ; then
9246     sdl_args="$sdl_args --prefix=$sdl_prefix"
9247     if test x${SDL_CONFIG+set} != xset ; then
9248        SDL_CONFIG=$sdl_prefix/bin/sdl-config
9249     fi
9250  fi
9251
9252
9253  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
9254  # Extract the first word of "sdl-config", so it can be a program name with args.
9255set dummy sdl-config; ac_word=$2
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257$as_echo_n "checking for $ac_word... " >&6; }
9258if ${ac_cv_path_SDL_CONFIG+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  case $SDL_CONFIG in
9262  [\\/]* | ?:[\\/]*)
9263  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9264  ;;
9265  *)
9266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267for as_dir in $PATH
9268do
9269  IFS=$as_save_IFS
9270  test -z "$as_dir" && as_dir=.
9271    for ac_exec_ext in '' $ac_executable_extensions; do
9272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9273    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275    break 2
9276  fi
9277done
9278  done
9279IFS=$as_save_IFS
9280
9281  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9282  ;;
9283esac
9284fi
9285SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9286if test -n "$SDL_CONFIG"; then
9287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
9288$as_echo "$SDL_CONFIG" >&6; }
9289else
9290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
9292fi
9293
9294
9295  min_sdl_version=1.1.5
9296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
9297$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
9298  no_sdl=""
9299  if test "$SDL_CONFIG" = "no" ; then
9300    no_sdl=yes
9301  else
9302    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
9303    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
9304
9305    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
9306           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9307    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
9308           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9309    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
9310           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9311    if test "x$enable_sdltest" = "xyes" ; then
9312      ac_save_CFLAGS="$CFLAGS"
9313      ac_save_LIBS="$LIBS"
9314      CFLAGS="$CFLAGS $SDL_CFLAGS"
9315      LIBS="$LIBS $SDL_LIBS"
9316      rm -f conf.sdltest
9317      if test "$cross_compiling" = yes; then :
9318  echo $ac_n "cross compiling; assumed OK... $ac_c"
9319else
9320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321/* end confdefs.h.  */
9322
9323#include <stdio.h>
9324#include <stdlib.h>
9325#include <string.h>
9326#include "SDL.h"
9327
9328char*
9329my_strdup (char *str)
9330{
9331  char *new_str;
9332
9333  if (str)
9334    {
9335      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
9336      strcpy (new_str, str);
9337    }
9338  else
9339    new_str = NULL;
9340
9341  return new_str;
9342}
9343
9344int main (int argc, char *argv[])
9345{
9346  int major, minor, micro;
9347  char *tmp_version;
9348
9349  /* This hangs on some systems (?)
9350  system ("touch conf.sdltest");
9351  */
9352  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
9353
9354  /* HP/UX 9 (%@#!) writes to sscanf strings */
9355  tmp_version = my_strdup("$min_sdl_version");
9356  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9357     printf("%s, bad version string\n", "$min_sdl_version");
9358     exit(1);
9359   }
9360
9361   if (($sdl_major_version > major) ||
9362      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
9363      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
9364    {
9365      return 0;
9366    }
9367  else
9368    {
9369      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
9370      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
9371      printf("*** best to upgrade to the required version.\n");
9372      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
9373      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
9374      printf("*** config.cache before re-running configure\n");
9375      return 1;
9376    }
9377}
9378
9379
9380_ACEOF
9381if ac_fn_c_try_run "$LINENO"; then :
9382
9383else
9384  no_sdl=yes
9385fi
9386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9387  conftest.$ac_objext conftest.beam conftest.$ac_ext
9388fi
9389
9390       CFLAGS="$ac_save_CFLAGS"
9391       LIBS="$ac_save_LIBS"
9392     fi
9393  fi
9394  if test "x$no_sdl" = x ; then
9395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9396$as_echo "yes" >&6; }
9397     CFLAGS="$CFLAGS -DSDL_1_1_5"
9398  else
9399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400$as_echo "no" >&6; }
9401     if test "$SDL_CONFIG" = "no" ; then
9402       echo "*** The sdl-config script installed by SDL could not be found"
9403       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
9404       echo "*** your path, or set the SDL_CONFIG environment variable to the"
9405       echo "*** full path to sdl-config."
9406     else
9407       if test -f conf.sdltest ; then
9408        :
9409       else
9410          echo "*** Could not run SDL test program, checking why..."
9411          CFLAGS="$CFLAGS $SDL_CFLAGS"
9412          LIBS="$LIBS $SDL_LIBS"
9413          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h.  */
9415
9416#include <stdio.h>
9417#include "SDL.h"
9418
9419int main(int argc, char *argv[])
9420{ return 0; }
9421#undef  main
9422#define main K_and_R_C_main
9423
9424int
9425main ()
9426{
9427 return 0;
9428  ;
9429  return 0;
9430}
9431_ACEOF
9432if ac_fn_c_try_link "$LINENO"; then :
9433   echo "*** The test program compiled, but did not run. This usually means"
9434          echo "*** that the run-time linker is not finding SDL or finding the wrong"
9435          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
9436          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9437          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
9438          echo "*** is required on your system"
9439	  echo "***"
9440          echo "*** If you have an old version installed, it is best to remove it, although"
9441          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9442else
9443   echo "*** The test program failed to compile or link. See the file config.log for the"
9444          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
9445          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
9446          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
9447fi
9448rm -f core conftest.err conftest.$ac_objext \
9449    conftest$ac_exeext conftest.$ac_ext
9450          CFLAGS="$ac_save_CFLAGS"
9451          LIBS="$ac_save_LIBS"
9452       fi
9453     fi
9454     SDL_CFLAGS=""
9455     SDL_LIBS=""
9456     :
9457  fi
9458
9459
9460  rm -f conf.sdltest
9461
9462
9463sound_flag="-DSOUND"
9464# Check whether --enable-sound was given.
9465if test "${enable_sound+set}" = set; then :
9466  enableval=$enable_sound; sound_flag=""
9467fi
9468
9469
9470
9471localedir=$datadir/locale
9472locdir_flag="-DLOCALEDIR=\\\"$localedir\\\""
9473
9474inst_dir=$datadir/games/lpairs
9475inst_flag="-DSRC_DIR=\\\"$inst_dir/\\\""
9476
9477# Check whether --enable-install was given.
9478if test "${enable_install+set}" = set; then :
9479  enableval=$enable_install; inst_dir=. inst_flag="-DSRC_DIR=\\\"./\\\""
9480locdir_flag="-DLOCALEDIR=\\\"../dict\\\""
9481    rm -rf dict; mkdir dict
9482    for lang in `cat po/LINGUAS`; do
9483        mkdir dict/$lang; mkdir dict/$lang/LC_MESSAGES
9484        ln -s ../../../po/$lang.gmo dict/$lang/LC_MESSAGES/$PACKAGE.mo
9485    done
9486
9487fi
9488
9489
9490
9491
9492
9493
9494ac_config_files="$ac_config_files Makefile lpairs/Makefile intl/Makefile po/Makefile.in m4/Makefile"
9495
9496cat >confcache <<\_ACEOF
9497# This file is a shell script that caches the results of configure
9498# tests run on this system so they can be shared between configure
9499# scripts and configure runs, see configure's option --config-cache.
9500# It is not useful on other systems.  If it contains results you don't
9501# want to keep, you may remove or edit it.
9502#
9503# config.status only pays attention to the cache file if you give it
9504# the --recheck option to rerun configure.
9505#
9506# `ac_cv_env_foo' variables (set or unset) will be overridden when
9507# loading this file, other *unset* `ac_cv_foo' will be assigned the
9508# following values.
9509
9510_ACEOF
9511
9512# The following way of writing the cache mishandles newlines in values,
9513# but we know of no workaround that is simple, portable, and efficient.
9514# So, we kill variables containing newlines.
9515# Ultrix sh set writes to stderr and can't be redirected directly,
9516# and sets the high bit in the cache file unless we assign to the vars.
9517(
9518  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9519    eval ac_val=\$$ac_var
9520    case $ac_val in #(
9521    *${as_nl}*)
9522      case $ac_var in #(
9523      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9524$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9525      esac
9526      case $ac_var in #(
9527      _ | IFS | as_nl) ;; #(
9528      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9529      *) { eval $ac_var=; unset $ac_var;} ;;
9530      esac ;;
9531    esac
9532  done
9533
9534  (set) 2>&1 |
9535    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9536    *${as_nl}ac_space=\ *)
9537      # `set' does not quote correctly, so add quotes: double-quote
9538      # substitution turns \\\\ into \\, and sed turns \\ into \.
9539      sed -n \
9540	"s/'/'\\\\''/g;
9541	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9542      ;; #(
9543    *)
9544      # `set' quotes correctly as required by POSIX, so do not add quotes.
9545      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9546      ;;
9547    esac |
9548    sort
9549) |
9550  sed '
9551     /^ac_cv_env_/b end
9552     t clear
9553     :clear
9554     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9555     t end
9556     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9557     :end' >>confcache
9558if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9559  if test -w "$cache_file"; then
9560    if test "x$cache_file" != "x/dev/null"; then
9561      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9562$as_echo "$as_me: updating cache $cache_file" >&6;}
9563      if test ! -f "$cache_file" || test -h "$cache_file"; then
9564	cat confcache >"$cache_file"
9565      else
9566        case $cache_file in #(
9567        */* | ?:*)
9568	  mv -f confcache "$cache_file"$$ &&
9569	  mv -f "$cache_file"$$ "$cache_file" ;; #(
9570        *)
9571	  mv -f confcache "$cache_file" ;;
9572	esac
9573      fi
9574    fi
9575  else
9576    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9577$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9578  fi
9579fi
9580rm -f confcache
9581
9582test "x$prefix" = xNONE && prefix=$ac_default_prefix
9583# Let make expand exec_prefix.
9584test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9585
9586DEFS=-DHAVE_CONFIG_H
9587
9588ac_libobjs=
9589ac_ltlibobjs=
9590for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9591  # 1. Remove the extension, and $U if already installed.
9592  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9593  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9594  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9595  #    will be set to the directory where LIBOBJS objects are built.
9596  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9597  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9598done
9599LIBOBJS=$ac_libobjs
9600
9601LTLIBOBJS=$ac_ltlibobjs
9602
9603
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9605$as_echo_n "checking that generated files are newer than configure... " >&6; }
9606   if test -n "$am_sleep_pid"; then
9607     # Hide warnings about reused PIDs.
9608     wait $am_sleep_pid 2>/dev/null
9609   fi
9610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9611$as_echo "done" >&6; }
9612 if test -n "$EXEEXT"; then
9613  am__EXEEXT_TRUE=
9614  am__EXEEXT_FALSE='#'
9615else
9616  am__EXEEXT_TRUE='#'
9617  am__EXEEXT_FALSE=
9618fi
9619
9620if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9621  as_fn_error $? "conditional \"AMDEP\" was never defined.
9622Usually this means the macro was only invoked conditionally." "$LINENO" 5
9623fi
9624if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9625  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9626Usually this means the macro was only invoked conditionally." "$LINENO" 5
9627fi
9628if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9629  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9630Usually this means the macro was only invoked conditionally." "$LINENO" 5
9631fi
9632
9633: "${CONFIG_STATUS=./config.status}"
9634ac_write_fail=0
9635ac_clean_files_save=$ac_clean_files
9636ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9637{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9638$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9639as_write_fail=0
9640cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9641#! $SHELL
9642# Generated by $as_me.
9643# Run this file to recreate the current configuration.
9644# Compiler output produced by configure, useful for debugging
9645# configure, is in config.log if it exists.
9646
9647debug=false
9648ac_cs_recheck=false
9649ac_cs_silent=false
9650
9651SHELL=\${CONFIG_SHELL-$SHELL}
9652export SHELL
9653_ASEOF
9654cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9655## -------------------- ##
9656## M4sh Initialization. ##
9657## -------------------- ##
9658
9659# Be more Bourne compatible
9660DUALCASE=1; export DUALCASE # for MKS sh
9661if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9662  emulate sh
9663  NULLCMD=:
9664  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9665  # is contrary to our usage.  Disable this feature.
9666  alias -g '${1+"$@"}'='"$@"'
9667  setopt NO_GLOB_SUBST
9668else
9669  case `(set -o) 2>/dev/null` in #(
9670  *posix*) :
9671    set -o posix ;; #(
9672  *) :
9673     ;;
9674esac
9675fi
9676
9677
9678as_nl='
9679'
9680export as_nl
9681# Printing a long string crashes Solaris 7 /usr/bin/printf.
9682as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9683as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9684as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9685# Prefer a ksh shell builtin over an external printf program on Solaris,
9686# but without wasting forks for bash or zsh.
9687if test -z "$BASH_VERSION$ZSH_VERSION" \
9688    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9689  as_echo='print -r --'
9690  as_echo_n='print -rn --'
9691elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9692  as_echo='printf %s\n'
9693  as_echo_n='printf %s'
9694else
9695  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9696    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9697    as_echo_n='/usr/ucb/echo -n'
9698  else
9699    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9700    as_echo_n_body='eval
9701      arg=$1;
9702      case $arg in #(
9703      *"$as_nl"*)
9704	expr "X$arg" : "X\\(.*\\)$as_nl";
9705	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9706      esac;
9707      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9708    '
9709    export as_echo_n_body
9710    as_echo_n='sh -c $as_echo_n_body as_echo'
9711  fi
9712  export as_echo_body
9713  as_echo='sh -c $as_echo_body as_echo'
9714fi
9715
9716# The user is always right.
9717if test "${PATH_SEPARATOR+set}" != set; then
9718  PATH_SEPARATOR=:
9719  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9720    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9721      PATH_SEPARATOR=';'
9722  }
9723fi
9724
9725
9726# IFS
9727# We need space, tab and new line, in precisely that order.  Quoting is
9728# there to prevent editors from complaining about space-tab.
9729# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9730# splitting by setting IFS to empty value.)
9731IFS=" ""	$as_nl"
9732
9733# Find who we are.  Look in the path if we contain no directory separator.
9734as_myself=
9735case $0 in #((
9736  *[\\/]* ) as_myself=$0 ;;
9737  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738for as_dir in $PATH
9739do
9740  IFS=$as_save_IFS
9741  test -z "$as_dir" && as_dir=.
9742    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9743  done
9744IFS=$as_save_IFS
9745
9746     ;;
9747esac
9748# We did not find ourselves, most probably we were run as `sh COMMAND'
9749# in which case we are not to be found in the path.
9750if test "x$as_myself" = x; then
9751  as_myself=$0
9752fi
9753if test ! -f "$as_myself"; then
9754  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9755  exit 1
9756fi
9757
9758# Unset variables that we do not need and which cause bugs (e.g. in
9759# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9760# suppresses any "Segmentation fault" message there.  '((' could
9761# trigger a bug in pdksh 5.2.14.
9762for as_var in BASH_ENV ENV MAIL MAILPATH
9763do eval test x\${$as_var+set} = xset \
9764  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9765done
9766PS1='$ '
9767PS2='> '
9768PS4='+ '
9769
9770# NLS nuisances.
9771LC_ALL=C
9772export LC_ALL
9773LANGUAGE=C
9774export LANGUAGE
9775
9776# CDPATH.
9777(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9778
9779
9780# as_fn_error STATUS ERROR [LINENO LOG_FD]
9781# ----------------------------------------
9782# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9783# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9784# script with STATUS, using 1 if that was 0.
9785as_fn_error ()
9786{
9787  as_status=$1; test $as_status -eq 0 && as_status=1
9788  if test "$4"; then
9789    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9790    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9791  fi
9792  $as_echo "$as_me: error: $2" >&2
9793  as_fn_exit $as_status
9794} # as_fn_error
9795
9796
9797# as_fn_set_status STATUS
9798# -----------------------
9799# Set $? to STATUS, without forking.
9800as_fn_set_status ()
9801{
9802  return $1
9803} # as_fn_set_status
9804
9805# as_fn_exit STATUS
9806# -----------------
9807# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9808as_fn_exit ()
9809{
9810  set +e
9811  as_fn_set_status $1
9812  exit $1
9813} # as_fn_exit
9814
9815# as_fn_unset VAR
9816# ---------------
9817# Portably unset VAR.
9818as_fn_unset ()
9819{
9820  { eval $1=; unset $1;}
9821}
9822as_unset=as_fn_unset
9823# as_fn_append VAR VALUE
9824# ----------------------
9825# Append the text in VALUE to the end of the definition contained in VAR. Take
9826# advantage of any shell optimizations that allow amortized linear growth over
9827# repeated appends, instead of the typical quadratic growth present in naive
9828# implementations.
9829if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9830  eval 'as_fn_append ()
9831  {
9832    eval $1+=\$2
9833  }'
9834else
9835  as_fn_append ()
9836  {
9837    eval $1=\$$1\$2
9838  }
9839fi # as_fn_append
9840
9841# as_fn_arith ARG...
9842# ------------------
9843# Perform arithmetic evaluation on the ARGs, and store the result in the
9844# global $as_val. Take advantage of shells that can avoid forks. The arguments
9845# must be portable across $(()) and expr.
9846if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9847  eval 'as_fn_arith ()
9848  {
9849    as_val=$(( $* ))
9850  }'
9851else
9852  as_fn_arith ()
9853  {
9854    as_val=`expr "$@" || test $? -eq 1`
9855  }
9856fi # as_fn_arith
9857
9858
9859if expr a : '\(a\)' >/dev/null 2>&1 &&
9860   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9861  as_expr=expr
9862else
9863  as_expr=false
9864fi
9865
9866if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9867  as_basename=basename
9868else
9869  as_basename=false
9870fi
9871
9872if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9873  as_dirname=dirname
9874else
9875  as_dirname=false
9876fi
9877
9878as_me=`$as_basename -- "$0" ||
9879$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9880	 X"$0" : 'X\(//\)$' \| \
9881	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9882$as_echo X/"$0" |
9883    sed '/^.*\/\([^/][^/]*\)\/*$/{
9884	    s//\1/
9885	    q
9886	  }
9887	  /^X\/\(\/\/\)$/{
9888	    s//\1/
9889	    q
9890	  }
9891	  /^X\/\(\/\).*/{
9892	    s//\1/
9893	    q
9894	  }
9895	  s/.*/./; q'`
9896
9897# Avoid depending upon Character Ranges.
9898as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9899as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9900as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9901as_cr_digits='0123456789'
9902as_cr_alnum=$as_cr_Letters$as_cr_digits
9903
9904ECHO_C= ECHO_N= ECHO_T=
9905case `echo -n x` in #(((((
9906-n*)
9907  case `echo 'xy\c'` in
9908  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9909  xy)  ECHO_C='\c';;
9910  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9911       ECHO_T='	';;
9912  esac;;
9913*)
9914  ECHO_N='-n';;
9915esac
9916
9917rm -f conf$$ conf$$.exe conf$$.file
9918if test -d conf$$.dir; then
9919  rm -f conf$$.dir/conf$$.file
9920else
9921  rm -f conf$$.dir
9922  mkdir conf$$.dir 2>/dev/null
9923fi
9924if (echo >conf$$.file) 2>/dev/null; then
9925  if ln -s conf$$.file conf$$ 2>/dev/null; then
9926    as_ln_s='ln -s'
9927    # ... but there are two gotchas:
9928    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9929    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9930    # In both cases, we have to default to `cp -pR'.
9931    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9932      as_ln_s='cp -pR'
9933  elif ln conf$$.file conf$$ 2>/dev/null; then
9934    as_ln_s=ln
9935  else
9936    as_ln_s='cp -pR'
9937  fi
9938else
9939  as_ln_s='cp -pR'
9940fi
9941rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9942rmdir conf$$.dir 2>/dev/null
9943
9944
9945# as_fn_mkdir_p
9946# -------------
9947# Create "$as_dir" as a directory, including parents if necessary.
9948as_fn_mkdir_p ()
9949{
9950
9951  case $as_dir in #(
9952  -*) as_dir=./$as_dir;;
9953  esac
9954  test -d "$as_dir" || eval $as_mkdir_p || {
9955    as_dirs=
9956    while :; do
9957      case $as_dir in #(
9958      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9959      *) as_qdir=$as_dir;;
9960      esac
9961      as_dirs="'$as_qdir' $as_dirs"
9962      as_dir=`$as_dirname -- "$as_dir" ||
9963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9964	 X"$as_dir" : 'X\(//\)[^/]' \| \
9965	 X"$as_dir" : 'X\(//\)$' \| \
9966	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9967$as_echo X"$as_dir" |
9968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9969	    s//\1/
9970	    q
9971	  }
9972	  /^X\(\/\/\)[^/].*/{
9973	    s//\1/
9974	    q
9975	  }
9976	  /^X\(\/\/\)$/{
9977	    s//\1/
9978	    q
9979	  }
9980	  /^X\(\/\).*/{
9981	    s//\1/
9982	    q
9983	  }
9984	  s/.*/./; q'`
9985      test -d "$as_dir" && break
9986    done
9987    test -z "$as_dirs" || eval "mkdir $as_dirs"
9988  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9989
9990
9991} # as_fn_mkdir_p
9992if mkdir -p . 2>/dev/null; then
9993  as_mkdir_p='mkdir -p "$as_dir"'
9994else
9995  test -d ./-p && rmdir ./-p
9996  as_mkdir_p=false
9997fi
9998
9999
10000# as_fn_executable_p FILE
10001# -----------------------
10002# Test if FILE is an executable regular file.
10003as_fn_executable_p ()
10004{
10005  test -f "$1" && test -x "$1"
10006} # as_fn_executable_p
10007as_test_x='test -x'
10008as_executable_p=as_fn_executable_p
10009
10010# Sed expression to map a string onto a valid CPP name.
10011as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10012
10013# Sed expression to map a string onto a valid variable name.
10014as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10015
10016
10017exec 6>&1
10018## ----------------------------------- ##
10019## Main body of $CONFIG_STATUS script. ##
10020## ----------------------------------- ##
10021_ASEOF
10022test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10023
10024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10025# Save the log message, to keep $0 and so on meaningful, and to
10026# report actual input values of CONFIG_FILES etc. instead of their
10027# values after options handling.
10028ac_log="
10029This file was extended by $as_me, which was
10030generated by GNU Autoconf 2.69.  Invocation command line was
10031
10032  CONFIG_FILES    = $CONFIG_FILES
10033  CONFIG_HEADERS  = $CONFIG_HEADERS
10034  CONFIG_LINKS    = $CONFIG_LINKS
10035  CONFIG_COMMANDS = $CONFIG_COMMANDS
10036  $ $0 $@
10037
10038on `(hostname || uname -n) 2>/dev/null | sed 1q`
10039"
10040
10041_ACEOF
10042
10043case $ac_config_files in *"
10044"*) set x $ac_config_files; shift; ac_config_files=$*;;
10045esac
10046
10047case $ac_config_headers in *"
10048"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10049esac
10050
10051
10052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10053# Files that config.status was made for.
10054config_files="$ac_config_files"
10055config_headers="$ac_config_headers"
10056config_commands="$ac_config_commands"
10057
10058_ACEOF
10059
10060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10061ac_cs_usage="\
10062\`$as_me' instantiates files and other configuration actions
10063from templates according to the current configuration.  Unless the files
10064and actions are specified as TAGs, all are instantiated by default.
10065
10066Usage: $0 [OPTION]... [TAG]...
10067
10068  -h, --help       print this help, then exit
10069  -V, --version    print version number and configuration settings, then exit
10070      --config     print configuration, then exit
10071  -q, --quiet, --silent
10072                   do not print progress messages
10073  -d, --debug      don't remove temporary files
10074      --recheck    update $as_me by reconfiguring in the same conditions
10075      --file=FILE[:TEMPLATE]
10076                   instantiate the configuration file FILE
10077      --header=FILE[:TEMPLATE]
10078                   instantiate the configuration header FILE
10079
10080Configuration files:
10081$config_files
10082
10083Configuration headers:
10084$config_headers
10085
10086Configuration commands:
10087$config_commands
10088
10089Report bugs to the package provider."
10090
10091_ACEOF
10092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10093ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10094ac_cs_version="\\
10095config.status
10096configured by $0, generated by GNU Autoconf 2.69,
10097  with options \\"\$ac_cs_config\\"
10098
10099Copyright (C) 2012 Free Software Foundation, Inc.
10100This config.status script is free software; the Free Software Foundation
10101gives unlimited permission to copy, distribute and modify it."
10102
10103ac_pwd='$ac_pwd'
10104srcdir='$srcdir'
10105INSTALL='$INSTALL'
10106MKDIR_P='$MKDIR_P'
10107AWK='$AWK'
10108test -n "\$AWK" || AWK=awk
10109_ACEOF
10110
10111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10112# The default lists apply if the user does not specify any file.
10113ac_need_defaults=:
10114while test $# != 0
10115do
10116  case $1 in
10117  --*=?*)
10118    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10119    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10120    ac_shift=:
10121    ;;
10122  --*=)
10123    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10124    ac_optarg=
10125    ac_shift=:
10126    ;;
10127  *)
10128    ac_option=$1
10129    ac_optarg=$2
10130    ac_shift=shift
10131    ;;
10132  esac
10133
10134  case $ac_option in
10135  # Handling of the options.
10136  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10137    ac_cs_recheck=: ;;
10138  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10139    $as_echo "$ac_cs_version"; exit ;;
10140  --config | --confi | --conf | --con | --co | --c )
10141    $as_echo "$ac_cs_config"; exit ;;
10142  --debug | --debu | --deb | --de | --d | -d )
10143    debug=: ;;
10144  --file | --fil | --fi | --f )
10145    $ac_shift
10146    case $ac_optarg in
10147    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10148    '') as_fn_error $? "missing file argument" ;;
10149    esac
10150    as_fn_append CONFIG_FILES " '$ac_optarg'"
10151    ac_need_defaults=false;;
10152  --header | --heade | --head | --hea )
10153    $ac_shift
10154    case $ac_optarg in
10155    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10156    esac
10157    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10158    ac_need_defaults=false;;
10159  --he | --h)
10160    # Conflict between --help and --header
10161    as_fn_error $? "ambiguous option: \`$1'
10162Try \`$0 --help' for more information.";;
10163  --help | --hel | -h )
10164    $as_echo "$ac_cs_usage"; exit ;;
10165  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10166  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10167    ac_cs_silent=: ;;
10168
10169  # This is an error.
10170  -*) as_fn_error $? "unrecognized option: \`$1'
10171Try \`$0 --help' for more information." ;;
10172
10173  *) as_fn_append ac_config_targets " $1"
10174     ac_need_defaults=false ;;
10175
10176  esac
10177  shift
10178done
10179
10180ac_configure_extra_args=
10181
10182if $ac_cs_silent; then
10183  exec 6>/dev/null
10184  ac_configure_extra_args="$ac_configure_extra_args --silent"
10185fi
10186
10187_ACEOF
10188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10189if \$ac_cs_recheck; then
10190  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10191  shift
10192  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10193  CONFIG_SHELL='$SHELL'
10194  export CONFIG_SHELL
10195  exec "\$@"
10196fi
10197
10198_ACEOF
10199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10200exec 5>>config.log
10201{
10202  echo
10203  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10204## Running $as_me. ##
10205_ASBOX
10206  $as_echo "$ac_log"
10207} >&5
10208
10209_ACEOF
10210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10211#
10212# INIT-COMMANDS
10213#
10214# Capture the value of obsolete ALL_LINGUAS because we need it to compute
10215    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10216    # from automake.
10217    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10218    # Capture the value of LINGUAS because we need it to compute CATALOGS.
10219    LINGUAS="${LINGUAS-%UNSET%}"
10220
10221AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10222
10223_ACEOF
10224
10225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10226
10227# Handling of arguments.
10228for ac_config_target in $ac_config_targets
10229do
10230  case $ac_config_target in
10231    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10232    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10233    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10234    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10235    "lpairs/Makefile") CONFIG_FILES="$CONFIG_FILES lpairs/Makefile" ;;
10236    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
10237    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10238    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10239
10240  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10241  esac
10242done
10243
10244
10245# If the user did not use the arguments to specify the items to instantiate,
10246# then the envvar interface is used.  Set only those that are not.
10247# We use the long form for the default assignment because of an extremely
10248# bizarre bug on SunOS 4.1.3.
10249if $ac_need_defaults; then
10250  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10251  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10252  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10253fi
10254
10255# Have a temporary directory for convenience.  Make it in the build tree
10256# simply because there is no reason against having it here, and in addition,
10257# creating and moving files from /tmp can sometimes cause problems.
10258# Hook for its removal unless debugging.
10259# Note that there is a small window in which the directory will not be cleaned:
10260# after its creation but before its name has been assigned to `$tmp'.
10261$debug ||
10262{
10263  tmp= ac_tmp=
10264  trap 'exit_status=$?
10265  : "${ac_tmp:=$tmp}"
10266  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10267' 0
10268  trap 'as_fn_exit 1' 1 2 13 15
10269}
10270# Create a (secure) tmp directory for tmp files.
10271
10272{
10273  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10274  test -d "$tmp"
10275}  ||
10276{
10277  tmp=./conf$$-$RANDOM
10278  (umask 077 && mkdir "$tmp")
10279} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10280ac_tmp=$tmp
10281
10282# Set up the scripts for CONFIG_FILES section.
10283# No need to generate them if there are no CONFIG_FILES.
10284# This happens for instance with `./config.status config.h'.
10285if test -n "$CONFIG_FILES"; then
10286
10287
10288ac_cr=`echo X | tr X '\015'`
10289# On cygwin, bash can eat \r inside `` if the user requested igncr.
10290# But we know of no other shell where ac_cr would be empty at this
10291# point, so we can use a bashism as a fallback.
10292if test "x$ac_cr" = x; then
10293  eval ac_cr=\$\'\\r\'
10294fi
10295ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10296if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10297  ac_cs_awk_cr='\\r'
10298else
10299  ac_cs_awk_cr=$ac_cr
10300fi
10301
10302echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10303_ACEOF
10304
10305
10306{
10307  echo "cat >conf$$subs.awk <<_ACEOF" &&
10308  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10309  echo "_ACEOF"
10310} >conf$$subs.sh ||
10311  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10312ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10313ac_delim='%!_!# '
10314for ac_last_try in false false false false false :; do
10315  . ./conf$$subs.sh ||
10316    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10317
10318  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10319  if test $ac_delim_n = $ac_delim_num; then
10320    break
10321  elif $ac_last_try; then
10322    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10323  else
10324    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10325  fi
10326done
10327rm -f conf$$subs.sh
10328
10329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10330cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10331_ACEOF
10332sed -n '
10333h
10334s/^/S["/; s/!.*/"]=/
10335p
10336g
10337s/^[^!]*!//
10338:repl
10339t repl
10340s/'"$ac_delim"'$//
10341t delim
10342:nl
10343h
10344s/\(.\{148\}\)..*/\1/
10345t more1
10346s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10347p
10348n
10349b repl
10350:more1
10351s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10352p
10353g
10354s/.\{148\}//
10355t nl
10356:delim
10357h
10358s/\(.\{148\}\)..*/\1/
10359t more2
10360s/["\\]/\\&/g; s/^/"/; s/$/"/
10361p
10362b
10363:more2
10364s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10365p
10366g
10367s/.\{148\}//
10368t delim
10369' <conf$$subs.awk | sed '
10370/^[^""]/{
10371  N
10372  s/\n//
10373}
10374' >>$CONFIG_STATUS || ac_write_fail=1
10375rm -f conf$$subs.awk
10376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10377_ACAWK
10378cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10379  for (key in S) S_is_set[key] = 1
10380  FS = ""
10381
10382}
10383{
10384  line = $ 0
10385  nfields = split(line, field, "@")
10386  substed = 0
10387  len = length(field[1])
10388  for (i = 2; i < nfields; i++) {
10389    key = field[i]
10390    keylen = length(key)
10391    if (S_is_set[key]) {
10392      value = S[key]
10393      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10394      len += length(value) + length(field[++i])
10395      substed = 1
10396    } else
10397      len += 1 + keylen
10398  }
10399
10400  print line
10401}
10402
10403_ACAWK
10404_ACEOF
10405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10406if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10407  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10408else
10409  cat
10410fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10411  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10412_ACEOF
10413
10414# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10415# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10416# trailing colons and then remove the whole line if VPATH becomes empty
10417# (actually we leave an empty line to preserve line numbers).
10418if test "x$srcdir" = x.; then
10419  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
10420h
10421s///
10422s/^/:/
10423s/[	 ]*$/:/
10424s/:\$(srcdir):/:/g
10425s/:\${srcdir}:/:/g
10426s/:@srcdir@:/:/g
10427s/^:*//
10428s/:*$//
10429x
10430s/\(=[	 ]*\).*/\1/
10431G
10432s/\n//
10433s/^[^=]*=[	 ]*$//
10434}'
10435fi
10436
10437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10438fi # test -n "$CONFIG_FILES"
10439
10440# Set up the scripts for CONFIG_HEADERS section.
10441# No need to generate them if there are no CONFIG_HEADERS.
10442# This happens for instance with `./config.status Makefile'.
10443if test -n "$CONFIG_HEADERS"; then
10444cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10445BEGIN {
10446_ACEOF
10447
10448# Transform confdefs.h into an awk script `defines.awk', embedded as
10449# here-document in config.status, that substitutes the proper values into
10450# config.h.in to produce config.h.
10451
10452# Create a delimiter string that does not exist in confdefs.h, to ease
10453# handling of long lines.
10454ac_delim='%!_!# '
10455for ac_last_try in false false :; do
10456  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10457  if test -z "$ac_tt"; then
10458    break
10459  elif $ac_last_try; then
10460    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10461  else
10462    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10463  fi
10464done
10465
10466# For the awk script, D is an array of macro values keyed by name,
10467# likewise P contains macro parameters if any.  Preserve backslash
10468# newline sequences.
10469
10470ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10471sed -n '
10472s/.\{148\}/&'"$ac_delim"'/g
10473t rset
10474:rset
10475s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10476t def
10477d
10478:def
10479s/\\$//
10480t bsnl
10481s/["\\]/\\&/g
10482s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10483D["\1"]=" \3"/p
10484s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10485d
10486:bsnl
10487s/["\\]/\\&/g
10488s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10489D["\1"]=" \3\\\\\\n"\\/p
10490t cont
10491s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10492t cont
10493d
10494:cont
10495n
10496s/.\{148\}/&'"$ac_delim"'/g
10497t clear
10498:clear
10499s/\\$//
10500t bsnlc
10501s/["\\]/\\&/g; s/^/"/; s/$/"/p
10502d
10503:bsnlc
10504s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10505b cont
10506' <confdefs.h | sed '
10507s/'"$ac_delim"'/"\\\
10508"/g' >>$CONFIG_STATUS || ac_write_fail=1
10509
10510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10511  for (key in D) D_is_set[key] = 1
10512  FS = ""
10513}
10514/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10515  line = \$ 0
10516  split(line, arg, " ")
10517  if (arg[1] == "#") {
10518    defundef = arg[2]
10519    mac1 = arg[3]
10520  } else {
10521    defundef = substr(arg[1], 2)
10522    mac1 = arg[2]
10523  }
10524  split(mac1, mac2, "(") #)
10525  macro = mac2[1]
10526  prefix = substr(line, 1, index(line, defundef) - 1)
10527  if (D_is_set[macro]) {
10528    # Preserve the white space surrounding the "#".
10529    print prefix "define", macro P[macro] D[macro]
10530    next
10531  } else {
10532    # Replace #undef with comments.  This is necessary, for example,
10533    # in the case of _POSIX_SOURCE, which is predefined and required
10534    # on some systems where configure will not decide to define it.
10535    if (defundef == "undef") {
10536      print "/*", prefix defundef, macro, "*/"
10537      next
10538    }
10539  }
10540}
10541{ print }
10542_ACAWK
10543_ACEOF
10544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10545  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10546fi # test -n "$CONFIG_HEADERS"
10547
10548
10549eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10550shift
10551for ac_tag
10552do
10553  case $ac_tag in
10554  :[FHLC]) ac_mode=$ac_tag; continue;;
10555  esac
10556  case $ac_mode$ac_tag in
10557  :[FHL]*:*);;
10558  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10559  :[FH]-) ac_tag=-:-;;
10560  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10561  esac
10562  ac_save_IFS=$IFS
10563  IFS=:
10564  set x $ac_tag
10565  IFS=$ac_save_IFS
10566  shift
10567  ac_file=$1
10568  shift
10569
10570  case $ac_mode in
10571  :L) ac_source=$1;;
10572  :[FH])
10573    ac_file_inputs=
10574    for ac_f
10575    do
10576      case $ac_f in
10577      -) ac_f="$ac_tmp/stdin";;
10578      *) # Look for the file first in the build tree, then in the source tree
10579	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10580	 # because $ac_f cannot contain `:'.
10581	 test -f "$ac_f" ||
10582	   case $ac_f in
10583	   [\\/$]*) false;;
10584	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10585	   esac ||
10586	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10587      esac
10588      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10589      as_fn_append ac_file_inputs " '$ac_f'"
10590    done
10591
10592    # Let's still pretend it is `configure' which instantiates (i.e., don't
10593    # use $as_me), people would be surprised to read:
10594    #    /* config.h.  Generated by config.status.  */
10595    configure_input='Generated from '`
10596	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10597	`' by configure.'
10598    if test x"$ac_file" != x-; then
10599      configure_input="$ac_file.  $configure_input"
10600      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10601$as_echo "$as_me: creating $ac_file" >&6;}
10602    fi
10603    # Neutralize special characters interpreted by sed in replacement strings.
10604    case $configure_input in #(
10605    *\&* | *\|* | *\\* )
10606       ac_sed_conf_input=`$as_echo "$configure_input" |
10607       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10608    *) ac_sed_conf_input=$configure_input;;
10609    esac
10610
10611    case $ac_tag in
10612    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10613      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10614    esac
10615    ;;
10616  esac
10617
10618  ac_dir=`$as_dirname -- "$ac_file" ||
10619$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10620	 X"$ac_file" : 'X\(//\)[^/]' \| \
10621	 X"$ac_file" : 'X\(//\)$' \| \
10622	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10623$as_echo X"$ac_file" |
10624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10625	    s//\1/
10626	    q
10627	  }
10628	  /^X\(\/\/\)[^/].*/{
10629	    s//\1/
10630	    q
10631	  }
10632	  /^X\(\/\/\)$/{
10633	    s//\1/
10634	    q
10635	  }
10636	  /^X\(\/\).*/{
10637	    s//\1/
10638	    q
10639	  }
10640	  s/.*/./; q'`
10641  as_dir="$ac_dir"; as_fn_mkdir_p
10642  ac_builddir=.
10643
10644case "$ac_dir" in
10645.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10646*)
10647  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10648  # A ".." for each directory in $ac_dir_suffix.
10649  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10650  case $ac_top_builddir_sub in
10651  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10652  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10653  esac ;;
10654esac
10655ac_abs_top_builddir=$ac_pwd
10656ac_abs_builddir=$ac_pwd$ac_dir_suffix
10657# for backward compatibility:
10658ac_top_builddir=$ac_top_build_prefix
10659
10660case $srcdir in
10661  .)  # We are building in place.
10662    ac_srcdir=.
10663    ac_top_srcdir=$ac_top_builddir_sub
10664    ac_abs_top_srcdir=$ac_pwd ;;
10665  [\\/]* | ?:[\\/]* )  # Absolute name.
10666    ac_srcdir=$srcdir$ac_dir_suffix;
10667    ac_top_srcdir=$srcdir
10668    ac_abs_top_srcdir=$srcdir ;;
10669  *) # Relative name.
10670    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10671    ac_top_srcdir=$ac_top_build_prefix$srcdir
10672    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10673esac
10674ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10675
10676
10677  case $ac_mode in
10678  :F)
10679  #
10680  # CONFIG_FILE
10681  #
10682
10683  case $INSTALL in
10684  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10685  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10686  esac
10687  ac_MKDIR_P=$MKDIR_P
10688  case $MKDIR_P in
10689  [\\/$]* | ?:[\\/]* ) ;;
10690  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10691  esac
10692_ACEOF
10693
10694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10695# If the template does not know about datarootdir, expand it.
10696# FIXME: This hack should be removed a few years after 2.60.
10697ac_datarootdir_hack=; ac_datarootdir_seen=
10698ac_sed_dataroot='
10699/datarootdir/ {
10700  p
10701  q
10702}
10703/@datadir@/p
10704/@docdir@/p
10705/@infodir@/p
10706/@localedir@/p
10707/@mandir@/p'
10708case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10709*datarootdir*) ac_datarootdir_seen=yes;;
10710*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10711  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10712$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10713_ACEOF
10714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10715  ac_datarootdir_hack='
10716  s&@datadir@&$datadir&g
10717  s&@docdir@&$docdir&g
10718  s&@infodir@&$infodir&g
10719  s&@localedir@&$localedir&g
10720  s&@mandir@&$mandir&g
10721  s&\\\${datarootdir}&$datarootdir&g' ;;
10722esac
10723_ACEOF
10724
10725# Neutralize VPATH when `$srcdir' = `.'.
10726# Shell code in configure.ac might set extrasub.
10727# FIXME: do we really want to maintain this feature?
10728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10729ac_sed_extra="$ac_vpsub
10730$extrasub
10731_ACEOF
10732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10733:t
10734/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10735s|@configure_input@|$ac_sed_conf_input|;t t
10736s&@top_builddir@&$ac_top_builddir_sub&;t t
10737s&@top_build_prefix@&$ac_top_build_prefix&;t t
10738s&@srcdir@&$ac_srcdir&;t t
10739s&@abs_srcdir@&$ac_abs_srcdir&;t t
10740s&@top_srcdir@&$ac_top_srcdir&;t t
10741s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10742s&@builddir@&$ac_builddir&;t t
10743s&@abs_builddir@&$ac_abs_builddir&;t t
10744s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10745s&@INSTALL@&$ac_INSTALL&;t t
10746s&@MKDIR_P@&$ac_MKDIR_P&;t t
10747$ac_datarootdir_hack
10748"
10749eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10750  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10751
10752test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10753  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10754  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
10755      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10756  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10757which seems to be undefined.  Please make sure it is defined" >&5
10758$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10759which seems to be undefined.  Please make sure it is defined" >&2;}
10760
10761  rm -f "$ac_tmp/stdin"
10762  case $ac_file in
10763  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10764  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10765  esac \
10766  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10767 ;;
10768  :H)
10769  #
10770  # CONFIG_HEADER
10771  #
10772  if test x"$ac_file" != x-; then
10773    {
10774      $as_echo "/* $configure_input  */" \
10775      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10776    } >"$ac_tmp/config.h" \
10777      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10778    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10779      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10780$as_echo "$as_me: $ac_file is unchanged" >&6;}
10781    else
10782      rm -f "$ac_file"
10783      mv "$ac_tmp/config.h" "$ac_file" \
10784	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10785    fi
10786  else
10787    $as_echo "/* $configure_input  */" \
10788      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10789      || as_fn_error $? "could not create -" "$LINENO" 5
10790  fi
10791# Compute "$ac_file"'s index in $config_headers.
10792_am_arg="$ac_file"
10793_am_stamp_count=1
10794for _am_header in $config_headers :; do
10795  case $_am_header in
10796    $_am_arg | $_am_arg:* )
10797      break ;;
10798    * )
10799      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10800  esac
10801done
10802echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10803$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10804	 X"$_am_arg" : 'X\(//\)[^/]' \| \
10805	 X"$_am_arg" : 'X\(//\)$' \| \
10806	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10807$as_echo X"$_am_arg" |
10808    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10809	    s//\1/
10810	    q
10811	  }
10812	  /^X\(\/\/\)[^/].*/{
10813	    s//\1/
10814	    q
10815	  }
10816	  /^X\(\/\/\)$/{
10817	    s//\1/
10818	    q
10819	  }
10820	  /^X\(\/\).*/{
10821	    s//\1/
10822	    q
10823	  }
10824	  s/.*/./; q'`/stamp-h$_am_stamp_count
10825 ;;
10826
10827  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10828$as_echo "$as_me: executing $ac_file commands" >&6;}
10829 ;;
10830  esac
10831
10832
10833  case $ac_file$ac_mode in
10834    "default-1":C)
10835    for ac_file in $CONFIG_FILES; do
10836      # Support "outfile[:infile[:infile...]]"
10837      case "$ac_file" in
10838        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10839      esac
10840      # PO directories have a Makefile.in generated from Makefile.in.in.
10841      case "$ac_file" in */Makefile.in)
10842        # Adjust a relative srcdir.
10843        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10844        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10845        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10846        # In autoconf-2.13 it is called $ac_given_srcdir.
10847        # In autoconf-2.50 it is called $srcdir.
10848        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10849        case "$ac_given_srcdir" in
10850          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10851          /*) top_srcdir="$ac_given_srcdir" ;;
10852          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10853        esac
10854        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10855          rm -f "$ac_dir/POTFILES"
10856          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10857          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10858          POMAKEFILEDEPS="POTFILES.in"
10859          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10860          # on $ac_dir but don't depend on user-specified configuration
10861          # parameters.
10862          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10863            # The LINGUAS file contains the set of available languages.
10864            if test -n "$OBSOLETE_ALL_LINGUAS"; then
10865              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10866            fi
10867            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10868            # Hide the ALL_LINGUAS assigment from automake.
10869            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10870            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10871          else
10872            # The set of available languages was given in configure.in.
10873            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10874          fi
10875          # Compute POFILES
10876          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10877          # Compute UPDATEPOFILES
10878          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10879          # Compute DUMMYPOFILES
10880          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10881          # Compute GMOFILES
10882          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10883          case "$ac_given_srcdir" in
10884            .) srcdirpre= ;;
10885            *) srcdirpre='$(srcdir)/' ;;
10886          esac
10887          POFILES=
10888          UPDATEPOFILES=
10889          DUMMYPOFILES=
10890          GMOFILES=
10891          for lang in $ALL_LINGUAS; do
10892            POFILES="$POFILES $srcdirpre$lang.po"
10893            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10894            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10895            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10896          done
10897          # CATALOGS depends on both $ac_dir and the user's LINGUAS
10898          # environment variable.
10899          INST_LINGUAS=
10900          if test -n "$ALL_LINGUAS"; then
10901            for presentlang in $ALL_LINGUAS; do
10902              useit=no
10903              if test "%UNSET%" != "$LINGUAS"; then
10904                desiredlanguages="$LINGUAS"
10905              else
10906                desiredlanguages="$ALL_LINGUAS"
10907              fi
10908              for desiredlang in $desiredlanguages; do
10909                # Use the presentlang catalog if desiredlang is
10910                #   a. equal to presentlang, or
10911                #   b. a variant of presentlang (because in this case,
10912                #      presentlang can be used as a fallback for messages
10913                #      which are not translated in the desiredlang catalog).
10914                case "$desiredlang" in
10915                  "$presentlang"*) useit=yes;;
10916                esac
10917              done
10918              if test $useit = yes; then
10919                INST_LINGUAS="$INST_LINGUAS $presentlang"
10920              fi
10921            done
10922          fi
10923          CATALOGS=
10924          if test -n "$INST_LINGUAS"; then
10925            for lang in $INST_LINGUAS; do
10926              CATALOGS="$CATALOGS $lang.gmo"
10927            done
10928          fi
10929          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10930          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10931          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10932            if test -f "$f"; then
10933              case "$f" in
10934                *.orig | *.bak | *~) ;;
10935                *) cat "$f" >> "$ac_dir/Makefile" ;;
10936              esac
10937            fi
10938          done
10939        fi
10940        ;;
10941      esac
10942    done ;;
10943    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10944  # Older Autoconf quotes --file arguments for eval, but not when files
10945  # are listed without --file.  Let's play safe and only enable the eval
10946  # if we detect the quoting.
10947  case $CONFIG_FILES in
10948  *\'*) eval set x "$CONFIG_FILES" ;;
10949  *)   set x $CONFIG_FILES ;;
10950  esac
10951  shift
10952  for mf
10953  do
10954    # Strip MF so we end up with the name of the file.
10955    mf=`echo "$mf" | sed -e 's/:.*$//'`
10956    # Check whether this is an Automake generated Makefile or not.
10957    # We used to match only the files named 'Makefile.in', but
10958    # some people rename them; so instead we look at the file content.
10959    # Grep'ing the first line is not enough: some people post-process
10960    # each Makefile.in and add a new line on top of each file to say so.
10961    # Grep'ing the whole file is not good either: AIX grep has a line
10962    # limit of 2048, but all sed's we know have understand at least 4000.
10963    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10964      dirpart=`$as_dirname -- "$mf" ||
10965$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10966	 X"$mf" : 'X\(//\)[^/]' \| \
10967	 X"$mf" : 'X\(//\)$' \| \
10968	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10969$as_echo X"$mf" |
10970    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10971	    s//\1/
10972	    q
10973	  }
10974	  /^X\(\/\/\)[^/].*/{
10975	    s//\1/
10976	    q
10977	  }
10978	  /^X\(\/\/\)$/{
10979	    s//\1/
10980	    q
10981	  }
10982	  /^X\(\/\).*/{
10983	    s//\1/
10984	    q
10985	  }
10986	  s/.*/./; q'`
10987    else
10988      continue
10989    fi
10990    # Extract the definition of DEPDIR, am__include, and am__quote
10991    # from the Makefile without running 'make'.
10992    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10993    test -z "$DEPDIR" && continue
10994    am__include=`sed -n 's/^am__include = //p' < "$mf"`
10995    test -z "$am__include" && continue
10996    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10997    # Find all dependency output files, they are included files with
10998    # $(DEPDIR) in their names.  We invoke sed twice because it is the
10999    # simplest approach to changing $(DEPDIR) to its actual value in the
11000    # expansion.
11001    for file in `sed -n "
11002      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11003	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11004      # Make sure the directory exists.
11005      test -f "$dirpart/$file" && continue
11006      fdir=`$as_dirname -- "$file" ||
11007$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11008	 X"$file" : 'X\(//\)[^/]' \| \
11009	 X"$file" : 'X\(//\)$' \| \
11010	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11011$as_echo X"$file" |
11012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11013	    s//\1/
11014	    q
11015	  }
11016	  /^X\(\/\/\)[^/].*/{
11017	    s//\1/
11018	    q
11019	  }
11020	  /^X\(\/\/\)$/{
11021	    s//\1/
11022	    q
11023	  }
11024	  /^X\(\/\).*/{
11025	    s//\1/
11026	    q
11027	  }
11028	  s/.*/./; q'`
11029      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11030      # echo "creating $dirpart/$file"
11031      echo '# dummy' > "$dirpart/$file"
11032    done
11033  done
11034}
11035 ;;
11036
11037  esac
11038done # for ac_tag
11039
11040
11041as_fn_exit 0
11042_ACEOF
11043ac_clean_files=$ac_clean_files_save
11044
11045test $ac_write_fail = 0 ||
11046  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11047
11048
11049# configure is writing to config.log, and then calls config.status.
11050# config.status does its own redirection, appending to config.log.
11051# Unfortunately, on DOS this fails, as config.log is still kept open
11052# by configure, so config.status won't be able to write to it; its
11053# output is simply discarded.  So we exec the FD to /dev/null,
11054# effectively closing config.log, so it can be properly (re)opened and
11055# appended to by config.status.  When coming back to configure, we
11056# need to make the FD available again.
11057if test "$no_create" != yes; then
11058  ac_cs_success=:
11059  ac_config_status_args=
11060  test "$silent" = yes &&
11061    ac_config_status_args="$ac_config_status_args --quiet"
11062  exec 5>/dev/null
11063  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11064  exec 5>>config.log
11065  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11066  # would make configure fail if this is the last instruction.
11067  $ac_cs_success || as_fn_exit 1
11068fi
11069if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11070  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11071$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11072fi
11073
11074