1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59d.
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 Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20  setopt NO_GLOB_SUBST
21else
22  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38  echo "#! /bin/sh" >conf$$.sh
39  echo  "exit 0"   >>conf$$.sh
40  chmod +x conf$$.sh
41  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42    PATH_SEPARATOR=';'
43  else
44    PATH_SEPARATOR=:
45  fi
46  rm -f conf$$.sh
47fi
48
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51  as_unset=unset
52else
53  as_unset=false
54fi
55
56
57# IFS
58# We need space, tab and new line, in precisely that order.  Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" ""	$as_nl"
65
66# Find who we are.  Look in the path if we contain no directory separator.
67case $0 in
68  *[\\/]* ) as_myself=$0 ;;
69  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72  IFS=$as_save_IFS
73  test -z "$as_dir" && as_dir=.
74  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78     ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83  as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87  { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102  LC_TELEPHONE LC_TIME
103do
104  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105    eval $as_var=C; export $as_var
106  else
107    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108  fi
109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113   test "X`expr 00001 : '.*\(...\)'`" = X001; then
114  as_expr=expr
115else
116  as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120  as_basename=basename
121else
122  as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129	 X"$0" : 'X\(//\)$' \| \
130	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132    sed '/^.*\/\([^/][^/]*\)\/*$/{
133	    s//\1/
134	    q
135	  }
136	  /^X\/\(\/\/\)$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\).*/{
141	    s//\1/
142	    q
143	  }
144	  s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151  if (eval ":") 2>/dev/null; then
152  as_have_required=yes
153else
154  as_have_required=no
155fi
156
157  if test $as_have_required = yes && 	 (eval ":
158(as_func_return () {
159  (exit \$1)
160}
161as_func_success () {
162  as_func_return 0
163}
164as_func_failure () {
165  as_func_return 1
166}
167as_func_ret_success () {
168  return 0
169}
170as_func_ret_failure () {
171  return 1
172}
173
174exitcode=0
175if as_func_success; then
176  :
177else
178  exitcode=1
179  echo as_func_success failed.
180fi
181
182if as_func_failure; then
183  exitcode=1
184  echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188  :
189else
190  exitcode=1
191  echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195  exitcode=1
196  echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200  :
201else
202  exitcode=1
203  echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209  as_lineno_1=\$LINENO
210  as_lineno_2=\$LINENO
211  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214  :
215else
216  as_candidate_shells=
217    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  case $as_dir in
223	 /*)
224	   for as_base in sh bash ksh sh5; do
225	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226	   done;;
227       esac
228done
229IFS=$as_save_IFS
230
231
232      for as_shell in $as_candidate_shells $SHELL; do
233	 # Try only shells which exist, to save several forks.
234	 if test -f $as_shell &&
235		{ ($as_shell) 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238  emulate sh
239  NULLCMD=:
240  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241  # is contrary to our usage.  Disable this feature.
242  alias -g '${1+"$@"}'='"$@"'
243  setopt NO_GLOB_SUBST
244else
245  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253  CONFIG_SHELL=$as_shell
254	       as_have_required=yes
255	       if { $as_shell 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258  emulate sh
259  NULLCMD=:
260  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261  # is contrary to our usage.  Disable this feature.
262  alias -g '${1+"$@"}'='"$@"'
263  setopt NO_GLOB_SUBST
264else
265  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272  (exit $1)
273}
274as_func_success () {
275  as_func_return 0
276}
277as_func_failure () {
278  as_func_return 1
279}
280as_func_ret_success () {
281  return 0
282}
283as_func_ret_failure () {
284  return 1
285}
286
287exitcode=0
288if as_func_success; then
289  :
290else
291  exitcode=1
292  echo as_func_success failed.
293fi
294
295if as_func_failure; then
296  exitcode=1
297  echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301  :
302else
303  exitcode=1
304  echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308  exitcode=1
309  echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313  :
314else
315  exitcode=1
316  echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
322  as_lineno_1=$LINENO
323  as_lineno_2=$LINENO
324  test "x$as_lineno_1" != "x$as_lineno_2" &&
325  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329  break
330fi
331
332fi
333
334      done
335
336      if test "x$CONFIG_SHELL" != x; then
337  for as_var in BASH_ENV ENV
338        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339        done
340        export CONFIG_SHELL
341        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345    if test $as_have_required = no; then
346  echo This script requires a shell more modern than all the
347      echo shells that I found on your system.  Please install a
348      echo modern shell, or manually run the script under such a
349      echo shell if you do have one.
350      { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361  (exit \$1)
362}
363as_func_success () {
364  as_func_return 0
365}
366as_func_failure () {
367  as_func_return 1
368}
369as_func_ret_success () {
370  return 0
371}
372as_func_ret_failure () {
373  return 1
374}
375
376exitcode=0
377if as_func_success; then
378  :
379else
380  exitcode=1
381  echo as_func_success failed.
382fi
383
384if as_func_failure; then
385  exitcode=1
386  echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390  :
391else
392  exitcode=1
393  echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397  exitcode=1
398  echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402  :
403else
404  exitcode=1
405  echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409  echo No shell found that supports shell functions.
410  echo Please tell autoconf@gnu.org about your system,
411  echo including any error possibly output before this
412  echo message
413}
414
415
416
417  as_lineno_1=$LINENO
418  as_lineno_2=$LINENO
419  test "x$as_lineno_1" != "x$as_lineno_2" &&
420  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423  # uniformly replaced by the line number.  The first 'sed' inserts a
424  # line-number line after each line using $LINENO; the second 'sed'
425  # does the real work.  The second script uses 'N' to pair each
426  # line-number line with the line containing $LINENO, and appends
427  # trailing '-' during substitution so that $LINENO is not a special
428  # case at line end.
429  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430  # scripts with optimization help from Paolo Bonzini.  Blame Lee
431  # E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449   { (exit 1); exit 1; }; }
450
451  # Don't try to exec as it changes $[0], causing all sort of problems
452  # (the dirname of $[0] is not the place where we might find the
453  # original and so on.  Autoconf is especially sensitive to this).
454  . "./$as_me.lineno"
455  # Exit status is that of the last command.
456  exit
457}
458
459
460if (dirname -- /) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469  case `echo 'x\c'` in
470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
471  *)   ECHO_C='\c';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
479  as_expr=expr
480else
481  as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir
490fi
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
493  as_ln_s='ln -s'
494  # ... but there are two gotchas:
495  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497  # In both cases, we have to default to `cp -p'.
498  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499    as_ln_s='cp -p'
500elif ln conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s=ln
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p=:
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523  as_executable_p="test -x"
524else
525  as_executable_p=:
526fi
527rm -f conf$$.file
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555SHELL=${CONFIG_SHELL-/bin/sh}
556
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563
564ac_unique_file="action.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#if HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#if HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#if STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# if HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#if HAVE_STRING_H
583# if !STDC_HEADERS && HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#if HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#if HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#if HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#if HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='SHELL
602PATH_SEPARATOR
603PACKAGE_NAME
604PACKAGE_TARNAME
605PACKAGE_VERSION
606PACKAGE_STRING
607PACKAGE_BUGREPORT
608exec_prefix
609prefix
610program_transform_name
611bindir
612sbindir
613libexecdir
614datarootdir
615datadir
616sysconfdir
617sharedstatedir
618localstatedir
619includedir
620oldincludedir
621docdir
622infodir
623htmldir
624dvidir
625pdfdir
626psdir
627libdir
628localedir
629mandir
630DEFS
631ECHO_C
632ECHO_N
633ECHO_T
634LIBS
635build_alias
636host_alias
637target_alias
638build
639build_cpu
640build_vendor
641build_os
642host
643host_cpu
644host_vendor
645host_os
646target
647target_cpu
648target_vendor
649target_os
650CC
651CFLAGS
652LDFLAGS
653CPPFLAGS
654ac_ct_CC
655EXEEXT
656OBJEXT
657INSTALL_PROGRAM
658INSTALL_SCRIPT
659INSTALL_DATA
660CYGPATH_W
661PACKAGE
662VERSION
663ACLOCAL
664AUTOCONF
665AUTOMAKE
666AUTOHEADER
667MAKEINFO
668install_sh
669STRIP
670INSTALL_STRIP_PROGRAM
671mkdir_p
672AWK
673SET_MAKE
674am__leading_dot
675AMTAR
676am__tar
677am__untar
678DEPDIR
679am__include
680am__quote
681AMDEP_TRUE
682AMDEP_FALSE
683AMDEPBACKSLASH
684CCDEPMODE
685am__fastdepCC_TRUE
686am__fastdepCC_FALSE
687MKINSTALLDIRS
688USE_NLS
689MSGFMT
690GMSGFMT
691XGETTEXT
692MSGMERGE
693INTL_MACOSX_LIBS
694LIBICONV
695LTLIBICONV
696INTLLIBS
697LIBINTL
698LTLIBINTL
699POSUB
700XMKMF
701CPP
702X_CFLAGS
703X_PRE_LIBS
704X_LIBS
705X_EXTRA_LIBS
706GREP
707EGREP
708SDL_TRUE
709SDL_FALSE
710SDL_CONFIG
711SDL_CFLAGS
712SDL_LIBS
713game_datadir
714XBSNDSRV_TRUE
715XBSNDSRV_FALSE
716LIBOBJS
717LTLIBOBJS'
718ac_subst_files=''
719      ac_precious_vars='build_alias
720host_alias
721target_alias
722CC
723CFLAGS
724LDFLAGS
725CPPFLAGS
726XMKMF
727CPP'
728
729
730# Initialize some variables set by options.
731ac_init_help=
732ac_init_version=false
733# The variables have the same names as the options, with
734# dashes changed to underlines.
735cache_file=/dev/null
736exec_prefix=NONE
737no_create=
738no_recursion=
739prefix=NONE
740program_prefix=NONE
741program_suffix=NONE
742program_transform_name=s,x,x,
743silent=
744site=
745srcdir=
746verbose=
747x_includes=NONE
748x_libraries=NONE
749
750# Installation directory options.
751# These are left unexpanded so users can "make install exec_prefix=/foo"
752# and all the variables that are supposed to be based on exec_prefix
753# by default will actually change.
754# Use braces instead of parens because sh, perl, etc. also accept them.
755# (The list follows the same order as the GNU Coding Standards.)
756bindir='${exec_prefix}/bin'
757sbindir='${exec_prefix}/sbin'
758libexecdir='${exec_prefix}/libexec'
759datarootdir='${prefix}/share'
760datadir='${datarootdir}'
761sysconfdir='${prefix}/etc'
762sharedstatedir='${prefix}/com'
763localstatedir='${prefix}/var'
764includedir='${prefix}/include'
765oldincludedir='/usr/include'
766docdir='${datarootdir}/doc/${PACKAGE}'
767infodir='${datarootdir}/info'
768htmldir='${docdir}'
769dvidir='${docdir}'
770pdfdir='${docdir}'
771psdir='${docdir}'
772libdir='${exec_prefix}/lib'
773localedir='${datarootdir}/locale'
774mandir='${datarootdir}/man'
775
776ac_prev=
777ac_dashdash=
778for ac_option
779do
780  # If the previous option needs an argument, assign it.
781  if test -n "$ac_prev"; then
782    eval $ac_prev=\$ac_option
783    ac_prev=
784    continue
785  fi
786
787  case $ac_option in
788  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789  *)	ac_optarg=yes ;;
790  esac
791
792  # Accept the important Cygnus configure options, so we can diagnose typos.
793
794  case $ac_dashdash$ac_option in
795  --)
796    ac_dashdash=yes ;;
797
798  -bindir | --bindir | --bindi | --bind | --bin | --bi)
799    ac_prev=bindir ;;
800  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
801    bindir=$ac_optarg ;;
802
803  -build | --build | --buil | --bui | --bu)
804    ac_prev=build_alias ;;
805  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
806    build_alias=$ac_optarg ;;
807
808  -cache-file | --cache-file | --cache-fil | --cache-fi \
809  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
810    ac_prev=cache_file ;;
811  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
812  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
813    cache_file=$ac_optarg ;;
814
815  --config-cache | -C)
816    cache_file=config.cache ;;
817
818  -datadir | --datadir | --datadi | --datad)
819    ac_prev=datadir ;;
820  -datadir=* | --datadir=* | --datadi=* | --datad=*)
821    datadir=$ac_optarg ;;
822
823  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
824  | --dataroo | --dataro | --datar)
825    ac_prev=datarootdir ;;
826  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
827  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
828    datarootdir=$ac_optarg ;;
829
830  -disable-* | --disable-*)
831    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
832    # Reject names that are not valid shell variable names.
833    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
834      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
835   { (exit 1); exit 1; }; }
836    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
837    eval enable_$ac_feature=no ;;
838
839  -docdir | --docdir | --docdi | --doc | --do)
840    ac_prev=docdir ;;
841  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842    docdir=$ac_optarg ;;
843
844  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845    ac_prev=dvidir ;;
846  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847    dvidir=$ac_optarg ;;
848
849  -enable-* | --enable-*)
850    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851    # Reject names that are not valid shell variable names.
852    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
853      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854   { (exit 1); exit 1; }; }
855    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
856    eval enable_$ac_feature=\$ac_optarg ;;
857
858  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860  | --exec | --exe | --ex)
861    ac_prev=exec_prefix ;;
862  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864  | --exec=* | --exe=* | --ex=*)
865    exec_prefix=$ac_optarg ;;
866
867  -gas | --gas | --ga | --g)
868    # Obsolete; use --with-gas.
869    with_gas=yes ;;
870
871  -help | --help | --hel | --he | -h)
872    ac_init_help=long ;;
873  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874    ac_init_help=recursive ;;
875  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876    ac_init_help=short ;;
877
878  -host | --host | --hos | --ho)
879    ac_prev=host_alias ;;
880  -host=* | --host=* | --hos=* | --ho=*)
881    host_alias=$ac_optarg ;;
882
883  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884    ac_prev=htmldir ;;
885  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886  | --ht=*)
887    htmldir=$ac_optarg ;;
888
889  -includedir | --includedir | --includedi | --included | --include \
890  | --includ | --inclu | --incl | --inc)
891    ac_prev=includedir ;;
892  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893  | --includ=* | --inclu=* | --incl=* | --inc=*)
894    includedir=$ac_optarg ;;
895
896  -infodir | --infodir | --infodi | --infod | --info | --inf)
897    ac_prev=infodir ;;
898  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899    infodir=$ac_optarg ;;
900
901  -libdir | --libdir | --libdi | --libd)
902    ac_prev=libdir ;;
903  -libdir=* | --libdir=* | --libdi=* | --libd=*)
904    libdir=$ac_optarg ;;
905
906  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907  | --libexe | --libex | --libe)
908    ac_prev=libexecdir ;;
909  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910  | --libexe=* | --libex=* | --libe=*)
911    libexecdir=$ac_optarg ;;
912
913  -localedir | --localedir | --localedi | --localed | --locale)
914    ac_prev=localedir ;;
915  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916    localedir=$ac_optarg ;;
917
918  -localstatedir | --localstatedir | --localstatedi | --localstated \
919  | --localstate | --localstat | --localsta | --localst | --locals)
920    ac_prev=localstatedir ;;
921  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
922  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
923    localstatedir=$ac_optarg ;;
924
925  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926    ac_prev=mandir ;;
927  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928    mandir=$ac_optarg ;;
929
930  -nfp | --nfp | --nf)
931    # Obsolete; use --without-fp.
932    with_fp=no ;;
933
934  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935  | --no-cr | --no-c | -n)
936    no_create=yes ;;
937
938  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940    no_recursion=yes ;;
941
942  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944  | --oldin | --oldi | --old | --ol | --o)
945    ac_prev=oldincludedir ;;
946  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949    oldincludedir=$ac_optarg ;;
950
951  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952    ac_prev=prefix ;;
953  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954    prefix=$ac_optarg ;;
955
956  -program-prefix | --program-prefix | --program-prefi | --program-pref \
957  | --program-pre | --program-pr | --program-p)
958    ac_prev=program_prefix ;;
959  -program-prefix=* | --program-prefix=* | --program-prefi=* \
960  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961    program_prefix=$ac_optarg ;;
962
963  -program-suffix | --program-suffix | --program-suffi | --program-suff \
964  | --program-suf | --program-su | --program-s)
965    ac_prev=program_suffix ;;
966  -program-suffix=* | --program-suffix=* | --program-suffi=* \
967  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968    program_suffix=$ac_optarg ;;
969
970  -program-transform-name | --program-transform-name \
971  | --program-transform-nam | --program-transform-na \
972  | --program-transform-n | --program-transform- \
973  | --program-transform | --program-transfor \
974  | --program-transfo | --program-transf \
975  | --program-trans | --program-tran \
976  | --progr-tra | --program-tr | --program-t)
977    ac_prev=program_transform_name ;;
978  -program-transform-name=* | --program-transform-name=* \
979  | --program-transform-nam=* | --program-transform-na=* \
980  | --program-transform-n=* | --program-transform-=* \
981  | --program-transform=* | --program-transfor=* \
982  | --program-transfo=* | --program-transf=* \
983  | --program-trans=* | --program-tran=* \
984  | --progr-tra=* | --program-tr=* | --program-t=*)
985    program_transform_name=$ac_optarg ;;
986
987  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988    ac_prev=pdfdir ;;
989  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990    pdfdir=$ac_optarg ;;
991
992  -psdir | --psdir | --psdi | --psd | --ps)
993    ac_prev=psdir ;;
994  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995    psdir=$ac_optarg ;;
996
997  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998  | -silent | --silent | --silen | --sile | --sil)
999    silent=yes ;;
1000
1001  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002    ac_prev=sbindir ;;
1003  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004  | --sbi=* | --sb=*)
1005    sbindir=$ac_optarg ;;
1006
1007  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009  | --sharedst | --shareds | --shared | --share | --shar \
1010  | --sha | --sh)
1011    ac_prev=sharedstatedir ;;
1012  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015  | --sha=* | --sh=*)
1016    sharedstatedir=$ac_optarg ;;
1017
1018  -site | --site | --sit)
1019    ac_prev=site ;;
1020  -site=* | --site=* | --sit=*)
1021    site=$ac_optarg ;;
1022
1023  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024    ac_prev=srcdir ;;
1025  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026    srcdir=$ac_optarg ;;
1027
1028  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029  | --syscon | --sysco | --sysc | --sys | --sy)
1030    ac_prev=sysconfdir ;;
1031  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033    sysconfdir=$ac_optarg ;;
1034
1035  -target | --target | --targe | --targ | --tar | --ta | --t)
1036    ac_prev=target_alias ;;
1037  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038    target_alias=$ac_optarg ;;
1039
1040  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041    verbose=yes ;;
1042
1043  -version | --version | --versio | --versi | --vers | -V)
1044    ac_init_version=: ;;
1045
1046  -with-* | --with-*)
1047    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1050      { echo "$as_me: error: invalid package name: $ac_package" >&2
1051   { (exit 1); exit 1; }; }
1052    ac_package=`echo $ac_package| sed 's/-/_/g'`
1053    eval with_$ac_package=\$ac_optarg ;;
1054
1055  -without-* | --without-*)
1056    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1059      { echo "$as_me: error: invalid package name: $ac_package" >&2
1060   { (exit 1); exit 1; }; }
1061    ac_package=`echo $ac_package | sed 's/-/_/g'`
1062    eval with_$ac_package=no ;;
1063
1064  --x)
1065    # Obsolete; use --with-x.
1066    with_x=yes ;;
1067
1068  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1069  | --x-incl | --x-inc | --x-in | --x-i)
1070    ac_prev=x_includes ;;
1071  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1072  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1073    x_includes=$ac_optarg ;;
1074
1075  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1076  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1077    ac_prev=x_libraries ;;
1078  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1079  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1080    x_libraries=$ac_optarg ;;
1081
1082  -*) { echo "$as_me: error: unrecognized option: $ac_option
1083Try \`$0 --help' for more information." >&2
1084   { (exit 1); exit 1; }; }
1085    ;;
1086
1087  *=*)
1088    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1089    # Reject names that are not valid shell variable names.
1090    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1091      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1092   { (exit 1); exit 1; }; }
1093    eval $ac_envvar=\$ac_optarg
1094    export $ac_envvar ;;
1095
1096  *)
1097    # FIXME: should be removed in autoconf 3.0.
1098    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1099    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1101    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1102    ;;
1103
1104  esac
1105done
1106
1107if test -n "$ac_prev"; then
1108  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1109  { echo "$as_me: error: missing argument to $ac_option" >&2
1110   { (exit 1); exit 1; }; }
1111fi
1112
1113# Be sure to have absolute directory names.
1114for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1115		datadir sysconfdir sharedstatedir localstatedir includedir \
1116		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1117		libdir localedir mandir
1118do
1119  eval ac_val=\$$ac_var
1120  case $ac_val in
1121    [\\/$]* | ?:[\\/]* )  continue;;
1122    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123  esac
1124  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1125   { (exit 1); exit 1; }; }
1126done
1127
1128# There might be people who depend on the old broken behavior: `$host'
1129# used to hold the argument of --host etc.
1130# FIXME: To remove some day.
1131build=$build_alias
1132host=$host_alias
1133target=$target_alias
1134
1135# FIXME: To remove some day.
1136if test "x$host_alias" != x; then
1137  if test "x$build_alias" = x; then
1138    cross_compiling=maybe
1139    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1140    If a cross compiler is detected then cross compile mode will be used." >&2
1141  elif test "x$build_alias" != "x$host_alias"; then
1142    cross_compiling=yes
1143  fi
1144fi
1145
1146ac_tool_prefix=
1147test -n "$host_alias" && ac_tool_prefix=$host_alias-
1148
1149test "$silent" = yes && exec 6>/dev/null
1150
1151
1152ac_pwd=`pwd` && test -n "$ac_pwd" &&
1153ac_ls_di=`ls -di .` &&
1154ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1155  { echo "$as_me: error: Working directory cannot be determined" >&2
1156   { (exit 1); exit 1; }; }
1157test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158  { echo "$as_me: error: pwd does not report name of working directory" >&2
1159   { (exit 1); exit 1; }; }
1160
1161
1162# Find the source files, if location was not specified.
1163if test -z "$srcdir"; then
1164  ac_srcdir_defaulted=yes
1165  # Try the directory containing this script, then the parent directory.
1166  ac_confdir=`$as_dirname -- "$0" ||
1167$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1168	 X"$0" : 'X\(//\)[^/]' \| \
1169	 X"$0" : 'X\(//\)$' \| \
1170	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1171echo X"$0" |
1172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173	    s//\1/
1174	    q
1175	  }
1176	  /^X\(\/\/\)[^/].*/{
1177	    s//\1/
1178	    q
1179	  }
1180	  /^X\(\/\/\)$/{
1181	    s//\1/
1182	    q
1183	  }
1184	  /^X\(\/\).*/{
1185	    s//\1/
1186	    q
1187	  }
1188	  s/.*/./; q'`
1189  srcdir=$ac_confdir
1190  if test ! -r "$srcdir/$ac_unique_file"; then
1191    srcdir=..
1192  fi
1193else
1194  ac_srcdir_defaulted=no
1195fi
1196if test ! -r "$srcdir/$ac_unique_file"; then
1197  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1198  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1199   { (exit 1); exit 1; }; }
1200fi
1201ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1202ac_abs_confdir=`(
1203	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1204   { (exit 1); exit 1; }; }
1205	pwd)`
1206# When building in place, set srcdir=.
1207if test "$ac_abs_confdir" = "$ac_pwd"; then
1208  srcdir=.
1209fi
1210# Remove unnecessary trailing slashes from srcdir.
1211# Double slashes in file names in object file debugging info
1212# mess up M-x gdb in Emacs.
1213case $srcdir in
1214*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1215esac
1216for ac_var in $ac_precious_vars; do
1217  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1218  eval ac_env_${ac_var}_value=\$${ac_var}
1219  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1220  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1221done
1222
1223#
1224# Report the --help message.
1225#
1226if test "$ac_init_help" = "long"; then
1227  # Omit some internal or obsolete options to make the list less imposing.
1228  # This message is too long to be a string in the A/UX 3.1 sh.
1229  cat <<_ACEOF
1230\`configure' configures this package to adapt to many kinds of systems.
1231
1232Usage: $0 [OPTION]... [VAR=VALUE]...
1233
1234To assign environment variables (e.g., CC, CFLAGS...), specify them as
1235VAR=VALUE.  See below for descriptions of some of the useful variables.
1236
1237Defaults for the options are specified in brackets.
1238
1239Configuration:
1240  -h, --help              display this help and exit
1241      --help=short        display options specific to this package
1242      --help=recursive    display the short help of all the included packages
1243  -V, --version           display version information and exit
1244  -q, --quiet, --silent   do not print \`checking...' messages
1245      --cache-file=FILE   cache test results in FILE [disabled]
1246  -C, --config-cache      alias for \`--cache-file=config.cache'
1247  -n, --no-create         do not create output files
1248      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1249
1250Installation directories:
1251  --prefix=PREFIX         install architecture-independent files in PREFIX
1252			  [$ac_default_prefix]
1253  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1254			  [PREFIX]
1255
1256By default, \`make install' will install all the files in
1257\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1258an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1259for instance \`--prefix=\$HOME'.
1260
1261For better control, use the options below.
1262
1263Fine tuning of the installation directories:
1264  --bindir=DIR           user executables [EPREFIX/bin]
1265  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1266  --libexecdir=DIR       program executables [EPREFIX/libexec]
1267  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1268  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1269  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1270  --libdir=DIR           object code libraries [EPREFIX/lib]
1271  --includedir=DIR       C header files [PREFIX/include]
1272  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1273  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1274  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1275  --infodir=DIR          info documentation [DATAROOTDIR/info]
1276  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1277  --mandir=DIR           man documentation [DATAROOTDIR/man]
1278  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1279  --htmldir=DIR          html documentation [DOCDIR]
1280  --dvidir=DIR           dvi documentation [DOCDIR]
1281  --pdfdir=DIR           pdf documentation [DOCDIR]
1282  --psdir=DIR            ps documentation [DOCDIR]
1283_ACEOF
1284
1285  cat <<\_ACEOF
1286
1287Program names:
1288  --program-prefix=PREFIX            prepend PREFIX to installed program names
1289  --program-suffix=SUFFIX            append SUFFIX to installed program names
1290  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1291
1292X features:
1293  --x-includes=DIR    X include files are in DIR
1294  --x-libraries=DIR   X library files are in DIR
1295
1296System types:
1297  --build=BUILD     configure for building on BUILD [guessed]
1298  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1299  --target=TARGET   configure for building compilers for TARGET [HOST]
1300_ACEOF
1301fi
1302
1303if test -n "$ac_init_help"; then
1304
1305  cat <<\_ACEOF
1306
1307Optional Features:
1308  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1309  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1310  --disable-dependency-tracking  speeds up one-time build
1311  --enable-dependency-tracking   do not reject slow dependency extractors
1312  --disable-nls           do not use Native Language Support
1313  --disable-rpath         do not hardcode runtime library paths
1314  --enable-sdl, enable compilation with SDL
1315  --disable-sdltest       Do not try to compile and run a test SDL program
1316  --enable-admin, data will be installed (and can be only started from) $prefix/share/games/XBlast-TNT/
1317  --enable-sound, enable compilation of xbsndsrv!
1318  --enable-mini, enable compilation with -DMINI!
1319  --enable-nat, enable compilation with -DDEBUG_NAT!
1320  --enable-SMPF, enable compilation with -DSMPF (for 16 players)!
1321
1322Optional Packages:
1323  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1324  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1325  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1326  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1327  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1328  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1329  --without-libintl-prefix     don't search for libintl in includedir and libdir
1330  --with-x                use the X Window System
1331  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1332  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1333  --with-otherdatadir=OTHERDATADIR            If you dont want that the data go to: $prefix/share/games/XBlast-TNT/
1334
1335Some influential environment variables:
1336  CC          C compiler command
1337  CFLAGS      C compiler flags
1338  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1339              nonstandard directory <lib dir>
1340  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1341              you have headers in a nonstandard directory <include dir>
1342  XMKMF       Path to xmkmf, Makefile generator for X Window System
1343  CPP         C preprocessor
1344
1345Use these variables to override the choices made by `configure' or to help
1346it to find libraries and programs with nonstandard names/locations.
1347
1348_ACEOF
1349ac_status=$?
1350fi
1351
1352if test "$ac_init_help" = "recursive"; then
1353  # If there are subdirs, report their specific --help.
1354  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1355    test -d $ac_dir || continue
1356    ac_builddir=.
1357
1358case "$ac_dir" in
1359.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360*)
1361  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1362  # A ".." for each directory in $ac_dir_suffix.
1363  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1364  case $ac_top_builddir_sub in
1365  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1367  esac ;;
1368esac
1369ac_abs_top_builddir=$ac_pwd
1370ac_abs_builddir=$ac_pwd$ac_dir_suffix
1371# for backward compatibility:
1372ac_top_builddir=$ac_top_build_prefix
1373
1374case $srcdir in
1375  .)  # We are building in place.
1376    ac_srcdir=.
1377    ac_top_srcdir=$ac_top_builddir_sub
1378    ac_abs_top_srcdir=$ac_pwd ;;
1379  [\\/]* | ?:[\\/]* )  # Absolute name.
1380    ac_srcdir=$srcdir$ac_dir_suffix;
1381    ac_top_srcdir=$srcdir
1382    ac_abs_top_srcdir=$srcdir ;;
1383  *) # Relative name.
1384    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1385    ac_top_srcdir=$ac_top_build_prefix$srcdir
1386    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1387esac
1388ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1389
1390    cd "$ac_dir" || { ac_status=$?; continue; }
1391    # Check for guested configure.
1392    if test -f $ac_srcdir/configure.gnu; then
1393      echo &&
1394      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1395    elif test -f $ac_srcdir/configure; then
1396      echo &&
1397      $SHELL $ac_srcdir/configure  --help=recursive
1398    else
1399      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1400    fi || ac_status=$?
1401    cd "$ac_pwd" || { ac_status=$?; break; }
1402  done
1403fi
1404
1405test -n "$ac_init_help" && exit $ac_status
1406if $ac_init_version; then
1407  cat <<\_ACEOF
1408configure
1409generated by GNU Autoconf 2.59d
1410
1411Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14122002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1413This configure script is free software; the Free Software Foundation
1414gives unlimited permission to copy, distribute and modify it.
1415_ACEOF
1416  exit
1417fi
1418cat >config.log <<_ACEOF
1419This file contains any messages produced by compilers while
1420running configure, to aid debugging if configure makes a mistake.
1421
1422It was created by $as_me, which was
1423generated by GNU Autoconf 2.59d.  Invocation command line was
1424
1425  $ $0 $@
1426
1427_ACEOF
1428exec 5>>config.log
1429{
1430cat <<_ASUNAME
1431## --------- ##
1432## Platform. ##
1433## --------- ##
1434
1435hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1436uname -m = `(uname -m) 2>/dev/null || echo unknown`
1437uname -r = `(uname -r) 2>/dev/null || echo unknown`
1438uname -s = `(uname -s) 2>/dev/null || echo unknown`
1439uname -v = `(uname -v) 2>/dev/null || echo unknown`
1440
1441/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1442/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1443
1444/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1445/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1446/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1447/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1448/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1449/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1450/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1451
1452_ASUNAME
1453
1454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455for as_dir in $PATH
1456do
1457  IFS=$as_save_IFS
1458  test -z "$as_dir" && as_dir=.
1459  echo "PATH: $as_dir"
1460done
1461IFS=$as_save_IFS
1462
1463} >&5
1464
1465cat >&5 <<_ACEOF
1466
1467
1468## ----------- ##
1469## Core tests. ##
1470## ----------- ##
1471
1472_ACEOF
1473
1474
1475# Keep a trace of the command line.
1476# Strip out --no-create and --no-recursion so they do not pile up.
1477# Strip out --silent because we don't want to record it for future runs.
1478# Also quote any args containing shell meta-characters.
1479# Make two passes to allow for proper duplicate-argument suppression.
1480ac_configure_args=
1481ac_configure_args0=
1482ac_configure_args1=
1483ac_sep=
1484ac_must_keep_next=false
1485for ac_pass in 1 2
1486do
1487  for ac_arg
1488  do
1489    case $ac_arg in
1490    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1491    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1492    | -silent | --silent | --silen | --sile | --sil)
1493      continue ;;
1494    *\'*)
1495      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1496    esac
1497    case $ac_pass in
1498    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1499    2)
1500      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1501      if test $ac_must_keep_next = true; then
1502	ac_must_keep_next=false # Got value, back to normal.
1503      else
1504	case $ac_arg in
1505	  *=* | --config-cache | -C | -disable-* | --disable-* \
1506	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1507	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1508	  | -with-* | --with-* | -without-* | --without-* | --x)
1509	    case "$ac_configure_args0 " in
1510	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1511	    esac
1512	    ;;
1513	  -* ) ac_must_keep_next=true ;;
1514	esac
1515      fi
1516      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1517      # Get rid of the leading space.
1518      ac_sep=" "
1519      ;;
1520    esac
1521  done
1522done
1523$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1524$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1525
1526# When interrupted or exit'd, cleanup temporary files, and complete
1527# config.log.  We remove comments because anyway the quotes in there
1528# would cause problems or look ugly.
1529# WARNING: Use '\'' to represent an apostrophe within the trap.
1530# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1531trap 'exit_status=$?
1532  # Save into config.log some information that might help in debugging.
1533  {
1534    echo
1535
1536    cat <<\_ASBOX
1537## ---------------- ##
1538## Cache variables. ##
1539## ---------------- ##
1540_ASBOX
1541    echo
1542    # The following way of writing the cache mishandles newlines in values,
1543(
1544  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1545    eval ac_val=\$$ac_var
1546    case $ac_val in #(
1547    *${as_nl}*)
1548      case $ac_var in #(
1549      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1550echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1551      esac
1552      case $ac_var in #(
1553      _ | IFS | as_nl) ;; #(
1554      *) $as_unset $ac_var ;;
1555      esac ;;
1556    esac
1557  done
1558  (set) 2>&1 |
1559    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1560    *${as_nl}ac_space=\ *)
1561      sed -n \
1562	"s/'\''/'\''\\\\'\'''\''/g;
1563	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1564      ;; #(
1565    *)
1566      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1567      ;;
1568    esac |
1569    sort
1570)
1571    echo
1572
1573    cat <<\_ASBOX
1574## ----------------- ##
1575## Output variables. ##
1576## ----------------- ##
1577_ASBOX
1578    echo
1579    for ac_var in $ac_subst_vars
1580    do
1581      eval ac_val=\$$ac_var
1582      echo "$ac_var='\''$ac_val'\''"
1583    done | sort
1584    echo
1585
1586    if test -n "$ac_subst_files"; then
1587      cat <<\_ASBOX
1588## ------------------- ##
1589## File substitutions. ##
1590## ------------------- ##
1591_ASBOX
1592      echo
1593      for ac_var in $ac_subst_files
1594      do
1595	eval ac_val=\$$ac_var
1596	echo "$ac_var='\''$ac_val'\''"
1597      done | sort
1598      echo
1599    fi
1600
1601    if test -s confdefs.h; then
1602      cat <<\_ASBOX
1603## ----------- ##
1604## confdefs.h. ##
1605## ----------- ##
1606_ASBOX
1607      echo
1608      cat confdefs.h
1609      echo
1610    fi
1611    test "$ac_signal" != 0 &&
1612      echo "$as_me: caught signal $ac_signal"
1613    echo "$as_me: exit $exit_status"
1614  } >&5
1615  rm -f core *.core core.conftest.* &&
1616    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1617    exit $exit_status
1618' 0
1619for ac_signal in 1 2 13 15; do
1620  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1621done
1622ac_signal=0
1623
1624# confdefs.h avoids OS command line length limits that DEFS can exceed.
1625rm -f -r conftest* confdefs.h
1626
1627# Predefined preprocessor variables.
1628
1629cat >>confdefs.h <<_ACEOF
1630#define PACKAGE_NAME "$PACKAGE_NAME"
1631_ACEOF
1632
1633
1634cat >>confdefs.h <<_ACEOF
1635#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1636_ACEOF
1637
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_VERSION "$PACKAGE_VERSION"
1641_ACEOF
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define PACKAGE_STRING "$PACKAGE_STRING"
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1651_ACEOF
1652
1653
1654# Let the site file select an alternate cache file if it wants to.
1655# Prefer explicitly selected file to automatically selected ones.
1656if test -n "$CONFIG_SITE"; then
1657  set x "$CONFIG_SITE"
1658elif test "x$prefix" != xNONE; then
1659  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1660else
1661  set x "$ac_default_prefix/share/config.site" \
1662	"$ac_default_prefix/etc/config.site"
1663fi
1664shift
1665for ac_site_file
1666do
1667  if test -r "$ac_site_file"; then
1668    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1669echo "$as_me: loading site script $ac_site_file" >&6;}
1670    sed 's/^/| /' "$ac_site_file" >&5
1671    . "$ac_site_file"
1672  fi
1673done
1674
1675if test -r "$cache_file"; then
1676  # Some versions of bash will fail to source /dev/null (special
1677  # files actually), so we avoid doing that.
1678  if test -f "$cache_file"; then
1679    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1680echo "$as_me: loading cache $cache_file" >&6;}
1681    case $cache_file in
1682      [\\/]* | ?:[\\/]* ) . $cache_file;;
1683      *)                      . ./$cache_file;;
1684    esac
1685  fi
1686else
1687  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1688echo "$as_me: creating cache $cache_file" >&6;}
1689  >$cache_file
1690fi
1691
1692# Check that the precious variables saved in the cache have kept the same
1693# value.
1694ac_cache_corrupted=false
1695for ac_var in $ac_precious_vars; do
1696  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1697  eval ac_new_set=\$ac_env_${ac_var}_set
1698  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1699  eval ac_new_val=\$ac_env_${ac_var}_value
1700  case $ac_old_set,$ac_new_set in
1701    set,)
1702      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1703echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1704      ac_cache_corrupted=: ;;
1705    ,set)
1706      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1707echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1708      ac_cache_corrupted=: ;;
1709    ,);;
1710    *)
1711      if test "x$ac_old_val" != "x$ac_new_val"; then
1712	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1713echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1714	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1715echo "$as_me:   former value:  $ac_old_val" >&2;}
1716	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1717echo "$as_me:   current value: $ac_new_val" >&2;}
1718	ac_cache_corrupted=:
1719      fi;;
1720  esac
1721  # Pass precious variables to config.status.
1722  if test "$ac_new_set" = set; then
1723    case $ac_new_val in
1724    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1725    *) ac_arg=$ac_var=$ac_new_val ;;
1726    esac
1727    case " $ac_configure_args " in
1728      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1729      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1730    esac
1731  fi
1732done
1733if $ac_cache_corrupted; then
1734  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1735echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1736  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1737echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1738   { (exit 1); exit 1; }; }
1739fi
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757ac_ext=c
1758ac_cpp='$CPP $CPPFLAGS'
1759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1761ac_compiler_gnu=$ac_cv_c_compiler_gnu
1762
1763
1764
1765
1766ac_aux_dir=
1767for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1768  if test -f $ac_dir/install-sh; then
1769    ac_aux_dir=$ac_dir
1770    ac_install_sh="$ac_aux_dir/install-sh -c"
1771    break
1772  elif test -f $ac_dir/install.sh; then
1773    ac_aux_dir=$ac_dir
1774    ac_install_sh="$ac_aux_dir/install.sh -c"
1775    break
1776  elif test -f $ac_dir/shtool; then
1777    ac_aux_dir=$ac_dir
1778    ac_install_sh="$ac_aux_dir/shtool install -c"
1779    break
1780  fi
1781done
1782if test -z "$ac_aux_dir"; then
1783  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1784echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1785   { (exit 1); exit 1; }; }
1786fi
1787ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1788ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1789ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1790
1791# Make sure we can run config.sub.
1792$ac_config_sub sun4 >/dev/null 2>&1 ||
1793  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1794echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1795   { (exit 1); exit 1; }; }
1796
1797{ echo "$as_me:$LINENO: checking build system type" >&5
1798echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1799if test "${ac_cv_build+set}" = set; then
1800  echo $ECHO_N "(cached) $ECHO_C" >&6
1801else
1802  ac_build_alias=$build_alias
1803test "x$ac_build_alias" = x &&
1804  ac_build_alias=`$ac_config_guess`
1805test "x$ac_build_alias" = x &&
1806  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1807echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1808   { (exit 1); exit 1; }; }
1809ac_cv_build=`$ac_config_sub $ac_build_alias` ||
1810  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
1811echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
1812   { (exit 1); exit 1; }; }
1813
1814fi
1815{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1816echo "${ECHO_T}$ac_cv_build" >&6; }
1817case $ac_cv_build in
1818*-*-*) ;;
1819*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1820echo "$as_me: error: invalid value of canonical build" >&2;}
1821   { (exit 1); exit 1; }; };;
1822esac
1823build=$ac_cv_build
1824ac_save_IFS=$IFS; IFS='-'
1825set x $ac_cv_build
1826shift
1827build_cpu=$1
1828build_vendor=$2
1829shift; shift
1830# Remember, the first character of IFS is used to create $*,
1831# except with old shells:
1832build_os=$*
1833IFS=$ac_save_IFS
1834case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1835
1836
1837{ echo "$as_me:$LINENO: checking host system type" >&5
1838echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1839if test "${ac_cv_host+set}" = set; then
1840  echo $ECHO_N "(cached) $ECHO_C" >&6
1841else
1842  if test "x$host_alias" = x; then
1843  ac_cv_host=$ac_cv_build
1844else
1845  ac_cv_host=`$ac_config_sub $host_alias` ||
1846    { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
1847echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
1848   { (exit 1); exit 1; }; }
1849fi
1850
1851fi
1852{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1853echo "${ECHO_T}$ac_cv_host" >&6; }
1854case $ac_cv_host in
1855*-*-*) ;;
1856*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1857echo "$as_me: error: invalid value of canonical host" >&2;}
1858   { (exit 1); exit 1; }; };;
1859esac
1860host=$ac_cv_host
1861ac_save_IFS=$IFS; IFS='-'
1862set x $ac_cv_host
1863shift
1864host_cpu=$1
1865host_vendor=$2
1866shift; shift
1867# Remember, the first character of IFS is used to create $*,
1868# except with old shells:
1869host_os=$*
1870IFS=$ac_save_IFS
1871case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1872
1873
1874{ echo "$as_me:$LINENO: checking target system type" >&5
1875echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1876if test "${ac_cv_target+set}" = set; then
1877  echo $ECHO_N "(cached) $ECHO_C" >&6
1878else
1879  if test "x$target_alias" = x; then
1880  ac_cv_target=$ac_cv_host
1881else
1882  ac_cv_target=`$ac_config_sub $target_alias` ||
1883    { { echo "$as_me:$LINENO: error: $ac_config_sub $target_alias failed" >&5
1884echo "$as_me: error: $ac_config_sub $target_alias failed" >&2;}
1885   { (exit 1); exit 1; }; }
1886fi
1887
1888fi
1889{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1890echo "${ECHO_T}$ac_cv_target" >&6; }
1891case $ac_cv_target in
1892*-*-*) ;;
1893*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1894echo "$as_me: error: invalid value of canonical target" >&2;}
1895   { (exit 1); exit 1; }; };;
1896esac
1897target=$ac_cv_target
1898ac_save_IFS=$IFS; IFS='-'
1899set x $ac_cv_target
1900shift
1901target_cpu=$1
1902target_vendor=$2
1903shift; shift
1904# Remember, the first character of IFS is used to create $*,
1905# except with old shells:
1906target_os=$*
1907IFS=$ac_save_IFS
1908case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1909
1910
1911# The aliases save the names the user supplied, while $host etc.
1912# will get canonicalized.
1913test -n "$target_alias" &&
1914  test "$program_prefix$program_suffix$program_transform_name" = \
1915    NONENONEs,x,x, &&
1916  program_prefix=${target_alias}-
1917ac_ext=c
1918ac_cpp='$CPP $CPPFLAGS'
1919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922if test -n "$ac_tool_prefix"; then
1923  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1924set dummy ${ac_tool_prefix}gcc; ac_word=$2
1925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1927if test "${ac_cv_prog_CC+set}" = set; then
1928  echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930  if test -n "$CC"; then
1931  ac_cv_prog_CC="$CC" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938  for ac_exec_ext in '' $ac_executable_extensions; do
1939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1940    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946IFS=$as_save_IFS
1947
1948fi
1949fi
1950CC=$ac_cv_prog_CC
1951if test -n "$CC"; then
1952  { echo "$as_me:$LINENO: result: $CC" >&5
1953echo "${ECHO_T}$CC" >&6; }
1954else
1955  { echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6; }
1957fi
1958
1959
1960fi
1961if test -z "$ac_cv_prog_CC"; then
1962  ac_ct_CC=$CC
1963  # Extract the first word of "gcc", so it can be a program name with args.
1964set dummy gcc; ac_word=$2
1965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1967if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1968  echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970  if test -n "$ac_ct_CC"; then
1971  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1972else
1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976  IFS=$as_save_IFS
1977  test -z "$as_dir" && as_dir=.
1978  for ac_exec_ext in '' $ac_executable_extensions; do
1979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1980    ac_cv_prog_ac_ct_CC="gcc"
1981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982    break 2
1983  fi
1984done
1985done
1986IFS=$as_save_IFS
1987
1988fi
1989fi
1990ac_ct_CC=$ac_cv_prog_ac_ct_CC
1991if test -n "$ac_ct_CC"; then
1992  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1993echo "${ECHO_T}$ac_ct_CC" >&6; }
1994else
1995  { echo "$as_me:$LINENO: result: no" >&5
1996echo "${ECHO_T}no" >&6; }
1997fi
1998
1999  if test "x$ac_ct_CC" = x; then
2000    CC=""
2001  else
2002    case $cross_compiling:$ac_tool_warned in
2003yes:)
2004{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2005whose name does not start with the host triplet.  If you think this
2006configuration is useful to you, please write to autoconf@gnu.org." >&5
2007echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2008whose name does not start with the host triplet.  If you think this
2009configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2010ac_tool_warned=yes ;;
2011esac
2012    CC=$ac_ct_CC
2013  fi
2014else
2015  CC="$ac_cv_prog_CC"
2016fi
2017
2018if test -z "$CC"; then
2019          if test -n "$ac_tool_prefix"; then
2020    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2021set dummy ${ac_tool_prefix}cc; ac_word=$2
2022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024if test "${ac_cv_prog_CC+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  if test -n "$CC"; then
2028  ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035  for ac_exec_ext in '' $ac_executable_extensions; do
2036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2037    ac_cv_prog_CC="${ac_tool_prefix}cc"
2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039    break 2
2040  fi
2041done
2042done
2043IFS=$as_save_IFS
2044
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049  { echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6; }
2051else
2052  { echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6; }
2054fi
2055
2056
2057  fi
2058fi
2059if test -z "$CC"; then
2060  # Extract the first word of "cc", so it can be a program name with args.
2061set dummy cc; ac_word=$2
2062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2064if test "${ac_cv_prog_CC+set}" = set; then
2065  echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067  if test -n "$CC"; then
2068  ac_cv_prog_CC="$CC" # Let the user override the test.
2069else
2070  ac_prog_rejected=no
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074  IFS=$as_save_IFS
2075  test -z "$as_dir" && as_dir=.
2076  for ac_exec_ext in '' $ac_executable_extensions; do
2077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2078    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2079       ac_prog_rejected=yes
2080       continue
2081     fi
2082    ac_cv_prog_CC="cc"
2083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084    break 2
2085  fi
2086done
2087done
2088IFS=$as_save_IFS
2089
2090if test $ac_prog_rejected = yes; then
2091  # We found a bogon in the path, so make sure we never use it.
2092  set dummy $ac_cv_prog_CC
2093  shift
2094  if test $# != 0; then
2095    # We chose a different compiler from the bogus one.
2096    # However, it has the same basename, so the bogon will be chosen
2097    # first if we set CC to just the basename; use the full file name.
2098    shift
2099    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2100  fi
2101fi
2102fi
2103fi
2104CC=$ac_cv_prog_CC
2105if test -n "$CC"; then
2106  { echo "$as_me:$LINENO: result: $CC" >&5
2107echo "${ECHO_T}$CC" >&6; }
2108else
2109  { echo "$as_me:$LINENO: result: no" >&5
2110echo "${ECHO_T}no" >&6; }
2111fi
2112
2113
2114fi
2115if test -z "$CC"; then
2116  if test -n "$ac_tool_prefix"; then
2117  for ac_prog in cl.exe
2118  do
2119    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2120set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2123if test "${ac_cv_prog_CC+set}" = set; then
2124  echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126  if test -n "$CC"; then
2127  ac_cv_prog_CC="$CC" # Let the user override the test.
2128else
2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132  IFS=$as_save_IFS
2133  test -z "$as_dir" && as_dir=.
2134  for ac_exec_ext in '' $ac_executable_extensions; do
2135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2136    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2137    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138    break 2
2139  fi
2140done
2141done
2142IFS=$as_save_IFS
2143
2144fi
2145fi
2146CC=$ac_cv_prog_CC
2147if test -n "$CC"; then
2148  { echo "$as_me:$LINENO: result: $CC" >&5
2149echo "${ECHO_T}$CC" >&6; }
2150else
2151  { echo "$as_me:$LINENO: result: no" >&5
2152echo "${ECHO_T}no" >&6; }
2153fi
2154
2155
2156    test -n "$CC" && break
2157  done
2158fi
2159if test -z "$CC"; then
2160  ac_ct_CC=$CC
2161  for ac_prog in cl.exe
2162do
2163  # Extract the first word of "$ac_prog", so it can be a program name with args.
2164set dummy $ac_prog; ac_word=$2
2165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2167if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2168  echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170  if test -n "$ac_ct_CC"; then
2171  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172else
2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH
2175do
2176  IFS=$as_save_IFS
2177  test -z "$as_dir" && as_dir=.
2178  for ac_exec_ext in '' $ac_executable_extensions; do
2179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2180    ac_cv_prog_ac_ct_CC="$ac_prog"
2181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182    break 2
2183  fi
2184done
2185done
2186IFS=$as_save_IFS
2187
2188fi
2189fi
2190ac_ct_CC=$ac_cv_prog_ac_ct_CC
2191if test -n "$ac_ct_CC"; then
2192  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2193echo "${ECHO_T}$ac_ct_CC" >&6; }
2194else
2195  { echo "$as_me:$LINENO: result: no" >&5
2196echo "${ECHO_T}no" >&6; }
2197fi
2198
2199
2200  test -n "$ac_ct_CC" && break
2201done
2202
2203  if test "x$ac_ct_CC" = x; then
2204    CC=""
2205  else
2206    case $cross_compiling:$ac_tool_warned in
2207yes:)
2208{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2209whose name does not start with the host triplet.  If you think this
2210configuration is useful to you, please write to autoconf@gnu.org." >&5
2211echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2212whose name does not start with the host triplet.  If you think this
2213configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2214ac_tool_warned=yes ;;
2215esac
2216    CC=$ac_ct_CC
2217  fi
2218fi
2219
2220fi
2221
2222
2223test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: no acceptable C compiler found in \$PATH
2226See \`config.log' for more details." >&2;}
2227   { (exit 1); exit 1; }; }
2228
2229# Provide some information about the compiler.
2230echo "$as_me:$LINENO: checking for C compiler version" >&5
2231ac_compiler=`set X $ac_compile; echo $2`
2232{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2233  (eval $ac_compiler --version >&5) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }
2237{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2238  (eval $ac_compiler -v >&5) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }
2242{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2243  (eval $ac_compiler -V >&5) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }
2247
2248
2249# List of possible output files.  We want to start from the most likely,
2250# but we have to check foo.exe before foo, because Cygwin `test -f' looks
2251# also for foo.exe.  b.out is created by i960 compilers.
2252# As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2253# But we are not allowed to rm a.*, and we do not want always remove
2254# conftest.*, so we will list them literally, when appropriate.
2255ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2256
2257# The IRIX 6 linker writes into existing files which may not be
2258# executable, retaining their permissions.  Remove them first so a
2259# subsequent execution test works.
2260rm -f $ac_outfiles conftest.*
2261
2262cat >conftest.$ac_ext <<_ACEOF
2263/* confdefs.h.  */
2264_ACEOF
2265cat confdefs.h >>conftest.$ac_ext
2266cat >>conftest.$ac_ext <<_ACEOF
2267/* end confdefs.h.  */
2268
2269int
2270main ()
2271{
2272
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277
2278ac_clean_files_save=$ac_clean_files
2279ac_clean_files="$ac_clean_files $ac_outfiles"
2280
2281# The following tests should remove their output except files matching conftest.*.
2282# Try to create an executable without -o first, disregard a.out.
2283# It will help us diagnose broken compilers, and finding out an intuition
2284# of exeext.
2285{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2286echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2287ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2288
2289if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2290  (eval $ac_link_default) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }; then
2294  for ac_file in $ac_outfiles a.* conftest.* NO
2295do
2296  test -f "$ac_file" || continue
2297  case $ac_file in
2298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299    * ) break;;
2300  esac
2301done
2302if test "$ac_file" = NO; then
2303  { { echo "$as_me:$LINENO: error: no output file found
2304See \`config.log' for more details." >&5
2305echo "$as_me: error: no output file found
2306See \`config.log' for more details." >&2;}
2307   { (exit 1); exit 1; }; }
2308fi
2309
2310
2311else
2312  echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2316See \`config.log' for more details." >&5
2317echo "$as_me: error: C compiler cannot create executables
2318See \`config.log' for more details." >&2;}
2319   { (exit 77); exit 77; }; }
2320fi
2321
2322{ echo "$as_me:$LINENO: result: $ac_file" >&5
2323echo "${ECHO_T}$ac_file" >&6; }
2324# Check that the compiler produces executables we can run.  If not, either
2325# the compiler is broken, or we cross compile.
2326{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2327echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2328# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2329# If not cross compiling, check that we can run a simple program.
2330if test "$cross_compiling" != yes; then
2331  if { ac_try='./$ac_file'
2332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333  (eval $ac_try) 2>&5
2334  ac_status=$?
2335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336  (exit $ac_status); }; }; then
2337    cross_compiling=no
2338  else
2339    if test "$cross_compiling" = maybe; then
2340	cross_compiling=yes
2341    else
2342	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2343If you meant to cross compile, use \`--host'.
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: cannot run C compiled programs.
2346If you meant to cross compile, use \`--host'.
2347See \`config.log' for more details." >&2;}
2348   { (exit 1); exit 1; }; }
2349    fi
2350  fi
2351fi
2352{ echo "$as_me:$LINENO: result: yes" >&5
2353echo "${ECHO_T}yes" >&6; }
2354
2355# Clean up; list also $ac_file, in case it matched a wildcard entry.
2356rm -f $ac_outfiles $ac_file
2357
2358{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2359echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2360{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2361echo "${ECHO_T}$cross_compiling" >&6; }
2362
2363{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2364echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2365if test "${ac_cv_exeext+set}" = set; then
2366  echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2369  (eval $ac_link) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; then
2373  # If both `conftest.exe' and `conftest' are `present' (well, observable),
2374    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2375    # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2376    for ac_file in conftest.exe conftest conftest.* NO; do
2377      test -f "$ac_file" || continue
2378      case $ac_file in
2379	*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2380	*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2381	      break;;
2382	* ) break;;
2383      esac
2384    done
2385    if test "$ac_file" = NO; then
2386  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2387See \`config.log' for more details." >&5
2388echo "$as_me: error: cannot compute suffix of executables: no output file found
2389See \`config.log' for more details." >&2;}
2390   { (exit 1); exit 1; }; }
2391fi
2392
2393    # Clean up; list also $ac_file, in case it matched conftest.*.
2394    rm -f $ac_outfiles $ac_file
2395
2396else
2397  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2398See \`config.log' for more details." >&5
2399echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2400See \`config.log' for more details." >&2;}
2401   { (exit 1); exit 1; }; }
2402
2403fi
2404
2405
2406fi
2407{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2408echo "${ECHO_T}$ac_cv_exeext" >&6; }
2409EXEEXT=$ac_cv_exeext
2410ac_exeext=$EXEEXT
2411
2412
2413ac_clean_files=$ac_clean_files_save
2414
2415{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2416echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2417if test "${ac_cv_objext+set}" = set; then
2418  echo $ECHO_N "(cached) $ECHO_C" >&6
2419else
2420  rm -f conftest.o conftest.obj
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422  (eval $ac_compile) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; then
2426  for ac_file in conftest.o conftest.obj conftest.*; do
2427  test -f "$ac_file" || continue;
2428  case $ac_file in
2429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2430    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2431       break;;
2432  esac
2433done
2434else
2435  echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2439See \`config.log' for more details." >&5
2440echo "$as_me: error: cannot compute suffix of object files: cannot compile
2441See \`config.log' for more details." >&2;}
2442   { (exit 1); exit 1; }; }
2443fi
2444
2445fi
2446{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2447echo "${ECHO_T}$ac_cv_objext" >&6; }
2448OBJEXT=$ac_cv_objext
2449ac_objext=$OBJEXT
2450
2451
2452rm -f conftest.*
2453{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2454echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2455if test "${ac_cv_c_compiler_gnu+set}" = set; then
2456  echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458  cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h.  */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h.  */
2464
2465int
2466main ()
2467{
2468#ifndef __GNUC__
2469       choke me
2470#endif
2471
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext
2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478  (eval $ac_compile) 2>conftest.er1
2479  ac_status=$?
2480  grep -v '^ *+' conftest.er1 >conftest.err
2481  rm -f conftest.er1
2482  cat conftest.err >&5
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); } &&
2485	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487  (eval $ac_try) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; } &&
2491	 { ac_try='test -s conftest.$ac_objext'
2492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493  (eval $ac_try) 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }; }; then
2497  ac_compiler_gnu=yes
2498else
2499  echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502	ac_compiler_gnu=no
2503fi
2504
2505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506ac_cv_c_compiler_gnu=$ac_compiler_gnu
2507
2508fi
2509{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2510echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2511GCC=`test $ac_compiler_gnu = yes && echo yes`
2512ac_test_CFLAGS=${CFLAGS+set}
2513ac_save_CFLAGS=$CFLAGS
2514{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2515echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2516if test "${ac_cv_prog_cc_g+set}" = set; then
2517  echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519  ac_save_c_werror_flag=$ac_c_werror_flag
2520   ac_c_werror_flag=yes
2521   ac_cv_prog_cc_g=no
2522   CFLAGS="-g"
2523   cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529
2530int
2531main ()
2532{
2533
2534  ;
2535  return 0;
2536}
2537_ACEOF
2538rm -f conftest.$ac_objext
2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540  (eval $ac_compile) 2>conftest.er1
2541  ac_status=$?
2542  grep -v '^ *+' conftest.er1 >conftest.err
2543  rm -f conftest.er1
2544  cat conftest.err >&5
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); } &&
2547	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549  (eval $ac_try) 2>&5
2550  ac_status=$?
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); }; } &&
2553	 { ac_try='test -s conftest.$ac_objext'
2554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555  (eval $ac_try) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; }; then
2559  ac_cv_prog_cc_g=yes
2560else
2561  echo "$as_me: failed program was:" >&5
2562sed 's/^/| /' conftest.$ac_ext >&5
2563
2564	CFLAGS=""
2565      cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h.  */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h.  */
2571
2572int
2573main ()
2574{
2575
2576  ;
2577  return 0;
2578}
2579_ACEOF
2580rm -f conftest.$ac_objext
2581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582  (eval $ac_compile) 2>conftest.er1
2583  ac_status=$?
2584  grep -v '^ *+' conftest.er1 >conftest.err
2585  rm -f conftest.er1
2586  cat conftest.err >&5
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); } &&
2589	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591  (eval $ac_try) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }; } &&
2595	 { ac_try='test -s conftest.$ac_objext'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; }; then
2601  :
2602else
2603  echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606	ac_c_werror_flag=$ac_save_c_werror_flag
2607	 CFLAGS="-g"
2608	 cat >conftest.$ac_ext <<_ACEOF
2609/* confdefs.h.  */
2610_ACEOF
2611cat confdefs.h >>conftest.$ac_ext
2612cat >>conftest.$ac_ext <<_ACEOF
2613/* end confdefs.h.  */
2614
2615int
2616main ()
2617{
2618
2619  ;
2620  return 0;
2621}
2622_ACEOF
2623rm -f conftest.$ac_objext
2624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625  (eval $ac_compile) 2>conftest.er1
2626  ac_status=$?
2627  grep -v '^ *+' conftest.er1 >conftest.err
2628  rm -f conftest.er1
2629  cat conftest.err >&5
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); } &&
2632	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; } &&
2638	 { ac_try='test -s conftest.$ac_objext'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; }; then
2644  ac_cv_prog_cc_g=yes
2645else
2646  echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649
2650fi
2651
2652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653fi
2654
2655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656fi
2657
2658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659   ac_c_werror_flag=$ac_save_c_werror_flag
2660fi
2661{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2662echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2663if test "$ac_test_CFLAGS" = set; then
2664  CFLAGS=$ac_save_CFLAGS
2665elif test $ac_cv_prog_cc_g = yes; then
2666  if test "$GCC" = yes; then
2667    CFLAGS="-g -O2"
2668  else
2669    CFLAGS="-g"
2670  fi
2671else
2672  if test "$GCC" = yes; then
2673    CFLAGS="-O2"
2674  else
2675    CFLAGS=
2676  fi
2677fi
2678{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2679echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2680if test "${ac_cv_prog_cc_c89+set}" = set; then
2681  echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
2683  ac_cv_prog_cc_c89=no
2684ac_save_CC=$CC
2685cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h.  */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h.  */
2691#include <stdarg.h>
2692#include <stdio.h>
2693#include <sys/types.h>
2694#include <sys/stat.h>
2695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2696struct buf { int x; };
2697FILE * (*rcsopen) (struct buf *, struct stat *, int);
2698static char *e (p, i)
2699     char **p;
2700     int i;
2701{
2702  return p[i];
2703}
2704static char *f (char * (*g) (char **, int), char **p, ...)
2705{
2706  char *s;
2707  va_list v;
2708  va_start (v,p);
2709  s = g (p, va_arg (v,int));
2710  va_end (v);
2711  return s;
2712}
2713
2714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2715   function prototypes and stuff, but not '\xHH' hex character constants.
2716   These don't provoke an error unfortunately, instead are silently treated
2717   as 'x'.  The following induces an error, until -std is added to get
2718   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2719   array size at least.  It's necessary to write '\x00'==0 to get something
2720   that's true only with -std.  */
2721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2722
2723int test (int i, double x);
2724struct s1 {int (*f) (int a);};
2725struct s2 {int (*f) (double a);};
2726int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2727int argc;
2728char **argv;
2729int
2730main ()
2731{
2732return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2738	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2739do
2740  CC="$ac_save_CC $ac_arg"
2741  rm -f conftest.$ac_objext
2742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743  (eval $ac_compile) 2>conftest.er1
2744  ac_status=$?
2745  grep -v '^ *+' conftest.er1 >conftest.err
2746  rm -f conftest.er1
2747  cat conftest.err >&5
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); } &&
2750	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; } &&
2756	 { ac_try='test -s conftest.$ac_objext'
2757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758  (eval $ac_try) 2>&5
2759  ac_status=$?
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); }; }; then
2762  ac_cv_prog_cc_c89=$ac_arg
2763else
2764  echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
2767
2768fi
2769
2770rm -f conftest.err conftest.$ac_objext
2771  test "x$ac_cv_prog_cc_c89" != "xno" && break
2772done
2773rm -f conftest.$ac_ext
2774CC=$ac_save_CC
2775
2776fi
2777# AC_CACHE_VAL
2778case "x$ac_cv_prog_cc_c89" in
2779  x)
2780    { echo "$as_me:$LINENO: result: none needed" >&5
2781echo "${ECHO_T}none needed" >&6; } ;;
2782  xno)
2783    { echo "$as_me:$LINENO: result: unsupported" >&5
2784echo "${ECHO_T}unsupported" >&6; } ;;
2785  *)
2786    CC="$CC $ac_cv_prog_cc_c89"
2787    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2789esac
2790
2791
2792ac_ext=c
2793ac_cpp='$CPP $CPPFLAGS'
2794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798am__api_version="1.9"
2799# Find a good install program.  We prefer a C program (faster),
2800# so one script is as good as another.  But avoid the broken or
2801# incompatible versions:
2802# SysV /etc/install, /usr/sbin/install
2803# SunOS /usr/etc/install
2804# IRIX /sbin/install
2805# AIX /bin/install
2806# AmigaOS /C/install, which installs bootblocks on floppy discs
2807# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2808# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2809# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2810# OS/2's system install, which has a completely different semantic
2811# ./install, which can be erroneously created by make from ./install.sh.
2812{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2813echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2814if test -z "$INSTALL"; then
2815if test "${ac_cv_path_install+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821  IFS=$as_save_IFS
2822  test -z "$as_dir" && as_dir=.
2823  # Account for people who put trailing slashes in PATH elements.
2824case $as_dir/ in
2825  ./ | .// | /cC/* | \
2826  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2827  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2828  /usr/ucb/* ) ;;
2829  *)
2830    # OSF1 and SCO ODT 3.0 have their own names for install.
2831    # Don't use installbsd from OSF since it installs stuff as root
2832    # by default.
2833    for ac_prog in ginstall scoinst install; do
2834      for ac_exec_ext in '' $ac_executable_extensions; do
2835	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2836	  if test $ac_prog = install &&
2837	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2838	    # AIX install.  It has an incompatible calling convention.
2839	    :
2840	  elif test $ac_prog = install &&
2841	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842	    # program-specific install script used by HP pwplus--don't use.
2843	    :
2844	  else
2845	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2846	    break 3
2847	  fi
2848	fi
2849      done
2850    done
2851    ;;
2852esac
2853done
2854IFS=$as_save_IFS
2855
2856
2857fi
2858  if test "${ac_cv_path_install+set}" = set; then
2859    INSTALL=$ac_cv_path_install
2860  else
2861    # As a last resort, use the slow shell script.  Don't cache a
2862    # value for INSTALL within a source directory, because that will
2863    # break other packages using the cache if that directory is
2864    # removed, or if the value is a relative name.
2865    INSTALL=$ac_install_sh
2866  fi
2867fi
2868{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2869echo "${ECHO_T}$INSTALL" >&6; }
2870
2871# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2872# It thinks the first close brace ends the variable substitution.
2873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2874
2875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2876
2877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2878
2879{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2880echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2881# Just in case
2882sleep 1
2883echo timestamp > conftest.file
2884# Do `set' in a subshell so we don't clobber the current shell's
2885# arguments.  Must try -L first in case configure is actually a
2886# symlink; some systems play weird games with the mod time of symlinks
2887# (eg FreeBSD returns the mod time of the symlink's containing
2888# directory).
2889if (
2890   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2891   if test "$*" = "X"; then
2892      # -L didn't work.
2893      set X `ls -t $srcdir/configure conftest.file`
2894   fi
2895   rm -f conftest.file
2896   if test "$*" != "X $srcdir/configure conftest.file" \
2897      && test "$*" != "X conftest.file $srcdir/configure"; then
2898
2899      # If neither matched, then we have a broken ls.  This can happen
2900      # if, for instance, CONFIG_SHELL is bash and it inherits a
2901      # broken ls alias from the environment.  This has actually
2902      # happened.  Such a system could not be considered "sane".
2903      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2904alias in your environment" >&5
2905echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2906alias in your environment" >&2;}
2907   { (exit 1); exit 1; }; }
2908   fi
2909
2910   test "$2" = conftest.file
2911   )
2912then
2913   # Ok.
2914   :
2915else
2916   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2917Check your system clock" >&5
2918echo "$as_me: error: newly created file is older than distributed files!
2919Check your system clock" >&2;}
2920   { (exit 1); exit 1; }; }
2921fi
2922{ echo "$as_me:$LINENO: result: yes" >&5
2923echo "${ECHO_T}yes" >&6; }
2924test "$program_prefix" != NONE &&
2925  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2926# Use a double $ so make ignores it.
2927test "$program_suffix" != NONE &&
2928  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2929# Double any \ or $.  echo might interpret backslashes.
2930# By default was `s,x,x', remove it if useless.
2931cat <<\_ACEOF >conftest.sed
2932s/[\\$]/&&/g;s/;s,x,x,$//
2933_ACEOF
2934program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2935rm -f conftest.sed
2936
2937# expand $ac_aux_dir to an absolute path
2938am_aux_dir=`cd $ac_aux_dir && pwd`
2939
2940test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2941# Use eval to expand $SHELL
2942if eval "$MISSING --run true"; then
2943  am_missing_run="$MISSING --run "
2944else
2945  am_missing_run=
2946  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2947echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2948fi
2949
2950if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2951  # We used to keeping the `.' as first argument, in order to
2952  # allow $(mkdir_p) to be used without argument.  As in
2953  #   $(mkdir_p) $(somedir)
2954  # where $(somedir) is conditionally defined.  However this is wrong
2955  # for two reasons:
2956  #  1. if the package is installed by a user who cannot write `.'
2957  #     make install will fail,
2958  #  2. the above comment should most certainly read
2959  #     $(mkdir_p) $(DESTDIR)$(somedir)
2960  #     so it does not work when $(somedir) is undefined and
2961  #     $(DESTDIR) is not.
2962  #  To support the latter case, we have to write
2963  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2964  #  so the `.' trick is pointless.
2965  mkdir_p='mkdir -p --'
2966else
2967  # On NextStep and OpenStep, the `mkdir' command does not
2968  # recognize any option.  It will interpret all options as
2969  # directories to create, and then abort because `.' already
2970  # exists.
2971  for d in ./-p ./--version;
2972  do
2973    test -d $d && rmdir $d
2974  done
2975  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2976  if test -f "$ac_aux_dir/mkinstalldirs"; then
2977    mkdir_p='$(mkinstalldirs)'
2978  else
2979    mkdir_p='$(install_sh) -d'
2980  fi
2981fi
2982
2983for ac_prog in gawk mawk nawk awk
2984do
2985  # Extract the first word of "$ac_prog", so it can be a program name with args.
2986set dummy $ac_prog; ac_word=$2
2987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2989if test "${ac_cv_prog_AWK+set}" = set; then
2990  echo $ECHO_N "(cached) $ECHO_C" >&6
2991else
2992  if test -n "$AWK"; then
2993  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2994else
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998  IFS=$as_save_IFS
2999  test -z "$as_dir" && as_dir=.
3000  for ac_exec_ext in '' $ac_executable_extensions; do
3001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3002    ac_cv_prog_AWK="$ac_prog"
3003    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004    break 2
3005  fi
3006done
3007done
3008IFS=$as_save_IFS
3009
3010fi
3011fi
3012AWK=$ac_cv_prog_AWK
3013if test -n "$AWK"; then
3014  { echo "$as_me:$LINENO: result: $AWK" >&5
3015echo "${ECHO_T}$AWK" >&6; }
3016else
3017  { echo "$as_me:$LINENO: result: no" >&5
3018echo "${ECHO_T}no" >&6; }
3019fi
3020
3021
3022  test -n "$AWK" && break
3023done
3024
3025{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3026echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3027set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3028if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3029  echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031  cat >conftest.make <<\_ACEOF
3032SHELL = /bin/sh
3033all:
3034	@echo 'ac_maketemp=X"$(MAKE)"'
3035_ACEOF
3036# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3037eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3038if test "$ac_maketemp" != X ; then
3039  eval ac_cv_prog_make_${ac_make}_set=yes
3040else
3041  eval ac_cv_prog_make_${ac_make}_set=no
3042fi
3043rm -f conftest.make
3044fi
3045if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3046  { echo "$as_me:$LINENO: result: yes" >&5
3047echo "${ECHO_T}yes" >&6; }
3048  SET_MAKE=
3049else
3050  { echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6; }
3052  SET_MAKE="MAKE=${MAKE-make}"
3053fi
3054
3055rm -rf .tst 2>/dev/null
3056mkdir .tst 2>/dev/null
3057if test -d .tst; then
3058  am__leading_dot=.
3059else
3060  am__leading_dot=_
3061fi
3062rmdir .tst 2>/dev/null
3063
3064DEPDIR="${am__leading_dot}deps"
3065
3066ac_config_commands="$ac_config_commands depfiles"
3067
3068
3069am_make=${MAKE-make}
3070cat > confinc << 'END'
3071am__doit:
3072	@echo done
3073.PHONY: am__doit
3074END
3075# If we don't find an include directive, just comment out the code.
3076{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3077echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3078am__include="#"
3079am__quote=
3080_am_result=none
3081# First try GNU make style include.
3082echo "include confinc" > confmf
3083# We grep out `Entering directory' and `Leaving directory'
3084# messages which can occur if `w' ends up in MAKEFLAGS.
3085# In particular we don't look at `^make:' because GNU make might
3086# be invoked under some other name (usually "gmake"), in which
3087# case it prints its new name instead of `make'.
3088if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3089   am__include=include
3090   am__quote=
3091   _am_result=GNU
3092fi
3093# Now try BSD make style include.
3094if test "$am__include" = "#"; then
3095   echo '.include "confinc"' > confmf
3096   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3097      am__include=.include
3098      am__quote="\""
3099      _am_result=BSD
3100   fi
3101fi
3102
3103
3104{ echo "$as_me:$LINENO: result: $_am_result" >&5
3105echo "${ECHO_T}$_am_result" >&6; }
3106rm -f confinc confmf
3107
3108# Check whether --enable-dependency-tracking was given.
3109if test "${enable_dependency_tracking+set}" = set; then
3110  enableval=$enable_dependency_tracking;
3111fi
3112
3113if test "x$enable_dependency_tracking" != xno; then
3114  am_depcomp="$ac_aux_dir/depcomp"
3115  AMDEPBACKSLASH='\'
3116fi
3117
3118
3119if test "x$enable_dependency_tracking" != xno; then
3120  AMDEP_TRUE=
3121  AMDEP_FALSE='#'
3122else
3123  AMDEP_TRUE='#'
3124  AMDEP_FALSE=
3125fi
3126
3127
3128
3129# test to see if srcdir already configured
3130if test "`cd $srcdir && pwd`" != "`pwd`" &&
3131   test -f $srcdir/config.status; then
3132  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3133echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3134   { (exit 1); exit 1; }; }
3135fi
3136
3137# test whether we have cygpath
3138if test -z "$CYGPATH_W"; then
3139  if (cygpath --version) >/dev/null 2>/dev/null; then
3140    CYGPATH_W='cygpath -w'
3141  else
3142    CYGPATH_W=echo
3143  fi
3144fi
3145
3146
3147# Define the identity of the package.
3148 PACKAGE=xblast
3149 VERSION=2.10.3
3150
3151
3152cat >>confdefs.h <<_ACEOF
3153#define PACKAGE "$PACKAGE"
3154_ACEOF
3155
3156
3157cat >>confdefs.h <<_ACEOF
3158#define VERSION "$VERSION"
3159_ACEOF
3160
3161# Some tools Automake needs.
3162
3163ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3164
3165
3166AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3167
3168
3169AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3170
3171
3172AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3173
3174
3175MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3176
3177install_sh=${install_sh-"$am_aux_dir/install-sh"}
3178
3179# Installed binaries are usually stripped using `strip' when the user
3180# run `make install-strip'.  However `strip' might not be the right
3181# tool to use in cross-compilation environments, therefore Automake
3182# will honor the `STRIP' environment variable to overrule this program.
3183if test "$cross_compiling" != no; then
3184  if test -n "$ac_tool_prefix"; then
3185  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3186set dummy ${ac_tool_prefix}strip; ac_word=$2
3187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3189if test "${ac_cv_prog_STRIP+set}" = set; then
3190  echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192  if test -n "$STRIP"; then
3193  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3194else
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200  for ac_exec_ext in '' $ac_executable_extensions; do
3201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3202    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204    break 2
3205  fi
3206done
3207done
3208IFS=$as_save_IFS
3209
3210fi
3211fi
3212STRIP=$ac_cv_prog_STRIP
3213if test -n "$STRIP"; then
3214  { echo "$as_me:$LINENO: result: $STRIP" >&5
3215echo "${ECHO_T}$STRIP" >&6; }
3216else
3217  { echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6; }
3219fi
3220
3221
3222fi
3223if test -z "$ac_cv_prog_STRIP"; then
3224  ac_ct_STRIP=$STRIP
3225  # Extract the first word of "strip", so it can be a program name with args.
3226set dummy strip; ac_word=$2
3227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3229if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3230  echo $ECHO_N "(cached) $ECHO_C" >&6
3231else
3232  if test -n "$ac_ct_STRIP"; then
3233  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3234else
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238  IFS=$as_save_IFS
3239  test -z "$as_dir" && as_dir=.
3240  for ac_exec_ext in '' $ac_executable_extensions; do
3241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3242    ac_cv_prog_ac_ct_STRIP="strip"
3243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244    break 2
3245  fi
3246done
3247done
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3253if test -n "$ac_ct_STRIP"; then
3254  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3255echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3256else
3257  { echo "$as_me:$LINENO: result: no" >&5
3258echo "${ECHO_T}no" >&6; }
3259fi
3260
3261  if test "x$ac_ct_STRIP" = x; then
3262    STRIP=":"
3263  else
3264    case $cross_compiling:$ac_tool_warned in
3265yes:)
3266{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3267whose name does not start with the host triplet.  If you think this
3268configuration is useful to you, please write to autoconf@gnu.org." >&5
3269echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3270whose name does not start with the host triplet.  If you think this
3271configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3272ac_tool_warned=yes ;;
3273esac
3274    STRIP=$ac_ct_STRIP
3275  fi
3276else
3277  STRIP="$ac_cv_prog_STRIP"
3278fi
3279
3280fi
3281INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3282
3283# We need awk for the "check" target.  The system "awk" is bad on
3284# some platforms.
3285# Always define AMTAR for backward compatibility.
3286
3287AMTAR=${AMTAR-"${am_missing_run}tar"}
3288
3289am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3290
3291
3292
3293
3294depcc="$CC"   am_compiler_list=
3295
3296{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3297echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3298if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3299  echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3302  # We make a subdir and do the tests there.  Otherwise we can end up
3303  # making bogus files that we don't know about and never remove.  For
3304  # instance it was reported that on HP-UX the gcc test will end up
3305  # making a dummy file named `D' -- because `-MD' means `put the output
3306  # in D'.
3307  mkdir conftest.dir
3308  # Copy depcomp to subdir because otherwise we won't find it if we're
3309  # using a relative directory.
3310  cp "$am_depcomp" conftest.dir
3311  cd conftest.dir
3312  # We will build objects and dependencies in a subdirectory because
3313  # it helps to detect inapplicable dependency modes.  For instance
3314  # both Tru64's cc and ICC support -MD to output dependencies as a
3315  # side effect of compilation, but ICC will put the dependencies in
3316  # the current directory while Tru64 will put them in the object
3317  # directory.
3318  mkdir sub
3319
3320  am_cv_CC_dependencies_compiler_type=none
3321  if test "$am_compiler_list" = ""; then
3322     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3323  fi
3324  for depmode in $am_compiler_list; do
3325    # Setup a source with many dependencies, because some compilers
3326    # like to wrap large dependency lists on column 80 (with \), and
3327    # we should not choose a depcomp mode which is confused by this.
3328    #
3329    # We need to recreate these files for each test, as the compiler may
3330    # overwrite some of them when testing with obscure command lines.
3331    # This happens at least with the AIX C compiler.
3332    : > sub/conftest.c
3333    for i in 1 2 3 4 5 6; do
3334      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3335      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3336      # Solaris 8's {/usr,}/bin/sh.
3337      touch sub/conftst$i.h
3338    done
3339    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3340
3341    case $depmode in
3342    nosideeffect)
3343      # after this tag, mechanisms are not by side-effect, so they'll
3344      # only be used when explicitly requested
3345      if test "x$enable_dependency_tracking" = xyes; then
3346	continue
3347      else
3348	break
3349      fi
3350      ;;
3351    none) break ;;
3352    esac
3353    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3354    # mode.  It turns out that the SunPro C++ compiler does not properly
3355    # handle `-M -o', and we need to detect this.
3356    if depmode=$depmode \
3357       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3358       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3359       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3360         >/dev/null 2>conftest.err &&
3361       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3362       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3363       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3364      # icc doesn't choke on unknown options, it will just issue warnings
3365      # or remarks (even with -Werror).  So we grep stderr for any message
3366      # that says an option was ignored or not supported.
3367      # When given -MP, icc 7.0 and 7.1 complain thusly:
3368      #   icc: Command line warning: ignoring option '-M'; no argument required
3369      # The diagnosis changed in icc 8.0:
3370      #   icc: Command line remark: option '-MP' not supported
3371      if (grep 'ignoring option' conftest.err ||
3372          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3373        am_cv_CC_dependencies_compiler_type=$depmode
3374        break
3375      fi
3376    fi
3377  done
3378
3379  cd ..
3380  rm -rf conftest.dir
3381else
3382  am_cv_CC_dependencies_compiler_type=none
3383fi
3384
3385fi
3386{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3387echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3388CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3389
3390
3391
3392if
3393  test "x$enable_dependency_tracking" != xno \
3394  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3395  am__fastdepCC_TRUE=
3396  am__fastdepCC_FALSE='#'
3397else
3398  am__fastdepCC_TRUE='#'
3399  am__fastdepCC_FALSE=
3400fi
3401
3402
3403
3404ac_config_headers="$ac_config_headers config.h"
3405
3406
3407
3408        MKINSTALLDIRS=
3409  if test -n "$ac_aux_dir"; then
3410    case "$ac_aux_dir" in
3411      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3412      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3413    esac
3414  fi
3415  if test -z "$MKINSTALLDIRS"; then
3416    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3417  fi
3418
3419
3420
3421  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3422echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
3423    # Check whether --enable-nls was given.
3424if test "${enable_nls+set}" = set; then
3425  enableval=$enable_nls; USE_NLS=$enableval
3426else
3427  USE_NLS=yes
3428fi
3429
3430  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
3431echo "${ECHO_T}$USE_NLS" >&6; }
3432
3433
3434
3435
3436
3437
3438# Prepare PATH_SEPARATOR.
3439# The user is always right.
3440if test "${PATH_SEPARATOR+set}" != set; then
3441  echo "#! /bin/sh" >conf$$.sh
3442  echo  "exit 0"   >>conf$$.sh
3443  chmod +x conf$$.sh
3444  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3445    PATH_SEPARATOR=';'
3446  else
3447    PATH_SEPARATOR=:
3448  fi
3449  rm -f conf$$.sh
3450fi
3451
3452# Find out how to test for executable files. Don't use a zero-byte file,
3453# as systems may use methods other than mode bits to determine executability.
3454cat >conf$$.file <<_ASEOF
3455#! /bin/sh
3456exit 0
3457_ASEOF
3458chmod +x conf$$.file
3459if test -x conf$$.file >/dev/null 2>&1; then
3460  ac_executable_p="test -x"
3461else
3462  ac_executable_p="test -f"
3463fi
3464rm -f conf$$.file
3465
3466# Extract the first word of "msgfmt", so it can be a program name with args.
3467set dummy msgfmt; ac_word=$2
3468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3470if test "${ac_cv_path_MSGFMT+set}" = set; then
3471  echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473  case "$MSGFMT" in
3474  [\\/]* | ?:[\\/]*)
3475    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3476    ;;
3477  *)
3478    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3479    for ac_dir in $PATH; do
3480      IFS="$ac_save_IFS"
3481      test -z "$ac_dir" && ac_dir=.
3482      for ac_exec_ext in '' $ac_executable_extensions; do
3483        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3484          echo "$as_me: trying $ac_dir/$ac_word..." >&5
3485          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3486     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3487            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3488            break 2
3489          fi
3490        fi
3491      done
3492    done
3493    IFS="$ac_save_IFS"
3494  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3495    ;;
3496esac
3497fi
3498MSGFMT="$ac_cv_path_MSGFMT"
3499if test "$MSGFMT" != ":"; then
3500  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
3501echo "${ECHO_T}$MSGFMT" >&6; }
3502else
3503  { echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6; }
3505fi
3506
3507  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3508set dummy gmsgfmt; ac_word=$2
3509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3511if test "${ac_cv_path_GMSGFMT+set}" = set; then
3512  echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514  case $GMSGFMT in
3515  [\\/]* | ?:[\\/]*)
3516  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3517  ;;
3518  *)
3519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522  IFS=$as_save_IFS
3523  test -z "$as_dir" && as_dir=.
3524  for ac_exec_ext in '' $ac_executable_extensions; do
3525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3526    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528    break 2
3529  fi
3530done
3531done
3532IFS=$as_save_IFS
3533
3534  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3535  ;;
3536esac
3537fi
3538GMSGFMT=$ac_cv_path_GMSGFMT
3539if test -n "$GMSGFMT"; then
3540  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3541echo "${ECHO_T}$GMSGFMT" >&6; }
3542else
3543  { echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6; }
3545fi
3546
3547
3548
3549
3550# Prepare PATH_SEPARATOR.
3551# The user is always right.
3552if test "${PATH_SEPARATOR+set}" != set; then
3553  echo "#! /bin/sh" >conf$$.sh
3554  echo  "exit 0"   >>conf$$.sh
3555  chmod +x conf$$.sh
3556  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3557    PATH_SEPARATOR=';'
3558  else
3559    PATH_SEPARATOR=:
3560  fi
3561  rm -f conf$$.sh
3562fi
3563
3564# Find out how to test for executable files. Don't use a zero-byte file,
3565# as systems may use methods other than mode bits to determine executability.
3566cat >conf$$.file <<_ASEOF
3567#! /bin/sh
3568exit 0
3569_ASEOF
3570chmod +x conf$$.file
3571if test -x conf$$.file >/dev/null 2>&1; then
3572  ac_executable_p="test -x"
3573else
3574  ac_executable_p="test -f"
3575fi
3576rm -f conf$$.file
3577
3578# Extract the first word of "xgettext", so it can be a program name with args.
3579set dummy xgettext; ac_word=$2
3580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3582if test "${ac_cv_path_XGETTEXT+set}" = set; then
3583  echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585  case "$XGETTEXT" in
3586  [\\/]* | ?:[\\/]*)
3587    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3588    ;;
3589  *)
3590    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3591    for ac_dir in $PATH; do
3592      IFS="$ac_save_IFS"
3593      test -z "$ac_dir" && ac_dir=.
3594      for ac_exec_ext in '' $ac_executable_extensions; do
3595        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3596          echo "$as_me: trying $ac_dir/$ac_word..." >&5
3597          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3598     (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
3599            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3600            break 2
3601          fi
3602        fi
3603      done
3604    done
3605    IFS="$ac_save_IFS"
3606  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3607    ;;
3608esac
3609fi
3610XGETTEXT="$ac_cv_path_XGETTEXT"
3611if test "$XGETTEXT" != ":"; then
3612  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3613echo "${ECHO_T}$XGETTEXT" >&6; }
3614else
3615  { echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6; }
3617fi
3618
3619    rm -f messages.po
3620
3621
3622# Prepare PATH_SEPARATOR.
3623# The user is always right.
3624if test "${PATH_SEPARATOR+set}" != set; then
3625  echo "#! /bin/sh" >conf$$.sh
3626  echo  "exit 0"   >>conf$$.sh
3627  chmod +x conf$$.sh
3628  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3629    PATH_SEPARATOR=';'
3630  else
3631    PATH_SEPARATOR=:
3632  fi
3633  rm -f conf$$.sh
3634fi
3635
3636# Find out how to test for executable files. Don't use a zero-byte file,
3637# as systems may use methods other than mode bits to determine executability.
3638cat >conf$$.file <<_ASEOF
3639#! /bin/sh
3640exit 0
3641_ASEOF
3642chmod +x conf$$.file
3643if test -x conf$$.file >/dev/null 2>&1; then
3644  ac_executable_p="test -x"
3645else
3646  ac_executable_p="test -f"
3647fi
3648rm -f conf$$.file
3649
3650# Extract the first word of "msgmerge", so it can be a program name with args.
3651set dummy msgmerge; ac_word=$2
3652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3654if test "${ac_cv_path_MSGMERGE+set}" = set; then
3655  echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657  case "$MSGMERGE" in
3658  [\\/]* | ?:[\\/]*)
3659    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3660    ;;
3661  *)
3662    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3663    for ac_dir in $PATH; do
3664      IFS="$ac_save_IFS"
3665      test -z "$ac_dir" && ac_dir=.
3666      for ac_exec_ext in '' $ac_executable_extensions; do
3667        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3668          echo "$as_me: trying $ac_dir/$ac_word..." >&5
3669          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3670            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3671            break 2
3672          fi
3673        fi
3674      done
3675    done
3676    IFS="$ac_save_IFS"
3677  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3678    ;;
3679esac
3680fi
3681MSGMERGE="$ac_cv_path_MSGMERGE"
3682if test "$MSGMERGE" != ":"; then
3683  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3684echo "${ECHO_T}$MSGMERGE" >&6; }
3685else
3686  { echo "$as_me:$LINENO: result: no" >&5
3687echo "${ECHO_T}no" >&6; }
3688fi
3689
3690
3691      if test "$GMSGFMT" != ":"; then
3692            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3693       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3694      : ;
3695    else
3696      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3697      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3698echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3699      GMSGFMT=":"
3700    fi
3701  fi
3702
3703      if test "$XGETTEXT" != ":"; then
3704            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3705       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3706      : ;
3707    else
3708      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3709echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
3710      XGETTEXT=":"
3711    fi
3712        rm -f messages.po
3713  fi
3714
3715  ac_config_commands="$ac_config_commands default-1"
3716
3717
3718
3719      if test "X$prefix" = "XNONE"; then
3720    acl_final_prefix="$ac_default_prefix"
3721  else
3722    acl_final_prefix="$prefix"
3723  fi
3724  if test "X$exec_prefix" = "XNONE"; then
3725    acl_final_exec_prefix='${prefix}'
3726  else
3727    acl_final_exec_prefix="$exec_prefix"
3728  fi
3729  acl_save_prefix="$prefix"
3730  prefix="$acl_final_prefix"
3731  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3732  prefix="$acl_save_prefix"
3733
3734
3735# Check whether --with-gnu-ld was given.
3736if test "${with_gnu_ld+set}" = set; then
3737  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3738else
3739  with_gnu_ld=no
3740fi
3741
3742# Prepare PATH_SEPARATOR.
3743# The user is always right.
3744if test "${PATH_SEPARATOR+set}" != set; then
3745  echo "#! /bin/sh" >conf$$.sh
3746  echo  "exit 0"   >>conf$$.sh
3747  chmod +x conf$$.sh
3748  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3749    PATH_SEPARATOR=';'
3750  else
3751    PATH_SEPARATOR=:
3752  fi
3753  rm -f conf$$.sh
3754fi
3755ac_prog=ld
3756if test "$GCC" = yes; then
3757  # Check if gcc -print-prog-name=ld gives a path.
3758  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3759echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
3760  case $host in
3761  *-*-mingw*)
3762    # gcc leaves a trailing carriage return which upsets mingw
3763    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3764  *)
3765    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3766  esac
3767  case $ac_prog in
3768    # Accept absolute paths.
3769    [\\/]* | [A-Za-z]:[\\/]*)
3770      re_direlt='/[^/][^/]*/\.\./'
3771      # Canonicalize the path of ld
3772      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3773      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3774	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3775      done
3776      test -z "$LD" && LD="$ac_prog"
3777      ;;
3778  "")
3779    # If it fails, then pretend we aren't using GCC.
3780    ac_prog=ld
3781    ;;
3782  *)
3783    # If it is relative, then search for the first ld in PATH.
3784    with_gnu_ld=unknown
3785    ;;
3786  esac
3787elif test "$with_gnu_ld" = yes; then
3788  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3789echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3790else
3791  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3792echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3793fi
3794if test "${acl_cv_path_LD+set}" = set; then
3795  echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797  if test -z "$LD"; then
3798  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3799  for ac_dir in $PATH; do
3800    test -z "$ac_dir" && ac_dir=.
3801    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3802      acl_cv_path_LD="$ac_dir/$ac_prog"
3803      # Check to see if the program is GNU ld.  I'd rather use --version,
3804      # but apparently some GNU ld's only accept -v.
3805      # Break only if it was the GNU/non-GNU ld that we prefer.
3806      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3807      *GNU* | *'with BFD'*)
3808	test "$with_gnu_ld" != no && break ;;
3809      *)
3810	test "$with_gnu_ld" != yes && break ;;
3811      esac
3812    fi
3813  done
3814  IFS="$ac_save_ifs"
3815else
3816  acl_cv_path_LD="$LD" # Let the user override the test with a path.
3817fi
3818fi
3819
3820LD="$acl_cv_path_LD"
3821if test -n "$LD"; then
3822  { echo "$as_me:$LINENO: result: $LD" >&5
3823echo "${ECHO_T}$LD" >&6; }
3824else
3825  { echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6; }
3827fi
3828test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3829echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3830   { (exit 1); exit 1; }; }
3831{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3832echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3833if test "${acl_cv_prog_gnu_ld+set}" = set; then
3834  echo $ECHO_N "(cached) $ECHO_C" >&6
3835else
3836  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3837case `$LD -v 2>&1 </dev/null` in
3838*GNU* | *'with BFD'*)
3839  acl_cv_prog_gnu_ld=yes ;;
3840*)
3841  acl_cv_prog_gnu_ld=no ;;
3842esac
3843fi
3844{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3845echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
3846with_gnu_ld=$acl_cv_prog_gnu_ld
3847
3848
3849
3850
3851                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3852echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
3853if test "${acl_cv_rpath+set}" = set; then
3854  echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856
3857    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3858    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3859    . ./conftest.sh
3860    rm -f ./conftest.sh
3861    acl_cv_rpath=done
3862
3863fi
3864{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3865echo "${ECHO_T}$acl_cv_rpath" >&6; }
3866  wl="$acl_cv_wl"
3867  libext="$acl_cv_libext"
3868  shlibext="$acl_cv_shlibext"
3869  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3870  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3871  hardcode_direct="$acl_cv_hardcode_direct"
3872  hardcode_minus_L="$acl_cv_hardcode_minus_L"
3873    # Check whether --enable-rpath was given.
3874if test "${enable_rpath+set}" = set; then
3875  enableval=$enable_rpath; :
3876else
3877  enable_rpath=yes
3878fi
3879
3880
3881
3882
3883
3884
3885
3886
3887    use_additional=yes
3888
3889  acl_save_prefix="$prefix"
3890  prefix="$acl_final_prefix"
3891  acl_save_exec_prefix="$exec_prefix"
3892  exec_prefix="$acl_final_exec_prefix"
3893
3894    eval additional_includedir=\"$includedir\"
3895    eval additional_libdir=\"$libdir\"
3896
3897  exec_prefix="$acl_save_exec_prefix"
3898  prefix="$acl_save_prefix"
3899
3900
3901# Check whether --with-libiconv-prefix was given.
3902if test "${with_libiconv_prefix+set}" = set; then
3903  withval=$with_libiconv_prefix;
3904    if test "X$withval" = "Xno"; then
3905      use_additional=no
3906    else
3907      if test "X$withval" = "X"; then
3908
3909  acl_save_prefix="$prefix"
3910  prefix="$acl_final_prefix"
3911  acl_save_exec_prefix="$exec_prefix"
3912  exec_prefix="$acl_final_exec_prefix"
3913
3914          eval additional_includedir=\"$includedir\"
3915          eval additional_libdir=\"$libdir\"
3916
3917  exec_prefix="$acl_save_exec_prefix"
3918  prefix="$acl_save_prefix"
3919
3920      else
3921        additional_includedir="$withval/include"
3922        additional_libdir="$withval/lib"
3923      fi
3924    fi
3925
3926fi
3927
3928      LIBICONV=
3929  LTLIBICONV=
3930  INCICONV=
3931  rpathdirs=
3932  ltrpathdirs=
3933  names_already_handled=
3934  names_next_round='iconv '
3935  while test -n "$names_next_round"; do
3936    names_this_round="$names_next_round"
3937    names_next_round=
3938    for name in $names_this_round; do
3939      already_handled=
3940      for n in $names_already_handled; do
3941        if test "$n" = "$name"; then
3942          already_handled=yes
3943          break
3944        fi
3945      done
3946      if test -z "$already_handled"; then
3947        names_already_handled="$names_already_handled $name"
3948                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3949        eval value=\"\$HAVE_LIB$uppername\"
3950        if test -n "$value"; then
3951          if test "$value" = yes; then
3952            eval value=\"\$LIB$uppername\"
3953            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3954            eval value=\"\$LTLIB$uppername\"
3955            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3956          else
3957                                    :
3958          fi
3959        else
3960                              found_dir=
3961          found_la=
3962          found_so=
3963          found_a=
3964          if test $use_additional = yes; then
3965            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3966              found_dir="$additional_libdir"
3967              found_so="$additional_libdir/lib$name.$shlibext"
3968              if test -f "$additional_libdir/lib$name.la"; then
3969                found_la="$additional_libdir/lib$name.la"
3970              fi
3971            else
3972              if test -f "$additional_libdir/lib$name.$libext"; then
3973                found_dir="$additional_libdir"
3974                found_a="$additional_libdir/lib$name.$libext"
3975                if test -f "$additional_libdir/lib$name.la"; then
3976                  found_la="$additional_libdir/lib$name.la"
3977                fi
3978              fi
3979            fi
3980          fi
3981          if test "X$found_dir" = "X"; then
3982            for x in $LDFLAGS $LTLIBICONV; do
3983
3984  acl_save_prefix="$prefix"
3985  prefix="$acl_final_prefix"
3986  acl_save_exec_prefix="$exec_prefix"
3987  exec_prefix="$acl_final_exec_prefix"
3988  eval x=\"$x\"
3989  exec_prefix="$acl_save_exec_prefix"
3990  prefix="$acl_save_prefix"
3991
3992              case "$x" in
3993                -L*)
3994                  dir=`echo "X$x" | sed -e 's/^X-L//'`
3995                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3996                    found_dir="$dir"
3997                    found_so="$dir/lib$name.$shlibext"
3998                    if test -f "$dir/lib$name.la"; then
3999                      found_la="$dir/lib$name.la"
4000                    fi
4001                  else
4002                    if test -f "$dir/lib$name.$libext"; then
4003                      found_dir="$dir"
4004                      found_a="$dir/lib$name.$libext"
4005                      if test -f "$dir/lib$name.la"; then
4006                        found_la="$dir/lib$name.la"
4007                      fi
4008                    fi
4009                  fi
4010                  ;;
4011              esac
4012              if test "X$found_dir" != "X"; then
4013                break
4014              fi
4015            done
4016          fi
4017          if test "X$found_dir" != "X"; then
4018                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4019            if test "X$found_so" != "X"; then
4020                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4021                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4022              else
4023                                                                                haveit=
4024                for x in $ltrpathdirs; do
4025                  if test "X$x" = "X$found_dir"; then
4026                    haveit=yes
4027                    break
4028                  fi
4029                done
4030                if test -z "$haveit"; then
4031                  ltrpathdirs="$ltrpathdirs $found_dir"
4032                fi
4033                                if test "$hardcode_direct" = yes; then
4034                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4035                else
4036                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4037                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4038                                                            haveit=
4039                    for x in $rpathdirs; do
4040                      if test "X$x" = "X$found_dir"; then
4041                        haveit=yes
4042                        break
4043                      fi
4044                    done
4045                    if test -z "$haveit"; then
4046                      rpathdirs="$rpathdirs $found_dir"
4047                    fi
4048                  else
4049                                                                                haveit=
4050                    for x in $LDFLAGS $LIBICONV; do
4051
4052  acl_save_prefix="$prefix"
4053  prefix="$acl_final_prefix"
4054  acl_save_exec_prefix="$exec_prefix"
4055  exec_prefix="$acl_final_exec_prefix"
4056  eval x=\"$x\"
4057  exec_prefix="$acl_save_exec_prefix"
4058  prefix="$acl_save_prefix"
4059
4060                      if test "X$x" = "X-L$found_dir"; then
4061                        haveit=yes
4062                        break
4063                      fi
4064                    done
4065                    if test -z "$haveit"; then
4066                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4067                    fi
4068                    if test "$hardcode_minus_L" != no; then
4069                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4070                    else
4071                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4072                    fi
4073                  fi
4074                fi
4075              fi
4076            else
4077              if test "X$found_a" != "X"; then
4078                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4079              else
4080                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4081              fi
4082            fi
4083                        additional_includedir=
4084            case "$found_dir" in
4085              */lib | */lib/)
4086                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4087                additional_includedir="$basedir/include"
4088                ;;
4089            esac
4090            if test "X$additional_includedir" != "X"; then
4091                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4092                haveit=
4093                if test "X$additional_includedir" = "X/usr/local/include"; then
4094                  if test -n "$GCC"; then
4095                    case $host_os in
4096                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4097                    esac
4098                  fi
4099                fi
4100                if test -z "$haveit"; then
4101                  for x in $CPPFLAGS $INCICONV; do
4102
4103  acl_save_prefix="$prefix"
4104  prefix="$acl_final_prefix"
4105  acl_save_exec_prefix="$exec_prefix"
4106  exec_prefix="$acl_final_exec_prefix"
4107  eval x=\"$x\"
4108  exec_prefix="$acl_save_exec_prefix"
4109  prefix="$acl_save_prefix"
4110
4111                    if test "X$x" = "X-I$additional_includedir"; then
4112                      haveit=yes
4113                      break
4114                    fi
4115                  done
4116                  if test -z "$haveit"; then
4117                    if test -d "$additional_includedir"; then
4118                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4119                    fi
4120                  fi
4121                fi
4122              fi
4123            fi
4124                        if test -n "$found_la"; then
4125                                                        save_libdir="$libdir"
4126              case "$found_la" in
4127                */* | *\\*) . "$found_la" ;;
4128                *) . "./$found_la" ;;
4129              esac
4130              libdir="$save_libdir"
4131                            for dep in $dependency_libs; do
4132                case "$dep" in
4133                  -L*)
4134                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4135                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4136                      haveit=
4137                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4138                        if test -n "$GCC"; then
4139                          case $host_os in
4140                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4141                          esac
4142                        fi
4143                      fi
4144                      if test -z "$haveit"; then
4145                        haveit=
4146                        for x in $LDFLAGS $LIBICONV; do
4147
4148  acl_save_prefix="$prefix"
4149  prefix="$acl_final_prefix"
4150  acl_save_exec_prefix="$exec_prefix"
4151  exec_prefix="$acl_final_exec_prefix"
4152  eval x=\"$x\"
4153  exec_prefix="$acl_save_exec_prefix"
4154  prefix="$acl_save_prefix"
4155
4156                          if test "X$x" = "X-L$additional_libdir"; then
4157                            haveit=yes
4158                            break
4159                          fi
4160                        done
4161                        if test -z "$haveit"; then
4162                          if test -d "$additional_libdir"; then
4163                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4164                          fi
4165                        fi
4166                        haveit=
4167                        for x in $LDFLAGS $LTLIBICONV; do
4168
4169  acl_save_prefix="$prefix"
4170  prefix="$acl_final_prefix"
4171  acl_save_exec_prefix="$exec_prefix"
4172  exec_prefix="$acl_final_exec_prefix"
4173  eval x=\"$x\"
4174  exec_prefix="$acl_save_exec_prefix"
4175  prefix="$acl_save_prefix"
4176
4177                          if test "X$x" = "X-L$additional_libdir"; then
4178                            haveit=yes
4179                            break
4180                          fi
4181                        done
4182                        if test -z "$haveit"; then
4183                          if test -d "$additional_libdir"; then
4184                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4185                          fi
4186                        fi
4187                      fi
4188                    fi
4189                    ;;
4190                  -R*)
4191                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4192                    if test "$enable_rpath" != no; then
4193                                                                  haveit=
4194                      for x in $rpathdirs; do
4195                        if test "X$x" = "X$dir"; then
4196                          haveit=yes
4197                          break
4198                        fi
4199                      done
4200                      if test -z "$haveit"; then
4201                        rpathdirs="$rpathdirs $dir"
4202                      fi
4203                                                                  haveit=
4204                      for x in $ltrpathdirs; do
4205                        if test "X$x" = "X$dir"; then
4206                          haveit=yes
4207                          break
4208                        fi
4209                      done
4210                      if test -z "$haveit"; then
4211                        ltrpathdirs="$ltrpathdirs $dir"
4212                      fi
4213                    fi
4214                    ;;
4215                  -l*)
4216                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4217                    ;;
4218                  *.la)
4219                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4220                    ;;
4221                  *)
4222                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4223                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4224                    ;;
4225                esac
4226              done
4227            fi
4228          else
4229                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4230            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4231          fi
4232        fi
4233      fi
4234    done
4235  done
4236  if test "X$rpathdirs" != "X"; then
4237    if test -n "$hardcode_libdir_separator"; then
4238                        alldirs=
4239      for found_dir in $rpathdirs; do
4240        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4241      done
4242            acl_save_libdir="$libdir"
4243      libdir="$alldirs"
4244      eval flag=\"$hardcode_libdir_flag_spec\"
4245      libdir="$acl_save_libdir"
4246      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4247    else
4248            for found_dir in $rpathdirs; do
4249        acl_save_libdir="$libdir"
4250        libdir="$found_dir"
4251        eval flag=\"$hardcode_libdir_flag_spec\"
4252        libdir="$acl_save_libdir"
4253        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4254      done
4255    fi
4256  fi
4257  if test "X$ltrpathdirs" != "X"; then
4258            for found_dir in $ltrpathdirs; do
4259      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4260    done
4261  fi
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
4282echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
4283if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
4284  echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286  gt_save_CPPFLAGS="$CPPFLAGS"
4287     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
4288     gt_save_LIBS="$LIBS"
4289     LIBS="$LIBS -framework CoreFoundation"
4290     cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h.  */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h.  */
4296#include <CFPreferences.h>
4297int
4298main ()
4299{
4300CFPreferencesCopyAppValue(NULL, NULL)
4301  ;
4302  return 0;
4303}
4304_ACEOF
4305rm -f conftest.$ac_objext conftest$ac_exeext
4306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307  (eval $ac_link) 2>conftest.er1
4308  ac_status=$?
4309  grep -v '^ *+' conftest.er1 >conftest.err
4310  rm -f conftest.er1
4311  cat conftest.err >&5
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); } &&
4314	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316  (eval $ac_try) 2>&5
4317  ac_status=$?
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); }; } &&
4320	 { ac_try='test -s conftest$ac_exeext'
4321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322  (eval $ac_try) 2>&5
4323  ac_status=$?
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); }; }; then
4326  gt_cv_func_CFPreferencesCopyAppValue=yes
4327else
4328  echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331	gt_cv_func_CFPreferencesCopyAppValue=no
4332fi
4333
4334rm -f conftest.err conftest.$ac_objext \
4335      conftest$ac_exeext conftest.$ac_ext
4336     CPPFLAGS="$gt_save_CPPFLAGS"
4337     LIBS="$gt_save_LIBS"
4338fi
4339{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4340echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4341  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4342
4343cat >>confdefs.h <<\_ACEOF
4344#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
4345_ACEOF
4346
4347  fi
4348    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
4349echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
4350if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  gt_save_CPPFLAGS="$CPPFLAGS"
4354     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
4355     gt_save_LIBS="$LIBS"
4356     LIBS="$LIBS -framework CoreFoundation"
4357     cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h.  */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h.  */
4363#include <CFLocale.h>
4364int
4365main ()
4366{
4367CFLocaleCopyCurrent();
4368  ;
4369  return 0;
4370}
4371_ACEOF
4372rm -f conftest.$ac_objext conftest$ac_exeext
4373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374  (eval $ac_link) 2>conftest.er1
4375  ac_status=$?
4376  grep -v '^ *+' conftest.er1 >conftest.err
4377  rm -f conftest.er1
4378  cat conftest.err >&5
4379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); } &&
4381	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383  (eval $ac_try) 2>&5
4384  ac_status=$?
4385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386  (exit $ac_status); }; } &&
4387	 { ac_try='test -s conftest$ac_exeext'
4388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389  (eval $ac_try) 2>&5
4390  ac_status=$?
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); }; }; then
4393  gt_cv_func_CFLocaleCopyCurrent=yes
4394else
4395  echo "$as_me: failed program was:" >&5
4396sed 's/^/| /' conftest.$ac_ext >&5
4397
4398	gt_cv_func_CFLocaleCopyCurrent=no
4399fi
4400
4401rm -f conftest.err conftest.$ac_objext \
4402      conftest$ac_exeext conftest.$ac_ext
4403     CPPFLAGS="$gt_save_CPPFLAGS"
4404     LIBS="$gt_save_LIBS"
4405fi
4406{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4407echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4408  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4409
4410cat >>confdefs.h <<\_ACEOF
4411#define HAVE_CFLOCALECOPYCURRENT 1
4412_ACEOF
4413
4414  fi
4415  INTL_MACOSX_LIBS=
4416  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4417    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4418  fi
4419
4420
4421
4422
4423  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4424echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4425    # Check whether --enable-nls was given.
4426if test "${enable_nls+set}" = set; then
4427  enableval=$enable_nls; USE_NLS=$enableval
4428else
4429  USE_NLS=yes
4430fi
4431
4432  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4433echo "${ECHO_T}$USE_NLS" >&6; }
4434
4435
4436
4437
4438  LIBINTL=
4439  LTLIBINTL=
4440  POSUB=
4441
4442    if test "$USE_NLS" = "yes"; then
4443    gt_use_preinstalled_gnugettext=no
4444
4445
4446
4447
4448
4449
4450        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4451echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4452if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4453  echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455  cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h.  */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h.  */
4461#include <libintl.h>
4462extern int _nl_msg_cat_cntr;
4463extern int *_nl_domain_bindings;
4464int
4465main ()
4466{
4467bindtextdomain ("", "");
4468return (gettext ("") != 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
4469  ;
4470  return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475  (eval $ac_link) 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } &&
4482	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484  (eval $ac_try) 2>&5
4485  ac_status=$?
4486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487  (exit $ac_status); }; } &&
4488	 { ac_try='test -s conftest$ac_exeext'
4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490  (eval $ac_try) 2>&5
4491  ac_status=$?
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); }; }; then
4494  gt_cv_func_gnugettext1_libc=yes
4495else
4496  echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499	gt_cv_func_gnugettext1_libc=no
4500fi
4501
4502rm -f conftest.err conftest.$ac_objext \
4503      conftest$ac_exeext conftest.$ac_ext
4504fi
4505{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4506echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
4507
4508        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4509
4510
4511
4512
4513
4514          am_save_CPPFLAGS="$CPPFLAGS"
4515
4516  for element in $INCICONV; do
4517    haveit=
4518    for x in $CPPFLAGS; do
4519
4520  acl_save_prefix="$prefix"
4521  prefix="$acl_final_prefix"
4522  acl_save_exec_prefix="$exec_prefix"
4523  exec_prefix="$acl_final_exec_prefix"
4524  eval x=\"$x\"
4525  exec_prefix="$acl_save_exec_prefix"
4526  prefix="$acl_save_prefix"
4527
4528      if test "X$x" = "X$element"; then
4529        haveit=yes
4530        break
4531      fi
4532    done
4533    if test -z "$haveit"; then
4534      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4535    fi
4536  done
4537
4538
4539  { echo "$as_me:$LINENO: checking for iconv" >&5
4540echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4541if test "${am_cv_func_iconv+set}" = set; then
4542  echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544
4545    am_cv_func_iconv="no, consider installing GNU libiconv"
4546    am_cv_lib_iconv=no
4547    cat >conftest.$ac_ext <<_ACEOF
4548/* confdefs.h.  */
4549_ACEOF
4550cat confdefs.h >>conftest.$ac_ext
4551cat >>conftest.$ac_ext <<_ACEOF
4552/* end confdefs.h.  */
4553#include <stdlib.h>
4554#include <iconv.h>
4555int
4556main ()
4557{
4558iconv_t cd = iconv_open("","");
4559       iconv(cd,NULL,NULL,NULL,NULL);
4560       iconv_close(cd);
4561  ;
4562  return 0;
4563}
4564_ACEOF
4565rm -f conftest.$ac_objext conftest$ac_exeext
4566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567  (eval $ac_link) 2>conftest.er1
4568  ac_status=$?
4569  grep -v '^ *+' conftest.er1 >conftest.err
4570  rm -f conftest.er1
4571  cat conftest.err >&5
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); } &&
4574	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576  (eval $ac_try) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; } &&
4580	 { ac_try='test -s conftest$ac_exeext'
4581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582  (eval $ac_try) 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); }; }; then
4586  am_cv_func_iconv=yes
4587else
4588  echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591
4592fi
4593
4594rm -f conftest.err conftest.$ac_objext \
4595      conftest$ac_exeext conftest.$ac_ext
4596    if test "$am_cv_func_iconv" != yes; then
4597      am_save_LIBS="$LIBS"
4598      LIBS="$LIBS $LIBICONV"
4599      cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h.  */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h.  */
4605#include <stdlib.h>
4606#include <iconv.h>
4607int
4608main ()
4609{
4610iconv_t cd = iconv_open("","");
4611         iconv(cd,NULL,NULL,NULL,NULL);
4612         iconv_close(cd);
4613  ;
4614  return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext conftest$ac_exeext
4618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619  (eval $ac_link) 2>conftest.er1
4620  ac_status=$?
4621  grep -v '^ *+' conftest.er1 >conftest.err
4622  rm -f conftest.er1
4623  cat conftest.err >&5
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } &&
4626	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628  (eval $ac_try) 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); }; } &&
4632	 { ac_try='test -s conftest$ac_exeext'
4633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634  (eval $ac_try) 2>&5
4635  ac_status=$?
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); }; }; then
4638  am_cv_lib_iconv=yes
4639        am_cv_func_iconv=yes
4640else
4641  echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644
4645fi
4646
4647rm -f conftest.err conftest.$ac_objext \
4648      conftest$ac_exeext conftest.$ac_ext
4649      LIBS="$am_save_LIBS"
4650    fi
4651
4652fi
4653{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4654echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4655  if test "$am_cv_func_iconv" = yes; then
4656
4657cat >>confdefs.h <<\_ACEOF
4658#define HAVE_ICONV 1
4659_ACEOF
4660
4661  fi
4662  if test "$am_cv_lib_iconv" = yes; then
4663    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4664echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4665    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4666echo "${ECHO_T}$LIBICONV" >&6; }
4667  else
4668            CPPFLAGS="$am_save_CPPFLAGS"
4669    LIBICONV=
4670    LTLIBICONV=
4671  fi
4672
4673
4674
4675
4676
4677
4678    use_additional=yes
4679
4680  acl_save_prefix="$prefix"
4681  prefix="$acl_final_prefix"
4682  acl_save_exec_prefix="$exec_prefix"
4683  exec_prefix="$acl_final_exec_prefix"
4684
4685    eval additional_includedir=\"$includedir\"
4686    eval additional_libdir=\"$libdir\"
4687
4688  exec_prefix="$acl_save_exec_prefix"
4689  prefix="$acl_save_prefix"
4690
4691
4692# Check whether --with-libintl-prefix was given.
4693if test "${with_libintl_prefix+set}" = set; then
4694  withval=$with_libintl_prefix;
4695    if test "X$withval" = "Xno"; then
4696      use_additional=no
4697    else
4698      if test "X$withval" = "X"; then
4699
4700  acl_save_prefix="$prefix"
4701  prefix="$acl_final_prefix"
4702  acl_save_exec_prefix="$exec_prefix"
4703  exec_prefix="$acl_final_exec_prefix"
4704
4705          eval additional_includedir=\"$includedir\"
4706          eval additional_libdir=\"$libdir\"
4707
4708  exec_prefix="$acl_save_exec_prefix"
4709  prefix="$acl_save_prefix"
4710
4711      else
4712        additional_includedir="$withval/include"
4713        additional_libdir="$withval/lib"
4714      fi
4715    fi
4716
4717fi
4718
4719      LIBINTL=
4720  LTLIBINTL=
4721  INCINTL=
4722  rpathdirs=
4723  ltrpathdirs=
4724  names_already_handled=
4725  names_next_round='intl '
4726  while test -n "$names_next_round"; do
4727    names_this_round="$names_next_round"
4728    names_next_round=
4729    for name in $names_this_round; do
4730      already_handled=
4731      for n in $names_already_handled; do
4732        if test "$n" = "$name"; then
4733          already_handled=yes
4734          break
4735        fi
4736      done
4737      if test -z "$already_handled"; then
4738        names_already_handled="$names_already_handled $name"
4739                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4740        eval value=\"\$HAVE_LIB$uppername\"
4741        if test -n "$value"; then
4742          if test "$value" = yes; then
4743            eval value=\"\$LIB$uppername\"
4744            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4745            eval value=\"\$LTLIB$uppername\"
4746            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4747          else
4748                                    :
4749          fi
4750        else
4751                              found_dir=
4752          found_la=
4753          found_so=
4754          found_a=
4755          if test $use_additional = yes; then
4756            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4757              found_dir="$additional_libdir"
4758              found_so="$additional_libdir/lib$name.$shlibext"
4759              if test -f "$additional_libdir/lib$name.la"; then
4760                found_la="$additional_libdir/lib$name.la"
4761              fi
4762            else
4763              if test -f "$additional_libdir/lib$name.$libext"; then
4764                found_dir="$additional_libdir"
4765                found_a="$additional_libdir/lib$name.$libext"
4766                if test -f "$additional_libdir/lib$name.la"; then
4767                  found_la="$additional_libdir/lib$name.la"
4768                fi
4769              fi
4770            fi
4771          fi
4772          if test "X$found_dir" = "X"; then
4773            for x in $LDFLAGS $LTLIBINTL; do
4774
4775  acl_save_prefix="$prefix"
4776  prefix="$acl_final_prefix"
4777  acl_save_exec_prefix="$exec_prefix"
4778  exec_prefix="$acl_final_exec_prefix"
4779  eval x=\"$x\"
4780  exec_prefix="$acl_save_exec_prefix"
4781  prefix="$acl_save_prefix"
4782
4783              case "$x" in
4784                -L*)
4785                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4786                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4787                    found_dir="$dir"
4788                    found_so="$dir/lib$name.$shlibext"
4789                    if test -f "$dir/lib$name.la"; then
4790                      found_la="$dir/lib$name.la"
4791                    fi
4792                  else
4793                    if test -f "$dir/lib$name.$libext"; then
4794                      found_dir="$dir"
4795                      found_a="$dir/lib$name.$libext"
4796                      if test -f "$dir/lib$name.la"; then
4797                        found_la="$dir/lib$name.la"
4798                      fi
4799                    fi
4800                  fi
4801                  ;;
4802              esac
4803              if test "X$found_dir" != "X"; then
4804                break
4805              fi
4806            done
4807          fi
4808          if test "X$found_dir" != "X"; then
4809                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4810            if test "X$found_so" != "X"; then
4811                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4812                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4813              else
4814                                                                                haveit=
4815                for x in $ltrpathdirs; do
4816                  if test "X$x" = "X$found_dir"; then
4817                    haveit=yes
4818                    break
4819                  fi
4820                done
4821                if test -z "$haveit"; then
4822                  ltrpathdirs="$ltrpathdirs $found_dir"
4823                fi
4824                                if test "$hardcode_direct" = yes; then
4825                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4826                else
4827                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4828                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4829                                                            haveit=
4830                    for x in $rpathdirs; do
4831                      if test "X$x" = "X$found_dir"; then
4832                        haveit=yes
4833                        break
4834                      fi
4835                    done
4836                    if test -z "$haveit"; then
4837                      rpathdirs="$rpathdirs $found_dir"
4838                    fi
4839                  else
4840                                                                                haveit=
4841                    for x in $LDFLAGS $LIBINTL; do
4842
4843  acl_save_prefix="$prefix"
4844  prefix="$acl_final_prefix"
4845  acl_save_exec_prefix="$exec_prefix"
4846  exec_prefix="$acl_final_exec_prefix"
4847  eval x=\"$x\"
4848  exec_prefix="$acl_save_exec_prefix"
4849  prefix="$acl_save_prefix"
4850
4851                      if test "X$x" = "X-L$found_dir"; then
4852                        haveit=yes
4853                        break
4854                      fi
4855                    done
4856                    if test -z "$haveit"; then
4857                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4858                    fi
4859                    if test "$hardcode_minus_L" != no; then
4860                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4861                    else
4862                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4863                    fi
4864                  fi
4865                fi
4866              fi
4867            else
4868              if test "X$found_a" != "X"; then
4869                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4870              else
4871                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4872              fi
4873            fi
4874                        additional_includedir=
4875            case "$found_dir" in
4876              */lib | */lib/)
4877                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4878                additional_includedir="$basedir/include"
4879                ;;
4880            esac
4881            if test "X$additional_includedir" != "X"; then
4882                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4883                haveit=
4884                if test "X$additional_includedir" = "X/usr/local/include"; then
4885                  if test -n "$GCC"; then
4886                    case $host_os in
4887                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4888                    esac
4889                  fi
4890                fi
4891                if test -z "$haveit"; then
4892                  for x in $CPPFLAGS $INCINTL; do
4893
4894  acl_save_prefix="$prefix"
4895  prefix="$acl_final_prefix"
4896  acl_save_exec_prefix="$exec_prefix"
4897  exec_prefix="$acl_final_exec_prefix"
4898  eval x=\"$x\"
4899  exec_prefix="$acl_save_exec_prefix"
4900  prefix="$acl_save_prefix"
4901
4902                    if test "X$x" = "X-I$additional_includedir"; then
4903                      haveit=yes
4904                      break
4905                    fi
4906                  done
4907                  if test -z "$haveit"; then
4908                    if test -d "$additional_includedir"; then
4909                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4910                    fi
4911                  fi
4912                fi
4913              fi
4914            fi
4915                        if test -n "$found_la"; then
4916                                                        save_libdir="$libdir"
4917              case "$found_la" in
4918                */* | *\\*) . "$found_la" ;;
4919                *) . "./$found_la" ;;
4920              esac
4921              libdir="$save_libdir"
4922                            for dep in $dependency_libs; do
4923                case "$dep" in
4924                  -L*)
4925                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4926                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4927                      haveit=
4928                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4929                        if test -n "$GCC"; then
4930                          case $host_os in
4931                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4932                          esac
4933                        fi
4934                      fi
4935                      if test -z "$haveit"; then
4936                        haveit=
4937                        for x in $LDFLAGS $LIBINTL; do
4938
4939  acl_save_prefix="$prefix"
4940  prefix="$acl_final_prefix"
4941  acl_save_exec_prefix="$exec_prefix"
4942  exec_prefix="$acl_final_exec_prefix"
4943  eval x=\"$x\"
4944  exec_prefix="$acl_save_exec_prefix"
4945  prefix="$acl_save_prefix"
4946
4947                          if test "X$x" = "X-L$additional_libdir"; then
4948                            haveit=yes
4949                            break
4950                          fi
4951                        done
4952                        if test -z "$haveit"; then
4953                          if test -d "$additional_libdir"; then
4954                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4955                          fi
4956                        fi
4957                        haveit=
4958                        for x in $LDFLAGS $LTLIBINTL; do
4959
4960  acl_save_prefix="$prefix"
4961  prefix="$acl_final_prefix"
4962  acl_save_exec_prefix="$exec_prefix"
4963  exec_prefix="$acl_final_exec_prefix"
4964  eval x=\"$x\"
4965  exec_prefix="$acl_save_exec_prefix"
4966  prefix="$acl_save_prefix"
4967
4968                          if test "X$x" = "X-L$additional_libdir"; then
4969                            haveit=yes
4970                            break
4971                          fi
4972                        done
4973                        if test -z "$haveit"; then
4974                          if test -d "$additional_libdir"; then
4975                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4976                          fi
4977                        fi
4978                      fi
4979                    fi
4980                    ;;
4981                  -R*)
4982                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4983                    if test "$enable_rpath" != no; then
4984                                                                  haveit=
4985                      for x in $rpathdirs; do
4986                        if test "X$x" = "X$dir"; then
4987                          haveit=yes
4988                          break
4989                        fi
4990                      done
4991                      if test -z "$haveit"; then
4992                        rpathdirs="$rpathdirs $dir"
4993                      fi
4994                                                                  haveit=
4995                      for x in $ltrpathdirs; do
4996                        if test "X$x" = "X$dir"; then
4997                          haveit=yes
4998                          break
4999                        fi
5000                      done
5001                      if test -z "$haveit"; then
5002                        ltrpathdirs="$ltrpathdirs $dir"
5003                      fi
5004                    fi
5005                    ;;
5006                  -l*)
5007                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5008                    ;;
5009                  *.la)
5010                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5011                    ;;
5012                  *)
5013                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5014                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5015                    ;;
5016                esac
5017              done
5018            fi
5019          else
5020                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5021            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5022          fi
5023        fi
5024      fi
5025    done
5026  done
5027  if test "X$rpathdirs" != "X"; then
5028    if test -n "$hardcode_libdir_separator"; then
5029                        alldirs=
5030      for found_dir in $rpathdirs; do
5031        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5032      done
5033            acl_save_libdir="$libdir"
5034      libdir="$alldirs"
5035      eval flag=\"$hardcode_libdir_flag_spec\"
5036      libdir="$acl_save_libdir"
5037      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5038    else
5039            for found_dir in $rpathdirs; do
5040        acl_save_libdir="$libdir"
5041        libdir="$found_dir"
5042        eval flag=\"$hardcode_libdir_flag_spec\"
5043        libdir="$acl_save_libdir"
5044        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5045      done
5046    fi
5047  fi
5048  if test "X$ltrpathdirs" != "X"; then
5049            for found_dir in $ltrpathdirs; do
5050      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5051    done
5052  fi
5053
5054          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5055echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
5056if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5057  echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059  gt_save_CPPFLAGS="$CPPFLAGS"
5060            CPPFLAGS="$CPPFLAGS $INCINTL"
5061            gt_save_LIBS="$LIBS"
5062            LIBS="$LIBS $LIBINTL"
5063                        cat >conftest.$ac_ext <<_ACEOF
5064/* confdefs.h.  */
5065_ACEOF
5066cat confdefs.h >>conftest.$ac_ext
5067cat >>conftest.$ac_ext <<_ACEOF
5068/* end confdefs.h.  */
5069#include <libintl.h>
5070extern int _nl_msg_cat_cntr;
5071extern
5072#ifdef __cplusplus
5073"C"
5074#endif
5075const char *_nl_expand_alias (const char *);
5076int
5077main ()
5078{
5079bindtextdomain ("", "");
5080return (gettext ("") != 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5081  ;
5082  return 0;
5083}
5084_ACEOF
5085rm -f conftest.$ac_objext conftest$ac_exeext
5086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5087  (eval $ac_link) 2>conftest.er1
5088  ac_status=$?
5089  grep -v '^ *+' conftest.er1 >conftest.err
5090  rm -f conftest.er1
5091  cat conftest.err >&5
5092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093  (exit $ac_status); } &&
5094	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096  (eval $ac_try) 2>&5
5097  ac_status=$?
5098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099  (exit $ac_status); }; } &&
5100	 { ac_try='test -s conftest$ac_exeext'
5101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102  (eval $ac_try) 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); }; }; then
5106  gt_cv_func_gnugettext1_libintl=yes
5107else
5108  echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111	gt_cv_func_gnugettext1_libintl=no
5112fi
5113
5114rm -f conftest.err conftest.$ac_objext \
5115      conftest$ac_exeext conftest.$ac_ext
5116                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5117              LIBS="$LIBS $LIBICONV"
5118              cat >conftest.$ac_ext <<_ACEOF
5119/* confdefs.h.  */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h.  */
5124#include <libintl.h>
5125extern int _nl_msg_cat_cntr;
5126extern
5127#ifdef __cplusplus
5128"C"
5129#endif
5130const char *_nl_expand_alias (const char *);
5131int
5132main ()
5133{
5134bindtextdomain ("", "");
5135return (gettext ("") != 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5136  ;
5137  return 0;
5138}
5139_ACEOF
5140rm -f conftest.$ac_objext conftest$ac_exeext
5141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142  (eval $ac_link) 2>conftest.er1
5143  ac_status=$?
5144  grep -v '^ *+' conftest.er1 >conftest.err
5145  rm -f conftest.er1
5146  cat conftest.err >&5
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); } &&
5149	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151  (eval $ac_try) 2>&5
5152  ac_status=$?
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); }; } &&
5155	 { ac_try='test -s conftest$ac_exeext'
5156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157  (eval $ac_try) 2>&5
5158  ac_status=$?
5159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160  (exit $ac_status); }; }; then
5161  LIBINTL="$LIBINTL $LIBICONV"
5162                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5163                gt_cv_func_gnugettext1_libintl=yes
5164
5165else
5166  echo "$as_me: failed program was:" >&5
5167sed 's/^/| /' conftest.$ac_ext >&5
5168
5169
5170fi
5171
5172rm -f conftest.err conftest.$ac_objext \
5173      conftest$ac_exeext conftest.$ac_ext
5174            fi
5175            CPPFLAGS="$gt_save_CPPFLAGS"
5176            LIBS="$gt_save_LIBS"
5177fi
5178{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5179echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
5180        fi
5181
5182                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5183           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5184                && test "$PACKAGE" != gettext-runtime \
5185                && test "$PACKAGE" != gettext-tools; }; then
5186          gt_use_preinstalled_gnugettext=yes
5187        else
5188                    LIBINTL=
5189          LTLIBINTL=
5190          INCINTL=
5191        fi
5192
5193
5194
5195    if test -n "$INTL_MACOSX_LIBS"; then
5196      if test "$gt_use_preinstalled_gnugettext" = "yes" \
5197         || test "$nls_cv_use_gnu_gettext" = "yes"; then
5198                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5199        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5200      fi
5201    fi
5202
5203    if test "$gt_use_preinstalled_gnugettext" = "yes" \
5204       || test "$nls_cv_use_gnu_gettext" = "yes"; then
5205
5206cat >>confdefs.h <<\_ACEOF
5207#define ENABLE_NLS 1
5208_ACEOF
5209
5210    else
5211      USE_NLS=no
5212    fi
5213  fi
5214
5215  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
5216echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
5217  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5218echo "${ECHO_T}$USE_NLS" >&6; }
5219  if test "$USE_NLS" = "yes"; then
5220    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5221echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
5222    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5223      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5224        gt_source="external libintl"
5225      else
5226        gt_source="libc"
5227      fi
5228    else
5229      gt_source="included intl directory"
5230    fi
5231    { echo "$as_me:$LINENO: result: $gt_source" >&5
5232echo "${ECHO_T}$gt_source" >&6; }
5233  fi
5234
5235  if test "$USE_NLS" = "yes"; then
5236
5237    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5238      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5239        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
5240echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
5241        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
5242echo "${ECHO_T}$LIBINTL" >&6; }
5243
5244  for element in $INCINTL; do
5245    haveit=
5246    for x in $CPPFLAGS; do
5247
5248  acl_save_prefix="$prefix"
5249  prefix="$acl_final_prefix"
5250  acl_save_exec_prefix="$exec_prefix"
5251  exec_prefix="$acl_final_exec_prefix"
5252  eval x=\"$x\"
5253  exec_prefix="$acl_save_exec_prefix"
5254  prefix="$acl_save_prefix"
5255
5256      if test "X$x" = "X$element"; then
5257        haveit=yes
5258        break
5259      fi
5260    done
5261    if test -z "$haveit"; then
5262      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5263    fi
5264  done
5265
5266      fi
5267
5268
5269cat >>confdefs.h <<\_ACEOF
5270#define HAVE_GETTEXT 1
5271_ACEOF
5272
5273
5274cat >>confdefs.h <<\_ACEOF
5275#define HAVE_DCGETTEXT 1
5276_ACEOF
5277
5278    fi
5279
5280        POSUB=po
5281  fi
5282
5283
5284
5285    INTLLIBS="$LIBINTL"
5286
5287
5288
5289
5290
5291
5292
5293CPPFLAGS="$CPPFLAGS -Wall "
5294
5295if test "${ac_cv_c_compiler_gnu}" = "yes"; then
5296  CFLAGS="$CFLAGS \
5297	-ggdb \
5298	-Wall \
5299	-Wcast-align \
5300	-Wcast-qual \
5301	-Wmissing-declarations \
5302	-Wmissing-prototypes \
5303	-Wpointer-arith \
5304	-Wreturn-type \
5305	-Wstrict-prototypes \
5306	"
5307fi # ac_cv_c_compiler_gnu
5308
5309
5310# Find a good install program.  We prefer a C program (faster),
5311# so one script is as good as another.  But avoid the broken or
5312# incompatible versions:
5313# SysV /etc/install, /usr/sbin/install
5314# SunOS /usr/etc/install
5315# IRIX /sbin/install
5316# AIX /bin/install
5317# AmigaOS /C/install, which installs bootblocks on floppy discs
5318# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5319# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5320# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5321# OS/2's system install, which has a completely different semantic
5322# ./install, which can be erroneously created by make from ./install.sh.
5323{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5324echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5325if test -z "$INSTALL"; then
5326if test "${ac_cv_path_install+set}" = set; then
5327  echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332  IFS=$as_save_IFS
5333  test -z "$as_dir" && as_dir=.
5334  # Account for people who put trailing slashes in PATH elements.
5335case $as_dir/ in
5336  ./ | .// | /cC/* | \
5337  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5338  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5339  /usr/ucb/* ) ;;
5340  *)
5341    # OSF1 and SCO ODT 3.0 have their own names for install.
5342    # Don't use installbsd from OSF since it installs stuff as root
5343    # by default.
5344    for ac_prog in ginstall scoinst install; do
5345      for ac_exec_ext in '' $ac_executable_extensions; do
5346	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5347	  if test $ac_prog = install &&
5348	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5349	    # AIX install.  It has an incompatible calling convention.
5350	    :
5351	  elif test $ac_prog = install &&
5352	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5353	    # program-specific install script used by HP pwplus--don't use.
5354	    :
5355	  else
5356	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5357	    break 3
5358	  fi
5359	fi
5360      done
5361    done
5362    ;;
5363esac
5364done
5365IFS=$as_save_IFS
5366
5367
5368fi
5369  if test "${ac_cv_path_install+set}" = set; then
5370    INSTALL=$ac_cv_path_install
5371  else
5372    # As a last resort, use the slow shell script.  Don't cache a
5373    # value for INSTALL within a source directory, because that will
5374    # break other packages using the cache if that directory is
5375    # removed, or if the value is a relative name.
5376    INSTALL=$ac_install_sh
5377  fi
5378fi
5379{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5380echo "${ECHO_T}$INSTALL" >&6; }
5381
5382# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5383# It thinks the first close brace ends the variable substitution.
5384test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5385
5386test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5387
5388test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5389
5390ac_ext=c
5391ac_cpp='$CPP $CPPFLAGS'
5392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5396echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5397# On Suns, sometimes $CPP names a directory.
5398if test -n "$CPP" && test -d "$CPP"; then
5399  CPP=
5400fi
5401if test -z "$CPP"; then
5402  if test "${ac_cv_prog_CPP+set}" = set; then
5403  echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405      # Double quotes because CPP needs to be expanded
5406    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5407    do
5408      ac_preproc_ok=false
5409for ac_c_preproc_warn_flag in '' yes
5410do
5411  # Use a header file that comes with gcc, so configuring glibc
5412  # with a fresh cross-compiler works.
5413  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414  # <limits.h> exists even on freestanding compilers.
5415  # On the NeXT, cc -E runs the code through the compiler's parser,
5416  # not just through cpp. "Syntax error" is here to catch this case.
5417  cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h.  */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h.  */
5423#ifdef __STDC__
5424# include <limits.h>
5425#else
5426# include <assert.h>
5427#endif
5428		     Syntax error
5429_ACEOF
5430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5431  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5432  ac_status=$?
5433  grep -v '^ *+' conftest.er1 >conftest.err
5434  rm -f conftest.er1
5435  cat conftest.err >&5
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); } >/dev/null; then
5438  if test -s conftest.err; then
5439    ac_cpp_err=$ac_c_preproc_warn_flag
5440    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5441  else
5442    ac_cpp_err=
5443  fi
5444else
5445  ac_cpp_err=yes
5446fi
5447if test -z "$ac_cpp_err"; then
5448  :
5449else
5450  echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453  # Broken: fails on valid input.
5454continue
5455fi
5456
5457rm -f conftest.err conftest.$ac_ext
5458
5459  # OK, works on sane cases.  Now check whether nonexistent headers
5460  # can be detected and how.
5461  cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h.  */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h.  */
5467#include <ac_nonexistent.h>
5468_ACEOF
5469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5471  ac_status=$?
5472  grep -v '^ *+' conftest.er1 >conftest.err
5473  rm -f conftest.er1
5474  cat conftest.err >&5
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); } >/dev/null; then
5477  if test -s conftest.err; then
5478    ac_cpp_err=$ac_c_preproc_warn_flag
5479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5480  else
5481    ac_cpp_err=
5482  fi
5483else
5484  ac_cpp_err=yes
5485fi
5486if test -z "$ac_cpp_err"; then
5487  # Broken: success on invalid input.
5488continue
5489else
5490  echo "$as_me: failed program was:" >&5
5491sed 's/^/| /' conftest.$ac_ext >&5
5492
5493  # Passes both tests.
5494ac_preproc_ok=:
5495break
5496fi
5497
5498rm -f conftest.err conftest.$ac_ext
5499
5500done
5501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5502rm -f conftest.err conftest.$ac_ext
5503if $ac_preproc_ok; then
5504  break
5505fi
5506
5507    done
5508    ac_cv_prog_CPP=$CPP
5509
5510fi
5511  CPP=$ac_cv_prog_CPP
5512else
5513  ac_cv_prog_CPP=$CPP
5514fi
5515{ echo "$as_me:$LINENO: result: $CPP" >&5
5516echo "${ECHO_T}$CPP" >&6; }
5517ac_preproc_ok=false
5518for ac_c_preproc_warn_flag in '' yes
5519do
5520  # Use a header file that comes with gcc, so configuring glibc
5521  # with a fresh cross-compiler works.
5522  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5523  # <limits.h> exists even on freestanding compilers.
5524  # On the NeXT, cc -E runs the code through the compiler's parser,
5525  # not just through cpp. "Syntax error" is here to catch this case.
5526  cat >conftest.$ac_ext <<_ACEOF
5527/* confdefs.h.  */
5528_ACEOF
5529cat confdefs.h >>conftest.$ac_ext
5530cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h.  */
5532#ifdef __STDC__
5533# include <limits.h>
5534#else
5535# include <assert.h>
5536#endif
5537		     Syntax error
5538_ACEOF
5539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5540  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5541  ac_status=$?
5542  grep -v '^ *+' conftest.er1 >conftest.err
5543  rm -f conftest.er1
5544  cat conftest.err >&5
5545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546  (exit $ac_status); } >/dev/null; then
5547  if test -s conftest.err; then
5548    ac_cpp_err=$ac_c_preproc_warn_flag
5549    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5550  else
5551    ac_cpp_err=
5552  fi
5553else
5554  ac_cpp_err=yes
5555fi
5556if test -z "$ac_cpp_err"; then
5557  :
5558else
5559  echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562  # Broken: fails on valid input.
5563continue
5564fi
5565
5566rm -f conftest.err conftest.$ac_ext
5567
5568  # OK, works on sane cases.  Now check whether nonexistent headers
5569  # can be detected and how.
5570  cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h.  */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h.  */
5576#include <ac_nonexistent.h>
5577_ACEOF
5578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5579  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5580  ac_status=$?
5581  grep -v '^ *+' conftest.er1 >conftest.err
5582  rm -f conftest.er1
5583  cat conftest.err >&5
5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585  (exit $ac_status); } >/dev/null; then
5586  if test -s conftest.err; then
5587    ac_cpp_err=$ac_c_preproc_warn_flag
5588    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5589  else
5590    ac_cpp_err=
5591  fi
5592else
5593  ac_cpp_err=yes
5594fi
5595if test -z "$ac_cpp_err"; then
5596  # Broken: success on invalid input.
5597continue
5598else
5599  echo "$as_me: failed program was:" >&5
5600sed 's/^/| /' conftest.$ac_ext >&5
5601
5602  # Passes both tests.
5603ac_preproc_ok=:
5604break
5605fi
5606
5607rm -f conftest.err conftest.$ac_ext
5608
5609done
5610# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5611rm -f conftest.err conftest.$ac_ext
5612if $ac_preproc_ok; then
5613  :
5614else
5615  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5616See \`config.log' for more details." >&5
5617echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5618See \`config.log' for more details." >&2;}
5619   { (exit 1); exit 1; }; }
5620fi
5621
5622ac_ext=c
5623ac_cpp='$CPP $CPPFLAGS'
5624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5626ac_compiler_gnu=$ac_cv_c_compiler_gnu
5627
5628
5629{ echo "$as_me:$LINENO: checking for X" >&5
5630echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5631
5632ac_path_x_has_been_run=yes
5633
5634# Check whether --with-x was given.
5635if test "${with_x+set}" = set; then
5636  withval=$with_x;
5637fi
5638
5639# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5640if test "x$with_x" = xno; then
5641  # The user explicitly disabled X.
5642  have_x=disabled
5643else
5644  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5645    # Both variables are already set.
5646    have_x=yes
5647  else
5648    if test "${ac_cv_have_x+set}" = set; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651  # One or both of the vars are not set, and there is no cached value.
5652ac_x_includes=no ac_x_libraries=no
5653rm -f -r conftest.dir
5654if mkdir conftest.dir; then
5655  cd conftest.dir
5656  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5657  cat >Imakefile <<'_ACEOF'
5658acfindx:
5659	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5660_ACEOF
5661  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5662    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5663    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5664    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5665    for ac_extension in a so sl; do
5666      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5667	 test -f $ac_im_libdir/libX11.$ac_extension; then
5668	ac_im_usrlibdir=$ac_im_libdir; break
5669      fi
5670    done
5671    # Screen out bogus values from the imake configuration.  They are
5672    # bogus both because they are the default anyway, and because
5673    # using them would break gcc on systems where it needs fixed includes.
5674    case $ac_im_incroot in
5675	/usr/include) ac_x_includes= ;;
5676	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5677    esac
5678    case $ac_im_usrlibdir in
5679	/usr/lib | /lib) ;;
5680	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5681    esac
5682  fi
5683  cd ..
5684  rm -f -r conftest.dir
5685fi
5686
5687# Standard set of common directories for X headers.
5688# Check X11 before X11Rn because it is often a symlink to the current release.
5689ac_x_header_dirs='
5690/usr/X11/include
5691/usr/X11R6/include
5692/usr/X11R5/include
5693/usr/X11R4/include
5694
5695/usr/include/X11
5696/usr/include/X11R6
5697/usr/include/X11R5
5698/usr/include/X11R4
5699
5700/usr/local/X11/include
5701/usr/local/X11R6/include
5702/usr/local/X11R5/include
5703/usr/local/X11R4/include
5704
5705/usr/local/include/X11
5706/usr/local/include/X11R6
5707/usr/local/include/X11R5
5708/usr/local/include/X11R4
5709
5710/usr/X386/include
5711/usr/x386/include
5712/usr/XFree86/include/X11
5713
5714/usr/include
5715/usr/local/include
5716/usr/unsupported/include
5717/usr/athena/include
5718/usr/local/x11r5/include
5719/usr/lpp/Xamples/include
5720
5721/usr/openwin/include
5722/usr/openwin/share/include'
5723
5724if test "$ac_x_includes" = no; then
5725  # Guess where to find include files, by looking for Xlib.h.
5726  # First, try using that file with no special directory specified.
5727  cat >conftest.$ac_ext <<_ACEOF
5728/* confdefs.h.  */
5729_ACEOF
5730cat confdefs.h >>conftest.$ac_ext
5731cat >>conftest.$ac_ext <<_ACEOF
5732/* end confdefs.h.  */
5733#include <X11/Xlib.h.h>
5734_ACEOF
5735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5736  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5737  ac_status=$?
5738  grep -v '^ *+' conftest.er1 >conftest.err
5739  rm -f conftest.er1
5740  cat conftest.err >&5
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); } >/dev/null; then
5743  if test -s conftest.err; then
5744    ac_cpp_err=$ac_c_preproc_warn_flag
5745    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5746  else
5747    ac_cpp_err=
5748  fi
5749else
5750  ac_cpp_err=yes
5751fi
5752if test -z "$ac_cpp_err"; then
5753  # We can compile using X headers with no special include directory.
5754ac_x_includes=
5755else
5756  echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
5759  for ac_dir in $ac_x_header_dirs; do
5760  if test -r "$ac_dir/X11/Xlib.h"; then
5761    ac_x_includes=$ac_dir
5762    break
5763  fi
5764done
5765fi
5766
5767rm -f conftest.err conftest.$ac_ext
5768fi # $ac_x_includes = no
5769
5770if test "$ac_x_libraries" = no; then
5771  # Check for the libraries.
5772  # See if we find them without any special options.
5773  # Don't add to $LIBS permanently.
5774  ac_save_LIBS=$LIBS
5775  LIBS="-lXt $LIBS"
5776  cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h.  */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h.  */
5782#include <X11/Xlib.h>
5783int
5784main ()
5785{
5786XrmInitialize ()
5787  ;
5788  return 0;
5789}
5790_ACEOF
5791rm -f conftest.$ac_objext conftest$ac_exeext
5792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793  (eval $ac_link) 2>conftest.er1
5794  ac_status=$?
5795  grep -v '^ *+' conftest.er1 >conftest.err
5796  rm -f conftest.er1
5797  cat conftest.err >&5
5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799  (exit $ac_status); } &&
5800	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802  (eval $ac_try) 2>&5
5803  ac_status=$?
5804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805  (exit $ac_status); }; } &&
5806	 { ac_try='test -s conftest$ac_exeext'
5807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808  (eval $ac_try) 2>&5
5809  ac_status=$?
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); }; }; then
5812  LIBS=$ac_save_LIBS
5813# We can link X programs with no special library path.
5814ac_x_libraries=
5815else
5816  echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819	LIBS=$ac_save_LIBS
5820for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5821do
5822  # Don't even attempt the hair of trying to link an X program!
5823  for ac_extension in a so sl; do
5824    if test -r $ac_dir/libX11.$ac_extension; then
5825      ac_x_libraries=$ac_dir
5826      break 2
5827    fi
5828  done
5829done
5830fi
5831
5832rm -f conftest.err conftest.$ac_objext \
5833      conftest$ac_exeext conftest.$ac_ext
5834fi # $ac_x_libraries = no
5835
5836if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5837  # Didn't find X anywhere.  Cache the known absence of X.
5838  ac_cv_have_x="have_x=no"
5839else
5840  # Record where we found X for the cache.
5841  ac_cv_have_x="have_x=yes \
5842		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5843fi
5844fi
5845
5846  fi
5847  eval "$ac_cv_have_x"
5848fi # $with_x != no
5849
5850if test "$have_x" != yes; then
5851  { echo "$as_me:$LINENO: result: $have_x" >&5
5852echo "${ECHO_T}$have_x" >&6; }
5853  no_x=yes
5854else
5855  # If each of the values was on the command line, it overrides each guess.
5856  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5857  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5858  # Update the cache value to reflect the command line values.
5859  ac_cv_have_x="have_x=yes \
5860		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5861  # It might be that x_includes is empty (headers are found in the
5862  # standard search path. Then output the corresponding message
5863  ac_out_x_includes=$x_includes
5864  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5865  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5866echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
5867fi
5868
5869
5870if test "x$ac_path_x_has_been_run" != xyes; then
5871  { echo "$as_me:$LINENO: checking for X" >&5
5872echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5873
5874ac_path_x_has_been_run=yes
5875
5876# Check whether --with-x was given.
5877if test "${with_x+set}" = set; then
5878  withval=$with_x;
5879fi
5880
5881# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5882if test "x$with_x" = xno; then
5883  # The user explicitly disabled X.
5884  have_x=disabled
5885else
5886  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5887    # Both variables are already set.
5888    have_x=yes
5889  else
5890    if test "${ac_cv_have_x+set}" = set; then
5891  echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893  # One or both of the vars are not set, and there is no cached value.
5894ac_x_includes=no ac_x_libraries=no
5895rm -f -r conftest.dir
5896if mkdir conftest.dir; then
5897  cd conftest.dir
5898  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5899  cat >Imakefile <<'_ACEOF'
5900acfindx:
5901	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5902_ACEOF
5903  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5904    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5905    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5906    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5907    for ac_extension in a so sl; do
5908      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5909	 test -f $ac_im_libdir/libX11.$ac_extension; then
5910	ac_im_usrlibdir=$ac_im_libdir; break
5911      fi
5912    done
5913    # Screen out bogus values from the imake configuration.  They are
5914    # bogus both because they are the default anyway, and because
5915    # using them would break gcc on systems where it needs fixed includes.
5916    case $ac_im_incroot in
5917	/usr/include) ac_x_includes= ;;
5918	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5919    esac
5920    case $ac_im_usrlibdir in
5921	/usr/lib | /lib) ;;
5922	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5923    esac
5924  fi
5925  cd ..
5926  rm -f -r conftest.dir
5927fi
5928
5929# Standard set of common directories for X headers.
5930# Check X11 before X11Rn because it is often a symlink to the current release.
5931ac_x_header_dirs='
5932/usr/X11/include
5933/usr/X11R6/include
5934/usr/X11R5/include
5935/usr/X11R4/include
5936
5937/usr/include/X11
5938/usr/include/X11R6
5939/usr/include/X11R5
5940/usr/include/X11R4
5941
5942/usr/local/X11/include
5943/usr/local/X11R6/include
5944/usr/local/X11R5/include
5945/usr/local/X11R4/include
5946
5947/usr/local/include/X11
5948/usr/local/include/X11R6
5949/usr/local/include/X11R5
5950/usr/local/include/X11R4
5951
5952/usr/X386/include
5953/usr/x386/include
5954/usr/XFree86/include/X11
5955
5956/usr/include
5957/usr/local/include
5958/usr/unsupported/include
5959/usr/athena/include
5960/usr/local/x11r5/include
5961/usr/lpp/Xamples/include
5962
5963/usr/openwin/include
5964/usr/openwin/share/include'
5965
5966if test "$ac_x_includes" = no; then
5967  # Guess where to find include files, by looking for Xlib.h.
5968  # First, try using that file with no special directory specified.
5969  cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h.  */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h.  */
5975#include <X11/Xlib.h.h>
5976_ACEOF
5977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5978  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5979  ac_status=$?
5980  grep -v '^ *+' conftest.er1 >conftest.err
5981  rm -f conftest.er1
5982  cat conftest.err >&5
5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); } >/dev/null; then
5985  if test -s conftest.err; then
5986    ac_cpp_err=$ac_c_preproc_warn_flag
5987    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5988  else
5989    ac_cpp_err=
5990  fi
5991else
5992  ac_cpp_err=yes
5993fi
5994if test -z "$ac_cpp_err"; then
5995  # We can compile using X headers with no special include directory.
5996ac_x_includes=
5997else
5998  echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001  for ac_dir in $ac_x_header_dirs; do
6002  if test -r "$ac_dir/X11/Xlib.h"; then
6003    ac_x_includes=$ac_dir
6004    break
6005  fi
6006done
6007fi
6008
6009rm -f conftest.err conftest.$ac_ext
6010fi # $ac_x_includes = no
6011
6012if test "$ac_x_libraries" = no; then
6013  # Check for the libraries.
6014  # See if we find them without any special options.
6015  # Don't add to $LIBS permanently.
6016  ac_save_LIBS=$LIBS
6017  LIBS="-lXt $LIBS"
6018  cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h.  */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h.  */
6024#include <X11/Xlib.h>
6025int
6026main ()
6027{
6028XrmInitialize ()
6029  ;
6030  return 0;
6031}
6032_ACEOF
6033rm -f conftest.$ac_objext conftest$ac_exeext
6034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035  (eval $ac_link) 2>conftest.er1
6036  ac_status=$?
6037  grep -v '^ *+' conftest.er1 >conftest.err
6038  rm -f conftest.er1
6039  cat conftest.err >&5
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); } &&
6042	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044  (eval $ac_try) 2>&5
6045  ac_status=$?
6046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); }; } &&
6048	 { ac_try='test -s conftest$ac_exeext'
6049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050  (eval $ac_try) 2>&5
6051  ac_status=$?
6052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053  (exit $ac_status); }; }; then
6054  LIBS=$ac_save_LIBS
6055# We can link X programs with no special library path.
6056ac_x_libraries=
6057else
6058  echo "$as_me: failed program was:" >&5
6059sed 's/^/| /' conftest.$ac_ext >&5
6060
6061	LIBS=$ac_save_LIBS
6062for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6063do
6064  # Don't even attempt the hair of trying to link an X program!
6065  for ac_extension in a so sl; do
6066    if test -r $ac_dir/libX11.$ac_extension; then
6067      ac_x_libraries=$ac_dir
6068      break 2
6069    fi
6070  done
6071done
6072fi
6073
6074rm -f conftest.err conftest.$ac_objext \
6075      conftest$ac_exeext conftest.$ac_ext
6076fi # $ac_x_libraries = no
6077
6078if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6079  # Didn't find X anywhere.  Cache the known absence of X.
6080  ac_cv_have_x="have_x=no"
6081else
6082  # Record where we found X for the cache.
6083  ac_cv_have_x="have_x=yes \
6084		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6085fi
6086fi
6087
6088  fi
6089  eval "$ac_cv_have_x"
6090fi # $with_x != no
6091
6092if test "$have_x" != yes; then
6093  { echo "$as_me:$LINENO: result: $have_x" >&5
6094echo "${ECHO_T}$have_x" >&6; }
6095  no_x=yes
6096else
6097  # If each of the values was on the command line, it overrides each guess.
6098  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6099  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6100  # Update the cache value to reflect the command line values.
6101  ac_cv_have_x="have_x=yes \
6102		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6103  # It might be that x_includes is empty (headers are found in the
6104  # standard search path. Then output the corresponding message
6105  ac_out_x_includes=$x_includes
6106  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6107  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6108echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
6109fi
6110
6111fi
6112if test "$no_x" = yes; then
6113  # Not all programs may use this symbol, but it does not hurt to define it.
6114
6115cat >>confdefs.h <<\_ACEOF
6116#define X_DISPLAY_MISSING 1
6117_ACEOF
6118
6119  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6120else
6121  if test -n "$x_includes"; then
6122    X_CFLAGS="$X_CFLAGS -I$x_includes"
6123  fi
6124
6125  # It would also be nice to do this for all -L options, not just this one.
6126  if test -n "$x_libraries"; then
6127    X_LIBS="$X_LIBS -L$x_libraries"
6128    # For Solaris; some versions of Sun CC require a space after -R and
6129    # others require no space.  Words are not sufficient . . . .
6130    case `(uname -sr) 2>/dev/null` in
6131    "SunOS 5"*)
6132      { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6133echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6134      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6135      cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h.  */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h.  */
6141
6142int
6143main ()
6144{
6145
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150rm -f conftest.$ac_objext conftest$ac_exeext
6151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152  (eval $ac_link) 2>conftest.er1
6153  ac_status=$?
6154  grep -v '^ *+' conftest.er1 >conftest.err
6155  rm -f conftest.er1
6156  cat conftest.err >&5
6157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); } &&
6159	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161  (eval $ac_try) 2>&5
6162  ac_status=$?
6163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); }; } &&
6165	 { ac_try='test -s conftest$ac_exeext'
6166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167  (eval $ac_try) 2>&5
6168  ac_status=$?
6169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170  (exit $ac_status); }; }; then
6171  ac_R_nospace=yes
6172else
6173  echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176	ac_R_nospace=no
6177fi
6178
6179rm -f conftest.err conftest.$ac_objext \
6180      conftest$ac_exeext conftest.$ac_ext
6181      if test $ac_R_nospace = yes; then
6182	{ echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6; }
6184	X_LIBS="$X_LIBS -R$x_libraries"
6185      else
6186	LIBS="$ac_xsave_LIBS -R $x_libraries"
6187	cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h.  */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h.  */
6193
6194int
6195main ()
6196{
6197
6198  ;
6199  return 0;
6200}
6201_ACEOF
6202rm -f conftest.$ac_objext conftest$ac_exeext
6203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204  (eval $ac_link) 2>conftest.er1
6205  ac_status=$?
6206  grep -v '^ *+' conftest.er1 >conftest.err
6207  rm -f conftest.er1
6208  cat conftest.err >&5
6209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210  (exit $ac_status); } &&
6211	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213  (eval $ac_try) 2>&5
6214  ac_status=$?
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); }; } &&
6217	 { ac_try='test -s conftest$ac_exeext'
6218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219  (eval $ac_try) 2>&5
6220  ac_status=$?
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); }; }; then
6223  ac_R_space=yes
6224else
6225  echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228	ac_R_space=no
6229fi
6230
6231rm -f conftest.err conftest.$ac_objext \
6232      conftest$ac_exeext conftest.$ac_ext
6233	if test $ac_R_space = yes; then
6234	  { echo "$as_me:$LINENO: result: yes" >&5
6235echo "${ECHO_T}yes" >&6; }
6236	  X_LIBS="$X_LIBS -R $x_libraries"
6237	else
6238	  { echo "$as_me:$LINENO: result: neither works" >&5
6239echo "${ECHO_T}neither works" >&6; }
6240	fi
6241      fi
6242      LIBS=$ac_xsave_LIBS
6243    esac
6244  fi
6245
6246  # Check for system-dependent libraries X programs must link with.
6247  # Do this before checking for the system-independent R6 libraries
6248  # (-lICE), since we may need -lsocket or whatever for X linking.
6249
6250  if test "$ISC" = yes; then
6251    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6252  else
6253    # Martyn Johnson says this is needed for Ultrix, if the X
6254    # libraries were built with DECnet support.  And Karl Berry says
6255    # the Alpha needs dnet_stub (dnet does not exist).
6256    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6257    cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h.  */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h.  */
6263
6264/* Override any GCC internal prototype to avoid an error.
6265   Use char because int might match the return type of a GCC
6266   builtin and then its argument prototype would still apply.  */
6267#ifdef __cplusplus
6268extern "C"
6269#endif
6270char XOpenDisplay ();
6271int
6272main ()
6273{
6274return XOpenDisplay ();
6275  ;
6276  return 0;
6277}
6278_ACEOF
6279rm -f conftest.$ac_objext conftest$ac_exeext
6280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281  (eval $ac_link) 2>conftest.er1
6282  ac_status=$?
6283  grep -v '^ *+' conftest.er1 >conftest.err
6284  rm -f conftest.er1
6285  cat conftest.err >&5
6286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287  (exit $ac_status); } &&
6288	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290  (eval $ac_try) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); }; } &&
6294	 { ac_try='test -s conftest$ac_exeext'
6295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296  (eval $ac_try) 2>&5
6297  ac_status=$?
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); }; }; then
6300  :
6301else
6302  echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6306echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6307if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6308  echo $ECHO_N "(cached) $ECHO_C" >&6
6309else
6310  ac_check_lib_save_LIBS=$LIBS
6311LIBS="-ldnet  $LIBS"
6312cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h.  */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h.  */
6318
6319/* Override any GCC internal prototype to avoid an error.
6320   Use char because int might match the return type of a GCC
6321   builtin and then its argument prototype would still apply.  */
6322#ifdef __cplusplus
6323extern "C"
6324#endif
6325char dnet_ntoa ();
6326int
6327main ()
6328{
6329return dnet_ntoa ();
6330  ;
6331  return 0;
6332}
6333_ACEOF
6334rm -f conftest.$ac_objext conftest$ac_exeext
6335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336  (eval $ac_link) 2>conftest.er1
6337  ac_status=$?
6338  grep -v '^ *+' conftest.er1 >conftest.err
6339  rm -f conftest.er1
6340  cat conftest.err >&5
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); } &&
6343	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345  (eval $ac_try) 2>&5
6346  ac_status=$?
6347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348  (exit $ac_status); }; } &&
6349	 { ac_try='test -s conftest$ac_exeext'
6350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351  (eval $ac_try) 2>&5
6352  ac_status=$?
6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354  (exit $ac_status); }; }; then
6355  ac_cv_lib_dnet_dnet_ntoa=yes
6356else
6357  echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360	ac_cv_lib_dnet_dnet_ntoa=no
6361fi
6362
6363rm -f conftest.err conftest.$ac_objext \
6364      conftest$ac_exeext conftest.$ac_ext
6365LIBS=$ac_check_lib_save_LIBS
6366fi
6367{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6368echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6369if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6370  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6371fi
6372
6373    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6374      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6375echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6376if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6377  echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
6379  ac_check_lib_save_LIBS=$LIBS
6380LIBS="-ldnet_stub  $LIBS"
6381cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h.  */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h.  */
6387
6388/* Override any GCC internal prototype to avoid an error.
6389   Use char because int might match the return type of a GCC
6390   builtin and then its argument prototype would still apply.  */
6391#ifdef __cplusplus
6392extern "C"
6393#endif
6394char dnet_ntoa ();
6395int
6396main ()
6397{
6398return dnet_ntoa ();
6399  ;
6400  return 0;
6401}
6402_ACEOF
6403rm -f conftest.$ac_objext conftest$ac_exeext
6404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6405  (eval $ac_link) 2>conftest.er1
6406  ac_status=$?
6407  grep -v '^ *+' conftest.er1 >conftest.err
6408  rm -f conftest.er1
6409  cat conftest.err >&5
6410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411  (exit $ac_status); } &&
6412	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414  (eval $ac_try) 2>&5
6415  ac_status=$?
6416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); }; } &&
6418	 { ac_try='test -s conftest$ac_exeext'
6419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420  (eval $ac_try) 2>&5
6421  ac_status=$?
6422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423  (exit $ac_status); }; }; then
6424  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6425else
6426  echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429	ac_cv_lib_dnet_stub_dnet_ntoa=no
6430fi
6431
6432rm -f conftest.err conftest.$ac_objext \
6433      conftest$ac_exeext conftest.$ac_ext
6434LIBS=$ac_check_lib_save_LIBS
6435fi
6436{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6437echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6438if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6439  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6440fi
6441
6442    fi
6443fi
6444
6445rm -f conftest.err conftest.$ac_objext \
6446      conftest$ac_exeext conftest.$ac_ext
6447    LIBS="$ac_xsave_LIBS"
6448
6449    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6450    # to get the SysV transport functions.
6451    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6452    # needs -lnsl.
6453    # The nsl library prevents programs from opening the X display
6454    # on Irix 5.2, according to T.E. Dickey.
6455    # The functions gethostbyname, getservbyname, and inet_addr are
6456    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6457    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6458echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6459if test "${ac_cv_func_gethostbyname+set}" = set; then
6460  echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462  cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h.  */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h.  */
6468/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6469   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6470#define gethostbyname innocuous_gethostbyname
6471
6472/* System header to define __stub macros and hopefully few prototypes,
6473    which can conflict with char gethostbyname (); below.
6474    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6475    <limits.h> exists even on freestanding compilers.  */
6476
6477#ifdef __STDC__
6478# include <limits.h>
6479#else
6480# include <assert.h>
6481#endif
6482
6483#undef gethostbyname
6484
6485/* Override any GCC internal prototype to avoid an error.
6486   Use char because int might match the return type of a GCC
6487   builtin and then its argument prototype would still apply.  */
6488#ifdef __cplusplus
6489extern "C"
6490#endif
6491char gethostbyname ();
6492/* The GNU C library defines this for functions which it implements
6493    to always fail with ENOSYS.  Some functions are actually named
6494    something starting with __ and the normal name is an alias.  */
6495#if defined __stub_gethostbyname || defined __stub___gethostbyname
6496choke me
6497#endif
6498
6499int
6500main ()
6501{
6502return gethostbyname ();
6503  ;
6504  return 0;
6505}
6506_ACEOF
6507rm -f conftest.$ac_objext conftest$ac_exeext
6508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6509  (eval $ac_link) 2>conftest.er1
6510  ac_status=$?
6511  grep -v '^ *+' conftest.er1 >conftest.err
6512  rm -f conftest.er1
6513  cat conftest.err >&5
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); } &&
6516	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518  (eval $ac_try) 2>&5
6519  ac_status=$?
6520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521  (exit $ac_status); }; } &&
6522	 { ac_try='test -s conftest$ac_exeext'
6523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524  (eval $ac_try) 2>&5
6525  ac_status=$?
6526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); }; }; then
6528  ac_cv_func_gethostbyname=yes
6529else
6530  echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533	ac_cv_func_gethostbyname=no
6534fi
6535
6536rm -f conftest.err conftest.$ac_objext \
6537      conftest$ac_exeext conftest.$ac_ext
6538fi
6539{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6540echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6541
6542    if test $ac_cv_func_gethostbyname = no; then
6543      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6544echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6545if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6546  echo $ECHO_N "(cached) $ECHO_C" >&6
6547else
6548  ac_check_lib_save_LIBS=$LIBS
6549LIBS="-lnsl  $LIBS"
6550cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h.  */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h.  */
6556
6557/* Override any GCC internal prototype to avoid an error.
6558   Use char because int might match the return type of a GCC
6559   builtin and then its argument prototype would still apply.  */
6560#ifdef __cplusplus
6561extern "C"
6562#endif
6563char gethostbyname ();
6564int
6565main ()
6566{
6567return gethostbyname ();
6568  ;
6569  return 0;
6570}
6571_ACEOF
6572rm -f conftest.$ac_objext conftest$ac_exeext
6573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574  (eval $ac_link) 2>conftest.er1
6575  ac_status=$?
6576  grep -v '^ *+' conftest.er1 >conftest.err
6577  rm -f conftest.er1
6578  cat conftest.err >&5
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); } &&
6581	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583  (eval $ac_try) 2>&5
6584  ac_status=$?
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); }; } &&
6587	 { ac_try='test -s conftest$ac_exeext'
6588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589  (eval $ac_try) 2>&5
6590  ac_status=$?
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); }; }; then
6593  ac_cv_lib_nsl_gethostbyname=yes
6594else
6595  echo "$as_me: failed program was:" >&5
6596sed 's/^/| /' conftest.$ac_ext >&5
6597
6598	ac_cv_lib_nsl_gethostbyname=no
6599fi
6600
6601rm -f conftest.err conftest.$ac_objext \
6602      conftest$ac_exeext conftest.$ac_ext
6603LIBS=$ac_check_lib_save_LIBS
6604fi
6605{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6606echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6607if test $ac_cv_lib_nsl_gethostbyname = yes; then
6608  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6609fi
6610
6611      if test $ac_cv_lib_nsl_gethostbyname = no; then
6612	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6613echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6614if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6615  echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
6617  ac_check_lib_save_LIBS=$LIBS
6618LIBS="-lbsd  $LIBS"
6619cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h.  */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h.  */
6625
6626/* Override any GCC internal prototype to avoid an error.
6627   Use char because int might match the return type of a GCC
6628   builtin and then its argument prototype would still apply.  */
6629#ifdef __cplusplus
6630extern "C"
6631#endif
6632char gethostbyname ();
6633int
6634main ()
6635{
6636return gethostbyname ();
6637  ;
6638  return 0;
6639}
6640_ACEOF
6641rm -f conftest.$ac_objext conftest$ac_exeext
6642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643  (eval $ac_link) 2>conftest.er1
6644  ac_status=$?
6645  grep -v '^ *+' conftest.er1 >conftest.err
6646  rm -f conftest.er1
6647  cat conftest.err >&5
6648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649  (exit $ac_status); } &&
6650	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; } &&
6656	 { ac_try='test -s conftest$ac_exeext'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; }; then
6662  ac_cv_lib_bsd_gethostbyname=yes
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667	ac_cv_lib_bsd_gethostbyname=no
6668fi
6669
6670rm -f conftest.err conftest.$ac_objext \
6671      conftest$ac_exeext conftest.$ac_ext
6672LIBS=$ac_check_lib_save_LIBS
6673fi
6674{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6675echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6676if test $ac_cv_lib_bsd_gethostbyname = yes; then
6677  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6678fi
6679
6680      fi
6681    fi
6682
6683    # lieder@skyler.mavd.honeywell.com says without -lsocket,
6684    # socket/setsockopt and other routines are undefined under SCO ODT
6685    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6686    # on later versions), says Simon Leinen: it contains gethostby*
6687    # variants that don't use the name server (or something).  -lsocket
6688    # must be given before -lnsl if both are needed.  We assume that
6689    # if connect needs -lnsl, so does gethostbyname.
6690    { echo "$as_me:$LINENO: checking for connect" >&5
6691echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6692if test "${ac_cv_func_connect+set}" = set; then
6693  echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695  cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h.  */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h.  */
6701/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6702   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6703#define connect innocuous_connect
6704
6705/* System header to define __stub macros and hopefully few prototypes,
6706    which can conflict with char connect (); below.
6707    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6708    <limits.h> exists even on freestanding compilers.  */
6709
6710#ifdef __STDC__
6711# include <limits.h>
6712#else
6713# include <assert.h>
6714#endif
6715
6716#undef connect
6717
6718/* Override any GCC internal prototype to avoid an error.
6719   Use char because int might match the return type of a GCC
6720   builtin and then its argument prototype would still apply.  */
6721#ifdef __cplusplus
6722extern "C"
6723#endif
6724char connect ();
6725/* The GNU C library defines this for functions which it implements
6726    to always fail with ENOSYS.  Some functions are actually named
6727    something starting with __ and the normal name is an alias.  */
6728#if defined __stub_connect || defined __stub___connect
6729choke me
6730#endif
6731
6732int
6733main ()
6734{
6735return connect ();
6736  ;
6737  return 0;
6738}
6739_ACEOF
6740rm -f conftest.$ac_objext conftest$ac_exeext
6741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742  (eval $ac_link) 2>conftest.er1
6743  ac_status=$?
6744  grep -v '^ *+' conftest.er1 >conftest.err
6745  rm -f conftest.er1
6746  cat conftest.err >&5
6747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748  (exit $ac_status); } &&
6749	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751  (eval $ac_try) 2>&5
6752  ac_status=$?
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); }; } &&
6755	 { ac_try='test -s conftest$ac_exeext'
6756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757  (eval $ac_try) 2>&5
6758  ac_status=$?
6759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760  (exit $ac_status); }; }; then
6761  ac_cv_func_connect=yes
6762else
6763  echo "$as_me: failed program was:" >&5
6764sed 's/^/| /' conftest.$ac_ext >&5
6765
6766	ac_cv_func_connect=no
6767fi
6768
6769rm -f conftest.err conftest.$ac_objext \
6770      conftest$ac_exeext conftest.$ac_ext
6771fi
6772{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6773echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6774
6775    if test $ac_cv_func_connect = no; then
6776      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6777echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6778if test "${ac_cv_lib_socket_connect+set}" = set; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  ac_check_lib_save_LIBS=$LIBS
6782LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6783cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h.  */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h.  */
6789
6790/* Override any GCC internal prototype to avoid an error.
6791   Use char because int might match the return type of a GCC
6792   builtin and then its argument prototype would still apply.  */
6793#ifdef __cplusplus
6794extern "C"
6795#endif
6796char connect ();
6797int
6798main ()
6799{
6800return connect ();
6801  ;
6802  return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext conftest$ac_exeext
6806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807  (eval $ac_link) 2>conftest.er1
6808  ac_status=$?
6809  grep -v '^ *+' conftest.er1 >conftest.err
6810  rm -f conftest.er1
6811  cat conftest.err >&5
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); } &&
6814	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816  (eval $ac_try) 2>&5
6817  ac_status=$?
6818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819  (exit $ac_status); }; } &&
6820	 { ac_try='test -s conftest$ac_exeext'
6821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822  (eval $ac_try) 2>&5
6823  ac_status=$?
6824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825  (exit $ac_status); }; }; then
6826  ac_cv_lib_socket_connect=yes
6827else
6828  echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831	ac_cv_lib_socket_connect=no
6832fi
6833
6834rm -f conftest.err conftest.$ac_objext \
6835      conftest$ac_exeext conftest.$ac_ext
6836LIBS=$ac_check_lib_save_LIBS
6837fi
6838{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6839echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6840if test $ac_cv_lib_socket_connect = yes; then
6841  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6842fi
6843
6844    fi
6845
6846    # Guillermo Gomez says -lposix is necessary on A/UX.
6847    { echo "$as_me:$LINENO: checking for remove" >&5
6848echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6849if test "${ac_cv_func_remove+set}" = set; then
6850  echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852  cat >conftest.$ac_ext <<_ACEOF
6853/* confdefs.h.  */
6854_ACEOF
6855cat confdefs.h >>conftest.$ac_ext
6856cat >>conftest.$ac_ext <<_ACEOF
6857/* end confdefs.h.  */
6858/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6859   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6860#define remove innocuous_remove
6861
6862/* System header to define __stub macros and hopefully few prototypes,
6863    which can conflict with char remove (); below.
6864    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865    <limits.h> exists even on freestanding compilers.  */
6866
6867#ifdef __STDC__
6868# include <limits.h>
6869#else
6870# include <assert.h>
6871#endif
6872
6873#undef remove
6874
6875/* Override any GCC internal prototype to avoid an error.
6876   Use char because int might match the return type of a GCC
6877   builtin and then its argument prototype would still apply.  */
6878#ifdef __cplusplus
6879extern "C"
6880#endif
6881char remove ();
6882/* The GNU C library defines this for functions which it implements
6883    to always fail with ENOSYS.  Some functions are actually named
6884    something starting with __ and the normal name is an alias.  */
6885#if defined __stub_remove || defined __stub___remove
6886choke me
6887#endif
6888
6889int
6890main ()
6891{
6892return remove ();
6893  ;
6894  return 0;
6895}
6896_ACEOF
6897rm -f conftest.$ac_objext conftest$ac_exeext
6898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899  (eval $ac_link) 2>conftest.er1
6900  ac_status=$?
6901  grep -v '^ *+' conftest.er1 >conftest.err
6902  rm -f conftest.er1
6903  cat conftest.err >&5
6904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905  (exit $ac_status); } &&
6906	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908  (eval $ac_try) 2>&5
6909  ac_status=$?
6910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911  (exit $ac_status); }; } &&
6912	 { ac_try='test -s conftest$ac_exeext'
6913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914  (eval $ac_try) 2>&5
6915  ac_status=$?
6916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917  (exit $ac_status); }; }; then
6918  ac_cv_func_remove=yes
6919else
6920  echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
6923	ac_cv_func_remove=no
6924fi
6925
6926rm -f conftest.err conftest.$ac_objext \
6927      conftest$ac_exeext conftest.$ac_ext
6928fi
6929{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6930echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6931
6932    if test $ac_cv_func_remove = no; then
6933      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6934echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6935if test "${ac_cv_lib_posix_remove+set}" = set; then
6936  echo $ECHO_N "(cached) $ECHO_C" >&6
6937else
6938  ac_check_lib_save_LIBS=$LIBS
6939LIBS="-lposix  $LIBS"
6940cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h.  */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h.  */
6946
6947/* Override any GCC internal prototype to avoid an error.
6948   Use char because int might match the return type of a GCC
6949   builtin and then its argument prototype would still apply.  */
6950#ifdef __cplusplus
6951extern "C"
6952#endif
6953char remove ();
6954int
6955main ()
6956{
6957return remove ();
6958  ;
6959  return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext conftest$ac_exeext
6963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964  (eval $ac_link) 2>conftest.er1
6965  ac_status=$?
6966  grep -v '^ *+' conftest.er1 >conftest.err
6967  rm -f conftest.er1
6968  cat conftest.err >&5
6969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970  (exit $ac_status); } &&
6971	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973  (eval $ac_try) 2>&5
6974  ac_status=$?
6975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976  (exit $ac_status); }; } &&
6977	 { ac_try='test -s conftest$ac_exeext'
6978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979  (eval $ac_try) 2>&5
6980  ac_status=$?
6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982  (exit $ac_status); }; }; then
6983  ac_cv_lib_posix_remove=yes
6984else
6985  echo "$as_me: failed program was:" >&5
6986sed 's/^/| /' conftest.$ac_ext >&5
6987
6988	ac_cv_lib_posix_remove=no
6989fi
6990
6991rm -f conftest.err conftest.$ac_objext \
6992      conftest$ac_exeext conftest.$ac_ext
6993LIBS=$ac_check_lib_save_LIBS
6994fi
6995{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6996echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6997if test $ac_cv_lib_posix_remove = yes; then
6998  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6999fi
7000
7001    fi
7002
7003    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7004    { echo "$as_me:$LINENO: checking for shmat" >&5
7005echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7006if test "${ac_cv_func_shmat+set}" = set; then
7007  echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009  cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h.  */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h.  */
7015/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7016   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7017#define shmat innocuous_shmat
7018
7019/* System header to define __stub macros and hopefully few prototypes,
7020    which can conflict with char shmat (); below.
7021    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7022    <limits.h> exists even on freestanding compilers.  */
7023
7024#ifdef __STDC__
7025# include <limits.h>
7026#else
7027# include <assert.h>
7028#endif
7029
7030#undef shmat
7031
7032/* Override any GCC internal prototype to avoid an error.
7033   Use char because int might match the return type of a GCC
7034   builtin and then its argument prototype would still apply.  */
7035#ifdef __cplusplus
7036extern "C"
7037#endif
7038char shmat ();
7039/* The GNU C library defines this for functions which it implements
7040    to always fail with ENOSYS.  Some functions are actually named
7041    something starting with __ and the normal name is an alias.  */
7042#if defined __stub_shmat || defined __stub___shmat
7043choke me
7044#endif
7045
7046int
7047main ()
7048{
7049return shmat ();
7050  ;
7051  return 0;
7052}
7053_ACEOF
7054rm -f conftest.$ac_objext conftest$ac_exeext
7055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056  (eval $ac_link) 2>conftest.er1
7057  ac_status=$?
7058  grep -v '^ *+' conftest.er1 >conftest.err
7059  rm -f conftest.er1
7060  cat conftest.err >&5
7061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062  (exit $ac_status); } &&
7063	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065  (eval $ac_try) 2>&5
7066  ac_status=$?
7067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068  (exit $ac_status); }; } &&
7069	 { ac_try='test -s conftest$ac_exeext'
7070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071  (eval $ac_try) 2>&5
7072  ac_status=$?
7073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074  (exit $ac_status); }; }; then
7075  ac_cv_func_shmat=yes
7076else
7077  echo "$as_me: failed program was:" >&5
7078sed 's/^/| /' conftest.$ac_ext >&5
7079
7080	ac_cv_func_shmat=no
7081fi
7082
7083rm -f conftest.err conftest.$ac_objext \
7084      conftest$ac_exeext conftest.$ac_ext
7085fi
7086{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7087echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7088
7089    if test $ac_cv_func_shmat = no; then
7090      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7091echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7092if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  ac_check_lib_save_LIBS=$LIBS
7096LIBS="-lipc  $LIBS"
7097cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h.  */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h.  */
7103
7104/* Override any GCC internal prototype to avoid an error.
7105   Use char because int might match the return type of a GCC
7106   builtin and then its argument prototype would still apply.  */
7107#ifdef __cplusplus
7108extern "C"
7109#endif
7110char shmat ();
7111int
7112main ()
7113{
7114return shmat ();
7115  ;
7116  return 0;
7117}
7118_ACEOF
7119rm -f conftest.$ac_objext conftest$ac_exeext
7120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121  (eval $ac_link) 2>conftest.er1
7122  ac_status=$?
7123  grep -v '^ *+' conftest.er1 >conftest.err
7124  rm -f conftest.er1
7125  cat conftest.err >&5
7126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127  (exit $ac_status); } &&
7128	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130  (eval $ac_try) 2>&5
7131  ac_status=$?
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); }; } &&
7134	 { ac_try='test -s conftest$ac_exeext'
7135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136  (eval $ac_try) 2>&5
7137  ac_status=$?
7138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139  (exit $ac_status); }; }; then
7140  ac_cv_lib_ipc_shmat=yes
7141else
7142  echo "$as_me: failed program was:" >&5
7143sed 's/^/| /' conftest.$ac_ext >&5
7144
7145	ac_cv_lib_ipc_shmat=no
7146fi
7147
7148rm -f conftest.err conftest.$ac_objext \
7149      conftest$ac_exeext conftest.$ac_ext
7150LIBS=$ac_check_lib_save_LIBS
7151fi
7152{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7153echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7154if test $ac_cv_lib_ipc_shmat = yes; then
7155  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7156fi
7157
7158    fi
7159  fi
7160
7161  # Check for libraries that X11R6 Xt/Xaw programs need.
7162  ac_save_LDFLAGS=$LDFLAGS
7163  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7164  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7165  # check for ICE first), but we must link in the order -lSM -lICE or
7166  # we get undefined symbols.  So assume we have SM if we have ICE.
7167  # These have to be linked with before -lX11, unlike the other
7168  # libraries we check for below, so use a different variable.
7169  # John Interrante, Karl Berry
7170  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7171echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7172if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7173  echo $ECHO_N "(cached) $ECHO_C" >&6
7174else
7175  ac_check_lib_save_LIBS=$LIBS
7176LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7177cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h.  */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h.  */
7183
7184/* Override any GCC internal prototype to avoid an error.
7185   Use char because int might match the return type of a GCC
7186   builtin and then its argument prototype would still apply.  */
7187#ifdef __cplusplus
7188extern "C"
7189#endif
7190char IceConnectionNumber ();
7191int
7192main ()
7193{
7194return IceConnectionNumber ();
7195  ;
7196  return 0;
7197}
7198_ACEOF
7199rm -f conftest.$ac_objext conftest$ac_exeext
7200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7201  (eval $ac_link) 2>conftest.er1
7202  ac_status=$?
7203  grep -v '^ *+' conftest.er1 >conftest.err
7204  rm -f conftest.er1
7205  cat conftest.err >&5
7206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207  (exit $ac_status); } &&
7208	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210  (eval $ac_try) 2>&5
7211  ac_status=$?
7212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213  (exit $ac_status); }; } &&
7214	 { ac_try='test -s conftest$ac_exeext'
7215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216  (eval $ac_try) 2>&5
7217  ac_status=$?
7218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219  (exit $ac_status); }; }; then
7220  ac_cv_lib_ICE_IceConnectionNumber=yes
7221else
7222  echo "$as_me: failed program was:" >&5
7223sed 's/^/| /' conftest.$ac_ext >&5
7224
7225	ac_cv_lib_ICE_IceConnectionNumber=no
7226fi
7227
7228rm -f conftest.err conftest.$ac_objext \
7229      conftest$ac_exeext conftest.$ac_ext
7230LIBS=$ac_check_lib_save_LIBS
7231fi
7232{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7233echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7234if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7235  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7236fi
7237
7238  LDFLAGS=$ac_save_LDFLAGS
7239
7240fi
7241
7242if test x$have_x = xyes ; then
7243    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7244    LDFLAGS="$LDFLAGS $X_LIBS"
7245fi
7246if test x$build_cpu = xsparc ; then
7247	 CPPFLAGS="$CPPFLAGS -Dsparc"
7248fi
7249case "${target_os}" in
7250  solaris*)
7251    LDFLAGS="$LDFLAGS -lX11 -lsocket -lnsl"
7252    ;;
7253  cygwin*)
7254    LIBS="$LIBS $LIBINTL"
7255    ;;
7256esac
7257{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7258echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7259if test "${ac_cv_path_GREP+set}" = set; then
7260  echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262  # Extract the first word of "grep ggrep" to use in msg output
7263if test -z "$GREP"; then
7264set dummy grep ggrep; ac_prog_name=$2
7265if test "${ac_cv_path_GREP+set}" = set; then
7266  echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268  ac_path_GREP_found=false
7269# Loop through the user's path and test for each of PROGNAME-LIST
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7272do
7273  IFS=$as_save_IFS
7274  test -z "$as_dir" && as_dir=.
7275  for ac_prog in grep ggrep; do
7276  for ac_exec_ext in '' $ac_executable_extensions; do
7277    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7278    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7279    # Check for GNU ac_path_GREP and select it if it is found.
7280  # Check for GNU $ac_path_GREP
7281case `"$ac_path_GREP" --version 2>&1` in
7282*GNU*)
7283  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7284*)
7285  ac_count=0
7286  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7287  while :
7288  do
7289    cat "conftest.in" "conftest.in" >"conftest.tmp"
7290    mv "conftest.tmp" "conftest.in"
7291    cp "conftest.in" "conftest.nl"
7292    echo 'GREP' >> "conftest.nl"
7293    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7294    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7295    ac_count=`expr $ac_count + 1`
7296    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7297      # Best one so far, save it but keep looking for a better one
7298      ac_cv_path_GREP="$ac_path_GREP"
7299      ac_path_GREP_max=$ac_count
7300    fi
7301    # 10*(2^10) chars as input seems more than enough
7302    test $ac_count -gt 10 && break
7303  done
7304  rm -f conftest.*;;
7305esac
7306
7307
7308    $ac_path_GREP_found && break 3
7309  done
7310done
7311
7312done
7313IFS=$as_save_IFS
7314
7315
7316fi
7317
7318GREP="$ac_cv_path_GREP"
7319if test -z "$GREP"; then
7320  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7321echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7322   { (exit 1); exit 1; }; }
7323fi
7324
7325else
7326  ac_cv_path_GREP=$GREP
7327fi
7328
7329
7330fi
7331{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7332echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7333 GREP="$ac_cv_path_GREP"
7334
7335
7336{ echo "$as_me:$LINENO: checking for egrep" >&5
7337echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7338if test "${ac_cv_path_EGREP+set}" = set; then
7339  echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7342   then ac_cv_path_EGREP="$GREP -E"
7343   else
7344     # Extract the first word of "egrep" to use in msg output
7345if test -z "$EGREP"; then
7346set dummy egrep; ac_prog_name=$2
7347if test "${ac_cv_path_EGREP+set}" = set; then
7348  echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350  ac_path_EGREP_found=false
7351# Loop through the user's path and test for each of PROGNAME-LIST
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357  for ac_prog in egrep; do
7358  for ac_exec_ext in '' $ac_executable_extensions; do
7359    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7360    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7361    # Check for GNU ac_path_EGREP and select it if it is found.
7362  # Check for GNU $ac_path_EGREP
7363case `"$ac_path_EGREP" --version 2>&1` in
7364*GNU*)
7365  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7366*)
7367  ac_count=0
7368  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7369  while :
7370  do
7371    cat "conftest.in" "conftest.in" >"conftest.tmp"
7372    mv "conftest.tmp" "conftest.in"
7373    cp "conftest.in" "conftest.nl"
7374    echo 'EGREP' >> "conftest.nl"
7375    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7376    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7377    ac_count=`expr $ac_count + 1`
7378    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7379      # Best one so far, save it but keep looking for a better one
7380      ac_cv_path_EGREP="$ac_path_EGREP"
7381      ac_path_EGREP_max=$ac_count
7382    fi
7383    # 10*(2^10) chars as input seems more than enough
7384    test $ac_count -gt 10 && break
7385  done
7386  rm -f conftest.*;;
7387esac
7388
7389
7390    $ac_path_EGREP_found && break 3
7391  done
7392done
7393
7394done
7395IFS=$as_save_IFS
7396
7397
7398fi
7399
7400EGREP="$ac_cv_path_EGREP"
7401if test -z "$EGREP"; then
7402  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7403echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7404   { (exit 1); exit 1; }; }
7405fi
7406
7407else
7408  ac_cv_path_EGREP=$EGREP
7409fi
7410
7411
7412   fi
7413fi
7414{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7415echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7416 EGREP="$ac_cv_path_EGREP"
7417
7418
7419{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7420echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7421if test "${ac_cv_header_stdc+set}" = set; then
7422  echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424  cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h.  */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h.  */
7430#include <stdlib.h>
7431#include <stdarg.h>
7432#include <string.h>
7433#include <float.h>
7434
7435int
7436main ()
7437{
7438
7439  ;
7440  return 0;
7441}
7442_ACEOF
7443rm -f conftest.$ac_objext
7444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445  (eval $ac_compile) 2>conftest.er1
7446  ac_status=$?
7447  grep -v '^ *+' conftest.er1 >conftest.err
7448  rm -f conftest.er1
7449  cat conftest.err >&5
7450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451  (exit $ac_status); } &&
7452	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454  (eval $ac_try) 2>&5
7455  ac_status=$?
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); }; } &&
7458	 { ac_try='test -s conftest.$ac_objext'
7459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460  (eval $ac_try) 2>&5
7461  ac_status=$?
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); }; }; then
7464  ac_cv_header_stdc=yes
7465else
7466  echo "$as_me: failed program was:" >&5
7467sed 's/^/| /' conftest.$ac_ext >&5
7468
7469	ac_cv_header_stdc=no
7470fi
7471
7472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7473
7474if test $ac_cv_header_stdc = yes; then
7475  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7476  cat >conftest.$ac_ext <<_ACEOF
7477/* confdefs.h.  */
7478_ACEOF
7479cat confdefs.h >>conftest.$ac_ext
7480cat >>conftest.$ac_ext <<_ACEOF
7481/* end confdefs.h.  */
7482#include <string.h>
7483
7484_ACEOF
7485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7486  $EGREP "memchr" >/dev/null 2>&1; then
7487  :
7488else
7489  ac_cv_header_stdc=no
7490fi
7491rm -f conftest*
7492
7493fi
7494
7495if test $ac_cv_header_stdc = yes; then
7496  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7497  cat >conftest.$ac_ext <<_ACEOF
7498/* confdefs.h.  */
7499_ACEOF
7500cat confdefs.h >>conftest.$ac_ext
7501cat >>conftest.$ac_ext <<_ACEOF
7502/* end confdefs.h.  */
7503#include <stdlib.h>
7504
7505_ACEOF
7506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7507  $EGREP "free" >/dev/null 2>&1; then
7508  :
7509else
7510  ac_cv_header_stdc=no
7511fi
7512rm -f conftest*
7513
7514fi
7515
7516if test $ac_cv_header_stdc = yes; then
7517  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7518  if test "$cross_compiling" = yes; then
7519  :
7520else
7521  cat >conftest.$ac_ext <<_ACEOF
7522/* confdefs.h.  */
7523_ACEOF
7524cat confdefs.h >>conftest.$ac_ext
7525cat >>conftest.$ac_ext <<_ACEOF
7526/* end confdefs.h.  */
7527#include <ctype.h>
7528#include <stdlib.h>
7529#if ((' ' & 0x0FF) == 0x020)
7530# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7531# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7532#else
7533# define ISLOWER(c) \
7534		   (('a' <= (c) && (c) <= 'i') \
7535		     || ('j' <= (c) && (c) <= 'r') \
7536		     || ('s' <= (c) && (c) <= 'z'))
7537# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7538#endif
7539
7540#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7541int
7542main ()
7543{
7544  int i;
7545  for (i = 0; i < 256; i++)
7546    if (XOR (islower (i), ISLOWER (i))
7547	|| toupper (i) != TOUPPER (i))
7548      return 2;
7549  return 0;
7550}
7551_ACEOF
7552rm -f conftest$ac_exeext
7553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554  (eval $ac_link) 2>&5
7555  ac_status=$?
7556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559  (eval $ac_try) 2>&5
7560  ac_status=$?
7561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562  (exit $ac_status); }; }; then
7563  :
7564else
7565  echo "$as_me: program exited with status $ac_status" >&5
7566echo "$as_me: failed program was:" >&5
7567sed 's/^/| /' conftest.$ac_ext >&5
7568
7569( exit $ac_status )
7570ac_cv_header_stdc=no
7571fi
7572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7573fi
7574
7575
7576fi
7577fi
7578{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7579echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7580if test $ac_cv_header_stdc = yes; then
7581
7582cat >>confdefs.h <<\_ACEOF
7583#define STDC_HEADERS 1
7584_ACEOF
7585
7586fi
7587
7588# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7599		  inttypes.h stdint.h unistd.h
7600do
7601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7602{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7605  echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607  cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h.  */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h.  */
7613$ac_includes_default
7614
7615#include <$ac_header>
7616_ACEOF
7617rm -f conftest.$ac_objext
7618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619  (eval $ac_compile) 2>conftest.er1
7620  ac_status=$?
7621  grep -v '^ *+' conftest.er1 >conftest.err
7622  rm -f conftest.er1
7623  cat conftest.err >&5
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); } &&
7626	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628  (eval $ac_try) 2>&5
7629  ac_status=$?
7630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631  (exit $ac_status); }; } &&
7632	 { ac_try='test -s conftest.$ac_objext'
7633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634  (eval $ac_try) 2>&5
7635  ac_status=$?
7636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637  (exit $ac_status); }; }; then
7638  eval "$as_ac_Header=yes"
7639else
7640  echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643	eval "$as_ac_Header=no"
7644fi
7645
7646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7647fi
7648ac_res=`eval echo '${'$as_ac_Header'}'`
7649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7650echo "${ECHO_T}$ac_res" >&6; }
7651if test `eval echo '${'$as_ac_Header'}'` = yes; then
7652  cat >>confdefs.h <<_ACEOF
7653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7654_ACEOF
7655
7656fi
7657
7658done
7659
7660
7661{ echo "$as_me:$LINENO: checking for pid_t" >&5
7662echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7663if test "${ac_cv_type_pid_t+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h.  */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h.  */
7672$ac_includes_default
7673typedef pid_t ac__type_new_;
7674int
7675main ()
7676{
7677if ((ac__type_new_ *) 0)
7678  return 0;
7679if (sizeof (ac__type_new_))
7680  return 0;
7681  ;
7682  return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext
7686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687  (eval $ac_compile) 2>conftest.er1
7688  ac_status=$?
7689  grep -v '^ *+' conftest.er1 >conftest.err
7690  rm -f conftest.er1
7691  cat conftest.err >&5
7692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693  (exit $ac_status); } &&
7694	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696  (eval $ac_try) 2>&5
7697  ac_status=$?
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); }; } &&
7700	 { ac_try='test -s conftest.$ac_objext'
7701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702  (eval $ac_try) 2>&5
7703  ac_status=$?
7704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705  (exit $ac_status); }; }; then
7706  ac_cv_type_pid_t=yes
7707else
7708  echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
7710
7711	ac_cv_type_pid_t=no
7712fi
7713
7714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715fi
7716{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7717echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7718if test $ac_cv_type_pid_t = yes; then
7719  :
7720else
7721
7722cat >>confdefs.h <<_ACEOF
7723#define pid_t int
7724_ACEOF
7725
7726fi
7727
7728{ echo "$as_me:$LINENO: checking for size_t" >&5
7729echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7730if test "${ac_cv_type_size_t+set}" = set; then
7731  echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733  cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h.  */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h.  */
7739$ac_includes_default
7740typedef size_t ac__type_new_;
7741int
7742main ()
7743{
7744if ((ac__type_new_ *) 0)
7745  return 0;
7746if (sizeof (ac__type_new_))
7747  return 0;
7748  ;
7749  return 0;
7750}
7751_ACEOF
7752rm -f conftest.$ac_objext
7753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754  (eval $ac_compile) 2>conftest.er1
7755  ac_status=$?
7756  grep -v '^ *+' conftest.er1 >conftest.err
7757  rm -f conftest.er1
7758  cat conftest.err >&5
7759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760  (exit $ac_status); } &&
7761	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763  (eval $ac_try) 2>&5
7764  ac_status=$?
7765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); }; } &&
7767	 { ac_try='test -s conftest.$ac_objext'
7768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769  (eval $ac_try) 2>&5
7770  ac_status=$?
7771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772  (exit $ac_status); }; }; then
7773  ac_cv_type_size_t=yes
7774else
7775  echo "$as_me: failed program was:" >&5
7776sed 's/^/| /' conftest.$ac_ext >&5
7777
7778	ac_cv_type_size_t=no
7779fi
7780
7781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7782fi
7783{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7784echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7785if test $ac_cv_type_size_t = yes; then
7786  :
7787else
7788
7789cat >>confdefs.h <<_ACEOF
7790#define size_t unsigned int
7791_ACEOF
7792
7793fi
7794
7795{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7796echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7797if test "${ac_cv_c_const+set}" = set; then
7798  echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800  cat >conftest.$ac_ext <<_ACEOF
7801/* confdefs.h.  */
7802_ACEOF
7803cat confdefs.h >>conftest.$ac_ext
7804cat >>conftest.$ac_ext <<_ACEOF
7805/* end confdefs.h.  */
7806
7807int
7808main ()
7809{
7810/* FIXME: Include the comments suggested by Paul. */
7811#ifndef __cplusplus
7812  /* Ultrix mips cc rejects this.  */
7813  typedef int charset[2];
7814  const charset x;
7815  /* SunOS 4.1.1 cc rejects this.  */
7816  char const *const *ccp;
7817  char **p;
7818  /* NEC SVR4.0.2 mips cc rejects this.  */
7819  struct point {int x, y;};
7820  static struct point const zero = {0,0};
7821  /* AIX XL C 1.02.0.0 rejects this.
7822     It does not let you subtract one const X* pointer from another in
7823     an arm of an if-expression whose if-part is not a constant
7824     expression */
7825  const char *g = "string";
7826  ccp = &g + (g ? g-g : 0);
7827  /* HPUX 7.0 cc rejects these. */
7828  ++ccp;
7829  p = (char**) ccp;
7830  ccp = (char const *const *) p;
7831  { /* SCO 3.2v4 cc rejects this.  */
7832    char *t;
7833    char const *s = 0 ? (char *) 0 : (char const *) 0;
7834
7835    *t++ = 0;
7836    if (s) return 0;
7837  }
7838  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7839    int x[] = {25, 17};
7840    const int *foo = &x[0];
7841    ++foo;
7842  }
7843  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7844    typedef const int *iptr;
7845    iptr p = 0;
7846    ++p;
7847  }
7848  { /* AIX XL C 1.02.0.0 rejects this saying
7849       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7850    struct s { int j; const int *ap[3]; };
7851    struct s *b; b->j = 5;
7852  }
7853  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7854    const int foo = 10;
7855    if (!foo) return 0;
7856  }
7857  return !x[0] && !zero.x;
7858#endif
7859
7860  ;
7861  return 0;
7862}
7863_ACEOF
7864rm -f conftest.$ac_objext
7865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866  (eval $ac_compile) 2>conftest.er1
7867  ac_status=$?
7868  grep -v '^ *+' conftest.er1 >conftest.err
7869  rm -f conftest.er1
7870  cat conftest.err >&5
7871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872  (exit $ac_status); } &&
7873	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875  (eval $ac_try) 2>&5
7876  ac_status=$?
7877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878  (exit $ac_status); }; } &&
7879	 { ac_try='test -s conftest.$ac_objext'
7880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881  (eval $ac_try) 2>&5
7882  ac_status=$?
7883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884  (exit $ac_status); }; }; then
7885  ac_cv_c_const=yes
7886else
7887  echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890	ac_cv_c_const=no
7891fi
7892
7893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7894fi
7895{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7896echo "${ECHO_T}$ac_cv_c_const" >&6; }
7897if test $ac_cv_c_const = no; then
7898
7899cat >>confdefs.h <<\_ACEOF
7900#define const
7901_ACEOF
7902
7903fi
7904
7905
7906# Check whether --enable-sdl was given.
7907if test "${enable_sdl+set}" = set; then
7908  enableval=$enable_sdl;
7909case "${enableval}" in
7910  yes) sdl=true
7911  CFLAGS="$CFLAGS -DSDL `sdl-config --cflags`"
7912  LDFLAGS="$LDFLAGS "
7913  LIBS="$LIBS `sdl-config --libs`";;
7914
7915  no)  sdl=false ;;
7916  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-sdl" >&5
7917echo "$as_me: error: bad value ${enableval} for --enable-sdl" >&2;}
7918   { (exit 1); exit 1; }; } ;;
7919esac
7920else
7921  sdl=false
7922fi
7923
7924
7925
7926if test x$sdl = xtrue; then
7927  SDL_TRUE=
7928  SDL_FALSE='#'
7929else
7930  SDL_TRUE='#'
7931  SDL_FALSE=
7932fi
7933
7934
7935if test x$sdl = xfalse ; then
7936
7937{ echo "$as_me:$LINENO: checking for main in -lICE" >&5
7938echo $ECHO_N "checking for main in -lICE... $ECHO_C" >&6; }
7939if test "${ac_cv_lib_ICE_main+set}" = set; then
7940  echo $ECHO_N "(cached) $ECHO_C" >&6
7941else
7942  ac_check_lib_save_LIBS=$LIBS
7943LIBS="-lICE  $LIBS"
7944cat >conftest.$ac_ext <<_ACEOF
7945/* confdefs.h.  */
7946_ACEOF
7947cat confdefs.h >>conftest.$ac_ext
7948cat >>conftest.$ac_ext <<_ACEOF
7949/* end confdefs.h.  */
7950
7951
7952int
7953main ()
7954{
7955return main ();
7956  ;
7957  return 0;
7958}
7959_ACEOF
7960rm -f conftest.$ac_objext conftest$ac_exeext
7961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962  (eval $ac_link) 2>conftest.er1
7963  ac_status=$?
7964  grep -v '^ *+' conftest.er1 >conftest.err
7965  rm -f conftest.er1
7966  cat conftest.err >&5
7967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968  (exit $ac_status); } &&
7969	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971  (eval $ac_try) 2>&5
7972  ac_status=$?
7973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974  (exit $ac_status); }; } &&
7975	 { ac_try='test -s conftest$ac_exeext'
7976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977  (eval $ac_try) 2>&5
7978  ac_status=$?
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); }; }; then
7981  ac_cv_lib_ICE_main=yes
7982else
7983  echo "$as_me: failed program was:" >&5
7984sed 's/^/| /' conftest.$ac_ext >&5
7985
7986	ac_cv_lib_ICE_main=no
7987fi
7988
7989rm -f conftest.err conftest.$ac_objext \
7990      conftest$ac_exeext conftest.$ac_ext
7991LIBS=$ac_check_lib_save_LIBS
7992fi
7993{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_main" >&5
7994echo "${ECHO_T}$ac_cv_lib_ICE_main" >&6; }
7995if test $ac_cv_lib_ICE_main = yes; then
7996  cat >>confdefs.h <<_ACEOF
7997#define HAVE_LIBICE 1
7998_ACEOF
7999
8000  LIBS="-lICE $LIBS"
8001
8002fi
8003
8004
8005{ echo "$as_me:$LINENO: checking for main in -lX11" >&5
8006echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6; }
8007if test "${ac_cv_lib_X11_main+set}" = set; then
8008  echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010  ac_check_lib_save_LIBS=$LIBS
8011LIBS="-lX11  $LIBS"
8012cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h.  */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h.  */
8018
8019
8020int
8021main ()
8022{
8023return main ();
8024  ;
8025  return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext conftest$ac_exeext
8029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030  (eval $ac_link) 2>conftest.er1
8031  ac_status=$?
8032  grep -v '^ *+' conftest.er1 >conftest.err
8033  rm -f conftest.er1
8034  cat conftest.err >&5
8035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036  (exit $ac_status); } &&
8037	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039  (eval $ac_try) 2>&5
8040  ac_status=$?
8041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042  (exit $ac_status); }; } &&
8043	 { ac_try='test -s conftest$ac_exeext'
8044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045  (eval $ac_try) 2>&5
8046  ac_status=$?
8047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048  (exit $ac_status); }; }; then
8049  ac_cv_lib_X11_main=yes
8050else
8051  echo "$as_me: failed program was:" >&5
8052sed 's/^/| /' conftest.$ac_ext >&5
8053
8054	ac_cv_lib_X11_main=no
8055fi
8056
8057rm -f conftest.err conftest.$ac_objext \
8058      conftest$ac_exeext conftest.$ac_ext
8059LIBS=$ac_check_lib_save_LIBS
8060fi
8061{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
8062echo "${ECHO_T}$ac_cv_lib_X11_main" >&6; }
8063if test $ac_cv_lib_X11_main = yes; then
8064  cat >>confdefs.h <<_ACEOF
8065#define HAVE_LIBX11 1
8066_ACEOF
8067
8068  LIBS="-lX11 $LIBS"
8069
8070fi
8071
8072else
8073  SDL_VERSION=1.2.0
8074
8075# Check whether --with-sdl-prefix was given.
8076if test "${with_sdl_prefix+set}" = set; then
8077  withval=$with_sdl_prefix; sdl_prefix="$withval"
8078else
8079  sdl_prefix=""
8080fi
8081
8082
8083# Check whether --with-sdl-exec-prefix was given.
8084if test "${with_sdl_exec_prefix+set}" = set; then
8085  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
8086else
8087  sdl_exec_prefix=""
8088fi
8089
8090# Check whether --enable-sdltest was given.
8091if test "${enable_sdltest+set}" = set; then
8092  enableval=$enable_sdltest;
8093else
8094  enable_sdltest=yes
8095fi
8096
8097
8098  if test x$sdl_exec_prefix != x ; then
8099     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
8100     if test x${SDL_CONFIG+set} != xset ; then
8101        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
8102     fi
8103  fi
8104  if test x$sdl_prefix != x ; then
8105     sdl_args="$sdl_args --prefix=$sdl_prefix"
8106     if test x${SDL_CONFIG+set} != xset ; then
8107        SDL_CONFIG=$sdl_prefix/bin/sdl-config
8108     fi
8109  fi
8110
8111
8112  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
8113  # Extract the first word of "sdl-config", so it can be a program name with args.
8114set dummy sdl-config; ac_word=$2
8115{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8117if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
8118  echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120  case $SDL_CONFIG in
8121  [\\/]* | ?:[\\/]*)
8122  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
8123  ;;
8124  *)
8125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128  IFS=$as_save_IFS
8129  test -z "$as_dir" && as_dir=.
8130  for ac_exec_ext in '' $ac_executable_extensions; do
8131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8132    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134    break 2
8135  fi
8136done
8137done
8138IFS=$as_save_IFS
8139
8140  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
8141  ;;
8142esac
8143fi
8144SDL_CONFIG=$ac_cv_path_SDL_CONFIG
8145if test -n "$SDL_CONFIG"; then
8146  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
8147echo "${ECHO_T}$SDL_CONFIG" >&6; }
8148else
8149  { echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6; }
8151fi
8152
8153
8154  min_sdl_version=$SDL_VERSION
8155  { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
8156echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
8157  no_sdl=""
8158  if test "$SDL_CONFIG" = "no" ; then
8159    no_sdl=yes
8160  else
8161    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
8162    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
8163
8164    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
8165           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8166    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
8167           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8168    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
8169           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8170    if test "x$enable_sdltest" = "xyes" ; then
8171      ac_save_CFLAGS="$CFLAGS"
8172      ac_save_CXXFLAGS="$CXXFLAGS"
8173      ac_save_LIBS="$LIBS"
8174      CFLAGS="$CFLAGS $SDL_CFLAGS"
8175      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8176      LIBS="$LIBS $SDL_LIBS"
8177      rm -f conf.sdltest
8178      if test "$cross_compiling" = yes; then
8179  echo $ac_n "cross compiling; assumed OK... $ac_c"
8180else
8181  cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h.  */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h.  */
8187
8188#include <stdio.h>
8189#include <stdlib.h>
8190#include <string.h>
8191#include "SDL.h"
8192
8193char*
8194my_strdup (char *str)
8195{
8196  char *new_str;
8197
8198  if (str)
8199    {
8200      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8201      strcpy (new_str, str);
8202    }
8203  else
8204    new_str = NULL;
8205
8206  return new_str;
8207}
8208
8209int main (int argc, char *argv[])
8210{
8211  int major, minor, micro;
8212  char *tmp_version;
8213
8214  /* This hangs on some systems (?)
8215  system ("touch conf.sdltest");
8216  */
8217  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8218
8219  /* HP/UX 9 (%@#!) writes to sscanf strings */
8220  tmp_version = my_strdup("$min_sdl_version");
8221  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8222     printf("%s, bad version string\n", "$min_sdl_version");
8223     exit(1);
8224   }
8225
8226   if (($sdl_major_version > major) ||
8227      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8228      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8229    {
8230      return 0;
8231    }
8232  else
8233    {
8234      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8235      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
8236      printf("*** best to upgrade to the required version.\n");
8237      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
8238      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
8239      printf("*** config.cache before re-running configure\n");
8240      return 1;
8241    }
8242}
8243
8244
8245_ACEOF
8246rm -f conftest$ac_exeext
8247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248  (eval $ac_link) 2>&5
8249  ac_status=$?
8250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253  (eval $ac_try) 2>&5
8254  ac_status=$?
8255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256  (exit $ac_status); }; }; then
8257  :
8258else
8259  echo "$as_me: program exited with status $ac_status" >&5
8260echo "$as_me: failed program was:" >&5
8261sed 's/^/| /' conftest.$ac_ext >&5
8262
8263( exit $ac_status )
8264no_sdl=yes
8265fi
8266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8267fi
8268
8269
8270       CFLAGS="$ac_save_CFLAGS"
8271       LIBS="$ac_save_LIBS"
8272     fi
8273  fi
8274  if test "x$no_sdl" = x ; then
8275     { echo "$as_me:$LINENO: result: yes" >&5
8276echo "${ECHO_T}yes" >&6; }
8277     :
8278  else
8279     { echo "$as_me:$LINENO: result: no" >&5
8280echo "${ECHO_T}no" >&6; }
8281     if test "$SDL_CONFIG" = "no" ; then
8282       echo "*** The sdl-config script installed by SDL could not be found"
8283       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
8284       echo "*** your path, or set the SDL_CONFIG environment variable to the"
8285       echo "*** full path to sdl-config."
8286     else
8287       if test -f conf.sdltest ; then
8288        :
8289       else
8290          echo "*** Could not run SDL test program, checking why..."
8291          CFLAGS="$CFLAGS $SDL_CFLAGS"
8292          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8293          LIBS="$LIBS $SDL_LIBS"
8294          cat >conftest.$ac_ext <<_ACEOF
8295/* confdefs.h.  */
8296_ACEOF
8297cat confdefs.h >>conftest.$ac_ext
8298cat >>conftest.$ac_ext <<_ACEOF
8299/* end confdefs.h.  */
8300
8301#include <stdio.h>
8302#include "SDL.h"
8303
8304int main(int argc, char *argv[])
8305{ return 0; }
8306#undef  main
8307#define main K_and_R_C_main
8308
8309int
8310main ()
8311{
8312 return 0;
8313  ;
8314  return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext conftest$ac_exeext
8318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319  (eval $ac_link) 2>conftest.er1
8320  ac_status=$?
8321  grep -v '^ *+' conftest.er1 >conftest.err
8322  rm -f conftest.er1
8323  cat conftest.err >&5
8324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325  (exit $ac_status); } &&
8326	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328  (eval $ac_try) 2>&5
8329  ac_status=$?
8330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331  (exit $ac_status); }; } &&
8332	 { ac_try='test -s conftest$ac_exeext'
8333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334  (eval $ac_try) 2>&5
8335  ac_status=$?
8336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337  (exit $ac_status); }; }; then
8338   echo "*** The test program compiled, but did not run. This usually means"
8339          echo "*** that the run-time linker is not finding SDL or finding the wrong"
8340          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
8341          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8342          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8343          echo "*** is required on your system"
8344	  echo "***"
8345          echo "*** If you have an old version installed, it is best to remove it, although"
8346          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8347else
8348  echo "$as_me: failed program was:" >&5
8349sed 's/^/| /' conftest.$ac_ext >&5
8350
8351	 echo "*** The test program failed to compile or link. See the file config.log for the"
8352          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
8353          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
8354          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
8355fi
8356
8357rm -f conftest.err conftest.$ac_objext \
8358      conftest$ac_exeext conftest.$ac_ext
8359          CFLAGS="$ac_save_CFLAGS"
8360          CXXFLAGS="$ac_save_CXXFLAGS"
8361          LIBS="$ac_save_LIBS"
8362       fi
8363     fi
8364     SDL_CFLAGS=""
8365     SDL_CXXFLAGS=""
8366     SDL_LIBS=""
8367     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
8368echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
8369   { (exit 1); exit 1; }; }
8370  fi
8371
8372
8373  rm -f conf.sdltest
8374
8375
8376{ echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8377echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6; }
8378if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8379  echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381  ac_check_lib_save_LIBS=$LIBS
8382LIBS="-lSDL_image  $LIBS"
8383cat >conftest.$ac_ext <<_ACEOF
8384/* confdefs.h.  */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
8388/* end confdefs.h.  */
8389
8390
8391int
8392main ()
8393{
8394return main ();
8395  ;
8396  return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext conftest$ac_exeext
8400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401  (eval $ac_link) 2>conftest.er1
8402  ac_status=$?
8403  grep -v '^ *+' conftest.er1 >conftest.err
8404  rm -f conftest.er1
8405  cat conftest.err >&5
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); } &&
8408	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410  (eval $ac_try) 2>&5
8411  ac_status=$?
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); }; } &&
8414	 { ac_try='test -s conftest$ac_exeext'
8415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416  (eval $ac_try) 2>&5
8417  ac_status=$?
8418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419  (exit $ac_status); }; }; then
8420  ac_cv_lib_SDL_image_main=yes
8421else
8422  echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425	ac_cv_lib_SDL_image_main=no
8426fi
8427
8428rm -f conftest.err conftest.$ac_objext \
8429      conftest$ac_exeext conftest.$ac_ext
8430LIBS=$ac_check_lib_save_LIBS
8431fi
8432{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8433echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6; }
8434if test $ac_cv_lib_SDL_image_main = yes; then
8435  cat >>confdefs.h <<_ACEOF
8436#define HAVE_LIBSDL_IMAGE 1
8437_ACEOF
8438
8439  LIBS="-lSDL_image $LIBS"
8440
8441else
8442
8443  { { echo "$as_me:$LINENO: error: Cannot find required library SDL-image." >&5
8444echo "$as_me: error: Cannot find required library SDL-image." >&2;}
8445   { (exit 1); exit 1; }; }
8446  exit 1;
8447
8448
8449fi
8450
8451
8452{ echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
8453echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6; }
8454if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
8455  echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457  ac_check_lib_save_LIBS=$LIBS
8458LIBS="-lSDL_ttf  $LIBS"
8459cat >conftest.$ac_ext <<_ACEOF
8460/* confdefs.h.  */
8461_ACEOF
8462cat confdefs.h >>conftest.$ac_ext
8463cat >>conftest.$ac_ext <<_ACEOF
8464/* end confdefs.h.  */
8465
8466
8467int
8468main ()
8469{
8470return main ();
8471  ;
8472  return 0;
8473}
8474_ACEOF
8475rm -f conftest.$ac_objext conftest$ac_exeext
8476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477  (eval $ac_link) 2>conftest.er1
8478  ac_status=$?
8479  grep -v '^ *+' conftest.er1 >conftest.err
8480  rm -f conftest.er1
8481  cat conftest.err >&5
8482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); } &&
8484	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486  (eval $ac_try) 2>&5
8487  ac_status=$?
8488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489  (exit $ac_status); }; } &&
8490	 { ac_try='test -s conftest$ac_exeext'
8491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492  (eval $ac_try) 2>&5
8493  ac_status=$?
8494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); }; }; then
8496  ac_cv_lib_SDL_ttf_main=yes
8497else
8498  echo "$as_me: failed program was:" >&5
8499sed 's/^/| /' conftest.$ac_ext >&5
8500
8501	ac_cv_lib_SDL_ttf_main=no
8502fi
8503
8504rm -f conftest.err conftest.$ac_objext \
8505      conftest$ac_exeext conftest.$ac_ext
8506LIBS=$ac_check_lib_save_LIBS
8507fi
8508{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
8509echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6; }
8510if test $ac_cv_lib_SDL_ttf_main = yes; then
8511  cat >>confdefs.h <<_ACEOF
8512#define HAVE_LIBSDL_TTF 1
8513_ACEOF
8514
8515  LIBS="-lSDL_ttf $LIBS"
8516
8517else
8518
8519  { { echo "$as_me:$LINENO: error: Cannot find required library SDL-ttf." >&5
8520echo "$as_me: error: Cannot find required library SDL-ttf." >&2;}
8521   { (exit 1); exit 1; }; }
8522  exit 1;
8523
8524
8525fi
8526
8527
8528{ echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
8529echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6; }
8530if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
8531  echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533  ac_check_lib_save_LIBS=$LIBS
8534LIBS="-lSDL_mixer  $LIBS"
8535cat >conftest.$ac_ext <<_ACEOF
8536/* confdefs.h.  */
8537_ACEOF
8538cat confdefs.h >>conftest.$ac_ext
8539cat >>conftest.$ac_ext <<_ACEOF
8540/* end confdefs.h.  */
8541
8542
8543int
8544main ()
8545{
8546return main ();
8547  ;
8548  return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext conftest$ac_exeext
8552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553  (eval $ac_link) 2>conftest.er1
8554  ac_status=$?
8555  grep -v '^ *+' conftest.er1 >conftest.err
8556  rm -f conftest.er1
8557  cat conftest.err >&5
8558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559  (exit $ac_status); } &&
8560	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562  (eval $ac_try) 2>&5
8563  ac_status=$?
8564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); }; } &&
8566	 { ac_try='test -s conftest$ac_exeext'
8567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568  (eval $ac_try) 2>&5
8569  ac_status=$?
8570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571  (exit $ac_status); }; }; then
8572  ac_cv_lib_SDL_mixer_main=yes
8573else
8574  echo "$as_me: failed program was:" >&5
8575sed 's/^/| /' conftest.$ac_ext >&5
8576
8577	ac_cv_lib_SDL_mixer_main=no
8578fi
8579
8580rm -f conftest.err conftest.$ac_objext \
8581      conftest$ac_exeext conftest.$ac_ext
8582LIBS=$ac_check_lib_save_LIBS
8583fi
8584{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
8585echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6; }
8586if test $ac_cv_lib_SDL_mixer_main = yes; then
8587  cat >>confdefs.h <<_ACEOF
8588#define HAVE_LIBSDL_MIXER 1
8589_ACEOF
8590
8591  LIBS="-lSDL_mixer $LIBS"
8592
8593else
8594
8595  { { echo "$as_me:$LINENO: error: Cannot find required library SDL-mixer." >&5
8596echo "$as_me: error: Cannot find required library SDL-mixer." >&2;}
8597   { (exit 1); exit 1; }; }
8598  exit 1;
8599
8600
8601fi
8602
8603
8604{ echo "$as_me:$LINENO: checking for main in -lSDL_net" >&5
8605echo $ECHO_N "checking for main in -lSDL_net... $ECHO_C" >&6; }
8606if test "${ac_cv_lib_SDL_net_main+set}" = set; then
8607  echo $ECHO_N "(cached) $ECHO_C" >&6
8608else
8609  ac_check_lib_save_LIBS=$LIBS
8610LIBS="-lSDL_net  $LIBS"
8611cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h.  */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h.  */
8617
8618
8619int
8620main ()
8621{
8622return main ();
8623  ;
8624  return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext conftest$ac_exeext
8628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629  (eval $ac_link) 2>conftest.er1
8630  ac_status=$?
8631  grep -v '^ *+' conftest.er1 >conftest.err
8632  rm -f conftest.er1
8633  cat conftest.err >&5
8634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635  (exit $ac_status); } &&
8636	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638  (eval $ac_try) 2>&5
8639  ac_status=$?
8640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641  (exit $ac_status); }; } &&
8642	 { ac_try='test -s conftest$ac_exeext'
8643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644  (eval $ac_try) 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); }; }; then
8648  ac_cv_lib_SDL_net_main=yes
8649else
8650  echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653	ac_cv_lib_SDL_net_main=no
8654fi
8655
8656rm -f conftest.err conftest.$ac_objext \
8657      conftest$ac_exeext conftest.$ac_ext
8658LIBS=$ac_check_lib_save_LIBS
8659fi
8660{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_main" >&5
8661echo "${ECHO_T}$ac_cv_lib_SDL_net_main" >&6; }
8662if test $ac_cv_lib_SDL_net_main = yes; then
8663  cat >>confdefs.h <<_ACEOF
8664#define HAVE_LIBSDL_NET 1
8665_ACEOF
8666
8667  LIBS="-lSDL_net $LIBS"
8668
8669fi
8670
8671{ echo "$as_me:$LINENO: checking for main in -lSDL_gfx" >&5
8672echo $ECHO_N "checking for main in -lSDL_gfx... $ECHO_C" >&6; }
8673if test "${ac_cv_lib_SDL_gfx_main+set}" = set; then
8674  echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676  ac_check_lib_save_LIBS=$LIBS
8677LIBS="-lSDL_gfx  $LIBS"
8678cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h.  */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h.  */
8684
8685
8686int
8687main ()
8688{
8689return main ();
8690  ;
8691  return 0;
8692}
8693_ACEOF
8694rm -f conftest.$ac_objext conftest$ac_exeext
8695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696  (eval $ac_link) 2>conftest.er1
8697  ac_status=$?
8698  grep -v '^ *+' conftest.er1 >conftest.err
8699  rm -f conftest.er1
8700  cat conftest.err >&5
8701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702  (exit $ac_status); } &&
8703	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705  (eval $ac_try) 2>&5
8706  ac_status=$?
8707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708  (exit $ac_status); }; } &&
8709	 { ac_try='test -s conftest$ac_exeext'
8710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711  (eval $ac_try) 2>&5
8712  ac_status=$?
8713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714  (exit $ac_status); }; }; then
8715  ac_cv_lib_SDL_gfx_main=yes
8716else
8717  echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720	ac_cv_lib_SDL_gfx_main=no
8721fi
8722
8723rm -f conftest.err conftest.$ac_objext \
8724      conftest$ac_exeext conftest.$ac_ext
8725LIBS=$ac_check_lib_save_LIBS
8726fi
8727{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_gfx_main" >&5
8728echo "${ECHO_T}$ac_cv_lib_SDL_gfx_main" >&6; }
8729if test $ac_cv_lib_SDL_gfx_main = yes; then
8730  cat >>confdefs.h <<_ACEOF
8731#define HAVE_LIBSDL_GFX 1
8732_ACEOF
8733
8734  LIBS="-lSDL_gfx $LIBS"
8735
8736else
8737
8738  { { echo "$as_me:$LINENO: error: Cannot find required library SDL-gfx." >&5
8739echo "$as_me: error: Cannot find required library SDL-gfx." >&2;}
8740   { (exit 1); exit 1; }; }
8741  exit 1;
8742
8743
8744fi
8745
8746fi
8747
8748
8749{ echo "$as_me:$LINENO: checking for main in -lm" >&5
8750echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
8751if test "${ac_cv_lib_m_main+set}" = set; then
8752  echo $ECHO_N "(cached) $ECHO_C" >&6
8753else
8754  ac_check_lib_save_LIBS=$LIBS
8755LIBS="-lm  $LIBS"
8756cat >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
8763
8764int
8765main ()
8766{
8767return main ();
8768  ;
8769  return 0;
8770}
8771_ACEOF
8772rm -f conftest.$ac_objext conftest$ac_exeext
8773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774  (eval $ac_link) 2>conftest.er1
8775  ac_status=$?
8776  grep -v '^ *+' conftest.er1 >conftest.err
8777  rm -f conftest.er1
8778  cat conftest.err >&5
8779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780  (exit $ac_status); } &&
8781	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783  (eval $ac_try) 2>&5
8784  ac_status=$?
8785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786  (exit $ac_status); }; } &&
8787	 { ac_try='test -s conftest$ac_exeext'
8788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789  (eval $ac_try) 2>&5
8790  ac_status=$?
8791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792  (exit $ac_status); }; }; then
8793  ac_cv_lib_m_main=yes
8794else
8795  echo "$as_me: failed program was:" >&5
8796sed 's/^/| /' conftest.$ac_ext >&5
8797
8798	ac_cv_lib_m_main=no
8799fi
8800
8801rm -f conftest.err conftest.$ac_objext \
8802      conftest$ac_exeext conftest.$ac_ext
8803LIBS=$ac_check_lib_save_LIBS
8804fi
8805{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8806echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
8807if test $ac_cv_lib_m_main = yes; then
8808  cat >>confdefs.h <<_ACEOF
8809#define HAVE_LIBM 1
8810_ACEOF
8811
8812  LIBS="-lm $LIBS"
8813
8814fi
8815
8816
8817
8818
8819
8820
8821
8822ac_header_dirent=no
8823for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8824  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8825{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8826echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8828  echo $ECHO_N "(cached) $ECHO_C" >&6
8829else
8830  cat >conftest.$ac_ext <<_ACEOF
8831/* confdefs.h.  */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h.  */
8836#include <sys/types.h>
8837#include <$ac_hdr>
8838
8839int
8840main ()
8841{
8842if ((DIR *) 0)
8843return 0;
8844  ;
8845  return 0;
8846}
8847_ACEOF
8848rm -f conftest.$ac_objext
8849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8850  (eval $ac_compile) 2>conftest.er1
8851  ac_status=$?
8852  grep -v '^ *+' conftest.er1 >conftest.err
8853  rm -f conftest.er1
8854  cat conftest.err >&5
8855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856  (exit $ac_status); } &&
8857	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859  (eval $ac_try) 2>&5
8860  ac_status=$?
8861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862  (exit $ac_status); }; } &&
8863	 { ac_try='test -s conftest.$ac_objext'
8864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865  (eval $ac_try) 2>&5
8866  ac_status=$?
8867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868  (exit $ac_status); }; }; then
8869  eval "$as_ac_Header=yes"
8870else
8871  echo "$as_me: failed program was:" >&5
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
8874	eval "$as_ac_Header=no"
8875fi
8876
8877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8878fi
8879ac_res=`eval echo '${'$as_ac_Header'}'`
8880	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8881echo "${ECHO_T}$ac_res" >&6; }
8882if test `eval echo '${'$as_ac_Header'}'` = yes; then
8883  cat >>confdefs.h <<_ACEOF
8884#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8885_ACEOF
8886
8887ac_header_dirent=$ac_hdr; break
8888fi
8889
8890done
8891# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8892if test $ac_header_dirent = dirent.h; then
8893  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8894echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8895if test "${ac_cv_search_opendir+set}" = set; then
8896  echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898  ac_func_search_save_LIBS=$LIBS
8899cat >conftest.$ac_ext <<_ACEOF
8900/* confdefs.h.  */
8901_ACEOF
8902cat confdefs.h >>conftest.$ac_ext
8903cat >>conftest.$ac_ext <<_ACEOF
8904/* end confdefs.h.  */
8905
8906/* Override any GCC internal prototype to avoid an error.
8907   Use char because int might match the return type of a GCC
8908   builtin and then its argument prototype would still apply.  */
8909#ifdef __cplusplus
8910extern "C"
8911#endif
8912char opendir ();
8913int
8914main ()
8915{
8916return opendir ();
8917  ;
8918  return 0;
8919}
8920_ACEOF
8921for ac_lib in '' dir; do
8922  if test -z "$ac_lib"; then
8923    ac_res="none required"
8924  else
8925    ac_res=-l$ac_lib
8926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8927  fi
8928  rm -f conftest.$ac_objext conftest$ac_exeext
8929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930  (eval $ac_link) 2>conftest.er1
8931  ac_status=$?
8932  grep -v '^ *+' conftest.er1 >conftest.err
8933  rm -f conftest.er1
8934  cat conftest.err >&5
8935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936  (exit $ac_status); } &&
8937	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939  (eval $ac_try) 2>&5
8940  ac_status=$?
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); }; } &&
8943	 { ac_try='test -s conftest$ac_exeext'
8944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945  (eval $ac_try) 2>&5
8946  ac_status=$?
8947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948  (exit $ac_status); }; }; then
8949  ac_cv_search_opendir=$ac_res
8950else
8951  echo "$as_me: failed program was:" >&5
8952sed 's/^/| /' conftest.$ac_ext >&5
8953
8954
8955fi
8956
8957rm -f conftest.err conftest.$ac_objext \
8958      conftest$ac_exeext
8959  if test "${ac_cv_search_opendir+set}" = set; then
8960  break
8961fi
8962done
8963if test "${ac_cv_search_opendir+set}" = set; then
8964  :
8965else
8966  ac_cv_search_opendir=no
8967fi
8968rm conftest.$ac_ext
8969LIBS=$ac_func_search_save_LIBS
8970fi
8971{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8972echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8973ac_res=$ac_cv_search_opendir
8974if test "$ac_res" != no; then
8975  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8976
8977fi
8978
8979else
8980  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8981echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8982if test "${ac_cv_search_opendir+set}" = set; then
8983  echo $ECHO_N "(cached) $ECHO_C" >&6
8984else
8985  ac_func_search_save_LIBS=$LIBS
8986cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h.  */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h.  */
8992
8993/* Override any GCC internal prototype to avoid an error.
8994   Use char because int might match the return type of a GCC
8995   builtin and then its argument prototype would still apply.  */
8996#ifdef __cplusplus
8997extern "C"
8998#endif
8999char opendir ();
9000int
9001main ()
9002{
9003return opendir ();
9004  ;
9005  return 0;
9006}
9007_ACEOF
9008for ac_lib in '' x; do
9009  if test -z "$ac_lib"; then
9010    ac_res="none required"
9011  else
9012    ac_res=-l$ac_lib
9013    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9014  fi
9015  rm -f conftest.$ac_objext conftest$ac_exeext
9016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017  (eval $ac_link) 2>conftest.er1
9018  ac_status=$?
9019  grep -v '^ *+' conftest.er1 >conftest.err
9020  rm -f conftest.er1
9021  cat conftest.err >&5
9022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023  (exit $ac_status); } &&
9024	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026  (eval $ac_try) 2>&5
9027  ac_status=$?
9028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029  (exit $ac_status); }; } &&
9030	 { ac_try='test -s conftest$ac_exeext'
9031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032  (eval $ac_try) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }; }; then
9036  ac_cv_search_opendir=$ac_res
9037else
9038  echo "$as_me: failed program was:" >&5
9039sed 's/^/| /' conftest.$ac_ext >&5
9040
9041
9042fi
9043
9044rm -f conftest.err conftest.$ac_objext \
9045      conftest$ac_exeext
9046  if test "${ac_cv_search_opendir+set}" = set; then
9047  break
9048fi
9049done
9050if test "${ac_cv_search_opendir+set}" = set; then
9051  :
9052else
9053  ac_cv_search_opendir=no
9054fi
9055rm conftest.$ac_ext
9056LIBS=$ac_func_search_save_LIBS
9057fi
9058{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9059echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9060ac_res=$ac_cv_search_opendir
9061if test "$ac_res" != no; then
9062  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9063
9064fi
9065
9066fi
9067
9068{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9069echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9070if test "${ac_cv_header_stdc+set}" = set; then
9071  echo $ECHO_N "(cached) $ECHO_C" >&6
9072else
9073  cat >conftest.$ac_ext <<_ACEOF
9074/* confdefs.h.  */
9075_ACEOF
9076cat confdefs.h >>conftest.$ac_ext
9077cat >>conftest.$ac_ext <<_ACEOF
9078/* end confdefs.h.  */
9079#include <stdlib.h>
9080#include <stdarg.h>
9081#include <string.h>
9082#include <float.h>
9083
9084int
9085main ()
9086{
9087
9088  ;
9089  return 0;
9090}
9091_ACEOF
9092rm -f conftest.$ac_objext
9093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094  (eval $ac_compile) 2>conftest.er1
9095  ac_status=$?
9096  grep -v '^ *+' conftest.er1 >conftest.err
9097  rm -f conftest.er1
9098  cat conftest.err >&5
9099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100  (exit $ac_status); } &&
9101	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103  (eval $ac_try) 2>&5
9104  ac_status=$?
9105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106  (exit $ac_status); }; } &&
9107	 { ac_try='test -s conftest.$ac_objext'
9108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109  (eval $ac_try) 2>&5
9110  ac_status=$?
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); }; }; then
9113  ac_cv_header_stdc=yes
9114else
9115  echo "$as_me: failed program was:" >&5
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118	ac_cv_header_stdc=no
9119fi
9120
9121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9122
9123if test $ac_cv_header_stdc = yes; then
9124  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9125  cat >conftest.$ac_ext <<_ACEOF
9126/* confdefs.h.  */
9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h.  */
9131#include <string.h>
9132
9133_ACEOF
9134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9135  $EGREP "memchr" >/dev/null 2>&1; then
9136  :
9137else
9138  ac_cv_header_stdc=no
9139fi
9140rm -f conftest*
9141
9142fi
9143
9144if test $ac_cv_header_stdc = yes; then
9145  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9146  cat >conftest.$ac_ext <<_ACEOF
9147/* confdefs.h.  */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h.  */
9152#include <stdlib.h>
9153
9154_ACEOF
9155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9156  $EGREP "free" >/dev/null 2>&1; then
9157  :
9158else
9159  ac_cv_header_stdc=no
9160fi
9161rm -f conftest*
9162
9163fi
9164
9165if test $ac_cv_header_stdc = yes; then
9166  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9167  if test "$cross_compiling" = yes; then
9168  :
9169else
9170  cat >conftest.$ac_ext <<_ACEOF
9171/* confdefs.h.  */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h.  */
9176#include <ctype.h>
9177#include <stdlib.h>
9178#if ((' ' & 0x0FF) == 0x020)
9179# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9180# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9181#else
9182# define ISLOWER(c) \
9183		   (('a' <= (c) && (c) <= 'i') \
9184		     || ('j' <= (c) && (c) <= 'r') \
9185		     || ('s' <= (c) && (c) <= 'z'))
9186# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9187#endif
9188
9189#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9190int
9191main ()
9192{
9193  int i;
9194  for (i = 0; i < 256; i++)
9195    if (XOR (islower (i), ISLOWER (i))
9196	|| toupper (i) != TOUPPER (i))
9197      return 2;
9198  return 0;
9199}
9200_ACEOF
9201rm -f conftest$ac_exeext
9202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203  (eval $ac_link) 2>&5
9204  ac_status=$?
9205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208  (eval $ac_try) 2>&5
9209  ac_status=$?
9210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211  (exit $ac_status); }; }; then
9212  :
9213else
9214  echo "$as_me: program exited with status $ac_status" >&5
9215echo "$as_me: failed program was:" >&5
9216sed 's/^/| /' conftest.$ac_ext >&5
9217
9218( exit $ac_status )
9219ac_cv_header_stdc=no
9220fi
9221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9222fi
9223
9224
9225fi
9226fi
9227{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9228echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9229if test $ac_cv_header_stdc = yes; then
9230
9231cat >>confdefs.h <<\_ACEOF
9232#define STDC_HEADERS 1
9233_ACEOF
9234
9235fi
9236
9237{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9238echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9239if test "${ac_cv_header_sys_wait_h+set}" = set; then
9240  echo $ECHO_N "(cached) $ECHO_C" >&6
9241else
9242  cat >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 <sys/types.h>
9249#include <sys/wait.h>
9250#ifndef WEXITSTATUS
9251# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9252#endif
9253#ifndef WIFEXITED
9254# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9255#endif
9256
9257int
9258main ()
9259{
9260  int s;
9261  wait (&s);
9262  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9263  ;
9264  return 0;
9265}
9266_ACEOF
9267rm -f conftest.$ac_objext
9268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9269  (eval $ac_compile) 2>conftest.er1
9270  ac_status=$?
9271  grep -v '^ *+' conftest.er1 >conftest.err
9272  rm -f conftest.er1
9273  cat conftest.err >&5
9274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275  (exit $ac_status); } &&
9276	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278  (eval $ac_try) 2>&5
9279  ac_status=$?
9280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281  (exit $ac_status); }; } &&
9282	 { ac_try='test -s conftest.$ac_objext'
9283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284  (eval $ac_try) 2>&5
9285  ac_status=$?
9286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287  (exit $ac_status); }; }; then
9288  ac_cv_header_sys_wait_h=yes
9289else
9290  echo "$as_me: failed program was:" >&5
9291sed 's/^/| /' conftest.$ac_ext >&5
9292
9293	ac_cv_header_sys_wait_h=no
9294fi
9295
9296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9297fi
9298{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9299echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9300if test $ac_cv_header_sys_wait_h = yes; then
9301
9302cat >>confdefs.h <<\_ACEOF
9303#define HAVE_SYS_WAIT_H 1
9304_ACEOF
9305
9306fi
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317for ac_header in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h sys/audio.h sys/soundcard.h linux/soundcard.h machine/soundcard.h
9318do
9319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9321  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324  echo $ECHO_N "(cached) $ECHO_C" >&6
9325fi
9326ac_res=`eval echo '${'$as_ac_Header'}'`
9327	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9328echo "${ECHO_T}$ac_res" >&6; }
9329else
9330  # Is the header compilable?
9331{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9333cat >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$ac_includes_default
9340#include <$ac_header>
9341_ACEOF
9342rm -f conftest.$ac_objext
9343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9344  (eval $ac_compile) 2>conftest.er1
9345  ac_status=$?
9346  grep -v '^ *+' conftest.er1 >conftest.err
9347  rm -f conftest.er1
9348  cat conftest.err >&5
9349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350  (exit $ac_status); } &&
9351	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353  (eval $ac_try) 2>&5
9354  ac_status=$?
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); }; } &&
9357	 { ac_try='test -s conftest.$ac_objext'
9358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359  (eval $ac_try) 2>&5
9360  ac_status=$?
9361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362  (exit $ac_status); }; }; then
9363  ac_header_compiler=yes
9364else
9365  echo "$as_me: failed program was:" >&5
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368	ac_header_compiler=no
9369fi
9370
9371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9372{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9373echo "${ECHO_T}$ac_header_compiler" >&6; }
9374
9375# Is the header present?
9376{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9378cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h.  */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h.  */
9384#include <$ac_header>
9385_ACEOF
9386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9387  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9388  ac_status=$?
9389  grep -v '^ *+' conftest.er1 >conftest.err
9390  rm -f conftest.er1
9391  cat conftest.err >&5
9392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393  (exit $ac_status); } >/dev/null; then
9394  if test -s conftest.err; then
9395    ac_cpp_err=$ac_c_preproc_warn_flag
9396    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9397  else
9398    ac_cpp_err=
9399  fi
9400else
9401  ac_cpp_err=yes
9402fi
9403if test -z "$ac_cpp_err"; then
9404  ac_header_preproc=yes
9405else
9406  echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409  ac_header_preproc=no
9410fi
9411
9412rm -f conftest.err conftest.$ac_ext
9413{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9414echo "${ECHO_T}$ac_header_preproc" >&6; }
9415
9416# So?  What about this header?
9417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9418  yes:no: )
9419    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9421    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9423    ac_header_preproc=yes
9424    ;;
9425  no:yes:* )
9426    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9428    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9429echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9430    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9432    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9433echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9434    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9436    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9438
9439    ;;
9440esac
9441{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9444  echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446  eval "$as_ac_Header=\$ac_header_preproc"
9447fi
9448ac_res=`eval echo '${'$as_ac_Header'}'`
9449	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9450echo "${ECHO_T}$ac_res" >&6; }
9451
9452fi
9453if test `eval echo '${'$as_ac_Header'}'` = yes; then
9454  cat >>confdefs.h <<_ACEOF
9455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9456_ACEOF
9457
9458fi
9459
9460done
9461
9462
9463
9464
9465game_datadir=
9466# Check whether --enable-admin was given.
9467if test "${enable_admin+set}" = set; then
9468  enableval=$enable_admin;
9469	        game_datadir="$datadir"
9470	        game_datadir=`(
9471	             test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9472	             test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9473	             eval echo \""$game_datadir"/games/XBlast-TNT/\"
9474	            )`
9475
9476fi
9477
9478
9479# Check whether --with-otherdatadir was given.
9480if test "${with_otherdatadir+set}" = set; then
9481  withval=$with_otherdatadir; game_datadir="$with_otherdatadir"
9482else
9483  if test x$game_datadir = x ; then
9484game_datadir="./"
9485fi
9486fi
9487
9488
9489
9490CFLAGS="$CFLAGS -DGAME_DATADIR=\\\"$datadir\\\""
9491
9492
9493
9494# Check whether --enable-sound was given.
9495if test "${enable_sound+set}" = set; then
9496  enableval=$enable_sound;
9497case "${enableval}" in
9498  yes) xbsndsrv=true
9499  CFLAGS="$CFLAGS -DXBLAST_SOUND";;
9500  no)  xbsndsrv=false ;;
9501  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-sound" >&5
9502echo "$as_me: error: bad value ${enableval} for --enable-sound" >&2;}
9503   { (exit 1); exit 1; }; } ;;
9504esac
9505else
9506  xbsndsrv=false
9507fi
9508
9509
9510
9511if test x$xbsndsrv = xtrue; then
9512  XBSNDSRV_TRUE=
9513  XBSNDSRV_FALSE='#'
9514else
9515  XBSNDSRV_TRUE='#'
9516  XBSNDSRV_FALSE=
9517fi
9518
9519
9520# Check whether --enable-mini was given.
9521if test "${enable_mini+set}" = set; then
9522  enableval=$enable_mini;
9523case "${enableval}" in
9524  yes) CFLAGS="$CFLAGS -DMINI_XBLAST"
9525  mini=true;;
9526  no) mini=false  ;;
9527  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-mini" >&5
9528echo "$as_me: error: bad value ${enableval} for --enable-mini" >&2;}
9529   { (exit 1); exit 1; }; } ;;
9530esac
9531else
9532  mini=false
9533fi
9534
9535
9536# Check whether --enable-nat was given.
9537if test "${enable_nat+set}" = set; then
9538  enableval=$enable_nat;
9539case "${enableval}" in
9540  yes) CFLAGS="$CFLAGS -DDEBUG_NAT"
9541  nat=true;;
9542  no) nat=false  ;;
9543  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-nat" >&5
9544echo "$as_me: error: bad value ${enableval} for --enable-nat" >&2;}
9545   { (exit 1); exit 1; }; } ;;
9546esac
9547else
9548  nat=false
9549fi
9550
9551
9552# Check whether --enable-SMPF was given.
9553if test "${enable_SMPF+set}" = set; then
9554  enableval=$enable_SMPF;
9555case "${enableval}" in
9556  yes) CFLAGS="$CFLAGS -DSMPF"
9557  smpf=true;;
9558  no) smpf=false  ;;
9559  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-smpf" >&5
9560echo "$as_me: error: bad value ${enableval} for --enable-smpf" >&2;}
9561   { (exit 1); exit 1; }; } ;;
9562esac
9563else
9564  smpf=false
9565fi
9566
9567
9568
9569
9570{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9571echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9572if test "${ac_cv_header_time+set}" = set; then
9573  echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575  cat >conftest.$ac_ext <<_ACEOF
9576/* confdefs.h.  */
9577_ACEOF
9578cat confdefs.h >>conftest.$ac_ext
9579cat >>conftest.$ac_ext <<_ACEOF
9580/* end confdefs.h.  */
9581#include <sys/types.h>
9582#include <sys/time.h>
9583#include <time.h>
9584
9585int
9586main ()
9587{
9588if ((struct tm *) 0)
9589return 0;
9590  ;
9591  return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext
9595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9596  (eval $ac_compile) 2>conftest.er1
9597  ac_status=$?
9598  grep -v '^ *+' conftest.er1 >conftest.err
9599  rm -f conftest.er1
9600  cat conftest.err >&5
9601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602  (exit $ac_status); } &&
9603	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605  (eval $ac_try) 2>&5
9606  ac_status=$?
9607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608  (exit $ac_status); }; } &&
9609	 { ac_try='test -s conftest.$ac_objext'
9610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611  (eval $ac_try) 2>&5
9612  ac_status=$?
9613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614  (exit $ac_status); }; }; then
9615  ac_cv_header_time=yes
9616else
9617  echo "$as_me: failed program was:" >&5
9618sed 's/^/| /' conftest.$ac_ext >&5
9619
9620	ac_cv_header_time=no
9621fi
9622
9623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9624fi
9625{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9626echo "${ECHO_T}$ac_cv_header_time" >&6; }
9627if test $ac_cv_header_time = yes; then
9628
9629cat >>confdefs.h <<\_ACEOF
9630#define TIME_WITH_SYS_TIME 1
9631_ACEOF
9632
9633fi
9634
9635{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9636echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9637if test "${ac_cv_struct_tm+set}" = set; then
9638  echo $ECHO_N "(cached) $ECHO_C" >&6
9639else
9640  cat >conftest.$ac_ext <<_ACEOF
9641/* confdefs.h.  */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h.  */
9646#include <sys/types.h>
9647#include <time.h>
9648
9649int
9650main ()
9651{
9652struct tm *tp; tp->tm_sec;
9653  ;
9654  return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext
9658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659  (eval $ac_compile) 2>conftest.er1
9660  ac_status=$?
9661  grep -v '^ *+' conftest.er1 >conftest.err
9662  rm -f conftest.er1
9663  cat conftest.err >&5
9664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665  (exit $ac_status); } &&
9666	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668  (eval $ac_try) 2>&5
9669  ac_status=$?
9670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671  (exit $ac_status); }; } &&
9672	 { ac_try='test -s conftest.$ac_objext'
9673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674  (eval $ac_try) 2>&5
9675  ac_status=$?
9676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677  (exit $ac_status); }; }; then
9678  ac_cv_struct_tm=time.h
9679else
9680  echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
9683	ac_cv_struct_tm=sys/time.h
9684fi
9685
9686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9687fi
9688{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9689echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9690if test $ac_cv_struct_tm = sys/time.h; then
9691
9692cat >>confdefs.h <<\_ACEOF
9693#define TM_IN_SYS_TIME 1
9694_ACEOF
9695
9696fi
9697
9698
9699if test $ac_cv_c_compiler_gnu = yes; then
9700    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
9701echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
9702if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9703  echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705    ac_pattern="Autoconf.*'x'"
9706  cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h.  */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h.  */
9712#include <sgtty.h>
9713Autoconf TIOCGETP
9714_ACEOF
9715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9716  $EGREP "$ac_pattern" >/dev/null 2>&1; then
9717  ac_cv_prog_gcc_traditional=yes
9718else
9719  ac_cv_prog_gcc_traditional=no
9720fi
9721rm -f conftest*
9722
9723
9724  if test $ac_cv_prog_gcc_traditional = no; then
9725    cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h.  */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h.  */
9731#include <termio.h>
9732Autoconf TCGETA
9733_ACEOF
9734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9735  $EGREP "$ac_pattern" >/dev/null 2>&1; then
9736  ac_cv_prog_gcc_traditional=yes
9737fi
9738rm -f conftest*
9739
9740  fi
9741fi
9742{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
9743echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
9744  if test $ac_cv_prog_gcc_traditional = yes; then
9745    CC="$CC -traditional"
9746  fi
9747fi
9748
9749{ echo "$as_me:$LINENO: checking for working memcmp" >&5
9750echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
9751if test "${ac_cv_func_memcmp_working+set}" = set; then
9752  echo $ECHO_N "(cached) $ECHO_C" >&6
9753else
9754  if test "$cross_compiling" = yes; then
9755  ac_cv_func_memcmp_working=no
9756else
9757  cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h.  */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h.  */
9763$ac_includes_default
9764int
9765main ()
9766{
9767
9768  /* Some versions of memcmp are not 8-bit clean.  */
9769  char c0 = '\100', c1 = '\200', c2 = '\201';
9770  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9771    return 1;
9772
9773  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9774     or more and with at least one buffer not starting on a 4-byte boundary.
9775     William Lewis provided this test program.   */
9776  {
9777    char foo[21];
9778    char bar[21];
9779    int i;
9780    for (i = 0; i < 4; i++)
9781      {
9782	char *a = foo + i;
9783	char *b = bar + i;
9784	strcpy (a, "--------01111111");
9785	strcpy (b, "--------10000000");
9786	if (memcmp (a, b, 16) >= 0)
9787	  return 1;
9788      }
9789    return 0;
9790  }
9791
9792  ;
9793  return 0;
9794}
9795_ACEOF
9796rm -f conftest$ac_exeext
9797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798  (eval $ac_link) 2>&5
9799  ac_status=$?
9800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803  (eval $ac_try) 2>&5
9804  ac_status=$?
9805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806  (exit $ac_status); }; }; then
9807  ac_cv_func_memcmp_working=yes
9808else
9809  echo "$as_me: program exited with status $ac_status" >&5
9810echo "$as_me: failed program was:" >&5
9811sed 's/^/| /' conftest.$ac_ext >&5
9812
9813( exit $ac_status )
9814ac_cv_func_memcmp_working=no
9815fi
9816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9817fi
9818
9819
9820fi
9821{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9822echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
9823test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9824  *" memcmp.$ac_objext "* ) ;;
9825  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9826 ;;
9827esac
9828
9829
9830{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9831echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9832if test "${ac_cv_type_signal+set}" = set; then
9833  echo $ECHO_N "(cached) $ECHO_C" >&6
9834else
9835  cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h.  */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h.  */
9841#include <sys/types.h>
9842#include <signal.h>
9843
9844int
9845main ()
9846{
9847return *(signal (0, 0)) (0) == 1;
9848  ;
9849  return 0;
9850}
9851_ACEOF
9852rm -f conftest.$ac_objext
9853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9854  (eval $ac_compile) 2>conftest.er1
9855  ac_status=$?
9856  grep -v '^ *+' conftest.er1 >conftest.err
9857  rm -f conftest.er1
9858  cat conftest.err >&5
9859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860  (exit $ac_status); } &&
9861	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863  (eval $ac_try) 2>&5
9864  ac_status=$?
9865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866  (exit $ac_status); }; } &&
9867	 { ac_try='test -s conftest.$ac_objext'
9868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869  (eval $ac_try) 2>&5
9870  ac_status=$?
9871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872  (exit $ac_status); }; }; then
9873  ac_cv_type_signal=int
9874else
9875  echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878	ac_cv_type_signal=void
9879fi
9880
9881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9882fi
9883{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9884echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9885
9886cat >>confdefs.h <<_ACEOF
9887#define RETSIGTYPE $ac_cv_type_signal
9888_ACEOF
9889
9890
9891
9892for ac_func in strftime
9893do
9894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9895{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9897if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9898  echo $ECHO_N "(cached) $ECHO_C" >&6
9899else
9900  cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h.  */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h.  */
9906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9907   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9908#define $ac_func innocuous_$ac_func
9909
9910/* System header to define __stub macros and hopefully few prototypes,
9911    which can conflict with char $ac_func (); below.
9912    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9913    <limits.h> exists even on freestanding compilers.  */
9914
9915#ifdef __STDC__
9916# include <limits.h>
9917#else
9918# include <assert.h>
9919#endif
9920
9921#undef $ac_func
9922
9923/* Override any GCC internal prototype to avoid an error.
9924   Use char because int might match the return type of a GCC
9925   builtin and then its argument prototype would still apply.  */
9926#ifdef __cplusplus
9927extern "C"
9928#endif
9929char $ac_func ();
9930/* The GNU C library defines this for functions which it implements
9931    to always fail with ENOSYS.  Some functions are actually named
9932    something starting with __ and the normal name is an alias.  */
9933#if defined __stub_$ac_func || defined __stub___$ac_func
9934choke me
9935#endif
9936
9937int
9938main ()
9939{
9940return $ac_func ();
9941  ;
9942  return 0;
9943}
9944_ACEOF
9945rm -f conftest.$ac_objext conftest$ac_exeext
9946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947  (eval $ac_link) 2>conftest.er1
9948  ac_status=$?
9949  grep -v '^ *+' conftest.er1 >conftest.err
9950  rm -f conftest.er1
9951  cat conftest.err >&5
9952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953  (exit $ac_status); } &&
9954	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956  (eval $ac_try) 2>&5
9957  ac_status=$?
9958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959  (exit $ac_status); }; } &&
9960	 { ac_try='test -s conftest$ac_exeext'
9961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962  (eval $ac_try) 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); }; }; then
9966  eval "$as_ac_var=yes"
9967else
9968  echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971	eval "$as_ac_var=no"
9972fi
9973
9974rm -f conftest.err conftest.$ac_objext \
9975      conftest$ac_exeext conftest.$ac_ext
9976fi
9977ac_res=`eval echo '${'$as_ac_var'}'`
9978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9979echo "${ECHO_T}$ac_res" >&6; }
9980if test `eval echo '${'$as_ac_var'}'` = yes; then
9981  cat >>confdefs.h <<_ACEOF
9982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9983_ACEOF
9984
9985else
9986  # strftime is in -lintl on SCO UNIX.
9987{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9988echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
9989if test "${ac_cv_lib_intl_strftime+set}" = set; then
9990  echo $ECHO_N "(cached) $ECHO_C" >&6
9991else
9992  ac_check_lib_save_LIBS=$LIBS
9993LIBS="-lintl  $LIBS"
9994cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h.  */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h.  */
10000
10001/* Override any GCC internal prototype to avoid an error.
10002   Use char because int might match the return type of a GCC
10003   builtin and then its argument prototype would still apply.  */
10004#ifdef __cplusplus
10005extern "C"
10006#endif
10007char strftime ();
10008int
10009main ()
10010{
10011return strftime ();
10012  ;
10013  return 0;
10014}
10015_ACEOF
10016rm -f conftest.$ac_objext conftest$ac_exeext
10017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018  (eval $ac_link) 2>conftest.er1
10019  ac_status=$?
10020  grep -v '^ *+' conftest.er1 >conftest.err
10021  rm -f conftest.er1
10022  cat conftest.err >&5
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); } &&
10025	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027  (eval $ac_try) 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; } &&
10031	 { ac_try='test -s conftest$ac_exeext'
10032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033  (eval $ac_try) 2>&5
10034  ac_status=$?
10035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036  (exit $ac_status); }; }; then
10037  ac_cv_lib_intl_strftime=yes
10038else
10039  echo "$as_me: failed program was:" >&5
10040sed 's/^/| /' conftest.$ac_ext >&5
10041
10042	ac_cv_lib_intl_strftime=no
10043fi
10044
10045rm -f conftest.err conftest.$ac_objext \
10046      conftest$ac_exeext conftest.$ac_ext
10047LIBS=$ac_check_lib_save_LIBS
10048fi
10049{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10050echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
10051if test $ac_cv_lib_intl_strftime = yes; then
10052  cat >>confdefs.h <<\_ACEOF
10053#define HAVE_STRFTIME 1
10054_ACEOF
10055
10056LIBS="-lintl $LIBS"
10057fi
10058
10059fi
10060done
10061
10062
10063for ac_func in vprintf
10064do
10065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10066{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10068if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10069  echo $ECHO_N "(cached) $ECHO_C" >&6
10070else
10071  cat >conftest.$ac_ext <<_ACEOF
10072/* confdefs.h.  */
10073_ACEOF
10074cat confdefs.h >>conftest.$ac_ext
10075cat >>conftest.$ac_ext <<_ACEOF
10076/* end confdefs.h.  */
10077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10078   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10079#define $ac_func innocuous_$ac_func
10080
10081/* System header to define __stub macros and hopefully few prototypes,
10082    which can conflict with char $ac_func (); below.
10083    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10084    <limits.h> exists even on freestanding compilers.  */
10085
10086#ifdef __STDC__
10087# include <limits.h>
10088#else
10089# include <assert.h>
10090#endif
10091
10092#undef $ac_func
10093
10094/* Override any GCC internal prototype to avoid an error.
10095   Use char because int might match the return type of a GCC
10096   builtin and then its argument prototype would still apply.  */
10097#ifdef __cplusplus
10098extern "C"
10099#endif
10100char $ac_func ();
10101/* The GNU C library defines this for functions which it implements
10102    to always fail with ENOSYS.  Some functions are actually named
10103    something starting with __ and the normal name is an alias.  */
10104#if defined __stub_$ac_func || defined __stub___$ac_func
10105choke me
10106#endif
10107
10108int
10109main ()
10110{
10111return $ac_func ();
10112  ;
10113  return 0;
10114}
10115_ACEOF
10116rm -f conftest.$ac_objext conftest$ac_exeext
10117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118  (eval $ac_link) 2>conftest.er1
10119  ac_status=$?
10120  grep -v '^ *+' conftest.er1 >conftest.err
10121  rm -f conftest.er1
10122  cat conftest.err >&5
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); } &&
10125	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127  (eval $ac_try) 2>&5
10128  ac_status=$?
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); }; } &&
10131	 { ac_try='test -s conftest$ac_exeext'
10132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133  (eval $ac_try) 2>&5
10134  ac_status=$?
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); }; }; then
10137  eval "$as_ac_var=yes"
10138else
10139  echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
10142	eval "$as_ac_var=no"
10143fi
10144
10145rm -f conftest.err conftest.$ac_objext \
10146      conftest$ac_exeext conftest.$ac_ext
10147fi
10148ac_res=`eval echo '${'$as_ac_var'}'`
10149	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10150echo "${ECHO_T}$ac_res" >&6; }
10151if test `eval echo '${'$as_ac_var'}'` = yes; then
10152  cat >>confdefs.h <<_ACEOF
10153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10154_ACEOF
10155
10156{ echo "$as_me:$LINENO: checking for _doprnt" >&5
10157echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
10158if test "${ac_cv_func__doprnt+set}" = set; then
10159  echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161  cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h.  */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h.  */
10167/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10168   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10169#define _doprnt innocuous__doprnt
10170
10171/* System header to define __stub macros and hopefully few prototypes,
10172    which can conflict with char _doprnt (); below.
10173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174    <limits.h> exists even on freestanding compilers.  */
10175
10176#ifdef __STDC__
10177# include <limits.h>
10178#else
10179# include <assert.h>
10180#endif
10181
10182#undef _doprnt
10183
10184/* Override any GCC internal prototype to avoid an error.
10185   Use char because int might match the return type of a GCC
10186   builtin and then its argument prototype would still apply.  */
10187#ifdef __cplusplus
10188extern "C"
10189#endif
10190char _doprnt ();
10191/* The GNU C library defines this for functions which it implements
10192    to always fail with ENOSYS.  Some functions are actually named
10193    something starting with __ and the normal name is an alias.  */
10194#if defined __stub__doprnt || defined __stub____doprnt
10195choke me
10196#endif
10197
10198int
10199main ()
10200{
10201return _doprnt ();
10202  ;
10203  return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext conftest$ac_exeext
10207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10208  (eval $ac_link) 2>conftest.er1
10209  ac_status=$?
10210  grep -v '^ *+' conftest.er1 >conftest.err
10211  rm -f conftest.er1
10212  cat conftest.err >&5
10213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214  (exit $ac_status); } &&
10215	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217  (eval $ac_try) 2>&5
10218  ac_status=$?
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); }; } &&
10221	 { ac_try='test -s conftest$ac_exeext'
10222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223  (eval $ac_try) 2>&5
10224  ac_status=$?
10225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226  (exit $ac_status); }; }; then
10227  ac_cv_func__doprnt=yes
10228else
10229  echo "$as_me: failed program was:" >&5
10230sed 's/^/| /' conftest.$ac_ext >&5
10231
10232	ac_cv_func__doprnt=no
10233fi
10234
10235rm -f conftest.err conftest.$ac_objext \
10236      conftest$ac_exeext conftest.$ac_ext
10237fi
10238{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10239echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
10240if test $ac_cv_func__doprnt = yes; then
10241
10242cat >>confdefs.h <<\_ACEOF
10243#define HAVE_DOPRNT 1
10244_ACEOF
10245
10246fi
10247
10248fi
10249done
10250
10251
10252
10253
10254
10255
10256
10257for ac_func in gettimeofday mkdir select socket strstr
10258do
10259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10260{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10263  echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265  cat >conftest.$ac_ext <<_ACEOF
10266/* confdefs.h.  */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h.  */
10271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10272   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10273#define $ac_func innocuous_$ac_func
10274
10275/* System header to define __stub macros and hopefully few prototypes,
10276    which can conflict with char $ac_func (); below.
10277    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10278    <limits.h> exists even on freestanding compilers.  */
10279
10280#ifdef __STDC__
10281# include <limits.h>
10282#else
10283# include <assert.h>
10284#endif
10285
10286#undef $ac_func
10287
10288/* Override any GCC internal prototype to avoid an error.
10289   Use char because int might match the return type of a GCC
10290   builtin and then its argument prototype would still apply.  */
10291#ifdef __cplusplus
10292extern "C"
10293#endif
10294char $ac_func ();
10295/* The GNU C library defines this for functions which it implements
10296    to always fail with ENOSYS.  Some functions are actually named
10297    something starting with __ and the normal name is an alias.  */
10298#if defined __stub_$ac_func || defined __stub___$ac_func
10299choke me
10300#endif
10301
10302int
10303main ()
10304{
10305return $ac_func ();
10306  ;
10307  return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext conftest$ac_exeext
10311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312  (eval $ac_link) 2>conftest.er1
10313  ac_status=$?
10314  grep -v '^ *+' conftest.er1 >conftest.err
10315  rm -f conftest.er1
10316  cat conftest.err >&5
10317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318  (exit $ac_status); } &&
10319	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321  (eval $ac_try) 2>&5
10322  ac_status=$?
10323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324  (exit $ac_status); }; } &&
10325	 { ac_try='test -s conftest$ac_exeext'
10326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327  (eval $ac_try) 2>&5
10328  ac_status=$?
10329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330  (exit $ac_status); }; }; then
10331  eval "$as_ac_var=yes"
10332else
10333  echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336	eval "$as_ac_var=no"
10337fi
10338
10339rm -f conftest.err conftest.$ac_objext \
10340      conftest$ac_exeext conftest.$ac_ext
10341fi
10342ac_res=`eval echo '${'$as_ac_var'}'`
10343	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10344echo "${ECHO_T}$ac_res" >&6; }
10345if test `eval echo '${'$as_ac_var'}'` = yes; then
10346  cat >>confdefs.h <<_ACEOF
10347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10348_ACEOF
10349
10350fi
10351done
10352
10353ac_config_files="$ac_config_files Makefile po/Makefile.in"
10354
10355cat >confcache <<\_ACEOF
10356# This file is a shell script that caches the results of configure
10357# tests run on this system so they can be shared between configure
10358# scripts and configure runs, see configure's option --config-cache.
10359# It is not useful on other systems.  If it contains results you don't
10360# want to keep, you may remove or edit it.
10361#
10362# config.status only pays attention to the cache file if you give it
10363# the --recheck option to rerun configure.
10364#
10365# `ac_cv_env_foo' variables (set or unset) will be overridden when
10366# loading this file, other *unset* `ac_cv_foo' will be assigned the
10367# following values.
10368
10369_ACEOF
10370
10371# The following way of writing the cache mishandles newlines in values,
10372# but we know of no workaround that is simple, portable, and efficient.
10373# So, we kill variables containing newlines.
10374# Ultrix sh set writes to stderr and can't be redirected directly,
10375# and sets the high bit in the cache file unless we assign to the vars.
10376(
10377  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10378    eval ac_val=\$$ac_var
10379    case $ac_val in #(
10380    *${as_nl}*)
10381      case $ac_var in #(
10382      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10383echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10384      esac
10385      case $ac_var in #(
10386      _ | IFS | as_nl) ;; #(
10387      *) $as_unset $ac_var ;;
10388      esac ;;
10389    esac
10390  done
10391
10392  (set) 2>&1 |
10393    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10394    *${as_nl}ac_space=\ *)
10395      # `set' does not quote correctly, so add quotes (double-quote
10396      # substitution turns \\\\ into \\, and sed turns \\ into \).
10397      sed -n \
10398	"s/'/'\\\\''/g;
10399	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10400      ;; #(
10401    *)
10402      # `set' quotes correctly as required by POSIX, so do not add quotes.
10403      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10404      ;;
10405    esac |
10406    sort
10407) |
10408  sed '
10409     /^ac_cv_env_/b end
10410     t clear
10411     :clear
10412     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10413     t end
10414     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10415     :end' >>confcache
10416if diff $cache_file confcache >/dev/null 2>&1; then :; else
10417  if test -w $cache_file; then
10418    test "x$cache_file" != "x/dev/null" &&
10419      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10420echo "$as_me: updating cache $cache_file" >&6;}
10421    cat confcache >$cache_file
10422  else
10423    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10424echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10425  fi
10426fi
10427rm -f confcache
10428
10429test "x$prefix" = xNONE && prefix=$ac_default_prefix
10430# Let make expand exec_prefix.
10431test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10432
10433DEFS=-DHAVE_CONFIG_H
10434
10435ac_libobjs=
10436ac_ltlibobjs=
10437for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10438  # 1. Remove the extension, and $U if already installed.
10439  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10440  ac_i=`echo "$ac_i" | sed "$ac_script"`
10441  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10442  #    will be set to the directory where LIBOBJS objects are built.
10443  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10444  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10445done
10446LIBOBJS=$ac_libobjs
10447
10448LTLIBOBJS=$ac_ltlibobjs
10449
10450
10451if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10452  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10453Usually this means the macro was only invoked conditionally." >&5
10454echo "$as_me: error: conditional \"AMDEP\" was never defined.
10455Usually this means the macro was only invoked conditionally." >&2;}
10456   { (exit 1); exit 1; }; }
10457fi
10458if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10459  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10460Usually this means the macro was only invoked conditionally." >&5
10461echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10462Usually this means the macro was only invoked conditionally." >&2;}
10463   { (exit 1); exit 1; }; }
10464fi
10465if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
10466  { { echo "$as_me:$LINENO: error: conditional \"SDL\" was never defined.
10467Usually this means the macro was only invoked conditionally." >&5
10468echo "$as_me: error: conditional \"SDL\" was never defined.
10469Usually this means the macro was only invoked conditionally." >&2;}
10470   { (exit 1); exit 1; }; }
10471fi
10472if test -z "${XBSNDSRV_TRUE}" && test -z "${XBSNDSRV_FALSE}"; then
10473  { { echo "$as_me:$LINENO: error: conditional \"XBSNDSRV\" was never defined.
10474Usually this means the macro was only invoked conditionally." >&5
10475echo "$as_me: error: conditional \"XBSNDSRV\" was never defined.
10476Usually this means the macro was only invoked conditionally." >&2;}
10477   { (exit 1); exit 1; }; }
10478fi
10479
10480: ${CONFIG_STATUS=./config.status}
10481ac_clean_files_save=$ac_clean_files
10482ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10483{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10484echo "$as_me: creating $CONFIG_STATUS" >&6;}
10485cat >$CONFIG_STATUS <<_ACEOF
10486#! $SHELL
10487# Generated by $as_me.
10488# Run this file to recreate the current configuration.
10489# Compiler output produced by configure, useful for debugging
10490# configure, is in config.log if it exists.
10491
10492debug=false
10493ac_cs_recheck=false
10494ac_cs_silent=false
10495SHELL=\${CONFIG_SHELL-$SHELL}
10496_ACEOF
10497
10498cat >>$CONFIG_STATUS <<\_ACEOF
10499## --------------------- ##
10500## M4sh Initialization.  ##
10501## --------------------- ##
10502
10503# Be Bourne compatible
10504if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10505  emulate sh
10506  NULLCMD=:
10507  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10508  # is contrary to our usage.  Disable this feature.
10509  alias -g '${1+"$@"}'='"$@"'
10510  setopt NO_GLOB_SUBST
10511else
10512  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
10513fi
10514BIN_SH=xpg4; export BIN_SH # for Tru64
10515DUALCASE=1; export DUALCASE # for MKS sh
10516
10517
10518# PATH needs CR
10519# Avoid depending upon Character Ranges.
10520as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10521as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10522as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10523as_cr_digits='0123456789'
10524as_cr_alnum=$as_cr_Letters$as_cr_digits
10525
10526# The user is always right.
10527if test "${PATH_SEPARATOR+set}" != set; then
10528  echo "#! /bin/sh" >conf$$.sh
10529  echo  "exit 0"   >>conf$$.sh
10530  chmod +x conf$$.sh
10531  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10532    PATH_SEPARATOR=';'
10533  else
10534    PATH_SEPARATOR=:
10535  fi
10536  rm -f conf$$.sh
10537fi
10538
10539# Support unset when possible.
10540if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10541  as_unset=unset
10542else
10543  as_unset=false
10544fi
10545
10546
10547# IFS
10548# We need space, tab and new line, in precisely that order.  Quoting is
10549# there to prevent editors from complaining about space-tab.
10550# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10551# splitting by setting IFS to empty value.)
10552as_nl='
10553'
10554IFS=" ""	$as_nl"
10555
10556# Find who we are.  Look in the path if we contain no directory separator.
10557case $0 in
10558  *[\\/]* ) as_myself=$0 ;;
10559  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560for as_dir in $PATH
10561do
10562  IFS=$as_save_IFS
10563  test -z "$as_dir" && as_dir=.
10564  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10565done
10566IFS=$as_save_IFS
10567
10568     ;;
10569esac
10570# We did not find ourselves, most probably we were run as `sh COMMAND'
10571# in which case we are not to be found in the path.
10572if test "x$as_myself" = x; then
10573  as_myself=$0
10574fi
10575if test ! -f "$as_myself"; then
10576  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10577  { (exit 1); exit 1; }
10578fi
10579
10580# Work around bugs in pre-3.0 UWIN ksh.
10581for as_var in ENV MAIL MAILPATH
10582do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10583done
10584PS1='$ '
10585PS2='> '
10586PS4='+ '
10587
10588# NLS nuisances.
10589for as_var in \
10590  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10591  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10592  LC_TELEPHONE LC_TIME
10593do
10594  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10595    eval $as_var=C; export $as_var
10596  else
10597    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10598  fi
10599done
10600
10601# Required to use basename.
10602if expr a : '\(a\)' >/dev/null 2>&1 &&
10603   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10604  as_expr=expr
10605else
10606  as_expr=false
10607fi
10608
10609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10610  as_basename=basename
10611else
10612  as_basename=false
10613fi
10614
10615
10616# Name of the executable.
10617as_me=`$as_basename -- "$0" ||
10618$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10619	 X"$0" : 'X\(//\)$' \| \
10620	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10621echo X/"$0" |
10622    sed '/^.*\/\([^/][^/]*\)\/*$/{
10623	    s//\1/
10624	    q
10625	  }
10626	  /^X\/\(\/\/\)$/{
10627	    s//\1/
10628	    q
10629	  }
10630	  /^X\/\(\/\).*/{
10631	    s//\1/
10632	    q
10633	  }
10634	  s/.*/./; q'`
10635
10636# CDPATH.
10637$as_unset CDPATH
10638
10639
10640
10641  as_lineno_1=$LINENO
10642  as_lineno_2=$LINENO
10643  test "x$as_lineno_1" != "x$as_lineno_2" &&
10644  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10645
10646  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10647  # uniformly replaced by the line number.  The first 'sed' inserts a
10648  # line-number line after each line using $LINENO; the second 'sed'
10649  # does the real work.  The second script uses 'N' to pair each
10650  # line-number line with the line containing $LINENO, and appends
10651  # trailing '-' during substitution so that $LINENO is not a special
10652  # case at line end.
10653  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10654  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10655  # E. McMahon (1931-1989) for sed's syntax.  :-)
10656  sed -n '
10657    p
10658    /[$]LINENO/=
10659  ' <$as_myself |
10660    sed '
10661      s/[$]LINENO.*/&-/
10662      t lineno
10663      b
10664      :lineno
10665      N
10666      :loop
10667      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10668      t loop
10669      s/-\n.*//
10670    ' >$as_me.lineno &&
10671  chmod +x "$as_me.lineno" ||
10672    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10673   { (exit 1); exit 1; }; }
10674
10675  # Don't try to exec as it changes $[0], causing all sort of problems
10676  # (the dirname of $[0] is not the place where we might find the
10677  # original and so on.  Autoconf is especially sensitive to this).
10678  . "./$as_me.lineno"
10679  # Exit status is that of the last command.
10680  exit
10681}
10682
10683
10684if (dirname -- /) >/dev/null 2>&1; then
10685  as_dirname=dirname
10686else
10687  as_dirname=false
10688fi
10689
10690ECHO_C= ECHO_N= ECHO_T=
10691case `echo -n x` in
10692-n*)
10693  case `echo 'x\c'` in
10694  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10695  *)   ECHO_C='\c';;
10696  esac;;
10697*)
10698  ECHO_N='-n';;
10699esac
10700
10701if expr a : '\(a\)' >/dev/null 2>&1 &&
10702   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10703  as_expr=expr
10704else
10705  as_expr=false
10706fi
10707
10708rm -f conf$$ conf$$.exe conf$$.file
10709if test -d conf$$.dir; then
10710  rm -f conf$$.dir/conf$$.file
10711else
10712  rm -f conf$$.dir
10713  mkdir conf$$.dir
10714fi
10715echo >conf$$.file
10716if ln -s conf$$.file conf$$ 2>/dev/null; then
10717  as_ln_s='ln -s'
10718  # ... but there are two gotchas:
10719  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10720  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10721  # In both cases, we have to default to `cp -p'.
10722  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10723    as_ln_s='cp -p'
10724elif ln conf$$.file conf$$ 2>/dev/null; then
10725  as_ln_s=ln
10726else
10727  as_ln_s='cp -p'
10728fi
10729rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10730rmdir conf$$.dir 2>/dev/null
10731
10732if mkdir -p . 2>/dev/null; then
10733  as_mkdir_p=:
10734else
10735  test -d ./-p && rmdir ./-p
10736  as_mkdir_p=false
10737fi
10738
10739# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
10740# systems may use methods other than mode bits to determine executability.
10741cat >conf$$.file <<_ASEOF
10742#! /bin/sh
10743exit 0
10744_ASEOF
10745chmod +x conf$$.file
10746if test -x conf$$.file >/dev/null 2>&1; then
10747  as_executable_p="test -x"
10748else
10749  as_executable_p=:
10750fi
10751rm -f conf$$.file
10752
10753# Sed expression to map a string onto a valid CPP name.
10754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10755
10756# Sed expression to map a string onto a valid variable name.
10757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10758
10759
10760exec 6>&1
10761
10762# Save the log message, to keep $[0] and so on meaningful, and to
10763# report actual input values of CONFIG_FILES etc. instead of their
10764# values after options handling.
10765ac_log="
10766This file was extended by $as_me, which was
10767generated by GNU Autoconf 2.59d.  Invocation command line was
10768
10769  CONFIG_FILES    = $CONFIG_FILES
10770  CONFIG_HEADERS  = $CONFIG_HEADERS
10771  CONFIG_LINKS    = $CONFIG_LINKS
10772  CONFIG_COMMANDS = $CONFIG_COMMANDS
10773  $ $0 $@
10774
10775on `(hostname || uname -n) 2>/dev/null | sed 1q`
10776"
10777
10778_ACEOF
10779
10780cat >>$CONFIG_STATUS <<_ACEOF
10781# Files that config.status was made for.
10782config_files="$ac_config_files"
10783config_headers="$ac_config_headers"
10784config_commands="$ac_config_commands"
10785
10786_ACEOF
10787
10788cat >>$CONFIG_STATUS <<\_ACEOF
10789ac_cs_usage="\
10790\`$as_me' instantiates files from templates according to the
10791current configuration.
10792
10793Usage: $0 [OPTIONS] [FILE]...
10794
10795  -h, --help       print this help, then exit
10796  -V, --version    print version number, then exit
10797  -q, --quiet      do not print progress messages
10798  -d, --debug      don't remove temporary files
10799      --recheck    update $as_me by reconfiguring in the same conditions
10800  --file=FILE[:TEMPLATE]
10801		   instantiate the configuration file FILE
10802  --header=FILE[:TEMPLATE]
10803		   instantiate the configuration header FILE
10804
10805Configuration files:
10806$config_files
10807
10808Configuration headers:
10809$config_headers
10810
10811Configuration commands:
10812$config_commands
10813
10814Report bugs to <bug-autoconf@gnu.org>."
10815
10816_ACEOF
10817cat >>$CONFIG_STATUS <<_ACEOF
10818ac_cs_version="\\
10819config.status
10820configured by $0, generated by GNU Autoconf 2.59d,
10821  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10822
10823Copyright (C) 2006 Free Software Foundation, Inc.
10824This config.status script is free software; the Free Software Foundation
10825gives unlimited permission to copy, distribute and modify it."
10826
10827ac_pwd='$ac_pwd'
10828srcdir='$srcdir'
10829INSTALL='$INSTALL'
10830_ACEOF
10831
10832cat >>$CONFIG_STATUS <<\_ACEOF
10833# If no file are specified by the user, then we need to provide default
10834# value.  By we need to know if files were specified by the user.
10835ac_need_defaults=:
10836while test $# != 0
10837do
10838  case $1 in
10839  --*=*)
10840    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10841    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10842    ac_shift=:
10843    ;;
10844  *)
10845    ac_option=$1
10846    ac_optarg=$2
10847    ac_shift=shift
10848    ;;
10849  esac
10850
10851  case $ac_option in
10852  # Handling of the options.
10853  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10854    ac_cs_recheck=: ;;
10855  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10856    echo "$ac_cs_version"; exit ;;
10857  --debug | --debu | --deb | --de | --d | -d )
10858    debug=: ;;
10859  --file | --fil | --fi | --f )
10860    $ac_shift
10861    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10862    ac_need_defaults=false;;
10863  --header | --heade | --head | --hea )
10864    $ac_shift
10865    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10866    ac_need_defaults=false;;
10867  --he | --h)
10868    # Conflict between --help and --header
10869    { echo "$as_me: error: ambiguous option: $1
10870Try \`$0 --help' for more information." >&2
10871   { (exit 1); exit 1; }; };;
10872  --help | --hel | -h )
10873    echo "$ac_cs_usage"; exit ;;
10874  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10875  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10876    ac_cs_silent=: ;;
10877
10878  # This is an error.
10879  -*) { echo "$as_me: error: unrecognized option: $1
10880Try \`$0 --help' for more information." >&2
10881   { (exit 1); exit 1; }; } ;;
10882
10883  *) ac_config_targets="$ac_config_targets $1"
10884     ac_need_defaults=false ;;
10885
10886  esac
10887  shift
10888done
10889
10890ac_configure_extra_args=
10891
10892if $ac_cs_silent; then
10893  exec 6>/dev/null
10894  ac_configure_extra_args="$ac_configure_extra_args --silent"
10895fi
10896
10897_ACEOF
10898cat >>$CONFIG_STATUS <<_ACEOF
10899if \$ac_cs_recheck; then
10900  echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10901  CONFIG_SHELL=$SHELL
10902  export CONFIG_SHELL
10903  exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10904fi
10905
10906_ACEOF
10907cat >>$CONFIG_STATUS <<\_ACEOF
10908exec 5>>config.log
10909{
10910  echo
10911  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10912## Running $as_me. ##
10913_ASBOX
10914  echo "$ac_log"
10915} >&5
10916
10917_ACEOF
10918cat >>$CONFIG_STATUS <<_ACEOF
10919#
10920# INIT-COMMANDS
10921#
10922AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10923# Capture the value of obsolete ALL_LINGUAS because we need it to compute
10924    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10925    # from automake.
10926    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10927    # Capture the value of LINGUAS because we need it to compute CATALOGS.
10928    LINGUAS="${LINGUAS-%UNSET%}"
10929
10930
10931_ACEOF
10932
10933cat >>$CONFIG_STATUS <<\_ACEOF
10934
10935# Handling of arguments.
10936for ac_config_target in $ac_config_targets
10937do
10938  case $ac_config_target in
10939    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10940    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10941    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10942    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10943    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10944
10945  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10946echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10947   { (exit 1); exit 1; }; };;
10948  esac
10949done
10950
10951
10952# If the user did not use the arguments to specify the items to instantiate,
10953# then the envvar interface is used.  Set only those that are not.
10954# We use the long form for the default assignment because of an extremely
10955# bizarre bug on SunOS 4.1.3.
10956if $ac_need_defaults; then
10957  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10958  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10959  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10960fi
10961
10962# Have a temporary directory for convenience.  Make it in the build tree
10963# simply because there is no reason against having it here, and in addition,
10964# creating and moving files from /tmp can sometimes cause problems.
10965# Hook for its removal unless debugging.
10966# Note that there is a small window in which the directory will not be cleaned:
10967# after its creation but before its name has been assigned to `$tmp'.
10968$debug ||
10969{
10970  tmp=
10971  trap 'exit_status=$?
10972  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10973' 0
10974  trap '{ (exit 1); exit 1; }' 1 2 13 15
10975}
10976# Create a (secure) tmp directory for tmp files.
10977
10978{
10979  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10980  test -n "$tmp" && test -d "$tmp"
10981}  ||
10982{
10983  tmp=./conf$$-$RANDOM
10984  (umask 077 && mkdir "$tmp")
10985} ||
10986{
10987   echo "$me: cannot create a temporary directory in ." >&2
10988   { (exit 1); exit 1; }
10989}
10990
10991#
10992# Set up the sed scripts for CONFIG_FILES section.
10993#
10994
10995# No need to generate the scripts if there are no CONFIG_FILES.
10996# This happens for instance when ./config.status config.h
10997if test -n "$CONFIG_FILES"; then
10998
10999_ACEOF
11000
11001
11002
11003ac_delim='%!_!# '
11004for ac_last_try in false false false false false :; do
11005  cat >conf$$subs.sed <<_ACEOF
11006SHELL!$SHELL$ac_delim
11007PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11008PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11009PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11010PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11011PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11012PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11013exec_prefix!$exec_prefix$ac_delim
11014prefix!$prefix$ac_delim
11015program_transform_name!$program_transform_name$ac_delim
11016bindir!$bindir$ac_delim
11017sbindir!$sbindir$ac_delim
11018libexecdir!$libexecdir$ac_delim
11019datarootdir!$datarootdir$ac_delim
11020datadir!$datadir$ac_delim
11021sysconfdir!$sysconfdir$ac_delim
11022sharedstatedir!$sharedstatedir$ac_delim
11023localstatedir!$localstatedir$ac_delim
11024includedir!$includedir$ac_delim
11025oldincludedir!$oldincludedir$ac_delim
11026docdir!$docdir$ac_delim
11027infodir!$infodir$ac_delim
11028htmldir!$htmldir$ac_delim
11029dvidir!$dvidir$ac_delim
11030pdfdir!$pdfdir$ac_delim
11031psdir!$psdir$ac_delim
11032libdir!$libdir$ac_delim
11033localedir!$localedir$ac_delim
11034mandir!$mandir$ac_delim
11035DEFS!$DEFS$ac_delim
11036ECHO_C!$ECHO_C$ac_delim
11037ECHO_N!$ECHO_N$ac_delim
11038ECHO_T!$ECHO_T$ac_delim
11039LIBS!$LIBS$ac_delim
11040build_alias!$build_alias$ac_delim
11041host_alias!$host_alias$ac_delim
11042target_alias!$target_alias$ac_delim
11043build!$build$ac_delim
11044build_cpu!$build_cpu$ac_delim
11045build_vendor!$build_vendor$ac_delim
11046build_os!$build_os$ac_delim
11047host!$host$ac_delim
11048host_cpu!$host_cpu$ac_delim
11049host_vendor!$host_vendor$ac_delim
11050host_os!$host_os$ac_delim
11051target!$target$ac_delim
11052target_cpu!$target_cpu$ac_delim
11053target_vendor!$target_vendor$ac_delim
11054target_os!$target_os$ac_delim
11055CC!$CC$ac_delim
11056CFLAGS!$CFLAGS$ac_delim
11057LDFLAGS!$LDFLAGS$ac_delim
11058CPPFLAGS!$CPPFLAGS$ac_delim
11059ac_ct_CC!$ac_ct_CC$ac_delim
11060EXEEXT!$EXEEXT$ac_delim
11061OBJEXT!$OBJEXT$ac_delim
11062INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11063INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11064INSTALL_DATA!$INSTALL_DATA$ac_delim
11065CYGPATH_W!$CYGPATH_W$ac_delim
11066PACKAGE!$PACKAGE$ac_delim
11067VERSION!$VERSION$ac_delim
11068ACLOCAL!$ACLOCAL$ac_delim
11069AUTOCONF!$AUTOCONF$ac_delim
11070AUTOMAKE!$AUTOMAKE$ac_delim
11071AUTOHEADER!$AUTOHEADER$ac_delim
11072MAKEINFO!$MAKEINFO$ac_delim
11073install_sh!$install_sh$ac_delim
11074STRIP!$STRIP$ac_delim
11075INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11076mkdir_p!$mkdir_p$ac_delim
11077AWK!$AWK$ac_delim
11078SET_MAKE!$SET_MAKE$ac_delim
11079am__leading_dot!$am__leading_dot$ac_delim
11080AMTAR!$AMTAR$ac_delim
11081am__tar!$am__tar$ac_delim
11082am__untar!$am__untar$ac_delim
11083DEPDIR!$DEPDIR$ac_delim
11084am__include!$am__include$ac_delim
11085am__quote!$am__quote$ac_delim
11086AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11087AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11088AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11089CCDEPMODE!$CCDEPMODE$ac_delim
11090am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11091am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11092MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
11093USE_NLS!$USE_NLS$ac_delim
11094MSGFMT!$MSGFMT$ac_delim
11095GMSGFMT!$GMSGFMT$ac_delim
11096XGETTEXT!$XGETTEXT$ac_delim
11097MSGMERGE!$MSGMERGE$ac_delim
11098INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
11099LIBICONV!$LIBICONV$ac_delim
11100LTLIBICONV!$LTLIBICONV$ac_delim
11101INTLLIBS!$INTLLIBS$ac_delim
11102LIBINTL!$LIBINTL$ac_delim
11103_ACEOF
11104
11105  if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
11106    break
11107  elif $ac_last_try; then
11108    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11109echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11110   { (exit 1); exit 1; }; }
11111  else
11112    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11113  fi
11114done
11115
11116ac_eof=
11117if grep '^CEOF$' conf$$subs.sed >/dev/null; then
11118  ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
11119  ac_eof=`expr 0$ac_eof + 1`
11120fi
11121
11122cat >>$CONFIG_STATUS <<_ACEOF
11123cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11125_ACEOF
11126sed '
11127s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11128s/^/s,@/; s/!/@,|#_!!_#|/
11129:n
11130t n
11131s/'"$ac_delim"'$/,g/; t
11132s/$/\\/; p
11133N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11134' >>$CONFIG_STATUS <conf$$subs.sed
11135rm -f conf$$subs.sed
11136cat >>$CONFIG_STATUS <<_ACEOF
11137CEOF$ac_eof
11138_ACEOF
11139
11140
11141ac_delim='%!_!# '
11142for ac_last_try in false false false false false :; do
11143  cat >conf$$subs.sed <<_ACEOF
11144LTLIBINTL!$LTLIBINTL$ac_delim
11145POSUB!$POSUB$ac_delim
11146XMKMF!$XMKMF$ac_delim
11147CPP!$CPP$ac_delim
11148X_CFLAGS!$X_CFLAGS$ac_delim
11149X_PRE_LIBS!$X_PRE_LIBS$ac_delim
11150X_LIBS!$X_LIBS$ac_delim
11151X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
11152GREP!$GREP$ac_delim
11153EGREP!$EGREP$ac_delim
11154SDL_TRUE!$SDL_TRUE$ac_delim
11155SDL_FALSE!$SDL_FALSE$ac_delim
11156SDL_CONFIG!$SDL_CONFIG$ac_delim
11157SDL_CFLAGS!$SDL_CFLAGS$ac_delim
11158SDL_LIBS!$SDL_LIBS$ac_delim
11159game_datadir!$game_datadir$ac_delim
11160XBSNDSRV_TRUE!$XBSNDSRV_TRUE$ac_delim
11161XBSNDSRV_FALSE!$XBSNDSRV_FALSE$ac_delim
11162LIBOBJS!$LIBOBJS$ac_delim
11163LTLIBOBJS!$LTLIBOBJS$ac_delim
11164_ACEOF
11165
11166  if test `grep -c "$ac_delim\$" conf$$subs.sed` = 20; then
11167    break
11168  elif $ac_last_try; then
11169    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11170echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11171   { (exit 1); exit 1; }; }
11172  else
11173    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11174  fi
11175done
11176
11177ac_eof=
11178if grep '^CEOF$' conf$$subs.sed >/dev/null; then
11179  ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
11180  ac_eof=`expr 0$ac_eof + 1`
11181fi
11182
11183cat >>$CONFIG_STATUS <<_ACEOF
11184cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11186_ACEOF
11187sed '
11188s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11189s/^/s,@/; s/!/@,|#_!!_#|/
11190:n
11191t n
11192s/'"$ac_delim"'$/,g/; t
11193s/$/\\/; p
11194N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11195' >>$CONFIG_STATUS <conf$$subs.sed
11196rm -f conf$$subs.sed
11197cat >>$CONFIG_STATUS <<_ACEOF
11198:end
11199s/|#_!!_#|//g
11200CEOF$ac_eof
11201_ACEOF
11202
11203
11204# VPATH may cause trouble with some makes, so we remove $(srcdir),
11205# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11206# trailing colons and then remove the whole line if VPATH becomes empty
11207# (actually we leave an empty line to preserve line numbers).
11208if test "x$srcdir" = x.; then
11209  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11210s/:*\$(srcdir):*/:/
11211s/:*\${srcdir}:*/:/
11212s/:*@srcdir@:*/:/
11213s/^\([^=]*=[	 ]*\):*/\1/
11214s/:*$//
11215s/^[^=]*=[	 ]*$//
11216}'
11217fi
11218
11219cat >>$CONFIG_STATUS <<\_ACEOF
11220fi # test -n "$CONFIG_FILES"
11221
11222
11223for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
11224do
11225  case $ac_tag in
11226  :[FHLC]) ac_mode=$ac_tag; continue;;
11227  esac
11228  case $ac_mode$ac_tag in
11229  :[FHL]*:*);;
11230  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11231echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11232   { (exit 1); exit 1; }; };;
11233  :[FH]-) ac_tag=-:-;;
11234  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11235  esac
11236  ac_save_IFS=$IFS
11237  IFS=:
11238  set x $ac_tag
11239  IFS=$ac_save_IFS
11240  shift
11241  ac_file=$1
11242  shift
11243
11244  case $ac_mode in
11245  :L) ac_source=$1;;
11246  :[FH])
11247    ac_file_inputs=
11248    for ac_f
11249    do
11250      case $ac_f in
11251      -) ac_f="$tmp/stdin";;
11252      *) # Look for the file first in the build tree, then in the source tree
11253	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11254	 # because $ac_f cannot contain `:'.
11255	 test -f "$ac_f" ||
11256	   case $ac_f in
11257	   [\\/$]*) false;;
11258	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11259	   esac ||
11260	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11261echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11262   { (exit 1); exit 1; }; };;
11263      esac
11264      ac_file_inputs="$ac_file_inputs $ac_f"
11265    done
11266
11267    # Let's still pretend it is `configure' which instantiates (i.e., don't
11268    # use $as_me), people would be surprised to read:
11269    #    /* config.h.  Generated by config.status.  */
11270    configure_input="Generated from "`IFS=:
11271	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11272    if test x"$ac_file" != x-; then
11273      configure_input="$ac_file.  $configure_input"
11274      { echo "$as_me:$LINENO: creating $ac_file" >&5
11275echo "$as_me: creating $ac_file" >&6;}
11276    fi
11277
11278    case $ac_tag in
11279    *:-:* | *:-) cat >"$tmp/stdin";;
11280    esac
11281    ;;
11282  esac
11283
11284  ac_dir=`$as_dirname -- "$ac_file" ||
11285$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11286	 X"$ac_file" : 'X\(//\)[^/]' \| \
11287	 X"$ac_file" : 'X\(//\)$' \| \
11288	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11289echo X"$ac_file" |
11290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11291	    s//\1/
11292	    q
11293	  }
11294	  /^X\(\/\/\)[^/].*/{
11295	    s//\1/
11296	    q
11297	  }
11298	  /^X\(\/\/\)$/{
11299	    s//\1/
11300	    q
11301	  }
11302	  /^X\(\/\).*/{
11303	    s//\1/
11304	    q
11305	  }
11306	  s/.*/./; q'`
11307  { as_dir="$ac_dir"
11308  case $as_dir in #(
11309  -*) as_dir=./$as_dir;;
11310  esac
11311  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11312    as_dirs=
11313    while :; do
11314      case $as_dir in #(
11315      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11316      *) as_qdir=$as_dir;;
11317      esac
11318      as_dirs="'$as_qdir' $as_dirs"
11319      as_dir=`$as_dirname -- "$as_dir" ||
11320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11321	 X"$as_dir" : 'X\(//\)[^/]' \| \
11322	 X"$as_dir" : 'X\(//\)$' \| \
11323	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11324echo X"$as_dir" |
11325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11326	    s//\1/
11327	    q
11328	  }
11329	  /^X\(\/\/\)[^/].*/{
11330	    s//\1/
11331	    q
11332	  }
11333	  /^X\(\/\/\)$/{
11334	    s//\1/
11335	    q
11336	  }
11337	  /^X\(\/\).*/{
11338	    s//\1/
11339	    q
11340	  }
11341	  s/.*/./; q'`
11342      test -d "$as_dir" && break
11343    done
11344    test -z "$as_dirs" || eval "mkdir $as_dirs"
11345  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11346echo "$as_me: error: cannot create directory $as_dir" >&2;}
11347   { (exit 1); exit 1; }; }; }
11348  ac_builddir=.
11349
11350case "$ac_dir" in
11351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11352*)
11353  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11354  # A ".." for each directory in $ac_dir_suffix.
11355  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11356  case $ac_top_builddir_sub in
11357  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11358  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11359  esac ;;
11360esac
11361ac_abs_top_builddir=$ac_pwd
11362ac_abs_builddir=$ac_pwd$ac_dir_suffix
11363# for backward compatibility:
11364ac_top_builddir=$ac_top_build_prefix
11365
11366case $srcdir in
11367  .)  # We are building in place.
11368    ac_srcdir=.
11369    ac_top_srcdir=$ac_top_builddir_sub
11370    ac_abs_top_srcdir=$ac_pwd ;;
11371  [\\/]* | ?:[\\/]* )  # Absolute name.
11372    ac_srcdir=$srcdir$ac_dir_suffix;
11373    ac_top_srcdir=$srcdir
11374    ac_abs_top_srcdir=$srcdir ;;
11375  *) # Relative name.
11376    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11377    ac_top_srcdir=$ac_top_build_prefix$srcdir
11378    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11379esac
11380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11381
11382
11383  case $ac_mode in
11384  :F)
11385  #
11386  # CONFIG_FILE
11387  #
11388
11389  case $INSTALL in
11390  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11391  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11392  esac
11393_ACEOF
11394
11395cat >>$CONFIG_STATUS <<\_ACEOF
11396# If the template does not know about datarootdir, expand it.
11397# FIXME: This hack should be removed a few years after 2.60.
11398ac_datarootdir_hack=
11399
11400case `sed -n '/datarootdir/ {
11401  p
11402  q
11403}
11404/@datadir@/p
11405/@docdir@/p
11406/@infodir@/p
11407/@localedir@/p
11408/@mandir@/p
11409' $ac_file_inputs` in
11410*datarootdir*) ;;
11411*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11412  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11413echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11414_ACEOF
11415cat >>$CONFIG_STATUS <<_ACEOF
11416  ac_datarootdir_hack='
11417  s&@datadir@&$datadir&g
11418  s&@docdir@&$docdir&g
11419  s&@infodir@&$infodir&g
11420  s&@localedir@&$localedir&g
11421  s&@mandir@&$mandir&g
11422    s&\\\${datarootdir}&$datarootdir&g' ;;
11423esac
11424_ACEOF
11425
11426# Neutralize VPATH when `$srcdir' = `.'.
11427# Shell code in configure.ac might set extrasub.
11428# FIXME: do we really want to maintain this feature?
11429cat >>$CONFIG_STATUS <<_ACEOF
11430  sed "$ac_vpsub
11431$extrasub
11432_ACEOF
11433cat >>$CONFIG_STATUS <<\_ACEOF
11434:t
11435/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11436s&@configure_input@&$configure_input&;t t
11437s&@top_builddir@&$ac_top_builddir_sub&;t t
11438s&@srcdir@&$ac_srcdir&;t t
11439s&@abs_srcdir@&$ac_abs_srcdir&;t t
11440s&@top_srcdir@&$ac_top_srcdir&;t t
11441s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11442s&@builddir@&$ac_builddir&;t t
11443s&@abs_builddir@&$ac_abs_builddir&;t t
11444s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11445s&@INSTALL@&$ac_INSTALL&;t t
11446$ac_datarootdir_hack
11447" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11448
11449  rm -f "$tmp/stdin"
11450  case $ac_file in
11451  -) cat "$tmp/out"; rm -f "$tmp/out";;
11452  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11453  esac
11454 ;;
11455  :H)
11456  #
11457  # CONFIG_HEADER
11458  #
11459
11460  # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11461  # NAME is the cpp macro being defined, VALUE is the value it is being given.
11462  # PARAMS is the parameter list in the macro definition--in most cases, it's
11463  # just an empty string.
11464  #
11465  ac_dA='s,^\([	 ]*#[	 ]*\)[^	 ]*\([	 ][	 ]*'
11466  ac_dB='\)[	 (].*$,\1define\2'
11467  ac_dC=' '
11468  ac_dD=' ,'
11469
11470  ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
11471_ACEOF
11472
11473# Transform confdefs.h into a sed script `conftest.defines', that
11474# substitutes the proper values into config.h.in to produce config.h.
11475rm -f conftest.defines conftest.tail
11476# First, append a space to every undef/define line, to ease matching.
11477echo 's/$/ /' >conftest.defines
11478# Then, protect against being on the right side of a sed subst, or in
11479# an unquoted here document, in config.status.  If some macros were
11480# called several times there might be several #defines for the same
11481# symbol, which is useless.  But do not sort them, since the last
11482# AC_DEFINE must be honored.
11483ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11484uniq confdefs.h |
11485  sed -n '
11486	t rset
11487	:rset
11488	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
11489	t ok
11490	d
11491	:ok
11492	s/[\\&,]/\\&/g
11493	s/[\\$`]/\\&/g
11494	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
11495	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
11496  ' >>conftest.defines
11497
11498# Remove the space that was appended to ease matching.
11499# Then replace #undef with comments.  This is necessary, for
11500# example, in the case of _POSIX_SOURCE, which is predefined and required
11501# on some systems where configure will not decide to define it.
11502# (The regexp can be short, since the line contains either #define or #undef.)
11503echo 's/ $//
11504s,^[	 #]*u.*,/* & */,' >>conftest.defines
11505
11506# Break up conftest.defines:
11507ac_max_sed_lines=96
11508
11509# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11510# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11511# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11512# et cetera.
11513ac_in='$ac_file_inputs'
11514ac_out='"$tmp/out1"'
11515ac_nxt='"$tmp/out2"'
11516
11517while :
11518do
11519  # Write a here document:
11520    echo '    # First, check the format of the line:
11521    cat >"$tmp/defines.sed" <<CEOF
11522/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_regexp[	 ]*$/b def
11523/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_regexp[(	 ]/b def
11524b
11525:def' >>$CONFIG_STATUS
11526  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11527  echo 'CEOF
11528    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11529  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11530  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11531  grep . conftest.tail >/dev/null || break
11532  rm -f conftest.defines
11533  mv conftest.tail conftest.defines
11534done
11535rm -f conftest.defines conftest.tail
11536
11537echo "ac_result=$ac_in" >>$CONFIG_STATUS
11538cat >>$CONFIG_STATUS <<\_ACEOF
11539  if test x"$ac_file" != x-; then
11540    echo "/* $configure_input  */" >"$tmp/config.h"
11541    cat "$ac_result" >>"$tmp/config.h"
11542    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11543      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11544echo "$as_me: $ac_file is unchanged" >&6;}
11545    else
11546      rm -f $ac_file
11547      mv "$tmp/config.h" $ac_file
11548    fi
11549  else
11550    echo "/* $configure_input  */"
11551    cat "$ac_result"
11552  fi
11553  rm -f "$tmp/out12"
11554# Compute $ac_file's index in $config_headers.
11555_am_stamp_count=1
11556for _am_header in $config_headers :; do
11557  case $_am_header in
11558    $ac_file | $ac_file:* )
11559      break ;;
11560    * )
11561      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11562  esac
11563done
11564echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11565$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566	 X$ac_file : 'X\(//\)[^/]' \| \
11567	 X$ac_file : 'X\(//\)$' \| \
11568	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11569echo X$ac_file |
11570    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11571	    s//\1/
11572	    q
11573	  }
11574	  /^X\(\/\/\)[^/].*/{
11575	    s//\1/
11576	    q
11577	  }
11578	  /^X\(\/\/\)$/{
11579	    s//\1/
11580	    q
11581	  }
11582	  /^X\(\/\).*/{
11583	    s//\1/
11584	    q
11585	  }
11586	  s/.*/./; q'`/stamp-h$_am_stamp_count
11587 ;;
11588
11589  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11590echo "$as_me: executing $ac_file commands" >&6;}
11591 ;;
11592  esac
11593
11594
11595  case $ac_file$ac_mode in
11596    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11597  # Strip MF so we end up with the name of the file.
11598  mf=`echo "$mf" | sed -e 's/:.*$//'`
11599  # Check whether this is an Automake generated Makefile or not.
11600  # We used to match only the files named `Makefile.in', but
11601  # some people rename them; so instead we look at the file content.
11602  # Grep'ing the first line is not enough: some people post-process
11603  # each Makefile.in and add a new line on top of each file to say so.
11604  # So let's grep whole file.
11605  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11606    dirpart=`$as_dirname -- "$mf" ||
11607$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11608	 X"$mf" : 'X\(//\)[^/]' \| \
11609	 X"$mf" : 'X\(//\)$' \| \
11610	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11611echo X"$mf" |
11612    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11613	    s//\1/
11614	    q
11615	  }
11616	  /^X\(\/\/\)[^/].*/{
11617	    s//\1/
11618	    q
11619	  }
11620	  /^X\(\/\/\)$/{
11621	    s//\1/
11622	    q
11623	  }
11624	  /^X\(\/\).*/{
11625	    s//\1/
11626	    q
11627	  }
11628	  s/.*/./; q'`
11629  else
11630    continue
11631  fi
11632  # Extract the definition of DEPDIR, am__include, and am__quote
11633  # from the Makefile without running `make'.
11634  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11635  test -z "$DEPDIR" && continue
11636  am__include=`sed -n 's/^am__include = //p' < "$mf"`
11637  test -z "am__include" && continue
11638  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11639  # When using ansi2knr, U may be empty or an underscore; expand it
11640  U=`sed -n 's/^U = //p' < "$mf"`
11641  # Find all dependency output files, they are included files with
11642  # $(DEPDIR) in their names.  We invoke sed twice because it is the
11643  # simplest approach to changing $(DEPDIR) to its actual value in the
11644  # expansion.
11645  for file in `sed -n "
11646    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11647       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11648    # Make sure the directory exists.
11649    test -f "$dirpart/$file" && continue
11650    fdir=`$as_dirname -- "$file" ||
11651$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11652	 X"$file" : 'X\(//\)[^/]' \| \
11653	 X"$file" : 'X\(//\)$' \| \
11654	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11655echo X"$file" |
11656    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11657	    s//\1/
11658	    q
11659	  }
11660	  /^X\(\/\/\)[^/].*/{
11661	    s//\1/
11662	    q
11663	  }
11664	  /^X\(\/\/\)$/{
11665	    s//\1/
11666	    q
11667	  }
11668	  /^X\(\/\).*/{
11669	    s//\1/
11670	    q
11671	  }
11672	  s/.*/./; q'`
11673    { as_dir=$dirpart/$fdir
11674  case $as_dir in #(
11675  -*) as_dir=./$as_dir;;
11676  esac
11677  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11678    as_dirs=
11679    while :; do
11680      case $as_dir in #(
11681      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11682      *) as_qdir=$as_dir;;
11683      esac
11684      as_dirs="'$as_qdir' $as_dirs"
11685      as_dir=`$as_dirname -- "$as_dir" ||
11686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11687	 X"$as_dir" : 'X\(//\)[^/]' \| \
11688	 X"$as_dir" : 'X\(//\)$' \| \
11689	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11690echo X"$as_dir" |
11691    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11692	    s//\1/
11693	    q
11694	  }
11695	  /^X\(\/\/\)[^/].*/{
11696	    s//\1/
11697	    q
11698	  }
11699	  /^X\(\/\/\)$/{
11700	    s//\1/
11701	    q
11702	  }
11703	  /^X\(\/\).*/{
11704	    s//\1/
11705	    q
11706	  }
11707	  s/.*/./; q'`
11708      test -d "$as_dir" && break
11709    done
11710    test -z "$as_dirs" || eval "mkdir $as_dirs"
11711  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11712echo "$as_me: error: cannot create directory $as_dir" >&2;}
11713   { (exit 1); exit 1; }; }; }
11714    # echo "creating $dirpart/$file"
11715    echo '# dummy' > "$dirpart/$file"
11716  done
11717done
11718 ;;
11719    "default-1":C)
11720    for ac_file in $CONFIG_FILES; do
11721      # Support "outfile[:infile[:infile...]]"
11722      case "$ac_file" in
11723        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11724      esac
11725      # PO directories have a Makefile.in generated from Makefile.in.in.
11726      case "$ac_file" in */Makefile.in)
11727        # Adjust a relative srcdir.
11728        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11729        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11730        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11731        # In autoconf-2.13 it is called $ac_given_srcdir.
11732        # In autoconf-2.50 it is called $srcdir.
11733        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11734        case "$ac_given_srcdir" in
11735          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11736          /*) top_srcdir="$ac_given_srcdir" ;;
11737          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
11738        esac
11739        # Treat a directory as a PO directory if and only if it has a
11740        # POTFILES.in file. This allows packages to have multiple PO
11741        # directories under different names or in different locations.
11742        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11743          rm -f "$ac_dir/POTFILES"
11744          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11745          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11746          POMAKEFILEDEPS="POTFILES.in"
11747          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11748          # on $ac_dir but don't depend on user-specified configuration
11749          # parameters.
11750          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11751            # The LINGUAS file contains the set of available languages.
11752            if test -n "$OBSOLETE_ALL_LINGUAS"; then
11753              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11754            fi
11755            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11756            # Hide the ALL_LINGUAS assigment from automake.
11757            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11758            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11759          else
11760            # The set of available languages was given in configure.in.
11761            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11762          fi
11763          # Compute POFILES
11764          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11765          # Compute UPDATEPOFILES
11766          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11767          # Compute DUMMYPOFILES
11768          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11769          # Compute GMOFILES
11770          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11771          case "$ac_given_srcdir" in
11772            .) srcdirpre= ;;
11773            *) srcdirpre='$(srcdir)/' ;;
11774          esac
11775          POFILES=
11776          UPDATEPOFILES=
11777          DUMMYPOFILES=
11778          GMOFILES=
11779          for lang in $ALL_LINGUAS; do
11780            POFILES="$POFILES $srcdirpre$lang.po"
11781            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11782            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11783            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11784          done
11785          # CATALOGS depends on both $ac_dir and the user's LINGUAS
11786          # environment variable.
11787          INST_LINGUAS=
11788          if test -n "$ALL_LINGUAS"; then
11789            for presentlang in $ALL_LINGUAS; do
11790              useit=no
11791              if test "%UNSET%" != "$LINGUAS"; then
11792                desiredlanguages="$LINGUAS"
11793              else
11794                desiredlanguages="$ALL_LINGUAS"
11795              fi
11796              for desiredlang in $desiredlanguages; do
11797                # Use the presentlang catalog if desiredlang is
11798                #   a. equal to presentlang, or
11799                #   b. a variant of presentlang (because in this case,
11800                #      presentlang can be used as a fallback for messages
11801                #      which are not translated in the desiredlang catalog).
11802                case "$desiredlang" in
11803                  "$presentlang"*) useit=yes;;
11804                esac
11805              done
11806              if test $useit = yes; then
11807                INST_LINGUAS="$INST_LINGUAS $presentlang"
11808              fi
11809            done
11810          fi
11811          CATALOGS=
11812          if test -n "$INST_LINGUAS"; then
11813            for lang in $INST_LINGUAS; do
11814              CATALOGS="$CATALOGS $lang.gmo"
11815            done
11816          fi
11817          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11818          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"
11819          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11820            if test -f "$f"; then
11821              case "$f" in
11822                *.orig | *.bak | *~) ;;
11823                *) cat "$f" >> "$ac_dir/Makefile" ;;
11824              esac
11825            fi
11826          done
11827        fi
11828        ;;
11829      esac
11830    done ;;
11831
11832  esac
11833done # for ac_tag
11834
11835
11836{ (exit 0); exit 0; }
11837_ACEOF
11838chmod +x $CONFIG_STATUS
11839ac_clean_files=$ac_clean_files_save
11840
11841
11842# configure is writing to config.log, and then calls config.status.
11843# config.status does its own redirection, appending to config.log.
11844# Unfortunately, on DOS this fails, as config.log is still kept open
11845# by configure, so config.status won't be able to write to it; its
11846# output is simply discarded.  So we exec the FD to /dev/null,
11847# effectively closing config.log, so it can be properly (re)opened and
11848# appended to by config.status.  When coming back to configure, we
11849# need to make the FD available again.
11850if test "$no_create" != yes; then
11851  ac_cs_success=:
11852  ac_config_status_args=
11853  test "$silent" = yes &&
11854    ac_config_status_args="$ac_config_status_args --quiet"
11855  exec 5>/dev/null
11856  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11857  exec 5>>config.log
11858  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11859  # would make configure fail if this is the last instruction.
11860  $ac_cs_success || { (exit 1); exit 1; }
11861fi
11862
11863
11864echo "--------------------------------"
11865if test "${sdl}" = "true"; then
11866	echo "selected GUI is      SDL"
11867else
11868	echo "selected GUI is      X11"
11869    echo "sound compilation    $xbsndsrv"
11870fi
11871echo "mini compilation:    $mini"
11872echo "nat compilation:     $nat"
11873echo "SMPF compilation:    $smpf"
11874echo "datadir:             $game_datadir"
11875echo "--------------------------------"
11876