1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$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  # Zsh 3.x and 4.x performs 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(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="src/scourge.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653INSTALL_PROGRAM
654INSTALL_SCRIPT
655INSTALL_DATA
656CYGPATH_W
657PACKAGE
658VERSION
659ACLOCAL
660AUTOCONF
661AUTOMAKE
662AUTOHEADER
663MAKEINFO
664install_sh
665STRIP
666INSTALL_STRIP_PROGRAM
667mkdir_p
668AWK
669SET_MAKE
670am__leading_dot
671AMTAR
672am__tar
673am__untar
674USE_NLS
675MSGFMT
676GMSGFMT
677MSGFMT_015
678GMSGFMT_015
679XGETTEXT
680XGETTEXT_015
681MSGMERGE
682CC
683CFLAGS
684LDFLAGS
685CPPFLAGS
686ac_ct_CC
687EXEEXT
688OBJEXT
689DEPDIR
690am__include
691am__quote
692AMDEP_TRUE
693AMDEP_FALSE
694AMDEPBACKSLASH
695CCDEPMODE
696am__fastdepCC_TRUE
697am__fastdepCC_FALSE
698build
699build_cpu
700build_vendor
701build_os
702host
703host_cpu
704host_vendor
705host_os
706CPP
707GREP
708EGREP
709GLIBC2
710RANLIB
711CFLAG_VISIBILITY
712HAVE_VISIBILITY
713ALLOCA
714LIBPTH
715LTLIBPTH
716LIBTHREAD
717LTLIBTHREAD
718LIBMULTITHREAD
719LTLIBMULTITHREAD
720LIBICONV
721LTLIBICONV
722INTLBISON
723GLIBC21
724INTL_MACOSX_LIBS
725HAVE_POSIX_PRINTF
726HAVE_ASPRINTF
727HAVE_SNPRINTF
728HAVE_WPRINTF
729WOE32DLL
730BUILD_INCLUDED_LIBINTL
731USE_INCLUDED_LIBINTL
732CATOBJEXT
733DATADIRNAME
734INSTOBJEXT
735GENCAT
736INTLOBJS
737INTL_LIBTOOL_SUFFIX_PREFIX
738INTLLIBS
739LIBINTL
740LTLIBINTL
741POSUB
742CXX
743CXXFLAGS
744ac_ct_CXX
745CXXDEPMODE
746am__fastdepCXX_TRUE
747am__fastdepCXX_FALSE
748BINRELOC_CFLAGS
749BINRELOC_LIBS
750SDL_CONFIG
751SDL_CFLAGS
752SDL_LIBS
753WXWIDGET
754HAVE_WXWIDGET_LIB_TRUE
755HAVE_WXWIDGET_LIB_FALSE
756FREETYPE
757TR_CPPFLAGS
758TR_CFLAGS
759TR_CXXFLAGS
760TR_LIBS
761LIBOBJS
762LTLIBOBJS'
763ac_subst_files=''
764      ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770LIBS
771CPPFLAGS
772CPP
773CXX
774CXXFLAGS
775CCC'
776
777
778# Initialize some variables set by options.
779ac_init_help=
780ac_init_version=false
781# The variables have the same names as the options, with
782# dashes changed to underlines.
783cache_file=/dev/null
784exec_prefix=NONE
785no_create=
786no_recursion=
787prefix=NONE
788program_prefix=NONE
789program_suffix=NONE
790program_transform_name=s,x,x,
791silent=
792site=
793srcdir=
794verbose=
795x_includes=NONE
796x_libraries=NONE
797
798# Installation directory options.
799# These are left unexpanded so users can "make install exec_prefix=/foo"
800# and all the variables that are supposed to be based on exec_prefix
801# by default will actually change.
802# Use braces instead of parens because sh, perl, etc. also accept them.
803# (The list follows the same order as the GNU Coding Standards.)
804bindir='${exec_prefix}/bin'
805sbindir='${exec_prefix}/sbin'
806libexecdir='${exec_prefix}/libexec'
807datarootdir='${prefix}/share'
808datadir='${datarootdir}'
809sysconfdir='${prefix}/etc'
810sharedstatedir='${prefix}/com'
811localstatedir='${prefix}/var'
812includedir='${prefix}/include'
813oldincludedir='/usr/include'
814docdir='${datarootdir}/doc/${PACKAGE}'
815infodir='${datarootdir}/info'
816htmldir='${docdir}'
817dvidir='${docdir}'
818pdfdir='${docdir}'
819psdir='${docdir}'
820libdir='${exec_prefix}/lib'
821localedir='${datarootdir}/locale'
822mandir='${datarootdir}/man'
823
824ac_prev=
825ac_dashdash=
826for ac_option
827do
828  # If the previous option needs an argument, assign it.
829  if test -n "$ac_prev"; then
830    eval $ac_prev=\$ac_option
831    ac_prev=
832    continue
833  fi
834
835  case $ac_option in
836  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837  *)	ac_optarg=yes ;;
838  esac
839
840  # Accept the important Cygnus configure options, so we can diagnose typos.
841
842  case $ac_dashdash$ac_option in
843  --)
844    ac_dashdash=yes ;;
845
846  -bindir | --bindir | --bindi | --bind | --bin | --bi)
847    ac_prev=bindir ;;
848  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849    bindir=$ac_optarg ;;
850
851  -build | --build | --buil | --bui | --bu)
852    ac_prev=build_alias ;;
853  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854    build_alias=$ac_optarg ;;
855
856  -cache-file | --cache-file | --cache-fil | --cache-fi \
857  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858    ac_prev=cache_file ;;
859  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861    cache_file=$ac_optarg ;;
862
863  --config-cache | -C)
864    cache_file=config.cache ;;
865
866  -datadir | --datadir | --datadi | --datad)
867    ac_prev=datadir ;;
868  -datadir=* | --datadir=* | --datadi=* | --datad=*)
869    datadir=$ac_optarg ;;
870
871  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872  | --dataroo | --dataro | --datar)
873    ac_prev=datarootdir ;;
874  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876    datarootdir=$ac_optarg ;;
877
878  -disable-* | --disable-*)
879    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880    # Reject names that are not valid shell variable names.
881    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883   { (exit 1); exit 1; }; }
884    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885    eval enable_$ac_feature=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_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899    # Reject names that are not valid shell variable names.
900    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
901      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
902   { (exit 1); exit 1; }; }
903    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
904    eval enable_$ac_feature=\$ac_optarg ;;
905
906  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908  | --exec | --exe | --ex)
909    ac_prev=exec_prefix ;;
910  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912  | --exec=* | --exe=* | --ex=*)
913    exec_prefix=$ac_optarg ;;
914
915  -gas | --gas | --ga | --g)
916    # Obsolete; use --with-gas.
917    with_gas=yes ;;
918
919  -help | --help | --hel | --he | -h)
920    ac_init_help=long ;;
921  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922    ac_init_help=recursive ;;
923  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924    ac_init_help=short ;;
925
926  -host | --host | --hos | --ho)
927    ac_prev=host_alias ;;
928  -host=* | --host=* | --hos=* | --ho=*)
929    host_alias=$ac_optarg ;;
930
931  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932    ac_prev=htmldir ;;
933  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934  | --ht=*)
935    htmldir=$ac_optarg ;;
936
937  -includedir | --includedir | --includedi | --included | --include \
938  | --includ | --inclu | --incl | --inc)
939    ac_prev=includedir ;;
940  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941  | --includ=* | --inclu=* | --incl=* | --inc=*)
942    includedir=$ac_optarg ;;
943
944  -infodir | --infodir | --infodi | --infod | --info | --inf)
945    ac_prev=infodir ;;
946  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947    infodir=$ac_optarg ;;
948
949  -libdir | --libdir | --libdi | --libd)
950    ac_prev=libdir ;;
951  -libdir=* | --libdir=* | --libdi=* | --libd=*)
952    libdir=$ac_optarg ;;
953
954  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955  | --libexe | --libex | --libe)
956    ac_prev=libexecdir ;;
957  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958  | --libexe=* | --libex=* | --libe=*)
959    libexecdir=$ac_optarg ;;
960
961  -localedir | --localedir | --localedi | --localed | --locale)
962    ac_prev=localedir ;;
963  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964    localedir=$ac_optarg ;;
965
966  -localstatedir | --localstatedir | --localstatedi | --localstated \
967  | --localstate | --localstat | --localsta | --localst | --locals)
968    ac_prev=localstatedir ;;
969  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971    localstatedir=$ac_optarg ;;
972
973  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974    ac_prev=mandir ;;
975  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976    mandir=$ac_optarg ;;
977
978  -nfp | --nfp | --nf)
979    # Obsolete; use --without-fp.
980    with_fp=no ;;
981
982  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983  | --no-cr | --no-c | -n)
984    no_create=yes ;;
985
986  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988    no_recursion=yes ;;
989
990  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992  | --oldin | --oldi | --old | --ol | --o)
993    ac_prev=oldincludedir ;;
994  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997    oldincludedir=$ac_optarg ;;
998
999  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000    ac_prev=prefix ;;
1001  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002    prefix=$ac_optarg ;;
1003
1004  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005  | --program-pre | --program-pr | --program-p)
1006    ac_prev=program_prefix ;;
1007  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009    program_prefix=$ac_optarg ;;
1010
1011  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012  | --program-suf | --program-su | --program-s)
1013    ac_prev=program_suffix ;;
1014  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016    program_suffix=$ac_optarg ;;
1017
1018  -program-transform-name | --program-transform-name \
1019  | --program-transform-nam | --program-transform-na \
1020  | --program-transform-n | --program-transform- \
1021  | --program-transform | --program-transfor \
1022  | --program-transfo | --program-transf \
1023  | --program-trans | --program-tran \
1024  | --progr-tra | --program-tr | --program-t)
1025    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1034
1035  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036    ac_prev=pdfdir ;;
1037  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038    pdfdir=$ac_optarg ;;
1039
1040  -psdir | --psdir | --psdi | --psd | --ps)
1041    ac_prev=psdir ;;
1042  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043    psdir=$ac_optarg ;;
1044
1045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046  | -silent | --silent | --silen | --sile | --sil)
1047    silent=yes ;;
1048
1049  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050    ac_prev=sbindir ;;
1051  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052  | --sbi=* | --sb=*)
1053    sbindir=$ac_optarg ;;
1054
1055  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057  | --sharedst | --shareds | --shared | --share | --shar \
1058  | --sha | --sh)
1059    ac_prev=sharedstatedir ;;
1060  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063  | --sha=* | --sh=*)
1064    sharedstatedir=$ac_optarg ;;
1065
1066  -site | --site | --sit)
1067    ac_prev=site ;;
1068  -site=* | --site=* | --sit=*)
1069    site=$ac_optarg ;;
1070
1071  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072    ac_prev=srcdir ;;
1073  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074    srcdir=$ac_optarg ;;
1075
1076  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077  | --syscon | --sysco | --sysc | --sys | --sy)
1078    ac_prev=sysconfdir ;;
1079  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081    sysconfdir=$ac_optarg ;;
1082
1083  -target | --target | --targe | --targ | --tar | --ta | --t)
1084    ac_prev=target_alias ;;
1085  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086    target_alias=$ac_optarg ;;
1087
1088  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089    verbose=yes ;;
1090
1091  -version | --version | --versio | --versi | --vers | -V)
1092    ac_init_version=: ;;
1093
1094  -with-* | --with-*)
1095    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098      { echo "$as_me: error: invalid package name: $ac_package" >&2
1099   { (exit 1); exit 1; }; }
1100    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101    eval with_$ac_package=\$ac_optarg ;;
1102
1103  -without-* | --without-*)
1104    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105    # Reject names that are not valid shell variable names.
1106    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107      { echo "$as_me: error: invalid package name: $ac_package" >&2
1108   { (exit 1); exit 1; }; }
1109    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1110    eval with_$ac_package=no ;;
1111
1112  --x)
1113    # Obsolete; use --with-x.
1114    with_x=yes ;;
1115
1116  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1117  | --x-incl | --x-inc | --x-in | --x-i)
1118    ac_prev=x_includes ;;
1119  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1120  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1121    x_includes=$ac_optarg ;;
1122
1123  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1124  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1125    ac_prev=x_libraries ;;
1126  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1127  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1128    x_libraries=$ac_optarg ;;
1129
1130  -*) { echo "$as_me: error: unrecognized option: $ac_option
1131Try \`$0 --help' for more information." >&2
1132   { (exit 1); exit 1; }; }
1133    ;;
1134
1135  *=*)
1136    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1139      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1140   { (exit 1); exit 1; }; }
1141    eval $ac_envvar=\$ac_optarg
1142    export $ac_envvar ;;
1143
1144  *)
1145    # FIXME: should be removed in autoconf 3.0.
1146    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1147    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1150    ;;
1151
1152  esac
1153done
1154
1155if test -n "$ac_prev"; then
1156  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1157  { echo "$as_me: error: missing argument to $ac_option" >&2
1158   { (exit 1); exit 1; }; }
1159fi
1160
1161# Be sure to have absolute directory names.
1162for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1163		datadir sysconfdir sharedstatedir localstatedir includedir \
1164		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1165		libdir localedir mandir
1166do
1167  eval ac_val=\$$ac_var
1168  case $ac_val in
1169    [\\/$]* | ?:[\\/]* )  continue;;
1170    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171  esac
1172  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1173   { (exit 1); exit 1; }; }
1174done
1175
1176# There might be people who depend on the old broken behavior: `$host'
1177# used to hold the argument of --host etc.
1178# FIXME: To remove some day.
1179build=$build_alias
1180host=$host_alias
1181target=$target_alias
1182
1183# FIXME: To remove some day.
1184if test "x$host_alias" != x; then
1185  if test "x$build_alias" = x; then
1186    cross_compiling=maybe
1187    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1188    If a cross compiler is detected then cross compile mode will be used." >&2
1189  elif test "x$build_alias" != "x$host_alias"; then
1190    cross_compiling=yes
1191  fi
1192fi
1193
1194ac_tool_prefix=
1195test -n "$host_alias" && ac_tool_prefix=$host_alias-
1196
1197test "$silent" = yes && exec 6>/dev/null
1198
1199
1200ac_pwd=`pwd` && test -n "$ac_pwd" &&
1201ac_ls_di=`ls -di .` &&
1202ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1203  { echo "$as_me: error: Working directory cannot be determined" >&2
1204   { (exit 1); exit 1; }; }
1205test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206  { echo "$as_me: error: pwd does not report name of working directory" >&2
1207   { (exit 1); exit 1; }; }
1208
1209
1210# Find the source files, if location was not specified.
1211if test -z "$srcdir"; then
1212  ac_srcdir_defaulted=yes
1213  # Try the directory containing this script, then the parent directory.
1214  ac_confdir=`$as_dirname -- "$0" ||
1215$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216	 X"$0" : 'X\(//\)[^/]' \| \
1217	 X"$0" : 'X\(//\)$' \| \
1218	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1219echo X"$0" |
1220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221	    s//\1/
1222	    q
1223	  }
1224	  /^X\(\/\/\)[^/].*/{
1225	    s//\1/
1226	    q
1227	  }
1228	  /^X\(\/\/\)$/{
1229	    s//\1/
1230	    q
1231	  }
1232	  /^X\(\/\).*/{
1233	    s//\1/
1234	    q
1235	  }
1236	  s/.*/./; q'`
1237  srcdir=$ac_confdir
1238  if test ! -r "$srcdir/$ac_unique_file"; then
1239    srcdir=..
1240  fi
1241else
1242  ac_srcdir_defaulted=no
1243fi
1244if test ! -r "$srcdir/$ac_unique_file"; then
1245  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1247   { (exit 1); exit 1; }; }
1248fi
1249ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1250ac_abs_confdir=`(
1251	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1252   { (exit 1); exit 1; }; }
1253	pwd)`
1254# When building in place, set srcdir=.
1255if test "$ac_abs_confdir" = "$ac_pwd"; then
1256  srcdir=.
1257fi
1258# Remove unnecessary trailing slashes from srcdir.
1259# Double slashes in file names in object file debugging info
1260# mess up M-x gdb in Emacs.
1261case $srcdir in
1262*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263esac
1264for ac_var in $ac_precious_vars; do
1265  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1266  eval ac_env_${ac_var}_value=\$${ac_var}
1267  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1268  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1269done
1270
1271#
1272# Report the --help message.
1273#
1274if test "$ac_init_help" = "long"; then
1275  # Omit some internal or obsolete options to make the list less imposing.
1276  # This message is too long to be a string in the A/UX 3.1 sh.
1277  cat <<_ACEOF
1278\`configure' configures this package to adapt to many kinds of systems.
1279
1280Usage: $0 [OPTION]... [VAR=VALUE]...
1281
1282To assign environment variables (e.g., CC, CFLAGS...), specify them as
1283VAR=VALUE.  See below for descriptions of some of the useful variables.
1284
1285Defaults for the options are specified in brackets.
1286
1287Configuration:
1288  -h, --help              display this help and exit
1289      --help=short        display options specific to this package
1290      --help=recursive    display the short help of all the included packages
1291  -V, --version           display version information and exit
1292  -q, --quiet, --silent   do not print \`checking...' messages
1293      --cache-file=FILE   cache test results in FILE [disabled]
1294  -C, --config-cache      alias for \`--cache-file=config.cache'
1295  -n, --no-create         do not create output files
1296      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1297
1298Installation directories:
1299  --prefix=PREFIX         install architecture-independent files in PREFIX
1300			  [$ac_default_prefix]
1301  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1302			  [PREFIX]
1303
1304By default, \`make install' will install all the files in
1305\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1306an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1307for instance \`--prefix=\$HOME'.
1308
1309For better control, use the options below.
1310
1311Fine tuning of the installation directories:
1312  --bindir=DIR           user executables [EPREFIX/bin]
1313  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1314  --libexecdir=DIR       program executables [EPREFIX/libexec]
1315  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1316  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1317  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1318  --libdir=DIR           object code libraries [EPREFIX/lib]
1319  --includedir=DIR       C header files [PREFIX/include]
1320  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1321  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1322  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1323  --infodir=DIR          info documentation [DATAROOTDIR/info]
1324  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1325  --mandir=DIR           man documentation [DATAROOTDIR/man]
1326  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1327  --htmldir=DIR          html documentation [DOCDIR]
1328  --dvidir=DIR           dvi documentation [DOCDIR]
1329  --pdfdir=DIR           pdf documentation [DOCDIR]
1330  --psdir=DIR            ps documentation [DOCDIR]
1331_ACEOF
1332
1333  cat <<\_ACEOF
1334
1335Program names:
1336  --program-prefix=PREFIX            prepend PREFIX to installed program names
1337  --program-suffix=SUFFIX            append SUFFIX to installed program names
1338  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1339
1340System types:
1341  --build=BUILD     configure for building on BUILD [guessed]
1342  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1343_ACEOF
1344fi
1345
1346if test -n "$ac_init_help"; then
1347
1348  cat <<\_ACEOF
1349
1350Optional Features:
1351  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1352  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1353  --disable-nls           do not use Native Language Support
1354  --disable-dependency-tracking  speeds up one-time build
1355  --enable-dependency-tracking   do not reject slow dependency extractors
1356  --enable-threads={posix|solaris|pth|win32}
1357                          specify multithreading API
1358  --disable-threads       build without multithread safety
1359  --disable-rpath         do not hardcode runtime library paths
1360  --enable-binreloc       compile with binary relocation support
1361                          (default=enable when available)
1362  --enable-optimized      enable compiler optimizations
1363  --enable-debug          enable debug in scourge
1364  --enable-profile        Produce a profiled executable
1365  --disable-sdl           Disable detction and use of SDL
1366  --disable-sdl_net           Disable detction and use of SDL_net
1367  --disable-sdl_mixer           Disable detction and use of SDL_mixer
1368  --disable-sdltest       Do not try to compile and run a test SDL program
1369  --enable-editor           Enable detection and building of the editor
1370  --enable-stencil-buffer Use if your hardware has a stencil buffer
1371
1372Optional Packages:
1373  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1374  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1375  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1376  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1377  --without-libpth-prefix     don't search for libpth in includedir and libdir
1378  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1379  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1380  --with-included-gettext use the GNU gettext library included here
1381  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1382  --without-libintl-prefix     don't search for libintl in includedir and libdir
1383  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1384  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1385  --with-gl-libs=DIR      GL/MesaGL library location
1386  --with-gl-lib-name=INTL GL library name
1387  --with-glu-lib-name=INTL GLU library name
1388  --with-gl-inc=DIR       OpenGL header file location
1389  --with-data-dir=PATH    Default scourge data directory
1390
1391Some influential environment variables:
1392  CC          C compiler command
1393  CFLAGS      C compiler flags
1394  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1395              nonstandard directory <lib dir>
1396  LIBS        libraries to pass to the linker, e.g. -l<library>
1397  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398              you have headers in a nonstandard directory <include dir>
1399  CPP         C preprocessor
1400  CXX         C++ compiler command
1401  CXXFLAGS    C++ compiler flags
1402
1403Use these variables to override the choices made by `configure' or to help
1404it to find libraries and programs with nonstandard names/locations.
1405
1406_ACEOF
1407ac_status=$?
1408fi
1409
1410if test "$ac_init_help" = "recursive"; then
1411  # If there are subdirs, report their specific --help.
1412  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413    test -d "$ac_dir" || continue
1414    ac_builddir=.
1415
1416case "$ac_dir" in
1417.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418*)
1419  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1420  # A ".." for each directory in $ac_dir_suffix.
1421  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1422  case $ac_top_builddir_sub in
1423  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425  esac ;;
1426esac
1427ac_abs_top_builddir=$ac_pwd
1428ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429# for backward compatibility:
1430ac_top_builddir=$ac_top_build_prefix
1431
1432case $srcdir in
1433  .)  # We are building in place.
1434    ac_srcdir=.
1435    ac_top_srcdir=$ac_top_builddir_sub
1436    ac_abs_top_srcdir=$ac_pwd ;;
1437  [\\/]* | ?:[\\/]* )  # Absolute name.
1438    ac_srcdir=$srcdir$ac_dir_suffix;
1439    ac_top_srcdir=$srcdir
1440    ac_abs_top_srcdir=$srcdir ;;
1441  *) # Relative name.
1442    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443    ac_top_srcdir=$ac_top_build_prefix$srcdir
1444    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445esac
1446ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447
1448    cd "$ac_dir" || { ac_status=$?; continue; }
1449    # Check for guested configure.
1450    if test -f "$ac_srcdir/configure.gnu"; then
1451      echo &&
1452      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453    elif test -f "$ac_srcdir/configure"; then
1454      echo &&
1455      $SHELL "$ac_srcdir/configure" --help=recursive
1456    else
1457      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458    fi || ac_status=$?
1459    cd "$ac_pwd" || { ac_status=$?; break; }
1460  done
1461fi
1462
1463test -n "$ac_init_help" && exit $ac_status
1464if $ac_init_version; then
1465  cat <<\_ACEOF
1466configure
1467generated by GNU Autoconf 2.61
1468
1469Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14702002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1471This configure script is free software; the Free Software Foundation
1472gives unlimited permission to copy, distribute and modify it.
1473_ACEOF
1474  exit
1475fi
1476cat >config.log <<_ACEOF
1477This file contains any messages produced by compilers while
1478running configure, to aid debugging if configure makes a mistake.
1479
1480It was created by $as_me, which was
1481generated by GNU Autoconf 2.61.  Invocation command line was
1482
1483  $ $0 $@
1484
1485_ACEOF
1486exec 5>>config.log
1487{
1488cat <<_ASUNAME
1489## --------- ##
1490## Platform. ##
1491## --------- ##
1492
1493hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1494uname -m = `(uname -m) 2>/dev/null || echo unknown`
1495uname -r = `(uname -r) 2>/dev/null || echo unknown`
1496uname -s = `(uname -s) 2>/dev/null || echo unknown`
1497uname -v = `(uname -v) 2>/dev/null || echo unknown`
1498
1499/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1500/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1501
1502/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1503/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1504/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1505/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1506/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1507/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1508/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1509
1510_ASUNAME
1511
1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513for as_dir in $PATH
1514do
1515  IFS=$as_save_IFS
1516  test -z "$as_dir" && as_dir=.
1517  echo "PATH: $as_dir"
1518done
1519IFS=$as_save_IFS
1520
1521} >&5
1522
1523cat >&5 <<_ACEOF
1524
1525
1526## ----------- ##
1527## Core tests. ##
1528## ----------- ##
1529
1530_ACEOF
1531
1532
1533# Keep a trace of the command line.
1534# Strip out --no-create and --no-recursion so they do not pile up.
1535# Strip out --silent because we don't want to record it for future runs.
1536# Also quote any args containing shell meta-characters.
1537# Make two passes to allow for proper duplicate-argument suppression.
1538ac_configure_args=
1539ac_configure_args0=
1540ac_configure_args1=
1541ac_must_keep_next=false
1542for ac_pass in 1 2
1543do
1544  for ac_arg
1545  do
1546    case $ac_arg in
1547    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1548    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1549    | -silent | --silent | --silen | --sile | --sil)
1550      continue ;;
1551    *\'*)
1552      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1553    esac
1554    case $ac_pass in
1555    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1556    2)
1557      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1558      if test $ac_must_keep_next = true; then
1559	ac_must_keep_next=false # Got value, back to normal.
1560      else
1561	case $ac_arg in
1562	  *=* | --config-cache | -C | -disable-* | --disable-* \
1563	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1564	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1565	  | -with-* | --with-* | -without-* | --without-* | --x)
1566	    case "$ac_configure_args0 " in
1567	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1568	    esac
1569	    ;;
1570	  -* ) ac_must_keep_next=true ;;
1571	esac
1572      fi
1573      ac_configure_args="$ac_configure_args '$ac_arg'"
1574      ;;
1575    esac
1576  done
1577done
1578$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1579$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1580
1581# When interrupted or exit'd, cleanup temporary files, and complete
1582# config.log.  We remove comments because anyway the quotes in there
1583# would cause problems or look ugly.
1584# WARNING: Use '\'' to represent an apostrophe within the trap.
1585# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1586trap 'exit_status=$?
1587  # Save into config.log some information that might help in debugging.
1588  {
1589    echo
1590
1591    cat <<\_ASBOX
1592## ---------------- ##
1593## Cache variables. ##
1594## ---------------- ##
1595_ASBOX
1596    echo
1597    # The following way of writing the cache mishandles newlines in values,
1598(
1599  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1600    eval ac_val=\$$ac_var
1601    case $ac_val in #(
1602    *${as_nl}*)
1603      case $ac_var in #(
1604      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1605echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1606      esac
1607      case $ac_var in #(
1608      _ | IFS | as_nl) ;; #(
1609      *) $as_unset $ac_var ;;
1610      esac ;;
1611    esac
1612  done
1613  (set) 2>&1 |
1614    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1615    *${as_nl}ac_space=\ *)
1616      sed -n \
1617	"s/'\''/'\''\\\\'\'''\''/g;
1618	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1619      ;; #(
1620    *)
1621      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1622      ;;
1623    esac |
1624    sort
1625)
1626    echo
1627
1628    cat <<\_ASBOX
1629## ----------------- ##
1630## Output variables. ##
1631## ----------------- ##
1632_ASBOX
1633    echo
1634    for ac_var in $ac_subst_vars
1635    do
1636      eval ac_val=\$$ac_var
1637      case $ac_val in
1638      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639      esac
1640      echo "$ac_var='\''$ac_val'\''"
1641    done | sort
1642    echo
1643
1644    if test -n "$ac_subst_files"; then
1645      cat <<\_ASBOX
1646## ------------------- ##
1647## File substitutions. ##
1648## ------------------- ##
1649_ASBOX
1650      echo
1651      for ac_var in $ac_subst_files
1652      do
1653	eval ac_val=\$$ac_var
1654	case $ac_val in
1655	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1656	esac
1657	echo "$ac_var='\''$ac_val'\''"
1658      done | sort
1659      echo
1660    fi
1661
1662    if test -s confdefs.h; then
1663      cat <<\_ASBOX
1664## ----------- ##
1665## confdefs.h. ##
1666## ----------- ##
1667_ASBOX
1668      echo
1669      cat confdefs.h
1670      echo
1671    fi
1672    test "$ac_signal" != 0 &&
1673      echo "$as_me: caught signal $ac_signal"
1674    echo "$as_me: exit $exit_status"
1675  } >&5
1676  rm -f core *.core core.conftest.* &&
1677    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1678    exit $exit_status
1679' 0
1680for ac_signal in 1 2 13 15; do
1681  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1682done
1683ac_signal=0
1684
1685# confdefs.h avoids OS command line length limits that DEFS can exceed.
1686rm -f -r conftest* confdefs.h
1687
1688# Predefined preprocessor variables.
1689
1690cat >>confdefs.h <<_ACEOF
1691#define PACKAGE_NAME "$PACKAGE_NAME"
1692_ACEOF
1693
1694
1695cat >>confdefs.h <<_ACEOF
1696#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1697_ACEOF
1698
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_VERSION "$PACKAGE_VERSION"
1702_ACEOF
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_STRING "$PACKAGE_STRING"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1712_ACEOF
1713
1714
1715# Let the site file select an alternate cache file if it wants to.
1716# Prefer explicitly selected file to automatically selected ones.
1717if test -n "$CONFIG_SITE"; then
1718  set x "$CONFIG_SITE"
1719elif test "x$prefix" != xNONE; then
1720  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1721else
1722  set x "$ac_default_prefix/share/config.site" \
1723	"$ac_default_prefix/etc/config.site"
1724fi
1725shift
1726for ac_site_file
1727do
1728  if test -r "$ac_site_file"; then
1729    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1730echo "$as_me: loading site script $ac_site_file" >&6;}
1731    sed 's/^/| /' "$ac_site_file" >&5
1732    . "$ac_site_file"
1733  fi
1734done
1735
1736if test -r "$cache_file"; then
1737  # Some versions of bash will fail to source /dev/null (special
1738  # files actually), so we avoid doing that.
1739  if test -f "$cache_file"; then
1740    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1741echo "$as_me: loading cache $cache_file" >&6;}
1742    case $cache_file in
1743      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1744      *)                      . "./$cache_file";;
1745    esac
1746  fi
1747else
1748  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1749echo "$as_me: creating cache $cache_file" >&6;}
1750  >$cache_file
1751fi
1752
1753# Check that the precious variables saved in the cache have kept the same
1754# value.
1755ac_cache_corrupted=false
1756for ac_var in $ac_precious_vars; do
1757  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1758  eval ac_new_set=\$ac_env_${ac_var}_set
1759  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1760  eval ac_new_val=\$ac_env_${ac_var}_value
1761  case $ac_old_set,$ac_new_set in
1762    set,)
1763      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1764echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1765      ac_cache_corrupted=: ;;
1766    ,set)
1767      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1768echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1769      ac_cache_corrupted=: ;;
1770    ,);;
1771    *)
1772      if test "x$ac_old_val" != "x$ac_new_val"; then
1773	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1774echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1775	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1776echo "$as_me:   former value:  $ac_old_val" >&2;}
1777	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1778echo "$as_me:   current value: $ac_new_val" >&2;}
1779	ac_cache_corrupted=:
1780      fi;;
1781  esac
1782  # Pass precious variables to config.status.
1783  if test "$ac_new_set" = set; then
1784    case $ac_new_val in
1785    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1786    *) ac_arg=$ac_var=$ac_new_val ;;
1787    esac
1788    case " $ac_configure_args " in
1789      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1790      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1791    esac
1792  fi
1793done
1794if $ac_cache_corrupted; then
1795  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1796echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1797  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1798echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1799   { (exit 1); exit 1; }; }
1800fi
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818ac_ext=c
1819ac_cpp='$CPP $CPPFLAGS'
1820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823
1824
1825am__api_version="1.9"
1826ac_aux_dir=
1827for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1828  if test -f "$ac_dir/install-sh"; then
1829    ac_aux_dir=$ac_dir
1830    ac_install_sh="$ac_aux_dir/install-sh -c"
1831    break
1832  elif test -f "$ac_dir/install.sh"; then
1833    ac_aux_dir=$ac_dir
1834    ac_install_sh="$ac_aux_dir/install.sh -c"
1835    break
1836  elif test -f "$ac_dir/shtool"; then
1837    ac_aux_dir=$ac_dir
1838    ac_install_sh="$ac_aux_dir/shtool install -c"
1839    break
1840  fi
1841done
1842if test -z "$ac_aux_dir"; then
1843  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1844echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1845   { (exit 1); exit 1; }; }
1846fi
1847
1848# These three variables are undocumented and unsupported,
1849# and are intended to be withdrawn in a future Autoconf release.
1850# They can cause serious problems if a builder's source tree is in a directory
1851# whose full name contains unusual characters.
1852ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1853ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1854ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1855
1856
1857# Find a good install program.  We prefer a C program (faster),
1858# so one script is as good as another.  But avoid the broken or
1859# incompatible versions:
1860# SysV /etc/install, /usr/sbin/install
1861# SunOS /usr/etc/install
1862# IRIX /sbin/install
1863# AIX /bin/install
1864# AmigaOS /C/install, which installs bootblocks on floppy discs
1865# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1866# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1867# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1868# OS/2's system install, which has a completely different semantic
1869# ./install, which can be erroneously created by make from ./install.sh.
1870{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1871echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1872if test -z "$INSTALL"; then
1873if test "${ac_cv_path_install+set}" = set; then
1874  echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879  IFS=$as_save_IFS
1880  test -z "$as_dir" && as_dir=.
1881  # Account for people who put trailing slashes in PATH elements.
1882case $as_dir/ in
1883  ./ | .// | /cC/* | \
1884  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1885  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1886  /usr/ucb/* ) ;;
1887  *)
1888    # OSF1 and SCO ODT 3.0 have their own names for install.
1889    # Don't use installbsd from OSF since it installs stuff as root
1890    # by default.
1891    for ac_prog in ginstall scoinst install; do
1892      for ac_exec_ext in '' $ac_executable_extensions; do
1893	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1894	  if test $ac_prog = install &&
1895	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1896	    # AIX install.  It has an incompatible calling convention.
1897	    :
1898	  elif test $ac_prog = install &&
1899	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1900	    # program-specific install script used by HP pwplus--don't use.
1901	    :
1902	  else
1903	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1904	    break 3
1905	  fi
1906	fi
1907      done
1908    done
1909    ;;
1910esac
1911done
1912IFS=$as_save_IFS
1913
1914
1915fi
1916  if test "${ac_cv_path_install+set}" = set; then
1917    INSTALL=$ac_cv_path_install
1918  else
1919    # As a last resort, use the slow shell script.  Don't cache a
1920    # value for INSTALL within a source directory, because that will
1921    # break other packages using the cache if that directory is
1922    # removed, or if the value is a relative name.
1923    INSTALL=$ac_install_sh
1924  fi
1925fi
1926{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1927echo "${ECHO_T}$INSTALL" >&6; }
1928
1929# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1930# It thinks the first close brace ends the variable substitution.
1931test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1932
1933test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1934
1935test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1936
1937{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1938echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1939# Just in case
1940sleep 1
1941echo timestamp > conftest.file
1942# Do `set' in a subshell so we don't clobber the current shell's
1943# arguments.  Must try -L first in case configure is actually a
1944# symlink; some systems play weird games with the mod time of symlinks
1945# (eg FreeBSD returns the mod time of the symlink's containing
1946# directory).
1947if (
1948   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1949   if test "$*" = "X"; then
1950      # -L didn't work.
1951      set X `ls -t $srcdir/configure conftest.file`
1952   fi
1953   rm -f conftest.file
1954   if test "$*" != "X $srcdir/configure conftest.file" \
1955      && test "$*" != "X conftest.file $srcdir/configure"; then
1956
1957      # If neither matched, then we have a broken ls.  This can happen
1958      # if, for instance, CONFIG_SHELL is bash and it inherits a
1959      # broken ls alias from the environment.  This has actually
1960      # happened.  Such a system could not be considered "sane".
1961      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1962alias in your environment" >&5
1963echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1964alias in your environment" >&2;}
1965   { (exit 1); exit 1; }; }
1966   fi
1967
1968   test "$2" = conftest.file
1969   )
1970then
1971   # Ok.
1972   :
1973else
1974   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1975Check your system clock" >&5
1976echo "$as_me: error: newly created file is older than distributed files!
1977Check your system clock" >&2;}
1978   { (exit 1); exit 1; }; }
1979fi
1980{ echo "$as_me:$LINENO: result: yes" >&5
1981echo "${ECHO_T}yes" >&6; }
1982test "$program_prefix" != NONE &&
1983  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1984# Use a double $ so make ignores it.
1985test "$program_suffix" != NONE &&
1986  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1987# Double any \ or $.  echo might interpret backslashes.
1988# By default was `s,x,x', remove it if useless.
1989cat <<\_ACEOF >conftest.sed
1990s/[\\$]/&&/g;s/;s,x,x,$//
1991_ACEOF
1992program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1993rm -f conftest.sed
1994
1995# expand $ac_aux_dir to an absolute path
1996am_aux_dir=`cd $ac_aux_dir && pwd`
1997
1998test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1999# Use eval to expand $SHELL
2000if eval "$MISSING --run true"; then
2001  am_missing_run="$MISSING --run "
2002else
2003  am_missing_run=
2004  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2005echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2006fi
2007
2008if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2009  # We used to keeping the `.' as first argument, in order to
2010  # allow $(mkdir_p) to be used without argument.  As in
2011  #   $(mkdir_p) $(somedir)
2012  # where $(somedir) is conditionally defined.  However this is wrong
2013  # for two reasons:
2014  #  1. if the package is installed by a user who cannot write `.'
2015  #     make install will fail,
2016  #  2. the above comment should most certainly read
2017  #     $(mkdir_p) $(DESTDIR)$(somedir)
2018  #     so it does not work when $(somedir) is undefined and
2019  #     $(DESTDIR) is not.
2020  #  To support the latter case, we have to write
2021  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2022  #  so the `.' trick is pointless.
2023  mkdir_p='mkdir -p --'
2024else
2025  # On NextStep and OpenStep, the `mkdir' command does not
2026  # recognize any option.  It will interpret all options as
2027  # directories to create, and then abort because `.' already
2028  # exists.
2029  for d in ./-p ./--version;
2030  do
2031    test -d $d && rmdir $d
2032  done
2033  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2034  if test -f "$ac_aux_dir/mkinstalldirs"; then
2035    mkdir_p='$(mkinstalldirs)'
2036  else
2037    mkdir_p='$(install_sh) -d'
2038  fi
2039fi
2040
2041for ac_prog in gawk mawk nawk awk
2042do
2043  # Extract the first word of "$ac_prog", so it can be a program name with args.
2044set dummy $ac_prog; ac_word=$2
2045{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047if test "${ac_cv_prog_AWK+set}" = set; then
2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050  if test -n "$AWK"; then
2051  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056  IFS=$as_save_IFS
2057  test -z "$as_dir" && as_dir=.
2058  for ac_exec_ext in '' $ac_executable_extensions; do
2059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2060    ac_cv_prog_AWK="$ac_prog"
2061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062    break 2
2063  fi
2064done
2065done
2066IFS=$as_save_IFS
2067
2068fi
2069fi
2070AWK=$ac_cv_prog_AWK
2071if test -n "$AWK"; then
2072  { echo "$as_me:$LINENO: result: $AWK" >&5
2073echo "${ECHO_T}$AWK" >&6; }
2074else
2075  { echo "$as_me:$LINENO: result: no" >&5
2076echo "${ECHO_T}no" >&6; }
2077fi
2078
2079
2080  test -n "$AWK" && break
2081done
2082
2083{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2084echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2085set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2086if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2087  echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089  cat >conftest.make <<\_ACEOF
2090SHELL = /bin/sh
2091all:
2092	@echo '@@@%%%=$(MAKE)=@@@%%%'
2093_ACEOF
2094# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2095case `${MAKE-make} -f conftest.make 2>/dev/null` in
2096  *@@@%%%=?*=@@@%%%*)
2097    eval ac_cv_prog_make_${ac_make}_set=yes;;
2098  *)
2099    eval ac_cv_prog_make_${ac_make}_set=no;;
2100esac
2101rm -f conftest.make
2102fi
2103if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2104  { echo "$as_me:$LINENO: result: yes" >&5
2105echo "${ECHO_T}yes" >&6; }
2106  SET_MAKE=
2107else
2108  { echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6; }
2110  SET_MAKE="MAKE=${MAKE-make}"
2111fi
2112
2113rm -rf .tst 2>/dev/null
2114mkdir .tst 2>/dev/null
2115if test -d .tst; then
2116  am__leading_dot=.
2117else
2118  am__leading_dot=_
2119fi
2120rmdir .tst 2>/dev/null
2121
2122# test to see if srcdir already configured
2123if test "`cd $srcdir && pwd`" != "`pwd`" &&
2124   test -f $srcdir/config.status; then
2125  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2126echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2127   { (exit 1); exit 1; }; }
2128fi
2129
2130# test whether we have cygpath
2131if test -z "$CYGPATH_W"; then
2132  if (cygpath --version) >/dev/null 2>/dev/null; then
2133    CYGPATH_W='cygpath -w'
2134  else
2135    CYGPATH_W=echo
2136  fi
2137fi
2138
2139
2140# Define the identity of the package.
2141 PACKAGE=scourge
2142 VERSION="0.21"
2143
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE "$PACKAGE"
2147_ACEOF
2148
2149
2150cat >>confdefs.h <<_ACEOF
2151#define VERSION "$VERSION"
2152_ACEOF
2153
2154# Some tools Automake needs.
2155
2156ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2157
2158
2159AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2160
2161
2162AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2163
2164
2165AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2166
2167
2168MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2169
2170install_sh=${install_sh-"$am_aux_dir/install-sh"}
2171
2172# Installed binaries are usually stripped using `strip' when the user
2173# run `make install-strip'.  However `strip' might not be the right
2174# tool to use in cross-compilation environments, therefore Automake
2175# will honor the `STRIP' environment variable to overrule this program.
2176if test "$cross_compiling" != no; then
2177  if test -n "$ac_tool_prefix"; then
2178  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2179set dummy ${ac_tool_prefix}strip; ac_word=$2
2180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182if test "${ac_cv_prog_STRIP+set}" = set; then
2183  echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185  if test -n "$STRIP"; then
2186  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2187else
2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189for as_dir in $PATH
2190do
2191  IFS=$as_save_IFS
2192  test -z "$as_dir" && as_dir=.
2193  for ac_exec_ext in '' $ac_executable_extensions; do
2194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2195    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197    break 2
2198  fi
2199done
2200done
2201IFS=$as_save_IFS
2202
2203fi
2204fi
2205STRIP=$ac_cv_prog_STRIP
2206if test -n "$STRIP"; then
2207  { echo "$as_me:$LINENO: result: $STRIP" >&5
2208echo "${ECHO_T}$STRIP" >&6; }
2209else
2210  { echo "$as_me:$LINENO: result: no" >&5
2211echo "${ECHO_T}no" >&6; }
2212fi
2213
2214
2215fi
2216if test -z "$ac_cv_prog_STRIP"; then
2217  ac_ct_STRIP=$STRIP
2218  # Extract the first word of "strip", so it can be a program name with args.
2219set dummy strip; ac_word=$2
2220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2223  echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225  if test -n "$ac_ct_STRIP"; then
2226  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2227else
2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH
2230do
2231  IFS=$as_save_IFS
2232  test -z "$as_dir" && as_dir=.
2233  for ac_exec_ext in '' $ac_executable_extensions; do
2234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235    ac_cv_prog_ac_ct_STRIP="strip"
2236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237    break 2
2238  fi
2239done
2240done
2241IFS=$as_save_IFS
2242
2243fi
2244fi
2245ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2246if test -n "$ac_ct_STRIP"; then
2247  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2248echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2249else
2250  { echo "$as_me:$LINENO: result: no" >&5
2251echo "${ECHO_T}no" >&6; }
2252fi
2253
2254  if test "x$ac_ct_STRIP" = x; then
2255    STRIP=":"
2256  else
2257    case $cross_compiling:$ac_tool_warned in
2258yes:)
2259{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2260whose name does not start with the host triplet.  If you think this
2261configuration is useful to you, please write to autoconf@gnu.org." >&5
2262echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2263whose name does not start with the host triplet.  If you think this
2264configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2265ac_tool_warned=yes ;;
2266esac
2267    STRIP=$ac_ct_STRIP
2268  fi
2269else
2270  STRIP="$ac_cv_prog_STRIP"
2271fi
2272
2273fi
2274INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2275
2276# We need awk for the "check" target.  The system "awk" is bad on
2277# some platforms.
2278# Always define AMTAR for backward compatibility.
2279
2280AMTAR=${AMTAR-"${am_missing_run}tar"}
2281
2282am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2283
2284
2285
2286
2287
2288ac_config_headers="$ac_config_headers config.h"
2289
2290
2291
2292cat >>confdefs.h <<\_ACEOF
2293#define _GNU_SOURCE 1
2294_ACEOF
2295
2296
2297
2298  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2299echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2300    # Check whether --enable-nls was given.
2301if test "${enable_nls+set}" = set; then
2302  enableval=$enable_nls; USE_NLS=$enableval
2303else
2304  USE_NLS=yes
2305fi
2306
2307  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
2308echo "${ECHO_T}$USE_NLS" >&6; }
2309
2310
2311
2312
2313
2314
2315# Prepare PATH_SEPARATOR.
2316# The user is always right.
2317if test "${PATH_SEPARATOR+set}" != set; then
2318  echo "#! /bin/sh" >conf$$.sh
2319  echo  "exit 0"   >>conf$$.sh
2320  chmod +x conf$$.sh
2321  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2322    PATH_SEPARATOR=';'
2323  else
2324    PATH_SEPARATOR=:
2325  fi
2326  rm -f conf$$.sh
2327fi
2328
2329# Find out how to test for executable files. Don't use a zero-byte file,
2330# as systems may use methods other than mode bits to determine executability.
2331cat >conf$$.file <<_ASEOF
2332#! /bin/sh
2333exit 0
2334_ASEOF
2335chmod +x conf$$.file
2336if test -x conf$$.file >/dev/null 2>&1; then
2337  ac_executable_p="test -x"
2338else
2339  ac_executable_p="test -f"
2340fi
2341rm -f conf$$.file
2342
2343# Extract the first word of "msgfmt", so it can be a program name with args.
2344set dummy msgfmt; ac_word=$2
2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347if test "${ac_cv_path_MSGFMT+set}" = set; then
2348  echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350  case "$MSGFMT" in
2351  [\\/]* | ?:[\\/]*)
2352    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2353    ;;
2354  *)
2355    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2356    for ac_dir in $PATH; do
2357      IFS="$ac_save_IFS"
2358      test -z "$ac_dir" && ac_dir=.
2359      for ac_exec_ext in '' $ac_executable_extensions; do
2360        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2361          echo "$as_me: trying $ac_dir/$ac_word..." >&5
2362          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2363     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2364            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2365            break 2
2366          fi
2367        fi
2368      done
2369    done
2370    IFS="$ac_save_IFS"
2371  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2372    ;;
2373esac
2374fi
2375MSGFMT="$ac_cv_path_MSGFMT"
2376if test "$MSGFMT" != ":"; then
2377  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2378echo "${ECHO_T}$MSGFMT" >&6; }
2379else
2380  { echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6; }
2382fi
2383
2384  # Extract the first word of "gmsgfmt", so it can be a program name with args.
2385set dummy gmsgfmt; ac_word=$2
2386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388if test "${ac_cv_path_GMSGFMT+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  case $GMSGFMT in
2392  [\\/]* | ?:[\\/]*)
2393  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2394  ;;
2395  *)
2396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399  IFS=$as_save_IFS
2400  test -z "$as_dir" && as_dir=.
2401  for ac_exec_ext in '' $ac_executable_extensions; do
2402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405    break 2
2406  fi
2407done
2408done
2409IFS=$as_save_IFS
2410
2411  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2412  ;;
2413esac
2414fi
2415GMSGFMT=$ac_cv_path_GMSGFMT
2416if test -n "$GMSGFMT"; then
2417  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2418echo "${ECHO_T}$GMSGFMT" >&6; }
2419else
2420  { echo "$as_me:$LINENO: result: no" >&5
2421echo "${ECHO_T}no" >&6; }
2422fi
2423
2424
2425
2426    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2427    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2428    *) MSGFMT_015=$MSGFMT ;;
2429  esac
2430
2431  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2432    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2433    *) GMSGFMT_015=$GMSGFMT ;;
2434  esac
2435
2436
2437
2438# Prepare PATH_SEPARATOR.
2439# The user is always right.
2440if test "${PATH_SEPARATOR+set}" != set; then
2441  echo "#! /bin/sh" >conf$$.sh
2442  echo  "exit 0"   >>conf$$.sh
2443  chmod +x conf$$.sh
2444  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2445    PATH_SEPARATOR=';'
2446  else
2447    PATH_SEPARATOR=:
2448  fi
2449  rm -f conf$$.sh
2450fi
2451
2452# Find out how to test for executable files. Don't use a zero-byte file,
2453# as systems may use methods other than mode bits to determine executability.
2454cat >conf$$.file <<_ASEOF
2455#! /bin/sh
2456exit 0
2457_ASEOF
2458chmod +x conf$$.file
2459if test -x conf$$.file >/dev/null 2>&1; then
2460  ac_executable_p="test -x"
2461else
2462  ac_executable_p="test -f"
2463fi
2464rm -f conf$$.file
2465
2466# Extract the first word of "xgettext", so it can be a program name with args.
2467set dummy xgettext; ac_word=$2
2468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470if test "${ac_cv_path_XGETTEXT+set}" = set; then
2471  echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473  case "$XGETTEXT" in
2474  [\\/]* | ?:[\\/]*)
2475    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2476    ;;
2477  *)
2478    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2479    for ac_dir in $PATH; do
2480      IFS="$ac_save_IFS"
2481      test -z "$ac_dir" && ac_dir=.
2482      for ac_exec_ext in '' $ac_executable_extensions; do
2483        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2484          echo "$as_me: trying $ac_dir/$ac_word..." >&5
2485          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2486     (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
2487            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2488            break 2
2489          fi
2490        fi
2491      done
2492    done
2493    IFS="$ac_save_IFS"
2494  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2495    ;;
2496esac
2497fi
2498XGETTEXT="$ac_cv_path_XGETTEXT"
2499if test "$XGETTEXT" != ":"; then
2500  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2501echo "${ECHO_T}$XGETTEXT" >&6; }
2502else
2503  { echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6; }
2505fi
2506
2507    rm -f messages.po
2508
2509    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2510    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2511    *) XGETTEXT_015=$XGETTEXT ;;
2512  esac
2513
2514
2515
2516# Prepare PATH_SEPARATOR.
2517# The user is always right.
2518if test "${PATH_SEPARATOR+set}" != set; then
2519  echo "#! /bin/sh" >conf$$.sh
2520  echo  "exit 0"   >>conf$$.sh
2521  chmod +x conf$$.sh
2522  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2523    PATH_SEPARATOR=';'
2524  else
2525    PATH_SEPARATOR=:
2526  fi
2527  rm -f conf$$.sh
2528fi
2529
2530# Find out how to test for executable files. Don't use a zero-byte file,
2531# as systems may use methods other than mode bits to determine executability.
2532cat >conf$$.file <<_ASEOF
2533#! /bin/sh
2534exit 0
2535_ASEOF
2536chmod +x conf$$.file
2537if test -x conf$$.file >/dev/null 2>&1; then
2538  ac_executable_p="test -x"
2539else
2540  ac_executable_p="test -f"
2541fi
2542rm -f conf$$.file
2543
2544# Extract the first word of "msgmerge", so it can be a program name with args.
2545set dummy msgmerge; ac_word=$2
2546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548if test "${ac_cv_path_MSGMERGE+set}" = set; then
2549  echo $ECHO_N "(cached) $ECHO_C" >&6
2550else
2551  case "$MSGMERGE" in
2552  [\\/]* | ?:[\\/]*)
2553    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2554    ;;
2555  *)
2556    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2557    for ac_dir in $PATH; do
2558      IFS="$ac_save_IFS"
2559      test -z "$ac_dir" && ac_dir=.
2560      for ac_exec_ext in '' $ac_executable_extensions; do
2561        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2562          echo "$as_me: trying $ac_dir/$ac_word..." >&5
2563          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2564            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2565            break 2
2566          fi
2567        fi
2568      done
2569    done
2570    IFS="$ac_save_IFS"
2571  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2572    ;;
2573esac
2574fi
2575MSGMERGE="$ac_cv_path_MSGMERGE"
2576if test "$MSGMERGE" != ":"; then
2577  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2578echo "${ECHO_T}$MSGMERGE" >&6; }
2579else
2580  { echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6; }
2582fi
2583
2584
2585        test -n "$localedir" || localedir='${datadir}/locale'
2586
2587
2588  ac_config_commands="$ac_config_commands po-directories"
2589
2590
2591DEPDIR="${am__leading_dot}deps"
2592
2593ac_config_commands="$ac_config_commands depfiles"
2594
2595
2596am_make=${MAKE-make}
2597cat > confinc << 'END'
2598am__doit:
2599	@echo done
2600.PHONY: am__doit
2601END
2602# If we don't find an include directive, just comment out the code.
2603{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2604echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2605am__include="#"
2606am__quote=
2607_am_result=none
2608# First try GNU make style include.
2609echo "include confinc" > confmf
2610# We grep out `Entering directory' and `Leaving directory'
2611# messages which can occur if `w' ends up in MAKEFLAGS.
2612# In particular we don't look at `^make:' because GNU make might
2613# be invoked under some other name (usually "gmake"), in which
2614# case it prints its new name instead of `make'.
2615if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2616   am__include=include
2617   am__quote=
2618   _am_result=GNU
2619fi
2620# Now try BSD make style include.
2621if test "$am__include" = "#"; then
2622   echo '.include "confinc"' > confmf
2623   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2624      am__include=.include
2625      am__quote="\""
2626      _am_result=BSD
2627   fi
2628fi
2629
2630
2631{ echo "$as_me:$LINENO: result: $_am_result" >&5
2632echo "${ECHO_T}$_am_result" >&6; }
2633rm -f confinc confmf
2634
2635# Check whether --enable-dependency-tracking was given.
2636if test "${enable_dependency_tracking+set}" = set; then
2637  enableval=$enable_dependency_tracking;
2638fi
2639
2640if test "x$enable_dependency_tracking" != xno; then
2641  am_depcomp="$ac_aux_dir/depcomp"
2642  AMDEPBACKSLASH='\'
2643fi
2644
2645
2646if test "x$enable_dependency_tracking" != xno; then
2647  AMDEP_TRUE=
2648  AMDEP_FALSE='#'
2649else
2650  AMDEP_TRUE='#'
2651  AMDEP_FALSE=
2652fi
2653
2654
2655
2656ac_ext=c
2657ac_cpp='$CPP $CPPFLAGS'
2658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661if test -n "$ac_tool_prefix"; then
2662  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2663set dummy ${ac_tool_prefix}gcc; ac_word=$2
2664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2666if test "${ac_cv_prog_CC+set}" = set; then
2667  echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669  if test -n "$CC"; then
2670  ac_cv_prog_CC="$CC" # Let the user override the test.
2671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675  IFS=$as_save_IFS
2676  test -z "$as_dir" && as_dir=.
2677  for ac_exec_ext in '' $ac_executable_extensions; do
2678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681    break 2
2682  fi
2683done
2684done
2685IFS=$as_save_IFS
2686
2687fi
2688fi
2689CC=$ac_cv_prog_CC
2690if test -n "$CC"; then
2691  { echo "$as_me:$LINENO: result: $CC" >&5
2692echo "${ECHO_T}$CC" >&6; }
2693else
2694  { echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6; }
2696fi
2697
2698
2699fi
2700if test -z "$ac_cv_prog_CC"; then
2701  ac_ct_CC=$CC
2702  # Extract the first word of "gcc", so it can be a program name with args.
2703set dummy gcc; ac_word=$2
2704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2707  echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709  if test -n "$ac_ct_CC"; then
2710  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717  for ac_exec_ext in '' $ac_executable_extensions; do
2718  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719    ac_cv_prog_ac_ct_CC="gcc"
2720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724done
2725IFS=$as_save_IFS
2726
2727fi
2728fi
2729ac_ct_CC=$ac_cv_prog_ac_ct_CC
2730if test -n "$ac_ct_CC"; then
2731  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2732echo "${ECHO_T}$ac_ct_CC" >&6; }
2733else
2734  { echo "$as_me:$LINENO: result: no" >&5
2735echo "${ECHO_T}no" >&6; }
2736fi
2737
2738  if test "x$ac_ct_CC" = x; then
2739    CC=""
2740  else
2741    case $cross_compiling:$ac_tool_warned in
2742yes:)
2743{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2744whose name does not start with the host triplet.  If you think this
2745configuration is useful to you, please write to autoconf@gnu.org." >&5
2746echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2747whose name does not start with the host triplet.  If you think this
2748configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2749ac_tool_warned=yes ;;
2750esac
2751    CC=$ac_ct_CC
2752  fi
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757if test -z "$CC"; then
2758          if test -n "$ac_tool_prefix"; then
2759    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760set dummy ${ac_tool_prefix}cc; ac_word=$2
2761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776    ac_cv_prog_CC="${ac_tool_prefix}cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782IFS=$as_save_IFS
2783
2784fi
2785fi
2786CC=$ac_cv_prog_CC
2787if test -n "$CC"; then
2788  { echo "$as_me:$LINENO: result: $CC" >&5
2789echo "${ECHO_T}$CC" >&6; }
2790else
2791  { echo "$as_me:$LINENO: result: no" >&5
2792echo "${ECHO_T}no" >&6; }
2793fi
2794
2795
2796  fi
2797fi
2798if test -z "$CC"; then
2799  # Extract the first word of "cc", so it can be a program name with args.
2800set dummy cc; ac_word=$2
2801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803if test "${ac_cv_prog_CC+set}" = set; then
2804  echo $ECHO_N "(cached) $ECHO_C" >&6
2805else
2806  if test -n "$CC"; then
2807  ac_cv_prog_CC="$CC" # Let the user override the test.
2808else
2809  ac_prog_rejected=no
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813  IFS=$as_save_IFS
2814  test -z "$as_dir" && as_dir=.
2815  for ac_exec_ext in '' $ac_executable_extensions; do
2816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2818       ac_prog_rejected=yes
2819       continue
2820     fi
2821    ac_cv_prog_CC="cc"
2822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826done
2827IFS=$as_save_IFS
2828
2829if test $ac_prog_rejected = yes; then
2830  # We found a bogon in the path, so make sure we never use it.
2831  set dummy $ac_cv_prog_CC
2832  shift
2833  if test $# != 0; then
2834    # We chose a different compiler from the bogus one.
2835    # However, it has the same basename, so the bogon will be chosen
2836    # first if we set CC to just the basename; use the full file name.
2837    shift
2838    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2839  fi
2840fi
2841fi
2842fi
2843CC=$ac_cv_prog_CC
2844if test -n "$CC"; then
2845  { echo "$as_me:$LINENO: result: $CC" >&5
2846echo "${ECHO_T}$CC" >&6; }
2847else
2848  { echo "$as_me:$LINENO: result: no" >&5
2849echo "${ECHO_T}no" >&6; }
2850fi
2851
2852
2853fi
2854if test -z "$CC"; then
2855  if test -n "$ac_tool_prefix"; then
2856  for ac_prog in cl.exe
2857  do
2858    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2859set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2862if test "${ac_cv_prog_CC+set}" = set; then
2863  echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865  if test -n "$CC"; then
2866  ac_cv_prog_CC="$CC" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871  IFS=$as_save_IFS
2872  test -z "$as_dir" && as_dir=.
2873  for ac_exec_ext in '' $ac_executable_extensions; do
2874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885CC=$ac_cv_prog_CC
2886if test -n "$CC"; then
2887  { echo "$as_me:$LINENO: result: $CC" >&5
2888echo "${ECHO_T}$CC" >&6; }
2889else
2890  { echo "$as_me:$LINENO: result: no" >&5
2891echo "${ECHO_T}no" >&6; }
2892fi
2893
2894
2895    test -n "$CC" && break
2896  done
2897fi
2898if test -z "$CC"; then
2899  ac_ct_CC=$CC
2900  for ac_prog in cl.exe
2901do
2902  # Extract the first word of "$ac_prog", so it can be a program name with args.
2903set dummy $ac_prog; ac_word=$2
2904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2906if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2907  echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909  if test -n "$ac_ct_CC"; then
2910  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915  IFS=$as_save_IFS
2916  test -z "$as_dir" && as_dir=.
2917  for ac_exec_ext in '' $ac_executable_extensions; do
2918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919    ac_cv_prog_ac_ct_CC="$ac_prog"
2920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921    break 2
2922  fi
2923done
2924done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929ac_ct_CC=$ac_cv_prog_ac_ct_CC
2930if test -n "$ac_ct_CC"; then
2931  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2932echo "${ECHO_T}$ac_ct_CC" >&6; }
2933else
2934  { echo "$as_me:$LINENO: result: no" >&5
2935echo "${ECHO_T}no" >&6; }
2936fi
2937
2938
2939  test -n "$ac_ct_CC" && break
2940done
2941
2942  if test "x$ac_ct_CC" = x; then
2943    CC=""
2944  else
2945    case $cross_compiling:$ac_tool_warned in
2946yes:)
2947{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2948whose name does not start with the host triplet.  If you think this
2949configuration is useful to you, please write to autoconf@gnu.org." >&5
2950echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2951whose name does not start with the host triplet.  If you think this
2952configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2953ac_tool_warned=yes ;;
2954esac
2955    CC=$ac_ct_CC
2956  fi
2957fi
2958
2959fi
2960
2961
2962test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2963See \`config.log' for more details." >&5
2964echo "$as_me: error: no acceptable C compiler found in \$PATH
2965See \`config.log' for more details." >&2;}
2966   { (exit 1); exit 1; }; }
2967
2968# Provide some information about the compiler.
2969echo "$as_me:$LINENO: checking for C compiler version" >&5
2970ac_compiler=`set X $ac_compile; echo $2`
2971{ (ac_try="$ac_compiler --version >&5"
2972case "(($ac_try" in
2973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974  *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977  (eval "$ac_compiler --version >&5") 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }
2981{ (ac_try="$ac_compiler -v >&5"
2982case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987  (eval "$ac_compiler -v >&5") 2>&5
2988  ac_status=$?
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); }
2991{ (ac_try="$ac_compiler -V >&5"
2992case "(($ac_try" in
2993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994  *) ac_try_echo=$ac_try;;
2995esac
2996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997  (eval "$ac_compiler -V >&5") 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }
3001
3002cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h.  */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h.  */
3008
3009int
3010main ()
3011{
3012
3013  ;
3014  return 0;
3015}
3016_ACEOF
3017ac_clean_files_save=$ac_clean_files
3018ac_clean_files="$ac_clean_files a.out a.exe b.out"
3019# Try to create an executable without -o first, disregard a.out.
3020# It will help us diagnose broken compilers, and finding out an intuition
3021# of exeext.
3022{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3023echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3024ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3025#
3026# List of possible output files, starting from the most likely.
3027# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3028# only as a last resort.  b.out is created by i960 compilers.
3029ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3030#
3031# The IRIX 6 linker writes into existing files which may not be
3032# executable, retaining their permissions.  Remove them first so a
3033# subsequent execution test works.
3034ac_rmfiles=
3035for ac_file in $ac_files
3036do
3037  case $ac_file in
3038    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3039    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3040  esac
3041done
3042rm -f $ac_rmfiles
3043
3044if { (ac_try="$ac_link_default"
3045case "(($ac_try" in
3046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047  *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050  (eval "$ac_link_default") 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; then
3054  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3055# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3056# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3057# so that the user can short-circuit this test for compilers unknown to
3058# Autoconf.
3059for ac_file in $ac_files ''
3060do
3061  test -f "$ac_file" || continue
3062  case $ac_file in
3063    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3064	;;
3065    [ab].out )
3066	# We found the default executable, but exeext='' is most
3067	# certainly right.
3068	break;;
3069    *.* )
3070        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3071	then :; else
3072	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073	fi
3074	# We set ac_cv_exeext here because the later test for it is not
3075	# safe: cross compilers may not add the suffix if given an `-o'
3076	# argument, so we may need to know it at that point already.
3077	# Even if this section looks crufty: it has the advantage of
3078	# actually working.
3079	break;;
3080    * )
3081	break;;
3082  esac
3083done
3084test "$ac_cv_exeext" = no && ac_cv_exeext=
3085
3086else
3087  ac_file=''
3088fi
3089
3090{ echo "$as_me:$LINENO: result: $ac_file" >&5
3091echo "${ECHO_T}$ac_file" >&6; }
3092if test -z "$ac_file"; then
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3097See \`config.log' for more details." >&5
3098echo "$as_me: error: C compiler cannot create executables
3099See \`config.log' for more details." >&2;}
3100   { (exit 77); exit 77; }; }
3101fi
3102
3103ac_exeext=$ac_cv_exeext
3104
3105# Check that the compiler produces executables we can run.  If not, either
3106# the compiler is broken, or we cross compile.
3107{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3108echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3109# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3110# If not cross compiling, check that we can run a simple program.
3111if test "$cross_compiling" != yes; then
3112  if { ac_try='./$ac_file'
3113  { (case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118  (eval "$ac_try") 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); }; }; then
3122    cross_compiling=no
3123  else
3124    if test "$cross_compiling" = maybe; then
3125	cross_compiling=yes
3126    else
3127	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3128If you meant to cross compile, use \`--host'.
3129See \`config.log' for more details." >&5
3130echo "$as_me: error: cannot run C compiled programs.
3131If you meant to cross compile, use \`--host'.
3132See \`config.log' for more details." >&2;}
3133   { (exit 1); exit 1; }; }
3134    fi
3135  fi
3136fi
3137{ echo "$as_me:$LINENO: result: yes" >&5
3138echo "${ECHO_T}yes" >&6; }
3139
3140rm -f a.out a.exe conftest$ac_cv_exeext b.out
3141ac_clean_files=$ac_clean_files_save
3142# Check that the compiler produces executables we can run.  If not, either
3143# the compiler is broken, or we cross compile.
3144{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3145echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3146{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3147echo "${ECHO_T}$cross_compiling" >&6; }
3148
3149{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3150echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3151if { (ac_try="$ac_link"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157  (eval "$ac_link") 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); }; then
3161  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3162# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3163# work properly (i.e., refer to `conftest.exe'), while it won't with
3164# `rm'.
3165for ac_file in conftest.exe conftest conftest.*; do
3166  test -f "$ac_file" || continue
3167  case $ac_file in
3168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3169    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3170	  break;;
3171    * ) break;;
3172  esac
3173done
3174else
3175  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3176See \`config.log' for more details." >&5
3177echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3178See \`config.log' for more details." >&2;}
3179   { (exit 1); exit 1; }; }
3180fi
3181
3182rm -f conftest$ac_cv_exeext
3183{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3184echo "${ECHO_T}$ac_cv_exeext" >&6; }
3185
3186rm -f conftest.$ac_ext
3187EXEEXT=$ac_cv_exeext
3188ac_exeext=$EXEEXT
3189{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3190echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3191if test "${ac_cv_objext+set}" = set; then
3192  echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194  cat >conftest.$ac_ext <<_ACEOF
3195/* confdefs.h.  */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h.  */
3200
3201int
3202main ()
3203{
3204
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209rm -f conftest.o conftest.obj
3210if { (ac_try="$ac_compile"
3211case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216  (eval "$ac_compile") 2>&5
3217  ac_status=$?
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); }; then
3220  for ac_file in conftest.o conftest.obj conftest.*; do
3221  test -f "$ac_file" || continue;
3222  case $ac_file in
3223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3224    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225       break;;
3226  esac
3227done
3228else
3229  echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3233See \`config.log' for more details." >&5
3234echo "$as_me: error: cannot compute suffix of object files: cannot compile
3235See \`config.log' for more details." >&2;}
3236   { (exit 1); exit 1; }; }
3237fi
3238
3239rm -f conftest.$ac_cv_objext conftest.$ac_ext
3240fi
3241{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3242echo "${ECHO_T}$ac_cv_objext" >&6; }
3243OBJEXT=$ac_cv_objext
3244ac_objext=$OBJEXT
3245{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3246echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3247if test "${ac_cv_c_compiler_gnu+set}" = set; then
3248  echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250  cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h.  */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260#ifndef __GNUC__
3261       choke me
3262#endif
3263
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268rm -f conftest.$ac_objext
3269if { (ac_try="$ac_compile"
3270case "(($ac_try" in
3271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272  *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275  (eval "$ac_compile") 2>conftest.er1
3276  ac_status=$?
3277  grep -v '^ *+' conftest.er1 >conftest.err
3278  rm -f conftest.er1
3279  cat conftest.err >&5
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); } && {
3282	 test -z "$ac_c_werror_flag" ||
3283	 test ! -s conftest.err
3284       } && test -s conftest.$ac_objext; then
3285  ac_compiler_gnu=yes
3286else
3287  echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290	ac_compiler_gnu=no
3291fi
3292
3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294ac_cv_c_compiler_gnu=$ac_compiler_gnu
3295
3296fi
3297{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3298echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3299GCC=`test $ac_compiler_gnu = yes && echo yes`
3300ac_test_CFLAGS=${CFLAGS+set}
3301ac_save_CFLAGS=$CFLAGS
3302{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3303echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3304if test "${ac_cv_prog_cc_g+set}" = set; then
3305  echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307  ac_save_c_werror_flag=$ac_c_werror_flag
3308   ac_c_werror_flag=yes
3309   ac_cv_prog_cc_g=no
3310   CFLAGS="-g"
3311   cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h.  */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h.  */
3317
3318int
3319main ()
3320{
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326rm -f conftest.$ac_objext
3327if { (ac_try="$ac_compile"
3328case "(($ac_try" in
3329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330  *) ac_try_echo=$ac_try;;
3331esac
3332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333  (eval "$ac_compile") 2>conftest.er1
3334  ac_status=$?
3335  grep -v '^ *+' conftest.er1 >conftest.err
3336  rm -f conftest.er1
3337  cat conftest.err >&5
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); } && {
3340	 test -z "$ac_c_werror_flag" ||
3341	 test ! -s conftest.err
3342       } && test -s conftest.$ac_objext; then
3343  ac_cv_prog_cc_g=yes
3344else
3345  echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348	CFLAGS=""
3349      cat >conftest.$ac_ext <<_ACEOF
3350/* confdefs.h.  */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h.  */
3355
3356int
3357main ()
3358{
3359
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364rm -f conftest.$ac_objext
3365if { (ac_try="$ac_compile"
3366case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371  (eval "$ac_compile") 2>conftest.er1
3372  ac_status=$?
3373  grep -v '^ *+' conftest.er1 >conftest.err
3374  rm -f conftest.er1
3375  cat conftest.err >&5
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); } && {
3378	 test -z "$ac_c_werror_flag" ||
3379	 test ! -s conftest.err
3380       } && test -s conftest.$ac_objext; then
3381  :
3382else
3383  echo "$as_me: failed program was:" >&5
3384sed 's/^/| /' conftest.$ac_ext >&5
3385
3386	ac_c_werror_flag=$ac_save_c_werror_flag
3387	 CFLAGS="-g"
3388	 cat >conftest.$ac_ext <<_ACEOF
3389/* confdefs.h.  */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h.  */
3394
3395int
3396main ()
3397{
3398
3399  ;
3400  return 0;
3401}
3402_ACEOF
3403rm -f conftest.$ac_objext
3404if { (ac_try="$ac_compile"
3405case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410  (eval "$ac_compile") 2>conftest.er1
3411  ac_status=$?
3412  grep -v '^ *+' conftest.er1 >conftest.err
3413  rm -f conftest.er1
3414  cat conftest.err >&5
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); } && {
3417	 test -z "$ac_c_werror_flag" ||
3418	 test ! -s conftest.err
3419       } && test -s conftest.$ac_objext; then
3420  ac_cv_prog_cc_g=yes
3421else
3422  echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425
3426fi
3427
3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429fi
3430
3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432fi
3433
3434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435   ac_c_werror_flag=$ac_save_c_werror_flag
3436fi
3437{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3438echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3439if test "$ac_test_CFLAGS" = set; then
3440  CFLAGS=$ac_save_CFLAGS
3441elif test $ac_cv_prog_cc_g = yes; then
3442  if test "$GCC" = yes; then
3443    CFLAGS="-g -O2"
3444  else
3445    CFLAGS="-g"
3446  fi
3447else
3448  if test "$GCC" = yes; then
3449    CFLAGS="-O2"
3450  else
3451    CFLAGS=
3452  fi
3453fi
3454{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3455echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3456if test "${ac_cv_prog_cc_c89+set}" = set; then
3457  echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459  ac_cv_prog_cc_c89=no
3460ac_save_CC=$CC
3461cat >conftest.$ac_ext <<_ACEOF
3462/* confdefs.h.  */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h.  */
3467#include <stdarg.h>
3468#include <stdio.h>
3469#include <sys/types.h>
3470#include <sys/stat.h>
3471/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3472struct buf { int x; };
3473FILE * (*rcsopen) (struct buf *, struct stat *, int);
3474static char *e (p, i)
3475     char **p;
3476     int i;
3477{
3478  return p[i];
3479}
3480static char *f (char * (*g) (char **, int), char **p, ...)
3481{
3482  char *s;
3483  va_list v;
3484  va_start (v,p);
3485  s = g (p, va_arg (v,int));
3486  va_end (v);
3487  return s;
3488}
3489
3490/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3491   function prototypes and stuff, but not '\xHH' hex character constants.
3492   These don't provoke an error unfortunately, instead are silently treated
3493   as 'x'.  The following induces an error, until -std is added to get
3494   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3495   array size at least.  It's necessary to write '\x00'==0 to get something
3496   that's true only with -std.  */
3497int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3498
3499/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3500   inside strings and character constants.  */
3501#define FOO(x) 'x'
3502int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3503
3504int test (int i, double x);
3505struct s1 {int (*f) (int a);};
3506struct s2 {int (*f) (double a);};
3507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3508int argc;
3509char **argv;
3510int
3511main ()
3512{
3513return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3519	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3520do
3521  CC="$ac_save_CC $ac_arg"
3522  rm -f conftest.$ac_objext
3523if { (ac_try="$ac_compile"
3524case "(($ac_try" in
3525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526  *) ac_try_echo=$ac_try;;
3527esac
3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529  (eval "$ac_compile") 2>conftest.er1
3530  ac_status=$?
3531  grep -v '^ *+' conftest.er1 >conftest.err
3532  rm -f conftest.er1
3533  cat conftest.err >&5
3534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); } && {
3536	 test -z "$ac_c_werror_flag" ||
3537	 test ! -s conftest.err
3538       } && test -s conftest.$ac_objext; then
3539  ac_cv_prog_cc_c89=$ac_arg
3540else
3541  echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544
3545fi
3546
3547rm -f core conftest.err conftest.$ac_objext
3548  test "x$ac_cv_prog_cc_c89" != "xno" && break
3549done
3550rm -f conftest.$ac_ext
3551CC=$ac_save_CC
3552
3553fi
3554# AC_CACHE_VAL
3555case "x$ac_cv_prog_cc_c89" in
3556  x)
3557    { echo "$as_me:$LINENO: result: none needed" >&5
3558echo "${ECHO_T}none needed" >&6; } ;;
3559  xno)
3560    { echo "$as_me:$LINENO: result: unsupported" >&5
3561echo "${ECHO_T}unsupported" >&6; } ;;
3562  *)
3563    CC="$CC $ac_cv_prog_cc_c89"
3564    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3565echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3566esac
3567
3568
3569ac_ext=c
3570ac_cpp='$CPP $CPPFLAGS'
3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
3575depcc="$CC"   am_compiler_list=
3576
3577{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3578echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3579if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3580  echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3583  # We make a subdir and do the tests there.  Otherwise we can end up
3584  # making bogus files that we don't know about and never remove.  For
3585  # instance it was reported that on HP-UX the gcc test will end up
3586  # making a dummy file named `D' -- because `-MD' means `put the output
3587  # in D'.
3588  mkdir conftest.dir
3589  # Copy depcomp to subdir because otherwise we won't find it if we're
3590  # using a relative directory.
3591  cp "$am_depcomp" conftest.dir
3592  cd conftest.dir
3593  # We will build objects and dependencies in a subdirectory because
3594  # it helps to detect inapplicable dependency modes.  For instance
3595  # both Tru64's cc and ICC support -MD to output dependencies as a
3596  # side effect of compilation, but ICC will put the dependencies in
3597  # the current directory while Tru64 will put them in the object
3598  # directory.
3599  mkdir sub
3600
3601  am_cv_CC_dependencies_compiler_type=none
3602  if test "$am_compiler_list" = ""; then
3603     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3604  fi
3605  for depmode in $am_compiler_list; do
3606    # Setup a source with many dependencies, because some compilers
3607    # like to wrap large dependency lists on column 80 (with \), and
3608    # we should not choose a depcomp mode which is confused by this.
3609    #
3610    # We need to recreate these files for each test, as the compiler may
3611    # overwrite some of them when testing with obscure command lines.
3612    # This happens at least with the AIX C compiler.
3613    : > sub/conftest.c
3614    for i in 1 2 3 4 5 6; do
3615      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3616      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3617      # Solaris 8's {/usr,}/bin/sh.
3618      touch sub/conftst$i.h
3619    done
3620    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3621
3622    case $depmode in
3623    nosideeffect)
3624      # after this tag, mechanisms are not by side-effect, so they'll
3625      # only be used when explicitly requested
3626      if test "x$enable_dependency_tracking" = xyes; then
3627	continue
3628      else
3629	break
3630      fi
3631      ;;
3632    none) break ;;
3633    esac
3634    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3635    # mode.  It turns out that the SunPro C++ compiler does not properly
3636    # handle `-M -o', and we need to detect this.
3637    if depmode=$depmode \
3638       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3639       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3640       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3641         >/dev/null 2>conftest.err &&
3642       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3643       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3644       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3645      # icc doesn't choke on unknown options, it will just issue warnings
3646      # or remarks (even with -Werror).  So we grep stderr for any message
3647      # that says an option was ignored or not supported.
3648      # When given -MP, icc 7.0 and 7.1 complain thusly:
3649      #   icc: Command line warning: ignoring option '-M'; no argument required
3650      # The diagnosis changed in icc 8.0:
3651      #   icc: Command line remark: option '-MP' not supported
3652      if (grep 'ignoring option' conftest.err ||
3653          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3654        am_cv_CC_dependencies_compiler_type=$depmode
3655        break
3656      fi
3657    fi
3658  done
3659
3660  cd ..
3661  rm -rf conftest.dir
3662else
3663  am_cv_CC_dependencies_compiler_type=none
3664fi
3665
3666fi
3667{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3668echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3669CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3670
3671
3672
3673if
3674  test "x$enable_dependency_tracking" != xno \
3675  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3676  am__fastdepCC_TRUE=
3677  am__fastdepCC_FALSE='#'
3678else
3679  am__fastdepCC_TRUE='#'
3680  am__fastdepCC_FALSE=
3681fi
3682
3683
3684# Make sure we can run config.sub.
3685$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3686  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3687echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3688   { (exit 1); exit 1; }; }
3689
3690{ echo "$as_me:$LINENO: checking build system type" >&5
3691echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3692if test "${ac_cv_build+set}" = set; then
3693  echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695  ac_build_alias=$build_alias
3696test "x$ac_build_alias" = x &&
3697  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3698test "x$ac_build_alias" = x &&
3699  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3700echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3701   { (exit 1); exit 1; }; }
3702ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3703  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3704echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3705   { (exit 1); exit 1; }; }
3706
3707fi
3708{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3709echo "${ECHO_T}$ac_cv_build" >&6; }
3710case $ac_cv_build in
3711*-*-*) ;;
3712*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3713echo "$as_me: error: invalid value of canonical build" >&2;}
3714   { (exit 1); exit 1; }; };;
3715esac
3716build=$ac_cv_build
3717ac_save_IFS=$IFS; IFS='-'
3718set x $ac_cv_build
3719shift
3720build_cpu=$1
3721build_vendor=$2
3722shift; shift
3723# Remember, the first character of IFS is used to create $*,
3724# except with old shells:
3725build_os=$*
3726IFS=$ac_save_IFS
3727case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3728
3729
3730{ echo "$as_me:$LINENO: checking host system type" >&5
3731echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3732if test "${ac_cv_host+set}" = set; then
3733  echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735  if test "x$host_alias" = x; then
3736  ac_cv_host=$ac_cv_build
3737else
3738  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3739    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3740echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3741   { (exit 1); exit 1; }; }
3742fi
3743
3744fi
3745{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3746echo "${ECHO_T}$ac_cv_host" >&6; }
3747case $ac_cv_host in
3748*-*-*) ;;
3749*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3750echo "$as_me: error: invalid value of canonical host" >&2;}
3751   { (exit 1); exit 1; }; };;
3752esac
3753host=$ac_cv_host
3754ac_save_IFS=$IFS; IFS='-'
3755set x $ac_cv_host
3756shift
3757host_cpu=$1
3758host_vendor=$2
3759shift; shift
3760# Remember, the first character of IFS is used to create $*,
3761# except with old shells:
3762host_os=$*
3763IFS=$ac_save_IFS
3764case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3765
3766
3767
3768ac_ext=c
3769ac_cpp='$CPP $CPPFLAGS'
3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3774echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3775# On Suns, sometimes $CPP names a directory.
3776if test -n "$CPP" && test -d "$CPP"; then
3777  CPP=
3778fi
3779if test -z "$CPP"; then
3780  if test "${ac_cv_prog_CPP+set}" = set; then
3781  echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783      # Double quotes because CPP needs to be expanded
3784    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785    do
3786      ac_preproc_ok=false
3787for ac_c_preproc_warn_flag in '' yes
3788do
3789  # Use a header file that comes with gcc, so configuring glibc
3790  # with a fresh cross-compiler works.
3791  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792  # <limits.h> exists even on freestanding compilers.
3793  # On the NeXT, cc -E runs the code through the compiler's parser,
3794  # not just through cpp. "Syntax error" is here to catch this case.
3795  cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h.  */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h.  */
3801#ifdef __STDC__
3802# include <limits.h>
3803#else
3804# include <assert.h>
3805#endif
3806		     Syntax error
3807_ACEOF
3808if { (ac_try="$ac_cpp conftest.$ac_ext"
3809case "(($ac_try" in
3810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811  *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815  ac_status=$?
3816  grep -v '^ *+' conftest.er1 >conftest.err
3817  rm -f conftest.er1
3818  cat conftest.err >&5
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); } >/dev/null && {
3821	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822	 test ! -s conftest.err
3823       }; then
3824  :
3825else
3826  echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829  # Broken: fails on valid input.
3830continue
3831fi
3832
3833rm -f conftest.err conftest.$ac_ext
3834
3835  # OK, works on sane cases.  Now check whether nonexistent headers
3836  # can be detected and how.
3837  cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h.  */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h.  */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if { (ac_try="$ac_cpp conftest.$ac_ext"
3846case "(($ac_try" in
3847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848  *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3852  ac_status=$?
3853  grep -v '^ *+' conftest.er1 >conftest.err
3854  rm -f conftest.er1
3855  cat conftest.err >&5
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); } >/dev/null && {
3858	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3859	 test ! -s conftest.err
3860       }; then
3861  # Broken: success on invalid input.
3862continue
3863else
3864  echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867  # Passes both tests.
3868ac_preproc_ok=:
3869break
3870fi
3871
3872rm -f conftest.err conftest.$ac_ext
3873
3874done
3875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876rm -f conftest.err conftest.$ac_ext
3877if $ac_preproc_ok; then
3878  break
3879fi
3880
3881    done
3882    ac_cv_prog_CPP=$CPP
3883
3884fi
3885  CPP=$ac_cv_prog_CPP
3886else
3887  ac_cv_prog_CPP=$CPP
3888fi
3889{ echo "$as_me:$LINENO: result: $CPP" >&5
3890echo "${ECHO_T}$CPP" >&6; }
3891ac_preproc_ok=false
3892for ac_c_preproc_warn_flag in '' yes
3893do
3894  # Use a header file that comes with gcc, so configuring glibc
3895  # with a fresh cross-compiler works.
3896  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897  # <limits.h> exists even on freestanding compilers.
3898  # On the NeXT, cc -E runs the code through the compiler's parser,
3899  # not just through cpp. "Syntax error" is here to catch this case.
3900  cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h.  */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h.  */
3906#ifdef __STDC__
3907# include <limits.h>
3908#else
3909# include <assert.h>
3910#endif
3911		     Syntax error
3912_ACEOF
3913if { (ac_try="$ac_cpp conftest.$ac_ext"
3914case "(($ac_try" in
3915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916  *) ac_try_echo=$ac_try;;
3917esac
3918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920  ac_status=$?
3921  grep -v '^ *+' conftest.er1 >conftest.err
3922  rm -f conftest.er1
3923  cat conftest.err >&5
3924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925  (exit $ac_status); } >/dev/null && {
3926	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927	 test ! -s conftest.err
3928       }; then
3929  :
3930else
3931  echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934  # Broken: fails on valid input.
3935continue
3936fi
3937
3938rm -f conftest.err conftest.$ac_ext
3939
3940  # OK, works on sane cases.  Now check whether nonexistent headers
3941  # can be detected and how.
3942  cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h.  */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h.  */
3948#include <ac_nonexistent.h>
3949_ACEOF
3950if { (ac_try="$ac_cpp conftest.$ac_ext"
3951case "(($ac_try" in
3952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953  *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3957  ac_status=$?
3958  grep -v '^ *+' conftest.er1 >conftest.err
3959  rm -f conftest.er1
3960  cat conftest.err >&5
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); } >/dev/null && {
3963	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3964	 test ! -s conftest.err
3965       }; then
3966  # Broken: success on invalid input.
3967continue
3968else
3969  echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972  # Passes both tests.
3973ac_preproc_ok=:
3974break
3975fi
3976
3977rm -f conftest.err conftest.$ac_ext
3978
3979done
3980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981rm -f conftest.err conftest.$ac_ext
3982if $ac_preproc_ok; then
3983  :
3984else
3985  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3986See \`config.log' for more details." >&5
3987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3988See \`config.log' for more details." >&2;}
3989   { (exit 1); exit 1; }; }
3990fi
3991
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998
3999{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4000echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4001if test "${ac_cv_path_GREP+set}" = set; then
4002  echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004  # Extract the first word of "grep ggrep" to use in msg output
4005if test -z "$GREP"; then
4006set dummy grep ggrep; ac_prog_name=$2
4007if test "${ac_cv_path_GREP+set}" = set; then
4008  echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010  ac_path_GREP_found=false
4011# Loop through the user's path and test for each of PROGNAME-LIST
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014do
4015  IFS=$as_save_IFS
4016  test -z "$as_dir" && as_dir=.
4017  for ac_prog in grep ggrep; do
4018  for ac_exec_ext in '' $ac_executable_extensions; do
4019    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4020    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4021    # Check for GNU ac_path_GREP and select it if it is found.
4022  # Check for GNU $ac_path_GREP
4023case `"$ac_path_GREP" --version 2>&1` in
4024*GNU*)
4025  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4026*)
4027  ac_count=0
4028  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4029  while :
4030  do
4031    cat "conftest.in" "conftest.in" >"conftest.tmp"
4032    mv "conftest.tmp" "conftest.in"
4033    cp "conftest.in" "conftest.nl"
4034    echo 'GREP' >> "conftest.nl"
4035    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037    ac_count=`expr $ac_count + 1`
4038    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4039      # Best one so far, save it but keep looking for a better one
4040      ac_cv_path_GREP="$ac_path_GREP"
4041      ac_path_GREP_max=$ac_count
4042    fi
4043    # 10*(2^10) chars as input seems more than enough
4044    test $ac_count -gt 10 && break
4045  done
4046  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047esac
4048
4049
4050    $ac_path_GREP_found && break 3
4051  done
4052done
4053
4054done
4055IFS=$as_save_IFS
4056
4057
4058fi
4059
4060GREP="$ac_cv_path_GREP"
4061if test -z "$GREP"; then
4062  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064   { (exit 1); exit 1; }; }
4065fi
4066
4067else
4068  ac_cv_path_GREP=$GREP
4069fi
4070
4071
4072fi
4073{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4074echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4075 GREP="$ac_cv_path_GREP"
4076
4077
4078{ echo "$as_me:$LINENO: checking for egrep" >&5
4079echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4080if test "${ac_cv_path_EGREP+set}" = set; then
4081  echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4084   then ac_cv_path_EGREP="$GREP -E"
4085   else
4086     # Extract the first word of "egrep" to use in msg output
4087if test -z "$EGREP"; then
4088set dummy egrep; ac_prog_name=$2
4089if test "${ac_cv_path_EGREP+set}" = set; then
4090  echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092  ac_path_EGREP_found=false
4093# Loop through the user's path and test for each of PROGNAME-LIST
4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4096do
4097  IFS=$as_save_IFS
4098  test -z "$as_dir" && as_dir=.
4099  for ac_prog in egrep; do
4100  for ac_exec_ext in '' $ac_executable_extensions; do
4101    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4102    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4103    # Check for GNU ac_path_EGREP and select it if it is found.
4104  # Check for GNU $ac_path_EGREP
4105case `"$ac_path_EGREP" --version 2>&1` in
4106*GNU*)
4107  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4108*)
4109  ac_count=0
4110  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4111  while :
4112  do
4113    cat "conftest.in" "conftest.in" >"conftest.tmp"
4114    mv "conftest.tmp" "conftest.in"
4115    cp "conftest.in" "conftest.nl"
4116    echo 'EGREP' >> "conftest.nl"
4117    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4118    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4119    ac_count=`expr $ac_count + 1`
4120    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4121      # Best one so far, save it but keep looking for a better one
4122      ac_cv_path_EGREP="$ac_path_EGREP"
4123      ac_path_EGREP_max=$ac_count
4124    fi
4125    # 10*(2^10) chars as input seems more than enough
4126    test $ac_count -gt 10 && break
4127  done
4128  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4129esac
4130
4131
4132    $ac_path_EGREP_found && break 3
4133  done
4134done
4135
4136done
4137IFS=$as_save_IFS
4138
4139
4140fi
4141
4142EGREP="$ac_cv_path_EGREP"
4143if test -z "$EGREP"; then
4144  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4145echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4146   { (exit 1); exit 1; }; }
4147fi
4148
4149else
4150  ac_cv_path_EGREP=$EGREP
4151fi
4152
4153
4154   fi
4155fi
4156{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4157echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4158 EGREP="$ac_cv_path_EGREP"
4159
4160
4161
4162    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
4163echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
4164if test "${ac_cv_gnu_library_2+set}" = set; then
4165  echo $ECHO_N "(cached) $ECHO_C" >&6
4166else
4167  cat >conftest.$ac_ext <<_ACEOF
4168/* confdefs.h.  */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
4172/* end confdefs.h.  */
4173
4174#include <features.h>
4175#ifdef __GNU_LIBRARY__
4176 #if (__GLIBC__ >= 2)
4177  Lucky GNU user
4178 #endif
4179#endif
4180
4181_ACEOF
4182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4184  ac_cv_gnu_library_2=yes
4185else
4186  ac_cv_gnu_library_2=no
4187fi
4188rm -f conftest*
4189
4190
4191
4192fi
4193{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
4194echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
4195
4196    GLIBC2="$ac_cv_gnu_library_2"
4197
4198
4199if test -n "$ac_tool_prefix"; then
4200  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4201set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204if test "${ac_cv_prog_RANLIB+set}" = set; then
4205  echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207  if test -n "$RANLIB"; then
4208  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213  IFS=$as_save_IFS
4214  test -z "$as_dir" && as_dir=.
4215  for ac_exec_ext in '' $ac_executable_extensions; do
4216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4218    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219    break 2
4220  fi
4221done
4222done
4223IFS=$as_save_IFS
4224
4225fi
4226fi
4227RANLIB=$ac_cv_prog_RANLIB
4228if test -n "$RANLIB"; then
4229  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4230echo "${ECHO_T}$RANLIB" >&6; }
4231else
4232  { echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6; }
4234fi
4235
4236
4237fi
4238if test -z "$ac_cv_prog_RANLIB"; then
4239  ac_ct_RANLIB=$RANLIB
4240  # Extract the first word of "ranlib", so it can be a program name with args.
4241set dummy ranlib; ac_word=$2
4242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247  if test -n "$ac_ct_RANLIB"; then
4248  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253  IFS=$as_save_IFS
4254  test -z "$as_dir" && as_dir=.
4255  for ac_exec_ext in '' $ac_executable_extensions; do
4256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257    ac_cv_prog_ac_ct_RANLIB="ranlib"
4258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259    break 2
4260  fi
4261done
4262done
4263IFS=$as_save_IFS
4264
4265fi
4266fi
4267ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4268if test -n "$ac_ct_RANLIB"; then
4269  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4270echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4271else
4272  { echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6; }
4274fi
4275
4276  if test "x$ac_ct_RANLIB" = x; then
4277    RANLIB=":"
4278  else
4279    case $cross_compiling:$ac_tool_warned in
4280yes:)
4281{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4282whose name does not start with the host triplet.  If you think this
4283configuration is useful to you, please write to autoconf@gnu.org." >&5
4284echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4285whose name does not start with the host triplet.  If you think this
4286configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4287ac_tool_warned=yes ;;
4288esac
4289    RANLIB=$ac_ct_RANLIB
4290  fi
4291else
4292  RANLIB="$ac_cv_prog_RANLIB"
4293fi
4294
4295
4296
4297  CFLAG_VISIBILITY=
4298  HAVE_VISIBILITY=0
4299  if test -n "$GCC"; then
4300    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
4301echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
4302    if test "${gl_cv_cc_visibility+set}" = set; then
4303  echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305
4306      gl_save_CFLAGS="$CFLAGS"
4307      CFLAGS="$CFLAGS -fvisibility=hidden"
4308      cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h.  */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h.  */
4314extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4315         extern __attribute__((__visibility__("default"))) int exportedvar;
4316         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4317         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4318int
4319main ()
4320{
4321
4322  ;
4323  return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext
4327if { (ac_try="$ac_compile"
4328case "(($ac_try" in
4329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330  *) ac_try_echo=$ac_try;;
4331esac
4332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333  (eval "$ac_compile") 2>conftest.er1
4334  ac_status=$?
4335  grep -v '^ *+' conftest.er1 >conftest.err
4336  rm -f conftest.er1
4337  cat conftest.err >&5
4338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339  (exit $ac_status); } && {
4340	 test -z "$ac_c_werror_flag" ||
4341	 test ! -s conftest.err
4342       } && test -s conftest.$ac_objext; then
4343  gl_cv_cc_visibility=yes
4344else
4345  echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348	gl_cv_cc_visibility=no
4349fi
4350
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352      CFLAGS="$gl_save_CFLAGS"
4353fi
4354
4355    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
4356echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
4357    if test $gl_cv_cc_visibility = yes; then
4358      CFLAG_VISIBILITY="-fvisibility=hidden"
4359      HAVE_VISIBILITY=1
4360    fi
4361  fi
4362
4363
4364
4365cat >>confdefs.h <<_ACEOF
4366#define HAVE_VISIBILITY $HAVE_VISIBILITY
4367_ACEOF
4368
4369
4370{ echo "$as_me:$LINENO: checking for inline" >&5
4371echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4372if test "${ac_cv_c_inline+set}" = set; then
4373  echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375  ac_cv_c_inline=no
4376for ac_kw in inline __inline__ __inline; do
4377  cat >conftest.$ac_ext <<_ACEOF
4378/* confdefs.h.  */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h.  */
4383#ifndef __cplusplus
4384typedef int foo_t;
4385static $ac_kw foo_t static_foo () {return 0; }
4386$ac_kw foo_t foo () {return 0; }
4387#endif
4388
4389_ACEOF
4390rm -f conftest.$ac_objext
4391if { (ac_try="$ac_compile"
4392case "(($ac_try" in
4393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394  *) ac_try_echo=$ac_try;;
4395esac
4396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397  (eval "$ac_compile") 2>conftest.er1
4398  ac_status=$?
4399  grep -v '^ *+' conftest.er1 >conftest.err
4400  rm -f conftest.er1
4401  cat conftest.err >&5
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); } && {
4404	 test -z "$ac_c_werror_flag" ||
4405	 test ! -s conftest.err
4406       } && test -s conftest.$ac_objext; then
4407  ac_cv_c_inline=$ac_kw
4408else
4409  echo "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412
4413fi
4414
4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416  test "$ac_cv_c_inline" != no && break
4417done
4418
4419fi
4420{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4421echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4422
4423
4424case $ac_cv_c_inline in
4425  inline | yes) ;;
4426  *)
4427    case $ac_cv_c_inline in
4428      no) ac_val=;;
4429      *) ac_val=$ac_cv_c_inline;;
4430    esac
4431    cat >>confdefs.h <<_ACEOF
4432#ifndef __cplusplus
4433#define inline $ac_val
4434#endif
4435_ACEOF
4436    ;;
4437esac
4438
4439{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4440echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4441if test "${ac_cv_header_stdc+set}" = set; then
4442  echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444  cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h.  */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h.  */
4450#include <stdlib.h>
4451#include <stdarg.h>
4452#include <string.h>
4453#include <float.h>
4454
4455int
4456main ()
4457{
4458
4459  ;
4460  return 0;
4461}
4462_ACEOF
4463rm -f conftest.$ac_objext
4464if { (ac_try="$ac_compile"
4465case "(($ac_try" in
4466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467  *) ac_try_echo=$ac_try;;
4468esac
4469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470  (eval "$ac_compile") 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } && {
4477	 test -z "$ac_c_werror_flag" ||
4478	 test ! -s conftest.err
4479       } && test -s conftest.$ac_objext; then
4480  ac_cv_header_stdc=yes
4481else
4482  echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
4485	ac_cv_header_stdc=no
4486fi
4487
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489
4490if test $ac_cv_header_stdc = yes; then
4491  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492  cat >conftest.$ac_ext <<_ACEOF
4493/* confdefs.h.  */
4494_ACEOF
4495cat confdefs.h >>conftest.$ac_ext
4496cat >>conftest.$ac_ext <<_ACEOF
4497/* end confdefs.h.  */
4498#include <string.h>
4499
4500_ACEOF
4501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502  $EGREP "memchr" >/dev/null 2>&1; then
4503  :
4504else
4505  ac_cv_header_stdc=no
4506fi
4507rm -f conftest*
4508
4509fi
4510
4511if test $ac_cv_header_stdc = yes; then
4512  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4513  cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h.  */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h.  */
4519#include <stdlib.h>
4520
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523  $EGREP "free" >/dev/null 2>&1; then
4524  :
4525else
4526  ac_cv_header_stdc=no
4527fi
4528rm -f conftest*
4529
4530fi
4531
4532if test $ac_cv_header_stdc = yes; then
4533  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4534  if test "$cross_compiling" = yes; then
4535  :
4536else
4537  cat >conftest.$ac_ext <<_ACEOF
4538/* confdefs.h.  */
4539_ACEOF
4540cat confdefs.h >>conftest.$ac_ext
4541cat >>conftest.$ac_ext <<_ACEOF
4542/* end confdefs.h.  */
4543#include <ctype.h>
4544#include <stdlib.h>
4545#if ((' ' & 0x0FF) == 0x020)
4546# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4547# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548#else
4549# define ISLOWER(c) \
4550		   (('a' <= (c) && (c) <= 'i') \
4551		     || ('j' <= (c) && (c) <= 'r') \
4552		     || ('s' <= (c) && (c) <= 'z'))
4553# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4554#endif
4555
4556#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557int
4558main ()
4559{
4560  int i;
4561  for (i = 0; i < 256; i++)
4562    if (XOR (islower (i), ISLOWER (i))
4563	|| toupper (i) != TOUPPER (i))
4564      return 2;
4565  return 0;
4566}
4567_ACEOF
4568rm -f conftest$ac_exeext
4569if { (ac_try="$ac_link"
4570case "(($ac_try" in
4571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572  *) ac_try_echo=$ac_try;;
4573esac
4574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4575  (eval "$ac_link") 2>&5
4576  ac_status=$?
4577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4579  { (case "(($ac_try" in
4580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581  *) ac_try_echo=$ac_try;;
4582esac
4583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584  (eval "$ac_try") 2>&5
4585  ac_status=$?
4586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587  (exit $ac_status); }; }; then
4588  :
4589else
4590  echo "$as_me: program exited with status $ac_status" >&5
4591echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594( exit $ac_status )
4595ac_cv_header_stdc=no
4596fi
4597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4598fi
4599
4600
4601fi
4602fi
4603{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4604echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4605if test $ac_cv_header_stdc = yes; then
4606
4607cat >>confdefs.h <<\_ACEOF
4608#define STDC_HEADERS 1
4609_ACEOF
4610
4611fi
4612
4613# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4624		  inttypes.h stdint.h unistd.h
4625do
4626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4627{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4630  echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632  cat >conftest.$ac_ext <<_ACEOF
4633/* confdefs.h.  */
4634_ACEOF
4635cat confdefs.h >>conftest.$ac_ext
4636cat >>conftest.$ac_ext <<_ACEOF
4637/* end confdefs.h.  */
4638$ac_includes_default
4639
4640#include <$ac_header>
4641_ACEOF
4642rm -f conftest.$ac_objext
4643if { (ac_try="$ac_compile"
4644case "(($ac_try" in
4645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646  *) ac_try_echo=$ac_try;;
4647esac
4648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649  (eval "$ac_compile") 2>conftest.er1
4650  ac_status=$?
4651  grep -v '^ *+' conftest.er1 >conftest.err
4652  rm -f conftest.er1
4653  cat conftest.err >&5
4654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655  (exit $ac_status); } && {
4656	 test -z "$ac_c_werror_flag" ||
4657	 test ! -s conftest.err
4658       } && test -s conftest.$ac_objext; then
4659  eval "$as_ac_Header=yes"
4660else
4661  echo "$as_me: failed program was:" >&5
4662sed 's/^/| /' conftest.$ac_ext >&5
4663
4664	eval "$as_ac_Header=no"
4665fi
4666
4667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668fi
4669ac_res=`eval echo '${'$as_ac_Header'}'`
4670	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4671echo "${ECHO_T}$ac_res" >&6; }
4672if test `eval echo '${'$as_ac_Header'}'` = yes; then
4673  cat >>confdefs.h <<_ACEOF
4674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4675_ACEOF
4676
4677fi
4678
4679done
4680
4681
4682{ echo "$as_me:$LINENO: checking for size_t" >&5
4683echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4684if test "${ac_cv_type_size_t+set}" = set; then
4685  echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687  cat >conftest.$ac_ext <<_ACEOF
4688/* confdefs.h.  */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h.  */
4693$ac_includes_default
4694typedef size_t ac__type_new_;
4695int
4696main ()
4697{
4698if ((ac__type_new_ *) 0)
4699  return 0;
4700if (sizeof (ac__type_new_))
4701  return 0;
4702  ;
4703  return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (ac_try="$ac_compile"
4708case "(($ac_try" in
4709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710  *) ac_try_echo=$ac_try;;
4711esac
4712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713  (eval "$ac_compile") 2>conftest.er1
4714  ac_status=$?
4715  grep -v '^ *+' conftest.er1 >conftest.err
4716  rm -f conftest.er1
4717  cat conftest.err >&5
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); } && {
4720	 test -z "$ac_c_werror_flag" ||
4721	 test ! -s conftest.err
4722       } && test -s conftest.$ac_objext; then
4723  ac_cv_type_size_t=yes
4724else
4725  echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728	ac_cv_type_size_t=no
4729fi
4730
4731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732fi
4733{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4734echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4735if test $ac_cv_type_size_t = yes; then
4736  :
4737else
4738
4739cat >>confdefs.h <<_ACEOF
4740#define size_t unsigned int
4741_ACEOF
4742
4743fi
4744
4745
4746  { echo "$as_me:$LINENO: checking for stdint.h" >&5
4747echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
4748if test "${gl_cv_header_stdint_h+set}" = set; then
4749  echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751  cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h.  */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h.  */
4757#include <sys/types.h>
4758#include <stdint.h>
4759int
4760main ()
4761{
4762uintmax_t i = (uintmax_t) -1;
4763  ;
4764  return 0;
4765}
4766_ACEOF
4767rm -f conftest.$ac_objext
4768if { (ac_try="$ac_compile"
4769case "(($ac_try" in
4770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771  *) ac_try_echo=$ac_try;;
4772esac
4773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774  (eval "$ac_compile") 2>conftest.er1
4775  ac_status=$?
4776  grep -v '^ *+' conftest.er1 >conftest.err
4777  rm -f conftest.er1
4778  cat conftest.err >&5
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); } && {
4781	 test -z "$ac_c_werror_flag" ||
4782	 test ! -s conftest.err
4783       } && test -s conftest.$ac_objext; then
4784  gl_cv_header_stdint_h=yes
4785else
4786  echo "$as_me: failed program was:" >&5
4787sed 's/^/| /' conftest.$ac_ext >&5
4788
4789	gl_cv_header_stdint_h=no
4790fi
4791
4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793fi
4794{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
4795echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
4796  if test $gl_cv_header_stdint_h = yes; then
4797
4798cat >>confdefs.h <<_ACEOF
4799#define HAVE_STDINT_H_WITH_UINTMAX 1
4800_ACEOF
4801
4802  fi
4803
4804# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4805# for constant arguments.  Useless!
4806{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
4807echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4808if test "${ac_cv_working_alloca_h+set}" = set; then
4809  echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811  cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h.  */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h.  */
4817#include <alloca.h>
4818int
4819main ()
4820{
4821char *p = (char *) alloca (2 * sizeof (int));
4822			  if (p) return 0;
4823  ;
4824  return 0;
4825}
4826_ACEOF
4827rm -f conftest.$ac_objext conftest$ac_exeext
4828if { (ac_try="$ac_link"
4829case "(($ac_try" in
4830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831  *) ac_try_echo=$ac_try;;
4832esac
4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834  (eval "$ac_link") 2>conftest.er1
4835  ac_status=$?
4836  grep -v '^ *+' conftest.er1 >conftest.err
4837  rm -f conftest.er1
4838  cat conftest.err >&5
4839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840  (exit $ac_status); } && {
4841	 test -z "$ac_c_werror_flag" ||
4842	 test ! -s conftest.err
4843       } && test -s conftest$ac_exeext &&
4844       $as_test_x conftest$ac_exeext; then
4845  ac_cv_working_alloca_h=yes
4846else
4847  echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850	ac_cv_working_alloca_h=no
4851fi
4852
4853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4854      conftest$ac_exeext conftest.$ac_ext
4855fi
4856{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4857echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4858if test $ac_cv_working_alloca_h = yes; then
4859
4860cat >>confdefs.h <<\_ACEOF
4861#define HAVE_ALLOCA_H 1
4862_ACEOF
4863
4864fi
4865
4866{ echo "$as_me:$LINENO: checking for alloca" >&5
4867echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4868if test "${ac_cv_func_alloca_works+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h.  */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h.  */
4877#ifdef __GNUC__
4878# define alloca __builtin_alloca
4879#else
4880# ifdef _MSC_VER
4881#  include <malloc.h>
4882#  define alloca _alloca
4883# else
4884#  ifdef HAVE_ALLOCA_H
4885#   include <alloca.h>
4886#  else
4887#   ifdef _AIX
4888 #pragma alloca
4889#   else
4890#    ifndef alloca /* predefined by HP cc +Olibcalls */
4891char *alloca ();
4892#    endif
4893#   endif
4894#  endif
4895# endif
4896#endif
4897
4898int
4899main ()
4900{
4901char *p = (char *) alloca (1);
4902				    if (p) return 0;
4903  ;
4904  return 0;
4905}
4906_ACEOF
4907rm -f conftest.$ac_objext conftest$ac_exeext
4908if { (ac_try="$ac_link"
4909case "(($ac_try" in
4910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911  *) ac_try_echo=$ac_try;;
4912esac
4913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914  (eval "$ac_link") 2>conftest.er1
4915  ac_status=$?
4916  grep -v '^ *+' conftest.er1 >conftest.err
4917  rm -f conftest.er1
4918  cat conftest.err >&5
4919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920  (exit $ac_status); } && {
4921	 test -z "$ac_c_werror_flag" ||
4922	 test ! -s conftest.err
4923       } && test -s conftest$ac_exeext &&
4924       $as_test_x conftest$ac_exeext; then
4925  ac_cv_func_alloca_works=yes
4926else
4927  echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930	ac_cv_func_alloca_works=no
4931fi
4932
4933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4934      conftest$ac_exeext conftest.$ac_ext
4935fi
4936{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4937echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4938
4939if test $ac_cv_func_alloca_works = yes; then
4940
4941cat >>confdefs.h <<\_ACEOF
4942#define HAVE_ALLOCA 1
4943_ACEOF
4944
4945else
4946  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4947# that cause trouble.  Some versions do not even contain alloca or
4948# contain a buggy version.  If you still want to use their alloca,
4949# use ar to extract alloca.o from them instead of compiling alloca.c.
4950
4951ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4952
4953cat >>confdefs.h <<\_ACEOF
4954#define C_ALLOCA 1
4955_ACEOF
4956
4957
4958{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4959echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
4960if test "${ac_cv_os_cray+set}" = set; then
4961  echo $ECHO_N "(cached) $ECHO_C" >&6
4962else
4963  cat >conftest.$ac_ext <<_ACEOF
4964/* confdefs.h.  */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h.  */
4969#if defined CRAY && ! defined CRAY2
4970webecray
4971#else
4972wenotbecray
4973#endif
4974
4975_ACEOF
4976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4977  $EGREP "webecray" >/dev/null 2>&1; then
4978  ac_cv_os_cray=yes
4979else
4980  ac_cv_os_cray=no
4981fi
4982rm -f conftest*
4983
4984fi
4985{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4986echo "${ECHO_T}$ac_cv_os_cray" >&6; }
4987if test $ac_cv_os_cray = yes; then
4988  for ac_func in _getb67 GETB67 getb67; do
4989    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4993  echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995  cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h.  */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h.  */
5001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5002   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5003#define $ac_func innocuous_$ac_func
5004
5005/* System header to define __stub macros and hopefully few prototypes,
5006    which can conflict with char $ac_func (); below.
5007    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5008    <limits.h> exists even on freestanding compilers.  */
5009
5010#ifdef __STDC__
5011# include <limits.h>
5012#else
5013# include <assert.h>
5014#endif
5015
5016#undef $ac_func
5017
5018/* Override any GCC internal prototype to avoid an error.
5019   Use char because int might match the return type of a GCC
5020   builtin and then its argument prototype would still apply.  */
5021#ifdef __cplusplus
5022extern "C"
5023#endif
5024char $ac_func ();
5025/* The GNU C library defines this for functions which it implements
5026    to always fail with ENOSYS.  Some functions are actually named
5027    something starting with __ and the normal name is an alias.  */
5028#if defined __stub_$ac_func || defined __stub___$ac_func
5029choke me
5030#endif
5031
5032int
5033main ()
5034{
5035return $ac_func ();
5036  ;
5037  return 0;
5038}
5039_ACEOF
5040rm -f conftest.$ac_objext conftest$ac_exeext
5041if { (ac_try="$ac_link"
5042case "(($ac_try" in
5043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044  *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047  (eval "$ac_link") 2>conftest.er1
5048  ac_status=$?
5049  grep -v '^ *+' conftest.er1 >conftest.err
5050  rm -f conftest.er1
5051  cat conftest.err >&5
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); } && {
5054	 test -z "$ac_c_werror_flag" ||
5055	 test ! -s conftest.err
5056       } && test -s conftest$ac_exeext &&
5057       $as_test_x conftest$ac_exeext; then
5058  eval "$as_ac_var=yes"
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063	eval "$as_ac_var=no"
5064fi
5065
5066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5067      conftest$ac_exeext conftest.$ac_ext
5068fi
5069ac_res=`eval echo '${'$as_ac_var'}'`
5070	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5071echo "${ECHO_T}$ac_res" >&6; }
5072if test `eval echo '${'$as_ac_var'}'` = yes; then
5073
5074cat >>confdefs.h <<_ACEOF
5075#define CRAY_STACKSEG_END $ac_func
5076_ACEOF
5077
5078    break
5079fi
5080
5081  done
5082fi
5083
5084{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5085echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5086if test "${ac_cv_c_stack_direction+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  if test "$cross_compiling" = yes; then
5090  ac_cv_c_stack_direction=0
5091else
5092  cat >conftest.$ac_ext <<_ACEOF
5093/* confdefs.h.  */
5094_ACEOF
5095cat confdefs.h >>conftest.$ac_ext
5096cat >>conftest.$ac_ext <<_ACEOF
5097/* end confdefs.h.  */
5098$ac_includes_default
5099int
5100find_stack_direction ()
5101{
5102  static char *addr = 0;
5103  auto char dummy;
5104  if (addr == 0)
5105    {
5106      addr = &dummy;
5107      return find_stack_direction ();
5108    }
5109  else
5110    return (&dummy > addr) ? 1 : -1;
5111}
5112
5113int
5114main ()
5115{
5116  return find_stack_direction () < 0;
5117}
5118_ACEOF
5119rm -f conftest$ac_exeext
5120if { (ac_try="$ac_link"
5121case "(($ac_try" in
5122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123  *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126  (eval "$ac_link") 2>&5
5127  ac_status=$?
5128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5130  { (case "(($ac_try" in
5131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132  *) ac_try_echo=$ac_try;;
5133esac
5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135  (eval "$ac_try") 2>&5
5136  ac_status=$?
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); }; }; then
5139  ac_cv_c_stack_direction=1
5140else
5141  echo "$as_me: program exited with status $ac_status" >&5
5142echo "$as_me: failed program was:" >&5
5143sed 's/^/| /' conftest.$ac_ext >&5
5144
5145( exit $ac_status )
5146ac_cv_c_stack_direction=-1
5147fi
5148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5149fi
5150
5151
5152fi
5153{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5154echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5155
5156cat >>confdefs.h <<_ACEOF
5157#define STACK_DIRECTION $ac_cv_c_stack_direction
5158_ACEOF
5159
5160
5161fi
5162
5163
5164
5165for ac_header in stdlib.h unistd.h
5166do
5167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5169  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5172  echo $ECHO_N "(cached) $ECHO_C" >&6
5173fi
5174ac_res=`eval echo '${'$as_ac_Header'}'`
5175	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5176echo "${ECHO_T}$ac_res" >&6; }
5177else
5178  # Is the header compilable?
5179{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5181cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h.  */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h.  */
5187$ac_includes_default
5188#include <$ac_header>
5189_ACEOF
5190rm -f conftest.$ac_objext
5191if { (ac_try="$ac_compile"
5192case "(($ac_try" in
5193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194  *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197  (eval "$ac_compile") 2>conftest.er1
5198  ac_status=$?
5199  grep -v '^ *+' conftest.er1 >conftest.err
5200  rm -f conftest.er1
5201  cat conftest.err >&5
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); } && {
5204	 test -z "$ac_c_werror_flag" ||
5205	 test ! -s conftest.err
5206       } && test -s conftest.$ac_objext; then
5207  ac_header_compiler=yes
5208else
5209  echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212	ac_header_compiler=no
5213fi
5214
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5217echo "${ECHO_T}$ac_header_compiler" >&6; }
5218
5219# Is the header present?
5220{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5221echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5222cat >conftest.$ac_ext <<_ACEOF
5223/* confdefs.h.  */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h.  */
5228#include <$ac_header>
5229_ACEOF
5230if { (ac_try="$ac_cpp conftest.$ac_ext"
5231case "(($ac_try" in
5232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233  *) ac_try_echo=$ac_try;;
5234esac
5235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5237  ac_status=$?
5238  grep -v '^ *+' conftest.er1 >conftest.err
5239  rm -f conftest.er1
5240  cat conftest.err >&5
5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); } >/dev/null && {
5243	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5244	 test ! -s conftest.err
5245       }; then
5246  ac_header_preproc=yes
5247else
5248  echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251  ac_header_preproc=no
5252fi
5253
5254rm -f conftest.err conftest.$ac_ext
5255{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5256echo "${ECHO_T}$ac_header_preproc" >&6; }
5257
5258# So?  What about this header?
5259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5260  yes:no: )
5261    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5263    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5264echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5265    ac_header_preproc=yes
5266    ;;
5267  no:yes:* )
5268    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5270    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5271echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5272    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5273echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5274    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5275echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5276    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5278    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5279echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5280
5281    ;;
5282esac
5283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5286  echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288  eval "$as_ac_Header=\$ac_header_preproc"
5289fi
5290ac_res=`eval echo '${'$as_ac_Header'}'`
5291	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5292echo "${ECHO_T}$ac_res" >&6; }
5293
5294fi
5295if test `eval echo '${'$as_ac_Header'}'` = yes; then
5296  cat >>confdefs.h <<_ACEOF
5297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5298_ACEOF
5299
5300fi
5301
5302done
5303
5304
5305for ac_func in getpagesize
5306do
5307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5308{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5310if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5311  echo $ECHO_N "(cached) $ECHO_C" >&6
5312else
5313  cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h.  */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h.  */
5319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5320   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5321#define $ac_func innocuous_$ac_func
5322
5323/* System header to define __stub macros and hopefully few prototypes,
5324    which can conflict with char $ac_func (); below.
5325    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326    <limits.h> exists even on freestanding compilers.  */
5327
5328#ifdef __STDC__
5329# include <limits.h>
5330#else
5331# include <assert.h>
5332#endif
5333
5334#undef $ac_func
5335
5336/* Override any GCC internal prototype to avoid an error.
5337   Use char because int might match the return type of a GCC
5338   builtin and then its argument prototype would still apply.  */
5339#ifdef __cplusplus
5340extern "C"
5341#endif
5342char $ac_func ();
5343/* The GNU C library defines this for functions which it implements
5344    to always fail with ENOSYS.  Some functions are actually named
5345    something starting with __ and the normal name is an alias.  */
5346#if defined __stub_$ac_func || defined __stub___$ac_func
5347choke me
5348#endif
5349
5350int
5351main ()
5352{
5353return $ac_func ();
5354  ;
5355  return 0;
5356}
5357_ACEOF
5358rm -f conftest.$ac_objext conftest$ac_exeext
5359if { (ac_try="$ac_link"
5360case "(($ac_try" in
5361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362  *) ac_try_echo=$ac_try;;
5363esac
5364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365  (eval "$ac_link") 2>conftest.er1
5366  ac_status=$?
5367  grep -v '^ *+' conftest.er1 >conftest.err
5368  rm -f conftest.er1
5369  cat conftest.err >&5
5370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371  (exit $ac_status); } && {
5372	 test -z "$ac_c_werror_flag" ||
5373	 test ! -s conftest.err
5374       } && test -s conftest$ac_exeext &&
5375       $as_test_x conftest$ac_exeext; then
5376  eval "$as_ac_var=yes"
5377else
5378  echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381	eval "$as_ac_var=no"
5382fi
5383
5384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5385      conftest$ac_exeext conftest.$ac_ext
5386fi
5387ac_res=`eval echo '${'$as_ac_var'}'`
5388	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5389echo "${ECHO_T}$ac_res" >&6; }
5390if test `eval echo '${'$as_ac_var'}'` = yes; then
5391  cat >>confdefs.h <<_ACEOF
5392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5393_ACEOF
5394
5395fi
5396done
5397
5398{ echo "$as_me:$LINENO: checking for working mmap" >&5
5399echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
5400if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5401  echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403  if test "$cross_compiling" = yes; then
5404  ac_cv_func_mmap_fixed_mapped=no
5405else
5406  cat >conftest.$ac_ext <<_ACEOF
5407/* confdefs.h.  */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h.  */
5412$ac_includes_default
5413/* malloc might have been renamed as rpl_malloc. */
5414#undef malloc
5415
5416/* Thanks to Mike Haertel and Jim Avera for this test.
5417   Here is a matrix of mmap possibilities:
5418	mmap private not fixed
5419	mmap private fixed at somewhere currently unmapped
5420	mmap private fixed at somewhere already mapped
5421	mmap shared not fixed
5422	mmap shared fixed at somewhere currently unmapped
5423	mmap shared fixed at somewhere already mapped
5424   For private mappings, we should verify that changes cannot be read()
5425   back from the file, nor mmap's back from the file at a different
5426   address.  (There have been systems where private was not correctly
5427   implemented like the infamous i386 svr4.0, and systems where the
5428   VM page cache was not coherent with the file system buffer cache
5429   like early versions of FreeBSD and possibly contemporary NetBSD.)
5430   For shared mappings, we should conversely verify that changes get
5431   propagated back to all the places they're supposed to be.
5432
5433   Grep wants private fixed already mapped.
5434   The main things grep needs to know about mmap are:
5435   * does it exist and is it safe to write into the mmap'd area
5436   * how to use it (BSD variants)  */
5437
5438#include <fcntl.h>
5439#include <sys/mman.h>
5440
5441#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5442char *malloc ();
5443#endif
5444
5445/* This mess was copied from the GNU getpagesize.h.  */
5446#ifndef HAVE_GETPAGESIZE
5447/* Assume that all systems that can run configure have sys/param.h.  */
5448# ifndef HAVE_SYS_PARAM_H
5449#  define HAVE_SYS_PARAM_H 1
5450# endif
5451
5452# ifdef _SC_PAGESIZE
5453#  define getpagesize() sysconf(_SC_PAGESIZE)
5454# else /* no _SC_PAGESIZE */
5455#  ifdef HAVE_SYS_PARAM_H
5456#   include <sys/param.h>
5457#   ifdef EXEC_PAGESIZE
5458#    define getpagesize() EXEC_PAGESIZE
5459#   else /* no EXEC_PAGESIZE */
5460#    ifdef NBPG
5461#     define getpagesize() NBPG * CLSIZE
5462#     ifndef CLSIZE
5463#      define CLSIZE 1
5464#     endif /* no CLSIZE */
5465#    else /* no NBPG */
5466#     ifdef NBPC
5467#      define getpagesize() NBPC
5468#     else /* no NBPC */
5469#      ifdef PAGESIZE
5470#       define getpagesize() PAGESIZE
5471#      endif /* PAGESIZE */
5472#     endif /* no NBPC */
5473#    endif /* no NBPG */
5474#   endif /* no EXEC_PAGESIZE */
5475#  else /* no HAVE_SYS_PARAM_H */
5476#   define getpagesize() 8192	/* punt totally */
5477#  endif /* no HAVE_SYS_PARAM_H */
5478# endif /* no _SC_PAGESIZE */
5479
5480#endif /* no HAVE_GETPAGESIZE */
5481
5482int
5483main ()
5484{
5485  char *data, *data2, *data3;
5486  int i, pagesize;
5487  int fd;
5488
5489  pagesize = getpagesize ();
5490
5491  /* First, make a file with some known garbage in it. */
5492  data = (char *) malloc (pagesize);
5493  if (!data)
5494    return 1;
5495  for (i = 0; i < pagesize; ++i)
5496    *(data + i) = rand ();
5497  umask (0);
5498  fd = creat ("conftest.mmap", 0600);
5499  if (fd < 0)
5500    return 1;
5501  if (write (fd, data, pagesize) != pagesize)
5502    return 1;
5503  close (fd);
5504
5505  /* Next, try to mmap the file at a fixed address which already has
5506     something else allocated at it.  If we can, also make sure that
5507     we see the same garbage.  */
5508  fd = open ("conftest.mmap", O_RDWR);
5509  if (fd < 0)
5510    return 1;
5511  data2 = (char *) malloc (2 * pagesize);
5512  if (!data2)
5513    return 1;
5514  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5515  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5516		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
5517    return 1;
5518  for (i = 0; i < pagesize; ++i)
5519    if (*(data + i) != *(data2 + i))
5520      return 1;
5521
5522  /* Finally, make sure that changes to the mapped area do not
5523     percolate back to the file as seen by read().  (This is a bug on
5524     some variants of i386 svr4.0.)  */
5525  for (i = 0; i < pagesize; ++i)
5526    *(data2 + i) = *(data2 + i) + 1;
5527  data3 = (char *) malloc (pagesize);
5528  if (!data3)
5529    return 1;
5530  if (read (fd, data3, pagesize) != pagesize)
5531    return 1;
5532  for (i = 0; i < pagesize; ++i)
5533    if (*(data + i) != *(data3 + i))
5534      return 1;
5535  close (fd);
5536  return 0;
5537}
5538_ACEOF
5539rm -f conftest$ac_exeext
5540if { (ac_try="$ac_link"
5541case "(($ac_try" in
5542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543  *) ac_try_echo=$ac_try;;
5544esac
5545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546  (eval "$ac_link") 2>&5
5547  ac_status=$?
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5550  { (case "(($ac_try" in
5551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552  *) ac_try_echo=$ac_try;;
5553esac
5554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555  (eval "$ac_try") 2>&5
5556  ac_status=$?
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); }; }; then
5559  ac_cv_func_mmap_fixed_mapped=yes
5560else
5561  echo "$as_me: program exited with status $ac_status" >&5
5562echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565( exit $ac_status )
5566ac_cv_func_mmap_fixed_mapped=no
5567fi
5568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5569fi
5570
5571
5572fi
5573{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5574echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
5575if test $ac_cv_func_mmap_fixed_mapped = yes; then
5576
5577cat >>confdefs.h <<\_ACEOF
5578#define HAVE_MMAP 1
5579_ACEOF
5580
5581fi
5582rm -f conftest.mmap
5583
5584
5585
5586  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5587echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
5588if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5589  echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591
5592      if test "$cross_compiling" = yes; then
5593
5594          # Guess based on the CPU.
5595          case "$host_cpu" in
5596            alpha* | i3456786 | m68k | s390*)
5597              gt_cv_int_divbyzero_sigfpe="guessing yes";;
5598            *)
5599              gt_cv_int_divbyzero_sigfpe="guessing no";;
5600          esac
5601
5602else
5603  cat >conftest.$ac_ext <<_ACEOF
5604/* confdefs.h.  */
5605_ACEOF
5606cat confdefs.h >>conftest.$ac_ext
5607cat >>conftest.$ac_ext <<_ACEOF
5608/* end confdefs.h.  */
5609
5610#include <stdlib.h>
5611#include <signal.h>
5612
5613static void
5614#ifdef __cplusplus
5615sigfpe_handler (int sig)
5616#else
5617sigfpe_handler (sig) int sig;
5618#endif
5619{
5620  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5621  exit (sig != SIGFPE);
5622}
5623
5624int x = 1;
5625int y = 0;
5626int z;
5627int nan;
5628
5629int main ()
5630{
5631  signal (SIGFPE, sigfpe_handler);
5632/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5633#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5634  signal (SIGTRAP, sigfpe_handler);
5635#endif
5636/* Linux/SPARC yields signal SIGILL.  */
5637#if defined (__sparc__) && defined (__linux__)
5638  signal (SIGILL, sigfpe_handler);
5639#endif
5640
5641  z = x / y;
5642  nan = y / y;
5643  exit (1);
5644}
5645
5646_ACEOF
5647rm -f conftest$ac_exeext
5648if { (ac_try="$ac_link"
5649case "(($ac_try" in
5650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651  *) ac_try_echo=$ac_try;;
5652esac
5653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654  (eval "$ac_link") 2>&5
5655  ac_status=$?
5656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5658  { (case "(($ac_try" in
5659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660  *) ac_try_echo=$ac_try;;
5661esac
5662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663  (eval "$ac_try") 2>&5
5664  ac_status=$?
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); }; }; then
5667  gt_cv_int_divbyzero_sigfpe=yes
5668else
5669  echo "$as_me: program exited with status $ac_status" >&5
5670echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673( exit $ac_status )
5674gt_cv_int_divbyzero_sigfpe=no
5675fi
5676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5677fi
5678
5679
5680
5681fi
5682{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5683echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
5684  case "$gt_cv_int_divbyzero_sigfpe" in
5685    *yes) value=1;;
5686    *) value=0;;
5687  esac
5688
5689cat >>confdefs.h <<_ACEOF
5690#define INTDIV0_RAISES_SIGFPE $value
5691_ACEOF
5692
5693
5694
5695  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5696echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5697if test "${gl_cv_header_inttypes_h+set}" = set; then
5698  echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700  cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h.  */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
5705/* end confdefs.h.  */
5706#include <sys/types.h>
5707#include <inttypes.h>
5708int
5709main ()
5710{
5711uintmax_t i = (uintmax_t) -1;
5712  ;
5713  return 0;
5714}
5715_ACEOF
5716rm -f conftest.$ac_objext
5717if { (ac_try="$ac_compile"
5718case "(($ac_try" in
5719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720  *) ac_try_echo=$ac_try;;
5721esac
5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723  (eval "$ac_compile") 2>conftest.er1
5724  ac_status=$?
5725  grep -v '^ *+' conftest.er1 >conftest.err
5726  rm -f conftest.er1
5727  cat conftest.err >&5
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); } && {
5730	 test -z "$ac_c_werror_flag" ||
5731	 test ! -s conftest.err
5732       } && test -s conftest.$ac_objext; then
5733  gl_cv_header_inttypes_h=yes
5734else
5735  echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738	gl_cv_header_inttypes_h=no
5739fi
5740
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742fi
5743{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
5744echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
5745  if test $gl_cv_header_inttypes_h = yes; then
5746
5747cat >>confdefs.h <<_ACEOF
5748#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5749_ACEOF
5750
5751  fi
5752
5753
5754  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
5755echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
5756if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5757  echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759  cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h.  */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h.  */
5765unsigned long long ull = 1ULL; int i = 63;
5766int
5767main ()
5768{
5769unsigned long long ullmax = (unsigned long long) -1;
5770     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5771  ;
5772  return 0;
5773}
5774_ACEOF
5775rm -f conftest.$ac_objext conftest$ac_exeext
5776if { (ac_try="$ac_link"
5777case "(($ac_try" in
5778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779  *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782  (eval "$ac_link") 2>conftest.er1
5783  ac_status=$?
5784  grep -v '^ *+' conftest.er1 >conftest.err
5785  rm -f conftest.er1
5786  cat conftest.err >&5
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); } && {
5789	 test -z "$ac_c_werror_flag" ||
5790	 test ! -s conftest.err
5791       } && test -s conftest$ac_exeext &&
5792       $as_test_x conftest$ac_exeext; then
5793  ac_cv_type_unsigned_long_long=yes
5794else
5795  echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
5798	ac_cv_type_unsigned_long_long=no
5799fi
5800
5801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5802      conftest$ac_exeext conftest.$ac_ext
5803fi
5804{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5805echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
5806  if test $ac_cv_type_unsigned_long_long = yes; then
5807
5808cat >>confdefs.h <<\_ACEOF
5809#define HAVE_UNSIGNED_LONG_LONG 1
5810_ACEOF
5811
5812  fi
5813
5814
5815
5816
5817  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5818
5819    test $ac_cv_type_unsigned_long_long = yes \
5820      && ac_type='unsigned long long' \
5821      || ac_type='unsigned long'
5822
5823cat >>confdefs.h <<_ACEOF
5824#define uintmax_t $ac_type
5825_ACEOF
5826
5827  else
5828
5829cat >>confdefs.h <<\_ACEOF
5830#define HAVE_UINTMAX_T 1
5831_ACEOF
5832
5833  fi
5834
5835
5836  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5837echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5838if test "${gl_cv_header_inttypes_h+set}" = set; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841
5842    cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h.  */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h.  */
5848#include <sys/types.h>
5849#include <inttypes.h>
5850int
5851main ()
5852{
5853
5854  ;
5855  return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext
5859if { (ac_try="$ac_compile"
5860case "(($ac_try" in
5861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862  *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865  (eval "$ac_compile") 2>conftest.er1
5866  ac_status=$?
5867  grep -v '^ *+' conftest.er1 >conftest.err
5868  rm -f conftest.er1
5869  cat conftest.err >&5
5870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871  (exit $ac_status); } && {
5872	 test -z "$ac_c_werror_flag" ||
5873	 test ! -s conftest.err
5874       } && test -s conftest.$ac_objext; then
5875  gl_cv_header_inttypes_h=yes
5876else
5877  echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880	gl_cv_header_inttypes_h=no
5881fi
5882
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884
5885fi
5886{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
5887echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
5888  if test $gl_cv_header_inttypes_h = yes; then
5889
5890cat >>confdefs.h <<_ACEOF
5891#define HAVE_INTTYPES_H 1
5892_ACEOF
5893
5894  fi
5895
5896
5897
5898  if test $gl_cv_header_inttypes_h = yes; then
5899    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5900echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
5901if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5902  echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
5904
5905        cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h.  */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h.  */
5911#include <inttypes.h>
5912#ifdef PRId32
5913char *p = PRId32;
5914#endif
5915
5916int
5917main ()
5918{
5919
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (ac_try="$ac_compile"
5926case "(($ac_try" in
5927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928  *) ac_try_echo=$ac_try;;
5929esac
5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931  (eval "$ac_compile") 2>conftest.er1
5932  ac_status=$?
5933  grep -v '^ *+' conftest.er1 >conftest.err
5934  rm -f conftest.er1
5935  cat conftest.err >&5
5936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937  (exit $ac_status); } && {
5938	 test -z "$ac_c_werror_flag" ||
5939	 test ! -s conftest.err
5940       } && test -s conftest.$ac_objext; then
5941  gt_cv_inttypes_pri_broken=no
5942else
5943  echo "$as_me: failed program was:" >&5
5944sed 's/^/| /' conftest.$ac_ext >&5
5945
5946	gt_cv_inttypes_pri_broken=yes
5947fi
5948
5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950
5951fi
5952{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5953echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
5954  fi
5955  if test "$gt_cv_inttypes_pri_broken" = yes; then
5956
5957cat >>confdefs.h <<_ACEOF
5958#define PRI_MACROS_BROKEN 1
5959_ACEOF
5960
5961  fi
5962
5963
5964      if test "X$prefix" = "XNONE"; then
5965    acl_final_prefix="$ac_default_prefix"
5966  else
5967    acl_final_prefix="$prefix"
5968  fi
5969  if test "X$exec_prefix" = "XNONE"; then
5970    acl_final_exec_prefix='${prefix}'
5971  else
5972    acl_final_exec_prefix="$exec_prefix"
5973  fi
5974  acl_save_prefix="$prefix"
5975  prefix="$acl_final_prefix"
5976  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5977  prefix="$acl_save_prefix"
5978
5979
5980# Check whether --with-gnu-ld was given.
5981if test "${with_gnu_ld+set}" = set; then
5982  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5983else
5984  with_gnu_ld=no
5985fi
5986
5987# Prepare PATH_SEPARATOR.
5988# The user is always right.
5989if test "${PATH_SEPARATOR+set}" != set; then
5990  echo "#! /bin/sh" >conf$$.sh
5991  echo  "exit 0"   >>conf$$.sh
5992  chmod +x conf$$.sh
5993  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5994    PATH_SEPARATOR=';'
5995  else
5996    PATH_SEPARATOR=:
5997  fi
5998  rm -f conf$$.sh
5999fi
6000ac_prog=ld
6001if test "$GCC" = yes; then
6002  # Check if gcc -print-prog-name=ld gives a path.
6003  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6004echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6005  case $host in
6006  *-*-mingw*)
6007    # gcc leaves a trailing carriage return which upsets mingw
6008    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6009  *)
6010    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6011  esac
6012  case $ac_prog in
6013    # Accept absolute paths.
6014    [\\/]* | [A-Za-z]:[\\/]*)
6015      re_direlt='/[^/][^/]*/\.\./'
6016      # Canonicalize the path of ld
6017      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6018      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6019	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6020      done
6021      test -z "$LD" && LD="$ac_prog"
6022      ;;
6023  "")
6024    # If it fails, then pretend we aren't using GCC.
6025    ac_prog=ld
6026    ;;
6027  *)
6028    # If it is relative, then search for the first ld in PATH.
6029    with_gnu_ld=unknown
6030    ;;
6031  esac
6032elif test "$with_gnu_ld" = yes; then
6033  { echo "$as_me:$LINENO: checking for GNU ld" >&5
6034echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6035else
6036  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6037echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6038fi
6039if test "${acl_cv_path_LD+set}" = set; then
6040  echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042  if test -z "$LD"; then
6043  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6044  for ac_dir in $PATH; do
6045    test -z "$ac_dir" && ac_dir=.
6046    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6047      acl_cv_path_LD="$ac_dir/$ac_prog"
6048      # Check to see if the program is GNU ld.  I'd rather use --version,
6049      # but apparently some GNU ld's only accept -v.
6050      # Break only if it was the GNU/non-GNU ld that we prefer.
6051      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6052      *GNU* | *'with BFD'*)
6053	test "$with_gnu_ld" != no && break ;;
6054      *)
6055	test "$with_gnu_ld" != yes && break ;;
6056      esac
6057    fi
6058  done
6059  IFS="$ac_save_ifs"
6060else
6061  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6062fi
6063fi
6064
6065LD="$acl_cv_path_LD"
6066if test -n "$LD"; then
6067  { echo "$as_me:$LINENO: result: $LD" >&5
6068echo "${ECHO_T}$LD" >&6; }
6069else
6070  { echo "$as_me:$LINENO: result: no" >&5
6071echo "${ECHO_T}no" >&6; }
6072fi
6073test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6074echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6075   { (exit 1); exit 1; }; }
6076{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6077echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6078if test "${acl_cv_prog_gnu_ld+set}" = set; then
6079  echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6082case `$LD -v 2>&1 </dev/null` in
6083*GNU* | *'with BFD'*)
6084  acl_cv_prog_gnu_ld=yes ;;
6085*)
6086  acl_cv_prog_gnu_ld=no ;;
6087esac
6088fi
6089{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6090echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6091with_gnu_ld=$acl_cv_prog_gnu_ld
6092
6093
6094
6095
6096                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6097echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6098if test "${acl_cv_rpath+set}" = set; then
6099  echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101
6102    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6103    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6104    . ./conftest.sh
6105    rm -f ./conftest.sh
6106    acl_cv_rpath=done
6107
6108fi
6109{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6110echo "${ECHO_T}$acl_cv_rpath" >&6; }
6111  wl="$acl_cv_wl"
6112  libext="$acl_cv_libext"
6113  shlibext="$acl_cv_shlibext"
6114  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6115  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6116  hardcode_direct="$acl_cv_hardcode_direct"
6117  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6118    # Check whether --enable-rpath was given.
6119if test "${enable_rpath+set}" = set; then
6120  enableval=$enable_rpath; :
6121else
6122  enable_rpath=yes
6123fi
6124
6125
6126
6127                  acl_libdirstem=lib
6128  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6129  if test -n "$searchpath"; then
6130    acl_save_IFS="${IFS= 	}"; IFS=":"
6131    for searchdir in $searchpath; do
6132      if test -d "$searchdir"; then
6133        case "$searchdir" in
6134          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6135          *) searchdir=`cd "$searchdir" && pwd`
6136             case "$searchdir" in
6137               */lib64 ) acl_libdirstem=lib64 ;;
6138             esac ;;
6139        esac
6140      fi
6141    done
6142    IFS="$acl_save_IFS"
6143  fi
6144
6145
6146
6147
6148       # Check whether --enable-threads was given.
6149if test "${enable_threads+set}" = set; then
6150  enableval=$enable_threads; gl_use_threads=$enableval
6151else
6152  gl_use_threads=yes
6153fi
6154
6155  gl_threads_api=none
6156  LIBTHREAD=
6157  LTLIBTHREAD=
6158  LIBMULTITHREAD=
6159  LTLIBMULTITHREAD=
6160  if test "$gl_use_threads" != no; then
6161        { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
6162echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
6163    gl_have_weak=no
6164    cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h.  */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h.  */
6170extern void xyzzy ();
6171#pragma weak xyzzy
6172int
6173main ()
6174{
6175xyzzy();
6176  ;
6177  return 0;
6178}
6179_ACEOF
6180rm -f conftest.$ac_objext conftest$ac_exeext
6181if { (ac_try="$ac_link"
6182case "(($ac_try" in
6183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184  *) ac_try_echo=$ac_try;;
6185esac
6186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187  (eval "$ac_link") 2>conftest.er1
6188  ac_status=$?
6189  grep -v '^ *+' conftest.er1 >conftest.err
6190  rm -f conftest.er1
6191  cat conftest.err >&5
6192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193  (exit $ac_status); } && {
6194	 test -z "$ac_c_werror_flag" ||
6195	 test ! -s conftest.err
6196       } && test -s conftest$ac_exeext &&
6197       $as_test_x conftest$ac_exeext; then
6198  gl_have_weak=yes
6199else
6200  echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
6203
6204fi
6205
6206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6207      conftest$ac_exeext conftest.$ac_ext
6208    { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
6209echo "${ECHO_T}$gl_have_weak" >&6; }
6210    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6211      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6212      # it groks <pthread.h>.
6213      gl_save_CPPFLAGS="$CPPFLAGS"
6214      CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6215      if test "${ac_cv_header_pthread_h+set}" = set; then
6216  { echo "$as_me:$LINENO: checking for pthread.h" >&5
6217echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6218if test "${ac_cv_header_pthread_h+set}" = set; then
6219  echo $ECHO_N "(cached) $ECHO_C" >&6
6220fi
6221{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6222echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6223else
6224  # Is the header compilable?
6225{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
6226echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
6227cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h.  */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h.  */
6233$ac_includes_default
6234#include <pthread.h>
6235_ACEOF
6236rm -f conftest.$ac_objext
6237if { (ac_try="$ac_compile"
6238case "(($ac_try" in
6239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240  *) ac_try_echo=$ac_try;;
6241esac
6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243  (eval "$ac_compile") 2>conftest.er1
6244  ac_status=$?
6245  grep -v '^ *+' conftest.er1 >conftest.err
6246  rm -f conftest.er1
6247  cat conftest.err >&5
6248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249  (exit $ac_status); } && {
6250	 test -z "$ac_c_werror_flag" ||
6251	 test ! -s conftest.err
6252       } && test -s conftest.$ac_objext; then
6253  ac_header_compiler=yes
6254else
6255  echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258	ac_header_compiler=no
6259fi
6260
6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6263echo "${ECHO_T}$ac_header_compiler" >&6; }
6264
6265# Is the header present?
6266{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
6267echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
6268cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h.  */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h.  */
6274#include <pthread.h>
6275_ACEOF
6276if { (ac_try="$ac_cpp conftest.$ac_ext"
6277case "(($ac_try" in
6278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279  *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6283  ac_status=$?
6284  grep -v '^ *+' conftest.er1 >conftest.err
6285  rm -f conftest.er1
6286  cat conftest.err >&5
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); } >/dev/null && {
6289	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6290	 test ! -s conftest.err
6291       }; then
6292  ac_header_preproc=yes
6293else
6294  echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
6297  ac_header_preproc=no
6298fi
6299
6300rm -f conftest.err conftest.$ac_ext
6301{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6302echo "${ECHO_T}$ac_header_preproc" >&6; }
6303
6304# So?  What about this header?
6305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6306  yes:no: )
6307    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6308echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6309    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6310echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6311    ac_header_preproc=yes
6312    ;;
6313  no:yes:* )
6314    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6315echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6316    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
6317echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
6318    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6319echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6320    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
6321echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6322    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6323echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6324    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6325echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6326
6327    ;;
6328esac
6329{ echo "$as_me:$LINENO: checking for pthread.h" >&5
6330echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6331if test "${ac_cv_header_pthread_h+set}" = set; then
6332  echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334  ac_cv_header_pthread_h=$ac_header_preproc
6335fi
6336{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6337echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6338
6339fi
6340if test $ac_cv_header_pthread_h = yes; then
6341  gl_have_pthread_h=yes
6342else
6343  gl_have_pthread_h=no
6344fi
6345
6346
6347      CPPFLAGS="$gl_save_CPPFLAGS"
6348      if test "$gl_have_pthread_h" = yes; then
6349        # Other possible tests:
6350        #   -lpthreads (FSU threads, PCthreads)
6351        #   -lgthreads
6352        case "$host_os" in
6353          osf*)
6354            # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6355            # groks <pthread.h>. cc also understands the flag -pthread, but
6356            # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6357            # 2. putting a flag into CPPFLAGS that has an effect on the linker
6358            # causes the AC_TRY_LINK test below to succeed unexpectedly,
6359            # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6360            CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6361            ;;
6362        esac
6363        gl_have_pthread=
6364        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6365        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6366        # the second one only in libpthread, and lock.c needs it.
6367        cat >conftest.$ac_ext <<_ACEOF
6368/* confdefs.h.  */
6369_ACEOF
6370cat confdefs.h >>conftest.$ac_ext
6371cat >>conftest.$ac_ext <<_ACEOF
6372/* end confdefs.h.  */
6373#include <pthread.h>
6374int
6375main ()
6376{
6377pthread_mutex_lock((pthread_mutex_t*)0);
6378           pthread_mutexattr_init((pthread_mutexattr_t*)0);
6379  ;
6380  return 0;
6381}
6382_ACEOF
6383rm -f conftest.$ac_objext conftest$ac_exeext
6384if { (ac_try="$ac_link"
6385case "(($ac_try" in
6386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387  *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390  (eval "$ac_link") 2>conftest.er1
6391  ac_status=$?
6392  grep -v '^ *+' conftest.er1 >conftest.err
6393  rm -f conftest.er1
6394  cat conftest.err >&5
6395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396  (exit $ac_status); } && {
6397	 test -z "$ac_c_werror_flag" ||
6398	 test ! -s conftest.err
6399       } && test -s conftest$ac_exeext &&
6400       $as_test_x conftest$ac_exeext; then
6401  gl_have_pthread=yes
6402else
6403  echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
6406
6407fi
6408
6409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6410      conftest$ac_exeext conftest.$ac_ext
6411        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6412        # since it is defined as a macro on OSF/1.)
6413        if test -n "$gl_have_pthread"; then
6414          # The program links fine without libpthread. But it may actually
6415          # need to link with libpthread in order to create multiple threads.
6416          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6417echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6418if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  ac_check_lib_save_LIBS=$LIBS
6422LIBS="-lpthread  $LIBS"
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h.  */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h.  */
6429
6430/* Override any GCC internal prototype to avoid an error.
6431   Use char because int might match the return type of a GCC
6432   builtin and then its argument prototype would still apply.  */
6433#ifdef __cplusplus
6434extern "C"
6435#endif
6436char pthread_kill ();
6437int
6438main ()
6439{
6440return pthread_kill ();
6441  ;
6442  return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
6446if { (ac_try="$ac_link"
6447case "(($ac_try" in
6448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449  *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452  (eval "$ac_link") 2>conftest.er1
6453  ac_status=$?
6454  grep -v '^ *+' conftest.er1 >conftest.err
6455  rm -f conftest.er1
6456  cat conftest.err >&5
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); } && {
6459	 test -z "$ac_c_werror_flag" ||
6460	 test ! -s conftest.err
6461       } && test -s conftest$ac_exeext &&
6462       $as_test_x conftest$ac_exeext; then
6463  ac_cv_lib_pthread_pthread_kill=yes
6464else
6465  echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468	ac_cv_lib_pthread_pthread_kill=no
6469fi
6470
6471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6472      conftest$ac_exeext conftest.$ac_ext
6473LIBS=$ac_check_lib_save_LIBS
6474fi
6475{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6476echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6477if test $ac_cv_lib_pthread_pthread_kill = yes; then
6478  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6479             # On Solaris and HP-UX, most pthread functions exist also in libc.
6480             # Therefore pthread_in_use() needs to actually try to create a
6481             # thread: pthread_create from libc will fail, whereas
6482             # pthread_create will actually create a thread.
6483             case "$host_os" in
6484               solaris* | hpux*)
6485
6486cat >>confdefs.h <<\_ACEOF
6487#define PTHREAD_IN_USE_DETECTION_HARD 1
6488_ACEOF
6489
6490             esac
6491
6492fi
6493
6494        else
6495          # Some library is needed. Try libpthread and libc_r.
6496          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6497echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6498if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6499  echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501  ac_check_lib_save_LIBS=$LIBS
6502LIBS="-lpthread  $LIBS"
6503cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509
6510/* Override any GCC internal prototype to avoid an error.
6511   Use char because int might match the return type of a GCC
6512   builtin and then its argument prototype would still apply.  */
6513#ifdef __cplusplus
6514extern "C"
6515#endif
6516char pthread_kill ();
6517int
6518main ()
6519{
6520return pthread_kill ();
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525rm -f conftest.$ac_objext conftest$ac_exeext
6526if { (ac_try="$ac_link"
6527case "(($ac_try" in
6528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529  *) ac_try_echo=$ac_try;;
6530esac
6531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532  (eval "$ac_link") 2>conftest.er1
6533  ac_status=$?
6534  grep -v '^ *+' conftest.er1 >conftest.err
6535  rm -f conftest.er1
6536  cat conftest.err >&5
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); } && {
6539	 test -z "$ac_c_werror_flag" ||
6540	 test ! -s conftest.err
6541       } && test -s conftest$ac_exeext &&
6542       $as_test_x conftest$ac_exeext; then
6543  ac_cv_lib_pthread_pthread_kill=yes
6544else
6545  echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548	ac_cv_lib_pthread_pthread_kill=no
6549fi
6550
6551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6552      conftest$ac_exeext conftest.$ac_ext
6553LIBS=$ac_check_lib_save_LIBS
6554fi
6555{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6556echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6557if test $ac_cv_lib_pthread_pthread_kill = yes; then
6558  gl_have_pthread=yes
6559             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6560             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6561fi
6562
6563          if test -z "$gl_have_pthread"; then
6564            # For FreeBSD 4.
6565            { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
6566echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
6567if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
6568  echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570  ac_check_lib_save_LIBS=$LIBS
6571LIBS="-lc_r  $LIBS"
6572cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h.  */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h.  */
6578
6579/* Override any GCC internal prototype to avoid an error.
6580   Use char because int might match the return type of a GCC
6581   builtin and then its argument prototype would still apply.  */
6582#ifdef __cplusplus
6583extern "C"
6584#endif
6585char pthread_kill ();
6586int
6587main ()
6588{
6589return pthread_kill ();
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext conftest$ac_exeext
6595if { (ac_try="$ac_link"
6596case "(($ac_try" in
6597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598  *) ac_try_echo=$ac_try;;
6599esac
6600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601  (eval "$ac_link") 2>conftest.er1
6602  ac_status=$?
6603  grep -v '^ *+' conftest.er1 >conftest.err
6604  rm -f conftest.er1
6605  cat conftest.err >&5
6606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); } && {
6608	 test -z "$ac_c_werror_flag" ||
6609	 test ! -s conftest.err
6610       } && test -s conftest$ac_exeext &&
6611       $as_test_x conftest$ac_exeext; then
6612  ac_cv_lib_c_r_pthread_kill=yes
6613else
6614  echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617	ac_cv_lib_c_r_pthread_kill=no
6618fi
6619
6620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6621      conftest$ac_exeext conftest.$ac_ext
6622LIBS=$ac_check_lib_save_LIBS
6623fi
6624{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
6625echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
6626if test $ac_cv_lib_c_r_pthread_kill = yes; then
6627  gl_have_pthread=yes
6628               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6629               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6630fi
6631
6632          fi
6633        fi
6634        if test -n "$gl_have_pthread"; then
6635          gl_threads_api=posix
6636
6637cat >>confdefs.h <<\_ACEOF
6638#define USE_POSIX_THREADS 1
6639_ACEOF
6640
6641          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6642            if test $gl_have_weak = yes; then
6643
6644cat >>confdefs.h <<\_ACEOF
6645#define USE_POSIX_THREADS_WEAK 1
6646_ACEOF
6647
6648              LIBTHREAD=
6649              LTLIBTHREAD=
6650            fi
6651          fi
6652          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6653          # pthread_rwlock_* functions.
6654          { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
6655echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
6656if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
6657  echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659  cat >conftest.$ac_ext <<_ACEOF
6660/* confdefs.h.  */
6661_ACEOF
6662cat confdefs.h >>conftest.$ac_ext
6663cat >>conftest.$ac_ext <<_ACEOF
6664/* end confdefs.h.  */
6665#include <pthread.h>
6666
6667typedef pthread_rwlock_t ac__type_new_;
6668int
6669main ()
6670{
6671if ((ac__type_new_ *) 0)
6672  return 0;
6673if (sizeof (ac__type_new_))
6674  return 0;
6675  ;
6676  return 0;
6677}
6678_ACEOF
6679rm -f conftest.$ac_objext
6680if { (ac_try="$ac_compile"
6681case "(($ac_try" in
6682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683  *) ac_try_echo=$ac_try;;
6684esac
6685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686  (eval "$ac_compile") 2>conftest.er1
6687  ac_status=$?
6688  grep -v '^ *+' conftest.er1 >conftest.err
6689  rm -f conftest.er1
6690  cat conftest.err >&5
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); } && {
6693	 test -z "$ac_c_werror_flag" ||
6694	 test ! -s conftest.err
6695       } && test -s conftest.$ac_objext; then
6696  ac_cv_type_pthread_rwlock_t=yes
6697else
6698  echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701	ac_cv_type_pthread_rwlock_t=no
6702fi
6703
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705fi
6706{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
6707echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
6708if test $ac_cv_type_pthread_rwlock_t = yes; then
6709
6710cat >>confdefs.h <<\_ACEOF
6711#define HAVE_PTHREAD_RWLOCK 1
6712_ACEOF
6713
6714fi
6715
6716          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6717          cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h.  */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h.  */
6723#include <pthread.h>
6724int
6725main ()
6726{
6727#if __FreeBSD__ == 4
6728error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6729#else
6730int x = (int)PTHREAD_MUTEX_RECURSIVE;
6731#endif
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736rm -f conftest.$ac_objext
6737if { (ac_try="$ac_compile"
6738case "(($ac_try" in
6739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740  *) ac_try_echo=$ac_try;;
6741esac
6742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743  (eval "$ac_compile") 2>conftest.er1
6744  ac_status=$?
6745  grep -v '^ *+' conftest.er1 >conftest.err
6746  rm -f conftest.er1
6747  cat conftest.err >&5
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); } && {
6750	 test -z "$ac_c_werror_flag" ||
6751	 test ! -s conftest.err
6752       } && test -s conftest.$ac_objext; then
6753
6754cat >>confdefs.h <<\_ACEOF
6755#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
6756_ACEOF
6757
6758else
6759  echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
6761
6762
6763fi
6764
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766          # Some systems optimize for single-threaded programs by default, and
6767          # need special flags to disable these optimizations. For example, the
6768          # definition of 'errno' in <errno.h>.
6769          case "$host_os" in
6770            aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6771            solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6772          esac
6773        fi
6774      fi
6775    fi
6776    if test -z "$gl_have_pthread"; then
6777      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6778        gl_have_solaristhread=
6779        gl_save_LIBS="$LIBS"
6780        LIBS="$LIBS -lthread"
6781        cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787#include <thread.h>
6788#include <synch.h>
6789int
6790main ()
6791{
6792thr_self();
6793  ;
6794  return 0;
6795}
6796_ACEOF
6797rm -f conftest.$ac_objext conftest$ac_exeext
6798if { (ac_try="$ac_link"
6799case "(($ac_try" in
6800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801  *) ac_try_echo=$ac_try;;
6802esac
6803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804  (eval "$ac_link") 2>conftest.er1
6805  ac_status=$?
6806  grep -v '^ *+' conftest.er1 >conftest.err
6807  rm -f conftest.er1
6808  cat conftest.err >&5
6809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810  (exit $ac_status); } && {
6811	 test -z "$ac_c_werror_flag" ||
6812	 test ! -s conftest.err
6813       } && test -s conftest$ac_exeext &&
6814       $as_test_x conftest$ac_exeext; then
6815  gl_have_solaristhread=yes
6816else
6817  echo "$as_me: failed program was:" >&5
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
6820
6821fi
6822
6823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6824      conftest$ac_exeext conftest.$ac_ext
6825        LIBS="$gl_save_LIBS"
6826        if test -n "$gl_have_solaristhread"; then
6827          gl_threads_api=solaris
6828          LIBTHREAD=-lthread
6829          LTLIBTHREAD=-lthread
6830          LIBMULTITHREAD="$LIBTHREAD"
6831          LTLIBMULTITHREAD="$LTLIBTHREAD"
6832
6833cat >>confdefs.h <<\_ACEOF
6834#define USE_SOLARIS_THREADS 1
6835_ACEOF
6836
6837          if test $gl_have_weak = yes; then
6838
6839cat >>confdefs.h <<\_ACEOF
6840#define USE_SOLARIS_THREADS_WEAK 1
6841_ACEOF
6842
6843            LIBTHREAD=
6844            LTLIBTHREAD=
6845          fi
6846        fi
6847      fi
6848    fi
6849    if test "$gl_use_threads" = pth; then
6850      gl_save_CPPFLAGS="$CPPFLAGS"
6851
6852
6853
6854
6855
6856  { echo "$as_me:$LINENO: checking how to link with libpth" >&5
6857echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
6858if test "${ac_cv_libpth_libs+set}" = set; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861
6862
6863
6864
6865    use_additional=yes
6866
6867  acl_save_prefix="$prefix"
6868  prefix="$acl_final_prefix"
6869  acl_save_exec_prefix="$exec_prefix"
6870  exec_prefix="$acl_final_exec_prefix"
6871
6872    eval additional_includedir=\"$includedir\"
6873    eval additional_libdir=\"$libdir\"
6874
6875  exec_prefix="$acl_save_exec_prefix"
6876  prefix="$acl_save_prefix"
6877
6878
6879# Check whether --with-libpth-prefix was given.
6880if test "${with_libpth_prefix+set}" = set; then
6881  withval=$with_libpth_prefix;
6882    if test "X$withval" = "Xno"; then
6883      use_additional=no
6884    else
6885      if test "X$withval" = "X"; then
6886
6887  acl_save_prefix="$prefix"
6888  prefix="$acl_final_prefix"
6889  acl_save_exec_prefix="$exec_prefix"
6890  exec_prefix="$acl_final_exec_prefix"
6891
6892          eval additional_includedir=\"$includedir\"
6893          eval additional_libdir=\"$libdir\"
6894
6895  exec_prefix="$acl_save_exec_prefix"
6896  prefix="$acl_save_prefix"
6897
6898      else
6899        additional_includedir="$withval/include"
6900        additional_libdir="$withval/$acl_libdirstem"
6901      fi
6902    fi
6903
6904fi
6905
6906      LIBPTH=
6907  LTLIBPTH=
6908  INCPTH=
6909  rpathdirs=
6910  ltrpathdirs=
6911  names_already_handled=
6912  names_next_round='pth '
6913  while test -n "$names_next_round"; do
6914    names_this_round="$names_next_round"
6915    names_next_round=
6916    for name in $names_this_round; do
6917      already_handled=
6918      for n in $names_already_handled; do
6919        if test "$n" = "$name"; then
6920          already_handled=yes
6921          break
6922        fi
6923      done
6924      if test -z "$already_handled"; then
6925        names_already_handled="$names_already_handled $name"
6926                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6927        eval value=\"\$HAVE_LIB$uppername\"
6928        if test -n "$value"; then
6929          if test "$value" = yes; then
6930            eval value=\"\$LIB$uppername\"
6931            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6932            eval value=\"\$LTLIB$uppername\"
6933            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6934          else
6935                                    :
6936          fi
6937        else
6938                              found_dir=
6939          found_la=
6940          found_so=
6941          found_a=
6942          if test $use_additional = yes; then
6943            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6944              found_dir="$additional_libdir"
6945              found_so="$additional_libdir/lib$name.$shlibext"
6946              if test -f "$additional_libdir/lib$name.la"; then
6947                found_la="$additional_libdir/lib$name.la"
6948              fi
6949            else
6950              if test -f "$additional_libdir/lib$name.$libext"; then
6951                found_dir="$additional_libdir"
6952                found_a="$additional_libdir/lib$name.$libext"
6953                if test -f "$additional_libdir/lib$name.la"; then
6954                  found_la="$additional_libdir/lib$name.la"
6955                fi
6956              fi
6957            fi
6958          fi
6959          if test "X$found_dir" = "X"; then
6960            for x in $LDFLAGS $LTLIBPTH; do
6961
6962  acl_save_prefix="$prefix"
6963  prefix="$acl_final_prefix"
6964  acl_save_exec_prefix="$exec_prefix"
6965  exec_prefix="$acl_final_exec_prefix"
6966  eval x=\"$x\"
6967  exec_prefix="$acl_save_exec_prefix"
6968  prefix="$acl_save_prefix"
6969
6970              case "$x" in
6971                -L*)
6972                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6973                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6974                    found_dir="$dir"
6975                    found_so="$dir/lib$name.$shlibext"
6976                    if test -f "$dir/lib$name.la"; then
6977                      found_la="$dir/lib$name.la"
6978                    fi
6979                  else
6980                    if test -f "$dir/lib$name.$libext"; then
6981                      found_dir="$dir"
6982                      found_a="$dir/lib$name.$libext"
6983                      if test -f "$dir/lib$name.la"; then
6984                        found_la="$dir/lib$name.la"
6985                      fi
6986                    fi
6987                  fi
6988                  ;;
6989              esac
6990              if test "X$found_dir" != "X"; then
6991                break
6992              fi
6993            done
6994          fi
6995          if test "X$found_dir" != "X"; then
6996                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6997            if test "X$found_so" != "X"; then
6998                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6999                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7000              else
7001                                                                                haveit=
7002                for x in $ltrpathdirs; do
7003                  if test "X$x" = "X$found_dir"; then
7004                    haveit=yes
7005                    break
7006                  fi
7007                done
7008                if test -z "$haveit"; then
7009                  ltrpathdirs="$ltrpathdirs $found_dir"
7010                fi
7011                                if test "$hardcode_direct" = yes; then
7012                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7013                else
7014                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7015                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7016                                                            haveit=
7017                    for x in $rpathdirs; do
7018                      if test "X$x" = "X$found_dir"; then
7019                        haveit=yes
7020                        break
7021                      fi
7022                    done
7023                    if test -z "$haveit"; then
7024                      rpathdirs="$rpathdirs $found_dir"
7025                    fi
7026                  else
7027                                                                                haveit=
7028                    for x in $LDFLAGS $LIBPTH; do
7029
7030  acl_save_prefix="$prefix"
7031  prefix="$acl_final_prefix"
7032  acl_save_exec_prefix="$exec_prefix"
7033  exec_prefix="$acl_final_exec_prefix"
7034  eval x=\"$x\"
7035  exec_prefix="$acl_save_exec_prefix"
7036  prefix="$acl_save_prefix"
7037
7038                      if test "X$x" = "X-L$found_dir"; then
7039                        haveit=yes
7040                        break
7041                      fi
7042                    done
7043                    if test -z "$haveit"; then
7044                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
7045                    fi
7046                    if test "$hardcode_minus_L" != no; then
7047                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7048                    else
7049                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7050                    fi
7051                  fi
7052                fi
7053              fi
7054            else
7055              if test "X$found_a" != "X"; then
7056                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
7057              else
7058                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
7059              fi
7060            fi
7061                        additional_includedir=
7062            case "$found_dir" in
7063              */$acl_libdirstem | */$acl_libdirstem/)
7064                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7065                additional_includedir="$basedir/include"
7066                ;;
7067            esac
7068            if test "X$additional_includedir" != "X"; then
7069                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7070                haveit=
7071                if test "X$additional_includedir" = "X/usr/local/include"; then
7072                  if test -n "$GCC"; then
7073                    case $host_os in
7074                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7075                    esac
7076                  fi
7077                fi
7078                if test -z "$haveit"; then
7079                  for x in $CPPFLAGS $INCPTH; do
7080
7081  acl_save_prefix="$prefix"
7082  prefix="$acl_final_prefix"
7083  acl_save_exec_prefix="$exec_prefix"
7084  exec_prefix="$acl_final_exec_prefix"
7085  eval x=\"$x\"
7086  exec_prefix="$acl_save_exec_prefix"
7087  prefix="$acl_save_prefix"
7088
7089                    if test "X$x" = "X-I$additional_includedir"; then
7090                      haveit=yes
7091                      break
7092                    fi
7093                  done
7094                  if test -z "$haveit"; then
7095                    if test -d "$additional_includedir"; then
7096                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
7097                    fi
7098                  fi
7099                fi
7100              fi
7101            fi
7102                        if test -n "$found_la"; then
7103                                                        save_libdir="$libdir"
7104              case "$found_la" in
7105                */* | *\\*) . "$found_la" ;;
7106                *) . "./$found_la" ;;
7107              esac
7108              libdir="$save_libdir"
7109                            for dep in $dependency_libs; do
7110                case "$dep" in
7111                  -L*)
7112                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7113                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7114                      haveit=
7115                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7116                        if test -n "$GCC"; then
7117                          case $host_os in
7118                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7119                          esac
7120                        fi
7121                      fi
7122                      if test -z "$haveit"; then
7123                        haveit=
7124                        for x in $LDFLAGS $LIBPTH; do
7125
7126  acl_save_prefix="$prefix"
7127  prefix="$acl_final_prefix"
7128  acl_save_exec_prefix="$exec_prefix"
7129  exec_prefix="$acl_final_exec_prefix"
7130  eval x=\"$x\"
7131  exec_prefix="$acl_save_exec_prefix"
7132  prefix="$acl_save_prefix"
7133
7134                          if test "X$x" = "X-L$additional_libdir"; then
7135                            haveit=yes
7136                            break
7137                          fi
7138                        done
7139                        if test -z "$haveit"; then
7140                          if test -d "$additional_libdir"; then
7141                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
7142                          fi
7143                        fi
7144                        haveit=
7145                        for x in $LDFLAGS $LTLIBPTH; do
7146
7147  acl_save_prefix="$prefix"
7148  prefix="$acl_final_prefix"
7149  acl_save_exec_prefix="$exec_prefix"
7150  exec_prefix="$acl_final_exec_prefix"
7151  eval x=\"$x\"
7152  exec_prefix="$acl_save_exec_prefix"
7153  prefix="$acl_save_prefix"
7154
7155                          if test "X$x" = "X-L$additional_libdir"; then
7156                            haveit=yes
7157                            break
7158                          fi
7159                        done
7160                        if test -z "$haveit"; then
7161                          if test -d "$additional_libdir"; then
7162                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
7163                          fi
7164                        fi
7165                      fi
7166                    fi
7167                    ;;
7168                  -R*)
7169                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7170                    if test "$enable_rpath" != no; then
7171                                                                  haveit=
7172                      for x in $rpathdirs; do
7173                        if test "X$x" = "X$dir"; then
7174                          haveit=yes
7175                          break
7176                        fi
7177                      done
7178                      if test -z "$haveit"; then
7179                        rpathdirs="$rpathdirs $dir"
7180                      fi
7181                                                                  haveit=
7182                      for x in $ltrpathdirs; do
7183                        if test "X$x" = "X$dir"; then
7184                          haveit=yes
7185                          break
7186                        fi
7187                      done
7188                      if test -z "$haveit"; then
7189                        ltrpathdirs="$ltrpathdirs $dir"
7190                      fi
7191                    fi
7192                    ;;
7193                  -l*)
7194                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7195                    ;;
7196                  *.la)
7197                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7198                    ;;
7199                  *)
7200                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
7201                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
7202                    ;;
7203                esac
7204              done
7205            fi
7206          else
7207                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7208            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
7209          fi
7210        fi
7211      fi
7212    done
7213  done
7214  if test "X$rpathdirs" != "X"; then
7215    if test -n "$hardcode_libdir_separator"; then
7216                        alldirs=
7217      for found_dir in $rpathdirs; do
7218        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7219      done
7220            acl_save_libdir="$libdir"
7221      libdir="$alldirs"
7222      eval flag=\"$hardcode_libdir_flag_spec\"
7223      libdir="$acl_save_libdir"
7224      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7225    else
7226            for found_dir in $rpathdirs; do
7227        acl_save_libdir="$libdir"
7228        libdir="$found_dir"
7229        eval flag=\"$hardcode_libdir_flag_spec\"
7230        libdir="$acl_save_libdir"
7231        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7232      done
7233    fi
7234  fi
7235  if test "X$ltrpathdirs" != "X"; then
7236            for found_dir in $ltrpathdirs; do
7237      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
7238    done
7239  fi
7240
7241    ac_cv_libpth_libs="$LIBPTH"
7242    ac_cv_libpth_ltlibs="$LTLIBPTH"
7243    ac_cv_libpth_cppflags="$INCPTH"
7244
7245fi
7246{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
7247echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
7248  LIBPTH="$ac_cv_libpth_libs"
7249  LTLIBPTH="$ac_cv_libpth_ltlibs"
7250  INCPTH="$ac_cv_libpth_cppflags"
7251
7252  for element in $INCPTH; do
7253    haveit=
7254    for x in $CPPFLAGS; do
7255
7256  acl_save_prefix="$prefix"
7257  prefix="$acl_final_prefix"
7258  acl_save_exec_prefix="$exec_prefix"
7259  exec_prefix="$acl_final_exec_prefix"
7260  eval x=\"$x\"
7261  exec_prefix="$acl_save_exec_prefix"
7262  prefix="$acl_save_prefix"
7263
7264      if test "X$x" = "X$element"; then
7265        haveit=yes
7266        break
7267      fi
7268    done
7269    if test -z "$haveit"; then
7270      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7271    fi
7272  done
7273
7274
7275
7276      HAVE_LIBPTH=yes
7277
7278
7279
7280      gl_have_pth=
7281      gl_save_LIBS="$LIBS"
7282      LIBS="$LIBS -lpth"
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#include <pth.h>
7290int
7291main ()
7292{
7293pth_self();
7294  ;
7295  return 0;
7296}
7297_ACEOF
7298rm -f conftest.$ac_objext conftest$ac_exeext
7299if { (ac_try="$ac_link"
7300case "(($ac_try" in
7301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302  *) ac_try_echo=$ac_try;;
7303esac
7304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305  (eval "$ac_link") 2>conftest.er1
7306  ac_status=$?
7307  grep -v '^ *+' conftest.er1 >conftest.err
7308  rm -f conftest.er1
7309  cat conftest.err >&5
7310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311  (exit $ac_status); } && {
7312	 test -z "$ac_c_werror_flag" ||
7313	 test ! -s conftest.err
7314       } && test -s conftest$ac_exeext &&
7315       $as_test_x conftest$ac_exeext; then
7316  gl_have_pth=yes
7317else
7318  echo "$as_me: failed program was:" >&5
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
7321
7322fi
7323
7324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7325      conftest$ac_exeext conftest.$ac_ext
7326      LIBS="$gl_save_LIBS"
7327      if test -n "$gl_have_pth"; then
7328        gl_threads_api=pth
7329        LIBTHREAD="$LIBPTH"
7330        LTLIBTHREAD="$LTLIBPTH"
7331        LIBMULTITHREAD="$LIBTHREAD"
7332        LTLIBMULTITHREAD="$LTLIBTHREAD"
7333
7334cat >>confdefs.h <<\_ACEOF
7335#define USE_PTH_THREADS 1
7336_ACEOF
7337
7338        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7339          if test $gl_have_weak = yes; then
7340
7341cat >>confdefs.h <<\_ACEOF
7342#define USE_PTH_THREADS_WEAK 1
7343_ACEOF
7344
7345            LIBTHREAD=
7346            LTLIBTHREAD=
7347          fi
7348        fi
7349      else
7350        CPPFLAGS="$gl_save_CPPFLAGS"
7351      fi
7352    fi
7353    if test -z "$gl_have_pthread"; then
7354      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
7355        if { case "$host_os" in
7356               mingw*) true;;
7357               *) false;;
7358             esac
7359           }; then
7360          gl_threads_api=win32
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define USE_WIN32_THREADS 1
7364_ACEOF
7365
7366        fi
7367      fi
7368    fi
7369  fi
7370  { echo "$as_me:$LINENO: checking for multithread API to use" >&5
7371echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
7372  { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
7373echo "${ECHO_T}$gl_threads_api" >&6; }
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392    use_additional=yes
7393
7394  acl_save_prefix="$prefix"
7395  prefix="$acl_final_prefix"
7396  acl_save_exec_prefix="$exec_prefix"
7397  exec_prefix="$acl_final_exec_prefix"
7398
7399    eval additional_includedir=\"$includedir\"
7400    eval additional_libdir=\"$libdir\"
7401
7402  exec_prefix="$acl_save_exec_prefix"
7403  prefix="$acl_save_prefix"
7404
7405
7406# Check whether --with-libiconv-prefix was given.
7407if test "${with_libiconv_prefix+set}" = set; then
7408  withval=$with_libiconv_prefix;
7409    if test "X$withval" = "Xno"; then
7410      use_additional=no
7411    else
7412      if test "X$withval" = "X"; then
7413
7414  acl_save_prefix="$prefix"
7415  prefix="$acl_final_prefix"
7416  acl_save_exec_prefix="$exec_prefix"
7417  exec_prefix="$acl_final_exec_prefix"
7418
7419          eval additional_includedir=\"$includedir\"
7420          eval additional_libdir=\"$libdir\"
7421
7422  exec_prefix="$acl_save_exec_prefix"
7423  prefix="$acl_save_prefix"
7424
7425      else
7426        additional_includedir="$withval/include"
7427        additional_libdir="$withval/$acl_libdirstem"
7428      fi
7429    fi
7430
7431fi
7432
7433      LIBICONV=
7434  LTLIBICONV=
7435  INCICONV=
7436  rpathdirs=
7437  ltrpathdirs=
7438  names_already_handled=
7439  names_next_round='iconv '
7440  while test -n "$names_next_round"; do
7441    names_this_round="$names_next_round"
7442    names_next_round=
7443    for name in $names_this_round; do
7444      already_handled=
7445      for n in $names_already_handled; do
7446        if test "$n" = "$name"; then
7447          already_handled=yes
7448          break
7449        fi
7450      done
7451      if test -z "$already_handled"; then
7452        names_already_handled="$names_already_handled $name"
7453                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7454        eval value=\"\$HAVE_LIB$uppername\"
7455        if test -n "$value"; then
7456          if test "$value" = yes; then
7457            eval value=\"\$LIB$uppername\"
7458            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7459            eval value=\"\$LTLIB$uppername\"
7460            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7461          else
7462                                    :
7463          fi
7464        else
7465                              found_dir=
7466          found_la=
7467          found_so=
7468          found_a=
7469          if test $use_additional = yes; then
7470            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7471              found_dir="$additional_libdir"
7472              found_so="$additional_libdir/lib$name.$shlibext"
7473              if test -f "$additional_libdir/lib$name.la"; then
7474                found_la="$additional_libdir/lib$name.la"
7475              fi
7476            else
7477              if test -f "$additional_libdir/lib$name.$libext"; then
7478                found_dir="$additional_libdir"
7479                found_a="$additional_libdir/lib$name.$libext"
7480                if test -f "$additional_libdir/lib$name.la"; then
7481                  found_la="$additional_libdir/lib$name.la"
7482                fi
7483              fi
7484            fi
7485          fi
7486          if test "X$found_dir" = "X"; then
7487            for x in $LDFLAGS $LTLIBICONV; do
7488
7489  acl_save_prefix="$prefix"
7490  prefix="$acl_final_prefix"
7491  acl_save_exec_prefix="$exec_prefix"
7492  exec_prefix="$acl_final_exec_prefix"
7493  eval x=\"$x\"
7494  exec_prefix="$acl_save_exec_prefix"
7495  prefix="$acl_save_prefix"
7496
7497              case "$x" in
7498                -L*)
7499                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7500                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7501                    found_dir="$dir"
7502                    found_so="$dir/lib$name.$shlibext"
7503                    if test -f "$dir/lib$name.la"; then
7504                      found_la="$dir/lib$name.la"
7505                    fi
7506                  else
7507                    if test -f "$dir/lib$name.$libext"; then
7508                      found_dir="$dir"
7509                      found_a="$dir/lib$name.$libext"
7510                      if test -f "$dir/lib$name.la"; then
7511                        found_la="$dir/lib$name.la"
7512                      fi
7513                    fi
7514                  fi
7515                  ;;
7516              esac
7517              if test "X$found_dir" != "X"; then
7518                break
7519              fi
7520            done
7521          fi
7522          if test "X$found_dir" != "X"; then
7523                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7524            if test "X$found_so" != "X"; then
7525                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7526                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7527              else
7528                                                                                haveit=
7529                for x in $ltrpathdirs; do
7530                  if test "X$x" = "X$found_dir"; then
7531                    haveit=yes
7532                    break
7533                  fi
7534                done
7535                if test -z "$haveit"; then
7536                  ltrpathdirs="$ltrpathdirs $found_dir"
7537                fi
7538                                if test "$hardcode_direct" = yes; then
7539                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7540                else
7541                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7542                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7543                                                            haveit=
7544                    for x in $rpathdirs; do
7545                      if test "X$x" = "X$found_dir"; then
7546                        haveit=yes
7547                        break
7548                      fi
7549                    done
7550                    if test -z "$haveit"; then
7551                      rpathdirs="$rpathdirs $found_dir"
7552                    fi
7553                  else
7554                                                                                haveit=
7555                    for x in $LDFLAGS $LIBICONV; do
7556
7557  acl_save_prefix="$prefix"
7558  prefix="$acl_final_prefix"
7559  acl_save_exec_prefix="$exec_prefix"
7560  exec_prefix="$acl_final_exec_prefix"
7561  eval x=\"$x\"
7562  exec_prefix="$acl_save_exec_prefix"
7563  prefix="$acl_save_prefix"
7564
7565                      if test "X$x" = "X-L$found_dir"; then
7566                        haveit=yes
7567                        break
7568                      fi
7569                    done
7570                    if test -z "$haveit"; then
7571                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7572                    fi
7573                    if test "$hardcode_minus_L" != no; then
7574                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7575                    else
7576                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7577                    fi
7578                  fi
7579                fi
7580              fi
7581            else
7582              if test "X$found_a" != "X"; then
7583                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7584              else
7585                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7586              fi
7587            fi
7588                        additional_includedir=
7589            case "$found_dir" in
7590              */$acl_libdirstem | */$acl_libdirstem/)
7591                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7592                additional_includedir="$basedir/include"
7593                ;;
7594            esac
7595            if test "X$additional_includedir" != "X"; then
7596                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7597                haveit=
7598                if test "X$additional_includedir" = "X/usr/local/include"; then
7599                  if test -n "$GCC"; then
7600                    case $host_os in
7601                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7602                    esac
7603                  fi
7604                fi
7605                if test -z "$haveit"; then
7606                  for x in $CPPFLAGS $INCICONV; do
7607
7608  acl_save_prefix="$prefix"
7609  prefix="$acl_final_prefix"
7610  acl_save_exec_prefix="$exec_prefix"
7611  exec_prefix="$acl_final_exec_prefix"
7612  eval x=\"$x\"
7613  exec_prefix="$acl_save_exec_prefix"
7614  prefix="$acl_save_prefix"
7615
7616                    if test "X$x" = "X-I$additional_includedir"; then
7617                      haveit=yes
7618                      break
7619                    fi
7620                  done
7621                  if test -z "$haveit"; then
7622                    if test -d "$additional_includedir"; then
7623                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7624                    fi
7625                  fi
7626                fi
7627              fi
7628            fi
7629                        if test -n "$found_la"; then
7630                                                        save_libdir="$libdir"
7631              case "$found_la" in
7632                */* | *\\*) . "$found_la" ;;
7633                *) . "./$found_la" ;;
7634              esac
7635              libdir="$save_libdir"
7636                            for dep in $dependency_libs; do
7637                case "$dep" in
7638                  -L*)
7639                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7640                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7641                      haveit=
7642                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7643                        if test -n "$GCC"; then
7644                          case $host_os in
7645                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7646                          esac
7647                        fi
7648                      fi
7649                      if test -z "$haveit"; then
7650                        haveit=
7651                        for x in $LDFLAGS $LIBICONV; do
7652
7653  acl_save_prefix="$prefix"
7654  prefix="$acl_final_prefix"
7655  acl_save_exec_prefix="$exec_prefix"
7656  exec_prefix="$acl_final_exec_prefix"
7657  eval x=\"$x\"
7658  exec_prefix="$acl_save_exec_prefix"
7659  prefix="$acl_save_prefix"
7660
7661                          if test "X$x" = "X-L$additional_libdir"; then
7662                            haveit=yes
7663                            break
7664                          fi
7665                        done
7666                        if test -z "$haveit"; then
7667                          if test -d "$additional_libdir"; then
7668                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7669                          fi
7670                        fi
7671                        haveit=
7672                        for x in $LDFLAGS $LTLIBICONV; do
7673
7674  acl_save_prefix="$prefix"
7675  prefix="$acl_final_prefix"
7676  acl_save_exec_prefix="$exec_prefix"
7677  exec_prefix="$acl_final_exec_prefix"
7678  eval x=\"$x\"
7679  exec_prefix="$acl_save_exec_prefix"
7680  prefix="$acl_save_prefix"
7681
7682                          if test "X$x" = "X-L$additional_libdir"; then
7683                            haveit=yes
7684                            break
7685                          fi
7686                        done
7687                        if test -z "$haveit"; then
7688                          if test -d "$additional_libdir"; then
7689                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7690                          fi
7691                        fi
7692                      fi
7693                    fi
7694                    ;;
7695                  -R*)
7696                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7697                    if test "$enable_rpath" != no; then
7698                                                                  haveit=
7699                      for x in $rpathdirs; do
7700                        if test "X$x" = "X$dir"; then
7701                          haveit=yes
7702                          break
7703                        fi
7704                      done
7705                      if test -z "$haveit"; then
7706                        rpathdirs="$rpathdirs $dir"
7707                      fi
7708                                                                  haveit=
7709                      for x in $ltrpathdirs; do
7710                        if test "X$x" = "X$dir"; then
7711                          haveit=yes
7712                          break
7713                        fi
7714                      done
7715                      if test -z "$haveit"; then
7716                        ltrpathdirs="$ltrpathdirs $dir"
7717                      fi
7718                    fi
7719                    ;;
7720                  -l*)
7721                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7722                    ;;
7723                  *.la)
7724                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7725                    ;;
7726                  *)
7727                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7728                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7729                    ;;
7730                esac
7731              done
7732            fi
7733          else
7734                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7735            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7736          fi
7737        fi
7738      fi
7739    done
7740  done
7741  if test "X$rpathdirs" != "X"; then
7742    if test -n "$hardcode_libdir_separator"; then
7743                        alldirs=
7744      for found_dir in $rpathdirs; do
7745        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7746      done
7747            acl_save_libdir="$libdir"
7748      libdir="$alldirs"
7749      eval flag=\"$hardcode_libdir_flag_spec\"
7750      libdir="$acl_save_libdir"
7751      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7752    else
7753            for found_dir in $rpathdirs; do
7754        acl_save_libdir="$libdir"
7755        libdir="$found_dir"
7756        eval flag=\"$hardcode_libdir_flag_spec\"
7757        libdir="$acl_save_libdir"
7758        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7759      done
7760    fi
7761  fi
7762  if test "X$ltrpathdirs" != "X"; then
7763            for found_dir in $ltrpathdirs; do
7764      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7765    done
7766  fi
7767
7768
7769
7770
7771
7772  cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h.  */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h.  */
7778int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7779int
7780main ()
7781{
7782
7783  ;
7784  return 0;
7785}
7786_ACEOF
7787rm -f conftest.$ac_objext conftest$ac_exeext
7788if { (ac_try="$ac_link"
7789case "(($ac_try" in
7790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791  *) ac_try_echo=$ac_try;;
7792esac
7793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794  (eval "$ac_link") 2>conftest.er1
7795  ac_status=$?
7796  grep -v '^ *+' conftest.er1 >conftest.err
7797  rm -f conftest.er1
7798  cat conftest.err >&5
7799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800  (exit $ac_status); } && {
7801	 test -z "$ac_c_werror_flag" ||
7802	 test ! -s conftest.err
7803       } && test -s conftest$ac_exeext &&
7804       $as_test_x conftest$ac_exeext; then
7805
7806cat >>confdefs.h <<\_ACEOF
7807#define HAVE_BUILTIN_EXPECT 1
7808_ACEOF
7809
7810else
7811  echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814
7815fi
7816
7817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7818      conftest$ac_exeext conftest.$ac_ext
7819
7820
7821
7822
7823
7824for ac_header in argz.h limits.h unistd.h sys/param.h
7825do
7826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7828  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7831  echo $ECHO_N "(cached) $ECHO_C" >&6
7832fi
7833ac_res=`eval echo '${'$as_ac_Header'}'`
7834	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7835echo "${ECHO_T}$ac_res" >&6; }
7836else
7837  # Is the header compilable?
7838{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7840cat >conftest.$ac_ext <<_ACEOF
7841/* confdefs.h.  */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
7845/* end confdefs.h.  */
7846$ac_includes_default
7847#include <$ac_header>
7848_ACEOF
7849rm -f conftest.$ac_objext
7850if { (ac_try="$ac_compile"
7851case "(($ac_try" in
7852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853  *) ac_try_echo=$ac_try;;
7854esac
7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856  (eval "$ac_compile") 2>conftest.er1
7857  ac_status=$?
7858  grep -v '^ *+' conftest.er1 >conftest.err
7859  rm -f conftest.er1
7860  cat conftest.err >&5
7861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862  (exit $ac_status); } && {
7863	 test -z "$ac_c_werror_flag" ||
7864	 test ! -s conftest.err
7865       } && test -s conftest.$ac_objext; then
7866  ac_header_compiler=yes
7867else
7868  echo "$as_me: failed program was:" >&5
7869sed 's/^/| /' conftest.$ac_ext >&5
7870
7871	ac_header_compiler=no
7872fi
7873
7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7876echo "${ECHO_T}$ac_header_compiler" >&6; }
7877
7878# Is the header present?
7879{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7881cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h.  */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h.  */
7887#include <$ac_header>
7888_ACEOF
7889if { (ac_try="$ac_cpp conftest.$ac_ext"
7890case "(($ac_try" in
7891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892  *) ac_try_echo=$ac_try;;
7893esac
7894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7896  ac_status=$?
7897  grep -v '^ *+' conftest.er1 >conftest.err
7898  rm -f conftest.er1
7899  cat conftest.err >&5
7900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901  (exit $ac_status); } >/dev/null && {
7902	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7903	 test ! -s conftest.err
7904       }; then
7905  ac_header_preproc=yes
7906else
7907  echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910  ac_header_preproc=no
7911fi
7912
7913rm -f conftest.err conftest.$ac_ext
7914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7915echo "${ECHO_T}$ac_header_preproc" >&6; }
7916
7917# So?  What about this header?
7918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7919  yes:no: )
7920    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7922    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7924    ac_header_preproc=yes
7925    ;;
7926  no:yes:* )
7927    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7929    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7930echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7931    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7933    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7934echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7937    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7939
7940    ;;
7941esac
7942{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7945  echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947  eval "$as_ac_Header=\$ac_header_preproc"
7948fi
7949ac_res=`eval echo '${'$as_ac_Header'}'`
7950	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7951echo "${ECHO_T}$ac_res" >&6; }
7952
7953fi
7954if test `eval echo '${'$as_ac_Header'}'` = yes; then
7955  cat >>confdefs.h <<_ACEOF
7956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7957_ACEOF
7958
7959fi
7960
7961done
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7980    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
7981    argz_next __fsetlocking
7982do
7983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7984{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7986if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7987  echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989  cat >conftest.$ac_ext <<_ACEOF
7990/* confdefs.h.  */
7991_ACEOF
7992cat confdefs.h >>conftest.$ac_ext
7993cat >>conftest.$ac_ext <<_ACEOF
7994/* end confdefs.h.  */
7995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7996   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7997#define $ac_func innocuous_$ac_func
7998
7999/* System header to define __stub macros and hopefully few prototypes,
8000    which can conflict with char $ac_func (); below.
8001    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8002    <limits.h> exists even on freestanding compilers.  */
8003
8004#ifdef __STDC__
8005# include <limits.h>
8006#else
8007# include <assert.h>
8008#endif
8009
8010#undef $ac_func
8011
8012/* Override any GCC internal prototype to avoid an error.
8013   Use char because int might match the return type of a GCC
8014   builtin and then its argument prototype would still apply.  */
8015#ifdef __cplusplus
8016extern "C"
8017#endif
8018char $ac_func ();
8019/* The GNU C library defines this for functions which it implements
8020    to always fail with ENOSYS.  Some functions are actually named
8021    something starting with __ and the normal name is an alias.  */
8022#if defined __stub_$ac_func || defined __stub___$ac_func
8023choke me
8024#endif
8025
8026int
8027main ()
8028{
8029return $ac_func ();
8030  ;
8031  return 0;
8032}
8033_ACEOF
8034rm -f conftest.$ac_objext conftest$ac_exeext
8035if { (ac_try="$ac_link"
8036case "(($ac_try" in
8037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038  *) ac_try_echo=$ac_try;;
8039esac
8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041  (eval "$ac_link") 2>conftest.er1
8042  ac_status=$?
8043  grep -v '^ *+' conftest.er1 >conftest.err
8044  rm -f conftest.er1
8045  cat conftest.err >&5
8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047  (exit $ac_status); } && {
8048	 test -z "$ac_c_werror_flag" ||
8049	 test ! -s conftest.err
8050       } && test -s conftest$ac_exeext &&
8051       $as_test_x conftest$ac_exeext; then
8052  eval "$as_ac_var=yes"
8053else
8054  echo "$as_me: failed program was:" >&5
8055sed 's/^/| /' conftest.$ac_ext >&5
8056
8057	eval "$as_ac_var=no"
8058fi
8059
8060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8061      conftest$ac_exeext conftest.$ac_ext
8062fi
8063ac_res=`eval echo '${'$as_ac_var'}'`
8064	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8065echo "${ECHO_T}$ac_res" >&6; }
8066if test `eval echo '${'$as_ac_var'}'` = yes; then
8067  cat >>confdefs.h <<_ACEOF
8068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8069_ACEOF
8070
8071fi
8072done
8073
8074
8075
8076  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8077echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8078if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8079  echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081  cat >conftest.$ac_ext <<_ACEOF
8082/* confdefs.h.  */
8083_ACEOF
8084cat confdefs.h >>conftest.$ac_ext
8085cat >>conftest.$ac_ext <<_ACEOF
8086/* end confdefs.h.  */
8087#include <stdio.h>
8088int
8089main ()
8090{
8091
8092#ifndef feof_unlocked
8093  char *p = (char *) feof_unlocked;
8094#endif
8095
8096  ;
8097  return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext
8101if { (ac_try="$ac_compile"
8102case "(($ac_try" in
8103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104  *) ac_try_echo=$ac_try;;
8105esac
8106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107  (eval "$ac_compile") 2>conftest.er1
8108  ac_status=$?
8109  grep -v '^ *+' conftest.er1 >conftest.err
8110  rm -f conftest.er1
8111  cat conftest.err >&5
8112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113  (exit $ac_status); } && {
8114	 test -z "$ac_c_werror_flag" ||
8115	 test ! -s conftest.err
8116       } && test -s conftest.$ac_objext; then
8117  ac_cv_have_decl_feof_unlocked=yes
8118else
8119  echo "$as_me: failed program was:" >&5
8120sed 's/^/| /' conftest.$ac_ext >&5
8121
8122	ac_cv_have_decl_feof_unlocked=no
8123fi
8124
8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126fi
8127{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8128echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8129  if test $ac_cv_have_decl_feof_unlocked = yes; then
8130    gt_value=1
8131  else
8132    gt_value=0
8133  fi
8134
8135cat >>confdefs.h <<_ACEOF
8136#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8137_ACEOF
8138
8139
8140
8141  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8142echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8143if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8144  echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146  cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h.  */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h.  */
8152#include <stdio.h>
8153int
8154main ()
8155{
8156
8157#ifndef fgets_unlocked
8158  char *p = (char *) fgets_unlocked;
8159#endif
8160
8161  ;
8162  return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext
8166if { (ac_try="$ac_compile"
8167case "(($ac_try" in
8168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169  *) ac_try_echo=$ac_try;;
8170esac
8171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172  (eval "$ac_compile") 2>conftest.er1
8173  ac_status=$?
8174  grep -v '^ *+' conftest.er1 >conftest.err
8175  rm -f conftest.er1
8176  cat conftest.err >&5
8177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178  (exit $ac_status); } && {
8179	 test -z "$ac_c_werror_flag" ||
8180	 test ! -s conftest.err
8181       } && test -s conftest.$ac_objext; then
8182  ac_cv_have_decl_fgets_unlocked=yes
8183else
8184  echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187	ac_cv_have_decl_fgets_unlocked=no
8188fi
8189
8190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191fi
8192{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8193echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8194  if test $ac_cv_have_decl_fgets_unlocked = yes; then
8195    gt_value=1
8196  else
8197    gt_value=0
8198  fi
8199
8200cat >>confdefs.h <<_ACEOF
8201#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8202_ACEOF
8203
8204
8205
8206
8207
8208
8209
8210
8211          am_save_CPPFLAGS="$CPPFLAGS"
8212
8213  for element in $INCICONV; do
8214    haveit=
8215    for x in $CPPFLAGS; do
8216
8217  acl_save_prefix="$prefix"
8218  prefix="$acl_final_prefix"
8219  acl_save_exec_prefix="$exec_prefix"
8220  exec_prefix="$acl_final_exec_prefix"
8221  eval x=\"$x\"
8222  exec_prefix="$acl_save_exec_prefix"
8223  prefix="$acl_save_prefix"
8224
8225      if test "X$x" = "X$element"; then
8226        haveit=yes
8227        break
8228      fi
8229    done
8230    if test -z "$haveit"; then
8231      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8232    fi
8233  done
8234
8235
8236  { echo "$as_me:$LINENO: checking for iconv" >&5
8237echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8238if test "${am_cv_func_iconv+set}" = set; then
8239  echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241
8242    am_cv_func_iconv="no, consider installing GNU libiconv"
8243    am_cv_lib_iconv=no
8244    cat >conftest.$ac_ext <<_ACEOF
8245/* confdefs.h.  */
8246_ACEOF
8247cat confdefs.h >>conftest.$ac_ext
8248cat >>conftest.$ac_ext <<_ACEOF
8249/* end confdefs.h.  */
8250#include <stdlib.h>
8251#include <iconv.h>
8252int
8253main ()
8254{
8255iconv_t cd = iconv_open("","");
8256       iconv(cd,NULL,NULL,NULL,NULL);
8257       iconv_close(cd);
8258  ;
8259  return 0;
8260}
8261_ACEOF
8262rm -f conftest.$ac_objext conftest$ac_exeext
8263if { (ac_try="$ac_link"
8264case "(($ac_try" in
8265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266  *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269  (eval "$ac_link") 2>conftest.er1
8270  ac_status=$?
8271  grep -v '^ *+' conftest.er1 >conftest.err
8272  rm -f conftest.er1
8273  cat conftest.err >&5
8274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275  (exit $ac_status); } && {
8276	 test -z "$ac_c_werror_flag" ||
8277	 test ! -s conftest.err
8278       } && test -s conftest$ac_exeext &&
8279       $as_test_x conftest$ac_exeext; then
8280  am_cv_func_iconv=yes
8281else
8282  echo "$as_me: failed program was:" >&5
8283sed 's/^/| /' conftest.$ac_ext >&5
8284
8285
8286fi
8287
8288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289      conftest$ac_exeext conftest.$ac_ext
8290    if test "$am_cv_func_iconv" != yes; then
8291      am_save_LIBS="$LIBS"
8292      LIBS="$LIBS $LIBICONV"
8293      cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h.  */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h.  */
8299#include <stdlib.h>
8300#include <iconv.h>
8301int
8302main ()
8303{
8304iconv_t cd = iconv_open("","");
8305         iconv(cd,NULL,NULL,NULL,NULL);
8306         iconv_close(cd);
8307  ;
8308  return 0;
8309}
8310_ACEOF
8311rm -f conftest.$ac_objext conftest$ac_exeext
8312if { (ac_try="$ac_link"
8313case "(($ac_try" in
8314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315  *) ac_try_echo=$ac_try;;
8316esac
8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318  (eval "$ac_link") 2>conftest.er1
8319  ac_status=$?
8320  grep -v '^ *+' conftest.er1 >conftest.err
8321  rm -f conftest.er1
8322  cat conftest.err >&5
8323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324  (exit $ac_status); } && {
8325	 test -z "$ac_c_werror_flag" ||
8326	 test ! -s conftest.err
8327       } && test -s conftest$ac_exeext &&
8328       $as_test_x conftest$ac_exeext; then
8329  am_cv_lib_iconv=yes
8330        am_cv_func_iconv=yes
8331else
8332  echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335
8336fi
8337
8338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8339      conftest$ac_exeext conftest.$ac_ext
8340      LIBS="$am_save_LIBS"
8341    fi
8342
8343fi
8344{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8345echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8346  if test "$am_cv_func_iconv" = yes; then
8347
8348cat >>confdefs.h <<\_ACEOF
8349#define HAVE_ICONV 1
8350_ACEOF
8351
8352  fi
8353  if test "$am_cv_lib_iconv" = yes; then
8354    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8355echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8356    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
8357echo "${ECHO_T}$LIBICONV" >&6; }
8358  else
8359            CPPFLAGS="$am_save_CPPFLAGS"
8360    LIBICONV=
8361    LTLIBICONV=
8362  fi
8363
8364
8365
8366  if test "$am_cv_func_iconv" = yes; then
8367    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
8368echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8369    if test "${am_cv_proto_iconv+set}" = set; then
8370  echo $ECHO_N "(cached) $ECHO_C" >&6
8371else
8372
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
8380#include <stdlib.h>
8381#include <iconv.h>
8382extern
8383#ifdef __cplusplus
8384"C"
8385#endif
8386#if defined(__STDC__) || defined(__cplusplus)
8387size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8388#else
8389size_t iconv();
8390#endif
8391
8392int
8393main ()
8394{
8395
8396  ;
8397  return 0;
8398}
8399_ACEOF
8400rm -f conftest.$ac_objext
8401if { (ac_try="$ac_compile"
8402case "(($ac_try" in
8403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404  *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407  (eval "$ac_compile") 2>conftest.er1
8408  ac_status=$?
8409  grep -v '^ *+' conftest.er1 >conftest.err
8410  rm -f conftest.er1
8411  cat conftest.err >&5
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); } && {
8414	 test -z "$ac_c_werror_flag" ||
8415	 test ! -s conftest.err
8416       } && test -s conftest.$ac_objext; then
8417  am_cv_proto_iconv_arg1=""
8418else
8419  echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422	am_cv_proto_iconv_arg1="const"
8423fi
8424
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8427fi
8428
8429    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8430    { echo "$as_me:$LINENO: result: ${ac_t:-
8431         }$am_cv_proto_iconv" >&5
8432echo "${ECHO_T}${ac_t:-
8433         }$am_cv_proto_iconv" >&6; }
8434
8435cat >>confdefs.h <<_ACEOF
8436#define ICONV_CONST $am_cv_proto_iconv_arg1
8437_ACEOF
8438
8439  fi
8440
8441
8442      { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
8443echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
8444if test "${gt_cv_nl_locale_name+set}" = set; then
8445  echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447  cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h.  */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h.  */
8453#include <langinfo.h>
8454#include <locale.h>
8455int
8456main ()
8457{
8458char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
8459  ;
8460  return 0;
8461}
8462_ACEOF
8463rm -f conftest.$ac_objext conftest$ac_exeext
8464if { (ac_try="$ac_link"
8465case "(($ac_try" in
8466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467  *) ac_try_echo=$ac_try;;
8468esac
8469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470  (eval "$ac_link") 2>conftest.er1
8471  ac_status=$?
8472  grep -v '^ *+' conftest.er1 >conftest.err
8473  rm -f conftest.er1
8474  cat conftest.err >&5
8475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476  (exit $ac_status); } && {
8477	 test -z "$ac_c_werror_flag" ||
8478	 test ! -s conftest.err
8479       } && test -s conftest$ac_exeext &&
8480       $as_test_x conftest$ac_exeext; then
8481  gt_cv_nl_locale_name=yes
8482else
8483  echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486	gt_cv_nl_locale_name=no
8487fi
8488
8489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8490      conftest$ac_exeext conftest.$ac_ext
8491
8492fi
8493{ echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
8494echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
8495  if test $gt_cv_nl_locale_name = yes; then
8496
8497cat >>confdefs.h <<\_ACEOF
8498#define HAVE_NL_LOCALE_NAME 1
8499_ACEOF
8500
8501  fi
8502
8503                      for ac_prog in bison
8504do
8505  # Extract the first word of "$ac_prog", so it can be a program name with args.
8506set dummy $ac_prog; ac_word=$2
8507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8509if test "${ac_cv_prog_INTLBISON+set}" = set; then
8510  echo $ECHO_N "(cached) $ECHO_C" >&6
8511else
8512  if test -n "$INTLBISON"; then
8513  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8514else
8515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516for as_dir in $PATH
8517do
8518  IFS=$as_save_IFS
8519  test -z "$as_dir" && as_dir=.
8520  for ac_exec_ext in '' $ac_executable_extensions; do
8521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8522    ac_cv_prog_INTLBISON="$ac_prog"
8523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8524    break 2
8525  fi
8526done
8527done
8528IFS=$as_save_IFS
8529
8530fi
8531fi
8532INTLBISON=$ac_cv_prog_INTLBISON
8533if test -n "$INTLBISON"; then
8534  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
8535echo "${ECHO_T}$INTLBISON" >&6; }
8536else
8537  { echo "$as_me:$LINENO: result: no" >&5
8538echo "${ECHO_T}no" >&6; }
8539fi
8540
8541
8542  test -n "$INTLBISON" && break
8543done
8544
8545  if test -z "$INTLBISON"; then
8546    ac_verc_fail=yes
8547  else
8548        { echo "$as_me:$LINENO: checking version of bison" >&5
8549echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
8550    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8551    case $ac_prog_version in
8552      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8553      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8554         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8555      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8556    esac
8557    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8558echo "${ECHO_T}$ac_prog_version" >&6; }
8559  fi
8560  if test $ac_verc_fail = yes; then
8561    INTLBISON=:
8562  fi
8563
8564
8565  { echo "$as_me:$LINENO: checking for signed" >&5
8566echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8567if test "${bh_cv_c_signed+set}" = set; then
8568  echo $ECHO_N "(cached) $ECHO_C" >&6
8569else
8570  cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h.  */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h.  */
8576
8577int
8578main ()
8579{
8580signed char x;
8581  ;
8582  return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext
8586if { (ac_try="$ac_compile"
8587case "(($ac_try" in
8588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589  *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592  (eval "$ac_compile") 2>conftest.er1
8593  ac_status=$?
8594  grep -v '^ *+' conftest.er1 >conftest.err
8595  rm -f conftest.er1
8596  cat conftest.err >&5
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); } && {
8599	 test -z "$ac_c_werror_flag" ||
8600	 test ! -s conftest.err
8601       } && test -s conftest.$ac_objext; then
8602  bh_cv_c_signed=yes
8603else
8604  echo "$as_me: failed program was:" >&5
8605sed 's/^/| /' conftest.$ac_ext >&5
8606
8607	bh_cv_c_signed=no
8608fi
8609
8610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611fi
8612{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8613echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8614  if test $bh_cv_c_signed = no; then
8615
8616cat >>confdefs.h <<\_ACEOF
8617#define signed
8618_ACEOF
8619
8620  fi
8621
8622
8623  { echo "$as_me:$LINENO: checking for long long" >&5
8624echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8625if test "${ac_cv_type_long_long+set}" = set; then
8626  echo $ECHO_N "(cached) $ECHO_C" >&6
8627else
8628  cat >conftest.$ac_ext <<_ACEOF
8629/* confdefs.h.  */
8630_ACEOF
8631cat confdefs.h >>conftest.$ac_ext
8632cat >>conftest.$ac_ext <<_ACEOF
8633/* end confdefs.h.  */
8634long long ll = 1LL; int i = 63;
8635int
8636main ()
8637{
8638long long llmax = (long long) -1;
8639     return ll << i | ll >> i | llmax / ll | llmax % ll;
8640  ;
8641  return 0;
8642}
8643_ACEOF
8644rm -f conftest.$ac_objext conftest$ac_exeext
8645if { (ac_try="$ac_link"
8646case "(($ac_try" in
8647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648  *) ac_try_echo=$ac_try;;
8649esac
8650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651  (eval "$ac_link") 2>conftest.er1
8652  ac_status=$?
8653  grep -v '^ *+' conftest.er1 >conftest.err
8654  rm -f conftest.er1
8655  cat conftest.err >&5
8656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657  (exit $ac_status); } && {
8658	 test -z "$ac_c_werror_flag" ||
8659	 test ! -s conftest.err
8660       } && test -s conftest$ac_exeext &&
8661       $as_test_x conftest$ac_exeext; then
8662  ac_cv_type_long_long=yes
8663else
8664  echo "$as_me: failed program was:" >&5
8665sed 's/^/| /' conftest.$ac_ext >&5
8666
8667	ac_cv_type_long_long=no
8668fi
8669
8670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8671      conftest$ac_exeext conftest.$ac_ext
8672fi
8673{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8674echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8675  if test $ac_cv_type_long_long = yes; then
8676
8677cat >>confdefs.h <<\_ACEOF
8678#define HAVE_LONG_LONG 1
8679_ACEOF
8680
8681  fi
8682
8683
8684  { echo "$as_me:$LINENO: checking for long double" >&5
8685echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8686if test "${gt_cv_c_long_double+set}" = set; then
8687  echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689  if test "$GCC" = yes; then
8690       gt_cv_c_long_double=yes
8691     else
8692       cat >conftest.$ac_ext <<_ACEOF
8693/* confdefs.h.  */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h.  */
8698
8699         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8700         long double foo = 0.0;
8701         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8702         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8703
8704int
8705main ()
8706{
8707
8708  ;
8709  return 0;
8710}
8711_ACEOF
8712rm -f conftest.$ac_objext
8713if { (ac_try="$ac_compile"
8714case "(($ac_try" in
8715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716  *) ac_try_echo=$ac_try;;
8717esac
8718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719  (eval "$ac_compile") 2>conftest.er1
8720  ac_status=$?
8721  grep -v '^ *+' conftest.er1 >conftest.err
8722  rm -f conftest.er1
8723  cat conftest.err >&5
8724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725  (exit $ac_status); } && {
8726	 test -z "$ac_c_werror_flag" ||
8727	 test ! -s conftest.err
8728       } && test -s conftest.$ac_objext; then
8729  gt_cv_c_long_double=yes
8730else
8731  echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
8733
8734	gt_cv_c_long_double=no
8735fi
8736
8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738     fi
8739fi
8740{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8741echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8742  if test $gt_cv_c_long_double = yes; then
8743
8744cat >>confdefs.h <<\_ACEOF
8745#define HAVE_LONG_DOUBLE 1
8746_ACEOF
8747
8748  fi
8749
8750
8751  { echo "$as_me:$LINENO: checking for wchar_t" >&5
8752echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8753if test "${gt_cv_c_wchar_t+set}" = set; then
8754  echo $ECHO_N "(cached) $ECHO_C" >&6
8755else
8756  cat >conftest.$ac_ext <<_ACEOF
8757/* confdefs.h.  */
8758_ACEOF
8759cat confdefs.h >>conftest.$ac_ext
8760cat >>conftest.$ac_ext <<_ACEOF
8761/* end confdefs.h.  */
8762#include <stddef.h>
8763       wchar_t foo = (wchar_t)'\0';
8764int
8765main ()
8766{
8767
8768  ;
8769  return 0;
8770}
8771_ACEOF
8772rm -f conftest.$ac_objext
8773if { (ac_try="$ac_compile"
8774case "(($ac_try" in
8775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776  *) ac_try_echo=$ac_try;;
8777esac
8778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779  (eval "$ac_compile") 2>conftest.er1
8780  ac_status=$?
8781  grep -v '^ *+' conftest.er1 >conftest.err
8782  rm -f conftest.er1
8783  cat conftest.err >&5
8784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785  (exit $ac_status); } && {
8786	 test -z "$ac_c_werror_flag" ||
8787	 test ! -s conftest.err
8788       } && test -s conftest.$ac_objext; then
8789  gt_cv_c_wchar_t=yes
8790else
8791  echo "$as_me: failed program was:" >&5
8792sed 's/^/| /' conftest.$ac_ext >&5
8793
8794	gt_cv_c_wchar_t=no
8795fi
8796
8797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798fi
8799{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8800echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8801  if test $gt_cv_c_wchar_t = yes; then
8802
8803cat >>confdefs.h <<\_ACEOF
8804#define HAVE_WCHAR_T 1
8805_ACEOF
8806
8807  fi
8808
8809
8810  { echo "$as_me:$LINENO: checking for wint_t" >&5
8811echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8812if test "${gt_cv_c_wint_t+set}" = set; then
8813  echo $ECHO_N "(cached) $ECHO_C" >&6
8814else
8815  cat >conftest.$ac_ext <<_ACEOF
8816/* confdefs.h.  */
8817_ACEOF
8818cat confdefs.h >>conftest.$ac_ext
8819cat >>conftest.$ac_ext <<_ACEOF
8820/* end confdefs.h.  */
8821#include <wchar.h>
8822       wint_t foo = (wchar_t)'\0';
8823int
8824main ()
8825{
8826
8827  ;
8828  return 0;
8829}
8830_ACEOF
8831rm -f conftest.$ac_objext
8832if { (ac_try="$ac_compile"
8833case "(($ac_try" in
8834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835  *) ac_try_echo=$ac_try;;
8836esac
8837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838  (eval "$ac_compile") 2>conftest.er1
8839  ac_status=$?
8840  grep -v '^ *+' conftest.er1 >conftest.err
8841  rm -f conftest.er1
8842  cat conftest.err >&5
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); } && {
8845	 test -z "$ac_c_werror_flag" ||
8846	 test ! -s conftest.err
8847       } && test -s conftest.$ac_objext; then
8848  gt_cv_c_wint_t=yes
8849else
8850  echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853	gt_cv_c_wint_t=no
8854fi
8855
8856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857fi
8858{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8859echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8860  if test $gt_cv_c_wint_t = yes; then
8861
8862cat >>confdefs.h <<\_ACEOF
8863#define HAVE_WINT_T 1
8864_ACEOF
8865
8866  fi
8867
8868
8869
8870
8871  { echo "$as_me:$LINENO: checking for intmax_t" >&5
8872echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8873if test "${gt_cv_c_intmax_t+set}" = set; then
8874  echo $ECHO_N "(cached) $ECHO_C" >&6
8875else
8876  cat >conftest.$ac_ext <<_ACEOF
8877/* confdefs.h.  */
8878_ACEOF
8879cat confdefs.h >>conftest.$ac_ext
8880cat >>conftest.$ac_ext <<_ACEOF
8881/* end confdefs.h.  */
8882
8883#include <stddef.h>
8884#include <stdlib.h>
8885#if HAVE_STDINT_H_WITH_UINTMAX
8886#include <stdint.h>
8887#endif
8888#if HAVE_INTTYPES_H_WITH_UINTMAX
8889#include <inttypes.h>
8890#endif
8891
8892int
8893main ()
8894{
8895intmax_t x = -1;
8896  ;
8897  return 0;
8898}
8899_ACEOF
8900rm -f conftest.$ac_objext
8901if { (ac_try="$ac_compile"
8902case "(($ac_try" in
8903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904  *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907  (eval "$ac_compile") 2>conftest.er1
8908  ac_status=$?
8909  grep -v '^ *+' conftest.er1 >conftest.err
8910  rm -f conftest.er1
8911  cat conftest.err >&5
8912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913  (exit $ac_status); } && {
8914	 test -z "$ac_c_werror_flag" ||
8915	 test ! -s conftest.err
8916       } && test -s conftest.$ac_objext; then
8917  gt_cv_c_intmax_t=yes
8918else
8919  echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922	gt_cv_c_intmax_t=no
8923fi
8924
8925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926fi
8927{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8928echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8929  if test $gt_cv_c_intmax_t = yes; then
8930
8931cat >>confdefs.h <<\_ACEOF
8932#define HAVE_INTMAX_T 1
8933_ACEOF
8934
8935  fi
8936
8937
8938
8939  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8940echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8941if test "${gt_cv_func_printf_posix+set}" = set; then
8942  echo $ECHO_N "(cached) $ECHO_C" >&6
8943else
8944
8945      if test "$cross_compiling" = yes; then
8946
8947        cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h.  */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h.  */
8953
8954#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8955  notposix
8956#endif
8957
8958_ACEOF
8959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960  $EGREP "notposix" >/dev/null 2>&1; then
8961  gt_cv_func_printf_posix="guessing no"
8962else
8963  gt_cv_func_printf_posix="guessing yes"
8964fi
8965rm -f conftest*
8966
8967
8968else
8969  cat >conftest.$ac_ext <<_ACEOF
8970/* confdefs.h.  */
8971_ACEOF
8972cat confdefs.h >>conftest.$ac_ext
8973cat >>conftest.$ac_ext <<_ACEOF
8974/* end confdefs.h.  */
8975
8976#include <stdio.h>
8977#include <string.h>
8978/* The string "%2$d %1$d", with dollar characters protected from the shell's
8979   dollar expansion (possibly an autoconf bug).  */
8980static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8981static char buf[100];
8982int main ()
8983{
8984  sprintf (buf, format, 33, 55);
8985  return (strcmp (buf, "55 33") != 0);
8986}
8987_ACEOF
8988rm -f conftest$ac_exeext
8989if { (ac_try="$ac_link"
8990case "(($ac_try" in
8991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992  *) ac_try_echo=$ac_try;;
8993esac
8994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995  (eval "$ac_link") 2>&5
8996  ac_status=$?
8997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8999  { (case "(($ac_try" in
9000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001  *) ac_try_echo=$ac_try;;
9002esac
9003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004  (eval "$ac_try") 2>&5
9005  ac_status=$?
9006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007  (exit $ac_status); }; }; then
9008  gt_cv_func_printf_posix=yes
9009else
9010  echo "$as_me: program exited with status $ac_status" >&5
9011echo "$as_me: failed program was:" >&5
9012sed 's/^/| /' conftest.$ac_ext >&5
9013
9014( exit $ac_status )
9015gt_cv_func_printf_posix=no
9016fi
9017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9018fi
9019
9020
9021
9022fi
9023{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9024echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9025  case $gt_cv_func_printf_posix in
9026    *yes)
9027
9028cat >>confdefs.h <<\_ACEOF
9029#define HAVE_POSIX_PRINTF 1
9030_ACEOF
9031
9032      ;;
9033  esac
9034
9035
9036    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9037echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9038if test "${ac_cv_gnu_library_2_1+set}" = set; then
9039  echo $ECHO_N "(cached) $ECHO_C" >&6
9040else
9041  cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h.  */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h.  */
9047
9048#include <features.h>
9049#ifdef __GNU_LIBRARY__
9050 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9051  Lucky GNU user
9052 #endif
9053#endif
9054
9055_ACEOF
9056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9057  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9058  ac_cv_gnu_library_2_1=yes
9059else
9060  ac_cv_gnu_library_2_1=no
9061fi
9062rm -f conftest*
9063
9064
9065
9066fi
9067{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9068echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9069
9070    GLIBC21="$ac_cv_gnu_library_2_1"
9071
9072
9073
9074
9075for ac_header in stdint.h
9076do
9077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9079  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9082  echo $ECHO_N "(cached) $ECHO_C" >&6
9083fi
9084ac_res=`eval echo '${'$as_ac_Header'}'`
9085	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9086echo "${ECHO_T}$ac_res" >&6; }
9087else
9088  # Is the header compilable?
9089{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9090echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9091cat >conftest.$ac_ext <<_ACEOF
9092/* confdefs.h.  */
9093_ACEOF
9094cat confdefs.h >>conftest.$ac_ext
9095cat >>conftest.$ac_ext <<_ACEOF
9096/* end confdefs.h.  */
9097$ac_includes_default
9098#include <$ac_header>
9099_ACEOF
9100rm -f conftest.$ac_objext
9101if { (ac_try="$ac_compile"
9102case "(($ac_try" in
9103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104  *) ac_try_echo=$ac_try;;
9105esac
9106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9107  (eval "$ac_compile") 2>conftest.er1
9108  ac_status=$?
9109  grep -v '^ *+' conftest.er1 >conftest.err
9110  rm -f conftest.er1
9111  cat conftest.err >&5
9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); } && {
9114	 test -z "$ac_c_werror_flag" ||
9115	 test ! -s conftest.err
9116       } && test -s conftest.$ac_objext; then
9117  ac_header_compiler=yes
9118else
9119  echo "$as_me: failed program was:" >&5
9120sed 's/^/| /' conftest.$ac_ext >&5
9121
9122	ac_header_compiler=no
9123fi
9124
9125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9127echo "${ECHO_T}$ac_header_compiler" >&6; }
9128
9129# Is the header present?
9130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9132cat >conftest.$ac_ext <<_ACEOF
9133/* confdefs.h.  */
9134_ACEOF
9135cat confdefs.h >>conftest.$ac_ext
9136cat >>conftest.$ac_ext <<_ACEOF
9137/* end confdefs.h.  */
9138#include <$ac_header>
9139_ACEOF
9140if { (ac_try="$ac_cpp conftest.$ac_ext"
9141case "(($ac_try" in
9142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143  *) ac_try_echo=$ac_try;;
9144esac
9145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9147  ac_status=$?
9148  grep -v '^ *+' conftest.er1 >conftest.err
9149  rm -f conftest.er1
9150  cat conftest.err >&5
9151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152  (exit $ac_status); } >/dev/null && {
9153	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9154	 test ! -s conftest.err
9155       }; then
9156  ac_header_preproc=yes
9157else
9158  echo "$as_me: failed program was:" >&5
9159sed 's/^/| /' conftest.$ac_ext >&5
9160
9161  ac_header_preproc=no
9162fi
9163
9164rm -f conftest.err conftest.$ac_ext
9165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9166echo "${ECHO_T}$ac_header_preproc" >&6; }
9167
9168# So?  What about this header?
9169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9170  yes:no: )
9171    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9173    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9175    ac_header_preproc=yes
9176    ;;
9177  no:yes:* )
9178    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9180    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9181echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9182    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9184    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9185echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9186    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9188    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9190
9191    ;;
9192esac
9193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9196  echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198  eval "$as_ac_Header=\$ac_header_preproc"
9199fi
9200ac_res=`eval echo '${'$as_ac_Header'}'`
9201	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9202echo "${ECHO_T}$ac_res" >&6; }
9203
9204fi
9205if test `eval echo '${'$as_ac_Header'}'` = yes; then
9206  cat >>confdefs.h <<_ACEOF
9207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9208_ACEOF
9209
9210fi
9211
9212done
9213
9214    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9215echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
9216  result=
9217  cat >conftest.$ac_ext <<_ACEOF
9218/* confdefs.h.  */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h.  */
9223
9224#include <limits.h>
9225#if HAVE_STDINT_H
9226#include <stdint.h>
9227#endif
9228#ifdef SIZE_MAX
9229Found it
9230#endif
9231
9232_ACEOF
9233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9234  $EGREP "Found it" >/dev/null 2>&1; then
9235  result=yes
9236fi
9237rm -f conftest*
9238
9239  if test -z "$result"; then
9240                if test "$cross_compiling" = yes; then
9241  # Depending upon the size, compute the lo and hi bounds.
9242cat >conftest.$ac_ext <<_ACEOF
9243/* confdefs.h.  */
9244_ACEOF
9245cat confdefs.h >>conftest.$ac_ext
9246cat >>conftest.$ac_ext <<_ACEOF
9247/* end confdefs.h.  */
9248#include <stddef.h>
9249#include <limits.h>
9250int
9251main ()
9252{
9253static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
9254test_array [0] = 0
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260rm -f conftest.$ac_objext
9261if { (ac_try="$ac_compile"
9262case "(($ac_try" in
9263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264  *) ac_try_echo=$ac_try;;
9265esac
9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267  (eval "$ac_compile") 2>conftest.er1
9268  ac_status=$?
9269  grep -v '^ *+' conftest.er1 >conftest.err
9270  rm -f conftest.er1
9271  cat conftest.err >&5
9272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273  (exit $ac_status); } && {
9274	 test -z "$ac_c_werror_flag" ||
9275	 test ! -s conftest.err
9276       } && test -s conftest.$ac_objext; then
9277  ac_lo=0 ac_mid=0
9278  while :; do
9279    cat >conftest.$ac_ext <<_ACEOF
9280/* confdefs.h.  */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h.  */
9285#include <stddef.h>
9286#include <limits.h>
9287int
9288main ()
9289{
9290static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
9291test_array [0] = 0
9292
9293  ;
9294  return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext
9298if { (ac_try="$ac_compile"
9299case "(($ac_try" in
9300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301  *) ac_try_echo=$ac_try;;
9302esac
9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304  (eval "$ac_compile") 2>conftest.er1
9305  ac_status=$?
9306  grep -v '^ *+' conftest.er1 >conftest.err
9307  rm -f conftest.er1
9308  cat conftest.err >&5
9309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310  (exit $ac_status); } && {
9311	 test -z "$ac_c_werror_flag" ||
9312	 test ! -s conftest.err
9313       } && test -s conftest.$ac_objext; then
9314  ac_hi=$ac_mid; break
9315else
9316  echo "$as_me: failed program was:" >&5
9317sed 's/^/| /' conftest.$ac_ext >&5
9318
9319	ac_lo=`expr $ac_mid + 1`
9320			if test $ac_lo -le $ac_mid; then
9321			  ac_lo= ac_hi=
9322			  break
9323			fi
9324			ac_mid=`expr 2 '*' $ac_mid + 1`
9325fi
9326
9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328  done
9329else
9330  echo "$as_me: failed program was:" >&5
9331sed 's/^/| /' conftest.$ac_ext >&5
9332
9333	cat >conftest.$ac_ext <<_ACEOF
9334/* confdefs.h.  */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
9338/* end confdefs.h.  */
9339#include <stddef.h>
9340#include <limits.h>
9341int
9342main ()
9343{
9344static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
9345test_array [0] = 0
9346
9347  ;
9348  return 0;
9349}
9350_ACEOF
9351rm -f conftest.$ac_objext
9352if { (ac_try="$ac_compile"
9353case "(($ac_try" in
9354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355  *) ac_try_echo=$ac_try;;
9356esac
9357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358  (eval "$ac_compile") 2>conftest.er1
9359  ac_status=$?
9360  grep -v '^ *+' conftest.er1 >conftest.err
9361  rm -f conftest.er1
9362  cat conftest.err >&5
9363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364  (exit $ac_status); } && {
9365	 test -z "$ac_c_werror_flag" ||
9366	 test ! -s conftest.err
9367       } && test -s conftest.$ac_objext; then
9368  ac_hi=-1 ac_mid=-1
9369  while :; do
9370    cat >conftest.$ac_ext <<_ACEOF
9371/* confdefs.h.  */
9372_ACEOF
9373cat confdefs.h >>conftest.$ac_ext
9374cat >>conftest.$ac_ext <<_ACEOF
9375/* end confdefs.h.  */
9376#include <stddef.h>
9377#include <limits.h>
9378int
9379main ()
9380{
9381static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
9382test_array [0] = 0
9383
9384  ;
9385  return 0;
9386}
9387_ACEOF
9388rm -f conftest.$ac_objext
9389if { (ac_try="$ac_compile"
9390case "(($ac_try" in
9391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392  *) ac_try_echo=$ac_try;;
9393esac
9394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395  (eval "$ac_compile") 2>conftest.er1
9396  ac_status=$?
9397  grep -v '^ *+' conftest.er1 >conftest.err
9398  rm -f conftest.er1
9399  cat conftest.err >&5
9400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401  (exit $ac_status); } && {
9402	 test -z "$ac_c_werror_flag" ||
9403	 test ! -s conftest.err
9404       } && test -s conftest.$ac_objext; then
9405  ac_lo=$ac_mid; break
9406else
9407  echo "$as_me: failed program was:" >&5
9408sed 's/^/| /' conftest.$ac_ext >&5
9409
9410	ac_hi=`expr '(' $ac_mid ')' - 1`
9411			if test $ac_mid -le $ac_hi; then
9412			  ac_lo= ac_hi=
9413			  break
9414			fi
9415			ac_mid=`expr 2 '*' $ac_mid`
9416fi
9417
9418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419  done
9420else
9421  echo "$as_me: failed program was:" >&5
9422sed 's/^/| /' conftest.$ac_ext >&5
9423
9424	ac_lo= ac_hi=
9425fi
9426
9427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428fi
9429
9430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431# Binary search between lo and hi bounds.
9432while test "x$ac_lo" != "x$ac_hi"; do
9433  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9434  cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h.  */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h.  */
9440#include <stddef.h>
9441#include <limits.h>
9442int
9443main ()
9444{
9445static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
9446test_array [0] = 0
9447
9448  ;
9449  return 0;
9450}
9451_ACEOF
9452rm -f conftest.$ac_objext
9453if { (ac_try="$ac_compile"
9454case "(($ac_try" in
9455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456  *) ac_try_echo=$ac_try;;
9457esac
9458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459  (eval "$ac_compile") 2>conftest.er1
9460  ac_status=$?
9461  grep -v '^ *+' conftest.er1 >conftest.err
9462  rm -f conftest.er1
9463  cat conftest.err >&5
9464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465  (exit $ac_status); } && {
9466	 test -z "$ac_c_werror_flag" ||
9467	 test ! -s conftest.err
9468       } && test -s conftest.$ac_objext; then
9469  ac_hi=$ac_mid
9470else
9471  echo "$as_me: failed program was:" >&5
9472sed 's/^/| /' conftest.$ac_ext >&5
9473
9474	ac_lo=`expr '(' $ac_mid ')' + 1`
9475fi
9476
9477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478done
9479case $ac_lo in
9480?*) size_t_bits_minus_1=$ac_lo;;
9481'') size_t_bits_minus_1= ;;
9482esac
9483else
9484  cat >conftest.$ac_ext <<_ACEOF
9485/* confdefs.h.  */
9486_ACEOF
9487cat confdefs.h >>conftest.$ac_ext
9488cat >>conftest.$ac_ext <<_ACEOF
9489/* end confdefs.h.  */
9490#include <stddef.h>
9491#include <limits.h>
9492static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
9493static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
9494#include <stdio.h>
9495#include <stdlib.h>
9496int
9497main ()
9498{
9499
9500  FILE *f = fopen ("conftest.val", "w");
9501  if (! f)
9502    return 1;
9503  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
9504    {
9505      long int i = longval ();
9506      if (i != (sizeof (size_t) * CHAR_BIT - 1))
9507	return 1;
9508      fprintf (f, "%ld\n", i);
9509    }
9510  else
9511    {
9512      unsigned long int i = ulongval ();
9513      if (i != (sizeof (size_t) * CHAR_BIT - 1))
9514	return 1;
9515      fprintf (f, "%lu\n", i);
9516    }
9517  return ferror (f) || fclose (f) != 0;
9518
9519  ;
9520  return 0;
9521}
9522_ACEOF
9523rm -f conftest$ac_exeext
9524if { (ac_try="$ac_link"
9525case "(($ac_try" in
9526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527  *) ac_try_echo=$ac_try;;
9528esac
9529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530  (eval "$ac_link") 2>&5
9531  ac_status=$?
9532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9534  { (case "(($ac_try" in
9535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536  *) ac_try_echo=$ac_try;;
9537esac
9538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539  (eval "$ac_try") 2>&5
9540  ac_status=$?
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); }; }; then
9543  size_t_bits_minus_1=`cat conftest.val`
9544else
9545  echo "$as_me: program exited with status $ac_status" >&5
9546echo "$as_me: failed program was:" >&5
9547sed 's/^/| /' conftest.$ac_ext >&5
9548
9549( exit $ac_status )
9550size_t_bits_minus_1=
9551fi
9552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9553fi
9554rm -f conftest.val
9555
9556    if test "$cross_compiling" = yes; then
9557  # Depending upon the size, compute the lo and hi bounds.
9558cat >conftest.$ac_ext <<_ACEOF
9559/* confdefs.h.  */
9560_ACEOF
9561cat confdefs.h >>conftest.$ac_ext
9562cat >>conftest.$ac_ext <<_ACEOF
9563/* end confdefs.h.  */
9564#include <stddef.h>
9565int
9566main ()
9567{
9568static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
9569test_array [0] = 0
9570
9571  ;
9572  return 0;
9573}
9574_ACEOF
9575rm -f conftest.$ac_objext
9576if { (ac_try="$ac_compile"
9577case "(($ac_try" in
9578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579  *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582  (eval "$ac_compile") 2>conftest.er1
9583  ac_status=$?
9584  grep -v '^ *+' conftest.er1 >conftest.err
9585  rm -f conftest.er1
9586  cat conftest.err >&5
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); } && {
9589	 test -z "$ac_c_werror_flag" ||
9590	 test ! -s conftest.err
9591       } && test -s conftest.$ac_objext; then
9592  ac_lo=0 ac_mid=0
9593  while :; do
9594    cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h.  */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h.  */
9600#include <stddef.h>
9601int
9602main ()
9603{
9604static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
9605test_array [0] = 0
9606
9607  ;
9608  return 0;
9609}
9610_ACEOF
9611rm -f conftest.$ac_objext
9612if { (ac_try="$ac_compile"
9613case "(($ac_try" in
9614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615  *) ac_try_echo=$ac_try;;
9616esac
9617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618  (eval "$ac_compile") 2>conftest.er1
9619  ac_status=$?
9620  grep -v '^ *+' conftest.er1 >conftest.err
9621  rm -f conftest.er1
9622  cat conftest.err >&5
9623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624  (exit $ac_status); } && {
9625	 test -z "$ac_c_werror_flag" ||
9626	 test ! -s conftest.err
9627       } && test -s conftest.$ac_objext; then
9628  ac_hi=$ac_mid; break
9629else
9630  echo "$as_me: failed program was:" >&5
9631sed 's/^/| /' conftest.$ac_ext >&5
9632
9633	ac_lo=`expr $ac_mid + 1`
9634			if test $ac_lo -le $ac_mid; then
9635			  ac_lo= ac_hi=
9636			  break
9637			fi
9638			ac_mid=`expr 2 '*' $ac_mid + 1`
9639fi
9640
9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642  done
9643else
9644  echo "$as_me: failed program was:" >&5
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
9647	cat >conftest.$ac_ext <<_ACEOF
9648/* confdefs.h.  */
9649_ACEOF
9650cat confdefs.h >>conftest.$ac_ext
9651cat >>conftest.$ac_ext <<_ACEOF
9652/* end confdefs.h.  */
9653#include <stddef.h>
9654int
9655main ()
9656{
9657static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
9658test_array [0] = 0
9659
9660  ;
9661  return 0;
9662}
9663_ACEOF
9664rm -f conftest.$ac_objext
9665if { (ac_try="$ac_compile"
9666case "(($ac_try" in
9667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668  *) ac_try_echo=$ac_try;;
9669esac
9670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671  (eval "$ac_compile") 2>conftest.er1
9672  ac_status=$?
9673  grep -v '^ *+' conftest.er1 >conftest.err
9674  rm -f conftest.er1
9675  cat conftest.err >&5
9676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677  (exit $ac_status); } && {
9678	 test -z "$ac_c_werror_flag" ||
9679	 test ! -s conftest.err
9680       } && test -s conftest.$ac_objext; then
9681  ac_hi=-1 ac_mid=-1
9682  while :; do
9683    cat >conftest.$ac_ext <<_ACEOF
9684/* confdefs.h.  */
9685_ACEOF
9686cat confdefs.h >>conftest.$ac_ext
9687cat >>conftest.$ac_ext <<_ACEOF
9688/* end confdefs.h.  */
9689#include <stddef.h>
9690int
9691main ()
9692{
9693static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
9694test_array [0] = 0
9695
9696  ;
9697  return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext
9701if { (ac_try="$ac_compile"
9702case "(($ac_try" in
9703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704  *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707  (eval "$ac_compile") 2>conftest.er1
9708  ac_status=$?
9709  grep -v '^ *+' conftest.er1 >conftest.err
9710  rm -f conftest.er1
9711  cat conftest.err >&5
9712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713  (exit $ac_status); } && {
9714	 test -z "$ac_c_werror_flag" ||
9715	 test ! -s conftest.err
9716       } && test -s conftest.$ac_objext; then
9717  ac_lo=$ac_mid; break
9718else
9719  echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722	ac_hi=`expr '(' $ac_mid ')' - 1`
9723			if test $ac_mid -le $ac_hi; then
9724			  ac_lo= ac_hi=
9725			  break
9726			fi
9727			ac_mid=`expr 2 '*' $ac_mid`
9728fi
9729
9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731  done
9732else
9733  echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
9736	ac_lo= ac_hi=
9737fi
9738
9739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740fi
9741
9742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743# Binary search between lo and hi bounds.
9744while test "x$ac_lo" != "x$ac_hi"; do
9745  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9746  cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h.  */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h.  */
9752#include <stddef.h>
9753int
9754main ()
9755{
9756static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
9757test_array [0] = 0
9758
9759  ;
9760  return 0;
9761}
9762_ACEOF
9763rm -f conftest.$ac_objext
9764if { (ac_try="$ac_compile"
9765case "(($ac_try" in
9766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767  *) ac_try_echo=$ac_try;;
9768esac
9769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770  (eval "$ac_compile") 2>conftest.er1
9771  ac_status=$?
9772  grep -v '^ *+' conftest.er1 >conftest.err
9773  rm -f conftest.er1
9774  cat conftest.err >&5
9775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776  (exit $ac_status); } && {
9777	 test -z "$ac_c_werror_flag" ||
9778	 test ! -s conftest.err
9779       } && test -s conftest.$ac_objext; then
9780  ac_hi=$ac_mid
9781else
9782  echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
9785	ac_lo=`expr '(' $ac_mid ')' + 1`
9786fi
9787
9788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789done
9790case $ac_lo in
9791?*) fits_in_uint=$ac_lo;;
9792'') fits_in_uint= ;;
9793esac
9794else
9795  cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h.  */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h.  */
9801#include <stddef.h>
9802static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
9803static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
9804#include <stdio.h>
9805#include <stdlib.h>
9806int
9807main ()
9808{
9809
9810  FILE *f = fopen ("conftest.val", "w");
9811  if (! f)
9812    return 1;
9813  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
9814    {
9815      long int i = longval ();
9816      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
9817	return 1;
9818      fprintf (f, "%ld\n", i);
9819    }
9820  else
9821    {
9822      unsigned long int i = ulongval ();
9823      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
9824	return 1;
9825      fprintf (f, "%lu\n", i);
9826    }
9827  return ferror (f) || fclose (f) != 0;
9828
9829  ;
9830  return 0;
9831}
9832_ACEOF
9833rm -f conftest$ac_exeext
9834if { (ac_try="$ac_link"
9835case "(($ac_try" in
9836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837  *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840  (eval "$ac_link") 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9844  { (case "(($ac_try" in
9845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846  *) ac_try_echo=$ac_try;;
9847esac
9848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849  (eval "$ac_try") 2>&5
9850  ac_status=$?
9851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); }; }; then
9853  fits_in_uint=`cat conftest.val`
9854else
9855  echo "$as_me: program exited with status $ac_status" >&5
9856echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
9859( exit $ac_status )
9860fits_in_uint=
9861fi
9862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9863fi
9864rm -f conftest.val
9865
9866    if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9867      if test $fits_in_uint = 1; then
9868                        cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h.  */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h.  */
9874#include <stddef.h>
9875          extern size_t foo;
9876          extern unsigned long foo;
9877
9878int
9879main ()
9880{
9881
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext
9887if { (ac_try="$ac_compile"
9888case "(($ac_try" in
9889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890  *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893  (eval "$ac_compile") 2>conftest.er1
9894  ac_status=$?
9895  grep -v '^ *+' conftest.er1 >conftest.err
9896  rm -f conftest.er1
9897  cat conftest.err >&5
9898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899  (exit $ac_status); } && {
9900	 test -z "$ac_c_werror_flag" ||
9901	 test ! -s conftest.err
9902       } && test -s conftest.$ac_objext; then
9903  fits_in_uint=0
9904else
9905  echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
9908
9909fi
9910
9911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912      fi
9913                        if test $fits_in_uint = 1; then
9914        result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9915      else
9916        result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9917      fi
9918    else
9919            result='((size_t)~(size_t)0)'
9920    fi
9921  fi
9922  { echo "$as_me:$LINENO: result: $result" >&5
9923echo "${ECHO_T}$result" >&6; }
9924  if test "$result" != yes; then
9925
9926cat >>confdefs.h <<_ACEOF
9927#define SIZE_MAX $result
9928_ACEOF
9929
9930  fi
9931
9932
9933
9934
9935
9936for ac_header in stdint.h
9937do
9938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9940  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9943  echo $ECHO_N "(cached) $ECHO_C" >&6
9944fi
9945ac_res=`eval echo '${'$as_ac_Header'}'`
9946	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9947echo "${ECHO_T}$ac_res" >&6; }
9948else
9949  # Is the header compilable?
9950{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9952cat >conftest.$ac_ext <<_ACEOF
9953/* confdefs.h.  */
9954_ACEOF
9955cat confdefs.h >>conftest.$ac_ext
9956cat >>conftest.$ac_ext <<_ACEOF
9957/* end confdefs.h.  */
9958$ac_includes_default
9959#include <$ac_header>
9960_ACEOF
9961rm -f conftest.$ac_objext
9962if { (ac_try="$ac_compile"
9963case "(($ac_try" in
9964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965  *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968  (eval "$ac_compile") 2>conftest.er1
9969  ac_status=$?
9970  grep -v '^ *+' conftest.er1 >conftest.err
9971  rm -f conftest.er1
9972  cat conftest.err >&5
9973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974  (exit $ac_status); } && {
9975	 test -z "$ac_c_werror_flag" ||
9976	 test ! -s conftest.err
9977       } && test -s conftest.$ac_objext; then
9978  ac_header_compiler=yes
9979else
9980  echo "$as_me: failed program was:" >&5
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
9983	ac_header_compiler=no
9984fi
9985
9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9988echo "${ECHO_T}$ac_header_compiler" >&6; }
9989
9990# Is the header present?
9991{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9993cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h.  */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h.  */
9999#include <$ac_header>
10000_ACEOF
10001if { (ac_try="$ac_cpp conftest.$ac_ext"
10002case "(($ac_try" in
10003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004  *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10008  ac_status=$?
10009  grep -v '^ *+' conftest.er1 >conftest.err
10010  rm -f conftest.er1
10011  cat conftest.err >&5
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); } >/dev/null && {
10014	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10015	 test ! -s conftest.err
10016       }; then
10017  ac_header_preproc=yes
10018else
10019  echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022  ac_header_preproc=no
10023fi
10024
10025rm -f conftest.err conftest.$ac_ext
10026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10027echo "${ECHO_T}$ac_header_preproc" >&6; }
10028
10029# So?  What about this header?
10030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10031  yes:no: )
10032    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10034    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10036    ac_header_preproc=yes
10037    ;;
10038  no:yes:* )
10039    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10041    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10042echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10043    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10045    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10046echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10047    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10049    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10051
10052    ;;
10053esac
10054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10057  echo $ECHO_N "(cached) $ECHO_C" >&6
10058else
10059  eval "$as_ac_Header=\$ac_header_preproc"
10060fi
10061ac_res=`eval echo '${'$as_ac_Header'}'`
10062	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10063echo "${ECHO_T}$ac_res" >&6; }
10064
10065fi
10066if test `eval echo '${'$as_ac_Header'}'` = yes; then
10067  cat >>confdefs.h <<_ACEOF
10068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10069_ACEOF
10070
10071fi
10072
10073done
10074
10075
10076
10077    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
10078echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
10079if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
10080  echo $ECHO_N "(cached) $ECHO_C" >&6
10081else
10082  gt_save_LIBS="$LIBS"
10083     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10084     cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h.  */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h.  */
10090#include <CoreFoundation/CFPreferences.h>
10091int
10092main ()
10093{
10094CFPreferencesCopyAppValue(NULL, NULL)
10095  ;
10096  return 0;
10097}
10098_ACEOF
10099rm -f conftest.$ac_objext conftest$ac_exeext
10100if { (ac_try="$ac_link"
10101case "(($ac_try" in
10102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103  *) ac_try_echo=$ac_try;;
10104esac
10105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106  (eval "$ac_link") 2>conftest.er1
10107  ac_status=$?
10108  grep -v '^ *+' conftest.er1 >conftest.err
10109  rm -f conftest.er1
10110  cat conftest.err >&5
10111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112  (exit $ac_status); } && {
10113	 test -z "$ac_c_werror_flag" ||
10114	 test ! -s conftest.err
10115       } && test -s conftest$ac_exeext &&
10116       $as_test_x conftest$ac_exeext; then
10117  gt_cv_func_CFPreferencesCopyAppValue=yes
10118else
10119  echo "$as_me: failed program was:" >&5
10120sed 's/^/| /' conftest.$ac_ext >&5
10121
10122	gt_cv_func_CFPreferencesCopyAppValue=no
10123fi
10124
10125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10126      conftest$ac_exeext conftest.$ac_ext
10127     LIBS="$gt_save_LIBS"
10128fi
10129{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10130echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10131  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10132
10133cat >>confdefs.h <<\_ACEOF
10134#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10135_ACEOF
10136
10137  fi
10138    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
10139echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
10140if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
10141  echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143  gt_save_LIBS="$LIBS"
10144     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10145     cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h.  */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h.  */
10151#include <CoreFoundation/CFLocale.h>
10152int
10153main ()
10154{
10155CFLocaleCopyCurrent();
10156  ;
10157  return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164  *) ac_try_echo=$ac_try;;
10165esac
10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167  (eval "$ac_link") 2>conftest.er1
10168  ac_status=$?
10169  grep -v '^ *+' conftest.er1 >conftest.err
10170  rm -f conftest.er1
10171  cat conftest.err >&5
10172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173  (exit $ac_status); } && {
10174	 test -z "$ac_c_werror_flag" ||
10175	 test ! -s conftest.err
10176       } && test -s conftest$ac_exeext &&
10177       $as_test_x conftest$ac_exeext; then
10178  gt_cv_func_CFLocaleCopyCurrent=yes
10179else
10180  echo "$as_me: failed program was:" >&5
10181sed 's/^/| /' conftest.$ac_ext >&5
10182
10183	gt_cv_func_CFLocaleCopyCurrent=no
10184fi
10185
10186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187      conftest$ac_exeext conftest.$ac_ext
10188     LIBS="$gt_save_LIBS"
10189fi
10190{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10191echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10192  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10193
10194cat >>confdefs.h <<\_ACEOF
10195#define HAVE_CFLOCALECOPYCURRENT 1
10196_ACEOF
10197
10198  fi
10199  INTL_MACOSX_LIBS=
10200  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10201    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10202  fi
10203
10204
10205
10206
10207
10208
10209
10210  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10211echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10212if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10213  echo $ECHO_N "(cached) $ECHO_C" >&6
10214else
10215  cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h.  */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h.  */
10221$ac_includes_default
10222typedef ptrdiff_t ac__type_new_;
10223int
10224main ()
10225{
10226if ((ac__type_new_ *) 0)
10227  return 0;
10228if (sizeof (ac__type_new_))
10229  return 0;
10230  ;
10231  return 0;
10232}
10233_ACEOF
10234rm -f conftest.$ac_objext
10235if { (ac_try="$ac_compile"
10236case "(($ac_try" in
10237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238  *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241  (eval "$ac_compile") 2>conftest.er1
10242  ac_status=$?
10243  grep -v '^ *+' conftest.er1 >conftest.err
10244  rm -f conftest.er1
10245  cat conftest.err >&5
10246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247  (exit $ac_status); } && {
10248	 test -z "$ac_c_werror_flag" ||
10249	 test ! -s conftest.err
10250       } && test -s conftest.$ac_objext; then
10251  ac_cv_type_ptrdiff_t=yes
10252else
10253  echo "$as_me: failed program was:" >&5
10254sed 's/^/| /' conftest.$ac_ext >&5
10255
10256	ac_cv_type_ptrdiff_t=no
10257fi
10258
10259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260fi
10261{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10262echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10263if test $ac_cv_type_ptrdiff_t = yes; then
10264  :
10265else
10266
10267cat >>confdefs.h <<\_ACEOF
10268#define ptrdiff_t long
10269_ACEOF
10270
10271
10272fi
10273
10274
10275
10276
10277for ac_header in stddef.h stdlib.h string.h
10278do
10279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10281  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10284  echo $ECHO_N "(cached) $ECHO_C" >&6
10285fi
10286ac_res=`eval echo '${'$as_ac_Header'}'`
10287	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10288echo "${ECHO_T}$ac_res" >&6; }
10289else
10290  # Is the header compilable?
10291{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10293cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299$ac_includes_default
10300#include <$ac_header>
10301_ACEOF
10302rm -f conftest.$ac_objext
10303if { (ac_try="$ac_compile"
10304case "(($ac_try" in
10305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306  *) ac_try_echo=$ac_try;;
10307esac
10308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309  (eval "$ac_compile") 2>conftest.er1
10310  ac_status=$?
10311  grep -v '^ *+' conftest.er1 >conftest.err
10312  rm -f conftest.er1
10313  cat conftest.err >&5
10314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315  (exit $ac_status); } && {
10316	 test -z "$ac_c_werror_flag" ||
10317	 test ! -s conftest.err
10318       } && test -s conftest.$ac_objext; then
10319  ac_header_compiler=yes
10320else
10321  echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324	ac_header_compiler=no
10325fi
10326
10327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10329echo "${ECHO_T}$ac_header_compiler" >&6; }
10330
10331# Is the header present?
10332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10334cat >conftest.$ac_ext <<_ACEOF
10335/* confdefs.h.  */
10336_ACEOF
10337cat confdefs.h >>conftest.$ac_ext
10338cat >>conftest.$ac_ext <<_ACEOF
10339/* end confdefs.h.  */
10340#include <$ac_header>
10341_ACEOF
10342if { (ac_try="$ac_cpp conftest.$ac_ext"
10343case "(($ac_try" in
10344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345  *) ac_try_echo=$ac_try;;
10346esac
10347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10349  ac_status=$?
10350  grep -v '^ *+' conftest.er1 >conftest.err
10351  rm -f conftest.er1
10352  cat conftest.err >&5
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); } >/dev/null && {
10355	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10356	 test ! -s conftest.err
10357       }; then
10358  ac_header_preproc=yes
10359else
10360  echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
10363  ac_header_preproc=no
10364fi
10365
10366rm -f conftest.err conftest.$ac_ext
10367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10368echo "${ECHO_T}$ac_header_preproc" >&6; }
10369
10370# So?  What about this header?
10371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10372  yes:no: )
10373    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10375    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10377    ac_header_preproc=yes
10378    ;;
10379  no:yes:* )
10380    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10382    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10383echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10384    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10386    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10387echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10388    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10390    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10392
10393    ;;
10394esac
10395{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398  echo $ECHO_N "(cached) $ECHO_C" >&6
10399else
10400  eval "$as_ac_Header=\$ac_header_preproc"
10401fi
10402ac_res=`eval echo '${'$as_ac_Header'}'`
10403	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10404echo "${ECHO_T}$ac_res" >&6; }
10405
10406fi
10407if test `eval echo '${'$as_ac_Header'}'` = yes; then
10408  cat >>confdefs.h <<_ACEOF
10409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10410_ACEOF
10411
10412fi
10413
10414done
10415
10416
10417
10418
10419
10420
10421
10422
10423for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
10424do
10425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10426{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10428if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10429  echo $ECHO_N "(cached) $ECHO_C" >&6
10430else
10431  cat >conftest.$ac_ext <<_ACEOF
10432/* confdefs.h.  */
10433_ACEOF
10434cat confdefs.h >>conftest.$ac_ext
10435cat >>conftest.$ac_ext <<_ACEOF
10436/* end confdefs.h.  */
10437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10438   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10439#define $ac_func innocuous_$ac_func
10440
10441/* System header to define __stub macros and hopefully few prototypes,
10442    which can conflict with char $ac_func (); below.
10443    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10444    <limits.h> exists even on freestanding compilers.  */
10445
10446#ifdef __STDC__
10447# include <limits.h>
10448#else
10449# include <assert.h>
10450#endif
10451
10452#undef $ac_func
10453
10454/* Override any GCC internal prototype to avoid an error.
10455   Use char because int might match the return type of a GCC
10456   builtin and then its argument prototype would still apply.  */
10457#ifdef __cplusplus
10458extern "C"
10459#endif
10460char $ac_func ();
10461/* The GNU C library defines this for functions which it implements
10462    to always fail with ENOSYS.  Some functions are actually named
10463    something starting with __ and the normal name is an alias.  */
10464#if defined __stub_$ac_func || defined __stub___$ac_func
10465choke me
10466#endif
10467
10468int
10469main ()
10470{
10471return $ac_func ();
10472  ;
10473  return 0;
10474}
10475_ACEOF
10476rm -f conftest.$ac_objext conftest$ac_exeext
10477if { (ac_try="$ac_link"
10478case "(($ac_try" in
10479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480  *) ac_try_echo=$ac_try;;
10481esac
10482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483  (eval "$ac_link") 2>conftest.er1
10484  ac_status=$?
10485  grep -v '^ *+' conftest.er1 >conftest.err
10486  rm -f conftest.er1
10487  cat conftest.err >&5
10488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489  (exit $ac_status); } && {
10490	 test -z "$ac_c_werror_flag" ||
10491	 test ! -s conftest.err
10492       } && test -s conftest$ac_exeext &&
10493       $as_test_x conftest$ac_exeext; then
10494  eval "$as_ac_var=yes"
10495else
10496  echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499	eval "$as_ac_var=no"
10500fi
10501
10502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10503      conftest$ac_exeext conftest.$ac_ext
10504fi
10505ac_res=`eval echo '${'$as_ac_var'}'`
10506	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10507echo "${ECHO_T}$ac_res" >&6; }
10508if test `eval echo '${'$as_ac_var'}'` = yes; then
10509  cat >>confdefs.h <<_ACEOF
10510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10511_ACEOF
10512
10513fi
10514done
10515
10516
10517
10518  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10519echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
10520if test "${ac_cv_have_decl__snprintf+set}" = set; then
10521  echo $ECHO_N "(cached) $ECHO_C" >&6
10522else
10523  cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h.  */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h.  */
10529#include <stdio.h>
10530int
10531main ()
10532{
10533
10534#ifndef _snprintf
10535  char *p = (char *) _snprintf;
10536#endif
10537
10538  ;
10539  return 0;
10540}
10541_ACEOF
10542rm -f conftest.$ac_objext
10543if { (ac_try="$ac_compile"
10544case "(($ac_try" in
10545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546  *) ac_try_echo=$ac_try;;
10547esac
10548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549  (eval "$ac_compile") 2>conftest.er1
10550  ac_status=$?
10551  grep -v '^ *+' conftest.er1 >conftest.err
10552  rm -f conftest.er1
10553  cat conftest.err >&5
10554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555  (exit $ac_status); } && {
10556	 test -z "$ac_c_werror_flag" ||
10557	 test ! -s conftest.err
10558       } && test -s conftest.$ac_objext; then
10559  ac_cv_have_decl__snprintf=yes
10560else
10561  echo "$as_me: failed program was:" >&5
10562sed 's/^/| /' conftest.$ac_ext >&5
10563
10564	ac_cv_have_decl__snprintf=no
10565fi
10566
10567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568fi
10569{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10570echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
10571  if test $ac_cv_have_decl__snprintf = yes; then
10572    gt_value=1
10573  else
10574    gt_value=0
10575  fi
10576
10577cat >>confdefs.h <<_ACEOF
10578#define HAVE_DECL__SNPRINTF $gt_value
10579_ACEOF
10580
10581
10582
10583  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10584echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
10585if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10586  echo $ECHO_N "(cached) $ECHO_C" >&6
10587else
10588  cat >conftest.$ac_ext <<_ACEOF
10589/* confdefs.h.  */
10590_ACEOF
10591cat confdefs.h >>conftest.$ac_ext
10592cat >>conftest.$ac_ext <<_ACEOF
10593/* end confdefs.h.  */
10594#include <stdio.h>
10595int
10596main ()
10597{
10598
10599#ifndef _snwprintf
10600  char *p = (char *) _snwprintf;
10601#endif
10602
10603  ;
10604  return 0;
10605}
10606_ACEOF
10607rm -f conftest.$ac_objext
10608if { (ac_try="$ac_compile"
10609case "(($ac_try" in
10610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611  *) ac_try_echo=$ac_try;;
10612esac
10613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614  (eval "$ac_compile") 2>conftest.er1
10615  ac_status=$?
10616  grep -v '^ *+' conftest.er1 >conftest.err
10617  rm -f conftest.er1
10618  cat conftest.err >&5
10619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620  (exit $ac_status); } && {
10621	 test -z "$ac_c_werror_flag" ||
10622	 test ! -s conftest.err
10623       } && test -s conftest.$ac_objext; then
10624  ac_cv_have_decl__snwprintf=yes
10625else
10626  echo "$as_me: failed program was:" >&5
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
10629	ac_cv_have_decl__snwprintf=no
10630fi
10631
10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633fi
10634{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10635echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
10636  if test $ac_cv_have_decl__snwprintf = yes; then
10637    gt_value=1
10638  else
10639    gt_value=0
10640  fi
10641
10642cat >>confdefs.h <<_ACEOF
10643#define HAVE_DECL__SNWPRINTF $gt_value
10644_ACEOF
10645
10646
10647
10648
10649  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10650echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10651if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10652  echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654  cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h.  */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h.  */
10660#include <stdio.h>
10661int
10662main ()
10663{
10664
10665#ifndef getc_unlocked
10666  char *p = (char *) getc_unlocked;
10667#endif
10668
10669  ;
10670  return 0;
10671}
10672_ACEOF
10673rm -f conftest.$ac_objext
10674if { (ac_try="$ac_compile"
10675case "(($ac_try" in
10676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677  *) ac_try_echo=$ac_try;;
10678esac
10679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680  (eval "$ac_compile") 2>conftest.er1
10681  ac_status=$?
10682  grep -v '^ *+' conftest.er1 >conftest.err
10683  rm -f conftest.er1
10684  cat conftest.err >&5
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); } && {
10687	 test -z "$ac_c_werror_flag" ||
10688	 test ! -s conftest.err
10689       } && test -s conftest.$ac_objext; then
10690  ac_cv_have_decl_getc_unlocked=yes
10691else
10692  echo "$as_me: failed program was:" >&5
10693sed 's/^/| /' conftest.$ac_ext >&5
10694
10695	ac_cv_have_decl_getc_unlocked=no
10696fi
10697
10698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699fi
10700{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10701echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10702  if test $ac_cv_have_decl_getc_unlocked = yes; then
10703    gt_value=1
10704  else
10705    gt_value=0
10706  fi
10707
10708cat >>confdefs.h <<_ACEOF
10709#define HAVE_DECL_GETC_UNLOCKED $gt_value
10710_ACEOF
10711
10712
10713
10714  case $gt_cv_func_printf_posix in
10715    *yes) HAVE_POSIX_PRINTF=1 ;;
10716    *) HAVE_POSIX_PRINTF=0 ;;
10717  esac
10718
10719  if test "$ac_cv_func_asprintf" = yes; then
10720    HAVE_ASPRINTF=1
10721  else
10722    HAVE_ASPRINTF=0
10723  fi
10724
10725  if test "$ac_cv_func_snprintf" = yes; then
10726    HAVE_SNPRINTF=1
10727  else
10728    HAVE_SNPRINTF=0
10729  fi
10730
10731  if test "$ac_cv_func_wprintf" = yes; then
10732    HAVE_WPRINTF=1
10733  else
10734    HAVE_WPRINTF=0
10735  fi
10736
10737
10738
10739  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10740echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10741if test "${am_cv_langinfo_codeset+set}" = set; then
10742  echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744  cat >conftest.$ac_ext <<_ACEOF
10745/* confdefs.h.  */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
10749/* end confdefs.h.  */
10750#include <langinfo.h>
10751int
10752main ()
10753{
10754char* cs = nl_langinfo(CODESET);
10755  ;
10756  return 0;
10757}
10758_ACEOF
10759rm -f conftest.$ac_objext conftest$ac_exeext
10760if { (ac_try="$ac_link"
10761case "(($ac_try" in
10762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763  *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766  (eval "$ac_link") 2>conftest.er1
10767  ac_status=$?
10768  grep -v '^ *+' conftest.er1 >conftest.err
10769  rm -f conftest.er1
10770  cat conftest.err >&5
10771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772  (exit $ac_status); } && {
10773	 test -z "$ac_c_werror_flag" ||
10774	 test ! -s conftest.err
10775       } && test -s conftest$ac_exeext &&
10776       $as_test_x conftest$ac_exeext; then
10777  am_cv_langinfo_codeset=yes
10778else
10779  echo "$as_me: failed program was:" >&5
10780sed 's/^/| /' conftest.$ac_ext >&5
10781
10782	am_cv_langinfo_codeset=no
10783fi
10784
10785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10786      conftest$ac_exeext conftest.$ac_ext
10787
10788fi
10789{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10790echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10791  if test $am_cv_langinfo_codeset = yes; then
10792
10793cat >>confdefs.h <<\_ACEOF
10794#define HAVE_LANGINFO_CODESET 1
10795_ACEOF
10796
10797  fi
10798
10799
10800  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10801echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10802if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
10803  echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805  cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h.  */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h.  */
10811#include <locale.h>
10812int
10813main ()
10814{
10815return LC_MESSAGES
10816  ;
10817  return 0;
10818}
10819_ACEOF
10820rm -f conftest.$ac_objext conftest$ac_exeext
10821if { (ac_try="$ac_link"
10822case "(($ac_try" in
10823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824  *) ac_try_echo=$ac_try;;
10825esac
10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827  (eval "$ac_link") 2>conftest.er1
10828  ac_status=$?
10829  grep -v '^ *+' conftest.er1 >conftest.err
10830  rm -f conftest.er1
10831  cat conftest.err >&5
10832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833  (exit $ac_status); } && {
10834	 test -z "$ac_c_werror_flag" ||
10835	 test ! -s conftest.err
10836       } && test -s conftest$ac_exeext &&
10837       $as_test_x conftest$ac_exeext; then
10838  gt_cv_val_LC_MESSAGES=yes
10839else
10840  echo "$as_me: failed program was:" >&5
10841sed 's/^/| /' conftest.$ac_ext >&5
10842
10843	gt_cv_val_LC_MESSAGES=no
10844fi
10845
10846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10847      conftest$ac_exeext conftest.$ac_ext
10848fi
10849{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
10850echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
10851  if test $gt_cv_val_LC_MESSAGES = yes; then
10852
10853cat >>confdefs.h <<\_ACEOF
10854#define HAVE_LC_MESSAGES 1
10855_ACEOF
10856
10857  fi
10858
10859
10860                if test "$enable_shared" = yes; then
10861    case "$host_os" in
10862      cygwin*) is_woe32dll=yes ;;
10863      *) is_woe32dll=no ;;
10864    esac
10865  else
10866    is_woe32dll=no
10867  fi
10868  WOE32DLL=$is_woe32dll
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
10890echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
10891if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
10892  echo $ECHO_N "(cached) $ECHO_C" >&6
10893else
10894  gt_save_LIBS="$LIBS"
10895     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10896     cat >conftest.$ac_ext <<_ACEOF
10897/* confdefs.h.  */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h.  */
10902#include <CoreFoundation/CFPreferences.h>
10903int
10904main ()
10905{
10906CFPreferencesCopyAppValue(NULL, NULL)
10907  ;
10908  return 0;
10909}
10910_ACEOF
10911rm -f conftest.$ac_objext conftest$ac_exeext
10912if { (ac_try="$ac_link"
10913case "(($ac_try" in
10914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915  *) ac_try_echo=$ac_try;;
10916esac
10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918  (eval "$ac_link") 2>conftest.er1
10919  ac_status=$?
10920  grep -v '^ *+' conftest.er1 >conftest.err
10921  rm -f conftest.er1
10922  cat conftest.err >&5
10923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924  (exit $ac_status); } && {
10925	 test -z "$ac_c_werror_flag" ||
10926	 test ! -s conftest.err
10927       } && test -s conftest$ac_exeext &&
10928       $as_test_x conftest$ac_exeext; then
10929  gt_cv_func_CFPreferencesCopyAppValue=yes
10930else
10931  echo "$as_me: failed program was:" >&5
10932sed 's/^/| /' conftest.$ac_ext >&5
10933
10934	gt_cv_func_CFPreferencesCopyAppValue=no
10935fi
10936
10937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10938      conftest$ac_exeext conftest.$ac_ext
10939     LIBS="$gt_save_LIBS"
10940fi
10941{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10942echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10943  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10944
10945cat >>confdefs.h <<\_ACEOF
10946#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10947_ACEOF
10948
10949  fi
10950    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
10951echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
10952if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
10953  echo $ECHO_N "(cached) $ECHO_C" >&6
10954else
10955  gt_save_LIBS="$LIBS"
10956     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10957     cat >conftest.$ac_ext <<_ACEOF
10958/* confdefs.h.  */
10959_ACEOF
10960cat confdefs.h >>conftest.$ac_ext
10961cat >>conftest.$ac_ext <<_ACEOF
10962/* end confdefs.h.  */
10963#include <CoreFoundation/CFLocale.h>
10964int
10965main ()
10966{
10967CFLocaleCopyCurrent();
10968  ;
10969  return 0;
10970}
10971_ACEOF
10972rm -f conftest.$ac_objext conftest$ac_exeext
10973if { (ac_try="$ac_link"
10974case "(($ac_try" in
10975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976  *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979  (eval "$ac_link") 2>conftest.er1
10980  ac_status=$?
10981  grep -v '^ *+' conftest.er1 >conftest.err
10982  rm -f conftest.er1
10983  cat conftest.err >&5
10984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985  (exit $ac_status); } && {
10986	 test -z "$ac_c_werror_flag" ||
10987	 test ! -s conftest.err
10988       } && test -s conftest$ac_exeext &&
10989       $as_test_x conftest$ac_exeext; then
10990  gt_cv_func_CFLocaleCopyCurrent=yes
10991else
10992  echo "$as_me: failed program was:" >&5
10993sed 's/^/| /' conftest.$ac_ext >&5
10994
10995	gt_cv_func_CFLocaleCopyCurrent=no
10996fi
10997
10998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999      conftest$ac_exeext conftest.$ac_ext
11000     LIBS="$gt_save_LIBS"
11001fi
11002{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11003echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11004  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11005
11006cat >>confdefs.h <<\_ACEOF
11007#define HAVE_CFLOCALECOPYCURRENT 1
11008_ACEOF
11009
11010  fi
11011  INTL_MACOSX_LIBS=
11012  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11013    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11014  fi
11015
11016
11017
11018
11019
11020
11021    BUILD_INCLUDED_LIBINTL=no
11022    USE_INCLUDED_LIBINTL=no
11023
11024  LIBINTL=
11025  LTLIBINTL=
11026  POSUB=
11027
11028    if test "$USE_NLS" = "yes"; then
11029    gt_use_preinstalled_gnugettext=no
11030
11031      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11032echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
11033
11034# Check whether --with-included-gettext was given.
11035if test "${with_included_gettext+set}" = set; then
11036  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11037else
11038  nls_cv_force_use_gnu_gettext=no
11039fi
11040
11041      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11042echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
11043
11044      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11045      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11046
11047
11048
11049
11050
11051
11052        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11053echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11054if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11055  echo $ECHO_N "(cached) $ECHO_C" >&6
11056else
11057  cat >conftest.$ac_ext <<_ACEOF
11058/* confdefs.h.  */
11059_ACEOF
11060cat confdefs.h >>conftest.$ac_ext
11061cat >>conftest.$ac_ext <<_ACEOF
11062/* end confdefs.h.  */
11063#include <libintl.h>
11064extern int _nl_msg_cat_cntr;
11065extern int *_nl_domain_bindings;
11066int
11067main ()
11068{
11069bindtextdomain ("", "");
11070return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11071  ;
11072  return 0;
11073}
11074_ACEOF
11075rm -f conftest.$ac_objext conftest$ac_exeext
11076if { (ac_try="$ac_link"
11077case "(($ac_try" in
11078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079  *) ac_try_echo=$ac_try;;
11080esac
11081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082  (eval "$ac_link") 2>conftest.er1
11083  ac_status=$?
11084  grep -v '^ *+' conftest.er1 >conftest.err
11085  rm -f conftest.er1
11086  cat conftest.err >&5
11087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088  (exit $ac_status); } && {
11089	 test -z "$ac_c_werror_flag" ||
11090	 test ! -s conftest.err
11091       } && test -s conftest$ac_exeext &&
11092       $as_test_x conftest$ac_exeext; then
11093  gt_cv_func_gnugettext1_libc=yes
11094else
11095  echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
11098	gt_cv_func_gnugettext1_libc=no
11099fi
11100
11101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11102      conftest$ac_exeext conftest.$ac_ext
11103fi
11104{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11105echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
11106
11107        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11108
11109
11110
11111
11112    use_additional=yes
11113
11114  acl_save_prefix="$prefix"
11115  prefix="$acl_final_prefix"
11116  acl_save_exec_prefix="$exec_prefix"
11117  exec_prefix="$acl_final_exec_prefix"
11118
11119    eval additional_includedir=\"$includedir\"
11120    eval additional_libdir=\"$libdir\"
11121
11122  exec_prefix="$acl_save_exec_prefix"
11123  prefix="$acl_save_prefix"
11124
11125
11126# Check whether --with-libintl-prefix was given.
11127if test "${with_libintl_prefix+set}" = set; then
11128  withval=$with_libintl_prefix;
11129    if test "X$withval" = "Xno"; then
11130      use_additional=no
11131    else
11132      if test "X$withval" = "X"; then
11133
11134  acl_save_prefix="$prefix"
11135  prefix="$acl_final_prefix"
11136  acl_save_exec_prefix="$exec_prefix"
11137  exec_prefix="$acl_final_exec_prefix"
11138
11139          eval additional_includedir=\"$includedir\"
11140          eval additional_libdir=\"$libdir\"
11141
11142  exec_prefix="$acl_save_exec_prefix"
11143  prefix="$acl_save_prefix"
11144
11145      else
11146        additional_includedir="$withval/include"
11147        additional_libdir="$withval/$acl_libdirstem"
11148      fi
11149    fi
11150
11151fi
11152
11153      LIBINTL=
11154  LTLIBINTL=
11155  INCINTL=
11156  rpathdirs=
11157  ltrpathdirs=
11158  names_already_handled=
11159  names_next_round='intl '
11160  while test -n "$names_next_round"; do
11161    names_this_round="$names_next_round"
11162    names_next_round=
11163    for name in $names_this_round; do
11164      already_handled=
11165      for n in $names_already_handled; do
11166        if test "$n" = "$name"; then
11167          already_handled=yes
11168          break
11169        fi
11170      done
11171      if test -z "$already_handled"; then
11172        names_already_handled="$names_already_handled $name"
11173                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11174        eval value=\"\$HAVE_LIB$uppername\"
11175        if test -n "$value"; then
11176          if test "$value" = yes; then
11177            eval value=\"\$LIB$uppername\"
11178            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11179            eval value=\"\$LTLIB$uppername\"
11180            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11181          else
11182                                    :
11183          fi
11184        else
11185                              found_dir=
11186          found_la=
11187          found_so=
11188          found_a=
11189          if test $use_additional = yes; then
11190            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11191              found_dir="$additional_libdir"
11192              found_so="$additional_libdir/lib$name.$shlibext"
11193              if test -f "$additional_libdir/lib$name.la"; then
11194                found_la="$additional_libdir/lib$name.la"
11195              fi
11196            else
11197              if test -f "$additional_libdir/lib$name.$libext"; then
11198                found_dir="$additional_libdir"
11199                found_a="$additional_libdir/lib$name.$libext"
11200                if test -f "$additional_libdir/lib$name.la"; then
11201                  found_la="$additional_libdir/lib$name.la"
11202                fi
11203              fi
11204            fi
11205          fi
11206          if test "X$found_dir" = "X"; then
11207            for x in $LDFLAGS $LTLIBINTL; do
11208
11209  acl_save_prefix="$prefix"
11210  prefix="$acl_final_prefix"
11211  acl_save_exec_prefix="$exec_prefix"
11212  exec_prefix="$acl_final_exec_prefix"
11213  eval x=\"$x\"
11214  exec_prefix="$acl_save_exec_prefix"
11215  prefix="$acl_save_prefix"
11216
11217              case "$x" in
11218                -L*)
11219                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11220                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11221                    found_dir="$dir"
11222                    found_so="$dir/lib$name.$shlibext"
11223                    if test -f "$dir/lib$name.la"; then
11224                      found_la="$dir/lib$name.la"
11225                    fi
11226                  else
11227                    if test -f "$dir/lib$name.$libext"; then
11228                      found_dir="$dir"
11229                      found_a="$dir/lib$name.$libext"
11230                      if test -f "$dir/lib$name.la"; then
11231                        found_la="$dir/lib$name.la"
11232                      fi
11233                    fi
11234                  fi
11235                  ;;
11236              esac
11237              if test "X$found_dir" != "X"; then
11238                break
11239              fi
11240            done
11241          fi
11242          if test "X$found_dir" != "X"; then
11243                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11244            if test "X$found_so" != "X"; then
11245                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11246                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11247              else
11248                                                                                haveit=
11249                for x in $ltrpathdirs; do
11250                  if test "X$x" = "X$found_dir"; then
11251                    haveit=yes
11252                    break
11253                  fi
11254                done
11255                if test -z "$haveit"; then
11256                  ltrpathdirs="$ltrpathdirs $found_dir"
11257                fi
11258                                if test "$hardcode_direct" = yes; then
11259                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11260                else
11261                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11262                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11263                                                            haveit=
11264                    for x in $rpathdirs; do
11265                      if test "X$x" = "X$found_dir"; then
11266                        haveit=yes
11267                        break
11268                      fi
11269                    done
11270                    if test -z "$haveit"; then
11271                      rpathdirs="$rpathdirs $found_dir"
11272                    fi
11273                  else
11274                                                                                haveit=
11275                    for x in $LDFLAGS $LIBINTL; do
11276
11277  acl_save_prefix="$prefix"
11278  prefix="$acl_final_prefix"
11279  acl_save_exec_prefix="$exec_prefix"
11280  exec_prefix="$acl_final_exec_prefix"
11281  eval x=\"$x\"
11282  exec_prefix="$acl_save_exec_prefix"
11283  prefix="$acl_save_prefix"
11284
11285                      if test "X$x" = "X-L$found_dir"; then
11286                        haveit=yes
11287                        break
11288                      fi
11289                    done
11290                    if test -z "$haveit"; then
11291                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11292                    fi
11293                    if test "$hardcode_minus_L" != no; then
11294                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11295                    else
11296                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11297                    fi
11298                  fi
11299                fi
11300              fi
11301            else
11302              if test "X$found_a" != "X"; then
11303                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11304              else
11305                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11306              fi
11307            fi
11308                        additional_includedir=
11309            case "$found_dir" in
11310              */$acl_libdirstem | */$acl_libdirstem/)
11311                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11312                additional_includedir="$basedir/include"
11313                ;;
11314            esac
11315            if test "X$additional_includedir" != "X"; then
11316                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11317                haveit=
11318                if test "X$additional_includedir" = "X/usr/local/include"; then
11319                  if test -n "$GCC"; then
11320                    case $host_os in
11321                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11322                    esac
11323                  fi
11324                fi
11325                if test -z "$haveit"; then
11326                  for x in $CPPFLAGS $INCINTL; do
11327
11328  acl_save_prefix="$prefix"
11329  prefix="$acl_final_prefix"
11330  acl_save_exec_prefix="$exec_prefix"
11331  exec_prefix="$acl_final_exec_prefix"
11332  eval x=\"$x\"
11333  exec_prefix="$acl_save_exec_prefix"
11334  prefix="$acl_save_prefix"
11335
11336                    if test "X$x" = "X-I$additional_includedir"; then
11337                      haveit=yes
11338                      break
11339                    fi
11340                  done
11341                  if test -z "$haveit"; then
11342                    if test -d "$additional_includedir"; then
11343                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11344                    fi
11345                  fi
11346                fi
11347              fi
11348            fi
11349                        if test -n "$found_la"; then
11350                                                        save_libdir="$libdir"
11351              case "$found_la" in
11352                */* | *\\*) . "$found_la" ;;
11353                *) . "./$found_la" ;;
11354              esac
11355              libdir="$save_libdir"
11356                            for dep in $dependency_libs; do
11357                case "$dep" in
11358                  -L*)
11359                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11360                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11361                      haveit=
11362                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11363                        if test -n "$GCC"; then
11364                          case $host_os in
11365                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11366                          esac
11367                        fi
11368                      fi
11369                      if test -z "$haveit"; then
11370                        haveit=
11371                        for x in $LDFLAGS $LIBINTL; do
11372
11373  acl_save_prefix="$prefix"
11374  prefix="$acl_final_prefix"
11375  acl_save_exec_prefix="$exec_prefix"
11376  exec_prefix="$acl_final_exec_prefix"
11377  eval x=\"$x\"
11378  exec_prefix="$acl_save_exec_prefix"
11379  prefix="$acl_save_prefix"
11380
11381                          if test "X$x" = "X-L$additional_libdir"; then
11382                            haveit=yes
11383                            break
11384                          fi
11385                        done
11386                        if test -z "$haveit"; then
11387                          if test -d "$additional_libdir"; then
11388                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11389                          fi
11390                        fi
11391                        haveit=
11392                        for x in $LDFLAGS $LTLIBINTL; do
11393
11394  acl_save_prefix="$prefix"
11395  prefix="$acl_final_prefix"
11396  acl_save_exec_prefix="$exec_prefix"
11397  exec_prefix="$acl_final_exec_prefix"
11398  eval x=\"$x\"
11399  exec_prefix="$acl_save_exec_prefix"
11400  prefix="$acl_save_prefix"
11401
11402                          if test "X$x" = "X-L$additional_libdir"; then
11403                            haveit=yes
11404                            break
11405                          fi
11406                        done
11407                        if test -z "$haveit"; then
11408                          if test -d "$additional_libdir"; then
11409                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11410                          fi
11411                        fi
11412                      fi
11413                    fi
11414                    ;;
11415                  -R*)
11416                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11417                    if test "$enable_rpath" != no; then
11418                                                                  haveit=
11419                      for x in $rpathdirs; do
11420                        if test "X$x" = "X$dir"; then
11421                          haveit=yes
11422                          break
11423                        fi
11424                      done
11425                      if test -z "$haveit"; then
11426                        rpathdirs="$rpathdirs $dir"
11427                      fi
11428                                                                  haveit=
11429                      for x in $ltrpathdirs; do
11430                        if test "X$x" = "X$dir"; then
11431                          haveit=yes
11432                          break
11433                        fi
11434                      done
11435                      if test -z "$haveit"; then
11436                        ltrpathdirs="$ltrpathdirs $dir"
11437                      fi
11438                    fi
11439                    ;;
11440                  -l*)
11441                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11442                    ;;
11443                  *.la)
11444                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11445                    ;;
11446                  *)
11447                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11448                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11449                    ;;
11450                esac
11451              done
11452            fi
11453          else
11454                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11455            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11456          fi
11457        fi
11458      fi
11459    done
11460  done
11461  if test "X$rpathdirs" != "X"; then
11462    if test -n "$hardcode_libdir_separator"; then
11463                        alldirs=
11464      for found_dir in $rpathdirs; do
11465        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11466      done
11467            acl_save_libdir="$libdir"
11468      libdir="$alldirs"
11469      eval flag=\"$hardcode_libdir_flag_spec\"
11470      libdir="$acl_save_libdir"
11471      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11472    else
11473            for found_dir in $rpathdirs; do
11474        acl_save_libdir="$libdir"
11475        libdir="$found_dir"
11476        eval flag=\"$hardcode_libdir_flag_spec\"
11477        libdir="$acl_save_libdir"
11478        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11479      done
11480    fi
11481  fi
11482  if test "X$ltrpathdirs" != "X"; then
11483            for found_dir in $ltrpathdirs; do
11484      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11485    done
11486  fi
11487
11488          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11489echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
11490if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11491  echo $ECHO_N "(cached) $ECHO_C" >&6
11492else
11493  gt_save_CPPFLAGS="$CPPFLAGS"
11494            CPPFLAGS="$CPPFLAGS $INCINTL"
11495            gt_save_LIBS="$LIBS"
11496            LIBS="$LIBS $LIBINTL"
11497                        cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h.  */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h.  */
11503#include <libintl.h>
11504extern int _nl_msg_cat_cntr;
11505extern
11506#ifdef __cplusplus
11507"C"
11508#endif
11509const char *_nl_expand_alias (const char *);
11510int
11511main ()
11512{
11513bindtextdomain ("", "");
11514return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11515  ;
11516  return 0;
11517}
11518_ACEOF
11519rm -f conftest.$ac_objext conftest$ac_exeext
11520if { (ac_try="$ac_link"
11521case "(($ac_try" in
11522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523  *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526  (eval "$ac_link") 2>conftest.er1
11527  ac_status=$?
11528  grep -v '^ *+' conftest.er1 >conftest.err
11529  rm -f conftest.er1
11530  cat conftest.err >&5
11531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532  (exit $ac_status); } && {
11533	 test -z "$ac_c_werror_flag" ||
11534	 test ! -s conftest.err
11535       } && test -s conftest$ac_exeext &&
11536       $as_test_x conftest$ac_exeext; then
11537  gt_cv_func_gnugettext1_libintl=yes
11538else
11539  echo "$as_me: failed program was:" >&5
11540sed 's/^/| /' conftest.$ac_ext >&5
11541
11542	gt_cv_func_gnugettext1_libintl=no
11543fi
11544
11545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11546      conftest$ac_exeext conftest.$ac_ext
11547                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11548              LIBS="$LIBS $LIBICONV"
11549              cat >conftest.$ac_ext <<_ACEOF
11550/* confdefs.h.  */
11551_ACEOF
11552cat confdefs.h >>conftest.$ac_ext
11553cat >>conftest.$ac_ext <<_ACEOF
11554/* end confdefs.h.  */
11555#include <libintl.h>
11556extern int _nl_msg_cat_cntr;
11557extern
11558#ifdef __cplusplus
11559"C"
11560#endif
11561const char *_nl_expand_alias (const char *);
11562int
11563main ()
11564{
11565bindtextdomain ("", "");
11566return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11567  ;
11568  return 0;
11569}
11570_ACEOF
11571rm -f conftest.$ac_objext conftest$ac_exeext
11572if { (ac_try="$ac_link"
11573case "(($ac_try" in
11574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575  *) ac_try_echo=$ac_try;;
11576esac
11577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578  (eval "$ac_link") 2>conftest.er1
11579  ac_status=$?
11580  grep -v '^ *+' conftest.er1 >conftest.err
11581  rm -f conftest.er1
11582  cat conftest.err >&5
11583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584  (exit $ac_status); } && {
11585	 test -z "$ac_c_werror_flag" ||
11586	 test ! -s conftest.err
11587       } && test -s conftest$ac_exeext &&
11588       $as_test_x conftest$ac_exeext; then
11589  LIBINTL="$LIBINTL $LIBICONV"
11590                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11591                gt_cv_func_gnugettext1_libintl=yes
11592
11593else
11594  echo "$as_me: failed program was:" >&5
11595sed 's/^/| /' conftest.$ac_ext >&5
11596
11597
11598fi
11599
11600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11601      conftest$ac_exeext conftest.$ac_ext
11602            fi
11603            CPPFLAGS="$gt_save_CPPFLAGS"
11604            LIBS="$gt_save_LIBS"
11605fi
11606{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11607echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
11608        fi
11609
11610                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11611           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11612                && test "$PACKAGE" != gettext-runtime \
11613                && test "$PACKAGE" != gettext-tools; }; then
11614          gt_use_preinstalled_gnugettext=yes
11615        else
11616                    LIBINTL=
11617          LTLIBINTL=
11618          INCINTL=
11619        fi
11620
11621
11622        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11623                              nls_cv_use_gnu_gettext=yes
11624        fi
11625      fi
11626
11627      if test "$nls_cv_use_gnu_gettext" = "yes"; then
11628                BUILD_INCLUDED_LIBINTL=yes
11629        USE_INCLUDED_LIBINTL=yes
11630        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11631        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11632        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11633      fi
11634
11635      CATOBJEXT=
11636      if test "$gt_use_preinstalled_gnugettext" = "yes" \
11637         || test "$nls_cv_use_gnu_gettext" = "yes"; then
11638                CATOBJEXT=.gmo
11639      fi
11640
11641
11642    if test -n "$INTL_MACOSX_LIBS"; then
11643      if test "$gt_use_preinstalled_gnugettext" = "yes" \
11644         || test "$nls_cv_use_gnu_gettext" = "yes"; then
11645                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11646        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11647      fi
11648    fi
11649
11650    if test "$gt_use_preinstalled_gnugettext" = "yes" \
11651       || test "$nls_cv_use_gnu_gettext" = "yes"; then
11652
11653cat >>confdefs.h <<\_ACEOF
11654#define ENABLE_NLS 1
11655_ACEOF
11656
11657    else
11658      USE_NLS=no
11659    fi
11660  fi
11661
11662  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11663echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11664  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11665echo "${ECHO_T}$USE_NLS" >&6; }
11666  if test "$USE_NLS" = "yes"; then
11667    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11668echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
11669    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11670      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11671        gt_source="external libintl"
11672      else
11673        gt_source="libc"
11674      fi
11675    else
11676      gt_source="included intl directory"
11677    fi
11678    { echo "$as_me:$LINENO: result: $gt_source" >&5
11679echo "${ECHO_T}$gt_source" >&6; }
11680  fi
11681
11682  if test "$USE_NLS" = "yes"; then
11683
11684    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11685      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11686        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11687echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11688        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11689echo "${ECHO_T}$LIBINTL" >&6; }
11690
11691  for element in $INCINTL; do
11692    haveit=
11693    for x in $CPPFLAGS; do
11694
11695  acl_save_prefix="$prefix"
11696  prefix="$acl_final_prefix"
11697  acl_save_exec_prefix="$exec_prefix"
11698  exec_prefix="$acl_final_exec_prefix"
11699  eval x=\"$x\"
11700  exec_prefix="$acl_save_exec_prefix"
11701  prefix="$acl_save_prefix"
11702
11703      if test "X$x" = "X$element"; then
11704        haveit=yes
11705        break
11706      fi
11707    done
11708    if test -z "$haveit"; then
11709      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11710    fi
11711  done
11712
11713      fi
11714
11715
11716cat >>confdefs.h <<\_ACEOF
11717#define HAVE_GETTEXT 1
11718_ACEOF
11719
11720
11721cat >>confdefs.h <<\_ACEOF
11722#define HAVE_DCGETTEXT 1
11723_ACEOF
11724
11725    fi
11726
11727        POSUB=po
11728  fi
11729
11730
11731            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11732      BUILD_INCLUDED_LIBINTL=yes
11733    fi
11734
11735
11736
11737
11738
11739        nls_cv_header_intl=
11740    nls_cv_header_libgt=
11741
11742        DATADIRNAME=share
11743
11744
11745        INSTOBJEXT=.mo
11746
11747
11748        GENCAT=gencat
11749
11750
11751        INTLOBJS=
11752    if test "$USE_INCLUDED_LIBINTL" = yes; then
11753      INTLOBJS="\$(GETTOBJS)"
11754    fi
11755
11756
11757        INTL_LIBTOOL_SUFFIX_PREFIX=
11758
11759
11760
11761    INTLLIBS="$LIBINTL"
11762
11763
11764
11765
11766
11767
11768# AM_GNU_GETTEXT_VERSION
11769
11770{ echo "$as_me:$LINENO: checking host system type" >&5
11771echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
11772if test "${ac_cv_host+set}" = set; then
11773  echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775  if test "x$host_alias" = x; then
11776  ac_cv_host=$ac_cv_build
11777else
11778  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11779    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11780echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11781   { (exit 1); exit 1; }; }
11782fi
11783
11784fi
11785{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11786echo "${ECHO_T}$ac_cv_host" >&6; }
11787case $ac_cv_host in
11788*-*-*) ;;
11789*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11790echo "$as_me: error: invalid value of canonical host" >&2;}
11791   { (exit 1); exit 1; }; };;
11792esac
11793host=$ac_cv_host
11794ac_save_IFS=$IFS; IFS='-'
11795set x $ac_cv_host
11796shift
11797host_cpu=$1
11798host_vendor=$2
11799shift; shift
11800# Remember, the first character of IFS is used to create $*,
11801# except with old shells:
11802host_os=$*
11803IFS=$ac_save_IFS
11804case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11805
11806
11807
11808if test "x${CFLAGS-notset}" = "xnotset" ; then
11809    export CFLAGS
11810    CFLAGS=""
11811fi
11812ac_ext=c
11813ac_cpp='$CPP $CPPFLAGS'
11814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816ac_compiler_gnu=$ac_cv_c_compiler_gnu
11817if test -n "$ac_tool_prefix"; then
11818  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11819set dummy ${ac_tool_prefix}gcc; ac_word=$2
11820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11822if test "${ac_cv_prog_CC+set}" = set; then
11823  echo $ECHO_N "(cached) $ECHO_C" >&6
11824else
11825  if test -n "$CC"; then
11826  ac_cv_prog_CC="$CC" # Let the user override the test.
11827else
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831  IFS=$as_save_IFS
11832  test -z "$as_dir" && as_dir=.
11833  for ac_exec_ext in '' $ac_executable_extensions; do
11834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11837    break 2
11838  fi
11839done
11840done
11841IFS=$as_save_IFS
11842
11843fi
11844fi
11845CC=$ac_cv_prog_CC
11846if test -n "$CC"; then
11847  { echo "$as_me:$LINENO: result: $CC" >&5
11848echo "${ECHO_T}$CC" >&6; }
11849else
11850  { echo "$as_me:$LINENO: result: no" >&5
11851echo "${ECHO_T}no" >&6; }
11852fi
11853
11854
11855fi
11856if test -z "$ac_cv_prog_CC"; then
11857  ac_ct_CC=$CC
11858  # Extract the first word of "gcc", so it can be a program name with args.
11859set dummy gcc; ac_word=$2
11860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11863  echo $ECHO_N "(cached) $ECHO_C" >&6
11864else
11865  if test -n "$ac_ct_CC"; then
11866  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11867else
11868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871  IFS=$as_save_IFS
11872  test -z "$as_dir" && as_dir=.
11873  for ac_exec_ext in '' $ac_executable_extensions; do
11874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875    ac_cv_prog_ac_ct_CC="gcc"
11876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11877    break 2
11878  fi
11879done
11880done
11881IFS=$as_save_IFS
11882
11883fi
11884fi
11885ac_ct_CC=$ac_cv_prog_ac_ct_CC
11886if test -n "$ac_ct_CC"; then
11887  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11888echo "${ECHO_T}$ac_ct_CC" >&6; }
11889else
11890  { echo "$as_me:$LINENO: result: no" >&5
11891echo "${ECHO_T}no" >&6; }
11892fi
11893
11894  if test "x$ac_ct_CC" = x; then
11895    CC=""
11896  else
11897    case $cross_compiling:$ac_tool_warned in
11898yes:)
11899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11900whose name does not start with the host triplet.  If you think this
11901configuration is useful to you, please write to autoconf@gnu.org." >&5
11902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11903whose name does not start with the host triplet.  If you think this
11904configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11905ac_tool_warned=yes ;;
11906esac
11907    CC=$ac_ct_CC
11908  fi
11909else
11910  CC="$ac_cv_prog_CC"
11911fi
11912
11913if test -z "$CC"; then
11914          if test -n "$ac_tool_prefix"; then
11915    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11916set dummy ${ac_tool_prefix}cc; ac_word=$2
11917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11919if test "${ac_cv_prog_CC+set}" = set; then
11920  echo $ECHO_N "(cached) $ECHO_C" >&6
11921else
11922  if test -n "$CC"; then
11923  ac_cv_prog_CC="$CC" # Let the user override the test.
11924else
11925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926for as_dir in $PATH
11927do
11928  IFS=$as_save_IFS
11929  test -z "$as_dir" && as_dir=.
11930  for ac_exec_ext in '' $ac_executable_extensions; do
11931  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932    ac_cv_prog_CC="${ac_tool_prefix}cc"
11933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11934    break 2
11935  fi
11936done
11937done
11938IFS=$as_save_IFS
11939
11940fi
11941fi
11942CC=$ac_cv_prog_CC
11943if test -n "$CC"; then
11944  { echo "$as_me:$LINENO: result: $CC" >&5
11945echo "${ECHO_T}$CC" >&6; }
11946else
11947  { echo "$as_me:$LINENO: result: no" >&5
11948echo "${ECHO_T}no" >&6; }
11949fi
11950
11951
11952  fi
11953fi
11954if test -z "$CC"; then
11955  # Extract the first word of "cc", so it can be a program name with args.
11956set dummy cc; ac_word=$2
11957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11959if test "${ac_cv_prog_CC+set}" = set; then
11960  echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962  if test -n "$CC"; then
11963  ac_cv_prog_CC="$CC" # Let the user override the test.
11964else
11965  ac_prog_rejected=no
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969  IFS=$as_save_IFS
11970  test -z "$as_dir" && as_dir=.
11971  for ac_exec_ext in '' $ac_executable_extensions; do
11972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11974       ac_prog_rejected=yes
11975       continue
11976     fi
11977    ac_cv_prog_CC="cc"
11978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11979    break 2
11980  fi
11981done
11982done
11983IFS=$as_save_IFS
11984
11985if test $ac_prog_rejected = yes; then
11986  # We found a bogon in the path, so make sure we never use it.
11987  set dummy $ac_cv_prog_CC
11988  shift
11989  if test $# != 0; then
11990    # We chose a different compiler from the bogus one.
11991    # However, it has the same basename, so the bogon will be chosen
11992    # first if we set CC to just the basename; use the full file name.
11993    shift
11994    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11995  fi
11996fi
11997fi
11998fi
11999CC=$ac_cv_prog_CC
12000if test -n "$CC"; then
12001  { echo "$as_me:$LINENO: result: $CC" >&5
12002echo "${ECHO_T}$CC" >&6; }
12003else
12004  { echo "$as_me:$LINENO: result: no" >&5
12005echo "${ECHO_T}no" >&6; }
12006fi
12007
12008
12009fi
12010if test -z "$CC"; then
12011  if test -n "$ac_tool_prefix"; then
12012  for ac_prog in cl.exe
12013  do
12014    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12018if test "${ac_cv_prog_CC+set}" = set; then
12019  echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
12021  if test -n "$CC"; then
12022  ac_cv_prog_CC="$CC" # Let the user override the test.
12023else
12024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027  IFS=$as_save_IFS
12028  test -z "$as_dir" && as_dir=.
12029  for ac_exec_ext in '' $ac_executable_extensions; do
12030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12031    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12033    break 2
12034  fi
12035done
12036done
12037IFS=$as_save_IFS
12038
12039fi
12040fi
12041CC=$ac_cv_prog_CC
12042if test -n "$CC"; then
12043  { echo "$as_me:$LINENO: result: $CC" >&5
12044echo "${ECHO_T}$CC" >&6; }
12045else
12046  { echo "$as_me:$LINENO: result: no" >&5
12047echo "${ECHO_T}no" >&6; }
12048fi
12049
12050
12051    test -n "$CC" && break
12052  done
12053fi
12054if test -z "$CC"; then
12055  ac_ct_CC=$CC
12056  for ac_prog in cl.exe
12057do
12058  # Extract the first word of "$ac_prog", so it can be a program name with args.
12059set dummy $ac_prog; ac_word=$2
12060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12062if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12063  echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
12065  if test -n "$ac_ct_CC"; then
12066  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071  IFS=$as_save_IFS
12072  test -z "$as_dir" && as_dir=.
12073  for ac_exec_ext in '' $ac_executable_extensions; do
12074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12075    ac_cv_prog_ac_ct_CC="$ac_prog"
12076    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12077    break 2
12078  fi
12079done
12080done
12081IFS=$as_save_IFS
12082
12083fi
12084fi
12085ac_ct_CC=$ac_cv_prog_ac_ct_CC
12086if test -n "$ac_ct_CC"; then
12087  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12088echo "${ECHO_T}$ac_ct_CC" >&6; }
12089else
12090  { echo "$as_me:$LINENO: result: no" >&5
12091echo "${ECHO_T}no" >&6; }
12092fi
12093
12094
12095  test -n "$ac_ct_CC" && break
12096done
12097
12098  if test "x$ac_ct_CC" = x; then
12099    CC=""
12100  else
12101    case $cross_compiling:$ac_tool_warned in
12102yes:)
12103{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12104whose name does not start with the host triplet.  If you think this
12105configuration is useful to you, please write to autoconf@gnu.org." >&5
12106echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12107whose name does not start with the host triplet.  If you think this
12108configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12109ac_tool_warned=yes ;;
12110esac
12111    CC=$ac_ct_CC
12112  fi
12113fi
12114
12115fi
12116
12117
12118test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12119See \`config.log' for more details." >&5
12120echo "$as_me: error: no acceptable C compiler found in \$PATH
12121See \`config.log' for more details." >&2;}
12122   { (exit 1); exit 1; }; }
12123
12124# Provide some information about the compiler.
12125echo "$as_me:$LINENO: checking for C compiler version" >&5
12126ac_compiler=`set X $ac_compile; echo $2`
12127{ (ac_try="$ac_compiler --version >&5"
12128case "(($ac_try" in
12129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130  *) ac_try_echo=$ac_try;;
12131esac
12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133  (eval "$ac_compiler --version >&5") 2>&5
12134  ac_status=$?
12135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136  (exit $ac_status); }
12137{ (ac_try="$ac_compiler -v >&5"
12138case "(($ac_try" in
12139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140  *) ac_try_echo=$ac_try;;
12141esac
12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143  (eval "$ac_compiler -v >&5") 2>&5
12144  ac_status=$?
12145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146  (exit $ac_status); }
12147{ (ac_try="$ac_compiler -V >&5"
12148case "(($ac_try" in
12149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150  *) ac_try_echo=$ac_try;;
12151esac
12152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153  (eval "$ac_compiler -V >&5") 2>&5
12154  ac_status=$?
12155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156  (exit $ac_status); }
12157
12158{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12159echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
12160if test "${ac_cv_c_compiler_gnu+set}" = set; then
12161  echo $ECHO_N "(cached) $ECHO_C" >&6
12162else
12163  cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h.  */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h.  */
12169
12170int
12171main ()
12172{
12173#ifndef __GNUC__
12174       choke me
12175#endif
12176
12177  ;
12178  return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext
12182if { (ac_try="$ac_compile"
12183case "(($ac_try" in
12184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185  *) ac_try_echo=$ac_try;;
12186esac
12187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188  (eval "$ac_compile") 2>conftest.er1
12189  ac_status=$?
12190  grep -v '^ *+' conftest.er1 >conftest.err
12191  rm -f conftest.er1
12192  cat conftest.err >&5
12193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194  (exit $ac_status); } && {
12195	 test -z "$ac_c_werror_flag" ||
12196	 test ! -s conftest.err
12197       } && test -s conftest.$ac_objext; then
12198  ac_compiler_gnu=yes
12199else
12200  echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203	ac_compiler_gnu=no
12204fi
12205
12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207ac_cv_c_compiler_gnu=$ac_compiler_gnu
12208
12209fi
12210{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
12212GCC=`test $ac_compiler_gnu = yes && echo yes`
12213ac_test_CFLAGS=${CFLAGS+set}
12214ac_save_CFLAGS=$CFLAGS
12215{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12216echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
12217if test "${ac_cv_prog_cc_g+set}" = set; then
12218  echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220  ac_save_c_werror_flag=$ac_c_werror_flag
12221   ac_c_werror_flag=yes
12222   ac_cv_prog_cc_g=no
12223   CFLAGS="-g"
12224   cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h.  */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h.  */
12230
12231int
12232main ()
12233{
12234
12235  ;
12236  return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext
12240if { (ac_try="$ac_compile"
12241case "(($ac_try" in
12242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243  *) ac_try_echo=$ac_try;;
12244esac
12245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246  (eval "$ac_compile") 2>conftest.er1
12247  ac_status=$?
12248  grep -v '^ *+' conftest.er1 >conftest.err
12249  rm -f conftest.er1
12250  cat conftest.err >&5
12251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252  (exit $ac_status); } && {
12253	 test -z "$ac_c_werror_flag" ||
12254	 test ! -s conftest.err
12255       } && test -s conftest.$ac_objext; then
12256  ac_cv_prog_cc_g=yes
12257else
12258  echo "$as_me: failed program was:" >&5
12259sed 's/^/| /' conftest.$ac_ext >&5
12260
12261	CFLAGS=""
12262      cat >conftest.$ac_ext <<_ACEOF
12263/* confdefs.h.  */
12264_ACEOF
12265cat confdefs.h >>conftest.$ac_ext
12266cat >>conftest.$ac_ext <<_ACEOF
12267/* end confdefs.h.  */
12268
12269int
12270main ()
12271{
12272
12273  ;
12274  return 0;
12275}
12276_ACEOF
12277rm -f conftest.$ac_objext
12278if { (ac_try="$ac_compile"
12279case "(($ac_try" in
12280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281  *) ac_try_echo=$ac_try;;
12282esac
12283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284  (eval "$ac_compile") 2>conftest.er1
12285  ac_status=$?
12286  grep -v '^ *+' conftest.er1 >conftest.err
12287  rm -f conftest.er1
12288  cat conftest.err >&5
12289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290  (exit $ac_status); } && {
12291	 test -z "$ac_c_werror_flag" ||
12292	 test ! -s conftest.err
12293       } && test -s conftest.$ac_objext; then
12294  :
12295else
12296  echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299	ac_c_werror_flag=$ac_save_c_werror_flag
12300	 CFLAGS="-g"
12301	 cat >conftest.$ac_ext <<_ACEOF
12302/* confdefs.h.  */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h.  */
12307
12308int
12309main ()
12310{
12311
12312  ;
12313  return 0;
12314}
12315_ACEOF
12316rm -f conftest.$ac_objext
12317if { (ac_try="$ac_compile"
12318case "(($ac_try" in
12319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320  *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323  (eval "$ac_compile") 2>conftest.er1
12324  ac_status=$?
12325  grep -v '^ *+' conftest.er1 >conftest.err
12326  rm -f conftest.er1
12327  cat conftest.err >&5
12328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329  (exit $ac_status); } && {
12330	 test -z "$ac_c_werror_flag" ||
12331	 test ! -s conftest.err
12332       } && test -s conftest.$ac_objext; then
12333  ac_cv_prog_cc_g=yes
12334else
12335  echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338
12339fi
12340
12341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342fi
12343
12344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345fi
12346
12347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348   ac_c_werror_flag=$ac_save_c_werror_flag
12349fi
12350{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12351echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
12352if test "$ac_test_CFLAGS" = set; then
12353  CFLAGS=$ac_save_CFLAGS
12354elif test $ac_cv_prog_cc_g = yes; then
12355  if test "$GCC" = yes; then
12356    CFLAGS="-g -O2"
12357  else
12358    CFLAGS="-g"
12359  fi
12360else
12361  if test "$GCC" = yes; then
12362    CFLAGS="-O2"
12363  else
12364    CFLAGS=
12365  fi
12366fi
12367{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12368echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
12369if test "${ac_cv_prog_cc_c89+set}" = set; then
12370  echo $ECHO_N "(cached) $ECHO_C" >&6
12371else
12372  ac_cv_prog_cc_c89=no
12373ac_save_CC=$CC
12374cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h.  */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h.  */
12380#include <stdarg.h>
12381#include <stdio.h>
12382#include <sys/types.h>
12383#include <sys/stat.h>
12384/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12385struct buf { int x; };
12386FILE * (*rcsopen) (struct buf *, struct stat *, int);
12387static char *e (p, i)
12388     char **p;
12389     int i;
12390{
12391  return p[i];
12392}
12393static char *f (char * (*g) (char **, int), char **p, ...)
12394{
12395  char *s;
12396  va_list v;
12397  va_start (v,p);
12398  s = g (p, va_arg (v,int));
12399  va_end (v);
12400  return s;
12401}
12402
12403/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12404   function prototypes and stuff, but not '\xHH' hex character constants.
12405   These don't provoke an error unfortunately, instead are silently treated
12406   as 'x'.  The following induces an error, until -std is added to get
12407   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12408   array size at least.  It's necessary to write '\x00'==0 to get something
12409   that's true only with -std.  */
12410int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12411
12412/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12413   inside strings and character constants.  */
12414#define FOO(x) 'x'
12415int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12416
12417int test (int i, double x);
12418struct s1 {int (*f) (int a);};
12419struct s2 {int (*f) (double a);};
12420int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12421int argc;
12422char **argv;
12423int
12424main ()
12425{
12426return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12427  ;
12428  return 0;
12429}
12430_ACEOF
12431for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12432	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12433do
12434  CC="$ac_save_CC $ac_arg"
12435  rm -f conftest.$ac_objext
12436if { (ac_try="$ac_compile"
12437case "(($ac_try" in
12438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439  *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442  (eval "$ac_compile") 2>conftest.er1
12443  ac_status=$?
12444  grep -v '^ *+' conftest.er1 >conftest.err
12445  rm -f conftest.er1
12446  cat conftest.err >&5
12447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448  (exit $ac_status); } && {
12449	 test -z "$ac_c_werror_flag" ||
12450	 test ! -s conftest.err
12451       } && test -s conftest.$ac_objext; then
12452  ac_cv_prog_cc_c89=$ac_arg
12453else
12454  echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457
12458fi
12459
12460rm -f core conftest.err conftest.$ac_objext
12461  test "x$ac_cv_prog_cc_c89" != "xno" && break
12462done
12463rm -f conftest.$ac_ext
12464CC=$ac_save_CC
12465
12466fi
12467# AC_CACHE_VAL
12468case "x$ac_cv_prog_cc_c89" in
12469  x)
12470    { echo "$as_me:$LINENO: result: none needed" >&5
12471echo "${ECHO_T}none needed" >&6; } ;;
12472  xno)
12473    { echo "$as_me:$LINENO: result: unsupported" >&5
12474echo "${ECHO_T}unsupported" >&6; } ;;
12475  *)
12476    CC="$CC $ac_cv_prog_cc_c89"
12477    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12478echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12479esac
12480
12481
12482ac_ext=c
12483ac_cpp='$CPP $CPPFLAGS'
12484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12486ac_compiler_gnu=$ac_cv_c_compiler_gnu
12487
12488depcc="$CC"   am_compiler_list=
12489
12490{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12491echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12492if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12493  echo $ECHO_N "(cached) $ECHO_C" >&6
12494else
12495  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12496  # We make a subdir and do the tests there.  Otherwise we can end up
12497  # making bogus files that we don't know about and never remove.  For
12498  # instance it was reported that on HP-UX the gcc test will end up
12499  # making a dummy file named `D' -- because `-MD' means `put the output
12500  # in D'.
12501  mkdir conftest.dir
12502  # Copy depcomp to subdir because otherwise we won't find it if we're
12503  # using a relative directory.
12504  cp "$am_depcomp" conftest.dir
12505  cd conftest.dir
12506  # We will build objects and dependencies in a subdirectory because
12507  # it helps to detect inapplicable dependency modes.  For instance
12508  # both Tru64's cc and ICC support -MD to output dependencies as a
12509  # side effect of compilation, but ICC will put the dependencies in
12510  # the current directory while Tru64 will put them in the object
12511  # directory.
12512  mkdir sub
12513
12514  am_cv_CC_dependencies_compiler_type=none
12515  if test "$am_compiler_list" = ""; then
12516     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12517  fi
12518  for depmode in $am_compiler_list; do
12519    # Setup a source with many dependencies, because some compilers
12520    # like to wrap large dependency lists on column 80 (with \), and
12521    # we should not choose a depcomp mode which is confused by this.
12522    #
12523    # We need to recreate these files for each test, as the compiler may
12524    # overwrite some of them when testing with obscure command lines.
12525    # This happens at least with the AIX C compiler.
12526    : > sub/conftest.c
12527    for i in 1 2 3 4 5 6; do
12528      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12529      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12530      # Solaris 8's {/usr,}/bin/sh.
12531      touch sub/conftst$i.h
12532    done
12533    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12534
12535    case $depmode in
12536    nosideeffect)
12537      # after this tag, mechanisms are not by side-effect, so they'll
12538      # only be used when explicitly requested
12539      if test "x$enable_dependency_tracking" = xyes; then
12540	continue
12541      else
12542	break
12543      fi
12544      ;;
12545    none) break ;;
12546    esac
12547    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12548    # mode.  It turns out that the SunPro C++ compiler does not properly
12549    # handle `-M -o', and we need to detect this.
12550    if depmode=$depmode \
12551       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12552       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12553       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12554         >/dev/null 2>conftest.err &&
12555       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12556       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12557       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12558      # icc doesn't choke on unknown options, it will just issue warnings
12559      # or remarks (even with -Werror).  So we grep stderr for any message
12560      # that says an option was ignored or not supported.
12561      # When given -MP, icc 7.0 and 7.1 complain thusly:
12562      #   icc: Command line warning: ignoring option '-M'; no argument required
12563      # The diagnosis changed in icc 8.0:
12564      #   icc: Command line remark: option '-MP' not supported
12565      if (grep 'ignoring option' conftest.err ||
12566          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12567        am_cv_CC_dependencies_compiler_type=$depmode
12568        break
12569      fi
12570    fi
12571  done
12572
12573  cd ..
12574  rm -rf conftest.dir
12575else
12576  am_cv_CC_dependencies_compiler_type=none
12577fi
12578
12579fi
12580{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12581echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
12582CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12583
12584
12585
12586if
12587  test "x$enable_dependency_tracking" != xno \
12588  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12589  am__fastdepCC_TRUE=
12590  am__fastdepCC_FALSE='#'
12591else
12592  am__fastdepCC_TRUE='#'
12593  am__fastdepCC_FALSE=
12594fi
12595
12596
12597
12598if test "x${CXXFLAGS-notset}" = "xnotset" ; then
12599    export CXXFLAGS
12600    CXXFLAGS=""
12601fi
12602ac_ext=cpp
12603ac_cpp='$CXXCPP $CPPFLAGS'
12604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12607if test -z "$CXX"; then
12608  if test -n "$CCC"; then
12609    CXX=$CCC
12610  else
12611    if test -n "$ac_tool_prefix"; then
12612  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12613  do
12614    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12618if test "${ac_cv_prog_CXX+set}" = set; then
12619  echo $ECHO_N "(cached) $ECHO_C" >&6
12620else
12621  if test -n "$CXX"; then
12622  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12623else
12624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625for as_dir in $PATH
12626do
12627  IFS=$as_save_IFS
12628  test -z "$as_dir" && as_dir=.
12629  for ac_exec_ext in '' $ac_executable_extensions; do
12630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12631    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12633    break 2
12634  fi
12635done
12636done
12637IFS=$as_save_IFS
12638
12639fi
12640fi
12641CXX=$ac_cv_prog_CXX
12642if test -n "$CXX"; then
12643  { echo "$as_me:$LINENO: result: $CXX" >&5
12644echo "${ECHO_T}$CXX" >&6; }
12645else
12646  { echo "$as_me:$LINENO: result: no" >&5
12647echo "${ECHO_T}no" >&6; }
12648fi
12649
12650
12651    test -n "$CXX" && break
12652  done
12653fi
12654if test -z "$CXX"; then
12655  ac_ct_CXX=$CXX
12656  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12657do
12658  # Extract the first word of "$ac_prog", so it can be a program name with args.
12659set dummy $ac_prog; ac_word=$2
12660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12662if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12663  echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
12665  if test -n "$ac_ct_CXX"; then
12666  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12667else
12668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669for as_dir in $PATH
12670do
12671  IFS=$as_save_IFS
12672  test -z "$as_dir" && as_dir=.
12673  for ac_exec_ext in '' $ac_executable_extensions; do
12674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12675    ac_cv_prog_ac_ct_CXX="$ac_prog"
12676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12677    break 2
12678  fi
12679done
12680done
12681IFS=$as_save_IFS
12682
12683fi
12684fi
12685ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12686if test -n "$ac_ct_CXX"; then
12687  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12688echo "${ECHO_T}$ac_ct_CXX" >&6; }
12689else
12690  { echo "$as_me:$LINENO: result: no" >&5
12691echo "${ECHO_T}no" >&6; }
12692fi
12693
12694
12695  test -n "$ac_ct_CXX" && break
12696done
12697
12698  if test "x$ac_ct_CXX" = x; then
12699    CXX="g++"
12700  else
12701    case $cross_compiling:$ac_tool_warned in
12702yes:)
12703{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12704whose name does not start with the host triplet.  If you think this
12705configuration is useful to you, please write to autoconf@gnu.org." >&5
12706echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12707whose name does not start with the host triplet.  If you think this
12708configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12709ac_tool_warned=yes ;;
12710esac
12711    CXX=$ac_ct_CXX
12712  fi
12713fi
12714
12715  fi
12716fi
12717# Provide some information about the compiler.
12718echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12719ac_compiler=`set X $ac_compile; echo $2`
12720{ (ac_try="$ac_compiler --version >&5"
12721case "(($ac_try" in
12722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723  *) ac_try_echo=$ac_try;;
12724esac
12725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726  (eval "$ac_compiler --version >&5") 2>&5
12727  ac_status=$?
12728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729  (exit $ac_status); }
12730{ (ac_try="$ac_compiler -v >&5"
12731case "(($ac_try" in
12732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733  *) ac_try_echo=$ac_try;;
12734esac
12735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736  (eval "$ac_compiler -v >&5") 2>&5
12737  ac_status=$?
12738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739  (exit $ac_status); }
12740{ (ac_try="$ac_compiler -V >&5"
12741case "(($ac_try" in
12742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743  *) ac_try_echo=$ac_try;;
12744esac
12745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746  (eval "$ac_compiler -V >&5") 2>&5
12747  ac_status=$?
12748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749  (exit $ac_status); }
12750
12751{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12752echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
12753if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12754  echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756  cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h.  */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h.  */
12762
12763int
12764main ()
12765{
12766#ifndef __GNUC__
12767       choke me
12768#endif
12769
12770  ;
12771  return 0;
12772}
12773_ACEOF
12774rm -f conftest.$ac_objext
12775if { (ac_try="$ac_compile"
12776case "(($ac_try" in
12777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778  *) ac_try_echo=$ac_try;;
12779esac
12780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781  (eval "$ac_compile") 2>conftest.er1
12782  ac_status=$?
12783  grep -v '^ *+' conftest.er1 >conftest.err
12784  rm -f conftest.er1
12785  cat conftest.err >&5
12786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787  (exit $ac_status); } && {
12788	 test -z "$ac_cxx_werror_flag" ||
12789	 test ! -s conftest.err
12790       } && test -s conftest.$ac_objext; then
12791  ac_compiler_gnu=yes
12792else
12793  echo "$as_me: failed program was:" >&5
12794sed 's/^/| /' conftest.$ac_ext >&5
12795
12796	ac_compiler_gnu=no
12797fi
12798
12799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12801
12802fi
12803{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12804echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
12805GXX=`test $ac_compiler_gnu = yes && echo yes`
12806ac_test_CXXFLAGS=${CXXFLAGS+set}
12807ac_save_CXXFLAGS=$CXXFLAGS
12808{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12809echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
12810if test "${ac_cv_prog_cxx_g+set}" = set; then
12811  echo $ECHO_N "(cached) $ECHO_C" >&6
12812else
12813  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12814   ac_cxx_werror_flag=yes
12815   ac_cv_prog_cxx_g=no
12816   CXXFLAGS="-g"
12817   cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h.  */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h.  */
12823
12824int
12825main ()
12826{
12827
12828  ;
12829  return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext
12833if { (ac_try="$ac_compile"
12834case "(($ac_try" in
12835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836  *) ac_try_echo=$ac_try;;
12837esac
12838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839  (eval "$ac_compile") 2>conftest.er1
12840  ac_status=$?
12841  grep -v '^ *+' conftest.er1 >conftest.err
12842  rm -f conftest.er1
12843  cat conftest.err >&5
12844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845  (exit $ac_status); } && {
12846	 test -z "$ac_cxx_werror_flag" ||
12847	 test ! -s conftest.err
12848       } && test -s conftest.$ac_objext; then
12849  ac_cv_prog_cxx_g=yes
12850else
12851  echo "$as_me: failed program was:" >&5
12852sed 's/^/| /' conftest.$ac_ext >&5
12853
12854	CXXFLAGS=""
12855      cat >conftest.$ac_ext <<_ACEOF
12856/* confdefs.h.  */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h.  */
12861
12862int
12863main ()
12864{
12865
12866  ;
12867  return 0;
12868}
12869_ACEOF
12870rm -f conftest.$ac_objext
12871if { (ac_try="$ac_compile"
12872case "(($ac_try" in
12873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874  *) ac_try_echo=$ac_try;;
12875esac
12876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877  (eval "$ac_compile") 2>conftest.er1
12878  ac_status=$?
12879  grep -v '^ *+' conftest.er1 >conftest.err
12880  rm -f conftest.er1
12881  cat conftest.err >&5
12882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883  (exit $ac_status); } && {
12884	 test -z "$ac_cxx_werror_flag" ||
12885	 test ! -s conftest.err
12886       } && test -s conftest.$ac_objext; then
12887  :
12888else
12889  echo "$as_me: failed program was:" >&5
12890sed 's/^/| /' conftest.$ac_ext >&5
12891
12892	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12893	 CXXFLAGS="-g"
12894	 cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h.  */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h.  */
12900
12901int
12902main ()
12903{
12904
12905  ;
12906  return 0;
12907}
12908_ACEOF
12909rm -f conftest.$ac_objext
12910if { (ac_try="$ac_compile"
12911case "(($ac_try" in
12912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913  *) ac_try_echo=$ac_try;;
12914esac
12915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916  (eval "$ac_compile") 2>conftest.er1
12917  ac_status=$?
12918  grep -v '^ *+' conftest.er1 >conftest.err
12919  rm -f conftest.er1
12920  cat conftest.err >&5
12921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922  (exit $ac_status); } && {
12923	 test -z "$ac_cxx_werror_flag" ||
12924	 test ! -s conftest.err
12925       } && test -s conftest.$ac_objext; then
12926  ac_cv_prog_cxx_g=yes
12927else
12928  echo "$as_me: failed program was:" >&5
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
12931
12932fi
12933
12934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12935fi
12936
12937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938fi
12939
12940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12942fi
12943{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12944echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12945if test "$ac_test_CXXFLAGS" = set; then
12946  CXXFLAGS=$ac_save_CXXFLAGS
12947elif test $ac_cv_prog_cxx_g = yes; then
12948  if test "$GXX" = yes; then
12949    CXXFLAGS="-g -O2"
12950  else
12951    CXXFLAGS="-g"
12952  fi
12953else
12954  if test "$GXX" = yes; then
12955    CXXFLAGS="-O2"
12956  else
12957    CXXFLAGS=
12958  fi
12959fi
12960ac_ext=c
12961ac_cpp='$CPP $CPPFLAGS'
12962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12964ac_compiler_gnu=$ac_cv_c_compiler_gnu
12965
12966depcc="$CXX"  am_compiler_list=
12967
12968{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12969echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12970if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12971  echo $ECHO_N "(cached) $ECHO_C" >&6
12972else
12973  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12974  # We make a subdir and do the tests there.  Otherwise we can end up
12975  # making bogus files that we don't know about and never remove.  For
12976  # instance it was reported that on HP-UX the gcc test will end up
12977  # making a dummy file named `D' -- because `-MD' means `put the output
12978  # in D'.
12979  mkdir conftest.dir
12980  # Copy depcomp to subdir because otherwise we won't find it if we're
12981  # using a relative directory.
12982  cp "$am_depcomp" conftest.dir
12983  cd conftest.dir
12984  # We will build objects and dependencies in a subdirectory because
12985  # it helps to detect inapplicable dependency modes.  For instance
12986  # both Tru64's cc and ICC support -MD to output dependencies as a
12987  # side effect of compilation, but ICC will put the dependencies in
12988  # the current directory while Tru64 will put them in the object
12989  # directory.
12990  mkdir sub
12991
12992  am_cv_CXX_dependencies_compiler_type=none
12993  if test "$am_compiler_list" = ""; then
12994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12995  fi
12996  for depmode in $am_compiler_list; do
12997    # Setup a source with many dependencies, because some compilers
12998    # like to wrap large dependency lists on column 80 (with \), and
12999    # we should not choose a depcomp mode which is confused by this.
13000    #
13001    # We need to recreate these files for each test, as the compiler may
13002    # overwrite some of them when testing with obscure command lines.
13003    # This happens at least with the AIX C compiler.
13004    : > sub/conftest.c
13005    for i in 1 2 3 4 5 6; do
13006      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13007      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13008      # Solaris 8's {/usr,}/bin/sh.
13009      touch sub/conftst$i.h
13010    done
13011    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13012
13013    case $depmode in
13014    nosideeffect)
13015      # after this tag, mechanisms are not by side-effect, so they'll
13016      # only be used when explicitly requested
13017      if test "x$enable_dependency_tracking" = xyes; then
13018	continue
13019      else
13020	break
13021      fi
13022      ;;
13023    none) break ;;
13024    esac
13025    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13026    # mode.  It turns out that the SunPro C++ compiler does not properly
13027    # handle `-M -o', and we need to detect this.
13028    if depmode=$depmode \
13029       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13030       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13031       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13032         >/dev/null 2>conftest.err &&
13033       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13034       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13035       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13036      # icc doesn't choke on unknown options, it will just issue warnings
13037      # or remarks (even with -Werror).  So we grep stderr for any message
13038      # that says an option was ignored or not supported.
13039      # When given -MP, icc 7.0 and 7.1 complain thusly:
13040      #   icc: Command line warning: ignoring option '-M'; no argument required
13041      # The diagnosis changed in icc 8.0:
13042      #   icc: Command line remark: option '-MP' not supported
13043      if (grep 'ignoring option' conftest.err ||
13044          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13045        am_cv_CXX_dependencies_compiler_type=$depmode
13046        break
13047      fi
13048    fi
13049  done
13050
13051  cd ..
13052  rm -rf conftest.dir
13053else
13054  am_cv_CXX_dependencies_compiler_type=none
13055fi
13056
13057fi
13058{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13059echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
13060CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13061
13062
13063
13064if
13065  test "x$enable_dependency_tracking" != xno \
13066  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13067  am__fastdepCXX_TRUE=
13068  am__fastdepCXX_FALSE='#'
13069else
13070  am__fastdepCXX_TRUE='#'
13071  am__fastdepCXX_FALSE=
13072fi
13073
13074
13075
13076if test -n "$ac_tool_prefix"; then
13077  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13078set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13081if test "${ac_cv_prog_RANLIB+set}" = set; then
13082  echo $ECHO_N "(cached) $ECHO_C" >&6
13083else
13084  if test -n "$RANLIB"; then
13085  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13086else
13087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088for as_dir in $PATH
13089do
13090  IFS=$as_save_IFS
13091  test -z "$as_dir" && as_dir=.
13092  for ac_exec_ext in '' $ac_executable_extensions; do
13093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096    break 2
13097  fi
13098done
13099done
13100IFS=$as_save_IFS
13101
13102fi
13103fi
13104RANLIB=$ac_cv_prog_RANLIB
13105if test -n "$RANLIB"; then
13106  { echo "$as_me:$LINENO: result: $RANLIB" >&5
13107echo "${ECHO_T}$RANLIB" >&6; }
13108else
13109  { echo "$as_me:$LINENO: result: no" >&5
13110echo "${ECHO_T}no" >&6; }
13111fi
13112
13113
13114fi
13115if test -z "$ac_cv_prog_RANLIB"; then
13116  ac_ct_RANLIB=$RANLIB
13117  # Extract the first word of "ranlib", so it can be a program name with args.
13118set dummy ranlib; ac_word=$2
13119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13121if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13122  echo $ECHO_N "(cached) $ECHO_C" >&6
13123else
13124  if test -n "$ac_ct_RANLIB"; then
13125  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13126else
13127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128for as_dir in $PATH
13129do
13130  IFS=$as_save_IFS
13131  test -z "$as_dir" && as_dir=.
13132  for ac_exec_ext in '' $ac_executable_extensions; do
13133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134    ac_cv_prog_ac_ct_RANLIB="ranlib"
13135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13136    break 2
13137  fi
13138done
13139done
13140IFS=$as_save_IFS
13141
13142fi
13143fi
13144ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13145if test -n "$ac_ct_RANLIB"; then
13146  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13147echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13148else
13149  { echo "$as_me:$LINENO: result: no" >&5
13150echo "${ECHO_T}no" >&6; }
13151fi
13152
13153  if test "x$ac_ct_RANLIB" = x; then
13154    RANLIB=":"
13155  else
13156    case $cross_compiling:$ac_tool_warned in
13157yes:)
13158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13159whose name does not start with the host triplet.  If you think this
13160configuration is useful to you, please write to autoconf@gnu.org." >&5
13161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13162whose name does not start with the host triplet.  If you think this
13163configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13164ac_tool_warned=yes ;;
13165esac
13166    RANLIB=$ac_ct_RANLIB
13167  fi
13168else
13169  RANLIB="$ac_cv_prog_RANLIB"
13170fi
13171
13172
13173
13174{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13175echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
13176set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13177if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
13178  echo $ECHO_N "(cached) $ECHO_C" >&6
13179else
13180  cat >conftest.make <<\_ACEOF
13181SHELL = /bin/sh
13182all:
13183	@echo '@@@%%%=$(MAKE)=@@@%%%'
13184_ACEOF
13185# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13186case `${MAKE-make} -f conftest.make 2>/dev/null` in
13187  *@@@%%%=?*=@@@%%%*)
13188    eval ac_cv_prog_make_${ac_make}_set=yes;;
13189  *)
13190    eval ac_cv_prog_make_${ac_make}_set=no;;
13191esac
13192rm -f conftest.make
13193fi
13194if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13195  { echo "$as_me:$LINENO: result: yes" >&5
13196echo "${ECHO_T}yes" >&6; }
13197  SET_MAKE=
13198else
13199  { echo "$as_me:$LINENO: result: no" >&5
13200echo "${ECHO_T}no" >&6; }
13201  SET_MAKE="MAKE=${MAKE-make}"
13202fi
13203
13204
13205{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13206echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13207if test "${ac_cv_header_stdc+set}" = set; then
13208  echo $ECHO_N "(cached) $ECHO_C" >&6
13209else
13210  cat >conftest.$ac_ext <<_ACEOF
13211/* confdefs.h.  */
13212_ACEOF
13213cat confdefs.h >>conftest.$ac_ext
13214cat >>conftest.$ac_ext <<_ACEOF
13215/* end confdefs.h.  */
13216#include <stdlib.h>
13217#include <stdarg.h>
13218#include <string.h>
13219#include <float.h>
13220
13221int
13222main ()
13223{
13224
13225  ;
13226  return 0;
13227}
13228_ACEOF
13229rm -f conftest.$ac_objext
13230if { (ac_try="$ac_compile"
13231case "(($ac_try" in
13232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233  *) ac_try_echo=$ac_try;;
13234esac
13235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236  (eval "$ac_compile") 2>conftest.er1
13237  ac_status=$?
13238  grep -v '^ *+' conftest.er1 >conftest.err
13239  rm -f conftest.er1
13240  cat conftest.err >&5
13241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242  (exit $ac_status); } && {
13243	 test -z "$ac_c_werror_flag" ||
13244	 test ! -s conftest.err
13245       } && test -s conftest.$ac_objext; then
13246  ac_cv_header_stdc=yes
13247else
13248  echo "$as_me: failed program was:" >&5
13249sed 's/^/| /' conftest.$ac_ext >&5
13250
13251	ac_cv_header_stdc=no
13252fi
13253
13254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13255
13256if test $ac_cv_header_stdc = yes; then
13257  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13258  cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h.  */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h.  */
13264#include <string.h>
13265
13266_ACEOF
13267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268  $EGREP "memchr" >/dev/null 2>&1; then
13269  :
13270else
13271  ac_cv_header_stdc=no
13272fi
13273rm -f conftest*
13274
13275fi
13276
13277if test $ac_cv_header_stdc = yes; then
13278  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13279  cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h.  */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h.  */
13285#include <stdlib.h>
13286
13287_ACEOF
13288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13289  $EGREP "free" >/dev/null 2>&1; then
13290  :
13291else
13292  ac_cv_header_stdc=no
13293fi
13294rm -f conftest*
13295
13296fi
13297
13298if test $ac_cv_header_stdc = yes; then
13299  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13300  if test "$cross_compiling" = yes; then
13301  :
13302else
13303  cat >conftest.$ac_ext <<_ACEOF
13304/* confdefs.h.  */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h.  */
13309#include <ctype.h>
13310#include <stdlib.h>
13311#if ((' ' & 0x0FF) == 0x020)
13312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13314#else
13315# define ISLOWER(c) \
13316		   (('a' <= (c) && (c) <= 'i') \
13317		     || ('j' <= (c) && (c) <= 'r') \
13318		     || ('s' <= (c) && (c) <= 'z'))
13319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13320#endif
13321
13322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13323int
13324main ()
13325{
13326  int i;
13327  for (i = 0; i < 256; i++)
13328    if (XOR (islower (i), ISLOWER (i))
13329	|| toupper (i) != TOUPPER (i))
13330      return 2;
13331  return 0;
13332}
13333_ACEOF
13334rm -f conftest$ac_exeext
13335if { (ac_try="$ac_link"
13336case "(($ac_try" in
13337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338  *) ac_try_echo=$ac_try;;
13339esac
13340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341  (eval "$ac_link") 2>&5
13342  ac_status=$?
13343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13345  { (case "(($ac_try" in
13346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347  *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350  (eval "$ac_try") 2>&5
13351  ac_status=$?
13352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353  (exit $ac_status); }; }; then
13354  :
13355else
13356  echo "$as_me: program exited with status $ac_status" >&5
13357echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
13360( exit $ac_status )
13361ac_cv_header_stdc=no
13362fi
13363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13364fi
13365
13366
13367fi
13368fi
13369{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13370echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13371if test $ac_cv_header_stdc = yes; then
13372
13373cat >>confdefs.h <<\_ACEOF
13374#define STDC_HEADERS 1
13375_ACEOF
13376
13377fi
13378
13379
13380
13381for ac_header in sys/time.h unistd.h
13382do
13383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13385  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13388  echo $ECHO_N "(cached) $ECHO_C" >&6
13389fi
13390ac_res=`eval echo '${'$as_ac_Header'}'`
13391	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13392echo "${ECHO_T}$ac_res" >&6; }
13393else
13394  # Is the header compilable?
13395{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13397cat >conftest.$ac_ext <<_ACEOF
13398/* confdefs.h.  */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h.  */
13403$ac_includes_default
13404#include <$ac_header>
13405_ACEOF
13406rm -f conftest.$ac_objext
13407if { (ac_try="$ac_compile"
13408case "(($ac_try" in
13409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410  *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413  (eval "$ac_compile") 2>conftest.er1
13414  ac_status=$?
13415  grep -v '^ *+' conftest.er1 >conftest.err
13416  rm -f conftest.er1
13417  cat conftest.err >&5
13418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419  (exit $ac_status); } && {
13420	 test -z "$ac_c_werror_flag" ||
13421	 test ! -s conftest.err
13422       } && test -s conftest.$ac_objext; then
13423  ac_header_compiler=yes
13424else
13425  echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
13428	ac_header_compiler=no
13429fi
13430
13431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13433echo "${ECHO_T}$ac_header_compiler" >&6; }
13434
13435# Is the header present?
13436{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13438cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h.  */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h.  */
13444#include <$ac_header>
13445_ACEOF
13446if { (ac_try="$ac_cpp conftest.$ac_ext"
13447case "(($ac_try" in
13448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449  *) ac_try_echo=$ac_try;;
13450esac
13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13453  ac_status=$?
13454  grep -v '^ *+' conftest.er1 >conftest.err
13455  rm -f conftest.er1
13456  cat conftest.err >&5
13457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458  (exit $ac_status); } >/dev/null && {
13459	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13460	 test ! -s conftest.err
13461       }; then
13462  ac_header_preproc=yes
13463else
13464  echo "$as_me: failed program was:" >&5
13465sed 's/^/| /' conftest.$ac_ext >&5
13466
13467  ac_header_preproc=no
13468fi
13469
13470rm -f conftest.err conftest.$ac_ext
13471{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13472echo "${ECHO_T}$ac_header_preproc" >&6; }
13473
13474# So?  What about this header?
13475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13476  yes:no: )
13477    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13479    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13481    ac_header_preproc=yes
13482    ;;
13483  no:yes:* )
13484    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13486    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13487echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13488    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13490    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13491echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13494    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13496
13497    ;;
13498esac
13499{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13502  echo $ECHO_N "(cached) $ECHO_C" >&6
13503else
13504  eval "$as_ac_Header=\$ac_header_preproc"
13505fi
13506ac_res=`eval echo '${'$as_ac_Header'}'`
13507	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13508echo "${ECHO_T}$ac_res" >&6; }
13509
13510fi
13511if test `eval echo '${'$as_ac_Header'}'` = yes; then
13512  cat >>confdefs.h <<_ACEOF
13513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13514_ACEOF
13515
13516fi
13517
13518done
13519
13520
13521{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13522echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13523if test "${ac_cv_c_const+set}" = set; then
13524  echo $ECHO_N "(cached) $ECHO_C" >&6
13525else
13526  cat >conftest.$ac_ext <<_ACEOF
13527/* confdefs.h.  */
13528_ACEOF
13529cat confdefs.h >>conftest.$ac_ext
13530cat >>conftest.$ac_ext <<_ACEOF
13531/* end confdefs.h.  */
13532
13533int
13534main ()
13535{
13536/* FIXME: Include the comments suggested by Paul. */
13537#ifndef __cplusplus
13538  /* Ultrix mips cc rejects this.  */
13539  typedef int charset[2];
13540  const charset cs;
13541  /* SunOS 4.1.1 cc rejects this.  */
13542  char const *const *pcpcc;
13543  char **ppc;
13544  /* NEC SVR4.0.2 mips cc rejects this.  */
13545  struct point {int x, y;};
13546  static struct point const zero = {0,0};
13547  /* AIX XL C 1.02.0.0 rejects this.
13548     It does not let you subtract one const X* pointer from another in
13549     an arm of an if-expression whose if-part is not a constant
13550     expression */
13551  const char *g = "string";
13552  pcpcc = &g + (g ? g-g : 0);
13553  /* HPUX 7.0 cc rejects these. */
13554  ++pcpcc;
13555  ppc = (char**) pcpcc;
13556  pcpcc = (char const *const *) ppc;
13557  { /* SCO 3.2v4 cc rejects this.  */
13558    char *t;
13559    char const *s = 0 ? (char *) 0 : (char const *) 0;
13560
13561    *t++ = 0;
13562    if (s) return 0;
13563  }
13564  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13565    int x[] = {25, 17};
13566    const int *foo = &x[0];
13567    ++foo;
13568  }
13569  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13570    typedef const int *iptr;
13571    iptr p = 0;
13572    ++p;
13573  }
13574  { /* AIX XL C 1.02.0.0 rejects this saying
13575       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13576    struct s { int j; const int *ap[3]; };
13577    struct s *b; b->j = 5;
13578  }
13579  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13580    const int foo = 10;
13581    if (!foo) return 0;
13582  }
13583  return !cs[0] && !zero.x;
13584#endif
13585
13586  ;
13587  return 0;
13588}
13589_ACEOF
13590rm -f conftest.$ac_objext
13591if { (ac_try="$ac_compile"
13592case "(($ac_try" in
13593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594  *) ac_try_echo=$ac_try;;
13595esac
13596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597  (eval "$ac_compile") 2>conftest.er1
13598  ac_status=$?
13599  grep -v '^ *+' conftest.er1 >conftest.err
13600  rm -f conftest.er1
13601  cat conftest.err >&5
13602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603  (exit $ac_status); } && {
13604	 test -z "$ac_c_werror_flag" ||
13605	 test ! -s conftest.err
13606       } && test -s conftest.$ac_objext; then
13607  ac_cv_c_const=yes
13608else
13609  echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
13612	ac_cv_c_const=no
13613fi
13614
13615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616fi
13617{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13618echo "${ECHO_T}$ac_cv_c_const" >&6; }
13619if test $ac_cv_c_const = no; then
13620
13621cat >>confdefs.h <<\_ACEOF
13622#define const
13623_ACEOF
13624
13625fi
13626
13627{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13628echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13629if test "${ac_cv_header_time+set}" = set; then
13630  echo $ECHO_N "(cached) $ECHO_C" >&6
13631else
13632  cat >conftest.$ac_ext <<_ACEOF
13633/* confdefs.h.  */
13634_ACEOF
13635cat confdefs.h >>conftest.$ac_ext
13636cat >>conftest.$ac_ext <<_ACEOF
13637/* end confdefs.h.  */
13638#include <sys/types.h>
13639#include <sys/time.h>
13640#include <time.h>
13641
13642int
13643main ()
13644{
13645if ((struct tm *) 0)
13646return 0;
13647  ;
13648  return 0;
13649}
13650_ACEOF
13651rm -f conftest.$ac_objext
13652if { (ac_try="$ac_compile"
13653case "(($ac_try" in
13654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655  *) ac_try_echo=$ac_try;;
13656esac
13657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658  (eval "$ac_compile") 2>conftest.er1
13659  ac_status=$?
13660  grep -v '^ *+' conftest.er1 >conftest.err
13661  rm -f conftest.er1
13662  cat conftest.err >&5
13663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664  (exit $ac_status); } && {
13665	 test -z "$ac_c_werror_flag" ||
13666	 test ! -s conftest.err
13667       } && test -s conftest.$ac_objext; then
13668  ac_cv_header_time=yes
13669else
13670  echo "$as_me: failed program was:" >&5
13671sed 's/^/| /' conftest.$ac_ext >&5
13672
13673	ac_cv_header_time=no
13674fi
13675
13676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677fi
13678{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13679echo "${ECHO_T}$ac_cv_header_time" >&6; }
13680if test $ac_cv_header_time = yes; then
13681
13682cat >>confdefs.h <<\_ACEOF
13683#define TIME_WITH_SYS_TIME 1
13684_ACEOF
13685
13686fi
13687
13688
13689
13690
13691
13692for ac_func in getcwd gettimeofday strdup
13693do
13694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13695{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13697if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13698  echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700  cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h.  */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
13705/* end confdefs.h.  */
13706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13707   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13708#define $ac_func innocuous_$ac_func
13709
13710/* System header to define __stub macros and hopefully few prototypes,
13711    which can conflict with char $ac_func (); below.
13712    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13713    <limits.h> exists even on freestanding compilers.  */
13714
13715#ifdef __STDC__
13716# include <limits.h>
13717#else
13718# include <assert.h>
13719#endif
13720
13721#undef $ac_func
13722
13723/* Override any GCC internal prototype to avoid an error.
13724   Use char because int might match the return type of a GCC
13725   builtin and then its argument prototype would still apply.  */
13726#ifdef __cplusplus
13727extern "C"
13728#endif
13729char $ac_func ();
13730/* The GNU C library defines this for functions which it implements
13731    to always fail with ENOSYS.  Some functions are actually named
13732    something starting with __ and the normal name is an alias.  */
13733#if defined __stub_$ac_func || defined __stub___$ac_func
13734choke me
13735#endif
13736
13737int
13738main ()
13739{
13740return $ac_func ();
13741  ;
13742  return 0;
13743}
13744_ACEOF
13745rm -f conftest.$ac_objext conftest$ac_exeext
13746if { (ac_try="$ac_link"
13747case "(($ac_try" in
13748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749  *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752  (eval "$ac_link") 2>conftest.er1
13753  ac_status=$?
13754  grep -v '^ *+' conftest.er1 >conftest.err
13755  rm -f conftest.er1
13756  cat conftest.err >&5
13757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758  (exit $ac_status); } && {
13759	 test -z "$ac_c_werror_flag" ||
13760	 test ! -s conftest.err
13761       } && test -s conftest$ac_exeext &&
13762       $as_test_x conftest$ac_exeext; then
13763  eval "$as_ac_var=yes"
13764else
13765  echo "$as_me: failed program was:" >&5
13766sed 's/^/| /' conftest.$ac_ext >&5
13767
13768	eval "$as_ac_var=no"
13769fi
13770
13771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13772      conftest$ac_exeext conftest.$ac_ext
13773fi
13774ac_res=`eval echo '${'$as_ac_var'}'`
13775	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13776echo "${ECHO_T}$ac_res" >&6; }
13777if test `eval echo '${'$as_ac_var'}'` = yes; then
13778  cat >>confdefs.h <<_ACEOF
13779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13780_ACEOF
13781
13782fi
13783done
13784
13785
13786
13787
13788for ac_func in finite isnan
13789do
13790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13791{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13793if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13794  echo $ECHO_N "(cached) $ECHO_C" >&6
13795else
13796  cat >conftest.$ac_ext <<_ACEOF
13797/* confdefs.h.  */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h.  */
13802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13803   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13804#define $ac_func innocuous_$ac_func
13805
13806/* System header to define __stub macros and hopefully few prototypes,
13807    which can conflict with char $ac_func (); below.
13808    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13809    <limits.h> exists even on freestanding compilers.  */
13810
13811#ifdef __STDC__
13812# include <limits.h>
13813#else
13814# include <assert.h>
13815#endif
13816
13817#undef $ac_func
13818
13819/* Override any GCC internal prototype to avoid an error.
13820   Use char because int might match the return type of a GCC
13821   builtin and then its argument prototype would still apply.  */
13822#ifdef __cplusplus
13823extern "C"
13824#endif
13825char $ac_func ();
13826/* The GNU C library defines this for functions which it implements
13827    to always fail with ENOSYS.  Some functions are actually named
13828    something starting with __ and the normal name is an alias.  */
13829#if defined __stub_$ac_func || defined __stub___$ac_func
13830choke me
13831#endif
13832
13833int
13834main ()
13835{
13836return $ac_func ();
13837  ;
13838  return 0;
13839}
13840_ACEOF
13841rm -f conftest.$ac_objext conftest$ac_exeext
13842if { (ac_try="$ac_link"
13843case "(($ac_try" in
13844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845  *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848  (eval "$ac_link") 2>conftest.er1
13849  ac_status=$?
13850  grep -v '^ *+' conftest.er1 >conftest.err
13851  rm -f conftest.er1
13852  cat conftest.err >&5
13853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854  (exit $ac_status); } && {
13855	 test -z "$ac_c_werror_flag" ||
13856	 test ! -s conftest.err
13857       } && test -s conftest$ac_exeext &&
13858       $as_test_x conftest$ac_exeext; then
13859  eval "$as_ac_var=yes"
13860else
13861  echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
13864	eval "$as_ac_var=no"
13865fi
13866
13867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13868      conftest$ac_exeext conftest.$ac_ext
13869fi
13870ac_res=`eval echo '${'$as_ac_var'}'`
13871	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13872echo "${ECHO_T}$ac_res" >&6; }
13873if test `eval echo '${'$as_ac_var'}'` = yes; then
13874  cat >>confdefs.h <<_ACEOF
13875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13876_ACEOF
13877
13878fi
13879done
13880
13881
13882
13883for ac_func in _finite _isnan
13884do
13885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13886{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13888if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13889  echo $ECHO_N "(cached) $ECHO_C" >&6
13890else
13891  cat >conftest.$ac_ext <<_ACEOF
13892/* confdefs.h.  */
13893_ACEOF
13894cat confdefs.h >>conftest.$ac_ext
13895cat >>conftest.$ac_ext <<_ACEOF
13896/* end confdefs.h.  */
13897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13898   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13899#define $ac_func innocuous_$ac_func
13900
13901/* System header to define __stub macros and hopefully few prototypes,
13902    which can conflict with char $ac_func (); below.
13903    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13904    <limits.h> exists even on freestanding compilers.  */
13905
13906#ifdef __STDC__
13907# include <limits.h>
13908#else
13909# include <assert.h>
13910#endif
13911
13912#undef $ac_func
13913
13914/* Override any GCC internal prototype to avoid an error.
13915   Use char because int might match the return type of a GCC
13916   builtin and then its argument prototype would still apply.  */
13917#ifdef __cplusplus
13918extern "C"
13919#endif
13920char $ac_func ();
13921/* The GNU C library defines this for functions which it implements
13922    to always fail with ENOSYS.  Some functions are actually named
13923    something starting with __ and the normal name is an alias.  */
13924#if defined __stub_$ac_func || defined __stub___$ac_func
13925choke me
13926#endif
13927
13928int
13929main ()
13930{
13931return $ac_func ();
13932  ;
13933  return 0;
13934}
13935_ACEOF
13936rm -f conftest.$ac_objext conftest$ac_exeext
13937if { (ac_try="$ac_link"
13938case "(($ac_try" in
13939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940  *) ac_try_echo=$ac_try;;
13941esac
13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943  (eval "$ac_link") 2>conftest.er1
13944  ac_status=$?
13945  grep -v '^ *+' conftest.er1 >conftest.err
13946  rm -f conftest.er1
13947  cat conftest.err >&5
13948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949  (exit $ac_status); } && {
13950	 test -z "$ac_c_werror_flag" ||
13951	 test ! -s conftest.err
13952       } && test -s conftest$ac_exeext &&
13953       $as_test_x conftest$ac_exeext; then
13954  eval "$as_ac_var=yes"
13955else
13956  echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
13959	eval "$as_ac_var=no"
13960fi
13961
13962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13963      conftest$ac_exeext conftest.$ac_ext
13964fi
13965ac_res=`eval echo '${'$as_ac_var'}'`
13966	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13967echo "${ECHO_T}$ac_res" >&6; }
13968if test `eval echo '${'$as_ac_var'}'` = yes; then
13969  cat >>confdefs.h <<_ACEOF
13970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13971_ACEOF
13972
13973fi
13974done
13975
13976
13977for ac_header in ieeefp.h
13978do
13979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13981  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13984  echo $ECHO_N "(cached) $ECHO_C" >&6
13985fi
13986ac_res=`eval echo '${'$as_ac_Header'}'`
13987	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13988echo "${ECHO_T}$ac_res" >&6; }
13989else
13990  # Is the header compilable?
13991{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13993cat >conftest.$ac_ext <<_ACEOF
13994/* confdefs.h.  */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h.  */
13999$ac_includes_default
14000#include <$ac_header>
14001_ACEOF
14002rm -f conftest.$ac_objext
14003if { (ac_try="$ac_compile"
14004case "(($ac_try" in
14005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006  *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009  (eval "$ac_compile") 2>conftest.er1
14010  ac_status=$?
14011  grep -v '^ *+' conftest.er1 >conftest.err
14012  rm -f conftest.er1
14013  cat conftest.err >&5
14014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015  (exit $ac_status); } && {
14016	 test -z "$ac_c_werror_flag" ||
14017	 test ! -s conftest.err
14018       } && test -s conftest.$ac_objext; then
14019  ac_header_compiler=yes
14020else
14021  echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
14024	ac_header_compiler=no
14025fi
14026
14027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14029echo "${ECHO_T}$ac_header_compiler" >&6; }
14030
14031# Is the header present?
14032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14034cat >conftest.$ac_ext <<_ACEOF
14035/* confdefs.h.  */
14036_ACEOF
14037cat confdefs.h >>conftest.$ac_ext
14038cat >>conftest.$ac_ext <<_ACEOF
14039/* end confdefs.h.  */
14040#include <$ac_header>
14041_ACEOF
14042if { (ac_try="$ac_cpp conftest.$ac_ext"
14043case "(($ac_try" in
14044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045  *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14049  ac_status=$?
14050  grep -v '^ *+' conftest.er1 >conftest.err
14051  rm -f conftest.er1
14052  cat conftest.err >&5
14053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054  (exit $ac_status); } >/dev/null && {
14055	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14056	 test ! -s conftest.err
14057       }; then
14058  ac_header_preproc=yes
14059else
14060  echo "$as_me: failed program was:" >&5
14061sed 's/^/| /' conftest.$ac_ext >&5
14062
14063  ac_header_preproc=no
14064fi
14065
14066rm -f conftest.err conftest.$ac_ext
14067{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14068echo "${ECHO_T}$ac_header_preproc" >&6; }
14069
14070# So?  What about this header?
14071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14072  yes:no: )
14073    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14075    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14077    ac_header_preproc=yes
14078    ;;
14079  no:yes:* )
14080    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14082    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14083echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14084    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14086    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14087echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14090    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14092
14093    ;;
14094esac
14095{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14098  echo $ECHO_N "(cached) $ECHO_C" >&6
14099else
14100  eval "$as_ac_Header=\$ac_header_preproc"
14101fi
14102ac_res=`eval echo '${'$as_ac_Header'}'`
14103	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14104echo "${ECHO_T}$ac_res" >&6; }
14105
14106fi
14107if test `eval echo '${'$as_ac_Header'}'` = yes; then
14108  cat >>confdefs.h <<_ACEOF
14109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14110_ACEOF
14111
14112fi
14113
14114done
14115
14116
14117# Set up binreloc (for a relocatable autopackage file)
14118
14119	# Check whether --enable-binreloc was given.
14120if test "${enable_binreloc+set}" = set; then
14121  enableval=$enable_binreloc; enable_binreloc=$enableval
14122else
14123  enable_binreloc=auto
14124fi
14125
14126
14127	BINRELOC_CFLAGS=
14128	BINRELOC_LIBS=
14129	if test "x$enable_binreloc" = "xauto"; then
14130		{ echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
14131echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6; }
14132if test "${ac_cv_file__proc_self_maps+set}" = set; then
14133  echo $ECHO_N "(cached) $ECHO_C" >&6
14134else
14135  test "$cross_compiling" = yes &&
14136  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
14137echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
14138   { (exit 1); exit 1; }; }
14139if test -r "/proc/self/maps"; then
14140  ac_cv_file__proc_self_maps=yes
14141else
14142  ac_cv_file__proc_self_maps=no
14143fi
14144fi
14145{ echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
14146echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6; }
14147
14148		{ echo "$as_me:$LINENO: checking whether everything is installed to the same prefix" >&5
14149echo $ECHO_N "checking whether everything is installed to the same prefix... $ECHO_C" >&6; }
14150if test "${br_cv_valid_prefixes+set}" = set; then
14151  echo $ECHO_N "(cached) $ECHO_C" >&6
14152else
14153
14154				if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
14155					"$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \
14156					"$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc'
14157				then
14158					br_cv_valid_prefixes=yes
14159				else
14160					br_cv_valid_prefixes=no
14161				fi
14162
14163fi
14164{ echo "$as_me:$LINENO: result: $br_cv_valid_prefixes" >&5
14165echo "${ECHO_T}$br_cv_valid_prefixes" >&6; }
14166	fi
14167	{ echo "$as_me:$LINENO: checking whether binary relocation support should be enabled" >&5
14168echo $ECHO_N "checking whether binary relocation support should be enabled... $ECHO_C" >&6; }
14169if test "${br_cv_binreloc+set}" = set; then
14170  echo $ECHO_N "(cached) $ECHO_C" >&6
14171else
14172  if test "x$enable_binreloc" = "xyes"; then
14173		       	       br_cv_binreloc=yes
14174		       elif test "x$enable_binreloc" = "xauto"; then
14175			       if test "x$br_cv_valid_prefixes" = "xyes" -a \
14176			       	       "x$ac_cv_file__proc_self_maps" = "xyes"; then
14177				       br_cv_binreloc=yes
14178			       else
14179				       br_cv_binreloc=no
14180			       fi
14181		       else
14182			       br_cv_binreloc=no
14183		       fi
14184fi
14185{ echo "$as_me:$LINENO: result: $br_cv_binreloc" >&5
14186echo "${ECHO_T}$br_cv_binreloc" >&6; }
14187
14188	if test "x$br_cv_binreloc" = "xyes"; then
14189		BINRELOC_CFLAGS="-DENABLE_BINRELOC"
14190
14191cat >>confdefs.h <<\_ACEOF
14192#define ENABLE_BINRELOC
14193_ACEOF
14194
14195	fi
14196
14197
14198
14199
14200
14201
14202TR_CPPFLAGS=""
14203TR_CFLAGS="$CFLAGS"
14204TR_CXXFLAGS="$CXXFLAGS"
14205TR_LIBS=""
14206
14207if test "x$CXXFLAGS" = "x" -a "x$CFLAGS" = "x" ; then
14208	TR_CPPFLAGS=""
14209	TR_CFLAGS=""
14210	TR_CXXFLAGS=""
14211	TR_LIBS=""
14212fi
14213
14214# Check whether --enable-optimized was given.
14215if test "${enable_optimized+set}" = set; then
14216  enableval=$enable_optimized; if test "x${enableval}" = "xyes" ; then
14217			TR_CPPFLAGS=""
14218			TR_CFLAGS="-O3 -Wall -Wno-deprecated -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
14219			TR_CXXFLAGS="-O3 -Wall -Wno-deprecated -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
14220			TR_LIBS=""
14221
14222			case "$host" in
14223			i*86-*-*) TR_CFLAGS="$TR_CFLAGS -falign-loops=2 -falign-jumps=2 -falign-functions=2";
14224				TR_CXXFLAGS="$TR_CXXFLAGS -falign-loops=2 -falign-jumps=2 -falign-functions=2";;
14225			alpha*-*-linux-*) TR_CFLAGS="$TR_CFLAGS -mieee";;
14226			esac
14227	       fi
14228fi
14229
14230
14231# Check whether --enable-debug was given.
14232if test "${enable_debug+set}" = set; then
14233  enableval=$enable_debug; if test "x${enableval}" = "xyes" ; then
14234			TR_CFLAGS="-O0 -ggdb3 -DDEBUG -Wall -Wno-deprecated -fno-inline";
14235			TR_CXXFLAGS="$TR_CFLAGS";
14236			TR_CPPFLAGS="$TR_CFLAGS"
14237	       fi
14238fi
14239
14240
14241# Check whether --enable-profile was given.
14242if test "${enable_profile+set}" = set; then
14243  enableval=$enable_profile; TR_CFLAGS="$TR_CFLAGS -pg"; TR_CXXFLAGS="$TR_CXXFLAGS -pg"
14244fi
14245
14246
14247
14248{ echo "$as_me:$LINENO: checking for Win32 platform" >&5
14249echo $ECHO_N "checking for Win32 platform... $ECHO_C" >&6; }
14250cat >conftest.$ac_ext <<_ACEOF
14251/* confdefs.h.  */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h.  */
14256
14257#if defined(WIN32) || defined(__CYGWIN__)
14258  yes
14259#endif
14260
14261_ACEOF
14262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14263  $EGREP "yes" >/dev/null 2>&1; then
14264  is_win32=yes
14265else
14266  is_win32=no
14267fi
14268rm -f conftest*
14269
14270{ echo "$as_me:$LINENO: result: $is_win32" >&5
14271echo "${ECHO_T}$is_win32" >&6; }
14272
14273{ echo "$as_me:$LINENO: checking for Mac OSX platform" >&5
14274echo $ECHO_N "checking for Mac OSX platform... $ECHO_C" >&6; }
14275cat >conftest.$ac_ext <<_ACEOF
14276/* confdefs.h.  */
14277_ACEOF
14278cat confdefs.h >>conftest.$ac_ext
14279cat >>conftest.$ac_ext <<_ACEOF
14280/* end confdefs.h.  */
14281
14282#if defined(__APPLE__) || defined(__MACH_O__)
14283  yes
14284#endif
14285
14286_ACEOF
14287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14288  $EGREP "yes" >/dev/null 2>&1; then
14289  is_macosx=yes
14290else
14291  is_macosx=no
14292fi
14293rm -f conftest*
14294
14295{ echo "$as_me:$LINENO: result: $is_macosx" >&5
14296echo "${ECHO_T}$is_macosx" >&6; }
14297
14298if test "x$is_win32" = "xyes" ; then
14299    TR_LIBS="$TR_LIBS -luser32 -lgdi32"
14300fi
14301
14302
14303{ echo "$as_me:$LINENO: checking for main in -ldl" >&5
14304echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
14305if test "${ac_cv_lib_dl_main+set}" = set; then
14306  echo $ECHO_N "(cached) $ECHO_C" >&6
14307else
14308  ac_check_lib_save_LIBS=$LIBS
14309LIBS="-ldl  $LIBS"
14310cat >conftest.$ac_ext <<_ACEOF
14311/* confdefs.h.  */
14312_ACEOF
14313cat confdefs.h >>conftest.$ac_ext
14314cat >>conftest.$ac_ext <<_ACEOF
14315/* end confdefs.h.  */
14316
14317
14318int
14319main ()
14320{
14321return main ();
14322  ;
14323  return 0;
14324}
14325_ACEOF
14326rm -f conftest.$ac_objext conftest$ac_exeext
14327if { (ac_try="$ac_link"
14328case "(($ac_try" in
14329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330  *) ac_try_echo=$ac_try;;
14331esac
14332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333  (eval "$ac_link") 2>conftest.er1
14334  ac_status=$?
14335  grep -v '^ *+' conftest.er1 >conftest.err
14336  rm -f conftest.er1
14337  cat conftest.err >&5
14338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339  (exit $ac_status); } && {
14340	 test -z "$ac_c_werror_flag" ||
14341	 test ! -s conftest.err
14342       } && test -s conftest$ac_exeext &&
14343       $as_test_x conftest$ac_exeext; then
14344  ac_cv_lib_dl_main=yes
14345else
14346  echo "$as_me: failed program was:" >&5
14347sed 's/^/| /' conftest.$ac_ext >&5
14348
14349	ac_cv_lib_dl_main=no
14350fi
14351
14352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353      conftest$ac_exeext conftest.$ac_ext
14354LIBS=$ac_check_lib_save_LIBS
14355fi
14356{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14357echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
14358if test $ac_cv_lib_dl_main = yes; then
14359  TR_LIBS="$TR_LIBS -ldl"
14360fi
14361
14362{ echo "$as_me:$LINENO: checking for main in -lm" >&5
14363echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
14364if test "${ac_cv_lib_m_main+set}" = set; then
14365  echo $ECHO_N "(cached) $ECHO_C" >&6
14366else
14367  ac_check_lib_save_LIBS=$LIBS
14368LIBS="-lm  $LIBS"
14369cat >conftest.$ac_ext <<_ACEOF
14370/* confdefs.h.  */
14371_ACEOF
14372cat confdefs.h >>conftest.$ac_ext
14373cat >>conftest.$ac_ext <<_ACEOF
14374/* end confdefs.h.  */
14375
14376
14377int
14378main ()
14379{
14380return main ();
14381  ;
14382  return 0;
14383}
14384_ACEOF
14385rm -f conftest.$ac_objext conftest$ac_exeext
14386if { (ac_try="$ac_link"
14387case "(($ac_try" in
14388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389  *) ac_try_echo=$ac_try;;
14390esac
14391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392  (eval "$ac_link") 2>conftest.er1
14393  ac_status=$?
14394  grep -v '^ *+' conftest.er1 >conftest.err
14395  rm -f conftest.er1
14396  cat conftest.err >&5
14397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398  (exit $ac_status); } && {
14399	 test -z "$ac_c_werror_flag" ||
14400	 test ! -s conftest.err
14401       } && test -s conftest$ac_exeext &&
14402       $as_test_x conftest$ac_exeext; then
14403  ac_cv_lib_m_main=yes
14404else
14405  echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408	ac_cv_lib_m_main=no
14409fi
14410
14411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14412      conftest$ac_exeext conftest.$ac_ext
14413LIBS=$ac_check_lib_save_LIBS
14414fi
14415{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
14416echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
14417if test $ac_cv_lib_m_main = yes; then
14418  TR_LIBS="$TR_LIBS -lm"
14419fi
14420
14421{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
14422echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
14423if test "${ac_cv_lib_z_deflate+set}" = set; then
14424  echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426  ac_check_lib_save_LIBS=$LIBS
14427LIBS="-lz  $LIBS"
14428cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h.  */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h.  */
14434
14435/* Override any GCC internal prototype to avoid an error.
14436   Use char because int might match the return type of a GCC
14437   builtin and then its argument prototype would still apply.  */
14438#ifdef __cplusplus
14439extern "C"
14440#endif
14441char deflate ();
14442int
14443main ()
14444{
14445return deflate ();
14446  ;
14447  return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext conftest$ac_exeext
14451if { (ac_try="$ac_link"
14452case "(($ac_try" in
14453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454  *) ac_try_echo=$ac_try;;
14455esac
14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457  (eval "$ac_link") 2>conftest.er1
14458  ac_status=$?
14459  grep -v '^ *+' conftest.er1 >conftest.err
14460  rm -f conftest.er1
14461  cat conftest.err >&5
14462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463  (exit $ac_status); } && {
14464	 test -z "$ac_c_werror_flag" ||
14465	 test ! -s conftest.err
14466       } && test -s conftest$ac_exeext &&
14467       $as_test_x conftest$ac_exeext; then
14468  ac_cv_lib_z_deflate=yes
14469else
14470  echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473	ac_cv_lib_z_deflate=no
14474fi
14475
14476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477      conftest$ac_exeext conftest.$ac_ext
14478LIBS=$ac_check_lib_save_LIBS
14479fi
14480{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
14481echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
14482if test $ac_cv_lib_z_deflate = yes; then
14483  TR_LIBS="$TR_LIBS -lz"
14484else
14485  { { echo "$as_me:$LINENO: error: Cannot find libz library" >&5
14486echo "$as_me: error: Cannot find libz library" >&2;}
14487   { (exit 1); exit 1; }; }
14488fi
14489
14490
14491# Check whether --enable-sdl was given.
14492if test "${enable_sdl+set}" = set; then
14493  enableval=$enable_sdl;
14494fi
14495
14496# Check whether --enable-sdl was given.
14497if test "${enable_sdl+set}" = set; then
14498  enableval=$enable_sdl;
14499fi
14500
14501# Check whether --enable-sdl was given.
14502if test "${enable_sdl+set}" = set; then
14503  enableval=$enable_sdl;
14504fi
14505
14506
14507if test "x$enable_sdl" != "xno" ; then
14508
14509    SDL_VERSION=1.0.1
14510
14511# Check whether --with-sdl-prefix was given.
14512if test "${with_sdl_prefix+set}" = set; then
14513  withval=$with_sdl_prefix; sdl_prefix="$withval"
14514else
14515  sdl_prefix=""
14516fi
14517
14518
14519# Check whether --with-sdl-exec-prefix was given.
14520if test "${with_sdl_exec_prefix+set}" = set; then
14521  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14522else
14523  sdl_exec_prefix=""
14524fi
14525
14526# Check whether --enable-sdltest was given.
14527if test "${enable_sdltest+set}" = set; then
14528  enableval=$enable_sdltest;
14529else
14530  enable_sdltest=yes
14531fi
14532
14533
14534  if test x$sdl_exec_prefix != x ; then
14535     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
14536     if test x${SDL_CONFIG+set} != xset ; then
14537        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14538     fi
14539  fi
14540  if test x$sdl_prefix != x ; then
14541     sdl_args="$sdl_args --prefix=$sdl_prefix"
14542     if test x${SDL_CONFIG+set} != xset ; then
14543        SDL_CONFIG=$sdl_prefix/bin/sdl-config
14544     fi
14545  fi
14546
14547  # Extract the first word of "sdl-config", so it can be a program name with args.
14548set dummy sdl-config; ac_word=$2
14549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14551if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
14552  echo $ECHO_N "(cached) $ECHO_C" >&6
14553else
14554  case $SDL_CONFIG in
14555  [\\/]* | ?:[\\/]*)
14556  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14557  ;;
14558  *)
14559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560for as_dir in $PATH
14561do
14562  IFS=$as_save_IFS
14563  test -z "$as_dir" && as_dir=.
14564  for ac_exec_ext in '' $ac_executable_extensions; do
14565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14566    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14568    break 2
14569  fi
14570done
14571done
14572IFS=$as_save_IFS
14573
14574  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14575  ;;
14576esac
14577fi
14578SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14579if test -n "$SDL_CONFIG"; then
14580  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
14581echo "${ECHO_T}$SDL_CONFIG" >&6; }
14582else
14583  { echo "$as_me:$LINENO: result: no" >&5
14584echo "${ECHO_T}no" >&6; }
14585fi
14586
14587
14588  min_sdl_version=$SDL_VERSION
14589  { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
14590echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
14591  no_sdl=""
14592  if test "$SDL_CONFIG" = "no" ; then
14593    no_sdl=yes
14594  else
14595    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
14596    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
14597
14598    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
14599           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14600    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
14601           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14602    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14603           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14604    if test "x$enable_sdltest" = "xyes" ; then
14605      ac_save_CFLAGS="$CFLAGS"
14606      ac_save_LIBS="$LIBS"
14607      CFLAGS="$CFLAGS $SDL_CFLAGS"
14608      LIBS="$LIBS $SDL_LIBS"
14609      rm -f conf.sdltest
14610      if test "$cross_compiling" = yes; then
14611  echo $ac_n "cross compiling; assumed OK... $ac_c"
14612else
14613  cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h.  */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h.  */
14619
14620#include <stdio.h>
14621#include <stdlib.h>
14622#include <string.h>
14623#include "SDL.h"
14624
14625char*
14626my_strdup (char *str)
14627{
14628  char *new_str;
14629
14630  if (str)
14631    {
14632      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14633      strcpy (new_str, str);
14634    }
14635  else
14636    new_str = NULL;
14637
14638  return new_str;
14639}
14640
14641int main (int argc, char *argv[])
14642{
14643  int major, minor, micro;
14644  char *tmp_version;
14645
14646  /* This hangs on some systems (?)
14647  system ("touch conf.sdltest");
14648  */
14649  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14650
14651  /* HP/UX 9 (%@#!) writes to sscanf strings */
14652  tmp_version = my_strdup("$min_sdl_version");
14653  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14654     printf("%s, bad version string\n", "$min_sdl_version");
14655     exit(1);
14656   }
14657
14658   if (($sdl_major_version > major) ||
14659      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14660      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14661    {
14662      return 0;
14663    }
14664  else
14665    {
14666      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14667      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14668      printf("*** best to upgrade to the required version.\n");
14669      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14670      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14671      printf("*** config.cache before re-running configure\n");
14672      return 1;
14673    }
14674}
14675
14676
14677_ACEOF
14678rm -f conftest$ac_exeext
14679if { (ac_try="$ac_link"
14680case "(($ac_try" in
14681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682  *) ac_try_echo=$ac_try;;
14683esac
14684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685  (eval "$ac_link") 2>&5
14686  ac_status=$?
14687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14689  { (case "(($ac_try" in
14690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691  *) ac_try_echo=$ac_try;;
14692esac
14693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694  (eval "$ac_try") 2>&5
14695  ac_status=$?
14696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697  (exit $ac_status); }; }; then
14698  :
14699else
14700  echo "$as_me: program exited with status $ac_status" >&5
14701echo "$as_me: failed program was:" >&5
14702sed 's/^/| /' conftest.$ac_ext >&5
14703
14704( exit $ac_status )
14705no_sdl=yes
14706fi
14707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14708fi
14709
14710
14711       CFLAGS="$ac_save_CFLAGS"
14712       LIBS="$ac_save_LIBS"
14713     fi
14714  fi
14715  if test "x$no_sdl" = x ; then
14716     { echo "$as_me:$LINENO: result: yes" >&5
14717echo "${ECHO_T}yes" >&6; }
14718     have_SDL=yes
14719  else
14720     { echo "$as_me:$LINENO: result: no" >&5
14721echo "${ECHO_T}no" >&6; }
14722     if test "$SDL_CONFIG" = "no" ; then
14723       echo "*** The sdl-config script installed by SDL could not be found"
14724       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14725       echo "*** your path, or set the SDL_CONFIG environment variable to the"
14726       echo "*** full path to sdl-config."
14727     else
14728       if test -f conf.sdltest ; then
14729        :
14730       else
14731          echo "*** Could not run SDL test program, checking why..."
14732          CFLAGS="$CFLAGS $SDL_CFLAGS"
14733          LIBS="$LIBS $SDL_LIBS"
14734          cat >conftest.$ac_ext <<_ACEOF
14735/* confdefs.h.  */
14736_ACEOF
14737cat confdefs.h >>conftest.$ac_ext
14738cat >>conftest.$ac_ext <<_ACEOF
14739/* end confdefs.h.  */
14740
14741#include <stdio.h>
14742#include "SDL.h"
14743
14744int
14745main ()
14746{
14747 return 0;
14748  ;
14749  return 0;
14750}
14751_ACEOF
14752rm -f conftest.$ac_objext conftest$ac_exeext
14753if { (ac_try="$ac_link"
14754case "(($ac_try" in
14755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756  *) ac_try_echo=$ac_try;;
14757esac
14758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14759  (eval "$ac_link") 2>conftest.er1
14760  ac_status=$?
14761  grep -v '^ *+' conftest.er1 >conftest.err
14762  rm -f conftest.er1
14763  cat conftest.err >&5
14764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765  (exit $ac_status); } && {
14766	 test -z "$ac_c_werror_flag" ||
14767	 test ! -s conftest.err
14768       } && test -s conftest$ac_exeext &&
14769       $as_test_x conftest$ac_exeext; then
14770   echo "*** The test program compiled, but did not run. This usually means"
14771          echo "*** that the run-time linker is not finding SDL or finding the wrong"
14772          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14773          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14774          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14775          echo "*** is required on your system"
14776	  echo "***"
14777          echo "*** If you have an old version installed, it is best to remove it, although"
14778          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14779else
14780  echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783	 echo "*** The test program failed to compile or link. See the file config.log for the"
14784          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14785          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14786          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14787fi
14788
14789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14790      conftest$ac_exeext conftest.$ac_ext
14791          CFLAGS="$ac_save_CFLAGS"
14792          LIBS="$ac_save_LIBS"
14793       fi
14794     fi
14795     SDL_CFLAGS=""
14796     SDL_LIBS=""
14797     have_SDL=no
14798  fi
14799
14800
14801  rm -f conf.sdltest
14802
14803
14804    if test "x$have_SDL" = "xyes" ; then
14805	TR_CPPFLAGS="$TR_CPPFLAGS -DHAVE_SDL=1"
14806	TR_CFLAGS="$TR_CFLAGS $SDL_CFLAGS"
14807	TR_CXXFLAGS="$TR_CXXFLAGS $SDL_CFLAGS"
14808	TR_LIBS="$TR_LIBS $SDL_LIBS"
14809
14810		saved_LIBS="$LIBS"
14811	LIBS="$saved_LIBS $TR_LIBS"
14812
14813
14814for ac_func in SDL_JoystickOpen
14815do
14816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14820  echo $ECHO_N "(cached) $ECHO_C" >&6
14821else
14822  cat >conftest.$ac_ext <<_ACEOF
14823/* confdefs.h.  */
14824_ACEOF
14825cat confdefs.h >>conftest.$ac_ext
14826cat >>conftest.$ac_ext <<_ACEOF
14827/* end confdefs.h.  */
14828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14830#define $ac_func innocuous_$ac_func
14831
14832/* System header to define __stub macros and hopefully few prototypes,
14833    which can conflict with char $ac_func (); below.
14834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14835    <limits.h> exists even on freestanding compilers.  */
14836
14837#ifdef __STDC__
14838# include <limits.h>
14839#else
14840# include <assert.h>
14841#endif
14842
14843#undef $ac_func
14844
14845/* Override any GCC internal prototype to avoid an error.
14846   Use char because int might match the return type of a GCC
14847   builtin and then its argument prototype would still apply.  */
14848#ifdef __cplusplus
14849extern "C"
14850#endif
14851char $ac_func ();
14852/* The GNU C library defines this for functions which it implements
14853    to always fail with ENOSYS.  Some functions are actually named
14854    something starting with __ and the normal name is an alias.  */
14855#if defined __stub_$ac_func || defined __stub___$ac_func
14856choke me
14857#endif
14858
14859int
14860main ()
14861{
14862return $ac_func ();
14863  ;
14864  return 0;
14865}
14866_ACEOF
14867rm -f conftest.$ac_objext conftest$ac_exeext
14868if { (ac_try="$ac_link"
14869case "(($ac_try" in
14870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871  *) ac_try_echo=$ac_try;;
14872esac
14873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874  (eval "$ac_link") 2>conftest.er1
14875  ac_status=$?
14876  grep -v '^ *+' conftest.er1 >conftest.err
14877  rm -f conftest.er1
14878  cat conftest.err >&5
14879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880  (exit $ac_status); } && {
14881	 test -z "$ac_c_werror_flag" ||
14882	 test ! -s conftest.err
14883       } && test -s conftest$ac_exeext &&
14884       $as_test_x conftest$ac_exeext; then
14885  eval "$as_ac_var=yes"
14886else
14887  echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
14890	eval "$as_ac_var=no"
14891fi
14892
14893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14894      conftest$ac_exeext conftest.$ac_ext
14895fi
14896ac_res=`eval echo '${'$as_ac_var'}'`
14897	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14898echo "${ECHO_T}$ac_res" >&6; }
14899if test `eval echo '${'$as_ac_var'}'` = yes; then
14900  cat >>confdefs.h <<_ACEOF
14901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14902_ACEOF
14903 have_SDL_joystick=yes
14904else
14905  have_SDL_joystick=no
14906fi
14907done
14908
14909
14910	if test "x$have_SDL_joystick" = "xno" ; then
14911	    echo "*** This version of SDL doesn't have joystick support."
14912	    echo "*** Configuring without joystick support."
14913	fi
14914
14915	if test "x$enable_sdl_mixer" != "xno" ; then
14916				{ echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
14917echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
14918if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
14919  echo $ECHO_N "(cached) $ECHO_C" >&6
14920else
14921  ac_check_lib_save_LIBS=$LIBS
14922LIBS="-lSDL_mixer  $LIBS"
14923cat >conftest.$ac_ext <<_ACEOF
14924/* confdefs.h.  */
14925_ACEOF
14926cat confdefs.h >>conftest.$ac_ext
14927cat >>conftest.$ac_ext <<_ACEOF
14928/* end confdefs.h.  */
14929
14930/* Override any GCC internal prototype to avoid an error.
14931   Use char because int might match the return type of a GCC
14932   builtin and then its argument prototype would still apply.  */
14933#ifdef __cplusplus
14934extern "C"
14935#endif
14936char Mix_OpenAudio ();
14937int
14938main ()
14939{
14940return Mix_OpenAudio ();
14941  ;
14942  return 0;
14943}
14944_ACEOF
14945rm -f conftest.$ac_objext conftest$ac_exeext
14946if { (ac_try="$ac_link"
14947case "(($ac_try" in
14948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949  *) ac_try_echo=$ac_try;;
14950esac
14951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952  (eval "$ac_link") 2>conftest.er1
14953  ac_status=$?
14954  grep -v '^ *+' conftest.er1 >conftest.err
14955  rm -f conftest.er1
14956  cat conftest.err >&5
14957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958  (exit $ac_status); } && {
14959	 test -z "$ac_c_werror_flag" ||
14960	 test ! -s conftest.err
14961       } && test -s conftest$ac_exeext &&
14962       $as_test_x conftest$ac_exeext; then
14963  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
14964else
14965  echo "$as_me: failed program was:" >&5
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968	ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
14969fi
14970
14971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14972      conftest$ac_exeext conftest.$ac_ext
14973LIBS=$ac_check_lib_save_LIBS
14974fi
14975{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
14976echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
14977if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
14978  have_SDL_mixer=yes
14979else
14980  have_SDL_mixer=no
14981fi
14982
14983
14984		if test "x$have_SDL_mixer" = "xyes" ; then
14985		    TR_CPPFLAGS="$TR_CPPFLAGS -DHAVE_SDL_MIXER=1"
14986		    TR_LIBS="$TR_LIBS -lSDL_mixer"
14987		else
14988		    echo "*** SDL_mixer not found.  Configuring without audio support."
14989		fi
14990	fi
14991
14992	if test "x$enable_sdl_net" != "xno" ; then
14993				{ echo "$as_me:$LINENO: checking for SDLNet_Init in -lSDL_net" >&5
14994echo $ECHO_N "checking for SDLNet_Init in -lSDL_net... $ECHO_C" >&6; }
14995if test "${ac_cv_lib_SDL_net_SDLNet_Init+set}" = set; then
14996  echo $ECHO_N "(cached) $ECHO_C" >&6
14997else
14998  ac_check_lib_save_LIBS=$LIBS
14999LIBS="-lSDL_net  $LIBS"
15000cat >conftest.$ac_ext <<_ACEOF
15001/* confdefs.h.  */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h.  */
15006
15007/* Override any GCC internal prototype to avoid an error.
15008   Use char because int might match the return type of a GCC
15009   builtin and then its argument prototype would still apply.  */
15010#ifdef __cplusplus
15011extern "C"
15012#endif
15013char SDLNet_Init ();
15014int
15015main ()
15016{
15017return SDLNet_Init ();
15018  ;
15019  return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext conftest$ac_exeext
15023if { (ac_try="$ac_link"
15024case "(($ac_try" in
15025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026  *) ac_try_echo=$ac_try;;
15027esac
15028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029  (eval "$ac_link") 2>conftest.er1
15030  ac_status=$?
15031  grep -v '^ *+' conftest.er1 >conftest.err
15032  rm -f conftest.er1
15033  cat conftest.err >&5
15034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035  (exit $ac_status); } && {
15036	 test -z "$ac_c_werror_flag" ||
15037	 test ! -s conftest.err
15038       } && test -s conftest$ac_exeext &&
15039       $as_test_x conftest$ac_exeext; then
15040  ac_cv_lib_SDL_net_SDLNet_Init=yes
15041else
15042  echo "$as_me: failed program was:" >&5
15043sed 's/^/| /' conftest.$ac_ext >&5
15044
15045	ac_cv_lib_SDL_net_SDLNet_Init=no
15046fi
15047
15048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15049      conftest$ac_exeext conftest.$ac_ext
15050LIBS=$ac_check_lib_save_LIBS
15051fi
15052{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5
15053echo "${ECHO_T}$ac_cv_lib_SDL_net_SDLNet_Init" >&6; }
15054if test $ac_cv_lib_SDL_net_SDLNet_Init = yes; then
15055  have_SDL_net=yes
15056else
15057  have_SDL_net=no
15058fi
15059
15060
15061		if test "x$have_SDL_net" = "xyes" ; then
15062		   TR_CPPFLAGS="$TR_CPPFLAGS -DHAVE_SDL_NET=1"
15063		   TR_LIBS="$TR_LIBS -lSDL_net"
15064		else
15065		   echo "*** SDL_net not found.  Configuring without network support."
15066		fi
15067	fi
15068
15069		{ echo "$as_me:$LINENO: checking for TTF_Init in -lSDL_ttf" >&5
15070echo $ECHO_N "checking for TTF_Init in -lSDL_ttf... $ECHO_C" >&6; }
15071if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then
15072  echo $ECHO_N "(cached) $ECHO_C" >&6
15073else
15074  ac_check_lib_save_LIBS=$LIBS
15075LIBS="-lSDL_ttf  $LIBS"
15076cat >conftest.$ac_ext <<_ACEOF
15077/* confdefs.h.  */
15078_ACEOF
15079cat confdefs.h >>conftest.$ac_ext
15080cat >>conftest.$ac_ext <<_ACEOF
15081/* end confdefs.h.  */
15082
15083/* Override any GCC internal prototype to avoid an error.
15084   Use char because int might match the return type of a GCC
15085   builtin and then its argument prototype would still apply.  */
15086#ifdef __cplusplus
15087extern "C"
15088#endif
15089char TTF_Init ();
15090int
15091main ()
15092{
15093return TTF_Init ();
15094  ;
15095  return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext conftest$ac_exeext
15099if { (ac_try="$ac_link"
15100case "(($ac_try" in
15101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102  *) ac_try_echo=$ac_try;;
15103esac
15104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105  (eval "$ac_link") 2>conftest.er1
15106  ac_status=$?
15107  grep -v '^ *+' conftest.er1 >conftest.err
15108  rm -f conftest.er1
15109  cat conftest.err >&5
15110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111  (exit $ac_status); } && {
15112	 test -z "$ac_c_werror_flag" ||
15113	 test ! -s conftest.err
15114       } && test -s conftest$ac_exeext &&
15115       $as_test_x conftest$ac_exeext; then
15116  ac_cv_lib_SDL_ttf_TTF_Init=yes
15117else
15118  echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
15121	ac_cv_lib_SDL_ttf_TTF_Init=no
15122fi
15123
15124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15125      conftest$ac_exeext conftest.$ac_ext
15126LIBS=$ac_check_lib_save_LIBS
15127fi
15128{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5
15129echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_Init" >&6; }
15130if test $ac_cv_lib_SDL_ttf_TTF_Init = yes; then
15131  have_SDL_ttf=yes
15132else
15133  have_SDL_ttf=no
15134fi
15135
15136
15137	if test "x$have_SDL_ttf" = "xyes" ; then
15138	   TR_LIBS="$TR_LIBS -lSDL_ttf"
15139	else
15140	   { { echo "$as_me:$LINENO: error: Cannot find SDL_ttf library" >&5
15141echo "$as_me: error: Cannot find SDL_ttf library" >&2;}
15142   { (exit 1); exit 1; }; }
15143	fi
15144
15145	        { echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
15146echo $ECHO_N "checking for IMG_Load in -lSDL_image... $ECHO_C" >&6; }
15147if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
15148  echo $ECHO_N "(cached) $ECHO_C" >&6
15149else
15150  ac_check_lib_save_LIBS=$LIBS
15151LIBS="-lSDL_image  $LIBS"
15152cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h.  */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h.  */
15158
15159/* Override any GCC internal prototype to avoid an error.
15160   Use char because int might match the return type of a GCC
15161   builtin and then its argument prototype would still apply.  */
15162#ifdef __cplusplus
15163extern "C"
15164#endif
15165char IMG_Load ();
15166int
15167main ()
15168{
15169return IMG_Load ();
15170  ;
15171  return 0;
15172}
15173_ACEOF
15174rm -f conftest.$ac_objext conftest$ac_exeext
15175if { (ac_try="$ac_link"
15176case "(($ac_try" in
15177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178  *) ac_try_echo=$ac_try;;
15179esac
15180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181  (eval "$ac_link") 2>conftest.er1
15182  ac_status=$?
15183  grep -v '^ *+' conftest.er1 >conftest.err
15184  rm -f conftest.er1
15185  cat conftest.err >&5
15186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187  (exit $ac_status); } && {
15188	 test -z "$ac_c_werror_flag" ||
15189	 test ! -s conftest.err
15190       } && test -s conftest$ac_exeext &&
15191       $as_test_x conftest$ac_exeext; then
15192  ac_cv_lib_SDL_image_IMG_Load=yes
15193else
15194  echo "$as_me: failed program was:" >&5
15195sed 's/^/| /' conftest.$ac_ext >&5
15196
15197	ac_cv_lib_SDL_image_IMG_Load=no
15198fi
15199
15200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15201      conftest$ac_exeext conftest.$ac_ext
15202LIBS=$ac_check_lib_save_LIBS
15203fi
15204{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
15205echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load" >&6; }
15206if test $ac_cv_lib_SDL_image_IMG_Load = yes; then
15207  have_SDL_image=yes
15208else
15209  have_SDL_image=no
15210fi
15211
15212
15213        if test "x$have_SDL_image" = "xyes" ; then
15214           TR_LIBS="$TR_LIBS -lSDL_image"
15215        else
15216           { { echo "$as_me:$LINENO: error: Cannot find SDL_image library" >&5
15217echo "$as_me: error: Cannot find SDL_image library" >&2;}
15218   { (exit 1); exit 1; }; }
15219        fi
15220
15221	LIBS="$saved_LIBS"
15222    else
15223	echo "*** SDL not found.  Configuring without audio or joystick support."
15224    fi
15225
15226fi
15227
15228
15229# Check whether --with-gl-libs was given.
15230if test "${with_gl_libs+set}" = set; then
15231  withval=$with_gl_libs;
15232fi
15233
15234
15235# Check whether --with-gl-lib-name was given.
15236if test "${with_gl_lib_name+set}" = set; then
15237  withval=$with_gl_lib_name;
15238fi
15239
15240
15241if test "x$with_gl_libs" = "x" ; then
15242    GL_LDOPTS=""
15243else
15244    GL_LDOPTS="-L$with_gl_libs"
15245fi
15246
15247saved_LIBS="$LIBS"
15248
15249
15250
15251
15252
15253
15254    if test "x$with_gl_lib_name" = "x" ; then
15255        GL_LIB_NAME="GL"
15256    else
15257        GL_LIB_NAME="$with_gl_lib_name"
15258    fi
15259
15260
15261    { echo "$as_me:$LINENO: checking for $GL_LIB_NAME library" >&5
15262echo $ECHO_N "checking for $GL_LIB_NAME library... $ECHO_C" >&6; }
15263    LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
15264    cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h.  */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h.  */
15270
15271int
15272main ()
15273{
15274
15275  ;
15276  return 0;
15277}
15278_ACEOF
15279rm -f conftest.$ac_objext conftest$ac_exeext
15280if { (ac_try="$ac_link"
15281case "(($ac_try" in
15282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283  *) ac_try_echo=$ac_try;;
15284esac
15285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286  (eval "$ac_link") 2>conftest.er1
15287  ac_status=$?
15288  grep -v '^ *+' conftest.er1 >conftest.err
15289  rm -f conftest.er1
15290  cat conftest.err >&5
15291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292  (exit $ac_status); } && {
15293	 test -z "$ac_c_werror_flag" ||
15294	 test ! -s conftest.err
15295       } && test -s conftest$ac_exeext &&
15296       $as_test_x conftest$ac_exeext; then
15297  have_GL=yes
15298else
15299  echo "$as_me: failed program was:" >&5
15300sed 's/^/| /' conftest.$ac_ext >&5
15301
15302	have_GL=no
15303fi
15304
15305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15306      conftest$ac_exeext conftest.$ac_ext
15307    { echo "$as_me:$LINENO: result: $have_GL" >&5
15308echo "${ECHO_T}$have_GL" >&6; }
15309
15310    if test "x$have_GL" = "xyes" ; then
15311	TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
15312
15313    else
15314
15315	{ echo "$as_me:$LINENO: checking for $GL_LIB_NAME library (with pthreads)" >&5
15316echo $ECHO_N "checking for $GL_LIB_NAME library (with pthreads)... $ECHO_C" >&6; }
15317	LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
15318	cat >conftest.$ac_ext <<_ACEOF
15319/* confdefs.h.  */
15320_ACEOF
15321cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF
15323/* end confdefs.h.  */
15324
15325int
15326main ()
15327{
15328
15329  ;
15330  return 0;
15331}
15332_ACEOF
15333rm -f conftest.$ac_objext conftest$ac_exeext
15334if { (ac_try="$ac_link"
15335case "(($ac_try" in
15336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337  *) ac_try_echo=$ac_try;;
15338esac
15339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340  (eval "$ac_link") 2>conftest.er1
15341  ac_status=$?
15342  grep -v '^ *+' conftest.er1 >conftest.err
15343  rm -f conftest.er1
15344  cat conftest.err >&5
15345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346  (exit $ac_status); } && {
15347	 test -z "$ac_c_werror_flag" ||
15348	 test ! -s conftest.err
15349       } && test -s conftest$ac_exeext &&
15350       $as_test_x conftest$ac_exeext; then
15351  have_GL=yes
15352else
15353  echo "$as_me: failed program was:" >&5
15354sed 's/^/| /' conftest.$ac_ext >&5
15355
15356	have_GL=no
15357fi
15358
15359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15360      conftest$ac_exeext conftest.$ac_ext
15361	{ echo "$as_me:$LINENO: result: $have_GL" >&5
15362echo "${ECHO_T}$have_GL" >&6; }
15363
15364	if test "x$have_GL" = "xyes" ; then
15365	    TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
15366	fi
15367    fi
15368
15369
15370    if test "x$have_GL" = "xno" -a "x$with_gl_lib_name" = "x" ; then
15371        GL_LIB_LIST=`grep -v -E "^$GL_LIB_NAME\$" <<EOF
15372GL
15373MesaGL
15374opengl32
15375EOF
15376`
15377
15378        for GL_LIB_NAME in $GL_LIB_LIST ; do
15379
15380    { echo "$as_me:$LINENO: checking for $GL_LIB_NAME library" >&5
15381echo $ECHO_N "checking for $GL_LIB_NAME library... $ECHO_C" >&6; }
15382    LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
15383    cat >conftest.$ac_ext <<_ACEOF
15384/* confdefs.h.  */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
15388/* end confdefs.h.  */
15389
15390int
15391main ()
15392{
15393
15394  ;
15395  return 0;
15396}
15397_ACEOF
15398rm -f conftest.$ac_objext conftest$ac_exeext
15399if { (ac_try="$ac_link"
15400case "(($ac_try" in
15401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402  *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405  (eval "$ac_link") 2>conftest.er1
15406  ac_status=$?
15407  grep -v '^ *+' conftest.er1 >conftest.err
15408  rm -f conftest.er1
15409  cat conftest.err >&5
15410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411  (exit $ac_status); } && {
15412	 test -z "$ac_c_werror_flag" ||
15413	 test ! -s conftest.err
15414       } && test -s conftest$ac_exeext &&
15415       $as_test_x conftest$ac_exeext; then
15416  have_GL=yes
15417else
15418  echo "$as_me: failed program was:" >&5
15419sed 's/^/| /' conftest.$ac_ext >&5
15420
15421	have_GL=no
15422fi
15423
15424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15425      conftest$ac_exeext conftest.$ac_ext
15426    { echo "$as_me:$LINENO: result: $have_GL" >&5
15427echo "${ECHO_T}$have_GL" >&6; }
15428
15429    if test "x$have_GL" = "xyes" ; then
15430	TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
15431
15432    else
15433
15434	{ echo "$as_me:$LINENO: checking for $GL_LIB_NAME library (with pthreads)" >&5
15435echo $ECHO_N "checking for $GL_LIB_NAME library (with pthreads)... $ECHO_C" >&6; }
15436	LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
15437	cat >conftest.$ac_ext <<_ACEOF
15438/* confdefs.h.  */
15439_ACEOF
15440cat confdefs.h >>conftest.$ac_ext
15441cat >>conftest.$ac_ext <<_ACEOF
15442/* end confdefs.h.  */
15443
15444int
15445main ()
15446{
15447
15448  ;
15449  return 0;
15450}
15451_ACEOF
15452rm -f conftest.$ac_objext conftest$ac_exeext
15453if { (ac_try="$ac_link"
15454case "(($ac_try" in
15455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456  *) ac_try_echo=$ac_try;;
15457esac
15458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459  (eval "$ac_link") 2>conftest.er1
15460  ac_status=$?
15461  grep -v '^ *+' conftest.er1 >conftest.err
15462  rm -f conftest.er1
15463  cat conftest.err >&5
15464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465  (exit $ac_status); } && {
15466	 test -z "$ac_c_werror_flag" ||
15467	 test ! -s conftest.err
15468       } && test -s conftest$ac_exeext &&
15469       $as_test_x conftest$ac_exeext; then
15470  have_GL=yes
15471else
15472  echo "$as_me: failed program was:" >&5
15473sed 's/^/| /' conftest.$ac_ext >&5
15474
15475	have_GL=no
15476fi
15477
15478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15479      conftest$ac_exeext conftest.$ac_ext
15480	{ echo "$as_me:$LINENO: result: $have_GL" >&5
15481echo "${ECHO_T}$have_GL" >&6; }
15482
15483	if test "x$have_GL" = "xyes" ; then
15484	    TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
15485	fi
15486    fi
15487
15488
15489            if test "x$have_GL" = "xyes" ; then
15490                break;
15491            fi
15492        done
15493    fi
15494
15495
15496if test "x$have_GL" = "xno" -a "x$GL_LDOPTS" = "x" ; then
15497    echo "*** Hmm, you don't seem to have OpenGL libraries installed in the standard"
15498    echo "*** location (/usr/lib).  I'll check in /usr/X11R6/lib, since"
15499    echo "*** many distributions (incorrectly) put OpenGL libs there."
15500    GL_LDOPTS="-L/usr/X11R6/lib"
15501
15502    if test "x$with_gl_lib_name" = "x" ; then
15503        GL_LIB_NAME="GL"
15504    else
15505        GL_LIB_NAME="$with_gl_lib_name"
15506    fi
15507
15508
15509    { echo "$as_me:$LINENO: checking for $GL_LIB_NAME library" >&5
15510echo $ECHO_N "checking for $GL_LIB_NAME library... $ECHO_C" >&6; }
15511    LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
15512    cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h.  */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h.  */
15518
15519int
15520main ()
15521{
15522
15523  ;
15524  return 0;
15525}
15526_ACEOF
15527rm -f conftest.$ac_objext conftest$ac_exeext
15528if { (ac_try="$ac_link"
15529case "(($ac_try" in
15530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531  *) ac_try_echo=$ac_try;;
15532esac
15533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534  (eval "$ac_link") 2>conftest.er1
15535  ac_status=$?
15536  grep -v '^ *+' conftest.er1 >conftest.err
15537  rm -f conftest.er1
15538  cat conftest.err >&5
15539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540  (exit $ac_status); } && {
15541	 test -z "$ac_c_werror_flag" ||
15542	 test ! -s conftest.err
15543       } && test -s conftest$ac_exeext &&
15544       $as_test_x conftest$ac_exeext; then
15545  have_GL=yes
15546else
15547  echo "$as_me: failed program was:" >&5
15548sed 's/^/| /' conftest.$ac_ext >&5
15549
15550	have_GL=no
15551fi
15552
15553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15554      conftest$ac_exeext conftest.$ac_ext
15555    { echo "$as_me:$LINENO: result: $have_GL" >&5
15556echo "${ECHO_T}$have_GL" >&6; }
15557
15558    if test "x$have_GL" = "xyes" ; then
15559	TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
15560
15561    else
15562
15563	{ echo "$as_me:$LINENO: checking for $GL_LIB_NAME library (with pthreads)" >&5
15564echo $ECHO_N "checking for $GL_LIB_NAME library (with pthreads)... $ECHO_C" >&6; }
15565	LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
15566	cat >conftest.$ac_ext <<_ACEOF
15567/* confdefs.h.  */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h.  */
15572
15573int
15574main ()
15575{
15576
15577  ;
15578  return 0;
15579}
15580_ACEOF
15581rm -f conftest.$ac_objext conftest$ac_exeext
15582if { (ac_try="$ac_link"
15583case "(($ac_try" in
15584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585  *) ac_try_echo=$ac_try;;
15586esac
15587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588  (eval "$ac_link") 2>conftest.er1
15589  ac_status=$?
15590  grep -v '^ *+' conftest.er1 >conftest.err
15591  rm -f conftest.er1
15592  cat conftest.err >&5
15593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594  (exit $ac_status); } && {
15595	 test -z "$ac_c_werror_flag" ||
15596	 test ! -s conftest.err
15597       } && test -s conftest$ac_exeext &&
15598       $as_test_x conftest$ac_exeext; then
15599  have_GL=yes
15600else
15601  echo "$as_me: failed program was:" >&5
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
15604	have_GL=no
15605fi
15606
15607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15608      conftest$ac_exeext conftest.$ac_ext
15609	{ echo "$as_me:$LINENO: result: $have_GL" >&5
15610echo "${ECHO_T}$have_GL" >&6; }
15611
15612	if test "x$have_GL" = "xyes" ; then
15613	    TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
15614	fi
15615    fi
15616
15617
15618    if test "x$have_GL" = "xno" -a "x$with_gl_lib_name" = "x" ; then
15619        GL_LIB_LIST=`grep -v -E "^$GL_LIB_NAME\$" <<EOF
15620GL
15621MesaGL
15622opengl32
15623EOF
15624`
15625
15626        for GL_LIB_NAME in $GL_LIB_LIST ; do
15627
15628    { echo "$as_me:$LINENO: checking for $GL_LIB_NAME library" >&5
15629echo $ECHO_N "checking for $GL_LIB_NAME library... $ECHO_C" >&6; }
15630    LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
15631    cat >conftest.$ac_ext <<_ACEOF
15632/* confdefs.h.  */
15633_ACEOF
15634cat confdefs.h >>conftest.$ac_ext
15635cat >>conftest.$ac_ext <<_ACEOF
15636/* end confdefs.h.  */
15637
15638int
15639main ()
15640{
15641
15642  ;
15643  return 0;
15644}
15645_ACEOF
15646rm -f conftest.$ac_objext conftest$ac_exeext
15647if { (ac_try="$ac_link"
15648case "(($ac_try" in
15649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650  *) ac_try_echo=$ac_try;;
15651esac
15652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653  (eval "$ac_link") 2>conftest.er1
15654  ac_status=$?
15655  grep -v '^ *+' conftest.er1 >conftest.err
15656  rm -f conftest.er1
15657  cat conftest.err >&5
15658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659  (exit $ac_status); } && {
15660	 test -z "$ac_c_werror_flag" ||
15661	 test ! -s conftest.err
15662       } && test -s conftest$ac_exeext &&
15663       $as_test_x conftest$ac_exeext; then
15664  have_GL=yes
15665else
15666  echo "$as_me: failed program was:" >&5
15667sed 's/^/| /' conftest.$ac_ext >&5
15668
15669	have_GL=no
15670fi
15671
15672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15673      conftest$ac_exeext conftest.$ac_ext
15674    { echo "$as_me:$LINENO: result: $have_GL" >&5
15675echo "${ECHO_T}$have_GL" >&6; }
15676
15677    if test "x$have_GL" = "xyes" ; then
15678	TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
15679
15680    else
15681
15682	{ echo "$as_me:$LINENO: checking for $GL_LIB_NAME library (with pthreads)" >&5
15683echo $ECHO_N "checking for $GL_LIB_NAME library (with pthreads)... $ECHO_C" >&6; }
15684	LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
15685	cat >conftest.$ac_ext <<_ACEOF
15686/* confdefs.h.  */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h.  */
15691
15692int
15693main ()
15694{
15695
15696  ;
15697  return 0;
15698}
15699_ACEOF
15700rm -f conftest.$ac_objext conftest$ac_exeext
15701if { (ac_try="$ac_link"
15702case "(($ac_try" in
15703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704  *) ac_try_echo=$ac_try;;
15705esac
15706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707  (eval "$ac_link") 2>conftest.er1
15708  ac_status=$?
15709  grep -v '^ *+' conftest.er1 >conftest.err
15710  rm -f conftest.er1
15711  cat conftest.err >&5
15712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713  (exit $ac_status); } && {
15714	 test -z "$ac_c_werror_flag" ||
15715	 test ! -s conftest.err
15716       } && test -s conftest$ac_exeext &&
15717       $as_test_x conftest$ac_exeext; then
15718  have_GL=yes
15719else
15720  echo "$as_me: failed program was:" >&5
15721sed 's/^/| /' conftest.$ac_ext >&5
15722
15723	have_GL=no
15724fi
15725
15726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15727      conftest$ac_exeext conftest.$ac_ext
15728	{ echo "$as_me:$LINENO: result: $have_GL" >&5
15729echo "${ECHO_T}$have_GL" >&6; }
15730
15731	if test "x$have_GL" = "xyes" ; then
15732	    TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
15733	fi
15734    fi
15735
15736
15737            if test "x$have_GL" = "xyes" ; then
15738                break;
15739            fi
15740        done
15741    fi
15742
15743fi
15744
15745if test "x$have_GL" = "xno" ; then
15746    { { echo "$as_me:$LINENO: error: Cannot find GL library" >&5
15747echo "$as_me: error: Cannot find GL library" >&2;}
15748   { (exit 1); exit 1; }; }
15749fi
15750
15751
15752for ac_func in glXGetProcAddressARB
15753do
15754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15758  echo $ECHO_N "(cached) $ECHO_C" >&6
15759else
15760  cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h.  */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h.  */
15766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15767   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15768#define $ac_func innocuous_$ac_func
15769
15770/* System header to define __stub macros and hopefully few prototypes,
15771    which can conflict with char $ac_func (); below.
15772    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15773    <limits.h> exists even on freestanding compilers.  */
15774
15775#ifdef __STDC__
15776# include <limits.h>
15777#else
15778# include <assert.h>
15779#endif
15780
15781#undef $ac_func
15782
15783/* Override any GCC internal prototype to avoid an error.
15784   Use char because int might match the return type of a GCC
15785   builtin and then its argument prototype would still apply.  */
15786#ifdef __cplusplus
15787extern "C"
15788#endif
15789char $ac_func ();
15790/* The GNU C library defines this for functions which it implements
15791    to always fail with ENOSYS.  Some functions are actually named
15792    something starting with __ and the normal name is an alias.  */
15793#if defined __stub_$ac_func || defined __stub___$ac_func
15794choke me
15795#endif
15796
15797int
15798main ()
15799{
15800return $ac_func ();
15801  ;
15802  return 0;
15803}
15804_ACEOF
15805rm -f conftest.$ac_objext conftest$ac_exeext
15806if { (ac_try="$ac_link"
15807case "(($ac_try" in
15808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809  *) ac_try_echo=$ac_try;;
15810esac
15811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812  (eval "$ac_link") 2>conftest.er1
15813  ac_status=$?
15814  grep -v '^ *+' conftest.er1 >conftest.err
15815  rm -f conftest.er1
15816  cat conftest.err >&5
15817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818  (exit $ac_status); } && {
15819	 test -z "$ac_c_werror_flag" ||
15820	 test ! -s conftest.err
15821       } && test -s conftest$ac_exeext &&
15822       $as_test_x conftest$ac_exeext; then
15823  eval "$as_ac_var=yes"
15824else
15825  echo "$as_me: failed program was:" >&5
15826sed 's/^/| /' conftest.$ac_ext >&5
15827
15828	eval "$as_ac_var=no"
15829fi
15830
15831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15832      conftest$ac_exeext conftest.$ac_ext
15833fi
15834ac_res=`eval echo '${'$as_ac_var'}'`
15835	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15836echo "${ECHO_T}$ac_res" >&6; }
15837if test `eval echo '${'$as_ac_var'}'` = yes; then
15838  cat >>confdefs.h <<_ACEOF
15839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15840_ACEOF
15841 has_glx_get_proc=yes
15842else
15843  has_glx_get_proc=no
15844fi
15845done
15846
15847
15848LIBS="$saved_LIBS"
15849
15850
15851
15852# Check whether --with-glu-lib-name was given.
15853if test "${with_glu_lib_name+set}" = set; then
15854  withval=$with_glu_lib_name;
15855fi
15856
15857
15858
15859
15860if test "x$with_glu_lib_name" = "x" ; then
15861    GLU_LIB_NAME="GLU"
15862else
15863    GLU_LIB_NAME="$with_glu_lib_name"
15864fi
15865
15866saved_LIBS="$LIBS"
15867
15868
15869    { echo "$as_me:$LINENO: checking for $GLU_LIB_NAME library" >&5
15870echo $ECHO_N "checking for $GLU_LIB_NAME library... $ECHO_C" >&6; }
15871    LIBS="$saved_LIBS $TR_LIBS -l$GLU_LIB_NAME"
15872    cat >conftest.$ac_ext <<_ACEOF
15873/* confdefs.h.  */
15874_ACEOF
15875cat confdefs.h >>conftest.$ac_ext
15876cat >>conftest.$ac_ext <<_ACEOF
15877/* end confdefs.h.  */
15878
15879int
15880main ()
15881{
15882
15883  ;
15884  return 0;
15885}
15886_ACEOF
15887rm -f conftest.$ac_objext conftest$ac_exeext
15888if { (ac_try="$ac_link"
15889case "(($ac_try" in
15890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891  *) ac_try_echo=$ac_try;;
15892esac
15893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894  (eval "$ac_link") 2>conftest.er1
15895  ac_status=$?
15896  grep -v '^ *+' conftest.er1 >conftest.err
15897  rm -f conftest.er1
15898  cat conftest.err >&5
15899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900  (exit $ac_status); } && {
15901	 test -z "$ac_c_werror_flag" ||
15902	 test ! -s conftest.err
15903       } && test -s conftest$ac_exeext &&
15904       $as_test_x conftest$ac_exeext; then
15905  have_GLU=yes
15906else
15907  echo "$as_me: failed program was:" >&5
15908sed 's/^/| /' conftest.$ac_ext >&5
15909
15910	have_GLU=no
15911fi
15912
15913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15914      conftest$ac_exeext conftest.$ac_ext
15915    { echo "$as_me:$LINENO: result: $have_GLU" >&5
15916echo "${ECHO_T}$have_GLU" >&6; }
15917
15918
15919if test "x$have_GLU" = "xno" -a "x$with_glu_lib_name" = "x"; then
15920    GLU_LIB_LIST=`grep -v -E "^$GLU_LIB_NAME\$" <<EOF
15921GLU
15922MesaGLU
15923glu32
15924EOF
15925`
15926
15927    for GLU_LIB_NAME in $GLU_LIB_LIST ; do
15928
15929    { echo "$as_me:$LINENO: checking for $GLU_LIB_NAME library" >&5
15930echo $ECHO_N "checking for $GLU_LIB_NAME library... $ECHO_C" >&6; }
15931    LIBS="$saved_LIBS $TR_LIBS -l$GLU_LIB_NAME"
15932    cat >conftest.$ac_ext <<_ACEOF
15933/* confdefs.h.  */
15934_ACEOF
15935cat confdefs.h >>conftest.$ac_ext
15936cat >>conftest.$ac_ext <<_ACEOF
15937/* end confdefs.h.  */
15938
15939int
15940main ()
15941{
15942
15943  ;
15944  return 0;
15945}
15946_ACEOF
15947rm -f conftest.$ac_objext conftest$ac_exeext
15948if { (ac_try="$ac_link"
15949case "(($ac_try" in
15950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951  *) ac_try_echo=$ac_try;;
15952esac
15953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954  (eval "$ac_link") 2>conftest.er1
15955  ac_status=$?
15956  grep -v '^ *+' conftest.er1 >conftest.err
15957  rm -f conftest.er1
15958  cat conftest.err >&5
15959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960  (exit $ac_status); } && {
15961	 test -z "$ac_c_werror_flag" ||
15962	 test ! -s conftest.err
15963       } && test -s conftest$ac_exeext &&
15964       $as_test_x conftest$ac_exeext; then
15965  have_GLU=yes
15966else
15967  echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970	have_GLU=no
15971fi
15972
15973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15974      conftest$ac_exeext conftest.$ac_ext
15975    { echo "$as_me:$LINENO: result: $have_GLU" >&5
15976echo "${ECHO_T}$have_GLU" >&6; }
15977
15978
15979        if test "x$have_GLU" = "xyes" ; then
15980            break
15981        fi
15982    done
15983fi
15984
15985if test "x$have_GLU" = "xno" ; then
15986    { { echo "$as_me:$LINENO: error: Cannot find GLU library" >&5
15987echo "$as_me: error: Cannot find GLU library" >&2;}
15988   { (exit 1); exit 1; }; }
15989fi
15990
15991LIBS="$saved_LIBS"
15992TR_LIBS="$TR_LIBS -l$GLU_LIB_NAME"
15993
15994
15995# Check whether --enable-sdl was given.
15996if test "${enable_sdl+set}" = set; then
15997  enableval=$enable_sdl;
15998fi
15999
16000
16001if test "x$enable_editor" = "xyes" ; then
16002
16003	saved_LIBS="$LIBS"
16004	saved_CPPFLAGS="$CPPFLAGS"
16005
16006	{ echo "$as_me:$LINENO: checking for wx-config library" >&5
16007echo $ECHO_N "checking for wx-config library... $ECHO_C" >&6; }
16008
16009	# Extract the first word of "wx-config", so it can be a program name with args.
16010set dummy wx-config; ac_word=$2
16011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16013if test "${ac_cv_path_WXWIDGET+set}" = set; then
16014  echo $ECHO_N "(cached) $ECHO_C" >&6
16015else
16016  case $WXWIDGET in
16017  [\\/]* | ?:[\\/]*)
16018  ac_cv_path_WXWIDGET="$WXWIDGET" # Let the user override the test with a path.
16019  ;;
16020  *)
16021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16022for as_dir in $PATH
16023do
16024  IFS=$as_save_IFS
16025  test -z "$as_dir" && as_dir=.
16026  for ac_exec_ext in '' $ac_executable_extensions; do
16027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16028    ac_cv_path_WXWIDGET="$as_dir/$ac_word$ac_exec_ext"
16029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16030    break 2
16031  fi
16032done
16033done
16034IFS=$as_save_IFS
16035
16036  test -z "$ac_cv_path_WXWIDGET" && ac_cv_path_WXWIDGET="no"
16037  ;;
16038esac
16039fi
16040WXWIDGET=$ac_cv_path_WXWIDGET
16041if test -n "$WXWIDGET"; then
16042  { echo "$as_me:$LINENO: result: $WXWIDGET" >&5
16043echo "${ECHO_T}$WXWIDGET" >&6; }
16044else
16045  { echo "$as_me:$LINENO: result: no" >&5
16046echo "${ECHO_T}no" >&6; }
16047fi
16048
16049
16050
16051	if test "$WXWIDGET" = "no"; then
16052	  { { echo "$as_me:$LINENO: error: Cannot find wxwidget: Will not build editor" >&5
16053echo "$as_me: error: Cannot find wxwidget: Will not build editor" >&2;}
16054   { (exit 1); exit 1; }; }
16055	  have_WXWIDGET=no
16056	else
16057	  WXWIDGET_CFLAGS=`wx-config --cflags`
16058	  WXWIDGET_LIBS=`wx-config --libs`
16059	  have_WXWIDGET=yes
16060	fi
16061
16062	LIBS="$saved_LIBS"
16063	TR_LIBS="$TR_LIBS $WXWIDGET_LIBS"
16064	CPPFLAGS="$saved_CPPFLAGS"
16065	TR_CPPFLAGS="$TR_CPPFLAGS $WXWIDGET_CFLAGS"
16066else
16067	have_WXWIDGET=no
16068fi
16069
16070
16071if test x$have_WXWIDGET = xyes; then
16072  HAVE_WXWIDGET_LIB_TRUE=
16073  HAVE_WXWIDGET_LIB_FALSE='#'
16074else
16075  HAVE_WXWIDGET_LIB_TRUE='#'
16076  HAVE_WXWIDGET_LIB_FALSE=
16077fi
16078
16079
16080
16081
16082saved_LIBS="$LIBS"
16083saved_CPPFLAGS="$CPPFLAGS"
16084
16085if test "x$is_macosx" = "xyes" ; then
16086
16087
16088  FREETYPE_CFLAGS=`/sw/lib/freetype2/bin/freetype-config --cflags`
16089  FREETYPE_LIBS=`/sw/lib/freetype2/bin/freetype-config --libs`
16090  have_FREETYPE=yes
16091else
16092{ echo "$as_me:$LINENO: checking for freetype-config library" >&5
16093echo $ECHO_N "checking for freetype-config library... $ECHO_C" >&6; }
16094
16095# Extract the first word of "freetype-config", so it can be a program name with args.
16096set dummy freetype-config; ac_word=$2
16097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16099if test "${ac_cv_path_FREETYPE+set}" = set; then
16100  echo $ECHO_N "(cached) $ECHO_C" >&6
16101else
16102  case $FREETYPE in
16103  [\\/]* | ?:[\\/]*)
16104  ac_cv_path_FREETYPE="$FREETYPE" # Let the user override the test with a path.
16105  ;;
16106  *)
16107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16108for as_dir in $PATH
16109do
16110  IFS=$as_save_IFS
16111  test -z "$as_dir" && as_dir=.
16112  for ac_exec_ext in '' $ac_executable_extensions; do
16113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16114    ac_cv_path_FREETYPE="$as_dir/$ac_word$ac_exec_ext"
16115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16116    break 2
16117  fi
16118done
16119done
16120IFS=$as_save_IFS
16121
16122  test -z "$ac_cv_path_FREETYPE" && ac_cv_path_FREETYPE="no"
16123  ;;
16124esac
16125fi
16126FREETYPE=$ac_cv_path_FREETYPE
16127if test -n "$FREETYPE"; then
16128  { echo "$as_me:$LINENO: result: $FREETYPE" >&5
16129echo "${ECHO_T}$FREETYPE" >&6; }
16130else
16131  { echo "$as_me:$LINENO: result: no" >&5
16132echo "${ECHO_T}no" >&6; }
16133fi
16134
16135
16136
16137if test "$FREETYPE" = "no"; then
16138  { { echo "$as_me:$LINENO: error: Cannot find freetype2: Is freetype-config in path?" >&5
16139echo "$as_me: error: Cannot find freetype2: Is freetype-config in path?" >&2;}
16140   { (exit 1); exit 1; }; }
16141  have_FREETYPE=no
16142else
16143  FREETYPE_CFLAGS=`freetype-config --cflags`
16144  FREETYPE_LIBS=`freetype-config --libs`
16145  have_FREETYPE=yes
16146fi
16147fi
16148
16149LIBS="$saved_LIBS"
16150TR_LIBS="$TR_LIBS $FREETYPE_LIBS"
16151CPPFLAGS="$saved_CPPFLAGS"
16152TR_CPPFLAGS="$TR_CPPFLAGS $FREETYPE_CFLAGS"
16153
16154
16155
16156
16157# Check whether --with-gl-inc was given.
16158if test "${with_gl_inc+set}" = set; then
16159  withval=$with_gl_inc;
16160fi
16161
16162
16163if test "x$with_gl_inc" = "x" ; then
16164    GL_CPPFLAGS=""
16165else
16166    GL_CPPFLAGS="-I$with_gl_inc"
16167fi
16168
16169saved_CPPFLAGS="$CPPFLAGS"
16170
16171
16172
16173
16174    CPPFLAGS="$saved_CPPFLAGS $GL_CPPFLAGS $TR_CPPFLAGS"
16175
16176    { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16177echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
16178    cat >conftest.$ac_ext <<_ACEOF
16179/* confdefs.h.  */
16180_ACEOF
16181cat confdefs.h >>conftest.$ac_ext
16182cat >>conftest.$ac_ext <<_ACEOF
16183/* end confdefs.h.  */
16184 #include <GL/gl.h>
16185_ACEOF
16186if { (ac_try="$ac_cpp conftest.$ac_ext"
16187case "(($ac_try" in
16188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189  *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16193  ac_status=$?
16194  grep -v '^ *+' conftest.er1 >conftest.err
16195  rm -f conftest.er1
16196  cat conftest.err >&5
16197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198  (exit $ac_status); } >/dev/null && {
16199	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16200	 test ! -s conftest.err
16201       }; then
16202  have_gl_h=yes
16203else
16204  echo "$as_me: failed program was:" >&5
16205sed 's/^/| /' conftest.$ac_ext >&5
16206
16207  have_gl_h=no
16208fi
16209
16210rm -f conftest.err conftest.$ac_ext
16211    { echo "$as_me:$LINENO: result: $have_gl_h" >&5
16212echo "${ECHO_T}$have_gl_h" >&6; }
16213
16214
16215if test "x$have_gl_h" = "xno" -a "x$GL_CPPFLAGS" = "x" ; then
16216    echo "*** Hmm, you don't seem to have OpenGL headers installed in the standard"
16217    echo "*** location (/usr/include).  I'll check in /usr/X11R6/include, since"
16218    echo "*** many distributions (incorrectly) put OpenGL headers there."
16219    GL_CPPFLAGS="-I/usr/X11R6/include"
16220
16221    CPPFLAGS="$saved_CPPFLAGS $GL_CPPFLAGS $TR_CPPFLAGS"
16222
16223    { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16224echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
16225    cat >conftest.$ac_ext <<_ACEOF
16226/* confdefs.h.  */
16227_ACEOF
16228cat confdefs.h >>conftest.$ac_ext
16229cat >>conftest.$ac_ext <<_ACEOF
16230/* end confdefs.h.  */
16231 #include <GL/gl.h>
16232_ACEOF
16233if { (ac_try="$ac_cpp conftest.$ac_ext"
16234case "(($ac_try" in
16235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236  *) ac_try_echo=$ac_try;;
16237esac
16238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16240  ac_status=$?
16241  grep -v '^ *+' conftest.er1 >conftest.err
16242  rm -f conftest.er1
16243  cat conftest.err >&5
16244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245  (exit $ac_status); } >/dev/null && {
16246	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16247	 test ! -s conftest.err
16248       }; then
16249  have_gl_h=yes
16250else
16251  echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254  have_gl_h=no
16255fi
16256
16257rm -f conftest.err conftest.$ac_ext
16258    { echo "$as_me:$LINENO: result: $have_gl_h" >&5
16259echo "${ECHO_T}$have_gl_h" >&6; }
16260
16261fi
16262
16263if test "x$have_gl_h" = "xno" ; then
16264    { { echo "$as_me:$LINENO: error: Cannot find GL/gl.h" >&5
16265echo "$as_me: error: Cannot find GL/gl.h" >&2;}
16266   { (exit 1); exit 1; }; }
16267fi
16268
16269if test "x$has_glx_get_proc" = "xyes" ; then
16270
16271
16272for ac_header in GL/glx.h
16273do
16274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16276  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16279  echo $ECHO_N "(cached) $ECHO_C" >&6
16280fi
16281ac_res=`eval echo '${'$as_ac_Header'}'`
16282	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16283echo "${ECHO_T}$ac_res" >&6; }
16284else
16285  # Is the header compilable?
16286{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16288cat >conftest.$ac_ext <<_ACEOF
16289/* confdefs.h.  */
16290_ACEOF
16291cat confdefs.h >>conftest.$ac_ext
16292cat >>conftest.$ac_ext <<_ACEOF
16293/* end confdefs.h.  */
16294$ac_includes_default
16295#include <$ac_header>
16296_ACEOF
16297rm -f conftest.$ac_objext
16298if { (ac_try="$ac_compile"
16299case "(($ac_try" in
16300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301  *) ac_try_echo=$ac_try;;
16302esac
16303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304  (eval "$ac_compile") 2>conftest.er1
16305  ac_status=$?
16306  grep -v '^ *+' conftest.er1 >conftest.err
16307  rm -f conftest.er1
16308  cat conftest.err >&5
16309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310  (exit $ac_status); } && {
16311	 test -z "$ac_c_werror_flag" ||
16312	 test ! -s conftest.err
16313       } && test -s conftest.$ac_objext; then
16314  ac_header_compiler=yes
16315else
16316  echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319	ac_header_compiler=no
16320fi
16321
16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16324echo "${ECHO_T}$ac_header_compiler" >&6; }
16325
16326# Is the header present?
16327{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16328echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16329cat >conftest.$ac_ext <<_ACEOF
16330/* confdefs.h.  */
16331_ACEOF
16332cat confdefs.h >>conftest.$ac_ext
16333cat >>conftest.$ac_ext <<_ACEOF
16334/* end confdefs.h.  */
16335#include <$ac_header>
16336_ACEOF
16337if { (ac_try="$ac_cpp conftest.$ac_ext"
16338case "(($ac_try" in
16339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340  *) ac_try_echo=$ac_try;;
16341esac
16342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16344  ac_status=$?
16345  grep -v '^ *+' conftest.er1 >conftest.err
16346  rm -f conftest.er1
16347  cat conftest.err >&5
16348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349  (exit $ac_status); } >/dev/null && {
16350	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16351	 test ! -s conftest.err
16352       }; then
16353  ac_header_preproc=yes
16354else
16355  echo "$as_me: failed program was:" >&5
16356sed 's/^/| /' conftest.$ac_ext >&5
16357
16358  ac_header_preproc=no
16359fi
16360
16361rm -f conftest.err conftest.$ac_ext
16362{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16363echo "${ECHO_T}$ac_header_preproc" >&6; }
16364
16365# So?  What about this header?
16366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16367  yes:no: )
16368    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16369echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16370    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16371echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16372    ac_header_preproc=yes
16373    ;;
16374  no:yes:* )
16375    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16376echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16377    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16378echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16379    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16380echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16381    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16382echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16383    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16385    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16386echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16387
16388    ;;
16389esac
16390{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16393  echo $ECHO_N "(cached) $ECHO_C" >&6
16394else
16395  eval "$as_ac_Header=\$ac_header_preproc"
16396fi
16397ac_res=`eval echo '${'$as_ac_Header'}'`
16398	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16399echo "${ECHO_T}$ac_res" >&6; }
16400
16401fi
16402if test `eval echo '${'$as_ac_Header'}'` = yes; then
16403  cat >>confdefs.h <<_ACEOF
16404#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16405_ACEOF
16406 have_glx_h=yes
16407else
16408  have_glx_h=no
16409fi
16410
16411done
16412
16413
16414    if test "x$have_glx_h" = "xno" ; then
16415	{ { echo "$as_me:$LINENO: error: Cannot find GL/glx.h" >&5
16416echo "$as_me: error: Cannot find GL/glx.h" >&2;}
16417   { (exit 1); exit 1; }; }
16418    fi
16419
16420
16421            fi
16422
16423
16424for ac_header in "GL/glext.h"
16425do
16426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16428  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16431  echo $ECHO_N "(cached) $ECHO_C" >&6
16432fi
16433ac_res=`eval echo '${'$as_ac_Header'}'`
16434	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16435echo "${ECHO_T}$ac_res" >&6; }
16436else
16437  # Is the header compilable?
16438{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16440cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h.  */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h.  */
16446$ac_includes_default
16447#include <$ac_header>
16448_ACEOF
16449rm -f conftest.$ac_objext
16450if { (ac_try="$ac_compile"
16451case "(($ac_try" in
16452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453  *) ac_try_echo=$ac_try;;
16454esac
16455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456  (eval "$ac_compile") 2>conftest.er1
16457  ac_status=$?
16458  grep -v '^ *+' conftest.er1 >conftest.err
16459  rm -f conftest.er1
16460  cat conftest.err >&5
16461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462  (exit $ac_status); } && {
16463	 test -z "$ac_c_werror_flag" ||
16464	 test ! -s conftest.err
16465       } && test -s conftest.$ac_objext; then
16466  ac_header_compiler=yes
16467else
16468  echo "$as_me: failed program was:" >&5
16469sed 's/^/| /' conftest.$ac_ext >&5
16470
16471	ac_header_compiler=no
16472fi
16473
16474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16476echo "${ECHO_T}$ac_header_compiler" >&6; }
16477
16478# Is the header present?
16479{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16481cat >conftest.$ac_ext <<_ACEOF
16482/* confdefs.h.  */
16483_ACEOF
16484cat confdefs.h >>conftest.$ac_ext
16485cat >>conftest.$ac_ext <<_ACEOF
16486/* end confdefs.h.  */
16487#include <$ac_header>
16488_ACEOF
16489if { (ac_try="$ac_cpp conftest.$ac_ext"
16490case "(($ac_try" in
16491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492  *) ac_try_echo=$ac_try;;
16493esac
16494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16496  ac_status=$?
16497  grep -v '^ *+' conftest.er1 >conftest.err
16498  rm -f conftest.er1
16499  cat conftest.err >&5
16500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501  (exit $ac_status); } >/dev/null && {
16502	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16503	 test ! -s conftest.err
16504       }; then
16505  ac_header_preproc=yes
16506else
16507  echo "$as_me: failed program was:" >&5
16508sed 's/^/| /' conftest.$ac_ext >&5
16509
16510  ac_header_preproc=no
16511fi
16512
16513rm -f conftest.err conftest.$ac_ext
16514{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16515echo "${ECHO_T}$ac_header_preproc" >&6; }
16516
16517# So?  What about this header?
16518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16519  yes:no: )
16520    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16522    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16524    ac_header_preproc=yes
16525    ;;
16526  no:yes:* )
16527    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16529    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16530echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16531    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16533    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16534echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16535    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16537    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16539
16540    ;;
16541esac
16542{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16545  echo $ECHO_N "(cached) $ECHO_C" >&6
16546else
16547  eval "$as_ac_Header=\$ac_header_preproc"
16548fi
16549ac_res=`eval echo '${'$as_ac_Header'}'`
16550	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16551echo "${ECHO_T}$ac_res" >&6; }
16552
16553fi
16554if test `eval echo '${'$as_ac_Header'}'` = yes; then
16555  cat >>confdefs.h <<_ACEOF
16556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16557_ACEOF
16558 have_glext_h=yes
16559else
16560  have_glext_h=no
16561fi
16562
16563done
16564
16565
16566if test "x$have_glext_h" = "xno" ; then
16567    { { echo "$as_me:$LINENO: error:
16568*****************************************************************
16569You are missing the file glext.h.
16570You can get a copy at
16571http://oss.sgi.com/projects/ogl-sample/ABI/glext.h
16572Place it in the directory /usr/include/GL.
16573*****************************************************************" >&5
16574echo "$as_me: error:
16575*****************************************************************
16576You are missing the file glext.h.
16577You can get a copy at
16578http://oss.sgi.com/projects/ogl-sample/ABI/glext.h
16579Place it in the directory /usr/include/GL.
16580*****************************************************************" >&2;}
16581   { (exit 1); exit 1; }; }
16582fi
16583
16584{ echo "$as_me:$LINENO: checking whether glext.h is recent enough" >&5
16585echo $ECHO_N "checking whether glext.h is recent enough... $ECHO_C" >&6; };
16586cat >conftest.$ac_ext <<_ACEOF
16587/* confdefs.h.  */
16588_ACEOF
16589cat confdefs.h >>conftest.$ac_ext
16590cat >>conftest.$ac_ext <<_ACEOF
16591/* end confdefs.h.  */
16592
16593#include <GL/glext.h>
16594#if defined(GL_GLEXT_VERSION) && GL_GLEXT_VERSION >= 6
16595 yes
16596#endif
16597
16598_ACEOF
16599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16600  $EGREP "yes" >/dev/null 2>&1; then
16601  is_glext_h_recent=yes
16602else
16603  is_glext_h_recent=no
16604fi
16605rm -f conftest*
16606
16607{ echo "$as_me:$LINENO: result: $is_glext_h_recent" >&5
16608echo "${ECHO_T}$is_glext_h_recent" >&6; }
16609
16610if test "x$is_glext_h_recent" = "xno" ; then
16611    { { echo "$as_me:$LINENO: error:
16612*****************************************************************
16613Your copy of glext.h is out of date.
16614You can get a copy of the latest version at
16615http://oss.sgi.com/projects/ogl-sample/ABI/glext.h
16616Place it in the directory /usr/include/GL.
16617*****************************************************************" >&5
16618echo "$as_me: error:
16619*****************************************************************
16620Your copy of glext.h is out of date.
16621You can get a copy of the latest version at
16622http://oss.sgi.com/projects/ogl-sample/ABI/glext.h
16623Place it in the directory /usr/include/GL.
16624*****************************************************************" >&2;}
16625   { (exit 1); exit 1; }; }
16626fi
16627
16628CPPFLAGS="$saved_CPPFLAGS"
16629TR_CPPFLAGS="$TR_CPPFLAGS $GL_CPPFLAGS"
16630
16631
16632ac_config_commands="$ac_config_commands translations"
16633
16634
16635
16636
16637# Check whether --enable-stencil-buffer was given.
16638if test "${enable_stencil_buffer+set}" = set; then
16639  enableval=$enable_stencil_buffer; TR_CPPFLAGS="$TR_CPPFLAGS -DUSE_STENCIL_BUFFER"
16640fi
16641
16642
16643
16644# Check whether --with-data-dir was given.
16645if test "${with_data_dir+set}" = set; then
16646  withval=$with_data_dir; TR_CPPFLAGS="$TR_CPPFLAGS -DDATA_DIR=\\\"$withval\\\""
16647fi
16648
16649
16650
16651
16652
16653
16654
16655
16656CPPFLAGS="$CPPFLAGS $TR_CPPFLAGS"
16657CFLAGS="$TR_CFLAGS"
16658CXXFLAGS="$TR_CXXFLAGS"
16659LIBS="$LIBS $TR_LIBS"
16660
16661ac_config_files="$ac_config_files Makefile src/Makefile intl/Makefile po/Makefile.in src/common/Makefile src/gui/Makefile src/test/Makefile src/rpg/Makefile src/events/Makefile src/freetype/Makefile src/net/Makefile src/render/Makefile src/io/Makefile src/squirrel/Makefile src/sqstdlib/Makefile src/sqbinding/Makefile autopackage/default.apspec"
16662
16663cat >confcache <<\_ACEOF
16664# This file is a shell script that caches the results of configure
16665# tests run on this system so they can be shared between configure
16666# scripts and configure runs, see configure's option --config-cache.
16667# It is not useful on other systems.  If it contains results you don't
16668# want to keep, you may remove or edit it.
16669#
16670# config.status only pays attention to the cache file if you give it
16671# the --recheck option to rerun configure.
16672#
16673# `ac_cv_env_foo' variables (set or unset) will be overridden when
16674# loading this file, other *unset* `ac_cv_foo' will be assigned the
16675# following values.
16676
16677_ACEOF
16678
16679# The following way of writing the cache mishandles newlines in values,
16680# but we know of no workaround that is simple, portable, and efficient.
16681# So, we kill variables containing newlines.
16682# Ultrix sh set writes to stderr and can't be redirected directly,
16683# and sets the high bit in the cache file unless we assign to the vars.
16684(
16685  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16686    eval ac_val=\$$ac_var
16687    case $ac_val in #(
16688    *${as_nl}*)
16689      case $ac_var in #(
16690      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16691echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16692      esac
16693      case $ac_var in #(
16694      _ | IFS | as_nl) ;; #(
16695      *) $as_unset $ac_var ;;
16696      esac ;;
16697    esac
16698  done
16699
16700  (set) 2>&1 |
16701    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16702    *${as_nl}ac_space=\ *)
16703      # `set' does not quote correctly, so add quotes (double-quote
16704      # substitution turns \\\\ into \\, and sed turns \\ into \).
16705      sed -n \
16706	"s/'/'\\\\''/g;
16707	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16708      ;; #(
16709    *)
16710      # `set' quotes correctly as required by POSIX, so do not add quotes.
16711      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16712      ;;
16713    esac |
16714    sort
16715) |
16716  sed '
16717     /^ac_cv_env_/b end
16718     t clear
16719     :clear
16720     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16721     t end
16722     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16723     :end' >>confcache
16724if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16725  if test -w "$cache_file"; then
16726    test "x$cache_file" != "x/dev/null" &&
16727      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16728echo "$as_me: updating cache $cache_file" >&6;}
16729    cat confcache >$cache_file
16730  else
16731    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16732echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16733  fi
16734fi
16735rm -f confcache
16736
16737test "x$prefix" = xNONE && prefix=$ac_default_prefix
16738# Let make expand exec_prefix.
16739test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16740
16741DEFS=-DHAVE_CONFIG_H
16742
16743ac_libobjs=
16744ac_ltlibobjs=
16745for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16746  # 1. Remove the extension, and $U if already installed.
16747  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16748  ac_i=`echo "$ac_i" | sed "$ac_script"`
16749  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16750  #    will be set to the directory where LIBOBJS objects are built.
16751  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16752  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16753done
16754LIBOBJS=$ac_libobjs
16755
16756LTLIBOBJS=$ac_ltlibobjs
16757
16758
16759if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16760  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16761Usually this means the macro was only invoked conditionally." >&5
16762echo "$as_me: error: conditional \"AMDEP\" was never defined.
16763Usually this means the macro was only invoked conditionally." >&2;}
16764   { (exit 1); exit 1; }; }
16765fi
16766if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16767  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16768Usually this means the macro was only invoked conditionally." >&5
16769echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16770Usually this means the macro was only invoked conditionally." >&2;}
16771   { (exit 1); exit 1; }; }
16772fi
16773if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16774  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16775Usually this means the macro was only invoked conditionally." >&5
16776echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16777Usually this means the macro was only invoked conditionally." >&2;}
16778   { (exit 1); exit 1; }; }
16779fi
16780if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16781  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16782Usually this means the macro was only invoked conditionally." >&5
16783echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16784Usually this means the macro was only invoked conditionally." >&2;}
16785   { (exit 1); exit 1; }; }
16786fi
16787if test -z "${HAVE_WXWIDGET_LIB_TRUE}" && test -z "${HAVE_WXWIDGET_LIB_FALSE}"; then
16788  { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWIDGET_LIB\" was never defined.
16789Usually this means the macro was only invoked conditionally." >&5
16790echo "$as_me: error: conditional \"HAVE_WXWIDGET_LIB\" was never defined.
16791Usually this means the macro was only invoked conditionally." >&2;}
16792   { (exit 1); exit 1; }; }
16793fi
16794
16795: ${CONFIG_STATUS=./config.status}
16796ac_clean_files_save=$ac_clean_files
16797ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16798{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16799echo "$as_me: creating $CONFIG_STATUS" >&6;}
16800cat >$CONFIG_STATUS <<_ACEOF
16801#! $SHELL
16802# Generated by $as_me.
16803# Run this file to recreate the current configuration.
16804# Compiler output produced by configure, useful for debugging
16805# configure, is in config.log if it exists.
16806
16807debug=false
16808ac_cs_recheck=false
16809ac_cs_silent=false
16810SHELL=\${CONFIG_SHELL-$SHELL}
16811_ACEOF
16812
16813cat >>$CONFIG_STATUS <<\_ACEOF
16814## --------------------- ##
16815## M4sh Initialization.  ##
16816## --------------------- ##
16817
16818# Be more Bourne compatible
16819DUALCASE=1; export DUALCASE # for MKS sh
16820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16821  emulate sh
16822  NULLCMD=:
16823  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16824  # is contrary to our usage.  Disable this feature.
16825  alias -g '${1+"$@"}'='"$@"'
16826  setopt NO_GLOB_SUBST
16827else
16828  case `(set -o) 2>/dev/null` in
16829  *posix*) set -o posix ;;
16830esac
16831
16832fi
16833
16834
16835
16836
16837# PATH needs CR
16838# Avoid depending upon Character Ranges.
16839as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16840as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16841as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16842as_cr_digits='0123456789'
16843as_cr_alnum=$as_cr_Letters$as_cr_digits
16844
16845# The user is always right.
16846if test "${PATH_SEPARATOR+set}" != set; then
16847  echo "#! /bin/sh" >conf$$.sh
16848  echo  "exit 0"   >>conf$$.sh
16849  chmod +x conf$$.sh
16850  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16851    PATH_SEPARATOR=';'
16852  else
16853    PATH_SEPARATOR=:
16854  fi
16855  rm -f conf$$.sh
16856fi
16857
16858# Support unset when possible.
16859if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16860  as_unset=unset
16861else
16862  as_unset=false
16863fi
16864
16865
16866# IFS
16867# We need space, tab and new line, in precisely that order.  Quoting is
16868# there to prevent editors from complaining about space-tab.
16869# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16870# splitting by setting IFS to empty value.)
16871as_nl='
16872'
16873IFS=" ""	$as_nl"
16874
16875# Find who we are.  Look in the path if we contain no directory separator.
16876case $0 in
16877  *[\\/]* ) as_myself=$0 ;;
16878  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16879for as_dir in $PATH
16880do
16881  IFS=$as_save_IFS
16882  test -z "$as_dir" && as_dir=.
16883  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16884done
16885IFS=$as_save_IFS
16886
16887     ;;
16888esac
16889# We did not find ourselves, most probably we were run as `sh COMMAND'
16890# in which case we are not to be found in the path.
16891if test "x$as_myself" = x; then
16892  as_myself=$0
16893fi
16894if test ! -f "$as_myself"; then
16895  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16896  { (exit 1); exit 1; }
16897fi
16898
16899# Work around bugs in pre-3.0 UWIN ksh.
16900for as_var in ENV MAIL MAILPATH
16901do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16902done
16903PS1='$ '
16904PS2='> '
16905PS4='+ '
16906
16907# NLS nuisances.
16908for as_var in \
16909  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16910  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16911  LC_TELEPHONE LC_TIME
16912do
16913  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16914    eval $as_var=C; export $as_var
16915  else
16916    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16917  fi
16918done
16919
16920# Required to use basename.
16921if expr a : '\(a\)' >/dev/null 2>&1 &&
16922   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16923  as_expr=expr
16924else
16925  as_expr=false
16926fi
16927
16928if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16929  as_basename=basename
16930else
16931  as_basename=false
16932fi
16933
16934
16935# Name of the executable.
16936as_me=`$as_basename -- "$0" ||
16937$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16938	 X"$0" : 'X\(//\)$' \| \
16939	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16940echo X/"$0" |
16941    sed '/^.*\/\([^/][^/]*\)\/*$/{
16942	    s//\1/
16943	    q
16944	  }
16945	  /^X\/\(\/\/\)$/{
16946	    s//\1/
16947	    q
16948	  }
16949	  /^X\/\(\/\).*/{
16950	    s//\1/
16951	    q
16952	  }
16953	  s/.*/./; q'`
16954
16955# CDPATH.
16956$as_unset CDPATH
16957
16958
16959
16960  as_lineno_1=$LINENO
16961  as_lineno_2=$LINENO
16962  test "x$as_lineno_1" != "x$as_lineno_2" &&
16963  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16964
16965  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16966  # uniformly replaced by the line number.  The first 'sed' inserts a
16967  # line-number line after each line using $LINENO; the second 'sed'
16968  # does the real work.  The second script uses 'N' to pair each
16969  # line-number line with the line containing $LINENO, and appends
16970  # trailing '-' during substitution so that $LINENO is not a special
16971  # case at line end.
16972  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16973  # scripts with optimization help from Paolo Bonzini.  Blame Lee
16974  # E. McMahon (1931-1989) for sed's syntax.  :-)
16975  sed -n '
16976    p
16977    /[$]LINENO/=
16978  ' <$as_myself |
16979    sed '
16980      s/[$]LINENO.*/&-/
16981      t lineno
16982      b
16983      :lineno
16984      N
16985      :loop
16986      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16987      t loop
16988      s/-\n.*//
16989    ' >$as_me.lineno &&
16990  chmod +x "$as_me.lineno" ||
16991    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16992   { (exit 1); exit 1; }; }
16993
16994  # Don't try to exec as it changes $[0], causing all sort of problems
16995  # (the dirname of $[0] is not the place where we might find the
16996  # original and so on.  Autoconf is especially sensitive to this).
16997  . "./$as_me.lineno"
16998  # Exit status is that of the last command.
16999  exit
17000}
17001
17002
17003if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17004  as_dirname=dirname
17005else
17006  as_dirname=false
17007fi
17008
17009ECHO_C= ECHO_N= ECHO_T=
17010case `echo -n x` in
17011-n*)
17012  case `echo 'x\c'` in
17013  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17014  *)   ECHO_C='\c';;
17015  esac;;
17016*)
17017  ECHO_N='-n';;
17018esac
17019
17020if expr a : '\(a\)' >/dev/null 2>&1 &&
17021   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17022  as_expr=expr
17023else
17024  as_expr=false
17025fi
17026
17027rm -f conf$$ conf$$.exe conf$$.file
17028if test -d conf$$.dir; then
17029  rm -f conf$$.dir/conf$$.file
17030else
17031  rm -f conf$$.dir
17032  mkdir conf$$.dir
17033fi
17034echo >conf$$.file
17035if ln -s conf$$.file conf$$ 2>/dev/null; then
17036  as_ln_s='ln -s'
17037  # ... but there are two gotchas:
17038  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17039  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17040  # In both cases, we have to default to `cp -p'.
17041  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17042    as_ln_s='cp -p'
17043elif ln conf$$.file conf$$ 2>/dev/null; then
17044  as_ln_s=ln
17045else
17046  as_ln_s='cp -p'
17047fi
17048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17049rmdir conf$$.dir 2>/dev/null
17050
17051if mkdir -p . 2>/dev/null; then
17052  as_mkdir_p=:
17053else
17054  test -d ./-p && rmdir ./-p
17055  as_mkdir_p=false
17056fi
17057
17058if test -x / >/dev/null 2>&1; then
17059  as_test_x='test -x'
17060else
17061  if ls -dL / >/dev/null 2>&1; then
17062    as_ls_L_option=L
17063  else
17064    as_ls_L_option=
17065  fi
17066  as_test_x='
17067    eval sh -c '\''
17068      if test -d "$1"; then
17069        test -d "$1/.";
17070      else
17071	case $1 in
17072        -*)set "./$1";;
17073	esac;
17074	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17075	???[sx]*):;;*)false;;esac;fi
17076    '\'' sh
17077  '
17078fi
17079as_executable_p=$as_test_x
17080
17081# Sed expression to map a string onto a valid CPP name.
17082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17083
17084# Sed expression to map a string onto a valid variable name.
17085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17086
17087
17088exec 6>&1
17089
17090# Save the log message, to keep $[0] and so on meaningful, and to
17091# report actual input values of CONFIG_FILES etc. instead of their
17092# values after options handling.
17093ac_log="
17094This file was extended by $as_me, which was
17095generated by GNU Autoconf 2.61.  Invocation command line was
17096
17097  CONFIG_FILES    = $CONFIG_FILES
17098  CONFIG_HEADERS  = $CONFIG_HEADERS
17099  CONFIG_LINKS    = $CONFIG_LINKS
17100  CONFIG_COMMANDS = $CONFIG_COMMANDS
17101  $ $0 $@
17102
17103on `(hostname || uname -n) 2>/dev/null | sed 1q`
17104"
17105
17106_ACEOF
17107
17108cat >>$CONFIG_STATUS <<_ACEOF
17109# Files that config.status was made for.
17110config_files="$ac_config_files"
17111config_headers="$ac_config_headers"
17112config_commands="$ac_config_commands"
17113
17114_ACEOF
17115
17116cat >>$CONFIG_STATUS <<\_ACEOF
17117ac_cs_usage="\
17118\`$as_me' instantiates files from templates according to the
17119current configuration.
17120
17121Usage: $0 [OPTIONS] [FILE]...
17122
17123  -h, --help       print this help, then exit
17124  -V, --version    print version number and configuration settings, then exit
17125  -q, --quiet      do not print progress messages
17126  -d, --debug      don't remove temporary files
17127      --recheck    update $as_me by reconfiguring in the same conditions
17128  --file=FILE[:TEMPLATE]
17129		   instantiate the configuration file FILE
17130  --header=FILE[:TEMPLATE]
17131		   instantiate the configuration header FILE
17132
17133Configuration files:
17134$config_files
17135
17136Configuration headers:
17137$config_headers
17138
17139Configuration commands:
17140$config_commands
17141
17142Report bugs to <bug-autoconf@gnu.org>."
17143
17144_ACEOF
17145cat >>$CONFIG_STATUS <<_ACEOF
17146ac_cs_version="\\
17147config.status
17148configured by $0, generated by GNU Autoconf 2.61,
17149  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17150
17151Copyright (C) 2006 Free Software Foundation, Inc.
17152This config.status script is free software; the Free Software Foundation
17153gives unlimited permission to copy, distribute and modify it."
17154
17155ac_pwd='$ac_pwd'
17156srcdir='$srcdir'
17157INSTALL='$INSTALL'
17158_ACEOF
17159
17160cat >>$CONFIG_STATUS <<\_ACEOF
17161# If no file are specified by the user, then we need to provide default
17162# value.  By we need to know if files were specified by the user.
17163ac_need_defaults=:
17164while test $# != 0
17165do
17166  case $1 in
17167  --*=*)
17168    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17169    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17170    ac_shift=:
17171    ;;
17172  *)
17173    ac_option=$1
17174    ac_optarg=$2
17175    ac_shift=shift
17176    ;;
17177  esac
17178
17179  case $ac_option in
17180  # Handling of the options.
17181  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17182    ac_cs_recheck=: ;;
17183  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17184    echo "$ac_cs_version"; exit ;;
17185  --debug | --debu | --deb | --de | --d | -d )
17186    debug=: ;;
17187  --file | --fil | --fi | --f )
17188    $ac_shift
17189    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17190    ac_need_defaults=false;;
17191  --header | --heade | --head | --hea )
17192    $ac_shift
17193    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17194    ac_need_defaults=false;;
17195  --he | --h)
17196    # Conflict between --help and --header
17197    { echo "$as_me: error: ambiguous option: $1
17198Try \`$0 --help' for more information." >&2
17199   { (exit 1); exit 1; }; };;
17200  --help | --hel | -h )
17201    echo "$ac_cs_usage"; exit ;;
17202  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17203  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17204    ac_cs_silent=: ;;
17205
17206  # This is an error.
17207  -*) { echo "$as_me: error: unrecognized option: $1
17208Try \`$0 --help' for more information." >&2
17209   { (exit 1); exit 1; }; } ;;
17210
17211  *) ac_config_targets="$ac_config_targets $1"
17212     ac_need_defaults=false ;;
17213
17214  esac
17215  shift
17216done
17217
17218ac_configure_extra_args=
17219
17220if $ac_cs_silent; then
17221  exec 6>/dev/null
17222  ac_configure_extra_args="$ac_configure_extra_args --silent"
17223fi
17224
17225_ACEOF
17226cat >>$CONFIG_STATUS <<_ACEOF
17227if \$ac_cs_recheck; then
17228  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17229  CONFIG_SHELL=$SHELL
17230  export CONFIG_SHELL
17231  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17232fi
17233
17234_ACEOF
17235cat >>$CONFIG_STATUS <<\_ACEOF
17236exec 5>>config.log
17237{
17238  echo
17239  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17240## Running $as_me. ##
17241_ASBOX
17242  echo "$ac_log"
17243} >&5
17244
17245_ACEOF
17246cat >>$CONFIG_STATUS <<_ACEOF
17247#
17248# INIT-COMMANDS
17249#
17250# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17251    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17252    # from automake < 1.5.
17253    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17254    # Capture the value of LINGUAS because we need it to compute CATALOGS.
17255    LINGUAS="${LINGUAS-%UNSET%}"
17256
17257AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17258
17259_ACEOF
17260
17261cat >>$CONFIG_STATUS <<\_ACEOF
17262
17263# Handling of arguments.
17264for ac_config_target in $ac_config_targets
17265do
17266  case $ac_config_target in
17267    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17268    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17269    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17270    "translations") CONFIG_COMMANDS="$CONFIG_COMMANDS translations" ;;
17271    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17272    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17273    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17274    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17275    "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
17276    "src/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
17277    "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17278    "src/rpg/Makefile") CONFIG_FILES="$CONFIG_FILES src/rpg/Makefile" ;;
17279    "src/events/Makefile") CONFIG_FILES="$CONFIG_FILES src/events/Makefile" ;;
17280    "src/freetype/Makefile") CONFIG_FILES="$CONFIG_FILES src/freetype/Makefile" ;;
17281    "src/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/net/Makefile" ;;
17282    "src/render/Makefile") CONFIG_FILES="$CONFIG_FILES src/render/Makefile" ;;
17283    "src/io/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/Makefile" ;;
17284    "src/squirrel/Makefile") CONFIG_FILES="$CONFIG_FILES src/squirrel/Makefile" ;;
17285    "src/sqstdlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqstdlib/Makefile" ;;
17286    "src/sqbinding/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqbinding/Makefile" ;;
17287    "autopackage/default.apspec") CONFIG_FILES="$CONFIG_FILES autopackage/default.apspec" ;;
17288
17289  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17290echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17291   { (exit 1); exit 1; }; };;
17292  esac
17293done
17294
17295
17296# If the user did not use the arguments to specify the items to instantiate,
17297# then the envvar interface is used.  Set only those that are not.
17298# We use the long form for the default assignment because of an extremely
17299# bizarre bug on SunOS 4.1.3.
17300if $ac_need_defaults; then
17301  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17302  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17303  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17304fi
17305
17306# Have a temporary directory for convenience.  Make it in the build tree
17307# simply because there is no reason against having it here, and in addition,
17308# creating and moving files from /tmp can sometimes cause problems.
17309# Hook for its removal unless debugging.
17310# Note that there is a small window in which the directory will not be cleaned:
17311# after its creation but before its name has been assigned to `$tmp'.
17312$debug ||
17313{
17314  tmp=
17315  trap 'exit_status=$?
17316  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17317' 0
17318  trap '{ (exit 1); exit 1; }' 1 2 13 15
17319}
17320# Create a (secure) tmp directory for tmp files.
17321
17322{
17323  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17324  test -n "$tmp" && test -d "$tmp"
17325}  ||
17326{
17327  tmp=./conf$$-$RANDOM
17328  (umask 077 && mkdir "$tmp")
17329} ||
17330{
17331   echo "$me: cannot create a temporary directory in ." >&2
17332   { (exit 1); exit 1; }
17333}
17334
17335#
17336# Set up the sed scripts for CONFIG_FILES section.
17337#
17338
17339# No need to generate the scripts if there are no CONFIG_FILES.
17340# This happens for instance when ./config.status config.h
17341if test -n "$CONFIG_FILES"; then
17342
17343_ACEOF
17344
17345
17346
17347ac_delim='%!_!# '
17348for ac_last_try in false false false false false :; do
17349  cat >conf$$subs.sed <<_ACEOF
17350SHELL!$SHELL$ac_delim
17351PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17352PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17353PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17354PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17355PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17356PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17357exec_prefix!$exec_prefix$ac_delim
17358prefix!$prefix$ac_delim
17359program_transform_name!$program_transform_name$ac_delim
17360bindir!$bindir$ac_delim
17361sbindir!$sbindir$ac_delim
17362libexecdir!$libexecdir$ac_delim
17363datarootdir!$datarootdir$ac_delim
17364datadir!$datadir$ac_delim
17365sysconfdir!$sysconfdir$ac_delim
17366sharedstatedir!$sharedstatedir$ac_delim
17367localstatedir!$localstatedir$ac_delim
17368includedir!$includedir$ac_delim
17369oldincludedir!$oldincludedir$ac_delim
17370docdir!$docdir$ac_delim
17371infodir!$infodir$ac_delim
17372htmldir!$htmldir$ac_delim
17373dvidir!$dvidir$ac_delim
17374pdfdir!$pdfdir$ac_delim
17375psdir!$psdir$ac_delim
17376libdir!$libdir$ac_delim
17377localedir!$localedir$ac_delim
17378mandir!$mandir$ac_delim
17379DEFS!$DEFS$ac_delim
17380ECHO_C!$ECHO_C$ac_delim
17381ECHO_N!$ECHO_N$ac_delim
17382ECHO_T!$ECHO_T$ac_delim
17383LIBS!$LIBS$ac_delim
17384build_alias!$build_alias$ac_delim
17385host_alias!$host_alias$ac_delim
17386target_alias!$target_alias$ac_delim
17387INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17388INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17389INSTALL_DATA!$INSTALL_DATA$ac_delim
17390CYGPATH_W!$CYGPATH_W$ac_delim
17391PACKAGE!$PACKAGE$ac_delim
17392VERSION!$VERSION$ac_delim
17393ACLOCAL!$ACLOCAL$ac_delim
17394AUTOCONF!$AUTOCONF$ac_delim
17395AUTOMAKE!$AUTOMAKE$ac_delim
17396AUTOHEADER!$AUTOHEADER$ac_delim
17397MAKEINFO!$MAKEINFO$ac_delim
17398install_sh!$install_sh$ac_delim
17399STRIP!$STRIP$ac_delim
17400INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
17401mkdir_p!$mkdir_p$ac_delim
17402AWK!$AWK$ac_delim
17403SET_MAKE!$SET_MAKE$ac_delim
17404am__leading_dot!$am__leading_dot$ac_delim
17405AMTAR!$AMTAR$ac_delim
17406am__tar!$am__tar$ac_delim
17407am__untar!$am__untar$ac_delim
17408USE_NLS!$USE_NLS$ac_delim
17409MSGFMT!$MSGFMT$ac_delim
17410GMSGFMT!$GMSGFMT$ac_delim
17411MSGFMT_015!$MSGFMT_015$ac_delim
17412GMSGFMT_015!$GMSGFMT_015$ac_delim
17413XGETTEXT!$XGETTEXT$ac_delim
17414XGETTEXT_015!$XGETTEXT_015$ac_delim
17415MSGMERGE!$MSGMERGE$ac_delim
17416CC!$CC$ac_delim
17417CFLAGS!$CFLAGS$ac_delim
17418LDFLAGS!$LDFLAGS$ac_delim
17419CPPFLAGS!$CPPFLAGS$ac_delim
17420ac_ct_CC!$ac_ct_CC$ac_delim
17421EXEEXT!$EXEEXT$ac_delim
17422OBJEXT!$OBJEXT$ac_delim
17423DEPDIR!$DEPDIR$ac_delim
17424am__include!$am__include$ac_delim
17425am__quote!$am__quote$ac_delim
17426AMDEP_TRUE!$AMDEP_TRUE$ac_delim
17427AMDEP_FALSE!$AMDEP_FALSE$ac_delim
17428AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
17429CCDEPMODE!$CCDEPMODE$ac_delim
17430am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
17431am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
17432build!$build$ac_delim
17433build_cpu!$build_cpu$ac_delim
17434build_vendor!$build_vendor$ac_delim
17435build_os!$build_os$ac_delim
17436host!$host$ac_delim
17437host_cpu!$host_cpu$ac_delim
17438host_vendor!$host_vendor$ac_delim
17439host_os!$host_os$ac_delim
17440CPP!$CPP$ac_delim
17441GREP!$GREP$ac_delim
17442EGREP!$EGREP$ac_delim
17443GLIBC2!$GLIBC2$ac_delim
17444RANLIB!$RANLIB$ac_delim
17445CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
17446HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
17447_ACEOF
17448
17449  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17450    break
17451  elif $ac_last_try; then
17452    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17453echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17454   { (exit 1); exit 1; }; }
17455  else
17456    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17457  fi
17458done
17459
17460ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17461if test -n "$ac_eof"; then
17462  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17463  ac_eof=`expr $ac_eof + 1`
17464fi
17465
17466cat >>$CONFIG_STATUS <<_ACEOF
17467cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17469_ACEOF
17470sed '
17471s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17472s/^/s,@/; s/!/@,|#_!!_#|/
17473:n
17474t n
17475s/'"$ac_delim"'$/,g/; t
17476s/$/\\/; p
17477N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17478' >>$CONFIG_STATUS <conf$$subs.sed
17479rm -f conf$$subs.sed
17480cat >>$CONFIG_STATUS <<_ACEOF
17481CEOF$ac_eof
17482_ACEOF
17483
17484
17485ac_delim='%!_!# '
17486for ac_last_try in false false false false false :; do
17487  cat >conf$$subs.sed <<_ACEOF
17488ALLOCA!$ALLOCA$ac_delim
17489LIBPTH!$LIBPTH$ac_delim
17490LTLIBPTH!$LTLIBPTH$ac_delim
17491LIBTHREAD!$LIBTHREAD$ac_delim
17492LTLIBTHREAD!$LTLIBTHREAD$ac_delim
17493LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
17494LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
17495LIBICONV!$LIBICONV$ac_delim
17496LTLIBICONV!$LTLIBICONV$ac_delim
17497INTLBISON!$INTLBISON$ac_delim
17498GLIBC21!$GLIBC21$ac_delim
17499INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
17500HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
17501HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
17502HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
17503HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
17504WOE32DLL!$WOE32DLL$ac_delim
17505BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
17506USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
17507CATOBJEXT!$CATOBJEXT$ac_delim
17508DATADIRNAME!$DATADIRNAME$ac_delim
17509INSTOBJEXT!$INSTOBJEXT$ac_delim
17510GENCAT!$GENCAT$ac_delim
17511INTLOBJS!$INTLOBJS$ac_delim
17512INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
17513INTLLIBS!$INTLLIBS$ac_delim
17514LIBINTL!$LIBINTL$ac_delim
17515LTLIBINTL!$LTLIBINTL$ac_delim
17516POSUB!$POSUB$ac_delim
17517CXX!$CXX$ac_delim
17518CXXFLAGS!$CXXFLAGS$ac_delim
17519ac_ct_CXX!$ac_ct_CXX$ac_delim
17520CXXDEPMODE!$CXXDEPMODE$ac_delim
17521am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
17522am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
17523BINRELOC_CFLAGS!$BINRELOC_CFLAGS$ac_delim
17524BINRELOC_LIBS!$BINRELOC_LIBS$ac_delim
17525SDL_CONFIG!$SDL_CONFIG$ac_delim
17526SDL_CFLAGS!$SDL_CFLAGS$ac_delim
17527SDL_LIBS!$SDL_LIBS$ac_delim
17528WXWIDGET!$WXWIDGET$ac_delim
17529HAVE_WXWIDGET_LIB_TRUE!$HAVE_WXWIDGET_LIB_TRUE$ac_delim
17530HAVE_WXWIDGET_LIB_FALSE!$HAVE_WXWIDGET_LIB_FALSE$ac_delim
17531FREETYPE!$FREETYPE$ac_delim
17532TR_CPPFLAGS!$TR_CPPFLAGS$ac_delim
17533TR_CFLAGS!$TR_CFLAGS$ac_delim
17534TR_CXXFLAGS!$TR_CXXFLAGS$ac_delim
17535TR_LIBS!$TR_LIBS$ac_delim
17536LIBOBJS!$LIBOBJS$ac_delim
17537LTLIBOBJS!$LTLIBOBJS$ac_delim
17538_ACEOF
17539
17540  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
17541    break
17542  elif $ac_last_try; then
17543    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17544echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17545   { (exit 1); exit 1; }; }
17546  else
17547    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17548  fi
17549done
17550
17551ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17552if test -n "$ac_eof"; then
17553  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17554  ac_eof=`expr $ac_eof + 1`
17555fi
17556
17557cat >>$CONFIG_STATUS <<_ACEOF
17558cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17560_ACEOF
17561sed '
17562s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17563s/^/s,@/; s/!/@,|#_!!_#|/
17564:n
17565t n
17566s/'"$ac_delim"'$/,g/; t
17567s/$/\\/; p
17568N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17569' >>$CONFIG_STATUS <conf$$subs.sed
17570rm -f conf$$subs.sed
17571cat >>$CONFIG_STATUS <<_ACEOF
17572:end
17573s/|#_!!_#|//g
17574CEOF$ac_eof
17575_ACEOF
17576
17577
17578# VPATH may cause trouble with some makes, so we remove $(srcdir),
17579# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17580# trailing colons and then remove the whole line if VPATH becomes empty
17581# (actually we leave an empty line to preserve line numbers).
17582if test "x$srcdir" = x.; then
17583  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17584s/:*\$(srcdir):*/:/
17585s/:*\${srcdir}:*/:/
17586s/:*@srcdir@:*/:/
17587s/^\([^=]*=[	 ]*\):*/\1/
17588s/:*$//
17589s/^[^=]*=[	 ]*$//
17590}'
17591fi
17592
17593cat >>$CONFIG_STATUS <<\_ACEOF
17594fi # test -n "$CONFIG_FILES"
17595
17596
17597for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
17598do
17599  case $ac_tag in
17600  :[FHLC]) ac_mode=$ac_tag; continue;;
17601  esac
17602  case $ac_mode$ac_tag in
17603  :[FHL]*:*);;
17604  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17605echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17606   { (exit 1); exit 1; }; };;
17607  :[FH]-) ac_tag=-:-;;
17608  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17609  esac
17610  ac_save_IFS=$IFS
17611  IFS=:
17612  set x $ac_tag
17613  IFS=$ac_save_IFS
17614  shift
17615  ac_file=$1
17616  shift
17617
17618  case $ac_mode in
17619  :L) ac_source=$1;;
17620  :[FH])
17621    ac_file_inputs=
17622    for ac_f
17623    do
17624      case $ac_f in
17625      -) ac_f="$tmp/stdin";;
17626      *) # Look for the file first in the build tree, then in the source tree
17627	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17628	 # because $ac_f cannot contain `:'.
17629	 test -f "$ac_f" ||
17630	   case $ac_f in
17631	   [\\/$]*) false;;
17632	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17633	   esac ||
17634	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17635echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17636   { (exit 1); exit 1; }; };;
17637      esac
17638      ac_file_inputs="$ac_file_inputs $ac_f"
17639    done
17640
17641    # Let's still pretend it is `configure' which instantiates (i.e., don't
17642    # use $as_me), people would be surprised to read:
17643    #    /* config.h.  Generated by config.status.  */
17644    configure_input="Generated from "`IFS=:
17645	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17646    if test x"$ac_file" != x-; then
17647      configure_input="$ac_file.  $configure_input"
17648      { echo "$as_me:$LINENO: creating $ac_file" >&5
17649echo "$as_me: creating $ac_file" >&6;}
17650    fi
17651
17652    case $ac_tag in
17653    *:-:* | *:-) cat >"$tmp/stdin";;
17654    esac
17655    ;;
17656  esac
17657
17658  ac_dir=`$as_dirname -- "$ac_file" ||
17659$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17660	 X"$ac_file" : 'X\(//\)[^/]' \| \
17661	 X"$ac_file" : 'X\(//\)$' \| \
17662	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17663echo X"$ac_file" |
17664    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17665	    s//\1/
17666	    q
17667	  }
17668	  /^X\(\/\/\)[^/].*/{
17669	    s//\1/
17670	    q
17671	  }
17672	  /^X\(\/\/\)$/{
17673	    s//\1/
17674	    q
17675	  }
17676	  /^X\(\/\).*/{
17677	    s//\1/
17678	    q
17679	  }
17680	  s/.*/./; q'`
17681  { as_dir="$ac_dir"
17682  case $as_dir in #(
17683  -*) as_dir=./$as_dir;;
17684  esac
17685  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17686    as_dirs=
17687    while :; do
17688      case $as_dir in #(
17689      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17690      *) as_qdir=$as_dir;;
17691      esac
17692      as_dirs="'$as_qdir' $as_dirs"
17693      as_dir=`$as_dirname -- "$as_dir" ||
17694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695	 X"$as_dir" : 'X\(//\)[^/]' \| \
17696	 X"$as_dir" : 'X\(//\)$' \| \
17697	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17698echo X"$as_dir" |
17699    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17700	    s//\1/
17701	    q
17702	  }
17703	  /^X\(\/\/\)[^/].*/{
17704	    s//\1/
17705	    q
17706	  }
17707	  /^X\(\/\/\)$/{
17708	    s//\1/
17709	    q
17710	  }
17711	  /^X\(\/\).*/{
17712	    s//\1/
17713	    q
17714	  }
17715	  s/.*/./; q'`
17716      test -d "$as_dir" && break
17717    done
17718    test -z "$as_dirs" || eval "mkdir $as_dirs"
17719  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17720echo "$as_me: error: cannot create directory $as_dir" >&2;}
17721   { (exit 1); exit 1; }; }; }
17722  ac_builddir=.
17723
17724case "$ac_dir" in
17725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17726*)
17727  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17728  # A ".." for each directory in $ac_dir_suffix.
17729  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17730  case $ac_top_builddir_sub in
17731  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17732  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17733  esac ;;
17734esac
17735ac_abs_top_builddir=$ac_pwd
17736ac_abs_builddir=$ac_pwd$ac_dir_suffix
17737# for backward compatibility:
17738ac_top_builddir=$ac_top_build_prefix
17739
17740case $srcdir in
17741  .)  # We are building in place.
17742    ac_srcdir=.
17743    ac_top_srcdir=$ac_top_builddir_sub
17744    ac_abs_top_srcdir=$ac_pwd ;;
17745  [\\/]* | ?:[\\/]* )  # Absolute name.
17746    ac_srcdir=$srcdir$ac_dir_suffix;
17747    ac_top_srcdir=$srcdir
17748    ac_abs_top_srcdir=$srcdir ;;
17749  *) # Relative name.
17750    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17751    ac_top_srcdir=$ac_top_build_prefix$srcdir
17752    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17753esac
17754ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17755
17756
17757  case $ac_mode in
17758  :F)
17759  #
17760  # CONFIG_FILE
17761  #
17762
17763  case $INSTALL in
17764  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17765  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17766  esac
17767_ACEOF
17768
17769cat >>$CONFIG_STATUS <<\_ACEOF
17770# If the template does not know about datarootdir, expand it.
17771# FIXME: This hack should be removed a few years after 2.60.
17772ac_datarootdir_hack=; ac_datarootdir_seen=
17773
17774case `sed -n '/datarootdir/ {
17775  p
17776  q
17777}
17778/@datadir@/p
17779/@docdir@/p
17780/@infodir@/p
17781/@localedir@/p
17782/@mandir@/p
17783' $ac_file_inputs` in
17784*datarootdir*) ac_datarootdir_seen=yes;;
17785*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17786  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17787echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17788_ACEOF
17789cat >>$CONFIG_STATUS <<_ACEOF
17790  ac_datarootdir_hack='
17791  s&@datadir@&$datadir&g
17792  s&@docdir@&$docdir&g
17793  s&@infodir@&$infodir&g
17794  s&@localedir@&$localedir&g
17795  s&@mandir@&$mandir&g
17796    s&\\\${datarootdir}&$datarootdir&g' ;;
17797esac
17798_ACEOF
17799
17800# Neutralize VPATH when `$srcdir' = `.'.
17801# Shell code in configure.ac might set extrasub.
17802# FIXME: do we really want to maintain this feature?
17803cat >>$CONFIG_STATUS <<_ACEOF
17804  sed "$ac_vpsub
17805$extrasub
17806_ACEOF
17807cat >>$CONFIG_STATUS <<\_ACEOF
17808:t
17809/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17810s&@configure_input@&$configure_input&;t t
17811s&@top_builddir@&$ac_top_builddir_sub&;t t
17812s&@srcdir@&$ac_srcdir&;t t
17813s&@abs_srcdir@&$ac_abs_srcdir&;t t
17814s&@top_srcdir@&$ac_top_srcdir&;t t
17815s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17816s&@builddir@&$ac_builddir&;t t
17817s&@abs_builddir@&$ac_abs_builddir&;t t
17818s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17819s&@INSTALL@&$ac_INSTALL&;t t
17820$ac_datarootdir_hack
17821" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17822
17823test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17824  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17825  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17826  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17827which seems to be undefined.  Please make sure it is defined." >&5
17828echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17829which seems to be undefined.  Please make sure it is defined." >&2;}
17830
17831  rm -f "$tmp/stdin"
17832  case $ac_file in
17833  -) cat "$tmp/out"; rm -f "$tmp/out";;
17834  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17835  esac
17836 ;;
17837  :H)
17838  #
17839  # CONFIG_HEADER
17840  #
17841_ACEOF
17842
17843# Transform confdefs.h into a sed script `conftest.defines', that
17844# substitutes the proper values into config.h.in to produce config.h.
17845rm -f conftest.defines conftest.tail
17846# First, append a space to every undef/define line, to ease matching.
17847echo 's/$/ /' >conftest.defines
17848# Then, protect against being on the right side of a sed subst, or in
17849# an unquoted here document, in config.status.  If some macros were
17850# called several times there might be several #defines for the same
17851# symbol, which is useless.  But do not sort them, since the last
17852# AC_DEFINE must be honored.
17853ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17854# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17855# NAME is the cpp macro being defined, VALUE is the value it is being given.
17856# PARAMS is the parameter list in the macro definition--in most cases, it's
17857# just an empty string.
17858ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
17859ac_dB='\\)[	 (].*,\\1define\\2'
17860ac_dC=' '
17861ac_dD=' ,'
17862
17863uniq confdefs.h |
17864  sed -n '
17865	t rset
17866	:rset
17867	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
17868	t ok
17869	d
17870	:ok
17871	s/[\\&,]/\\&/g
17872	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17873	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17874  ' >>conftest.defines
17875
17876# Remove the space that was appended to ease matching.
17877# Then replace #undef with comments.  This is necessary, for
17878# example, in the case of _POSIX_SOURCE, which is predefined and required
17879# on some systems where configure will not decide to define it.
17880# (The regexp can be short, since the line contains either #define or #undef.)
17881echo 's/ $//
17882s,^[	 #]*u.*,/* & */,' >>conftest.defines
17883
17884# Break up conftest.defines:
17885ac_max_sed_lines=50
17886
17887# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17888# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17889# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17890# et cetera.
17891ac_in='$ac_file_inputs'
17892ac_out='"$tmp/out1"'
17893ac_nxt='"$tmp/out2"'
17894
17895while :
17896do
17897  # Write a here document:
17898    cat >>$CONFIG_STATUS <<_ACEOF
17899    # First, check the format of the line:
17900    cat >"\$tmp/defines.sed" <<\\CEOF
17901/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
17902/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
17903b
17904:def
17905_ACEOF
17906  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17907  echo 'CEOF
17908    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17909  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17910  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17911  grep . conftest.tail >/dev/null || break
17912  rm -f conftest.defines
17913  mv conftest.tail conftest.defines
17914done
17915rm -f conftest.defines conftest.tail
17916
17917echo "ac_result=$ac_in" >>$CONFIG_STATUS
17918cat >>$CONFIG_STATUS <<\_ACEOF
17919  if test x"$ac_file" != x-; then
17920    echo "/* $configure_input  */" >"$tmp/config.h"
17921    cat "$ac_result" >>"$tmp/config.h"
17922    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17923      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17924echo "$as_me: $ac_file is unchanged" >&6;}
17925    else
17926      rm -f $ac_file
17927      mv "$tmp/config.h" $ac_file
17928    fi
17929  else
17930    echo "/* $configure_input  */"
17931    cat "$ac_result"
17932  fi
17933  rm -f "$tmp/out12"
17934# Compute $ac_file's index in $config_headers.
17935_am_stamp_count=1
17936for _am_header in $config_headers :; do
17937  case $_am_header in
17938    $ac_file | $ac_file:* )
17939      break ;;
17940    * )
17941      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17942  esac
17943done
17944echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17945$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17946	 X$ac_file : 'X\(//\)[^/]' \| \
17947	 X$ac_file : 'X\(//\)$' \| \
17948	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17949echo X$ac_file |
17950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17951	    s//\1/
17952	    q
17953	  }
17954	  /^X\(\/\/\)[^/].*/{
17955	    s//\1/
17956	    q
17957	  }
17958	  /^X\(\/\/\)$/{
17959	    s//\1/
17960	    q
17961	  }
17962	  /^X\(\/\).*/{
17963	    s//\1/
17964	    q
17965	  }
17966	  s/.*/./; q'`/stamp-h$_am_stamp_count
17967 ;;
17968
17969  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17970echo "$as_me: executing $ac_file commands" >&6;}
17971 ;;
17972  esac
17973
17974
17975  case $ac_file$ac_mode in
17976    "po-directories":C)
17977    for ac_file in $CONFIG_FILES; do
17978      # Support "outfile[:infile[:infile...]]"
17979      case "$ac_file" in
17980        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17981      esac
17982      # PO directories have a Makefile.in generated from Makefile.in.in.
17983      case "$ac_file" in */Makefile.in)
17984        # Adjust a relative srcdir.
17985        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17986        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17987        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17988        # In autoconf-2.13 it is called $ac_given_srcdir.
17989        # In autoconf-2.50 it is called $srcdir.
17990        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17991        case "$ac_given_srcdir" in
17992          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17993          /*) top_srcdir="$ac_given_srcdir" ;;
17994          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17995        esac
17996        # Treat a directory as a PO directory if and only if it has a
17997        # POTFILES.in file. This allows packages to have multiple PO
17998        # directories under different names or in different locations.
17999        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18000          rm -f "$ac_dir/POTFILES"
18001          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18002          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18003          POMAKEFILEDEPS="POTFILES.in"
18004          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18005          # on $ac_dir but don't depend on user-specified configuration
18006          # parameters.
18007          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18008            # The LINGUAS file contains the set of available languages.
18009            if test -n "$OBSOLETE_ALL_LINGUAS"; then
18010              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18011            fi
18012            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18013            # Hide the ALL_LINGUAS assigment from automake < 1.5.
18014            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18015            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18016          else
18017            # The set of available languages was given in configure.in.
18018            # Hide the ALL_LINGUAS assigment from automake < 1.5.
18019            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18020          fi
18021          # Compute POFILES
18022          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18023          # Compute UPDATEPOFILES
18024          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18025          # Compute DUMMYPOFILES
18026          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18027          # Compute GMOFILES
18028          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18029          case "$ac_given_srcdir" in
18030            .) srcdirpre= ;;
18031            *) srcdirpre='$(srcdir)/' ;;
18032          esac
18033          POFILES=
18034          UPDATEPOFILES=
18035          DUMMYPOFILES=
18036          GMOFILES=
18037          for lang in $ALL_LINGUAS; do
18038            POFILES="$POFILES $srcdirpre$lang.po"
18039            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18040            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18041            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18042          done
18043          # CATALOGS depends on both $ac_dir and the user's LINGUAS
18044          # environment variable.
18045          INST_LINGUAS=
18046          if test -n "$ALL_LINGUAS"; then
18047            for presentlang in $ALL_LINGUAS; do
18048              useit=no
18049              if test "%UNSET%" != "$LINGUAS"; then
18050                desiredlanguages="$LINGUAS"
18051              else
18052                desiredlanguages="$ALL_LINGUAS"
18053              fi
18054              for desiredlang in $desiredlanguages; do
18055                # Use the presentlang catalog if desiredlang is
18056                #   a. equal to presentlang, or
18057                #   b. a variant of presentlang (because in this case,
18058                #      presentlang can be used as a fallback for messages
18059                #      which are not translated in the desiredlang catalog).
18060                case "$desiredlang" in
18061                  "$presentlang"*) useit=yes;;
18062                esac
18063              done
18064              if test $useit = yes; then
18065                INST_LINGUAS="$INST_LINGUAS $presentlang"
18066              fi
18067            done
18068          fi
18069          CATALOGS=
18070          if test -n "$INST_LINGUAS"; then
18071            for lang in $INST_LINGUAS; do
18072              CATALOGS="$CATALOGS $lang.gmo"
18073            done
18074          fi
18075          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18076          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"
18077          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18078            if test -f "$f"; then
18079              case "$f" in
18080                *.orig | *.bak | *~) ;;
18081                *) cat "$f" >> "$ac_dir/Makefile" ;;
18082              esac
18083            fi
18084          done
18085        fi
18086        ;;
18087      esac
18088    done ;;
18089    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18090  # Strip MF so we end up with the name of the file.
18091  mf=`echo "$mf" | sed -e 's/:.*$//'`
18092  # Check whether this is an Automake generated Makefile or not.
18093  # We used to match only the files named `Makefile.in', but
18094  # some people rename them; so instead we look at the file content.
18095  # Grep'ing the first line is not enough: some people post-process
18096  # each Makefile.in and add a new line on top of each file to say so.
18097  # So let's grep whole file.
18098  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18099    dirpart=`$as_dirname -- "$mf" ||
18100$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18101	 X"$mf" : 'X\(//\)[^/]' \| \
18102	 X"$mf" : 'X\(//\)$' \| \
18103	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18104echo X"$mf" |
18105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18106	    s//\1/
18107	    q
18108	  }
18109	  /^X\(\/\/\)[^/].*/{
18110	    s//\1/
18111	    q
18112	  }
18113	  /^X\(\/\/\)$/{
18114	    s//\1/
18115	    q
18116	  }
18117	  /^X\(\/\).*/{
18118	    s//\1/
18119	    q
18120	  }
18121	  s/.*/./; q'`
18122  else
18123    continue
18124  fi
18125  # Extract the definition of DEPDIR, am__include, and am__quote
18126  # from the Makefile without running `make'.
18127  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18128  test -z "$DEPDIR" && continue
18129  am__include=`sed -n 's/^am__include = //p' < "$mf"`
18130  test -z "am__include" && continue
18131  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18132  # When using ansi2knr, U may be empty or an underscore; expand it
18133  U=`sed -n 's/^U = //p' < "$mf"`
18134  # Find all dependency output files, they are included files with
18135  # $(DEPDIR) in their names.  We invoke sed twice because it is the
18136  # simplest approach to changing $(DEPDIR) to its actual value in the
18137  # expansion.
18138  for file in `sed -n "
18139    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18140       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18141    # Make sure the directory exists.
18142    test -f "$dirpart/$file" && continue
18143    fdir=`$as_dirname -- "$file" ||
18144$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18145	 X"$file" : 'X\(//\)[^/]' \| \
18146	 X"$file" : 'X\(//\)$' \| \
18147	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18148echo X"$file" |
18149    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18150	    s//\1/
18151	    q
18152	  }
18153	  /^X\(\/\/\)[^/].*/{
18154	    s//\1/
18155	    q
18156	  }
18157	  /^X\(\/\/\)$/{
18158	    s//\1/
18159	    q
18160	  }
18161	  /^X\(\/\).*/{
18162	    s//\1/
18163	    q
18164	  }
18165	  s/.*/./; q'`
18166    { as_dir=$dirpart/$fdir
18167  case $as_dir in #(
18168  -*) as_dir=./$as_dir;;
18169  esac
18170  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18171    as_dirs=
18172    while :; do
18173      case $as_dir in #(
18174      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18175      *) as_qdir=$as_dir;;
18176      esac
18177      as_dirs="'$as_qdir' $as_dirs"
18178      as_dir=`$as_dirname -- "$as_dir" ||
18179$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18180	 X"$as_dir" : 'X\(//\)[^/]' \| \
18181	 X"$as_dir" : 'X\(//\)$' \| \
18182	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18183echo X"$as_dir" |
18184    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18185	    s//\1/
18186	    q
18187	  }
18188	  /^X\(\/\/\)[^/].*/{
18189	    s//\1/
18190	    q
18191	  }
18192	  /^X\(\/\/\)$/{
18193	    s//\1/
18194	    q
18195	  }
18196	  /^X\(\/\).*/{
18197	    s//\1/
18198	    q
18199	  }
18200	  s/.*/./; q'`
18201      test -d "$as_dir" && break
18202    done
18203    test -z "$as_dirs" || eval "mkdir $as_dirs"
18204  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18205echo "$as_me: error: cannot create directory $as_dir" >&2;}
18206   { (exit 1); exit 1; }; }; }
18207    # echo "creating $dirpart/$file"
18208    echo '# dummy' > "$dirpart/$file"
18209  done
18210done
18211 ;;
18212    "translations":C) rm -rf translations
18213case $srcdir in
18214/*) topdir=$srcdir ;;
18215*)  topdir=`pwd`/$srcdir ;;
18216esac
18217domain="scourge"
18218# Symlinks that allow message catalogs to be used from build tree
18219if test -w $srcdir; then
18220  pushd po
18221  make update-po
18222  popd
18223  for lang in `cat $srcdir/po/LINGUAS`
18224  do
18225    mkdir -p $srcdir/../scourge_data/translations/$lang/LC_MESSAGES
18226    cp -f $topdir/po/$lang.gmo $srcdir/../scourge_data/translations/$lang/LC_MESSAGES/$domain.mo
18227  done
18228fi
18229 ;;
18230
18231  esac
18232done # for ac_tag
18233
18234
18235{ (exit 0); exit 0; }
18236_ACEOF
18237chmod +x $CONFIG_STATUS
18238ac_clean_files=$ac_clean_files_save
18239
18240
18241# configure is writing to config.log, and then calls config.status.
18242# config.status does its own redirection, appending to config.log.
18243# Unfortunately, on DOS this fails, as config.log is still kept open
18244# by configure, so config.status won't be able to write to it; its
18245# output is simply discarded.  So we exec the FD to /dev/null,
18246# effectively closing config.log, so it can be properly (re)opened and
18247# appended to by config.status.  When coming back to configure, we
18248# need to make the FD available again.
18249if test "$no_create" != yes; then
18250  ac_cs_success=:
18251  ac_config_status_args=
18252  test "$silent" = yes &&
18253    ac_config_status_args="$ac_config_status_args --quiet"
18254  exec 5>/dev/null
18255  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18256  exec 5>>config.log
18257  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18258  # would make configure fail if this is the last instruction.
18259  $ac_cs_success || { (exit 1); exit 1; }
18260fi
18261
18262
18263if test "$have_WXWIDGET" = "yes"; then
18264  ac_config_files="$ac_config_files src/tools/Makefile"
18265
18266cat >confcache <<\_ACEOF
18267# This file is a shell script that caches the results of configure
18268# tests run on this system so they can be shared between configure
18269# scripts and configure runs, see configure's option --config-cache.
18270# It is not useful on other systems.  If it contains results you don't
18271# want to keep, you may remove or edit it.
18272#
18273# config.status only pays attention to the cache file if you give it
18274# the --recheck option to rerun configure.
18275#
18276# `ac_cv_env_foo' variables (set or unset) will be overridden when
18277# loading this file, other *unset* `ac_cv_foo' will be assigned the
18278# following values.
18279
18280_ACEOF
18281
18282# The following way of writing the cache mishandles newlines in values,
18283# but we know of no workaround that is simple, portable, and efficient.
18284# So, we kill variables containing newlines.
18285# Ultrix sh set writes to stderr and can't be redirected directly,
18286# and sets the high bit in the cache file unless we assign to the vars.
18287(
18288  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18289    eval ac_val=\$$ac_var
18290    case $ac_val in #(
18291    *${as_nl}*)
18292      case $ac_var in #(
18293      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18294echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18295      esac
18296      case $ac_var in #(
18297      _ | IFS | as_nl) ;; #(
18298      *) $as_unset $ac_var ;;
18299      esac ;;
18300    esac
18301  done
18302
18303  (set) 2>&1 |
18304    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18305    *${as_nl}ac_space=\ *)
18306      # `set' does not quote correctly, so add quotes (double-quote
18307      # substitution turns \\\\ into \\, and sed turns \\ into \).
18308      sed -n \
18309	"s/'/'\\\\''/g;
18310	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18311      ;; #(
18312    *)
18313      # `set' quotes correctly as required by POSIX, so do not add quotes.
18314      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18315      ;;
18316    esac |
18317    sort
18318) |
18319  sed '
18320     /^ac_cv_env_/b end
18321     t clear
18322     :clear
18323     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18324     t end
18325     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18326     :end' >>confcache
18327if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18328  if test -w "$cache_file"; then
18329    test "x$cache_file" != "x/dev/null" &&
18330      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18331echo "$as_me: updating cache $cache_file" >&6;}
18332    cat confcache >$cache_file
18333  else
18334    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18335echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18336  fi
18337fi
18338rm -f confcache
18339
18340test "x$prefix" = xNONE && prefix=$ac_default_prefix
18341# Let make expand exec_prefix.
18342test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18343
18344DEFS=-DHAVE_CONFIG_H
18345
18346ac_libobjs=
18347ac_ltlibobjs=
18348for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18349  # 1. Remove the extension, and $U if already installed.
18350  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18351  ac_i=`echo "$ac_i" | sed "$ac_script"`
18352  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18353  #    will be set to the directory where LIBOBJS objects are built.
18354  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18355  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18356done
18357LIBOBJS=$ac_libobjs
18358
18359LTLIBOBJS=$ac_ltlibobjs
18360
18361
18362if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18363  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18364Usually this means the macro was only invoked conditionally." >&5
18365echo "$as_me: error: conditional \"AMDEP\" was never defined.
18366Usually this means the macro was only invoked conditionally." >&2;}
18367   { (exit 1); exit 1; }; }
18368fi
18369if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18370  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18371Usually this means the macro was only invoked conditionally." >&5
18372echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18373Usually this means the macro was only invoked conditionally." >&2;}
18374   { (exit 1); exit 1; }; }
18375fi
18376if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18377  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18378Usually this means the macro was only invoked conditionally." >&5
18379echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18380Usually this means the macro was only invoked conditionally." >&2;}
18381   { (exit 1); exit 1; }; }
18382fi
18383if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18384  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18385Usually this means the macro was only invoked conditionally." >&5
18386echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18387Usually this means the macro was only invoked conditionally." >&2;}
18388   { (exit 1); exit 1; }; }
18389fi
18390if test -z "${HAVE_WXWIDGET_LIB_TRUE}" && test -z "${HAVE_WXWIDGET_LIB_FALSE}"; then
18391  { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWIDGET_LIB\" was never defined.
18392Usually this means the macro was only invoked conditionally." >&5
18393echo "$as_me: error: conditional \"HAVE_WXWIDGET_LIB\" was never defined.
18394Usually this means the macro was only invoked conditionally." >&2;}
18395   { (exit 1); exit 1; }; }
18396fi
18397
18398: ${CONFIG_STATUS=./config.status}
18399ac_clean_files_save=$ac_clean_files
18400ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18401{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18402echo "$as_me: creating $CONFIG_STATUS" >&6;}
18403cat >$CONFIG_STATUS <<_ACEOF
18404#! $SHELL
18405# Generated by $as_me.
18406# Run this file to recreate the current configuration.
18407# Compiler output produced by configure, useful for debugging
18408# configure, is in config.log if it exists.
18409
18410debug=false
18411ac_cs_recheck=false
18412ac_cs_silent=false
18413SHELL=\${CONFIG_SHELL-$SHELL}
18414_ACEOF
18415
18416cat >>$CONFIG_STATUS <<\_ACEOF
18417## --------------------- ##
18418## M4sh Initialization.  ##
18419## --------------------- ##
18420
18421# Be more Bourne compatible
18422DUALCASE=1; export DUALCASE # for MKS sh
18423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18424  emulate sh
18425  NULLCMD=:
18426  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18427  # is contrary to our usage.  Disable this feature.
18428  alias -g '${1+"$@"}'='"$@"'
18429  setopt NO_GLOB_SUBST
18430else
18431  case `(set -o) 2>/dev/null` in
18432  *posix*) set -o posix ;;
18433esac
18434
18435fi
18436
18437
18438
18439
18440# PATH needs CR
18441# Avoid depending upon Character Ranges.
18442as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18443as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18444as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18445as_cr_digits='0123456789'
18446as_cr_alnum=$as_cr_Letters$as_cr_digits
18447
18448# The user is always right.
18449if test "${PATH_SEPARATOR+set}" != set; then
18450  echo "#! /bin/sh" >conf$$.sh
18451  echo  "exit 0"   >>conf$$.sh
18452  chmod +x conf$$.sh
18453  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18454    PATH_SEPARATOR=';'
18455  else
18456    PATH_SEPARATOR=:
18457  fi
18458  rm -f conf$$.sh
18459fi
18460
18461# Support unset when possible.
18462if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18463  as_unset=unset
18464else
18465  as_unset=false
18466fi
18467
18468
18469# IFS
18470# We need space, tab and new line, in precisely that order.  Quoting is
18471# there to prevent editors from complaining about space-tab.
18472# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18473# splitting by setting IFS to empty value.)
18474as_nl='
18475'
18476IFS=" ""	$as_nl"
18477
18478# Find who we are.  Look in the path if we contain no directory separator.
18479case $0 in
18480  *[\\/]* ) as_myself=$0 ;;
18481  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482for as_dir in $PATH
18483do
18484  IFS=$as_save_IFS
18485  test -z "$as_dir" && as_dir=.
18486  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18487done
18488IFS=$as_save_IFS
18489
18490     ;;
18491esac
18492# We did not find ourselves, most probably we were run as `sh COMMAND'
18493# in which case we are not to be found in the path.
18494if test "x$as_myself" = x; then
18495  as_myself=$0
18496fi
18497if test ! -f "$as_myself"; then
18498  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18499  { (exit 1); exit 1; }
18500fi
18501
18502# Work around bugs in pre-3.0 UWIN ksh.
18503for as_var in ENV MAIL MAILPATH
18504do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18505done
18506PS1='$ '
18507PS2='> '
18508PS4='+ '
18509
18510# NLS nuisances.
18511for as_var in \
18512  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18513  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18514  LC_TELEPHONE LC_TIME
18515do
18516  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18517    eval $as_var=C; export $as_var
18518  else
18519    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18520  fi
18521done
18522
18523# Required to use basename.
18524if expr a : '\(a\)' >/dev/null 2>&1 &&
18525   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18526  as_expr=expr
18527else
18528  as_expr=false
18529fi
18530
18531if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18532  as_basename=basename
18533else
18534  as_basename=false
18535fi
18536
18537
18538# Name of the executable.
18539as_me=`$as_basename -- "$0" ||
18540$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18541	 X"$0" : 'X\(//\)$' \| \
18542	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18543echo X/"$0" |
18544    sed '/^.*\/\([^/][^/]*\)\/*$/{
18545	    s//\1/
18546	    q
18547	  }
18548	  /^X\/\(\/\/\)$/{
18549	    s//\1/
18550	    q
18551	  }
18552	  /^X\/\(\/\).*/{
18553	    s//\1/
18554	    q
18555	  }
18556	  s/.*/./; q'`
18557
18558# CDPATH.
18559$as_unset CDPATH
18560
18561
18562
18563  as_lineno_1=$LINENO
18564  as_lineno_2=$LINENO
18565  test "x$as_lineno_1" != "x$as_lineno_2" &&
18566  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18567
18568  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18569  # uniformly replaced by the line number.  The first 'sed' inserts a
18570  # line-number line after each line using $LINENO; the second 'sed'
18571  # does the real work.  The second script uses 'N' to pair each
18572  # line-number line with the line containing $LINENO, and appends
18573  # trailing '-' during substitution so that $LINENO is not a special
18574  # case at line end.
18575  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18576  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18577  # E. McMahon (1931-1989) for sed's syntax.  :-)
18578  sed -n '
18579    p
18580    /[$]LINENO/=
18581  ' <$as_myself |
18582    sed '
18583      s/[$]LINENO.*/&-/
18584      t lineno
18585      b
18586      :lineno
18587      N
18588      :loop
18589      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18590      t loop
18591      s/-\n.*//
18592    ' >$as_me.lineno &&
18593  chmod +x "$as_me.lineno" ||
18594    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18595   { (exit 1); exit 1; }; }
18596
18597  # Don't try to exec as it changes $[0], causing all sort of problems
18598  # (the dirname of $[0] is not the place where we might find the
18599  # original and so on.  Autoconf is especially sensitive to this).
18600  . "./$as_me.lineno"
18601  # Exit status is that of the last command.
18602  exit
18603}
18604
18605
18606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18607  as_dirname=dirname
18608else
18609  as_dirname=false
18610fi
18611
18612ECHO_C= ECHO_N= ECHO_T=
18613case `echo -n x` in
18614-n*)
18615  case `echo 'x\c'` in
18616  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18617  *)   ECHO_C='\c';;
18618  esac;;
18619*)
18620  ECHO_N='-n';;
18621esac
18622
18623if expr a : '\(a\)' >/dev/null 2>&1 &&
18624   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18625  as_expr=expr
18626else
18627  as_expr=false
18628fi
18629
18630rm -f conf$$ conf$$.exe conf$$.file
18631if test -d conf$$.dir; then
18632  rm -f conf$$.dir/conf$$.file
18633else
18634  rm -f conf$$.dir
18635  mkdir conf$$.dir
18636fi
18637echo >conf$$.file
18638if ln -s conf$$.file conf$$ 2>/dev/null; then
18639  as_ln_s='ln -s'
18640  # ... but there are two gotchas:
18641  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18642  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18643  # In both cases, we have to default to `cp -p'.
18644  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18645    as_ln_s='cp -p'
18646elif ln conf$$.file conf$$ 2>/dev/null; then
18647  as_ln_s=ln
18648else
18649  as_ln_s='cp -p'
18650fi
18651rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18652rmdir conf$$.dir 2>/dev/null
18653
18654if mkdir -p . 2>/dev/null; then
18655  as_mkdir_p=:
18656else
18657  test -d ./-p && rmdir ./-p
18658  as_mkdir_p=false
18659fi
18660
18661if test -x / >/dev/null 2>&1; then
18662  as_test_x='test -x'
18663else
18664  if ls -dL / >/dev/null 2>&1; then
18665    as_ls_L_option=L
18666  else
18667    as_ls_L_option=
18668  fi
18669  as_test_x='
18670    eval sh -c '\''
18671      if test -d "$1"; then
18672        test -d "$1/.";
18673      else
18674	case $1 in
18675        -*)set "./$1";;
18676	esac;
18677	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18678	???[sx]*):;;*)false;;esac;fi
18679    '\'' sh
18680  '
18681fi
18682as_executable_p=$as_test_x
18683
18684# Sed expression to map a string onto a valid CPP name.
18685as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18686
18687# Sed expression to map a string onto a valid variable name.
18688as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18689
18690
18691exec 6>&1
18692
18693# Save the log message, to keep $[0] and so on meaningful, and to
18694# report actual input values of CONFIG_FILES etc. instead of their
18695# values after options handling.
18696ac_log="
18697This file was extended by $as_me, which was
18698generated by GNU Autoconf 2.61.  Invocation command line was
18699
18700  CONFIG_FILES    = $CONFIG_FILES
18701  CONFIG_HEADERS  = $CONFIG_HEADERS
18702  CONFIG_LINKS    = $CONFIG_LINKS
18703  CONFIG_COMMANDS = $CONFIG_COMMANDS
18704  $ $0 $@
18705
18706on `(hostname || uname -n) 2>/dev/null | sed 1q`
18707"
18708
18709_ACEOF
18710
18711cat >>$CONFIG_STATUS <<_ACEOF
18712# Files that config.status was made for.
18713config_files="$ac_config_files"
18714config_headers="$ac_config_headers"
18715config_commands="$ac_config_commands"
18716
18717_ACEOF
18718
18719cat >>$CONFIG_STATUS <<\_ACEOF
18720ac_cs_usage="\
18721\`$as_me' instantiates files from templates according to the
18722current configuration.
18723
18724Usage: $0 [OPTIONS] [FILE]...
18725
18726  -h, --help       print this help, then exit
18727  -V, --version    print version number and configuration settings, then exit
18728  -q, --quiet      do not print progress messages
18729  -d, --debug      don't remove temporary files
18730      --recheck    update $as_me by reconfiguring in the same conditions
18731  --file=FILE[:TEMPLATE]
18732		   instantiate the configuration file FILE
18733  --header=FILE[:TEMPLATE]
18734		   instantiate the configuration header FILE
18735
18736Configuration files:
18737$config_files
18738
18739Configuration headers:
18740$config_headers
18741
18742Configuration commands:
18743$config_commands
18744
18745Report bugs to <bug-autoconf@gnu.org>."
18746
18747_ACEOF
18748cat >>$CONFIG_STATUS <<_ACEOF
18749ac_cs_version="\\
18750config.status
18751configured by $0, generated by GNU Autoconf 2.61,
18752  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18753
18754Copyright (C) 2006 Free Software Foundation, Inc.
18755This config.status script is free software; the Free Software Foundation
18756gives unlimited permission to copy, distribute and modify it."
18757
18758ac_pwd='$ac_pwd'
18759srcdir='$srcdir'
18760INSTALL='$INSTALL'
18761_ACEOF
18762
18763cat >>$CONFIG_STATUS <<\_ACEOF
18764# If no file are specified by the user, then we need to provide default
18765# value.  By we need to know if files were specified by the user.
18766ac_need_defaults=:
18767while test $# != 0
18768do
18769  case $1 in
18770  --*=*)
18771    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18772    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18773    ac_shift=:
18774    ;;
18775  *)
18776    ac_option=$1
18777    ac_optarg=$2
18778    ac_shift=shift
18779    ;;
18780  esac
18781
18782  case $ac_option in
18783  # Handling of the options.
18784  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18785    ac_cs_recheck=: ;;
18786  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18787    echo "$ac_cs_version"; exit ;;
18788  --debug | --debu | --deb | --de | --d | -d )
18789    debug=: ;;
18790  --file | --fil | --fi | --f )
18791    $ac_shift
18792    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18793    ac_need_defaults=false;;
18794  --header | --heade | --head | --hea )
18795    $ac_shift
18796    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18797    ac_need_defaults=false;;
18798  --he | --h)
18799    # Conflict between --help and --header
18800    { echo "$as_me: error: ambiguous option: $1
18801Try \`$0 --help' for more information." >&2
18802   { (exit 1); exit 1; }; };;
18803  --help | --hel | -h )
18804    echo "$ac_cs_usage"; exit ;;
18805  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18806  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18807    ac_cs_silent=: ;;
18808
18809  # This is an error.
18810  -*) { echo "$as_me: error: unrecognized option: $1
18811Try \`$0 --help' for more information." >&2
18812   { (exit 1); exit 1; }; } ;;
18813
18814  *) ac_config_targets="$ac_config_targets $1"
18815     ac_need_defaults=false ;;
18816
18817  esac
18818  shift
18819done
18820
18821ac_configure_extra_args=
18822
18823if $ac_cs_silent; then
18824  exec 6>/dev/null
18825  ac_configure_extra_args="$ac_configure_extra_args --silent"
18826fi
18827
18828_ACEOF
18829cat >>$CONFIG_STATUS <<_ACEOF
18830if \$ac_cs_recheck; then
18831  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18832  CONFIG_SHELL=$SHELL
18833  export CONFIG_SHELL
18834  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18835fi
18836
18837_ACEOF
18838cat >>$CONFIG_STATUS <<\_ACEOF
18839exec 5>>config.log
18840{
18841  echo
18842  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18843## Running $as_me. ##
18844_ASBOX
18845  echo "$ac_log"
18846} >&5
18847
18848_ACEOF
18849cat >>$CONFIG_STATUS <<_ACEOF
18850#
18851# INIT-COMMANDS
18852#
18853# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18854    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18855    # from automake < 1.5.
18856    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18857    # Capture the value of LINGUAS because we need it to compute CATALOGS.
18858    LINGUAS="${LINGUAS-%UNSET%}"
18859
18860AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18861
18862_ACEOF
18863
18864cat >>$CONFIG_STATUS <<\_ACEOF
18865
18866# Handling of arguments.
18867for ac_config_target in $ac_config_targets
18868do
18869  case $ac_config_target in
18870    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18871    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18872    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18873    "translations") CONFIG_COMMANDS="$CONFIG_COMMANDS translations" ;;
18874    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18875    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18876    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18877    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18878    "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
18879    "src/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
18880    "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
18881    "src/rpg/Makefile") CONFIG_FILES="$CONFIG_FILES src/rpg/Makefile" ;;
18882    "src/events/Makefile") CONFIG_FILES="$CONFIG_FILES src/events/Makefile" ;;
18883    "src/freetype/Makefile") CONFIG_FILES="$CONFIG_FILES src/freetype/Makefile" ;;
18884    "src/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/net/Makefile" ;;
18885    "src/render/Makefile") CONFIG_FILES="$CONFIG_FILES src/render/Makefile" ;;
18886    "src/io/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/Makefile" ;;
18887    "src/squirrel/Makefile") CONFIG_FILES="$CONFIG_FILES src/squirrel/Makefile" ;;
18888    "src/sqstdlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqstdlib/Makefile" ;;
18889    "src/sqbinding/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqbinding/Makefile" ;;
18890    "autopackage/default.apspec") CONFIG_FILES="$CONFIG_FILES autopackage/default.apspec" ;;
18891    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18892
18893  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18894echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18895   { (exit 1); exit 1; }; };;
18896  esac
18897done
18898
18899
18900# If the user did not use the arguments to specify the items to instantiate,
18901# then the envvar interface is used.  Set only those that are not.
18902# We use the long form for the default assignment because of an extremely
18903# bizarre bug on SunOS 4.1.3.
18904if $ac_need_defaults; then
18905  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18906  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18907  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18908fi
18909
18910# Have a temporary directory for convenience.  Make it in the build tree
18911# simply because there is no reason against having it here, and in addition,
18912# creating and moving files from /tmp can sometimes cause problems.
18913# Hook for its removal unless debugging.
18914# Note that there is a small window in which the directory will not be cleaned:
18915# after its creation but before its name has been assigned to `$tmp'.
18916$debug ||
18917{
18918  tmp=
18919  trap 'exit_status=$?
18920  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18921' 0
18922  trap '{ (exit 1); exit 1; }' 1 2 13 15
18923}
18924# Create a (secure) tmp directory for tmp files.
18925
18926{
18927  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18928  test -n "$tmp" && test -d "$tmp"
18929}  ||
18930{
18931  tmp=./conf$$-$RANDOM
18932  (umask 077 && mkdir "$tmp")
18933} ||
18934{
18935   echo "$me: cannot create a temporary directory in ." >&2
18936   { (exit 1); exit 1; }
18937}
18938
18939#
18940# Set up the sed scripts for CONFIG_FILES section.
18941#
18942
18943# No need to generate the scripts if there are no CONFIG_FILES.
18944# This happens for instance when ./config.status config.h
18945if test -n "$CONFIG_FILES"; then
18946
18947_ACEOF
18948
18949
18950
18951ac_delim='%!_!# '
18952for ac_last_try in false false false false false :; do
18953  cat >conf$$subs.sed <<_ACEOF
18954SHELL!$SHELL$ac_delim
18955PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18956PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18957PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18958PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18959PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18960PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18961exec_prefix!$exec_prefix$ac_delim
18962prefix!$prefix$ac_delim
18963program_transform_name!$program_transform_name$ac_delim
18964bindir!$bindir$ac_delim
18965sbindir!$sbindir$ac_delim
18966libexecdir!$libexecdir$ac_delim
18967datarootdir!$datarootdir$ac_delim
18968datadir!$datadir$ac_delim
18969sysconfdir!$sysconfdir$ac_delim
18970sharedstatedir!$sharedstatedir$ac_delim
18971localstatedir!$localstatedir$ac_delim
18972includedir!$includedir$ac_delim
18973oldincludedir!$oldincludedir$ac_delim
18974docdir!$docdir$ac_delim
18975infodir!$infodir$ac_delim
18976htmldir!$htmldir$ac_delim
18977dvidir!$dvidir$ac_delim
18978pdfdir!$pdfdir$ac_delim
18979psdir!$psdir$ac_delim
18980libdir!$libdir$ac_delim
18981localedir!$localedir$ac_delim
18982mandir!$mandir$ac_delim
18983DEFS!$DEFS$ac_delim
18984ECHO_C!$ECHO_C$ac_delim
18985ECHO_N!$ECHO_N$ac_delim
18986ECHO_T!$ECHO_T$ac_delim
18987LIBS!$LIBS$ac_delim
18988build_alias!$build_alias$ac_delim
18989host_alias!$host_alias$ac_delim
18990target_alias!$target_alias$ac_delim
18991INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18992INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18993INSTALL_DATA!$INSTALL_DATA$ac_delim
18994CYGPATH_W!$CYGPATH_W$ac_delim
18995PACKAGE!$PACKAGE$ac_delim
18996VERSION!$VERSION$ac_delim
18997ACLOCAL!$ACLOCAL$ac_delim
18998AUTOCONF!$AUTOCONF$ac_delim
18999AUTOMAKE!$AUTOMAKE$ac_delim
19000AUTOHEADER!$AUTOHEADER$ac_delim
19001MAKEINFO!$MAKEINFO$ac_delim
19002install_sh!$install_sh$ac_delim
19003STRIP!$STRIP$ac_delim
19004INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
19005mkdir_p!$mkdir_p$ac_delim
19006AWK!$AWK$ac_delim
19007SET_MAKE!$SET_MAKE$ac_delim
19008am__leading_dot!$am__leading_dot$ac_delim
19009AMTAR!$AMTAR$ac_delim
19010am__tar!$am__tar$ac_delim
19011am__untar!$am__untar$ac_delim
19012USE_NLS!$USE_NLS$ac_delim
19013MSGFMT!$MSGFMT$ac_delim
19014GMSGFMT!$GMSGFMT$ac_delim
19015MSGFMT_015!$MSGFMT_015$ac_delim
19016GMSGFMT_015!$GMSGFMT_015$ac_delim
19017XGETTEXT!$XGETTEXT$ac_delim
19018XGETTEXT_015!$XGETTEXT_015$ac_delim
19019MSGMERGE!$MSGMERGE$ac_delim
19020CC!$CC$ac_delim
19021CFLAGS!$CFLAGS$ac_delim
19022LDFLAGS!$LDFLAGS$ac_delim
19023CPPFLAGS!$CPPFLAGS$ac_delim
19024ac_ct_CC!$ac_ct_CC$ac_delim
19025EXEEXT!$EXEEXT$ac_delim
19026OBJEXT!$OBJEXT$ac_delim
19027DEPDIR!$DEPDIR$ac_delim
19028am__include!$am__include$ac_delim
19029am__quote!$am__quote$ac_delim
19030AMDEP_TRUE!$AMDEP_TRUE$ac_delim
19031AMDEP_FALSE!$AMDEP_FALSE$ac_delim
19032AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
19033CCDEPMODE!$CCDEPMODE$ac_delim
19034am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
19035am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
19036build!$build$ac_delim
19037build_cpu!$build_cpu$ac_delim
19038build_vendor!$build_vendor$ac_delim
19039build_os!$build_os$ac_delim
19040host!$host$ac_delim
19041host_cpu!$host_cpu$ac_delim
19042host_vendor!$host_vendor$ac_delim
19043host_os!$host_os$ac_delim
19044CPP!$CPP$ac_delim
19045GREP!$GREP$ac_delim
19046EGREP!$EGREP$ac_delim
19047GLIBC2!$GLIBC2$ac_delim
19048RANLIB!$RANLIB$ac_delim
19049CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
19050HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
19051_ACEOF
19052
19053  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19054    break
19055  elif $ac_last_try; then
19056    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19057echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19058   { (exit 1); exit 1; }; }
19059  else
19060    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19061  fi
19062done
19063
19064ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19065if test -n "$ac_eof"; then
19066  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19067  ac_eof=`expr $ac_eof + 1`
19068fi
19069
19070cat >>$CONFIG_STATUS <<_ACEOF
19071cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19073_ACEOF
19074sed '
19075s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19076s/^/s,@/; s/!/@,|#_!!_#|/
19077:n
19078t n
19079s/'"$ac_delim"'$/,g/; t
19080s/$/\\/; p
19081N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19082' >>$CONFIG_STATUS <conf$$subs.sed
19083rm -f conf$$subs.sed
19084cat >>$CONFIG_STATUS <<_ACEOF
19085CEOF$ac_eof
19086_ACEOF
19087
19088
19089ac_delim='%!_!# '
19090for ac_last_try in false false false false false :; do
19091  cat >conf$$subs.sed <<_ACEOF
19092ALLOCA!$ALLOCA$ac_delim
19093LIBPTH!$LIBPTH$ac_delim
19094LTLIBPTH!$LTLIBPTH$ac_delim
19095LIBTHREAD!$LIBTHREAD$ac_delim
19096LTLIBTHREAD!$LTLIBTHREAD$ac_delim
19097LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
19098LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
19099LIBICONV!$LIBICONV$ac_delim
19100LTLIBICONV!$LTLIBICONV$ac_delim
19101INTLBISON!$INTLBISON$ac_delim
19102GLIBC21!$GLIBC21$ac_delim
19103INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
19104HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
19105HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
19106HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
19107HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
19108WOE32DLL!$WOE32DLL$ac_delim
19109BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
19110USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
19111CATOBJEXT!$CATOBJEXT$ac_delim
19112DATADIRNAME!$DATADIRNAME$ac_delim
19113INSTOBJEXT!$INSTOBJEXT$ac_delim
19114GENCAT!$GENCAT$ac_delim
19115INTLOBJS!$INTLOBJS$ac_delim
19116INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
19117INTLLIBS!$INTLLIBS$ac_delim
19118LIBINTL!$LIBINTL$ac_delim
19119LTLIBINTL!$LTLIBINTL$ac_delim
19120POSUB!$POSUB$ac_delim
19121CXX!$CXX$ac_delim
19122CXXFLAGS!$CXXFLAGS$ac_delim
19123ac_ct_CXX!$ac_ct_CXX$ac_delim
19124CXXDEPMODE!$CXXDEPMODE$ac_delim
19125am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
19126am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
19127BINRELOC_CFLAGS!$BINRELOC_CFLAGS$ac_delim
19128BINRELOC_LIBS!$BINRELOC_LIBS$ac_delim
19129SDL_CONFIG!$SDL_CONFIG$ac_delim
19130SDL_CFLAGS!$SDL_CFLAGS$ac_delim
19131SDL_LIBS!$SDL_LIBS$ac_delim
19132WXWIDGET!$WXWIDGET$ac_delim
19133HAVE_WXWIDGET_LIB_TRUE!$HAVE_WXWIDGET_LIB_TRUE$ac_delim
19134HAVE_WXWIDGET_LIB_FALSE!$HAVE_WXWIDGET_LIB_FALSE$ac_delim
19135FREETYPE!$FREETYPE$ac_delim
19136TR_CPPFLAGS!$TR_CPPFLAGS$ac_delim
19137TR_CFLAGS!$TR_CFLAGS$ac_delim
19138TR_CXXFLAGS!$TR_CXXFLAGS$ac_delim
19139TR_LIBS!$TR_LIBS$ac_delim
19140LIBOBJS!$LIBOBJS$ac_delim
19141LTLIBOBJS!$LTLIBOBJS$ac_delim
19142_ACEOF
19143
19144  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
19145    break
19146  elif $ac_last_try; then
19147    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19148echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19149   { (exit 1); exit 1; }; }
19150  else
19151    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19152  fi
19153done
19154
19155ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19156if test -n "$ac_eof"; then
19157  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19158  ac_eof=`expr $ac_eof + 1`
19159fi
19160
19161cat >>$CONFIG_STATUS <<_ACEOF
19162cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19164_ACEOF
19165sed '
19166s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19167s/^/s,@/; s/!/@,|#_!!_#|/
19168:n
19169t n
19170s/'"$ac_delim"'$/,g/; t
19171s/$/\\/; p
19172N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19173' >>$CONFIG_STATUS <conf$$subs.sed
19174rm -f conf$$subs.sed
19175cat >>$CONFIG_STATUS <<_ACEOF
19176:end
19177s/|#_!!_#|//g
19178CEOF$ac_eof
19179_ACEOF
19180
19181
19182# VPATH may cause trouble with some makes, so we remove $(srcdir),
19183# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19184# trailing colons and then remove the whole line if VPATH becomes empty
19185# (actually we leave an empty line to preserve line numbers).
19186if test "x$srcdir" = x.; then
19187  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19188s/:*\$(srcdir):*/:/
19189s/:*\${srcdir}:*/:/
19190s/:*@srcdir@:*/:/
19191s/^\([^=]*=[	 ]*\):*/\1/
19192s/:*$//
19193s/^[^=]*=[	 ]*$//
19194}'
19195fi
19196
19197cat >>$CONFIG_STATUS <<\_ACEOF
19198fi # test -n "$CONFIG_FILES"
19199
19200
19201for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19202do
19203  case $ac_tag in
19204  :[FHLC]) ac_mode=$ac_tag; continue;;
19205  esac
19206  case $ac_mode$ac_tag in
19207  :[FHL]*:*);;
19208  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19209echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19210   { (exit 1); exit 1; }; };;
19211  :[FH]-) ac_tag=-:-;;
19212  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19213  esac
19214  ac_save_IFS=$IFS
19215  IFS=:
19216  set x $ac_tag
19217  IFS=$ac_save_IFS
19218  shift
19219  ac_file=$1
19220  shift
19221
19222  case $ac_mode in
19223  :L) ac_source=$1;;
19224  :[FH])
19225    ac_file_inputs=
19226    for ac_f
19227    do
19228      case $ac_f in
19229      -) ac_f="$tmp/stdin";;
19230      *) # Look for the file first in the build tree, then in the source tree
19231	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19232	 # because $ac_f cannot contain `:'.
19233	 test -f "$ac_f" ||
19234	   case $ac_f in
19235	   [\\/$]*) false;;
19236	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19237	   esac ||
19238	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19239echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19240   { (exit 1); exit 1; }; };;
19241      esac
19242      ac_file_inputs="$ac_file_inputs $ac_f"
19243    done
19244
19245    # Let's still pretend it is `configure' which instantiates (i.e., don't
19246    # use $as_me), people would be surprised to read:
19247    #    /* config.h.  Generated by config.status.  */
19248    configure_input="Generated from "`IFS=:
19249	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19250    if test x"$ac_file" != x-; then
19251      configure_input="$ac_file.  $configure_input"
19252      { echo "$as_me:$LINENO: creating $ac_file" >&5
19253echo "$as_me: creating $ac_file" >&6;}
19254    fi
19255
19256    case $ac_tag in
19257    *:-:* | *:-) cat >"$tmp/stdin";;
19258    esac
19259    ;;
19260  esac
19261
19262  ac_dir=`$as_dirname -- "$ac_file" ||
19263$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19264	 X"$ac_file" : 'X\(//\)[^/]' \| \
19265	 X"$ac_file" : 'X\(//\)$' \| \
19266	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19267echo X"$ac_file" |
19268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19269	    s//\1/
19270	    q
19271	  }
19272	  /^X\(\/\/\)[^/].*/{
19273	    s//\1/
19274	    q
19275	  }
19276	  /^X\(\/\/\)$/{
19277	    s//\1/
19278	    q
19279	  }
19280	  /^X\(\/\).*/{
19281	    s//\1/
19282	    q
19283	  }
19284	  s/.*/./; q'`
19285  { as_dir="$ac_dir"
19286  case $as_dir in #(
19287  -*) as_dir=./$as_dir;;
19288  esac
19289  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19290    as_dirs=
19291    while :; do
19292      case $as_dir in #(
19293      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19294      *) as_qdir=$as_dir;;
19295      esac
19296      as_dirs="'$as_qdir' $as_dirs"
19297      as_dir=`$as_dirname -- "$as_dir" ||
19298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19299	 X"$as_dir" : 'X\(//\)[^/]' \| \
19300	 X"$as_dir" : 'X\(//\)$' \| \
19301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19302echo X"$as_dir" |
19303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19304	    s//\1/
19305	    q
19306	  }
19307	  /^X\(\/\/\)[^/].*/{
19308	    s//\1/
19309	    q
19310	  }
19311	  /^X\(\/\/\)$/{
19312	    s//\1/
19313	    q
19314	  }
19315	  /^X\(\/\).*/{
19316	    s//\1/
19317	    q
19318	  }
19319	  s/.*/./; q'`
19320      test -d "$as_dir" && break
19321    done
19322    test -z "$as_dirs" || eval "mkdir $as_dirs"
19323  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19324echo "$as_me: error: cannot create directory $as_dir" >&2;}
19325   { (exit 1); exit 1; }; }; }
19326  ac_builddir=.
19327
19328case "$ac_dir" in
19329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19330*)
19331  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19332  # A ".." for each directory in $ac_dir_suffix.
19333  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19334  case $ac_top_builddir_sub in
19335  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19336  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19337  esac ;;
19338esac
19339ac_abs_top_builddir=$ac_pwd
19340ac_abs_builddir=$ac_pwd$ac_dir_suffix
19341# for backward compatibility:
19342ac_top_builddir=$ac_top_build_prefix
19343
19344case $srcdir in
19345  .)  # We are building in place.
19346    ac_srcdir=.
19347    ac_top_srcdir=$ac_top_builddir_sub
19348    ac_abs_top_srcdir=$ac_pwd ;;
19349  [\\/]* | ?:[\\/]* )  # Absolute name.
19350    ac_srcdir=$srcdir$ac_dir_suffix;
19351    ac_top_srcdir=$srcdir
19352    ac_abs_top_srcdir=$srcdir ;;
19353  *) # Relative name.
19354    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19355    ac_top_srcdir=$ac_top_build_prefix$srcdir
19356    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19357esac
19358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19359
19360
19361  case $ac_mode in
19362  :F)
19363  #
19364  # CONFIG_FILE
19365  #
19366
19367  case $INSTALL in
19368  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19369  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19370  esac
19371_ACEOF
19372
19373cat >>$CONFIG_STATUS <<\_ACEOF
19374# If the template does not know about datarootdir, expand it.
19375# FIXME: This hack should be removed a few years after 2.60.
19376ac_datarootdir_hack=; ac_datarootdir_seen=
19377
19378case `sed -n '/datarootdir/ {
19379  p
19380  q
19381}
19382/@datadir@/p
19383/@docdir@/p
19384/@infodir@/p
19385/@localedir@/p
19386/@mandir@/p
19387' $ac_file_inputs` in
19388*datarootdir*) ac_datarootdir_seen=yes;;
19389*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19390  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19391echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19392_ACEOF
19393cat >>$CONFIG_STATUS <<_ACEOF
19394  ac_datarootdir_hack='
19395  s&@datadir@&$datadir&g
19396  s&@docdir@&$docdir&g
19397  s&@infodir@&$infodir&g
19398  s&@localedir@&$localedir&g
19399  s&@mandir@&$mandir&g
19400    s&\\\${datarootdir}&$datarootdir&g' ;;
19401esac
19402_ACEOF
19403
19404# Neutralize VPATH when `$srcdir' = `.'.
19405# Shell code in configure.ac might set extrasub.
19406# FIXME: do we really want to maintain this feature?
19407cat >>$CONFIG_STATUS <<_ACEOF
19408  sed "$ac_vpsub
19409$extrasub
19410_ACEOF
19411cat >>$CONFIG_STATUS <<\_ACEOF
19412:t
19413/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19414s&@configure_input@&$configure_input&;t t
19415s&@top_builddir@&$ac_top_builddir_sub&;t t
19416s&@srcdir@&$ac_srcdir&;t t
19417s&@abs_srcdir@&$ac_abs_srcdir&;t t
19418s&@top_srcdir@&$ac_top_srcdir&;t t
19419s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19420s&@builddir@&$ac_builddir&;t t
19421s&@abs_builddir@&$ac_abs_builddir&;t t
19422s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19423s&@INSTALL@&$ac_INSTALL&;t t
19424$ac_datarootdir_hack
19425" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
19426
19427test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19428  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19429  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19430  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19431which seems to be undefined.  Please make sure it is defined." >&5
19432echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19433which seems to be undefined.  Please make sure it is defined." >&2;}
19434
19435  rm -f "$tmp/stdin"
19436  case $ac_file in
19437  -) cat "$tmp/out"; rm -f "$tmp/out";;
19438  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19439  esac
19440 ;;
19441  :H)
19442  #
19443  # CONFIG_HEADER
19444  #
19445_ACEOF
19446
19447# Transform confdefs.h into a sed script `conftest.defines', that
19448# substitutes the proper values into config.h.in to produce config.h.
19449rm -f conftest.defines conftest.tail
19450# First, append a space to every undef/define line, to ease matching.
19451echo 's/$/ /' >conftest.defines
19452# Then, protect against being on the right side of a sed subst, or in
19453# an unquoted here document, in config.status.  If some macros were
19454# called several times there might be several #defines for the same
19455# symbol, which is useless.  But do not sort them, since the last
19456# AC_DEFINE must be honored.
19457ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19458# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19459# NAME is the cpp macro being defined, VALUE is the value it is being given.
19460# PARAMS is the parameter list in the macro definition--in most cases, it's
19461# just an empty string.
19462ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
19463ac_dB='\\)[	 (].*,\\1define\\2'
19464ac_dC=' '
19465ac_dD=' ,'
19466
19467uniq confdefs.h |
19468  sed -n '
19469	t rset
19470	:rset
19471	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
19472	t ok
19473	d
19474	:ok
19475	s/[\\&,]/\\&/g
19476	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19477	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19478  ' >>conftest.defines
19479
19480# Remove the space that was appended to ease matching.
19481# Then replace #undef with comments.  This is necessary, for
19482# example, in the case of _POSIX_SOURCE, which is predefined and required
19483# on some systems where configure will not decide to define it.
19484# (The regexp can be short, since the line contains either #define or #undef.)
19485echo 's/ $//
19486s,^[	 #]*u.*,/* & */,' >>conftest.defines
19487
19488# Break up conftest.defines:
19489ac_max_sed_lines=50
19490
19491# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19492# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19493# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19494# et cetera.
19495ac_in='$ac_file_inputs'
19496ac_out='"$tmp/out1"'
19497ac_nxt='"$tmp/out2"'
19498
19499while :
19500do
19501  # Write a here document:
19502    cat >>$CONFIG_STATUS <<_ACEOF
19503    # First, check the format of the line:
19504    cat >"\$tmp/defines.sed" <<\\CEOF
19505/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
19506/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
19507b
19508:def
19509_ACEOF
19510  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19511  echo 'CEOF
19512    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19513  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19514  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19515  grep . conftest.tail >/dev/null || break
19516  rm -f conftest.defines
19517  mv conftest.tail conftest.defines
19518done
19519rm -f conftest.defines conftest.tail
19520
19521echo "ac_result=$ac_in" >>$CONFIG_STATUS
19522cat >>$CONFIG_STATUS <<\_ACEOF
19523  if test x"$ac_file" != x-; then
19524    echo "/* $configure_input  */" >"$tmp/config.h"
19525    cat "$ac_result" >>"$tmp/config.h"
19526    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19527      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19528echo "$as_me: $ac_file is unchanged" >&6;}
19529    else
19530      rm -f $ac_file
19531      mv "$tmp/config.h" $ac_file
19532    fi
19533  else
19534    echo "/* $configure_input  */"
19535    cat "$ac_result"
19536  fi
19537  rm -f "$tmp/out12"
19538# Compute $ac_file's index in $config_headers.
19539_am_stamp_count=1
19540for _am_header in $config_headers :; do
19541  case $_am_header in
19542    $ac_file | $ac_file:* )
19543      break ;;
19544    * )
19545      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19546  esac
19547done
19548echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
19549$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19550	 X$ac_file : 'X\(//\)[^/]' \| \
19551	 X$ac_file : 'X\(//\)$' \| \
19552	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
19553echo X$ac_file |
19554    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19555	    s//\1/
19556	    q
19557	  }
19558	  /^X\(\/\/\)[^/].*/{
19559	    s//\1/
19560	    q
19561	  }
19562	  /^X\(\/\/\)$/{
19563	    s//\1/
19564	    q
19565	  }
19566	  /^X\(\/\).*/{
19567	    s//\1/
19568	    q
19569	  }
19570	  s/.*/./; q'`/stamp-h$_am_stamp_count
19571 ;;
19572
19573  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19574echo "$as_me: executing $ac_file commands" >&6;}
19575 ;;
19576  esac
19577
19578
19579  case $ac_file$ac_mode in
19580    "po-directories":C)
19581    for ac_file in $CONFIG_FILES; do
19582      # Support "outfile[:infile[:infile...]]"
19583      case "$ac_file" in
19584        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19585      esac
19586      # PO directories have a Makefile.in generated from Makefile.in.in.
19587      case "$ac_file" in */Makefile.in)
19588        # Adjust a relative srcdir.
19589        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19590        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19591        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19592        # In autoconf-2.13 it is called $ac_given_srcdir.
19593        # In autoconf-2.50 it is called $srcdir.
19594        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19595        case "$ac_given_srcdir" in
19596          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19597          /*) top_srcdir="$ac_given_srcdir" ;;
19598          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19599        esac
19600        # Treat a directory as a PO directory if and only if it has a
19601        # POTFILES.in file. This allows packages to have multiple PO
19602        # directories under different names or in different locations.
19603        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19604          rm -f "$ac_dir/POTFILES"
19605          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19606          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19607          POMAKEFILEDEPS="POTFILES.in"
19608          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19609          # on $ac_dir but don't depend on user-specified configuration
19610          # parameters.
19611          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19612            # The LINGUAS file contains the set of available languages.
19613            if test -n "$OBSOLETE_ALL_LINGUAS"; then
19614              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19615            fi
19616            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19617            # Hide the ALL_LINGUAS assigment from automake < 1.5.
19618            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19619            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19620          else
19621            # The set of available languages was given in configure.in.
19622            # Hide the ALL_LINGUAS assigment from automake < 1.5.
19623            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19624          fi
19625          # Compute POFILES
19626          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19627          # Compute UPDATEPOFILES
19628          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19629          # Compute DUMMYPOFILES
19630          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19631          # Compute GMOFILES
19632          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19633          case "$ac_given_srcdir" in
19634            .) srcdirpre= ;;
19635            *) srcdirpre='$(srcdir)/' ;;
19636          esac
19637          POFILES=
19638          UPDATEPOFILES=
19639          DUMMYPOFILES=
19640          GMOFILES=
19641          for lang in $ALL_LINGUAS; do
19642            POFILES="$POFILES $srcdirpre$lang.po"
19643            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19644            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19645            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19646          done
19647          # CATALOGS depends on both $ac_dir and the user's LINGUAS
19648          # environment variable.
19649          INST_LINGUAS=
19650          if test -n "$ALL_LINGUAS"; then
19651            for presentlang in $ALL_LINGUAS; do
19652              useit=no
19653              if test "%UNSET%" != "$LINGUAS"; then
19654                desiredlanguages="$LINGUAS"
19655              else
19656                desiredlanguages="$ALL_LINGUAS"
19657              fi
19658              for desiredlang in $desiredlanguages; do
19659                # Use the presentlang catalog if desiredlang is
19660                #   a. equal to presentlang, or
19661                #   b. a variant of presentlang (because in this case,
19662                #      presentlang can be used as a fallback for messages
19663                #      which are not translated in the desiredlang catalog).
19664                case "$desiredlang" in
19665                  "$presentlang"*) useit=yes;;
19666                esac
19667              done
19668              if test $useit = yes; then
19669                INST_LINGUAS="$INST_LINGUAS $presentlang"
19670              fi
19671            done
19672          fi
19673          CATALOGS=
19674          if test -n "$INST_LINGUAS"; then
19675            for lang in $INST_LINGUAS; do
19676              CATALOGS="$CATALOGS $lang.gmo"
19677            done
19678          fi
19679          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19680          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"
19681          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19682            if test -f "$f"; then
19683              case "$f" in
19684                *.orig | *.bak | *~) ;;
19685                *) cat "$f" >> "$ac_dir/Makefile" ;;
19686              esac
19687            fi
19688          done
19689        fi
19690        ;;
19691      esac
19692    done ;;
19693    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19694  # Strip MF so we end up with the name of the file.
19695  mf=`echo "$mf" | sed -e 's/:.*$//'`
19696  # Check whether this is an Automake generated Makefile or not.
19697  # We used to match only the files named `Makefile.in', but
19698  # some people rename them; so instead we look at the file content.
19699  # Grep'ing the first line is not enough: some people post-process
19700  # each Makefile.in and add a new line on top of each file to say so.
19701  # So let's grep whole file.
19702  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19703    dirpart=`$as_dirname -- "$mf" ||
19704$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19705	 X"$mf" : 'X\(//\)[^/]' \| \
19706	 X"$mf" : 'X\(//\)$' \| \
19707	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19708echo X"$mf" |
19709    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19710	    s//\1/
19711	    q
19712	  }
19713	  /^X\(\/\/\)[^/].*/{
19714	    s//\1/
19715	    q
19716	  }
19717	  /^X\(\/\/\)$/{
19718	    s//\1/
19719	    q
19720	  }
19721	  /^X\(\/\).*/{
19722	    s//\1/
19723	    q
19724	  }
19725	  s/.*/./; q'`
19726  else
19727    continue
19728  fi
19729  # Extract the definition of DEPDIR, am__include, and am__quote
19730  # from the Makefile without running `make'.
19731  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19732  test -z "$DEPDIR" && continue
19733  am__include=`sed -n 's/^am__include = //p' < "$mf"`
19734  test -z "am__include" && continue
19735  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19736  # When using ansi2knr, U may be empty or an underscore; expand it
19737  U=`sed -n 's/^U = //p' < "$mf"`
19738  # Find all dependency output files, they are included files with
19739  # $(DEPDIR) in their names.  We invoke sed twice because it is the
19740  # simplest approach to changing $(DEPDIR) to its actual value in the
19741  # expansion.
19742  for file in `sed -n "
19743    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19744       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19745    # Make sure the directory exists.
19746    test -f "$dirpart/$file" && continue
19747    fdir=`$as_dirname -- "$file" ||
19748$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19749	 X"$file" : 'X\(//\)[^/]' \| \
19750	 X"$file" : 'X\(//\)$' \| \
19751	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19752echo X"$file" |
19753    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19754	    s//\1/
19755	    q
19756	  }
19757	  /^X\(\/\/\)[^/].*/{
19758	    s//\1/
19759	    q
19760	  }
19761	  /^X\(\/\/\)$/{
19762	    s//\1/
19763	    q
19764	  }
19765	  /^X\(\/\).*/{
19766	    s//\1/
19767	    q
19768	  }
19769	  s/.*/./; q'`
19770    { as_dir=$dirpart/$fdir
19771  case $as_dir in #(
19772  -*) as_dir=./$as_dir;;
19773  esac
19774  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19775    as_dirs=
19776    while :; do
19777      case $as_dir in #(
19778      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19779      *) as_qdir=$as_dir;;
19780      esac
19781      as_dirs="'$as_qdir' $as_dirs"
19782      as_dir=`$as_dirname -- "$as_dir" ||
19783$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19784	 X"$as_dir" : 'X\(//\)[^/]' \| \
19785	 X"$as_dir" : 'X\(//\)$' \| \
19786	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19787echo X"$as_dir" |
19788    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19789	    s//\1/
19790	    q
19791	  }
19792	  /^X\(\/\/\)[^/].*/{
19793	    s//\1/
19794	    q
19795	  }
19796	  /^X\(\/\/\)$/{
19797	    s//\1/
19798	    q
19799	  }
19800	  /^X\(\/\).*/{
19801	    s//\1/
19802	    q
19803	  }
19804	  s/.*/./; q'`
19805      test -d "$as_dir" && break
19806    done
19807    test -z "$as_dirs" || eval "mkdir $as_dirs"
19808  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19809echo "$as_me: error: cannot create directory $as_dir" >&2;}
19810   { (exit 1); exit 1; }; }; }
19811    # echo "creating $dirpart/$file"
19812    echo '# dummy' > "$dirpart/$file"
19813  done
19814done
19815 ;;
19816    "translations":C) rm -rf translations
19817case $srcdir in
19818/*) topdir=$srcdir ;;
19819*)  topdir=`pwd`/$srcdir ;;
19820esac
19821domain="scourge"
19822# Symlinks that allow message catalogs to be used from build tree
19823if test -w $srcdir; then
19824  pushd po
19825  make update-po
19826  popd
19827  for lang in `cat $srcdir/po/LINGUAS`
19828  do
19829    mkdir -p $srcdir/../scourge_data/translations/$lang/LC_MESSAGES
19830    cp -f $topdir/po/$lang.gmo $srcdir/../scourge_data/translations/$lang/LC_MESSAGES/$domain.mo
19831  done
19832fi
19833 ;;
19834
19835  esac
19836done # for ac_tag
19837
19838
19839{ (exit 0); exit 0; }
19840_ACEOF
19841chmod +x $CONFIG_STATUS
19842ac_clean_files=$ac_clean_files_save
19843
19844
19845# configure is writing to config.log, and then calls config.status.
19846# config.status does its own redirection, appending to config.log.
19847# Unfortunately, on DOS this fails, as config.log is still kept open
19848# by configure, so config.status won't be able to write to it; its
19849# output is simply discarded.  So we exec the FD to /dev/null,
19850# effectively closing config.log, so it can be properly (re)opened and
19851# appended to by config.status.  When coming back to configure, we
19852# need to make the FD available again.
19853if test "$no_create" != yes; then
19854  ac_cs_success=:
19855  ac_config_status_args=
19856  test "$silent" = yes &&
19857    ac_config_status_args="$ac_config_status_args --quiet"
19858  exec 5>/dev/null
19859  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19860  exec 5>>config.log
19861  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19862  # would make configure fail if this is the last instruction.
19863  $ac_cs_success || { (exit 1); exit 1; }
19864fi
19865
19866fi
19867
19868