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