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