1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for hugo 2.12.
4#
5# Report bugs to <zeograd@zeograd.com>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='hugo'
271PACKAGE_TARNAME='hugo'
272PACKAGE_VERSION='2.12'
273PACKAGE_STRING='hugo 2.12'
274PACKAGE_BUGREPORT='zeograd@zeograd.com'
275
276ac_unique_file="pce.c"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 HAVE_LYX HAVE_LATEX2HTML HAVE_SED HAVE_TIDY HAVE_TOOLS_FOR_TXT_DOC_TRUE HAVE_TOOLS_FOR_TXT_DOC_FALSE HAVE_TOOLS_FOR_HTML_DOC_TRUE HAVE_TOOLS_FOR_HTML_DOC_FALSE AVAILABLE_DOC_TARGETS ZLIB_TRUE ZLIB_FALSE SDL_CONFIG SDL_CFLAGS SDL_LIBS PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_TRUE GTK_FALSE CPP EGREP ALLOCA NETPLAY_TRUE NETPLAY_FALSE SDL_LINUX_TRUE SDL_LINUX_FALSE SDL_MIXER_LINUX_TRUE SDL_MIXER_LINUX_FALSE ZE_HCD_OGG_SUPPORT_TRUE ZE_HCD_OGG_SUPPORT_FALSE SDL_NET_LINUX_TRUE SDL_NET_LINUX_FALSE ALLEGRO_LINUX_TRUE ALLEGRO_LINUX_FALSE SDL_WIN32_TRUE SDL_WIN32_FALSE ALLEGRO_WIN32_TRUE ALLEGRO_WIN32_FALSE ALLEGRO_DJGPP_TRUE ALLEGRO_DJGPP_FALSE SDL_FREEBSD_TRUE SDL_FREEBSD_FALSE SDL_SOLARIS_TRUE SDL_SOLARIS_FALSE HUGO_TARGET_MACHINE HUGO_TARGET_LIBRARY HUGO_TARGET_LIBRARY_LD LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673	      localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713	 X"$0" : 'X\(//\)[^/]' \| \
714	 X"$0" : 'X\(//\)$' \| \
715	 X"$0" : 'X\(/\)' \| \
716	 .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720  	  /^X\(\/\/\)$/{ s//\1/; q; }
721  	  /^X\(\/\).*/{ s//\1/; q; }
722  	  s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775
776#
777# Report the --help message.
778#
779if test "$ac_init_help" = "long"; then
780  # Omit some internal or obsolete options to make the list less imposing.
781  # This message is too long to be a string in the A/UX 3.1 sh.
782  cat <<_ACEOF
783\`configure' configures hugo 2.12 to adapt to many kinds of systems.
784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
793  -h, --help              display this help and exit
794      --help=short        display options specific to this package
795      --help=recursive    display the short help of all the included packages
796  -V, --version           display version information and exit
797  -q, --quiet, --silent   do not print \`checking...' messages
798      --cache-file=FILE   cache test results in FILE [disabled]
799  -C, --config-cache      alias for \`--cache-file=config.cache'
800  -n, --no-create         do not create output files
801      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803_ACEOF
804
805  cat <<_ACEOF
806Installation directories:
807  --prefix=PREFIX         install architecture-independent files in PREFIX
808			  [$ac_default_prefix]
809  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810			  [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine tuning of the installation directories:
820  --bindir=DIR           user executables [EPREFIX/bin]
821  --sbindir=DIR          system admin executables [EPREFIX/sbin]
822  --libexecdir=DIR       program executables [EPREFIX/libexec]
823  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827  --libdir=DIR           object code libraries [EPREFIX/lib]
828  --includedir=DIR       C header files [PREFIX/include]
829  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830  --infodir=DIR          info documentation [PREFIX/info]
831  --mandir=DIR           man documentation [PREFIX/man]
832_ACEOF
833
834  cat <<\_ACEOF
835
836Program names:
837  --program-prefix=PREFIX            prepend PREFIX to installed program names
838  --program-suffix=SUFFIX            append SUFFIX to installed program names
839  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841System types:
842  --build=BUILD     configure for building on BUILD [guessed]
843  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844  --target=TARGET   configure for building compilers for TARGET [HOST]
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849  case $ac_init_help in
850     short | recursive ) echo "Configuration of hugo 2.12:";;
851   esac
852  cat <<\_ACEOF
853
854Optional Features:
855  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
856  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
857  --enable-maintainer-mode enable make rules and dependencies not useful
858                          (and sometimes confusing) to the casual installer
859  --disable-dependency-tracking Speeds up one-time builds
860  --enable-dependency-tracking  Do not reject slow dependency extractors
861  --disable-sdltest       Do not try to compile and run a test SDL program
862  --enable-gui            enable GUI (default is yes)
863  --disable-gtktest       do not try to compile and run a test GTK+ program
864  --enable-netplay        enable netplay support (default is yes)
865  --enable-new-kernel     enable new kernel (default is yes)
866  --enable-shared-memory  enable shared memory openness (default is no)
867  --enable-new-gfx-engine use new gfx engine to render graphics (default is
868                          yes)
869  --enable-final-release  enable strict logging (default is yes)
870  --enable-cd-debug       enable CD subsystem debugging (default is no)
871  --enable-sound-debug    enable sound routine debugging (default is no)
872  --enable-gfx-debug      enable graphics routine debugging (default is no)
873  --enable-input-debug    enable input routine debugging (default is no)
874  --enable-kernel-debug   enable hu6280 kernel debugging (default is no)
875  --enable-netplay-debug  enable netplay debugging (default is no)
876  --enable-bsd-pcecd      enable modified bsd version of pce hardware cd
877                          support (default is yes)
878  --enable-test-relocated-rom
879                          prepares execution of patched rom for running in SCD
880                          ram (default is no)
881  --enable-inlined-accessors
882                          uses inlined accessors for memory (faster but not AC
883                          games compatible) (default is no)
884
885Optional Packages:
886  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
887  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
888  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
889  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
890  --with-sdl              uses sdl as library for input/output (default is
891                          yes)
892  --with-sdl-mixer        uses sdl_mixer as library for audio input/output
893                          (default is no)
894  --with-ogg-support      enable ogg/vorbis support in hcd (default is no)
895
896Some influential environment variables:
897  CC          C compiler command
898  CFLAGS      C compiler flags
899  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
900              nonstandard directory <lib dir>
901  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
902              headers in a nonstandard directory <include dir>
903  CPP         C preprocessor
904
905Use these variables to override the choices made by `configure' or to help
906it to find libraries and programs with nonstandard names/locations.
907
908Report bugs to <zeograd@zeograd.com>.
909_ACEOF
910fi
911
912if test "$ac_init_help" = "recursive"; then
913  # If there are subdirs, report their specific --help.
914  ac_popdir=`pwd`
915  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916    test -d $ac_dir || continue
917    ac_builddir=.
918
919if test "$ac_dir" != .; then
920  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921  # A "../" for each directory in $ac_dir_suffix.
922  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923else
924  ac_dir_suffix= ac_top_builddir=
925fi
926
927case $srcdir in
928  .)  # No --srcdir option.  We are building in place.
929    ac_srcdir=.
930    if test -z "$ac_top_builddir"; then
931       ac_top_srcdir=.
932    else
933       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934    fi ;;
935  [\\/]* | ?:[\\/]* )  # Absolute path.
936    ac_srcdir=$srcdir$ac_dir_suffix;
937    ac_top_srcdir=$srcdir ;;
938  *) # Relative path.
939    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940    ac_top_srcdir=$ac_top_builddir$srcdir ;;
941esac
942
943# Do not use `cd foo && pwd` to compute absolute paths, because
944# the directories may not exist.
945case `pwd` in
946.) ac_abs_builddir="$ac_dir";;
947*)
948  case "$ac_dir" in
949  .) ac_abs_builddir=`pwd`;;
950  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
951  *) ac_abs_builddir=`pwd`/"$ac_dir";;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_top_builddir=${ac_top_builddir}.;;
956*)
957  case ${ac_top_builddir}. in
958  .) ac_abs_top_builddir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
960  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_srcdir=$ac_srcdir;;
965*)
966  case $ac_srcdir in
967  .) ac_abs_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
969  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970  esac;;
971esac
972case $ac_abs_builddir in
973.) ac_abs_top_srcdir=$ac_top_srcdir;;
974*)
975  case $ac_top_srcdir in
976  .) ac_abs_top_srcdir=$ac_abs_builddir;;
977  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
978  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979  esac;;
980esac
981
982    cd $ac_dir
983    # Check for guested configure; otherwise get Cygnus style configure.
984    if test -f $ac_srcdir/configure.gnu; then
985      echo
986      $SHELL $ac_srcdir/configure.gnu  --help=recursive
987    elif test -f $ac_srcdir/configure; then
988      echo
989      $SHELL $ac_srcdir/configure  --help=recursive
990    elif test -f $ac_srcdir/configure.ac ||
991	   test -f $ac_srcdir/configure.in; then
992      echo
993      $ac_configure --help
994    else
995      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
996    fi
997    cd "$ac_popdir"
998  done
999fi
1000
1001test -n "$ac_init_help" && exit 0
1002if $ac_init_version; then
1003  cat <<\_ACEOF
1004hugo configure 2.12
1005generated by GNU Autoconf 2.59
1006
1007Copyright (C) 2003 Free Software Foundation, Inc.
1008This configure script is free software; the Free Software Foundation
1009gives unlimited permission to copy, distribute and modify it.
1010_ACEOF
1011  exit 0
1012fi
1013exec 5>config.log
1014cat >&5 <<_ACEOF
1015This file contains any messages produced by compilers while
1016running configure, to aid debugging if configure makes a mistake.
1017
1018It was created by hugo $as_me 2.12, which was
1019generated by GNU Autoconf 2.59.  Invocation command line was
1020
1021  $ $0 $@
1022
1023_ACEOF
1024{
1025cat <<_ASUNAME
1026## --------- ##
1027## Platform. ##
1028## --------- ##
1029
1030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1038
1039/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1040/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1043/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1044/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1045/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1046
1047_ASUNAME
1048
1049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050for as_dir in $PATH
1051do
1052  IFS=$as_save_IFS
1053  test -z "$as_dir" && as_dir=.
1054  echo "PATH: $as_dir"
1055done
1056
1057} >&5
1058
1059cat >&5 <<_ACEOF
1060
1061
1062## ----------- ##
1063## Core tests. ##
1064## ----------- ##
1065
1066_ACEOF
1067
1068
1069# Keep a trace of the command line.
1070# Strip out --no-create and --no-recursion so they do not pile up.
1071# Strip out --silent because we don't want to record it for future runs.
1072# Also quote any args containing shell meta-characters.
1073# Make two passes to allow for proper duplicate-argument suppression.
1074ac_configure_args=
1075ac_configure_args0=
1076ac_configure_args1=
1077ac_sep=
1078ac_must_keep_next=false
1079for ac_pass in 1 2
1080do
1081  for ac_arg
1082  do
1083    case $ac_arg in
1084    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086    | -silent | --silent | --silen | --sile | --sil)
1087      continue ;;
1088    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090    esac
1091    case $ac_pass in
1092    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093    2)
1094      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095      if test $ac_must_keep_next = true; then
1096	ac_must_keep_next=false # Got value, back to normal.
1097      else
1098	case $ac_arg in
1099	  *=* | --config-cache | -C | -disable-* | --disable-* \
1100	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102	  | -with-* | --with-* | -without-* | --without-* | --x)
1103	    case "$ac_configure_args0 " in
1104	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105	    esac
1106	    ;;
1107	  -* ) ac_must_keep_next=true ;;
1108	esac
1109      fi
1110      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111      # Get rid of the leading space.
1112      ac_sep=" "
1113      ;;
1114    esac
1115  done
1116done
1117$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120# When interrupted or exit'd, cleanup temporary files, and complete
1121# config.log.  We remove comments because anyway the quotes in there
1122# would cause problems or look ugly.
1123# WARNING: Be sure not to use single quotes in there, as some shells,
1124# such as our DU 5.0 friend, will then `close' the trap.
1125trap 'exit_status=$?
1126  # Save into config.log some information that might help in debugging.
1127  {
1128    echo
1129
1130    cat <<\_ASBOX
1131## ---------------- ##
1132## Cache variables. ##
1133## ---------------- ##
1134_ASBOX
1135    echo
1136    # The following way of writing the cache mishandles newlines in values,
1137{
1138  (set) 2>&1 |
1139    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140    *ac_space=\ *)
1141      sed -n \
1142	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144      ;;
1145    *)
1146      sed -n \
1147	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148      ;;
1149    esac;
1150}
1151    echo
1152
1153    cat <<\_ASBOX
1154## ----------------- ##
1155## Output variables. ##
1156## ----------------- ##
1157_ASBOX
1158    echo
1159    for ac_var in $ac_subst_vars
1160    do
1161      eval ac_val=$`echo $ac_var`
1162      echo "$ac_var='"'"'$ac_val'"'"'"
1163    done | sort
1164    echo
1165
1166    if test -n "$ac_subst_files"; then
1167      cat <<\_ASBOX
1168## ------------- ##
1169## Output files. ##
1170## ------------- ##
1171_ASBOX
1172      echo
1173      for ac_var in $ac_subst_files
1174      do
1175	eval ac_val=$`echo $ac_var`
1176	echo "$ac_var='"'"'$ac_val'"'"'"
1177      done | sort
1178      echo
1179    fi
1180
1181    if test -s confdefs.h; then
1182      cat <<\_ASBOX
1183## ----------- ##
1184## confdefs.h. ##
1185## ----------- ##
1186_ASBOX
1187      echo
1188      sed "/^$/d" confdefs.h | sort
1189      echo
1190    fi
1191    test "$ac_signal" != 0 &&
1192      echo "$as_me: caught signal $ac_signal"
1193    echo "$as_me: exit $exit_status"
1194  } >&5
1195  rm -f core *.core &&
1196  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197    exit $exit_status
1198     ' 0
1199for ac_signal in 1 2 13 15; do
1200  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201done
1202ac_signal=0
1203
1204# confdefs.h avoids OS command line length limits that DEFS can exceed.
1205rm -rf conftest* confdefs.h
1206# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207echo >confdefs.h
1208
1209# Predefined preprocessor variables.
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_NAME "$PACKAGE_NAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_VERSION "$PACKAGE_VERSION"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_STRING "$PACKAGE_STRING"
1228_ACEOF
1229
1230
1231cat >>confdefs.h <<_ACEOF
1232#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233_ACEOF
1234
1235
1236# Let the site file select an alternate cache file if it wants to.
1237# Prefer explicitly selected file to automatically selected ones.
1238if test -z "$CONFIG_SITE"; then
1239  if test "x$prefix" != xNONE; then
1240    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241  else
1242    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243  fi
1244fi
1245for ac_site_file in $CONFIG_SITE; do
1246  if test -r "$ac_site_file"; then
1247    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248echo "$as_me: loading site script $ac_site_file" >&6;}
1249    sed 's/^/| /' "$ac_site_file" >&5
1250    . "$ac_site_file"
1251  fi
1252done
1253
1254if test -r "$cache_file"; then
1255  # Some versions of bash will fail to source /dev/null (special
1256  # files actually), so we avoid doing that.
1257  if test -f "$cache_file"; then
1258    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259echo "$as_me: loading cache $cache_file" >&6;}
1260    case $cache_file in
1261      [\\/]* | ?:[\\/]* ) . $cache_file;;
1262      *)                      . ./$cache_file;;
1263    esac
1264  fi
1265else
1266  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267echo "$as_me: creating cache $cache_file" >&6;}
1268  >$cache_file
1269fi
1270
1271# Check that the precious variables saved in the cache have kept the same
1272# value.
1273ac_cache_corrupted=false
1274for ac_var in `(set) 2>&1 |
1275	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277  eval ac_new_set=\$ac_env_${ac_var}_set
1278  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279  eval ac_new_val="\$ac_env_${ac_var}_value"
1280  case $ac_old_set,$ac_new_set in
1281    set,)
1282      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284      ac_cache_corrupted=: ;;
1285    ,set)
1286      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288      ac_cache_corrupted=: ;;
1289    ,);;
1290    *)
1291      if test "x$ac_old_val" != "x$ac_new_val"; then
1292	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1295echo "$as_me:   former value:  $ac_old_val" >&2;}
1296	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1297echo "$as_me:   current value: $ac_new_val" >&2;}
1298	ac_cache_corrupted=:
1299      fi;;
1300  esac
1301  # Pass precious variables to config.status.
1302  if test "$ac_new_set" = set; then
1303    case $ac_new_val in
1304    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    *) ac_arg=$ac_var=$ac_new_val ;;
1307    esac
1308    case " $ac_configure_args " in
1309      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1310      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311    esac
1312  fi
1313done
1314if $ac_cache_corrupted; then
1315  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319   { (exit 1); exit 1; }; }
1320fi
1321
1322ac_ext=c
1323ac_cpp='$CPP $CPPFLAGS'
1324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354am__api_version="1.7"
1355ac_aux_dir=
1356for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1357  if test -f $ac_dir/install-sh; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/install-sh -c"
1360    break
1361  elif test -f $ac_dir/install.sh; then
1362    ac_aux_dir=$ac_dir
1363    ac_install_sh="$ac_aux_dir/install.sh -c"
1364    break
1365  elif test -f $ac_dir/shtool; then
1366    ac_aux_dir=$ac_dir
1367    ac_install_sh="$ac_aux_dir/shtool install -c"
1368    break
1369  fi
1370done
1371if test -z "$ac_aux_dir"; then
1372  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1373echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1374   { (exit 1); exit 1; }; }
1375fi
1376ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1377ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1378ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1379
1380# Find a good install program.  We prefer a C program (faster),
1381# so one script is as good as another.  But avoid the broken or
1382# incompatible versions:
1383# SysV /etc/install, /usr/sbin/install
1384# SunOS /usr/etc/install
1385# IRIX /sbin/install
1386# AIX /bin/install
1387# AmigaOS /C/install, which installs bootblocks on floppy discs
1388# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1389# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1390# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1391# OS/2's system install, which has a completely different semantic
1392# ./install, which can be erroneously created by make from ./install.sh.
1393echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1394echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1395if test -z "$INSTALL"; then
1396if test "${ac_cv_path_install+set}" = set; then
1397  echo $ECHO_N "(cached) $ECHO_C" >&6
1398else
1399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402  IFS=$as_save_IFS
1403  test -z "$as_dir" && as_dir=.
1404  # Account for people who put trailing slashes in PATH elements.
1405case $as_dir/ in
1406  ./ | .// | /cC/* | \
1407  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1408  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1409  /usr/ucb/* ) ;;
1410  *)
1411    # OSF1 and SCO ODT 3.0 have their own names for install.
1412    # Don't use installbsd from OSF since it installs stuff as root
1413    # by default.
1414    for ac_prog in ginstall scoinst install; do
1415      for ac_exec_ext in '' $ac_executable_extensions; do
1416	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1417	  if test $ac_prog = install &&
1418	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1419	    # AIX install.  It has an incompatible calling convention.
1420	    :
1421	  elif test $ac_prog = install &&
1422	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423	    # program-specific install script used by HP pwplus--don't use.
1424	    :
1425	  else
1426	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1427	    break 3
1428	  fi
1429	fi
1430      done
1431    done
1432    ;;
1433esac
1434done
1435
1436
1437fi
1438  if test "${ac_cv_path_install+set}" = set; then
1439    INSTALL=$ac_cv_path_install
1440  else
1441    # As a last resort, use the slow shell script.  We don't cache a
1442    # path for INSTALL within a source directory, because that will
1443    # break other packages using the cache if that directory is
1444    # removed, or if the path is relative.
1445    INSTALL=$ac_install_sh
1446  fi
1447fi
1448echo "$as_me:$LINENO: result: $INSTALL" >&5
1449echo "${ECHO_T}$INSTALL" >&6
1450
1451# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1452# It thinks the first close brace ends the variable substitution.
1453test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1454
1455test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1456
1457test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1458
1459echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1460echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1461# Just in case
1462sleep 1
1463echo timestamp > conftest.file
1464# Do `set' in a subshell so we don't clobber the current shell's
1465# arguments.  Must try -L first in case configure is actually a
1466# symlink; some systems play weird games with the mod time of symlinks
1467# (eg FreeBSD returns the mod time of the symlink's containing
1468# directory).
1469if (
1470   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1471   if test "$*" = "X"; then
1472      # -L didn't work.
1473      set X `ls -t $srcdir/configure conftest.file`
1474   fi
1475   rm -f conftest.file
1476   if test "$*" != "X $srcdir/configure conftest.file" \
1477      && test "$*" != "X conftest.file $srcdir/configure"; then
1478
1479      # If neither matched, then we have a broken ls.  This can happen
1480      # if, for instance, CONFIG_SHELL is bash and it inherits a
1481      # broken ls alias from the environment.  This has actually
1482      # happened.  Such a system could not be considered "sane".
1483      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1484alias in your environment" >&5
1485echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1486alias in your environment" >&2;}
1487   { (exit 1); exit 1; }; }
1488   fi
1489
1490   test "$2" = conftest.file
1491   )
1492then
1493   # Ok.
1494   :
1495else
1496   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1497Check your system clock" >&5
1498echo "$as_me: error: newly created file is older than distributed files!
1499Check your system clock" >&2;}
1500   { (exit 1); exit 1; }; }
1501fi
1502echo "$as_me:$LINENO: result: yes" >&5
1503echo "${ECHO_T}yes" >&6
1504test "$program_prefix" != NONE &&
1505  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1506# Use a double $ so make ignores it.
1507test "$program_suffix" != NONE &&
1508  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1509# Double any \ or $.  echo might interpret backslashes.
1510# By default was `s,x,x', remove it if useless.
1511cat <<\_ACEOF >conftest.sed
1512s/[\\$]/&&/g;s/;s,x,x,$//
1513_ACEOF
1514program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1515rm conftest.sed
1516
1517
1518# expand $ac_aux_dir to an absolute path
1519am_aux_dir=`cd $ac_aux_dir && pwd`
1520
1521test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1522# Use eval to expand $SHELL
1523if eval "$MISSING --run true"; then
1524  am_missing_run="$MISSING --run "
1525else
1526  am_missing_run=
1527  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1528echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1529fi
1530
1531for ac_prog in gawk mawk nawk awk
1532do
1533  # Extract the first word of "$ac_prog", so it can be a program name with args.
1534set dummy $ac_prog; ac_word=$2
1535echo "$as_me:$LINENO: checking for $ac_word" >&5
1536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537if test "${ac_cv_prog_AWK+set}" = set; then
1538  echo $ECHO_N "(cached) $ECHO_C" >&6
1539else
1540  if test -n "$AWK"; then
1541  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1542else
1543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544for as_dir in $PATH
1545do
1546  IFS=$as_save_IFS
1547  test -z "$as_dir" && as_dir=.
1548  for ac_exec_ext in '' $ac_executable_extensions; do
1549  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550    ac_cv_prog_AWK="$ac_prog"
1551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552    break 2
1553  fi
1554done
1555done
1556
1557fi
1558fi
1559AWK=$ac_cv_prog_AWK
1560if test -n "$AWK"; then
1561  echo "$as_me:$LINENO: result: $AWK" >&5
1562echo "${ECHO_T}$AWK" >&6
1563else
1564  echo "$as_me:$LINENO: result: no" >&5
1565echo "${ECHO_T}no" >&6
1566fi
1567
1568  test -n "$AWK" && break
1569done
1570
1571echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1572echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1573set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1574if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1575  echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577  cat >conftest.make <<\_ACEOF
1578all:
1579	@echo 'ac_maketemp="$(MAKE)"'
1580_ACEOF
1581# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1582eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1583if test -n "$ac_maketemp"; then
1584  eval ac_cv_prog_make_${ac_make}_set=yes
1585else
1586  eval ac_cv_prog_make_${ac_make}_set=no
1587fi
1588rm -f conftest.make
1589fi
1590if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1591  echo "$as_me:$LINENO: result: yes" >&5
1592echo "${ECHO_T}yes" >&6
1593  SET_MAKE=
1594else
1595  echo "$as_me:$LINENO: result: no" >&5
1596echo "${ECHO_T}no" >&6
1597  SET_MAKE="MAKE=${MAKE-make}"
1598fi
1599
1600rm -rf .tst 2>/dev/null
1601mkdir .tst 2>/dev/null
1602if test -d .tst; then
1603  am__leading_dot=.
1604else
1605  am__leading_dot=_
1606fi
1607rmdir .tst 2>/dev/null
1608
1609 # test to see if srcdir already configured
1610if test "`cd $srcdir && pwd`" != "`pwd`" &&
1611   test -f $srcdir/config.status; then
1612  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1613echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1614   { (exit 1); exit 1; }; }
1615fi
1616
1617# test whether we have cygpath
1618if test -z "$CYGPATH_W"; then
1619  if (cygpath --version) >/dev/null 2>/dev/null; then
1620    CYGPATH_W='cygpath -w'
1621  else
1622    CYGPATH_W=echo
1623  fi
1624fi
1625
1626
1627# Define the identity of the package.
1628 PACKAGE=hugo
1629 VERSION=2.12
1630
1631
1632cat >>confdefs.h <<_ACEOF
1633#define PACKAGE "$PACKAGE"
1634_ACEOF
1635
1636
1637cat >>confdefs.h <<_ACEOF
1638#define VERSION "$VERSION"
1639_ACEOF
1640
1641# Some tools Automake needs.
1642
1643ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1644
1645
1646AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1647
1648
1649AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1650
1651
1652AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1653
1654
1655MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1656
1657
1658AMTAR=${AMTAR-"${am_missing_run}tar"}
1659
1660install_sh=${install_sh-"$am_aux_dir/install-sh"}
1661
1662# Installed binaries are usually stripped using `strip' when the user
1663# run `make install-strip'.  However `strip' might not be the right
1664# tool to use in cross-compilation environments, therefore Automake
1665# will honor the `STRIP' environment variable to overrule this program.
1666if test "$cross_compiling" != no; then
1667  if test -n "$ac_tool_prefix"; then
1668  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1669set dummy ${ac_tool_prefix}strip; ac_word=$2
1670echo "$as_me:$LINENO: checking for $ac_word" >&5
1671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672if test "${ac_cv_prog_STRIP+set}" = set; then
1673  echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675  if test -n "$STRIP"; then
1676  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1677else
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681  IFS=$as_save_IFS
1682  test -z "$as_dir" && as_dir=.
1683  for ac_exec_ext in '' $ac_executable_extensions; do
1684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687    break 2
1688  fi
1689done
1690done
1691
1692fi
1693fi
1694STRIP=$ac_cv_prog_STRIP
1695if test -n "$STRIP"; then
1696  echo "$as_me:$LINENO: result: $STRIP" >&5
1697echo "${ECHO_T}$STRIP" >&6
1698else
1699  echo "$as_me:$LINENO: result: no" >&5
1700echo "${ECHO_T}no" >&6
1701fi
1702
1703fi
1704if test -z "$ac_cv_prog_STRIP"; then
1705  ac_ct_STRIP=$STRIP
1706  # Extract the first word of "strip", so it can be a program name with args.
1707set dummy strip; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1711  echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713  if test -n "$ac_ct_STRIP"; then
1714  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719  IFS=$as_save_IFS
1720  test -z "$as_dir" && as_dir=.
1721  for ac_exec_ext in '' $ac_executable_extensions; do
1722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723    ac_cv_prog_ac_ct_STRIP="strip"
1724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725    break 2
1726  fi
1727done
1728done
1729
1730  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1731fi
1732fi
1733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1734if test -n "$ac_ct_STRIP"; then
1735  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1736echo "${ECHO_T}$ac_ct_STRIP" >&6
1737else
1738  echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
1740fi
1741
1742  STRIP=$ac_ct_STRIP
1743else
1744  STRIP="$ac_cv_prog_STRIP"
1745fi
1746
1747fi
1748INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1749
1750# We need awk for the "check" target.  The system "awk" is bad on
1751# some platforms.
1752
1753
1754
1755
1756# AC_CONFIG_HEADER([config.h])
1757          ac_config_headers="$ac_config_headers config.h"
1758
1759
1760# Make sure we can run config.sub.
1761$ac_config_sub sun4 >/dev/null 2>&1 ||
1762  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1763echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1764   { (exit 1); exit 1; }; }
1765
1766echo "$as_me:$LINENO: checking build system type" >&5
1767echo $ECHO_N "checking build system type... $ECHO_C" >&6
1768if test "${ac_cv_build+set}" = set; then
1769  echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771  ac_cv_build_alias=$build_alias
1772test -z "$ac_cv_build_alias" &&
1773  ac_cv_build_alias=`$ac_config_guess`
1774test -z "$ac_cv_build_alias" &&
1775  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1776echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1777   { (exit 1); exit 1; }; }
1778ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1779  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1780echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1781   { (exit 1); exit 1; }; }
1782
1783fi
1784echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1785echo "${ECHO_T}$ac_cv_build" >&6
1786build=$ac_cv_build
1787build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1790
1791
1792echo "$as_me:$LINENO: checking host system type" >&5
1793echo $ECHO_N "checking host system type... $ECHO_C" >&6
1794if test "${ac_cv_host+set}" = set; then
1795  echo $ECHO_N "(cached) $ECHO_C" >&6
1796else
1797  ac_cv_host_alias=$host_alias
1798test -z "$ac_cv_host_alias" &&
1799  ac_cv_host_alias=$ac_cv_build_alias
1800ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1801  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1802echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1803   { (exit 1); exit 1; }; }
1804
1805fi
1806echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1807echo "${ECHO_T}$ac_cv_host" >&6
1808host=$ac_cv_host
1809host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1810host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1811host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1812
1813
1814echo "$as_me:$LINENO: checking target system type" >&5
1815echo $ECHO_N "checking target system type... $ECHO_C" >&6
1816if test "${ac_cv_target+set}" = set; then
1817  echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819  ac_cv_target_alias=$target_alias
1820test "x$ac_cv_target_alias" = "x" &&
1821  ac_cv_target_alias=$ac_cv_host_alias
1822ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1823  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1824echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1825   { (exit 1); exit 1; }; }
1826
1827fi
1828echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1829echo "${ECHO_T}$ac_cv_target" >&6
1830target=$ac_cv_target
1831target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1832target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1833target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1834
1835
1836# The aliases save the names the user supplied, while $host etc.
1837# will get canonicalized.
1838test -n "$target_alias" &&
1839  test "$program_prefix$program_suffix$program_transform_name" = \
1840    NONENONEs,x,x, &&
1841  program_prefix=${target_alias}-
1842# AC_ARG_PROGRAM
1843
1844echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1845echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1846    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1847if test "${enable_maintainer_mode+set}" = set; then
1848  enableval="$enable_maintainer_mode"
1849  USE_MAINTAINER_MODE=$enableval
1850else
1851  USE_MAINTAINER_MODE=no
1852fi;
1853  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1854echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1855
1856
1857if test $USE_MAINTAINER_MODE = yes; then
1858  MAINTAINER_MODE_TRUE=
1859  MAINTAINER_MODE_FALSE='#'
1860else
1861  MAINTAINER_MODE_TRUE='#'
1862  MAINTAINER_MODE_FALSE=
1863fi
1864
1865  MAINT=$MAINTAINER_MODE_TRUE
1866
1867
1868
1869# Checks for programs.
1870ac_ext=c
1871ac_cpp='$CPP $CPPFLAGS'
1872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875if test -n "$ac_tool_prefix"; then
1876  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1877set dummy ${ac_tool_prefix}gcc; ac_word=$2
1878echo "$as_me:$LINENO: checking for $ac_word" >&5
1879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880if test "${ac_cv_prog_CC+set}" = set; then
1881  echo $ECHO_N "(cached) $ECHO_C" >&6
1882else
1883  if test -n "$CC"; then
1884  ac_cv_prog_CC="$CC" # Let the user override the test.
1885else
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889  IFS=$as_save_IFS
1890  test -z "$as_dir" && as_dir=.
1891  for ac_exec_ext in '' $ac_executable_extensions; do
1892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895    break 2
1896  fi
1897done
1898done
1899
1900fi
1901fi
1902CC=$ac_cv_prog_CC
1903if test -n "$CC"; then
1904  echo "$as_me:$LINENO: result: $CC" >&5
1905echo "${ECHO_T}$CC" >&6
1906else
1907  echo "$as_me:$LINENO: result: no" >&5
1908echo "${ECHO_T}no" >&6
1909fi
1910
1911fi
1912if test -z "$ac_cv_prog_CC"; then
1913  ac_ct_CC=$CC
1914  # Extract the first word of "gcc", so it can be a program name with args.
1915set dummy gcc; ac_word=$2
1916echo "$as_me:$LINENO: checking for $ac_word" >&5
1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919  echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921  if test -n "$ac_ct_CC"; then
1922  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923else
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927  IFS=$as_save_IFS
1928  test -z "$as_dir" && as_dir=.
1929  for ac_exec_ext in '' $ac_executable_extensions; do
1930  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931    ac_cv_prog_ac_ct_CC="gcc"
1932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933    break 2
1934  fi
1935done
1936done
1937
1938fi
1939fi
1940ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941if test -n "$ac_ct_CC"; then
1942  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943echo "${ECHO_T}$ac_ct_CC" >&6
1944else
1945  echo "$as_me:$LINENO: result: no" >&5
1946echo "${ECHO_T}no" >&6
1947fi
1948
1949  CC=$ac_ct_CC
1950else
1951  CC="$ac_cv_prog_CC"
1952fi
1953
1954if test -z "$CC"; then
1955  if test -n "$ac_tool_prefix"; then
1956  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1957set dummy ${ac_tool_prefix}cc; ac_word=$2
1958echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960if test "${ac_cv_prog_CC+set}" = set; then
1961  echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963  if test -n "$CC"; then
1964  ac_cv_prog_CC="$CC" # Let the user override the test.
1965else
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969  IFS=$as_save_IFS
1970  test -z "$as_dir" && as_dir=.
1971  for ac_exec_ext in '' $ac_executable_extensions; do
1972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973    ac_cv_prog_CC="${ac_tool_prefix}cc"
1974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975    break 2
1976  fi
1977done
1978done
1979
1980fi
1981fi
1982CC=$ac_cv_prog_CC
1983if test -n "$CC"; then
1984  echo "$as_me:$LINENO: result: $CC" >&5
1985echo "${ECHO_T}$CC" >&6
1986else
1987  echo "$as_me:$LINENO: result: no" >&5
1988echo "${ECHO_T}no" >&6
1989fi
1990
1991fi
1992if test -z "$ac_cv_prog_CC"; then
1993  ac_ct_CC=$CC
1994  # Extract the first word of "cc", so it can be a program name with args.
1995set dummy cc; ac_word=$2
1996echo "$as_me:$LINENO: checking for $ac_word" >&5
1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999  echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001  if test -n "$ac_ct_CC"; then
2002  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003else
2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
2007  IFS=$as_save_IFS
2008  test -z "$as_dir" && as_dir=.
2009  for ac_exec_ext in '' $ac_executable_extensions; do
2010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011    ac_cv_prog_ac_ct_CC="cc"
2012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013    break 2
2014  fi
2015done
2016done
2017
2018fi
2019fi
2020ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021if test -n "$ac_ct_CC"; then
2022  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023echo "${ECHO_T}$ac_ct_CC" >&6
2024else
2025  echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6
2027fi
2028
2029  CC=$ac_ct_CC
2030else
2031  CC="$ac_cv_prog_CC"
2032fi
2033
2034fi
2035if test -z "$CC"; then
2036  # Extract the first word of "cc", so it can be a program name with args.
2037set dummy cc; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_CC+set}" = set; then
2041  echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043  if test -n "$CC"; then
2044  ac_cv_prog_CC="$CC" # Let the user override the test.
2045else
2046  ac_prog_rejected=no
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050  IFS=$as_save_IFS
2051  test -z "$as_dir" && as_dir=.
2052  for ac_exec_ext in '' $ac_executable_extensions; do
2053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2055       ac_prog_rejected=yes
2056       continue
2057     fi
2058    ac_cv_prog_CC="cc"
2059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060    break 2
2061  fi
2062done
2063done
2064
2065if test $ac_prog_rejected = yes; then
2066  # We found a bogon in the path, so make sure we never use it.
2067  set dummy $ac_cv_prog_CC
2068  shift
2069  if test $# != 0; then
2070    # We chose a different compiler from the bogus one.
2071    # However, it has the same basename, so the bogon will be chosen
2072    # first if we set CC to just the basename; use the full file name.
2073    shift
2074    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2075  fi
2076fi
2077fi
2078fi
2079CC=$ac_cv_prog_CC
2080if test -n "$CC"; then
2081  echo "$as_me:$LINENO: result: $CC" >&5
2082echo "${ECHO_T}$CC" >&6
2083else
2084  echo "$as_me:$LINENO: result: no" >&5
2085echo "${ECHO_T}no" >&6
2086fi
2087
2088fi
2089if test -z "$CC"; then
2090  if test -n "$ac_tool_prefix"; then
2091  for ac_prog in cl
2092  do
2093    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2095echo "$as_me:$LINENO: checking for $ac_word" >&5
2096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097if test "${ac_cv_prog_CC+set}" = set; then
2098  echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100  if test -n "$CC"; then
2101  ac_cv_prog_CC="$CC" # Let the user override the test.
2102else
2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106  IFS=$as_save_IFS
2107  test -z "$as_dir" && as_dir=.
2108  for ac_exec_ext in '' $ac_executable_extensions; do
2109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112    break 2
2113  fi
2114done
2115done
2116
2117fi
2118fi
2119CC=$ac_cv_prog_CC
2120if test -n "$CC"; then
2121  echo "$as_me:$LINENO: result: $CC" >&5
2122echo "${ECHO_T}$CC" >&6
2123else
2124  echo "$as_me:$LINENO: result: no" >&5
2125echo "${ECHO_T}no" >&6
2126fi
2127
2128    test -n "$CC" && break
2129  done
2130fi
2131if test -z "$CC"; then
2132  ac_ct_CC=$CC
2133  for ac_prog in cl
2134do
2135  # Extract the first word of "$ac_prog", so it can be a program name with args.
2136set dummy $ac_prog; ac_word=$2
2137echo "$as_me:$LINENO: checking for $ac_word" >&5
2138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140  echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142  if test -n "$ac_ct_CC"; then
2143  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144else
2145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148  IFS=$as_save_IFS
2149  test -z "$as_dir" && as_dir=.
2150  for ac_exec_ext in '' $ac_executable_extensions; do
2151  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2152    ac_cv_prog_ac_ct_CC="$ac_prog"
2153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154    break 2
2155  fi
2156done
2157done
2158
2159fi
2160fi
2161ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162if test -n "$ac_ct_CC"; then
2163  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164echo "${ECHO_T}$ac_ct_CC" >&6
2165else
2166  echo "$as_me:$LINENO: result: no" >&5
2167echo "${ECHO_T}no" >&6
2168fi
2169
2170  test -n "$ac_ct_CC" && break
2171done
2172
2173  CC=$ac_ct_CC
2174fi
2175
2176fi
2177
2178
2179test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2180See \`config.log' for more details." >&5
2181echo "$as_me: error: no acceptable C compiler found in \$PATH
2182See \`config.log' for more details." >&2;}
2183   { (exit 1); exit 1; }; }
2184
2185# Provide some information about the compiler.
2186echo "$as_me:$LINENO:" \
2187     "checking for C compiler version" >&5
2188ac_compiler=`set X $ac_compile; echo $2`
2189{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2190  (eval $ac_compiler --version </dev/null >&5) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }
2194{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2195  (eval $ac_compiler -v </dev/null >&5) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }
2199{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2200  (eval $ac_compiler -V </dev/null >&5) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); }
2204
2205cat >conftest.$ac_ext <<_ACEOF
2206/* confdefs.h.  */
2207_ACEOF
2208cat confdefs.h >>conftest.$ac_ext
2209cat >>conftest.$ac_ext <<_ACEOF
2210/* end confdefs.h.  */
2211
2212int
2213main ()
2214{
2215
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220ac_clean_files_save=$ac_clean_files
2221ac_clean_files="$ac_clean_files a.out a.exe b.out"
2222# Try to create an executable without -o first, disregard a.out.
2223# It will help us diagnose broken compilers, and finding out an intuition
2224# of exeext.
2225echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2226echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2227ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2228if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2229  (eval $ac_link_default) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; then
2233  # Find the output, starting from the most likely.  This scheme is
2234# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2235# resort.
2236
2237# Be careful to initialize this variable, since it used to be cached.
2238# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2239ac_cv_exeext=
2240# b.out is created by i960 compilers.
2241for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2242do
2243  test -f "$ac_file" || continue
2244  case $ac_file in
2245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2246	;;
2247    conftest.$ac_ext )
2248	# This is the source file.
2249	;;
2250    [ab].out )
2251	# We found the default executable, but exeext='' is most
2252	# certainly right.
2253	break;;
2254    *.* )
2255	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256	# FIXME: I believe we export ac_cv_exeext for Libtool,
2257	# but it would be cool to find out if it's true.  Does anybody
2258	# maintain Libtool? --akim.
2259	export ac_cv_exeext
2260	break;;
2261    * )
2262	break;;
2263  esac
2264done
2265else
2266  echo "$as_me: failed program was:" >&5
2267sed 's/^/| /' conftest.$ac_ext >&5
2268
2269{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: C compiler cannot create executables
2272See \`config.log' for more details." >&2;}
2273   { (exit 77); exit 77; }; }
2274fi
2275
2276ac_exeext=$ac_cv_exeext
2277echo "$as_me:$LINENO: result: $ac_file" >&5
2278echo "${ECHO_T}$ac_file" >&6
2279
2280# Check the compiler produces executables we can run.  If not, either
2281# the compiler is broken, or we cross compile.
2282echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2283echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2284# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2285# If not cross compiling, check that we can run a simple program.
2286if test "$cross_compiling" != yes; then
2287  if { ac_try='./$ac_file'
2288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289  (eval $ac_try) 2>&5
2290  ac_status=$?
2291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292  (exit $ac_status); }; }; then
2293    cross_compiling=no
2294  else
2295    if test "$cross_compiling" = maybe; then
2296	cross_compiling=yes
2297    else
2298	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2299If you meant to cross compile, use \`--host'.
2300See \`config.log' for more details." >&5
2301echo "$as_me: error: cannot run C compiled programs.
2302If you meant to cross compile, use \`--host'.
2303See \`config.log' for more details." >&2;}
2304   { (exit 1); exit 1; }; }
2305    fi
2306  fi
2307fi
2308echo "$as_me:$LINENO: result: yes" >&5
2309echo "${ECHO_T}yes" >&6
2310
2311rm -f a.out a.exe conftest$ac_cv_exeext b.out
2312ac_clean_files=$ac_clean_files_save
2313# Check the compiler produces executables we can run.  If not, either
2314# the compiler is broken, or we cross compile.
2315echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2316echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2317echo "$as_me:$LINENO: result: $cross_compiling" >&5
2318echo "${ECHO_T}$cross_compiling" >&6
2319
2320echo "$as_me:$LINENO: checking for suffix of executables" >&5
2321echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2323  (eval $ac_link) 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }; then
2327  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2328# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2329# work properly (i.e., refer to `conftest.exe'), while it won't with
2330# `rm'.
2331for ac_file in conftest.exe conftest conftest.*; do
2332  test -f "$ac_file" || continue
2333  case $ac_file in
2334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2335    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2336	  export ac_cv_exeext
2337	  break;;
2338    * ) break;;
2339  esac
2340done
2341else
2342  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2345See \`config.log' for more details." >&2;}
2346   { (exit 1); exit 1; }; }
2347fi
2348
2349rm -f conftest$ac_cv_exeext
2350echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2351echo "${ECHO_T}$ac_cv_exeext" >&6
2352
2353rm -f conftest.$ac_ext
2354EXEEXT=$ac_cv_exeext
2355ac_exeext=$EXEEXT
2356echo "$as_me:$LINENO: checking for suffix of object files" >&5
2357echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2358if test "${ac_cv_objext+set}" = set; then
2359  echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367
2368int
2369main ()
2370{
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.o conftest.obj
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }; then
2382  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2383  case $ac_file in
2384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2385    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386       break;;
2387  esac
2388done
2389else
2390  echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&5
2395echo "$as_me: error: cannot compute suffix of object files: cannot compile
2396See \`config.log' for more details." >&2;}
2397   { (exit 1); exit 1; }; }
2398fi
2399
2400rm -f conftest.$ac_cv_objext conftest.$ac_ext
2401fi
2402echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2403echo "${ECHO_T}$ac_cv_objext" >&6
2404OBJEXT=$ac_cv_objext
2405ac_objext=$OBJEXT
2406echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2407echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2408if test "${ac_cv_c_compiler_gnu+set}" = set; then
2409  echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411  cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h.  */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h.  */
2417
2418int
2419main ()
2420{
2421#ifndef __GNUC__
2422       choke me
2423#endif
2424
2425  ;
2426  return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431  (eval $ac_compile) 2>conftest.er1
2432  ac_status=$?
2433  grep -v '^ *+' conftest.er1 >conftest.err
2434  rm -f conftest.er1
2435  cat conftest.err >&5
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); } &&
2438	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440  (eval $ac_try) 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; } &&
2444	 { ac_try='test -s conftest.$ac_objext'
2445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446  (eval $ac_try) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }; }; then
2450  ac_compiler_gnu=yes
2451else
2452  echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455ac_compiler_gnu=no
2456fi
2457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458ac_cv_c_compiler_gnu=$ac_compiler_gnu
2459
2460fi
2461echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2463GCC=`test $ac_compiler_gnu = yes && echo yes`
2464ac_test_CFLAGS=${CFLAGS+set}
2465ac_save_CFLAGS=$CFLAGS
2466CFLAGS="-g"
2467echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2468echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2469if test "${ac_cv_prog_cc_g+set}" = set; then
2470  echo $ECHO_N "(cached) $ECHO_C" >&6
2471else
2472  cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h.  */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h.  */
2478
2479int
2480main ()
2481{
2482
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487rm -f conftest.$ac_objext
2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489  (eval $ac_compile) 2>conftest.er1
2490  ac_status=$?
2491  grep -v '^ *+' conftest.er1 >conftest.err
2492  rm -f conftest.er1
2493  cat conftest.err >&5
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); } &&
2496	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498  (eval $ac_try) 2>&5
2499  ac_status=$?
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); }; } &&
2502	 { ac_try='test -s conftest.$ac_objext'
2503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504  (eval $ac_try) 2>&5
2505  ac_status=$?
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); }; }; then
2508  ac_cv_prog_cc_g=yes
2509else
2510  echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513ac_cv_prog_cc_g=no
2514fi
2515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516fi
2517echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2518echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2519if test "$ac_test_CFLAGS" = set; then
2520  CFLAGS=$ac_save_CFLAGS
2521elif test $ac_cv_prog_cc_g = yes; then
2522  if test "$GCC" = yes; then
2523    CFLAGS="-g -O2"
2524  else
2525    CFLAGS="-g"
2526  fi
2527else
2528  if test "$GCC" = yes; then
2529    CFLAGS="-O2"
2530  else
2531    CFLAGS=
2532  fi
2533fi
2534echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2535echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2536if test "${ac_cv_prog_cc_stdc+set}" = set; then
2537  echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539  ac_cv_prog_cc_stdc=no
2540ac_save_CC=$CC
2541cat >conftest.$ac_ext <<_ACEOF
2542/* confdefs.h.  */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h.  */
2547#include <stdarg.h>
2548#include <stdio.h>
2549#include <sys/types.h>
2550#include <sys/stat.h>
2551/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2552struct buf { int x; };
2553FILE * (*rcsopen) (struct buf *, struct stat *, int);
2554static char *e (p, i)
2555     char **p;
2556     int i;
2557{
2558  return p[i];
2559}
2560static char *f (char * (*g) (char **, int), char **p, ...)
2561{
2562  char *s;
2563  va_list v;
2564  va_start (v,p);
2565  s = g (p, va_arg (v,int));
2566  va_end (v);
2567  return s;
2568}
2569
2570/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2571   function prototypes and stuff, but not '\xHH' hex character constants.
2572   These don't provoke an error unfortunately, instead are silently treated
2573   as 'x'.  The following induces an error, until -std1 is added to get
2574   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2575   array size at least.  It's necessary to write '\x00'==0 to get something
2576   that's true only with -std1.  */
2577int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2578
2579int test (int i, double x);
2580struct s1 {int (*f) (int a);};
2581struct s2 {int (*f) (double a);};
2582int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2583int argc;
2584char **argv;
2585int
2586main ()
2587{
2588return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2589  ;
2590  return 0;
2591}
2592_ACEOF
2593# Don't try gcc -ansi; that turns off useful extensions and
2594# breaks some systems' header files.
2595# AIX			-qlanglvl=ansi
2596# Ultrix and OSF/1	-std1
2597# HP-UX 10.20 and later	-Ae
2598# HP-UX older versions	-Aa -D_HPUX_SOURCE
2599# SVR4			-Xc -D__EXTENSIONS__
2600for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2601do
2602  CC="$ac_save_CC $ac_arg"
2603  rm -f conftest.$ac_objext
2604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605  (eval $ac_compile) 2>conftest.er1
2606  ac_status=$?
2607  grep -v '^ *+' conftest.er1 >conftest.err
2608  rm -f conftest.er1
2609  cat conftest.err >&5
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); } &&
2612	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; } &&
2618	 { ac_try='test -s conftest.$ac_objext'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; }; then
2624  ac_cv_prog_cc_stdc=$ac_arg
2625break
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext
2632done
2633rm -f conftest.$ac_ext conftest.$ac_objext
2634CC=$ac_save_CC
2635
2636fi
2637
2638case "x$ac_cv_prog_cc_stdc" in
2639  x|xno)
2640    echo "$as_me:$LINENO: result: none needed" >&5
2641echo "${ECHO_T}none needed" >&6 ;;
2642  *)
2643    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645    CC="$CC $ac_cv_prog_cc_stdc" ;;
2646esac
2647
2648# Some people use a C++ compiler to compile C.  Since we use `exit',
2649# in C++ we need to declare it.  In case someone uses the same compiler
2650# for both compiling C and C++ we need to have the C++ compiler decide
2651# the declaration of exit, since it's the most demanding environment.
2652cat >conftest.$ac_ext <<_ACEOF
2653#ifndef __cplusplus
2654  choke me
2655#endif
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; } &&
2672	 { ac_try='test -s conftest.$ac_objext'
2673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674  (eval $ac_try) 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; }; then
2678  for ac_declaration in \
2679   '' \
2680   'extern "C" void std::exit (int) throw (); using std::exit;' \
2681   'extern "C" void std::exit (int); using std::exit;' \
2682   'extern "C" void exit (int) throw ();' \
2683   'extern "C" void exit (int);' \
2684   'void exit (int);'
2685do
2686  cat >conftest.$ac_ext <<_ACEOF
2687/* confdefs.h.  */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h.  */
2692$ac_declaration
2693#include <stdlib.h>
2694int
2695main ()
2696{
2697exit (42);
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704  (eval $ac_compile) 2>conftest.er1
2705  ac_status=$?
2706  grep -v '^ *+' conftest.er1 >conftest.err
2707  rm -f conftest.er1
2708  cat conftest.err >&5
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; } &&
2717	 { ac_try='test -s conftest.$ac_objext'
2718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719  (eval $ac_try) 2>&5
2720  ac_status=$?
2721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722  (exit $ac_status); }; }; then
2723  :
2724else
2725  echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728continue
2729fi
2730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731  cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h.  */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h.  */
2737$ac_declaration
2738int
2739main ()
2740{
2741exit (42);
2742  ;
2743  return 0;
2744}
2745_ACEOF
2746rm -f conftest.$ac_objext
2747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748  (eval $ac_compile) 2>conftest.er1
2749  ac_status=$?
2750  grep -v '^ *+' conftest.er1 >conftest.err
2751  rm -f conftest.er1
2752  cat conftest.err >&5
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); } &&
2755	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; } &&
2761	 { ac_try='test -s conftest.$ac_objext'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; }; then
2767  break
2768else
2769  echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772fi
2773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774done
2775rm -f conftest*
2776if test -n "$ac_declaration"; then
2777  echo '#ifdef __cplusplus' >>confdefs.h
2778  echo $ac_declaration      >>confdefs.h
2779  echo '#endif'             >>confdefs.h
2780fi
2781
2782else
2783  echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786fi
2787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788ac_ext=c
2789ac_cpp='$CPP $CPPFLAGS'
2790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793DEPDIR="${am__leading_dot}deps"
2794
2795          ac_config_commands="$ac_config_commands depfiles"
2796
2797
2798am_make=${MAKE-make}
2799cat > confinc << 'END'
2800am__doit:
2801	@echo done
2802.PHONY: am__doit
2803END
2804# If we don't find an include directive, just comment out the code.
2805echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2806echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2807am__include="#"
2808am__quote=
2809_am_result=none
2810# First try GNU make style include.
2811echo "include confinc" > confmf
2812# We grep out `Entering directory' and `Leaving directory'
2813# messages which can occur if `w' ends up in MAKEFLAGS.
2814# In particular we don't look at `^make:' because GNU make might
2815# be invoked under some other name (usually "gmake"), in which
2816# case it prints its new name instead of `make'.
2817if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2818   am__include=include
2819   am__quote=
2820   _am_result=GNU
2821fi
2822# Now try BSD make style include.
2823if test "$am__include" = "#"; then
2824   echo '.include "confinc"' > confmf
2825   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2826      am__include=.include
2827      am__quote="\""
2828      _am_result=BSD
2829   fi
2830fi
2831
2832
2833echo "$as_me:$LINENO: result: $_am_result" >&5
2834echo "${ECHO_T}$_am_result" >&6
2835rm -f confinc confmf
2836
2837# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2838if test "${enable_dependency_tracking+set}" = set; then
2839  enableval="$enable_dependency_tracking"
2840
2841fi;
2842if test "x$enable_dependency_tracking" != xno; then
2843  am_depcomp="$ac_aux_dir/depcomp"
2844  AMDEPBACKSLASH='\'
2845fi
2846
2847
2848if test "x$enable_dependency_tracking" != xno; then
2849  AMDEP_TRUE=
2850  AMDEP_FALSE='#'
2851else
2852  AMDEP_TRUE='#'
2853  AMDEP_FALSE=
2854fi
2855
2856
2857
2858
2859depcc="$CC"   am_compiler_list=
2860
2861echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2862echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2863if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2864  echo $ECHO_N "(cached) $ECHO_C" >&6
2865else
2866  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2867  # We make a subdir and do the tests there.  Otherwise we can end up
2868  # making bogus files that we don't know about and never remove.  For
2869  # instance it was reported that on HP-UX the gcc test will end up
2870  # making a dummy file named `D' -- because `-MD' means `put the output
2871  # in D'.
2872  mkdir conftest.dir
2873  # Copy depcomp to subdir because otherwise we won't find it if we're
2874  # using a relative directory.
2875  cp "$am_depcomp" conftest.dir
2876  cd conftest.dir
2877  # We will build objects and dependencies in a subdirectory because
2878  # it helps to detect inapplicable dependency modes.  For instance
2879  # both Tru64's cc and ICC support -MD to output dependencies as a
2880  # side effect of compilation, but ICC will put the dependencies in
2881  # the current directory while Tru64 will put them in the object
2882  # directory.
2883  mkdir sub
2884
2885  am_cv_CC_dependencies_compiler_type=none
2886  if test "$am_compiler_list" = ""; then
2887     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2888  fi
2889  for depmode in $am_compiler_list; do
2890    # Setup a source with many dependencies, because some compilers
2891    # like to wrap large dependency lists on column 80 (with \), and
2892    # we should not choose a depcomp mode which is confused by this.
2893    #
2894    # We need to recreate these files for each test, as the compiler may
2895    # overwrite some of them when testing with obscure command lines.
2896    # This happens at least with the AIX C compiler.
2897    : > sub/conftest.c
2898    for i in 1 2 3 4 5 6; do
2899      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2900      : > sub/conftst$i.h
2901    done
2902    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2903
2904    case $depmode in
2905    nosideeffect)
2906      # after this tag, mechanisms are not by side-effect, so they'll
2907      # only be used when explicitly requested
2908      if test "x$enable_dependency_tracking" = xyes; then
2909	continue
2910      else
2911	break
2912      fi
2913      ;;
2914    none) break ;;
2915    esac
2916    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2917    # mode.  It turns out that the SunPro C++ compiler does not properly
2918    # handle `-M -o', and we need to detect this.
2919    if depmode=$depmode \
2920       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2921       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2922       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2923         >/dev/null 2>conftest.err &&
2924       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2925       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2926       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2927      # icc doesn't choke on unknown options, it will just issue warnings
2928      # (even with -Werror).  So we grep stderr for any message
2929      # that says an option was ignored.
2930      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2931        am_cv_CC_dependencies_compiler_type=$depmode
2932        break
2933      fi
2934    fi
2935  done
2936
2937  cd ..
2938  rm -rf conftest.dir
2939else
2940  am_cv_CC_dependencies_compiler_type=none
2941fi
2942
2943fi
2944echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2945echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2946CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2947
2948
2949
2950if
2951  test "x$enable_dependency_tracking" != xno \
2952  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2953  am__fastdepCC_TRUE=
2954  am__fastdepCC_FALSE='#'
2955else
2956  am__fastdepCC_TRUE='#'
2957  am__fastdepCC_FALSE=
2958fi
2959
2960
2961# Find a good install program.  We prefer a C program (faster),
2962# so one script is as good as another.  But avoid the broken or
2963# incompatible versions:
2964# SysV /etc/install, /usr/sbin/install
2965# SunOS /usr/etc/install
2966# IRIX /sbin/install
2967# AIX /bin/install
2968# AmigaOS /C/install, which installs bootblocks on floppy discs
2969# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2970# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2971# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2972# OS/2's system install, which has a completely different semantic
2973# ./install, which can be erroneously created by make from ./install.sh.
2974echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2975echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2976if test -z "$INSTALL"; then
2977if test "${ac_cv_path_install+set}" = set; then
2978  echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985  # Account for people who put trailing slashes in PATH elements.
2986case $as_dir/ in
2987  ./ | .// | /cC/* | \
2988  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2989  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2990  /usr/ucb/* ) ;;
2991  *)
2992    # OSF1 and SCO ODT 3.0 have their own names for install.
2993    # Don't use installbsd from OSF since it installs stuff as root
2994    # by default.
2995    for ac_prog in ginstall scoinst install; do
2996      for ac_exec_ext in '' $ac_executable_extensions; do
2997	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2998	  if test $ac_prog = install &&
2999	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3000	    # AIX install.  It has an incompatible calling convention.
3001	    :
3002	  elif test $ac_prog = install &&
3003	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3004	    # program-specific install script used by HP pwplus--don't use.
3005	    :
3006	  else
3007	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3008	    break 3
3009	  fi
3010	fi
3011      done
3012    done
3013    ;;
3014esac
3015done
3016
3017
3018fi
3019  if test "${ac_cv_path_install+set}" = set; then
3020    INSTALL=$ac_cv_path_install
3021  else
3022    # As a last resort, use the slow shell script.  We don't cache a
3023    # path for INSTALL within a source directory, because that will
3024    # break other packages using the cache if that directory is
3025    # removed, or if the path is relative.
3026    INSTALL=$ac_install_sh
3027  fi
3028fi
3029echo "$as_me:$LINENO: result: $INSTALL" >&5
3030echo "${ECHO_T}$INSTALL" >&6
3031
3032# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033# It thinks the first close brace ends the variable substitution.
3034test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3035
3036test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3037
3038test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3039
3040echo "$as_me:$LINENO: checking whether ln -s works" >&5
3041echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3042LN_S=$as_ln_s
3043if test "$LN_S" = "ln -s"; then
3044  echo "$as_me:$LINENO: result: yes" >&5
3045echo "${ECHO_T}yes" >&6
3046else
3047  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3048echo "${ECHO_T}no, using $LN_S" >&6
3049fi
3050
3051
3052# Extract the first word of "lyx", so it can be a program name with args.
3053set dummy lyx; ac_word=$2
3054echo "$as_me:$LINENO: checking for $ac_word" >&5
3055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056if test "${ac_cv_prog_HAVE_LYX+set}" = set; then
3057  echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059  if test -n "$HAVE_LYX"; then
3060  ac_cv_prog_HAVE_LYX="$HAVE_LYX" # Let the user override the test.
3061else
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067  for ac_exec_ext in '' $ac_executable_extensions; do
3068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069    ac_cv_prog_HAVE_LYX="found"
3070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071    break 2
3072  fi
3073done
3074done
3075
3076fi
3077fi
3078HAVE_LYX=$ac_cv_prog_HAVE_LYX
3079if test -n "$HAVE_LYX"; then
3080  echo "$as_me:$LINENO: result: $HAVE_LYX" >&5
3081echo "${ECHO_T}$HAVE_LYX" >&6
3082else
3083  echo "$as_me:$LINENO: result: no" >&5
3084echo "${ECHO_T}no" >&6
3085fi
3086
3087# Extract the first word of "latex2html", so it can be a program name with args.
3088set dummy latex2html; ac_word=$2
3089echo "$as_me:$LINENO: checking for $ac_word" >&5
3090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091if test "${ac_cv_prog_HAVE_LATEX2HTML+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  if test -n "$HAVE_LATEX2HTML"; then
3095  ac_cv_prog_HAVE_LATEX2HTML="$HAVE_LATEX2HTML" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100  IFS=$as_save_IFS
3101  test -z "$as_dir" && as_dir=.
3102  for ac_exec_ext in '' $ac_executable_extensions; do
3103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104    ac_cv_prog_HAVE_LATEX2HTML="found"
3105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106    break 2
3107  fi
3108done
3109done
3110
3111fi
3112fi
3113HAVE_LATEX2HTML=$ac_cv_prog_HAVE_LATEX2HTML
3114if test -n "$HAVE_LATEX2HTML"; then
3115  echo "$as_me:$LINENO: result: $HAVE_LATEX2HTML" >&5
3116echo "${ECHO_T}$HAVE_LATEX2HTML" >&6
3117else
3118  echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
3120fi
3121
3122# Extract the first word of "sed", so it can be a program name with args.
3123set dummy sed; ac_word=$2
3124echo "$as_me:$LINENO: checking for $ac_word" >&5
3125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126if test "${ac_cv_prog_HAVE_SED+set}" = set; then
3127  echo $ECHO_N "(cached) $ECHO_C" >&6
3128else
3129  if test -n "$HAVE_SED"; then
3130  ac_cv_prog_HAVE_SED="$HAVE_SED" # Let the user override the test.
3131else
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135  IFS=$as_save_IFS
3136  test -z "$as_dir" && as_dir=.
3137  for ac_exec_ext in '' $ac_executable_extensions; do
3138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139    ac_cv_prog_HAVE_SED="found"
3140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141    break 2
3142  fi
3143done
3144done
3145
3146fi
3147fi
3148HAVE_SED=$ac_cv_prog_HAVE_SED
3149if test -n "$HAVE_SED"; then
3150  echo "$as_me:$LINENO: result: $HAVE_SED" >&5
3151echo "${ECHO_T}$HAVE_SED" >&6
3152else
3153  echo "$as_me:$LINENO: result: no" >&5
3154echo "${ECHO_T}no" >&6
3155fi
3156
3157# Extract the first word of "tidy", so it can be a program name with args.
3158set dummy tidy; ac_word=$2
3159echo "$as_me:$LINENO: checking for $ac_word" >&5
3160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161if test "${ac_cv_prog_HAVE_TIDY+set}" = set; then
3162  echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164  if test -n "$HAVE_TIDY"; then
3165  ac_cv_prog_HAVE_TIDY="$HAVE_TIDY" # Let the user override the test.
3166else
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170  IFS=$as_save_IFS
3171  test -z "$as_dir" && as_dir=.
3172  for ac_exec_ext in '' $ac_executable_extensions; do
3173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174    ac_cv_prog_HAVE_TIDY="found"
3175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176    break 2
3177  fi
3178done
3179done
3180
3181fi
3182fi
3183HAVE_TIDY=$ac_cv_prog_HAVE_TIDY
3184if test -n "$HAVE_TIDY"; then
3185  echo "$as_me:$LINENO: result: $HAVE_TIDY" >&5
3186echo "${ECHO_T}$HAVE_TIDY" >&6
3187else
3188  echo "$as_me:$LINENO: result: no" >&5
3189echo "${ECHO_T}no" >&6
3190fi
3191
3192
3193if test -n "$HAVE_LYX"; then
3194
3195
3196if true; then
3197  HAVE_TOOLS_FOR_TXT_DOC_TRUE=
3198  HAVE_TOOLS_FOR_TXT_DOC_FALSE='#'
3199else
3200  HAVE_TOOLS_FOR_TXT_DOC_TRUE='#'
3201  HAVE_TOOLS_FOR_TXT_DOC_FALSE=
3202fi
3203
3204   AVAILABLE_DOC_TARGETS="txt"
3205   echo "$as_me:$LINENO: TEXTUAL form of the documentation can be made" >&5
3206   echo $ECHO_N "TEXTUAL form of the documentation can be made" >&6
3207else
3208
3209
3210if false; then
3211  HAVE_TOOLS_FOR_TXT_DOC_TRUE=
3212  HAVE_TOOLS_FOR_TXT_DOC_FALSE='#'
3213else
3214  HAVE_TOOLS_FOR_TXT_DOC_TRUE='#'
3215  HAVE_TOOLS_FOR_TXT_DOC_FALSE=
3216fi
3217
3218   echo "$as_me:$LINENO: TEXTUAL form of the documentation can NOT be made" >&5
3219   echo $ECHO_N "TEXTUAL form of the documentation can NOT be made" >&6
3220fi
3221
3222if test -n "$HAVE_LYX" -a -n "$HAVE_LATEX2HTML" -a -n "$HAVE_SED" -a -n "$HAVE_TIDY"; then
3223
3224
3225if true; then
3226  HAVE_TOOLS_FOR_HTML_DOC_TRUE=
3227  HAVE_TOOLS_FOR_HTML_DOC_FALSE='#'
3228else
3229  HAVE_TOOLS_FOR_HTML_DOC_TRUE='#'
3230  HAVE_TOOLS_FOR_HTML_DOC_FALSE=
3231fi
3232
3233   AVAILABLE_DOC_TARGETS="$AVAILABLE_DOC_TARGETS html"
3234else
3235
3236
3237if false; then
3238  HAVE_TOOLS_FOR_HTML_DOC_TRUE=
3239  HAVE_TOOLS_FOR_HTML_DOC_FALSE='#'
3240else
3241  HAVE_TOOLS_FOR_HTML_DOC_TRUE='#'
3242  HAVE_TOOLS_FOR_HTML_DOC_FALSE=
3243fi
3244
3245fi
3246
3247
3248
3249# Checks for libraries.
3250
3251
3252
3253echo "$as_me:$LINENO: checking for main in -lSDL" >&5
3254echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
3255if test "${ac_cv_lib_SDL_main+set}" = set; then
3256  echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258  ac_check_lib_save_LIBS=$LIBS
3259LIBS="`${SDL_CONFIG} --libs`  $LIBS"
3260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h.  */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h.  */
3266
3267
3268int
3269main ()
3270{
3271main ();
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276rm -f conftest.$ac_objext conftest$ac_exeext
3277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3278  (eval $ac_link) 2>conftest.er1
3279  ac_status=$?
3280  grep -v '^ *+' conftest.er1 >conftest.err
3281  rm -f conftest.er1
3282  cat conftest.err >&5
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } &&
3285	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287  (eval $ac_try) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }; } &&
3291	 { ac_try='test -s conftest$ac_exeext'
3292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293  (eval $ac_try) 2>&5
3294  ac_status=$?
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); }; }; then
3297  ac_cv_lib_SDL_main=yes
3298else
3299  echo "$as_me: failed program was:" >&5
3300sed 's/^/| /' conftest.$ac_ext >&5
3301
3302ac_cv_lib_SDL_main=no
3303fi
3304rm -f conftest.err conftest.$ac_objext \
3305      conftest$ac_exeext conftest.$ac_ext
3306LIBS=$ac_check_lib_save_LIBS
3307fi
3308echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
3309echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
3310if test $ac_cv_lib_SDL_main = yes; then
3311  cat >>confdefs.h <<_ACEOF
3312#define HAVE_LIBSDL 1
3313_ACEOF
3314
3315  LIBS="`${SDL_CONFIG} --libs` $LIBS"
3316
3317fi
3318 #,,[AC_MSG_ERROR([need SDL. See #http://www.libsdl.org])])
3319echo "$as_me:$LINENO: checking for main in -lSDL_net" >&5
3320echo $ECHO_N "checking for main in -lSDL_net... $ECHO_C" >&6
3321if test "${ac_cv_lib_SDL_net_main+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  ac_check_lib_save_LIBS=$LIBS
3325LIBS="-lSDL_net  $LIBS"
3326cat >conftest.$ac_ext <<_ACEOF
3327/* confdefs.h.  */
3328_ACEOF
3329cat confdefs.h >>conftest.$ac_ext
3330cat >>conftest.$ac_ext <<_ACEOF
3331/* end confdefs.h.  */
3332
3333
3334int
3335main ()
3336{
3337main ();
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342rm -f conftest.$ac_objext conftest$ac_exeext
3343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344  (eval $ac_link) 2>conftest.er1
3345  ac_status=$?
3346  grep -v '^ *+' conftest.er1 >conftest.err
3347  rm -f conftest.er1
3348  cat conftest.err >&5
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); } &&
3351	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353  (eval $ac_try) 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; } &&
3357	 { ac_try='test -s conftest$ac_exeext'
3358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359  (eval $ac_try) 2>&5
3360  ac_status=$?
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); }; }; then
3363  ac_cv_lib_SDL_net_main=yes
3364else
3365  echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368ac_cv_lib_SDL_net_main=no
3369fi
3370rm -f conftest.err conftest.$ac_objext \
3371      conftest$ac_exeext conftest.$ac_ext
3372LIBS=$ac_check_lib_save_LIBS
3373fi
3374echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_main" >&5
3375echo "${ECHO_T}$ac_cv_lib_SDL_net_main" >&6
3376if test $ac_cv_lib_SDL_net_main = yes; then
3377  HAVE_LIBSDL_NET="yes" LIBS="-lSDL_net $LIBS"
3378cat >>confdefs.h <<\_ACEOF
3379#define HAVE_LIBSDL_NET 1
3380_ACEOF
3381
3382else
3383  HAVE_LIBSDL_NET="no"
3384fi
3385 #,,[AC_MSG_ERROR([need SDL_net. See #http://www.libsdl.org])])
3386
3387echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
3388echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6
3389if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
3390  echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392  ac_check_lib_save_LIBS=$LIBS
3393LIBS="-lSDL_mixer  $LIBS"
3394cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400
3401
3402int
3403main ()
3404{
3405main ();
3406  ;
3407  return 0;
3408}
3409_ACEOF
3410rm -f conftest.$ac_objext conftest$ac_exeext
3411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412  (eval $ac_link) 2>conftest.er1
3413  ac_status=$?
3414  grep -v '^ *+' conftest.er1 >conftest.err
3415  rm -f conftest.er1
3416  cat conftest.err >&5
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); } &&
3419	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421  (eval $ac_try) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }; } &&
3425	 { ac_try='test -s conftest$ac_exeext'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; }; then
3431  ac_cv_lib_SDL_mixer_main=yes
3432else
3433  echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436ac_cv_lib_SDL_mixer_main=no
3437fi
3438rm -f conftest.err conftest.$ac_objext \
3439      conftest$ac_exeext conftest.$ac_ext
3440LIBS=$ac_check_lib_save_LIBS
3441fi
3442echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
3443echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6
3444if test $ac_cv_lib_SDL_mixer_main = yes; then
3445  cat >>confdefs.h <<_ACEOF
3446#define HAVE_LIBSDL_MIXER 1
3447_ACEOF
3448
3449  LIBS="-lSDL_mixer $LIBS"
3450
3451fi
3452 #,,[AC_MSG_ERROR([need SDL_mixer. See #http://www.libsdl.org])])
3453
3454echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
3455echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
3456if test "${ac_cv_lib_vorbis_main+set}" = set; then
3457  echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459  ac_check_lib_save_LIBS=$LIBS
3460LIBS="-lvorbis  $LIBS"
3461cat >conftest.$ac_ext <<_ACEOF
3462/* confdefs.h.  */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h.  */
3467
3468
3469int
3470main ()
3471{
3472main ();
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext conftest$ac_exeext
3478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3479  (eval $ac_link) 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } &&
3486	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492	 { ac_try='test -s conftest$ac_exeext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  ac_cv_lib_vorbis_main=yes
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_lib_vorbis_main=no
3504fi
3505rm -f conftest.err conftest.$ac_objext \
3506      conftest$ac_exeext conftest.$ac_ext
3507LIBS=$ac_check_lib_save_LIBS
3508fi
3509echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
3510echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
3511if test $ac_cv_lib_vorbis_main = yes; then
3512  cat >>confdefs.h <<_ACEOF
3513#define HAVE_LIBVORBIS 1
3514_ACEOF
3515
3516  LIBS="-lvorbis $LIBS"
3517
3518fi
3519
3520
3521echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
3522echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
3523if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
3524  echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526  ac_check_lib_save_LIBS=$LIBS
3527LIBS="-lvorbisfile  $LIBS"
3528cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534
3535
3536int
3537main ()
3538{
3539main ();
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544rm -f conftest.$ac_objext conftest$ac_exeext
3545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3546  (eval $ac_link) 2>conftest.er1
3547  ac_status=$?
3548  grep -v '^ *+' conftest.er1 >conftest.err
3549  rm -f conftest.er1
3550  cat conftest.err >&5
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); } &&
3553	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555  (eval $ac_try) 2>&5
3556  ac_status=$?
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); }; } &&
3559	 { ac_try='test -s conftest$ac_exeext'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; }; then
3565  ac_cv_lib_vorbisfile_main=yes
3566else
3567  echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570ac_cv_lib_vorbisfile_main=no
3571fi
3572rm -f conftest.err conftest.$ac_objext \
3573      conftest$ac_exeext conftest.$ac_ext
3574LIBS=$ac_check_lib_save_LIBS
3575fi
3576echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
3577echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
3578if test $ac_cv_lib_vorbisfile_main = yes; then
3579  cat >>confdefs.h <<_ACEOF
3580#define HAVE_LIBVORBISFILE 1
3581_ACEOF
3582
3583  LIBS="-lvorbisfile $LIBS"
3584
3585fi
3586
3587
3588LIBZ_SUPPORT=no
3589
3590echo "$as_me:$LINENO: checking for main in -lz" >&5
3591echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
3592if test "${ac_cv_lib_z_main+set}" = set; then
3593  echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595  ac_check_lib_save_LIBS=$LIBS
3596LIBS="-lz  $LIBS"
3597cat >conftest.$ac_ext <<_ACEOF
3598/* confdefs.h.  */
3599_ACEOF
3600cat confdefs.h >>conftest.$ac_ext
3601cat >>conftest.$ac_ext <<_ACEOF
3602/* end confdefs.h.  */
3603
3604
3605int
3606main ()
3607{
3608main ();
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613rm -f conftest.$ac_objext conftest$ac_exeext
3614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3615  (eval $ac_link) 2>conftest.er1
3616  ac_status=$?
3617  grep -v '^ *+' conftest.er1 >conftest.err
3618  rm -f conftest.er1
3619  cat conftest.err >&5
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); } &&
3622	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624  (eval $ac_try) 2>&5
3625  ac_status=$?
3626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627  (exit $ac_status); }; } &&
3628	 { ac_try='test -s conftest$ac_exeext'
3629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630  (eval $ac_try) 2>&5
3631  ac_status=$?
3632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); }; }; then
3634  ac_cv_lib_z_main=yes
3635else
3636  echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639ac_cv_lib_z_main=no
3640fi
3641rm -f conftest.err conftest.$ac_objext \
3642      conftest$ac_exeext conftest.$ac_ext
3643LIBS=$ac_check_lib_save_LIBS
3644fi
3645echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
3646echo "${ECHO_T}$ac_cv_lib_z_main" >&6
3647if test $ac_cv_lib_z_main = yes; then
3648   LIBS="$LIBS -lz"
3649
3650if true; then
3651  ZLIB_TRUE=
3652  ZLIB_FALSE='#'
3653else
3654  ZLIB_TRUE='#'
3655  ZLIB_FALSE=
3656fi
3657
3658cat >>confdefs.h <<\_ACEOF
3659#define HAVE_LIBZ 1
3660_ACEOF
3661 LIBZ_SUPPORT=yes
3662fi
3663
3664
3665if test "x$LIBZ_SUPPORT" = "xno"
3666then
3667
3668echo "$as_me:$LINENO: checking for main in -lzdll" >&5
3669echo $ECHO_N "checking for main in -lzdll... $ECHO_C" >&6
3670if test "${ac_cv_lib_zdll_main+set}" = set; then
3671  echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673  ac_check_lib_save_LIBS=$LIBS
3674LIBS="-lzdll  $LIBS"
3675cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h.  */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h.  */
3681
3682
3683int
3684main ()
3685{
3686main ();
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691rm -f conftest.$ac_objext conftest$ac_exeext
3692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693  (eval $ac_link) 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; } &&
3706	 { ac_try='test -s conftest$ac_exeext'
3707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708  (eval $ac_try) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); }; }; then
3712  ac_cv_lib_zdll_main=yes
3713else
3714  echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717ac_cv_lib_zdll_main=no
3718fi
3719rm -f conftest.err conftest.$ac_objext \
3720      conftest$ac_exeext conftest.$ac_ext
3721LIBS=$ac_check_lib_save_LIBS
3722fi
3723echo "$as_me:$LINENO: result: $ac_cv_lib_zdll_main" >&5
3724echo "${ECHO_T}$ac_cv_lib_zdll_main" >&6
3725if test $ac_cv_lib_zdll_main = yes; then
3726   LIBS="$LIBS -lzdll"
3727
3728if true; then
3729  ZLIB_TRUE=
3730  ZLIB_FALSE='#'
3731else
3732  ZLIB_TRUE='#'
3733  ZLIB_FALSE=
3734fi
3735
3736cat >>confdefs.h <<\_ACEOF
3737#define HAVE_LIBZ 1
3738_ACEOF
3739 LIBZ_SUPPORT=yes
3740else
3741
3742
3743if false; then
3744  ZLIB_TRUE=
3745  ZLIB_FALSE='#'
3746else
3747  ZLIB_TRUE='#'
3748  ZLIB_FALSE=
3749fi
3750
3751fi
3752
3753
3754fi
3755
3756# Checks for endianess
3757
3758echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3759echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3760if test "${ac_cv_c_bigendian+set}" = set; then
3761  echo $ECHO_N "(cached) $ECHO_C" >&6
3762else
3763  # See if sys/param.h defines the BYTE_ORDER macro.
3764cat >conftest.$ac_ext <<_ACEOF
3765/* confdefs.h.  */
3766_ACEOF
3767cat confdefs.h >>conftest.$ac_ext
3768cat >>conftest.$ac_ext <<_ACEOF
3769/* end confdefs.h.  */
3770#include <sys/types.h>
3771#include <sys/param.h>
3772
3773int
3774main ()
3775{
3776#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3777 bogus endian macros
3778#endif
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786  (eval $ac_compile) 2>conftest.er1
3787  ac_status=$?
3788  grep -v '^ *+' conftest.er1 >conftest.err
3789  rm -f conftest.er1
3790  cat conftest.err >&5
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); } &&
3793	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795  (eval $ac_try) 2>&5
3796  ac_status=$?
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); }; } &&
3799	 { ac_try='test -s conftest.$ac_objext'
3800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801  (eval $ac_try) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; }; then
3805  # It does; now see whether it defined to BIG_ENDIAN or not.
3806cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h.  */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h.  */
3812#include <sys/types.h>
3813#include <sys/param.h>
3814
3815int
3816main ()
3817{
3818#if BYTE_ORDER != BIG_ENDIAN
3819 not big endian
3820#endif
3821
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826rm -f conftest.$ac_objext
3827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828  (eval $ac_compile) 2>conftest.er1
3829  ac_status=$?
3830  grep -v '^ *+' conftest.er1 >conftest.err
3831  rm -f conftest.er1
3832  cat conftest.err >&5
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); } &&
3835	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837  (eval $ac_try) 2>&5
3838  ac_status=$?
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); }; } &&
3841	 { ac_try='test -s conftest.$ac_objext'
3842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843  (eval $ac_try) 2>&5
3844  ac_status=$?
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); }; }; then
3847  ac_cv_c_bigendian=yes
3848else
3849  echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852ac_cv_c_bigendian=no
3853fi
3854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855else
3856  echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
3859# It does not; compile a test program.
3860if test "$cross_compiling" = yes; then
3861  # try to guess the endianness by grepping values into an object file
3862  ac_cv_c_bigendian=unknown
3863  cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h.  */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
3868/* end confdefs.h.  */
3869short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3870short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3871void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3872short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3873short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3874void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3875int
3876main ()
3877{
3878 _ascii (); _ebcdic ();
3879  ;
3880  return 0;
3881}
3882_ACEOF
3883rm -f conftest.$ac_objext
3884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885  (eval $ac_compile) 2>conftest.er1
3886  ac_status=$?
3887  grep -v '^ *+' conftest.er1 >conftest.err
3888  rm -f conftest.er1
3889  cat conftest.err >&5
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); } &&
3892	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894  (eval $ac_try) 2>&5
3895  ac_status=$?
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); }; } &&
3898	 { ac_try='test -s conftest.$ac_objext'
3899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900  (eval $ac_try) 2>&5
3901  ac_status=$?
3902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903  (exit $ac_status); }; }; then
3904  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3905  ac_cv_c_bigendian=yes
3906fi
3907if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3908  if test "$ac_cv_c_bigendian" = unknown; then
3909    ac_cv_c_bigendian=no
3910  else
3911    # finding both strings is unlikely to happen, but who knows?
3912    ac_cv_c_bigendian=unknown
3913  fi
3914fi
3915else
3916  echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919fi
3920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921else
3922  cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h.  */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
3927/* end confdefs.h.  */
3928int
3929main ()
3930{
3931  /* Are we little or big endian?  From Harbison&Steele.  */
3932  union
3933  {
3934    long l;
3935    char c[sizeof (long)];
3936  } u;
3937  u.l = 1;
3938  exit (u.c[sizeof (long) - 1] == 1);
3939}
3940_ACEOF
3941rm -f conftest$ac_exeext
3942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3943  (eval $ac_link) 2>&5
3944  ac_status=$?
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948  (eval $ac_try) 2>&5
3949  ac_status=$?
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); }; }; then
3952  ac_cv_c_bigendian=no
3953else
3954  echo "$as_me: program exited with status $ac_status" >&5
3955echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958( exit $ac_status )
3959ac_cv_c_bigendian=yes
3960fi
3961rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3962fi
3963fi
3964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3965fi
3966echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3967echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3968case $ac_cv_c_bigendian in
3969  yes)
3970
3971cat >>confdefs.h <<\_ACEOF
3972#define WORDS_BIGENDIAN 1
3973_ACEOF
3974 ;;
3975  no)
3976     ;;
3977  *)
3978    { { echo "$as_me:$LINENO: error: unknown endianness
3979presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3980echo "$as_me: error: unknown endianness
3981presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3982   { (exit 1); exit 1; }; } ;;
3983esac
3984
3985
3986
3987# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
3988if test "${with_sdl_prefix+set}" = set; then
3989  withval="$with_sdl_prefix"
3990  sdl_prefix="$withval"
3991else
3992  sdl_prefix=""
3993fi;
3994
3995# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
3996if test "${with_sdl_exec_prefix+set}" = set; then
3997  withval="$with_sdl_exec_prefix"
3998  sdl_exec_prefix="$withval"
3999else
4000  sdl_exec_prefix=""
4001fi;
4002# Check whether --enable-sdltest or --disable-sdltest was given.
4003if test "${enable_sdltest+set}" = set; then
4004  enableval="$enable_sdltest"
4005
4006else
4007  enable_sdltest=yes
4008fi;
4009
4010  if test x$sdl_exec_prefix != x ; then
4011     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
4012     if test x${SDL_CONFIG+set} != xset ; then
4013        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
4014     fi
4015  fi
4016  if test x$sdl_prefix != x ; then
4017     sdl_args="$sdl_args --prefix=$sdl_prefix"
4018     if test x${SDL_CONFIG+set} != xset ; then
4019        SDL_CONFIG=$sdl_prefix/bin/sdl-config
4020     fi
4021  fi
4022
4023
4024  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4025  # Extract the first word of "sdl-config", so it can be a program name with args.
4026set dummy sdl-config; ac_word=$2
4027echo "$as_me:$LINENO: checking for $ac_word" >&5
4028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4029if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
4030  echo $ECHO_N "(cached) $ECHO_C" >&6
4031else
4032  case $SDL_CONFIG in
4033  [\\/]* | ?:[\\/]*)
4034  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4035  ;;
4036  *)
4037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH
4039do
4040  IFS=$as_save_IFS
4041  test -z "$as_dir" && as_dir=.
4042  for ac_exec_ext in '' $ac_executable_extensions; do
4043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046    break 2
4047  fi
4048done
4049done
4050
4051  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4052  ;;
4053esac
4054fi
4055SDL_CONFIG=$ac_cv_path_SDL_CONFIG
4056
4057if test -n "$SDL_CONFIG"; then
4058  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
4059echo "${ECHO_T}$SDL_CONFIG" >&6
4060else
4061  echo "$as_me:$LINENO: result: no" >&5
4062echo "${ECHO_T}no" >&6
4063fi
4064
4065  min_sdl_version=0.11.0
4066  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
4067echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
4068  no_sdl=""
4069  if test "$SDL_CONFIG" = "no" ; then
4070    no_sdl=yes
4071  else
4072    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
4073    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
4074
4075    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
4076           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4077    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
4078           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4079    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
4080           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4081    if test "x$enable_sdltest" = "xyes" ; then
4082      ac_save_CFLAGS="$CFLAGS"
4083      ac_save_LIBS="$LIBS"
4084      CFLAGS="$CFLAGS $SDL_CFLAGS"
4085      LIBS="$LIBS $SDL_LIBS"
4086      rm -f conf.sdltest
4087      if test "$cross_compiling" = yes; then
4088  echo $ac_n "cross compiling; assumed OK... $ac_c"
4089else
4090  cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h.  */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
4095/* end confdefs.h.  */
4096
4097#include <stdio.h>
4098#include <stdlib.h>
4099#include <string.h>
4100#include "SDL.h"
4101
4102char*
4103my_strdup (char *str)
4104{
4105  char *new_str;
4106
4107  if (str)
4108    {
4109      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4110      strcpy (new_str, str);
4111    }
4112  else
4113    new_str = NULL;
4114
4115  return new_str;
4116}
4117
4118int main (int argc, char *argv[])
4119{
4120  int major, minor, micro;
4121  char *tmp_version;
4122
4123  /* This hangs on some systems (?)
4124  system ("touch conf.sdltest");
4125  */
4126  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
4127
4128  /* HP/UX 9 (%@#!) writes to sscanf strings */
4129  tmp_version = my_strdup("$min_sdl_version");
4130  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4131     printf("%s, bad version string\n", "$min_sdl_version");
4132     exit(1);
4133   }
4134
4135   if (($sdl_major_version > major) ||
4136      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
4137      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
4138    {
4139      return 0;
4140    }
4141  else
4142    {
4143      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
4144      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
4145      printf("*** best to upgrade to the required version.\n");
4146      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
4147      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
4148      printf("*** config.cache before re-running configure\n");
4149      return 1;
4150    }
4151}
4152
4153
4154_ACEOF
4155rm -f conftest$ac_exeext
4156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4157  (eval $ac_link) 2>&5
4158  ac_status=$?
4159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162  (eval $ac_try) 2>&5
4163  ac_status=$?
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); }; }; then
4166  :
4167else
4168  echo "$as_me: program exited with status $ac_status" >&5
4169echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172( exit $ac_status )
4173no_sdl=yes
4174fi
4175rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4176fi
4177       CFLAGS="$ac_save_CFLAGS"
4178       LIBS="$ac_save_LIBS"
4179     fi
4180  fi
4181  if test "x$no_sdl" = x ; then
4182     echo "$as_me:$LINENO: result: yes" >&5
4183echo "${ECHO_T}yes" >&6
4184     :
4185  else
4186     echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
4188     if test "$SDL_CONFIG" = "no" ; then
4189       echo "*** The sdl-config script installed by SDL could not be found"
4190       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
4191       echo "*** your path, or set the SDL_CONFIG environment variable to the"
4192       echo "*** full path to sdl-config."
4193     else
4194       if test -f conf.sdltest ; then
4195        :
4196       else
4197          echo "*** Could not run SDL test program, checking why..."
4198          CFLAGS="$CFLAGS $SDL_CFLAGS"
4199          LIBS="$LIBS $SDL_LIBS"
4200          cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h.  */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h.  */
4206
4207#include <stdio.h>
4208#include "SDL.h"
4209
4210int main(int argc, char *argv[])
4211{ return 0; }
4212#undef  main
4213#define main K_and_R_C_main
4214
4215int
4216main ()
4217{
4218 return 0;
4219  ;
4220  return 0;
4221}
4222_ACEOF
4223rm -f conftest.$ac_objext conftest$ac_exeext
4224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225  (eval $ac_link) 2>conftest.er1
4226  ac_status=$?
4227  grep -v '^ *+' conftest.er1 >conftest.err
4228  rm -f conftest.er1
4229  cat conftest.err >&5
4230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231  (exit $ac_status); } &&
4232	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234  (eval $ac_try) 2>&5
4235  ac_status=$?
4236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237  (exit $ac_status); }; } &&
4238	 { ac_try='test -s conftest$ac_exeext'
4239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240  (eval $ac_try) 2>&5
4241  ac_status=$?
4242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243  (exit $ac_status); }; }; then
4244   echo "*** The test program compiled, but did not run. This usually means"
4245          echo "*** that the run-time linker is not finding SDL or finding the wrong"
4246          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
4247          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4248          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4249          echo "*** is required on your system"
4250	  echo "***"
4251          echo "*** If you have an old version installed, it is best to remove it, although"
4252          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4253else
4254  echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 echo "*** The test program failed to compile or link. See the file config.log for the"
4258          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
4259          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
4260          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
4261fi
4262rm -f conftest.err conftest.$ac_objext \
4263      conftest$ac_exeext conftest.$ac_ext
4264          CFLAGS="$ac_save_CFLAGS"
4265          LIBS="$ac_save_LIBS"
4266       fi
4267     fi
4268     SDL_CFLAGS=""
4269     SDL_LIBS=""
4270     :
4271  fi
4272
4273
4274  rm -f conf.sdltest
4275
4276
4277GUI_SUPPORT=yes
4278
4279echo "$as_me:$LINENO: checking whether gui was asked" >&5
4280echo $ECHO_N "checking whether gui was asked...$ECHO_C" >&6
4281
4282# Check whether --enable-gui or --disable-gui was given.
4283if test "${enable_gui+set}" = set; then
4284  enableval="$enable_gui"
4285   if test "$enableval" = "no"; then GUI_SUPPORT="no"; fi
4286fi;
4287
4288if test "x$GUI_SUPPORT" = "xyes"
4289then
4290
4291  echo "$as_me:$LINENO: result: yes" >&5
4292  echo "${ECHO_T}yes" >&6
4293
4294# Check whether --enable-gtktest or --disable-gtktest was given.
4295if test "${enable_gtktest+set}" = set; then
4296  enableval="$enable_gtktest"
4297
4298else
4299  enable_gtktest=yes
4300fi;
4301
4302  pkg_config_args=gtk+-2.0
4303  for module in .
4304  do
4305      case "$module" in
4306         gthread)
4307             pkg_config_args="$pkg_config_args gthread-2.0"
4308         ;;
4309      esac
4310  done
4311
4312  no_gtk=""
4313
4314  # Extract the first word of "pkg-config", so it can be a program name with args.
4315set dummy pkg-config; ac_word=$2
4316echo "$as_me:$LINENO: checking for $ac_word" >&5
4317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  case $PKG_CONFIG in
4322  [\\/]* | ?:[\\/]*)
4323  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4324  ;;
4325  *)
4326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH
4328do
4329  IFS=$as_save_IFS
4330  test -z "$as_dir" && as_dir=.
4331  for ac_exec_ext in '' $ac_executable_extensions; do
4332  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335    break 2
4336  fi
4337done
4338done
4339
4340  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4341  ;;
4342esac
4343fi
4344PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4345
4346if test -n "$PKG_CONFIG"; then
4347  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4348echo "${ECHO_T}$PKG_CONFIG" >&6
4349else
4350  echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6
4352fi
4353
4354
4355  if test x$PKG_CONFIG != xno ; then
4356    if pkg-config --atleast-pkgconfig-version 0.7 ; then
4357      :
4358    else
4359      echo "*** pkg-config too old; version 0.7 or better required."
4360      no_gtk=yes
4361      PKG_CONFIG=no
4362    fi
4363  else
4364    no_gtk=yes
4365  fi
4366
4367  min_gtk_version=2.0.0
4368  echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
4369echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
4370
4371  if test x$PKG_CONFIG != xno ; then
4372    ## don't try to run the test against uninstalled libtool libs
4373    if $PKG_CONFIG --uninstalled $pkg_config_args; then
4374	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
4375	  enable_gtktest=no
4376    fi
4377
4378    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
4379	  :
4380    else
4381	  no_gtk=yes
4382    fi
4383  fi
4384
4385  if test x"$no_gtk" = x ; then
4386    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
4387    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
4388    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4389           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4390    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4391           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4392    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4393           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4394    if test "x$enable_gtktest" = "xyes" ; then
4395      ac_save_CFLAGS="$CFLAGS"
4396      ac_save_LIBS="$LIBS"
4397      CFLAGS="$CFLAGS $GTK_CFLAGS"
4398      LIBS="$GTK_LIBS $LIBS"
4399      rm -f conf.gtktest
4400      if test "$cross_compiling" = yes; then
4401  echo $ac_n "cross compiling; assumed OK... $ac_c"
4402else
4403  cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409
4410#include <gtk/gtk.h>
4411#include <stdio.h>
4412#include <stdlib.h>
4413
4414int
4415main ()
4416{
4417  int major, minor, micro;
4418  char *tmp_version;
4419
4420  system ("touch conf.gtktest");
4421
4422  /* HP/UX 9 (%@#!) writes to sscanf strings */
4423  tmp_version = g_strdup("$min_gtk_version");
4424  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4425     printf("%s, bad version string\n", "$min_gtk_version");
4426     exit(1);
4427   }
4428
4429  if ((gtk_major_version != $gtk_config_major_version) ||
4430      (gtk_minor_version != $gtk_config_minor_version) ||
4431      (gtk_micro_version != $gtk_config_micro_version))
4432    {
4433      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
4434             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
4435             gtk_major_version, gtk_minor_version, gtk_micro_version);
4436      printf ("*** was found! If pkg-config was correct, then it is best\n");
4437      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
4438      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4439      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4440      printf("*** required on your system.\n");
4441      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4442      printf("*** to point to the correct configuration files\n");
4443    }
4444  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
4445	   (gtk_minor_version != GTK_MINOR_VERSION) ||
4446           (gtk_micro_version != GTK_MICRO_VERSION))
4447    {
4448      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
4449	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
4450      printf("*** library (version %d.%d.%d)\n",
4451	     gtk_major_version, gtk_minor_version, gtk_micro_version);
4452    }
4453  else
4454    {
4455      if ((gtk_major_version > major) ||
4456        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4457        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
4458      {
4459        return 0;
4460       }
4461     else
4462      {
4463        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
4464               gtk_major_version, gtk_minor_version, gtk_micro_version);
4465        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
4466	       major, minor, micro);
4467        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
4468        printf("***\n");
4469        printf("*** If you have already installed a sufficiently new version, this error\n");
4470        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4471        printf("*** being found. The easiest way to fix this is to remove the old version\n");
4472        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
4473        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4474        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4475        printf("*** so that the correct libraries are found at run-time))\n");
4476      }
4477    }
4478  return 1;
4479}
4480
4481_ACEOF
4482rm -f conftest$ac_exeext
4483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484  (eval $ac_link) 2>&5
4485  ac_status=$?
4486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489  (eval $ac_try) 2>&5
4490  ac_status=$?
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); }; }; then
4493  :
4494else
4495  echo "$as_me: program exited with status $ac_status" >&5
4496echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499( exit $ac_status )
4500no_gtk=yes
4501fi
4502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4503fi
4504       CFLAGS="$ac_save_CFLAGS"
4505       LIBS="$ac_save_LIBS"
4506     fi
4507  fi
4508  if test "x$no_gtk" = x ; then
4509     echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
4510echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
4511     HAVE_GTK="yes"
4512  else
4513     echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
4515     if test "$PKG_CONFIG" = "no" ; then
4516       echo "*** A new enough version of pkg-config was not found."
4517       echo "*** See http://pkgconfig.sourceforge.net"
4518     else
4519       if test -f conf.gtktest ; then
4520        :
4521       else
4522          echo "*** Could not run GTK+ test program, checking why..."
4523	  ac_save_CFLAGS="$CFLAGS"
4524	  ac_save_LIBS="$LIBS"
4525          CFLAGS="$CFLAGS $GTK_CFLAGS"
4526          LIBS="$LIBS $GTK_LIBS"
4527          cat >conftest.$ac_ext <<_ACEOF
4528/* confdefs.h.  */
4529_ACEOF
4530cat confdefs.h >>conftest.$ac_ext
4531cat >>conftest.$ac_ext <<_ACEOF
4532/* end confdefs.h.  */
4533
4534#include <gtk/gtk.h>
4535#include <stdio.h>
4536
4537int
4538main ()
4539{
4540 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
4541  ;
4542  return 0;
4543}
4544_ACEOF
4545rm -f conftest.$ac_objext conftest$ac_exeext
4546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4547  (eval $ac_link) 2>conftest.er1
4548  ac_status=$?
4549  grep -v '^ *+' conftest.er1 >conftest.err
4550  rm -f conftest.er1
4551  cat conftest.err >&5
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); } &&
4554	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556  (eval $ac_try) 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }; } &&
4560	 { ac_try='test -s conftest$ac_exeext'
4561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562  (eval $ac_try) 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }; }; then
4566   echo "*** The test program compiled, but did not run. This usually means"
4567          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
4568          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
4569          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4570          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4571          echo "*** is required on your system"
4572	  echo "***"
4573          echo "*** If you have an old version installed, it is best to remove it, although"
4574          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4575else
4576  echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 echo "*** The test program failed to compile or link. See the file config.log for the"
4580          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
4581fi
4582rm -f conftest.err conftest.$ac_objext \
4583      conftest$ac_exeext conftest.$ac_ext
4584          CFLAGS="$ac_save_CFLAGS"
4585          LIBS="$ac_save_LIBS"
4586       fi
4587     fi
4588     GTK_CFLAGS=""
4589     GTK_LIBS=""
4590     HAVE_GTK="no"
4591  fi
4592
4593
4594  rm -f conf.gtktest
4595
4596
4597if test "x$HAVE_GTK" = "xno"
4598then
4599
4600
4601if false; then
4602  GTK_TRUE=
4603  GTK_FALSE='#'
4604else
4605  GTK_TRUE='#'
4606  GTK_FALSE=
4607fi
4608
4609else
4610
4611
4612if true; then
4613  GTK_TRUE=
4614  GTK_FALSE='#'
4615else
4616  GTK_TRUE='#'
4617  GTK_FALSE=
4618fi
4619
4620
4621cat >>confdefs.h <<\_ACEOF
4622#define GTK 2
4623_ACEOF
4624
4625fi
4626
4627else
4628
4629
4630if false; then
4631  GTK_TRUE=
4632  GTK_FALSE='#'
4633else
4634  GTK_TRUE='#'
4635  GTK_FALSE=
4636fi
4637
4638
4639  echo "$as_me:$LINENO: result: no" >&5
4640  echo "${ECHO_T}no" >&6
4641
4642fi
4643
4644# Checks for header files.
4645ac_ext=c
4646ac_cpp='$CPP $CPPFLAGS'
4647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4651echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4652# On Suns, sometimes $CPP names a directory.
4653if test -n "$CPP" && test -d "$CPP"; then
4654  CPP=
4655fi
4656if test -z "$CPP"; then
4657  if test "${ac_cv_prog_CPP+set}" = set; then
4658  echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660      # Double quotes because CPP needs to be expanded
4661    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4662    do
4663      ac_preproc_ok=false
4664for ac_c_preproc_warn_flag in '' yes
4665do
4666  # Use a header file that comes with gcc, so configuring glibc
4667  # with a fresh cross-compiler works.
4668  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4669  # <limits.h> exists even on freestanding compilers.
4670  # On the NeXT, cc -E runs the code through the compiler's parser,
4671  # not just through cpp. "Syntax error" is here to catch this case.
4672  cat >conftest.$ac_ext <<_ACEOF
4673/* confdefs.h.  */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h.  */
4678#ifdef __STDC__
4679# include <limits.h>
4680#else
4681# include <assert.h>
4682#endif
4683		     Syntax error
4684_ACEOF
4685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4686  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4687  ac_status=$?
4688  grep -v '^ *+' conftest.er1 >conftest.err
4689  rm -f conftest.er1
4690  cat conftest.err >&5
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); } >/dev/null; then
4693  if test -s conftest.err; then
4694    ac_cpp_err=$ac_c_preproc_warn_flag
4695    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4696  else
4697    ac_cpp_err=
4698  fi
4699else
4700  ac_cpp_err=yes
4701fi
4702if test -z "$ac_cpp_err"; then
4703  :
4704else
4705  echo "$as_me: failed program was:" >&5
4706sed 's/^/| /' conftest.$ac_ext >&5
4707
4708  # Broken: fails on valid input.
4709continue
4710fi
4711rm -f conftest.err conftest.$ac_ext
4712
4713  # OK, works on sane cases.  Now check whether non-existent headers
4714  # can be detected and how.
4715  cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h.  */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h.  */
4721#include <ac_nonexistent.h>
4722_ACEOF
4723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4724  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4725  ac_status=$?
4726  grep -v '^ *+' conftest.er1 >conftest.err
4727  rm -f conftest.er1
4728  cat conftest.err >&5
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); } >/dev/null; then
4731  if test -s conftest.err; then
4732    ac_cpp_err=$ac_c_preproc_warn_flag
4733    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4734  else
4735    ac_cpp_err=
4736  fi
4737else
4738  ac_cpp_err=yes
4739fi
4740if test -z "$ac_cpp_err"; then
4741  # Broken: success on invalid input.
4742continue
4743else
4744  echo "$as_me: failed program was:" >&5
4745sed 's/^/| /' conftest.$ac_ext >&5
4746
4747  # Passes both tests.
4748ac_preproc_ok=:
4749break
4750fi
4751rm -f conftest.err conftest.$ac_ext
4752
4753done
4754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4755rm -f conftest.err conftest.$ac_ext
4756if $ac_preproc_ok; then
4757  break
4758fi
4759
4760    done
4761    ac_cv_prog_CPP=$CPP
4762
4763fi
4764  CPP=$ac_cv_prog_CPP
4765else
4766  ac_cv_prog_CPP=$CPP
4767fi
4768echo "$as_me:$LINENO: result: $CPP" >&5
4769echo "${ECHO_T}$CPP" >&6
4770ac_preproc_ok=false
4771for ac_c_preproc_warn_flag in '' yes
4772do
4773  # Use a header file that comes with gcc, so configuring glibc
4774  # with a fresh cross-compiler works.
4775  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776  # <limits.h> exists even on freestanding compilers.
4777  # On the NeXT, cc -E runs the code through the compiler's parser,
4778  # not just through cpp. "Syntax error" is here to catch this case.
4779  cat >conftest.$ac_ext <<_ACEOF
4780/* confdefs.h.  */
4781_ACEOF
4782cat confdefs.h >>conftest.$ac_ext
4783cat >>conftest.$ac_ext <<_ACEOF
4784/* end confdefs.h.  */
4785#ifdef __STDC__
4786# include <limits.h>
4787#else
4788# include <assert.h>
4789#endif
4790		     Syntax error
4791_ACEOF
4792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4793  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4794  ac_status=$?
4795  grep -v '^ *+' conftest.er1 >conftest.err
4796  rm -f conftest.er1
4797  cat conftest.err >&5
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); } >/dev/null; then
4800  if test -s conftest.err; then
4801    ac_cpp_err=$ac_c_preproc_warn_flag
4802    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4803  else
4804    ac_cpp_err=
4805  fi
4806else
4807  ac_cpp_err=yes
4808fi
4809if test -z "$ac_cpp_err"; then
4810  :
4811else
4812  echo "$as_me: failed program was:" >&5
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815  # Broken: fails on valid input.
4816continue
4817fi
4818rm -f conftest.err conftest.$ac_ext
4819
4820  # OK, works on sane cases.  Now check whether non-existent headers
4821  # can be detected and how.
4822  cat >conftest.$ac_ext <<_ACEOF
4823/* confdefs.h.  */
4824_ACEOF
4825cat confdefs.h >>conftest.$ac_ext
4826cat >>conftest.$ac_ext <<_ACEOF
4827/* end confdefs.h.  */
4828#include <ac_nonexistent.h>
4829_ACEOF
4830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832  ac_status=$?
4833  grep -v '^ *+' conftest.er1 >conftest.err
4834  rm -f conftest.er1
4835  cat conftest.err >&5
4836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837  (exit $ac_status); } >/dev/null; then
4838  if test -s conftest.err; then
4839    ac_cpp_err=$ac_c_preproc_warn_flag
4840    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4841  else
4842    ac_cpp_err=
4843  fi
4844else
4845  ac_cpp_err=yes
4846fi
4847if test -z "$ac_cpp_err"; then
4848  # Broken: success on invalid input.
4849continue
4850else
4851  echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
4853
4854  # Passes both tests.
4855ac_preproc_ok=:
4856break
4857fi
4858rm -f conftest.err conftest.$ac_ext
4859
4860done
4861# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4862rm -f conftest.err conftest.$ac_ext
4863if $ac_preproc_ok; then
4864  :
4865else
4866  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4867See \`config.log' for more details." >&5
4868echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4869See \`config.log' for more details." >&2;}
4870   { (exit 1); exit 1; }; }
4871fi
4872
4873ac_ext=c
4874ac_cpp='$CPP $CPPFLAGS'
4875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878
4879
4880echo "$as_me:$LINENO: checking for egrep" >&5
4881echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4882if test "${ac_cv_prog_egrep+set}" = set; then
4883  echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4886    then ac_cv_prog_egrep='grep -E'
4887    else ac_cv_prog_egrep='egrep'
4888    fi
4889fi
4890echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4891echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4892 EGREP=$ac_cv_prog_egrep
4893
4894
4895echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4896echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4897if test "${ac_cv_header_stdc+set}" = set; then
4898  echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900  cat >conftest.$ac_ext <<_ACEOF
4901/* confdefs.h.  */
4902_ACEOF
4903cat confdefs.h >>conftest.$ac_ext
4904cat >>conftest.$ac_ext <<_ACEOF
4905/* end confdefs.h.  */
4906#include <stdlib.h>
4907#include <stdarg.h>
4908#include <string.h>
4909#include <float.h>
4910
4911int
4912main ()
4913{
4914
4915  ;
4916  return 0;
4917}
4918_ACEOF
4919rm -f conftest.$ac_objext
4920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4921  (eval $ac_compile) 2>conftest.er1
4922  ac_status=$?
4923  grep -v '^ *+' conftest.er1 >conftest.err
4924  rm -f conftest.er1
4925  cat conftest.err >&5
4926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927  (exit $ac_status); } &&
4928	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930  (eval $ac_try) 2>&5
4931  ac_status=$?
4932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933  (exit $ac_status); }; } &&
4934	 { ac_try='test -s conftest.$ac_objext'
4935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936  (eval $ac_try) 2>&5
4937  ac_status=$?
4938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939  (exit $ac_status); }; }; then
4940  ac_cv_header_stdc=yes
4941else
4942  echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945ac_cv_header_stdc=no
4946fi
4947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948
4949if test $ac_cv_header_stdc = yes; then
4950  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4951  cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h.  */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h.  */
4957#include <string.h>
4958
4959_ACEOF
4960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4961  $EGREP "memchr" >/dev/null 2>&1; then
4962  :
4963else
4964  ac_cv_header_stdc=no
4965fi
4966rm -f conftest*
4967
4968fi
4969
4970if test $ac_cv_header_stdc = yes; then
4971  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4972  cat >conftest.$ac_ext <<_ACEOF
4973/* confdefs.h.  */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h.  */
4978#include <stdlib.h>
4979
4980_ACEOF
4981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4982  $EGREP "free" >/dev/null 2>&1; then
4983  :
4984else
4985  ac_cv_header_stdc=no
4986fi
4987rm -f conftest*
4988
4989fi
4990
4991if test $ac_cv_header_stdc = yes; then
4992  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4993  if test "$cross_compiling" = yes; then
4994  :
4995else
4996  cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h.  */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h.  */
5002#include <ctype.h>
5003#if ((' ' & 0x0FF) == 0x020)
5004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5006#else
5007# define ISLOWER(c) \
5008		   (('a' <= (c) && (c) <= 'i') \
5009		     || ('j' <= (c) && (c) <= 'r') \
5010		     || ('s' <= (c) && (c) <= 'z'))
5011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5012#endif
5013
5014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5015int
5016main ()
5017{
5018  int i;
5019  for (i = 0; i < 256; i++)
5020    if (XOR (islower (i), ISLOWER (i))
5021	|| toupper (i) != TOUPPER (i))
5022      exit(2);
5023  exit (0);
5024}
5025_ACEOF
5026rm -f conftest$ac_exeext
5027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5028  (eval $ac_link) 2>&5
5029  ac_status=$?
5030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033  (eval $ac_try) 2>&5
5034  ac_status=$?
5035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036  (exit $ac_status); }; }; then
5037  :
5038else
5039  echo "$as_me: program exited with status $ac_status" >&5
5040echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043( exit $ac_status )
5044ac_cv_header_stdc=no
5045fi
5046rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5047fi
5048fi
5049fi
5050echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5051echo "${ECHO_T}$ac_cv_header_stdc" >&6
5052if test $ac_cv_header_stdc = yes; then
5053
5054cat >>confdefs.h <<\_ACEOF
5055#define STDC_HEADERS 1
5056_ACEOF
5057
5058fi
5059
5060# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5071		  inttypes.h stdint.h unistd.h
5072do
5073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5074echo "$as_me:$LINENO: checking for $ac_header" >&5
5075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5076if eval "test \"\${$as_ac_Header+set}\" = set"; then
5077  echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079  cat >conftest.$ac_ext <<_ACEOF
5080/* confdefs.h.  */
5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h.  */
5085$ac_includes_default
5086
5087#include <$ac_header>
5088_ACEOF
5089rm -f conftest.$ac_objext
5090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091  (eval $ac_compile) 2>conftest.er1
5092  ac_status=$?
5093  grep -v '^ *+' conftest.er1 >conftest.err
5094  rm -f conftest.er1
5095  cat conftest.err >&5
5096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097  (exit $ac_status); } &&
5098	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100  (eval $ac_try) 2>&5
5101  ac_status=$?
5102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103  (exit $ac_status); }; } &&
5104	 { ac_try='test -s conftest.$ac_objext'
5105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106  (eval $ac_try) 2>&5
5107  ac_status=$?
5108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109  (exit $ac_status); }; }; then
5110  eval "$as_ac_Header=yes"
5111else
5112  echo "$as_me: failed program was:" >&5
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
5115eval "$as_ac_Header=no"
5116fi
5117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118fi
5119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5121if test `eval echo '${'$as_ac_Header'}'` = yes; then
5122  cat >>confdefs.h <<_ACEOF
5123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5124_ACEOF
5125
5126fi
5127
5128done
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138for ac_header in fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h
5139do
5140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5141if eval "test \"\${$as_ac_Header+set}\" = set"; then
5142  echo "$as_me:$LINENO: checking for $ac_header" >&5
5143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5144if eval "test \"\${$as_ac_Header+set}\" = set"; then
5145  echo $ECHO_N "(cached) $ECHO_C" >&6
5146fi
5147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5149else
5150  # Is the header compilable?
5151echo "$as_me:$LINENO: checking $ac_header usability" >&5
5152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5153cat >conftest.$ac_ext <<_ACEOF
5154/* confdefs.h.  */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h.  */
5159$ac_includes_default
5160#include <$ac_header>
5161_ACEOF
5162rm -f conftest.$ac_objext
5163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164  (eval $ac_compile) 2>conftest.er1
5165  ac_status=$?
5166  grep -v '^ *+' conftest.er1 >conftest.err
5167  rm -f conftest.er1
5168  cat conftest.err >&5
5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170  (exit $ac_status); } &&
5171	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173  (eval $ac_try) 2>&5
5174  ac_status=$?
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); }; } &&
5177	 { ac_try='test -s conftest.$ac_objext'
5178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179  (eval $ac_try) 2>&5
5180  ac_status=$?
5181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182  (exit $ac_status); }; }; then
5183  ac_header_compiler=yes
5184else
5185  echo "$as_me: failed program was:" >&5
5186sed 's/^/| /' conftest.$ac_ext >&5
5187
5188ac_header_compiler=no
5189fi
5190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5192echo "${ECHO_T}$ac_header_compiler" >&6
5193
5194# Is the header present?
5195echo "$as_me:$LINENO: checking $ac_header presence" >&5
5196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5197cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203#include <$ac_header>
5204_ACEOF
5205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207  ac_status=$?
5208  grep -v '^ *+' conftest.er1 >conftest.err
5209  rm -f conftest.er1
5210  cat conftest.err >&5
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); } >/dev/null; then
5213  if test -s conftest.err; then
5214    ac_cpp_err=$ac_c_preproc_warn_flag
5215    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5216  else
5217    ac_cpp_err=
5218  fi
5219else
5220  ac_cpp_err=yes
5221fi
5222if test -z "$ac_cpp_err"; then
5223  ac_header_preproc=yes
5224else
5225  echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228  ac_header_preproc=no
5229fi
5230rm -f conftest.err conftest.$ac_ext
5231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5232echo "${ECHO_T}$ac_header_preproc" >&6
5233
5234# So?  What about this header?
5235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5236  yes:no: )
5237    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5239    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5241    ac_header_preproc=yes
5242    ;;
5243  no:yes:* )
5244    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5246    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5247echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5248    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5250    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5251echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5252    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5254    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5256    (
5257      cat <<\_ASBOX
5258## ---------------------------------- ##
5259## Report this to zeograd@zeograd.com ##
5260## ---------------------------------- ##
5261_ASBOX
5262    ) |
5263      sed "s/^/$as_me: WARNING:     /" >&2
5264    ;;
5265esac
5266echo "$as_me:$LINENO: checking for $ac_header" >&5
5267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5268if eval "test \"\${$as_ac_Header+set}\" = set"; then
5269  echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271  eval "$as_ac_Header=\$ac_header_preproc"
5272fi
5273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5275
5276fi
5277if test `eval echo '${'$as_ac_Header'}'` = yes; then
5278  cat >>confdefs.h <<_ACEOF
5279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5280_ACEOF
5281
5282fi
5283
5284done
5285
5286
5287# Checks for typedefs, structures, and compiler characteristics.
5288echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5289echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5290if test "${ac_cv_c_const+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h.  */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h.  */
5299
5300int
5301main ()
5302{
5303/* FIXME: Include the comments suggested by Paul. */
5304#ifndef __cplusplus
5305  /* Ultrix mips cc rejects this.  */
5306  typedef int charset[2];
5307  const charset x;
5308  /* SunOS 4.1.1 cc rejects this.  */
5309  char const *const *ccp;
5310  char **p;
5311  /* NEC SVR4.0.2 mips cc rejects this.  */
5312  struct point {int x, y;};
5313  static struct point const zero = {0,0};
5314  /* AIX XL C 1.02.0.0 rejects this.
5315     It does not let you subtract one const X* pointer from another in
5316     an arm of an if-expression whose if-part is not a constant
5317     expression */
5318  const char *g = "string";
5319  ccp = &g + (g ? g-g : 0);
5320  /* HPUX 7.0 cc rejects these. */
5321  ++ccp;
5322  p = (char**) ccp;
5323  ccp = (char const *const *) p;
5324  { /* SCO 3.2v4 cc rejects this.  */
5325    char *t;
5326    char const *s = 0 ? (char *) 0 : (char const *) 0;
5327
5328    *t++ = 0;
5329  }
5330  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5331    int x[] = {25, 17};
5332    const int *foo = &x[0];
5333    ++foo;
5334  }
5335  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5336    typedef const int *iptr;
5337    iptr p = 0;
5338    ++p;
5339  }
5340  { /* AIX XL C 1.02.0.0 rejects this saying
5341       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5342    struct s { int j; const int *ap[3]; };
5343    struct s *b; b->j = 5;
5344  }
5345  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5346    const int foo = 10;
5347  }
5348#endif
5349
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356  (eval $ac_compile) 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } &&
5363	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365  (eval $ac_try) 2>&5
5366  ac_status=$?
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); }; } &&
5369	 { ac_try='test -s conftest.$ac_objext'
5370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371  (eval $ac_try) 2>&5
5372  ac_status=$?
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); }; }; then
5375  ac_cv_c_const=yes
5376else
5377  echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380ac_cv_c_const=no
5381fi
5382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5385echo "${ECHO_T}$ac_cv_c_const" >&6
5386if test $ac_cv_c_const = no; then
5387
5388cat >>confdefs.h <<\_ACEOF
5389#define const
5390_ACEOF
5391
5392fi
5393
5394echo "$as_me:$LINENO: checking for inline" >&5
5395echo $ECHO_N "checking for inline... $ECHO_C" >&6
5396if test "${ac_cv_c_inline+set}" = set; then
5397  echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399  ac_cv_c_inline=no
5400for ac_kw in inline __inline__ __inline; do
5401  cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h.  */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h.  */
5407#ifndef __cplusplus
5408typedef int foo_t;
5409static $ac_kw foo_t static_foo () {return 0; }
5410$ac_kw foo_t foo () {return 0; }
5411#endif
5412
5413_ACEOF
5414rm -f conftest.$ac_objext
5415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5416  (eval $ac_compile) 2>conftest.er1
5417  ac_status=$?
5418  grep -v '^ *+' conftest.er1 >conftest.err
5419  rm -f conftest.er1
5420  cat conftest.err >&5
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); } &&
5423	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425  (eval $ac_try) 2>&5
5426  ac_status=$?
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); }; } &&
5429	 { ac_try='test -s conftest.$ac_objext'
5430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431  (eval $ac_try) 2>&5
5432  ac_status=$?
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); }; }; then
5435  ac_cv_c_inline=$ac_kw; break
5436else
5437  echo "$as_me: failed program was:" >&5
5438sed 's/^/| /' conftest.$ac_ext >&5
5439
5440fi
5441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442done
5443
5444fi
5445echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5446echo "${ECHO_T}$ac_cv_c_inline" >&6
5447
5448
5449case $ac_cv_c_inline in
5450  inline | yes) ;;
5451  *)
5452    case $ac_cv_c_inline in
5453      no) ac_val=;;
5454      *) ac_val=$ac_cv_c_inline;;
5455    esac
5456    cat >>confdefs.h <<_ACEOF
5457#ifndef __cplusplus
5458#define inline $ac_val
5459#endif
5460_ACEOF
5461    ;;
5462esac
5463
5464echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5465echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5466if test "${ac_cv_header_time+set}" = set; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h.  */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h.  */
5475#include <sys/types.h>
5476#include <sys/time.h>
5477#include <time.h>
5478
5479int
5480main ()
5481{
5482if ((struct tm *) 0)
5483return 0;
5484  ;
5485  return 0;
5486}
5487_ACEOF
5488rm -f conftest.$ac_objext
5489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490  (eval $ac_compile) 2>conftest.er1
5491  ac_status=$?
5492  grep -v '^ *+' conftest.er1 >conftest.err
5493  rm -f conftest.er1
5494  cat conftest.err >&5
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); } &&
5497	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }; } &&
5503	 { ac_try='test -s conftest.$ac_objext'
5504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505  (eval $ac_try) 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; }; then
5509  ac_cv_header_time=yes
5510else
5511  echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514ac_cv_header_time=no
5515fi
5516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517fi
5518echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5519echo "${ECHO_T}$ac_cv_header_time" >&6
5520if test $ac_cv_header_time = yes; then
5521
5522cat >>confdefs.h <<\_ACEOF
5523#define TIME_WITH_SYS_TIME 1
5524_ACEOF
5525
5526fi
5527
5528
5529# Checks for library functions.
5530# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5531# for constant arguments.  Useless!
5532echo "$as_me:$LINENO: checking for working alloca.h" >&5
5533echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5534if test "${ac_cv_working_alloca_h+set}" = set; then
5535  echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537  cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h.  */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h.  */
5543#include <alloca.h>
5544int
5545main ()
5546{
5547char *p = (char *) alloca (2 * sizeof (int));
5548  ;
5549  return 0;
5550}
5551_ACEOF
5552rm -f conftest.$ac_objext conftest$ac_exeext
5553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554  (eval $ac_link) 2>conftest.er1
5555  ac_status=$?
5556  grep -v '^ *+' conftest.er1 >conftest.err
5557  rm -f conftest.er1
5558  cat conftest.err >&5
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); } &&
5561	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563  (eval $ac_try) 2>&5
5564  ac_status=$?
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); }; } &&
5567	 { ac_try='test -s conftest$ac_exeext'
5568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569  (eval $ac_try) 2>&5
5570  ac_status=$?
5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572  (exit $ac_status); }; }; then
5573  ac_cv_working_alloca_h=yes
5574else
5575  echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578ac_cv_working_alloca_h=no
5579fi
5580rm -f conftest.err conftest.$ac_objext \
5581      conftest$ac_exeext conftest.$ac_ext
5582fi
5583echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5584echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5585if test $ac_cv_working_alloca_h = yes; then
5586
5587cat >>confdefs.h <<\_ACEOF
5588#define HAVE_ALLOCA_H 1
5589_ACEOF
5590
5591fi
5592
5593echo "$as_me:$LINENO: checking for alloca" >&5
5594echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5595if test "${ac_cv_func_alloca_works+set}" = set; then
5596  echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598  cat >conftest.$ac_ext <<_ACEOF
5599/* confdefs.h.  */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
5603/* end confdefs.h.  */
5604#ifdef __GNUC__
5605# define alloca __builtin_alloca
5606#else
5607# ifdef _MSC_VER
5608#  include <malloc.h>
5609#  define alloca _alloca
5610# else
5611#  if HAVE_ALLOCA_H
5612#   include <alloca.h>
5613#  else
5614#   ifdef _AIX
5615 #pragma alloca
5616#   else
5617#    ifndef alloca /* predefined by HP cc +Olibcalls */
5618char *alloca ();
5619#    endif
5620#   endif
5621#  endif
5622# endif
5623#endif
5624
5625int
5626main ()
5627{
5628char *p = (char *) alloca (1);
5629  ;
5630  return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext conftest$ac_exeext
5634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635  (eval $ac_link) 2>conftest.er1
5636  ac_status=$?
5637  grep -v '^ *+' conftest.er1 >conftest.err
5638  rm -f conftest.er1
5639  cat conftest.err >&5
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); } &&
5642	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644  (eval $ac_try) 2>&5
5645  ac_status=$?
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); }; } &&
5648	 { ac_try='test -s conftest$ac_exeext'
5649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650  (eval $ac_try) 2>&5
5651  ac_status=$?
5652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); }; }; then
5654  ac_cv_func_alloca_works=yes
5655else
5656  echo "$as_me: failed program was:" >&5
5657sed 's/^/| /' conftest.$ac_ext >&5
5658
5659ac_cv_func_alloca_works=no
5660fi
5661rm -f conftest.err conftest.$ac_objext \
5662      conftest$ac_exeext conftest.$ac_ext
5663fi
5664echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5665echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5666
5667if test $ac_cv_func_alloca_works = yes; then
5668
5669cat >>confdefs.h <<\_ACEOF
5670#define HAVE_ALLOCA 1
5671_ACEOF
5672
5673else
5674  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5675# that cause trouble.  Some versions do not even contain alloca or
5676# contain a buggy version.  If you still want to use their alloca,
5677# use ar to extract alloca.o from them instead of compiling alloca.c.
5678
5679ALLOCA=alloca.$ac_objext
5680
5681cat >>confdefs.h <<\_ACEOF
5682#define C_ALLOCA 1
5683_ACEOF
5684
5685
5686echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5687echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5688if test "${ac_cv_os_cray+set}" = set; then
5689  echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691  cat >conftest.$ac_ext <<_ACEOF
5692/* confdefs.h.  */
5693_ACEOF
5694cat confdefs.h >>conftest.$ac_ext
5695cat >>conftest.$ac_ext <<_ACEOF
5696/* end confdefs.h.  */
5697#if defined(CRAY) && ! defined(CRAY2)
5698webecray
5699#else
5700wenotbecray
5701#endif
5702
5703_ACEOF
5704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5705  $EGREP "webecray" >/dev/null 2>&1; then
5706  ac_cv_os_cray=yes
5707else
5708  ac_cv_os_cray=no
5709fi
5710rm -f conftest*
5711
5712fi
5713echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5714echo "${ECHO_T}$ac_cv_os_cray" >&6
5715if test $ac_cv_os_cray = yes; then
5716  for ac_func in _getb67 GETB67 getb67; do
5717    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5718echo "$as_me:$LINENO: checking for $ac_func" >&5
5719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5720if eval "test \"\${$as_ac_var+set}\" = set"; then
5721  echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723  cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h.  */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h.  */
5729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5731#define $ac_func innocuous_$ac_func
5732
5733/* System header to define __stub macros and hopefully few prototypes,
5734    which can conflict with char $ac_func (); below.
5735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736    <limits.h> exists even on freestanding compilers.  */
5737
5738#ifdef __STDC__
5739# include <limits.h>
5740#else
5741# include <assert.h>
5742#endif
5743
5744#undef $ac_func
5745
5746/* Override any gcc2 internal prototype to avoid an error.  */
5747#ifdef __cplusplus
5748extern "C"
5749{
5750#endif
5751/* We use char because int might match the return type of a gcc2
5752   builtin and then its argument prototype would still apply.  */
5753char $ac_func ();
5754/* The GNU C library defines this for functions which it implements
5755    to always fail with ENOSYS.  Some functions are actually named
5756    something starting with __ and the normal name is an alias.  */
5757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758choke me
5759#else
5760char (*f) () = $ac_func;
5761#endif
5762#ifdef __cplusplus
5763}
5764#endif
5765
5766int
5767main ()
5768{
5769return f != $ac_func;
5770  ;
5771  return 0;
5772}
5773_ACEOF
5774rm -f conftest.$ac_objext conftest$ac_exeext
5775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776  (eval $ac_link) 2>conftest.er1
5777  ac_status=$?
5778  grep -v '^ *+' conftest.er1 >conftest.err
5779  rm -f conftest.er1
5780  cat conftest.err >&5
5781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782  (exit $ac_status); } &&
5783	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785  (eval $ac_try) 2>&5
5786  ac_status=$?
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); }; } &&
5789	 { ac_try='test -s conftest$ac_exeext'
5790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791  (eval $ac_try) 2>&5
5792  ac_status=$?
5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794  (exit $ac_status); }; }; then
5795  eval "$as_ac_var=yes"
5796else
5797  echo "$as_me: failed program was:" >&5
5798sed 's/^/| /' conftest.$ac_ext >&5
5799
5800eval "$as_ac_var=no"
5801fi
5802rm -f conftest.err conftest.$ac_objext \
5803      conftest$ac_exeext conftest.$ac_ext
5804fi
5805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5807if test `eval echo '${'$as_ac_var'}'` = yes; then
5808
5809cat >>confdefs.h <<_ACEOF
5810#define CRAY_STACKSEG_END $ac_func
5811_ACEOF
5812
5813    break
5814fi
5815
5816  done
5817fi
5818
5819echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5820echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5821if test "${ac_cv_c_stack_direction+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824  if test "$cross_compiling" = yes; then
5825  ac_cv_c_stack_direction=0
5826else
5827  cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h.  */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h.  */
5833int
5834find_stack_direction ()
5835{
5836  static char *addr = 0;
5837  auto char dummy;
5838  if (addr == 0)
5839    {
5840      addr = &dummy;
5841      return find_stack_direction ();
5842    }
5843  else
5844    return (&dummy > addr) ? 1 : -1;
5845}
5846
5847int
5848main ()
5849{
5850  exit (find_stack_direction () < 0);
5851}
5852_ACEOF
5853rm -f conftest$ac_exeext
5854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855  (eval $ac_link) 2>&5
5856  ac_status=$?
5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860  (eval $ac_try) 2>&5
5861  ac_status=$?
5862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863  (exit $ac_status); }; }; then
5864  ac_cv_c_stack_direction=1
5865else
5866  echo "$as_me: program exited with status $ac_status" >&5
5867echo "$as_me: failed program was:" >&5
5868sed 's/^/| /' conftest.$ac_ext >&5
5869
5870( exit $ac_status )
5871ac_cv_c_stack_direction=-1
5872fi
5873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5874fi
5875fi
5876echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5877echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5878
5879cat >>confdefs.h <<_ACEOF
5880#define STACK_DIRECTION $ac_cv_c_stack_direction
5881_ACEOF
5882
5883
5884fi
5885
5886if test $ac_cv_c_compiler_gnu = yes; then
5887    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5888echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5889if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5890  echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892    ac_pattern="Autoconf.*'x'"
5893  cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h.  */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
5898/* end confdefs.h.  */
5899#include <sgtty.h>
5900Autoconf TIOCGETP
5901_ACEOF
5902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5903  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5904  ac_cv_prog_gcc_traditional=yes
5905else
5906  ac_cv_prog_gcc_traditional=no
5907fi
5908rm -f conftest*
5909
5910
5911  if test $ac_cv_prog_gcc_traditional = no; then
5912    cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h.  */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h.  */
5918#include <termio.h>
5919Autoconf TCGETA
5920_ACEOF
5921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5922  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5923  ac_cv_prog_gcc_traditional=yes
5924fi
5925rm -f conftest*
5926
5927  fi
5928fi
5929echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5930echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5931  if test $ac_cv_prog_gcc_traditional = yes; then
5932    CC="$CC -traditional"
5933  fi
5934fi
5935
5936# AC_FUNC_MALLOC
5937
5938for ac_func in vprintf
5939do
5940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5941echo "$as_me:$LINENO: checking for $ac_func" >&5
5942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5943if eval "test \"\${$as_ac_var+set}\" = set"; then
5944  echo $ECHO_N "(cached) $ECHO_C" >&6
5945else
5946  cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h.  */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h.  */
5952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5953   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5954#define $ac_func innocuous_$ac_func
5955
5956/* System header to define __stub macros and hopefully few prototypes,
5957    which can conflict with char $ac_func (); below.
5958    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5959    <limits.h> exists even on freestanding compilers.  */
5960
5961#ifdef __STDC__
5962# include <limits.h>
5963#else
5964# include <assert.h>
5965#endif
5966
5967#undef $ac_func
5968
5969/* Override any gcc2 internal prototype to avoid an error.  */
5970#ifdef __cplusplus
5971extern "C"
5972{
5973#endif
5974/* We use char because int might match the return type of a gcc2
5975   builtin and then its argument prototype would still apply.  */
5976char $ac_func ();
5977/* The GNU C library defines this for functions which it implements
5978    to always fail with ENOSYS.  Some functions are actually named
5979    something starting with __ and the normal name is an alias.  */
5980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5981choke me
5982#else
5983char (*f) () = $ac_func;
5984#endif
5985#ifdef __cplusplus
5986}
5987#endif
5988
5989int
5990main ()
5991{
5992return f != $ac_func;
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext conftest$ac_exeext
5998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999  (eval $ac_link) 2>conftest.er1
6000  ac_status=$?
6001  grep -v '^ *+' conftest.er1 >conftest.err
6002  rm -f conftest.er1
6003  cat conftest.err >&5
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); } &&
6006	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008  (eval $ac_try) 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.err conftest.$ac_objext \
6026      conftest$ac_exeext conftest.$ac_ext
6027fi
6028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6030if test `eval echo '${'$as_ac_var'}'` = yes; then
6031  cat >>confdefs.h <<_ACEOF
6032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6033_ACEOF
6034
6035echo "$as_me:$LINENO: checking for _doprnt" >&5
6036echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6037if test "${ac_cv_func__doprnt+set}" = set; then
6038  echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040  cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h.  */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h.  */
6046/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6047   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6048#define _doprnt innocuous__doprnt
6049
6050/* System header to define __stub macros and hopefully few prototypes,
6051    which can conflict with char _doprnt (); below.
6052    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6053    <limits.h> exists even on freestanding compilers.  */
6054
6055#ifdef __STDC__
6056# include <limits.h>
6057#else
6058# include <assert.h>
6059#endif
6060
6061#undef _doprnt
6062
6063/* Override any gcc2 internal prototype to avoid an error.  */
6064#ifdef __cplusplus
6065extern "C"
6066{
6067#endif
6068/* We use char because int might match the return type of a gcc2
6069   builtin and then its argument prototype would still apply.  */
6070char _doprnt ();
6071/* The GNU C library defines this for functions which it implements
6072    to always fail with ENOSYS.  Some functions are actually named
6073    something starting with __ and the normal name is an alias.  */
6074#if defined (__stub__doprnt) || defined (__stub____doprnt)
6075choke me
6076#else
6077char (*f) () = _doprnt;
6078#endif
6079#ifdef __cplusplus
6080}
6081#endif
6082
6083int
6084main ()
6085{
6086return f != _doprnt;
6087  ;
6088  return 0;
6089}
6090_ACEOF
6091rm -f conftest.$ac_objext conftest$ac_exeext
6092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093  (eval $ac_link) 2>conftest.er1
6094  ac_status=$?
6095  grep -v '^ *+' conftest.er1 >conftest.err
6096  rm -f conftest.er1
6097  cat conftest.err >&5
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); } &&
6100	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102  (eval $ac_try) 2>&5
6103  ac_status=$?
6104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105  (exit $ac_status); }; } &&
6106	 { ac_try='test -s conftest$ac_exeext'
6107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108  (eval $ac_try) 2>&5
6109  ac_status=$?
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); }; }; then
6112  ac_cv_func__doprnt=yes
6113else
6114  echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117ac_cv_func__doprnt=no
6118fi
6119rm -f conftest.err conftest.$ac_objext \
6120      conftest$ac_exeext conftest.$ac_ext
6121fi
6122echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6123echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6124if test $ac_cv_func__doprnt = yes; then
6125
6126cat >>confdefs.h <<\_ACEOF
6127#define HAVE_DOPRNT 1
6128_ACEOF
6129
6130fi
6131
6132fi
6133done
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147for ac_func in atexit bzero dup2 gettimeofday memset mkdir select strchr strdup strrchr strstr
6148do
6149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6150echo "$as_me:$LINENO: checking for $ac_func" >&5
6151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6152if eval "test \"\${$as_ac_var+set}\" = set"; then
6153  echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155  cat >conftest.$ac_ext <<_ACEOF
6156/* confdefs.h.  */
6157_ACEOF
6158cat confdefs.h >>conftest.$ac_ext
6159cat >>conftest.$ac_ext <<_ACEOF
6160/* end confdefs.h.  */
6161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6162   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6163#define $ac_func innocuous_$ac_func
6164
6165/* System header to define __stub macros and hopefully few prototypes,
6166    which can conflict with char $ac_func (); below.
6167    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6168    <limits.h> exists even on freestanding compilers.  */
6169
6170#ifdef __STDC__
6171# include <limits.h>
6172#else
6173# include <assert.h>
6174#endif
6175
6176#undef $ac_func
6177
6178/* Override any gcc2 internal prototype to avoid an error.  */
6179#ifdef __cplusplus
6180extern "C"
6181{
6182#endif
6183/* We use char because int might match the return type of a gcc2
6184   builtin and then its argument prototype would still apply.  */
6185char $ac_func ();
6186/* The GNU C library defines this for functions which it implements
6187    to always fail with ENOSYS.  Some functions are actually named
6188    something starting with __ and the normal name is an alias.  */
6189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6190choke me
6191#else
6192char (*f) () = $ac_func;
6193#endif
6194#ifdef __cplusplus
6195}
6196#endif
6197
6198int
6199main ()
6200{
6201return f != $ac_func;
6202  ;
6203  return 0;
6204}
6205_ACEOF
6206rm -f conftest.$ac_objext conftest$ac_exeext
6207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6208  (eval $ac_link) 2>conftest.er1
6209  ac_status=$?
6210  grep -v '^ *+' conftest.er1 >conftest.err
6211  rm -f conftest.er1
6212  cat conftest.err >&5
6213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214  (exit $ac_status); } &&
6215	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217  (eval $ac_try) 2>&5
6218  ac_status=$?
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); }; } &&
6221	 { ac_try='test -s conftest$ac_exeext'
6222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223  (eval $ac_try) 2>&5
6224  ac_status=$?
6225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226  (exit $ac_status); }; }; then
6227  eval "$as_ac_var=yes"
6228else
6229  echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232eval "$as_ac_var=no"
6233fi
6234rm -f conftest.err conftest.$ac_objext \
6235      conftest$ac_exeext conftest.$ac_ext
6236fi
6237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6239if test `eval echo '${'$as_ac_var'}'` = yes; then
6240  cat >>confdefs.h <<_ACEOF
6241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6242_ACEOF
6243
6244fi
6245done
6246
6247
6248# Check for size of types
6249
6250echo "$as_me:$LINENO: checking for char" >&5
6251echo $ECHO_N "checking for char... $ECHO_C" >&6
6252if test "${ac_cv_type_char+set}" = set; then
6253  echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255  cat >conftest.$ac_ext <<_ACEOF
6256/* confdefs.h.  */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h.  */
6261$ac_includes_default
6262int
6263main ()
6264{
6265if ((char *) 0)
6266  return 0;
6267if (sizeof (char))
6268  return 0;
6269  ;
6270  return 0;
6271}
6272_ACEOF
6273rm -f conftest.$ac_objext
6274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275  (eval $ac_compile) 2>conftest.er1
6276  ac_status=$?
6277  grep -v '^ *+' conftest.er1 >conftest.err
6278  rm -f conftest.er1
6279  cat conftest.err >&5
6280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281  (exit $ac_status); } &&
6282	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284  (eval $ac_try) 2>&5
6285  ac_status=$?
6286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287  (exit $ac_status); }; } &&
6288	 { ac_try='test -s conftest.$ac_objext'
6289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290  (eval $ac_try) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); }; }; then
6294  ac_cv_type_char=yes
6295else
6296  echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299ac_cv_type_char=no
6300fi
6301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6302fi
6303echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6304echo "${ECHO_T}$ac_cv_type_char" >&6
6305
6306echo "$as_me:$LINENO: checking size of char" >&5
6307echo $ECHO_N "checking size of char... $ECHO_C" >&6
6308if test "${ac_cv_sizeof_char+set}" = set; then
6309  echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311  if test "$ac_cv_type_char" = yes; then
6312  # The cast to unsigned long works around a bug in the HP C Compiler
6313  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6314  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6315  # This bug is HP SR number 8606223364.
6316  if test "$cross_compiling" = yes; then
6317  # Depending upon the size, compute the lo and hi bounds.
6318cat >conftest.$ac_ext <<_ACEOF
6319/* confdefs.h.  */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h.  */
6324$ac_includes_default
6325int
6326main ()
6327{
6328static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6329test_array [0] = 0
6330
6331  ;
6332  return 0;
6333}
6334_ACEOF
6335rm -f conftest.$ac_objext
6336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337  (eval $ac_compile) 2>conftest.er1
6338  ac_status=$?
6339  grep -v '^ *+' conftest.er1 >conftest.err
6340  rm -f conftest.er1
6341  cat conftest.err >&5
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } &&
6344	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346  (eval $ac_try) 2>&5
6347  ac_status=$?
6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349  (exit $ac_status); }; } &&
6350	 { ac_try='test -s conftest.$ac_objext'
6351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352  (eval $ac_try) 2>&5
6353  ac_status=$?
6354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355  (exit $ac_status); }; }; then
6356  ac_lo=0 ac_mid=0
6357  while :; do
6358    cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h.  */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h.  */
6364$ac_includes_default
6365int
6366main ()
6367{
6368static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6369test_array [0] = 0
6370
6371  ;
6372  return 0;
6373}
6374_ACEOF
6375rm -f conftest.$ac_objext
6376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377  (eval $ac_compile) 2>conftest.er1
6378  ac_status=$?
6379  grep -v '^ *+' conftest.er1 >conftest.err
6380  rm -f conftest.er1
6381  cat conftest.err >&5
6382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383  (exit $ac_status); } &&
6384	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386  (eval $ac_try) 2>&5
6387  ac_status=$?
6388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389  (exit $ac_status); }; } &&
6390	 { ac_try='test -s conftest.$ac_objext'
6391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392  (eval $ac_try) 2>&5
6393  ac_status=$?
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); }; }; then
6396  ac_hi=$ac_mid; break
6397else
6398  echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401ac_lo=`expr $ac_mid + 1`
6402		    if test $ac_lo -le $ac_mid; then
6403		      ac_lo= ac_hi=
6404		      break
6405		    fi
6406		    ac_mid=`expr 2 '*' $ac_mid + 1`
6407fi
6408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6409  done
6410else
6411  echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414cat >conftest.$ac_ext <<_ACEOF
6415/* confdefs.h.  */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h.  */
6420$ac_includes_default
6421int
6422main ()
6423{
6424static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6425test_array [0] = 0
6426
6427  ;
6428  return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext
6432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433  (eval $ac_compile) 2>conftest.er1
6434  ac_status=$?
6435  grep -v '^ *+' conftest.er1 >conftest.err
6436  rm -f conftest.er1
6437  cat conftest.err >&5
6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439  (exit $ac_status); } &&
6440	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442  (eval $ac_try) 2>&5
6443  ac_status=$?
6444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445  (exit $ac_status); }; } &&
6446	 { ac_try='test -s conftest.$ac_objext'
6447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448  (eval $ac_try) 2>&5
6449  ac_status=$?
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); }; }; then
6452  ac_hi=-1 ac_mid=-1
6453  while :; do
6454    cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h.  */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h.  */
6460$ac_includes_default
6461int
6462main ()
6463{
6464static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6465test_array [0] = 0
6466
6467  ;
6468  return 0;
6469}
6470_ACEOF
6471rm -f conftest.$ac_objext
6472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473  (eval $ac_compile) 2>conftest.er1
6474  ac_status=$?
6475  grep -v '^ *+' conftest.er1 >conftest.err
6476  rm -f conftest.er1
6477  cat conftest.err >&5
6478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479  (exit $ac_status); } &&
6480	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482  (eval $ac_try) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; } &&
6486	 { ac_try='test -s conftest.$ac_objext'
6487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488  (eval $ac_try) 2>&5
6489  ac_status=$?
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; }; then
6492  ac_lo=$ac_mid; break
6493else
6494  echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497ac_hi=`expr '(' $ac_mid ')' - 1`
6498		       if test $ac_mid -le $ac_hi; then
6499			 ac_lo= ac_hi=
6500			 break
6501		       fi
6502		       ac_mid=`expr 2 '*' $ac_mid`
6503fi
6504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6505  done
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510ac_lo= ac_hi=
6511fi
6512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513fi
6514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515# Binary search between lo and hi bounds.
6516while test "x$ac_lo" != "x$ac_hi"; do
6517  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6518  cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h.  */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h.  */
6524$ac_includes_default
6525int
6526main ()
6527{
6528static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6529test_array [0] = 0
6530
6531  ;
6532  return 0;
6533}
6534_ACEOF
6535rm -f conftest.$ac_objext
6536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537  (eval $ac_compile) 2>conftest.er1
6538  ac_status=$?
6539  grep -v '^ *+' conftest.er1 >conftest.err
6540  rm -f conftest.er1
6541  cat conftest.err >&5
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); } &&
6544	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546  (eval $ac_try) 2>&5
6547  ac_status=$?
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); }; } &&
6550	 { ac_try='test -s conftest.$ac_objext'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; }; then
6556  ac_hi=$ac_mid
6557else
6558  echo "$as_me: failed program was:" >&5
6559sed 's/^/| /' conftest.$ac_ext >&5
6560
6561ac_lo=`expr '(' $ac_mid ')' + 1`
6562fi
6563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6564done
6565case $ac_lo in
6566?*) ac_cv_sizeof_char=$ac_lo;;
6567'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6568See \`config.log' for more details." >&5
6569echo "$as_me: error: cannot compute sizeof (char), 77
6570See \`config.log' for more details." >&2;}
6571   { (exit 1); exit 1; }; } ;;
6572esac
6573else
6574  if test "$cross_compiling" = yes; then
6575  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6576echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6577   { (exit 1); exit 1; }; }
6578else
6579  cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h.  */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h.  */
6585$ac_includes_default
6586long longval () { return (long) (sizeof (char)); }
6587unsigned long ulongval () { return (long) (sizeof (char)); }
6588#include <stdio.h>
6589#include <stdlib.h>
6590int
6591main ()
6592{
6593
6594  FILE *f = fopen ("conftest.val", "w");
6595  if (! f)
6596    exit (1);
6597  if (((long) (sizeof (char))) < 0)
6598    {
6599      long i = longval ();
6600      if (i != ((long) (sizeof (char))))
6601	exit (1);
6602      fprintf (f, "%ld\n", i);
6603    }
6604  else
6605    {
6606      unsigned long i = ulongval ();
6607      if (i != ((long) (sizeof (char))))
6608	exit (1);
6609      fprintf (f, "%lu\n", i);
6610    }
6611  exit (ferror (f) || fclose (f) != 0);
6612
6613  ;
6614  return 0;
6615}
6616_ACEOF
6617rm -f conftest$ac_exeext
6618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619  (eval $ac_link) 2>&5
6620  ac_status=$?
6621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624  (eval $ac_try) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }; }; then
6628  ac_cv_sizeof_char=`cat conftest.val`
6629else
6630  echo "$as_me: program exited with status $ac_status" >&5
6631echo "$as_me: failed program was:" >&5
6632sed 's/^/| /' conftest.$ac_ext >&5
6633
6634( exit $ac_status )
6635{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6636See \`config.log' for more details." >&5
6637echo "$as_me: error: cannot compute sizeof (char), 77
6638See \`config.log' for more details." >&2;}
6639   { (exit 1); exit 1; }; }
6640fi
6641rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6642fi
6643fi
6644rm -f conftest.val
6645else
6646  ac_cv_sizeof_char=0
6647fi
6648fi
6649echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6650echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6651cat >>confdefs.h <<_ACEOF
6652#define SIZEOF_CHAR $ac_cv_sizeof_char
6653_ACEOF
6654
6655
6656echo "$as_me:$LINENO: checking for short int" >&5
6657echo $ECHO_N "checking for short int... $ECHO_C" >&6
6658if test "${ac_cv_type_short_int+set}" = set; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661  cat >conftest.$ac_ext <<_ACEOF
6662/* confdefs.h.  */
6663_ACEOF
6664cat confdefs.h >>conftest.$ac_ext
6665cat >>conftest.$ac_ext <<_ACEOF
6666/* end confdefs.h.  */
6667$ac_includes_default
6668int
6669main ()
6670{
6671if ((short int *) 0)
6672  return 0;
6673if (sizeof (short int))
6674  return 0;
6675  ;
6676  return 0;
6677}
6678_ACEOF
6679rm -f conftest.$ac_objext
6680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681  (eval $ac_compile) 2>conftest.er1
6682  ac_status=$?
6683  grep -v '^ *+' conftest.er1 >conftest.err
6684  rm -f conftest.er1
6685  cat conftest.err >&5
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); } &&
6688	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690  (eval $ac_try) 2>&5
6691  ac_status=$?
6692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693  (exit $ac_status); }; } &&
6694	 { ac_try='test -s conftest.$ac_objext'
6695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696  (eval $ac_try) 2>&5
6697  ac_status=$?
6698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); }; }; then
6700  ac_cv_type_short_int=yes
6701else
6702  echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705ac_cv_type_short_int=no
6706fi
6707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6708fi
6709echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
6710echo "${ECHO_T}$ac_cv_type_short_int" >&6
6711
6712echo "$as_me:$LINENO: checking size of short int" >&5
6713echo $ECHO_N "checking size of short int... $ECHO_C" >&6
6714if test "${ac_cv_sizeof_short_int+set}" = set; then
6715  echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717  if test "$ac_cv_type_short_int" = yes; then
6718  # The cast to unsigned long works around a bug in the HP C Compiler
6719  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6720  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6721  # This bug is HP SR number 8606223364.
6722  if test "$cross_compiling" = yes; then
6723  # Depending upon the size, compute the lo and hi bounds.
6724cat >conftest.$ac_ext <<_ACEOF
6725/* confdefs.h.  */
6726_ACEOF
6727cat confdefs.h >>conftest.$ac_ext
6728cat >>conftest.$ac_ext <<_ACEOF
6729/* end confdefs.h.  */
6730$ac_includes_default
6731int
6732main ()
6733{
6734static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
6735test_array [0] = 0
6736
6737  ;
6738  return 0;
6739}
6740_ACEOF
6741rm -f conftest.$ac_objext
6742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743  (eval $ac_compile) 2>conftest.er1
6744  ac_status=$?
6745  grep -v '^ *+' conftest.er1 >conftest.err
6746  rm -f conftest.er1
6747  cat conftest.err >&5
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); } &&
6750	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752  (eval $ac_try) 2>&5
6753  ac_status=$?
6754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755  (exit $ac_status); }; } &&
6756	 { ac_try='test -s conftest.$ac_objext'
6757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758  (eval $ac_try) 2>&5
6759  ac_status=$?
6760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761  (exit $ac_status); }; }; then
6762  ac_lo=0 ac_mid=0
6763  while :; do
6764    cat >conftest.$ac_ext <<_ACEOF
6765/* confdefs.h.  */
6766_ACEOF
6767cat confdefs.h >>conftest.$ac_ext
6768cat >>conftest.$ac_ext <<_ACEOF
6769/* end confdefs.h.  */
6770$ac_includes_default
6771int
6772main ()
6773{
6774static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
6775test_array [0] = 0
6776
6777  ;
6778  return 0;
6779}
6780_ACEOF
6781rm -f conftest.$ac_objext
6782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783  (eval $ac_compile) 2>conftest.er1
6784  ac_status=$?
6785  grep -v '^ *+' conftest.er1 >conftest.err
6786  rm -f conftest.er1
6787  cat conftest.err >&5
6788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789  (exit $ac_status); } &&
6790	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792  (eval $ac_try) 2>&5
6793  ac_status=$?
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); }; } &&
6796	 { ac_try='test -s conftest.$ac_objext'
6797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798  (eval $ac_try) 2>&5
6799  ac_status=$?
6800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801  (exit $ac_status); }; }; then
6802  ac_hi=$ac_mid; break
6803else
6804  echo "$as_me: failed program was:" >&5
6805sed 's/^/| /' conftest.$ac_ext >&5
6806
6807ac_lo=`expr $ac_mid + 1`
6808		    if test $ac_lo -le $ac_mid; then
6809		      ac_lo= ac_hi=
6810		      break
6811		    fi
6812		    ac_mid=`expr 2 '*' $ac_mid + 1`
6813fi
6814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6815  done
6816else
6817  echo "$as_me: failed program was:" >&5
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
6820cat >conftest.$ac_ext <<_ACEOF
6821/* confdefs.h.  */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h.  */
6826$ac_includes_default
6827int
6828main ()
6829{
6830static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
6831test_array [0] = 0
6832
6833  ;
6834  return 0;
6835}
6836_ACEOF
6837rm -f conftest.$ac_objext
6838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839  (eval $ac_compile) 2>conftest.er1
6840  ac_status=$?
6841  grep -v '^ *+' conftest.er1 >conftest.err
6842  rm -f conftest.er1
6843  cat conftest.err >&5
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); } &&
6846	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848  (eval $ac_try) 2>&5
6849  ac_status=$?
6850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851  (exit $ac_status); }; } &&
6852	 { ac_try='test -s conftest.$ac_objext'
6853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854  (eval $ac_try) 2>&5
6855  ac_status=$?
6856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857  (exit $ac_status); }; }; then
6858  ac_hi=-1 ac_mid=-1
6859  while :; do
6860    cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h.  */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h.  */
6866$ac_includes_default
6867int
6868main ()
6869{
6870static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
6871test_array [0] = 0
6872
6873  ;
6874  return 0;
6875}
6876_ACEOF
6877rm -f conftest.$ac_objext
6878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879  (eval $ac_compile) 2>conftest.er1
6880  ac_status=$?
6881  grep -v '^ *+' conftest.er1 >conftest.err
6882  rm -f conftest.er1
6883  cat conftest.err >&5
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); } &&
6886	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888  (eval $ac_try) 2>&5
6889  ac_status=$?
6890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891  (exit $ac_status); }; } &&
6892	 { ac_try='test -s conftest.$ac_objext'
6893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894  (eval $ac_try) 2>&5
6895  ac_status=$?
6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); }; }; then
6898  ac_lo=$ac_mid; break
6899else
6900  echo "$as_me: failed program was:" >&5
6901sed 's/^/| /' conftest.$ac_ext >&5
6902
6903ac_hi=`expr '(' $ac_mid ')' - 1`
6904		       if test $ac_mid -le $ac_hi; then
6905			 ac_lo= ac_hi=
6906			 break
6907		       fi
6908		       ac_mid=`expr 2 '*' $ac_mid`
6909fi
6910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6911  done
6912else
6913  echo "$as_me: failed program was:" >&5
6914sed 's/^/| /' conftest.$ac_ext >&5
6915
6916ac_lo= ac_hi=
6917fi
6918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919fi
6920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921# Binary search between lo and hi bounds.
6922while test "x$ac_lo" != "x$ac_hi"; do
6923  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6924  cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h.  */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h.  */
6930$ac_includes_default
6931int
6932main ()
6933{
6934static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
6935test_array [0] = 0
6936
6937  ;
6938  return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext
6942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943  (eval $ac_compile) 2>conftest.er1
6944  ac_status=$?
6945  grep -v '^ *+' conftest.er1 >conftest.err
6946  rm -f conftest.er1
6947  cat conftest.err >&5
6948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949  (exit $ac_status); } &&
6950	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952  (eval $ac_try) 2>&5
6953  ac_status=$?
6954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955  (exit $ac_status); }; } &&
6956	 { ac_try='test -s conftest.$ac_objext'
6957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958  (eval $ac_try) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); }; }; then
6962  ac_hi=$ac_mid
6963else
6964  echo "$as_me: failed program was:" >&5
6965sed 's/^/| /' conftest.$ac_ext >&5
6966
6967ac_lo=`expr '(' $ac_mid ')' + 1`
6968fi
6969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970done
6971case $ac_lo in
6972?*) ac_cv_sizeof_short_int=$ac_lo;;
6973'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
6974See \`config.log' for more details." >&5
6975echo "$as_me: error: cannot compute sizeof (short int), 77
6976See \`config.log' for more details." >&2;}
6977   { (exit 1); exit 1; }; } ;;
6978esac
6979else
6980  if test "$cross_compiling" = yes; then
6981  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6982echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6983   { (exit 1); exit 1; }; }
6984else
6985  cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h.  */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h.  */
6991$ac_includes_default
6992long longval () { return (long) (sizeof (short int)); }
6993unsigned long ulongval () { return (long) (sizeof (short int)); }
6994#include <stdio.h>
6995#include <stdlib.h>
6996int
6997main ()
6998{
6999
7000  FILE *f = fopen ("conftest.val", "w");
7001  if (! f)
7002    exit (1);
7003  if (((long) (sizeof (short int))) < 0)
7004    {
7005      long i = longval ();
7006      if (i != ((long) (sizeof (short int))))
7007	exit (1);
7008      fprintf (f, "%ld\n", i);
7009    }
7010  else
7011    {
7012      unsigned long i = ulongval ();
7013      if (i != ((long) (sizeof (short int))))
7014	exit (1);
7015      fprintf (f, "%lu\n", i);
7016    }
7017  exit (ferror (f) || fclose (f) != 0);
7018
7019  ;
7020  return 0;
7021}
7022_ACEOF
7023rm -f conftest$ac_exeext
7024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025  (eval $ac_link) 2>&5
7026  ac_status=$?
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030  (eval $ac_try) 2>&5
7031  ac_status=$?
7032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033  (exit $ac_status); }; }; then
7034  ac_cv_sizeof_short_int=`cat conftest.val`
7035else
7036  echo "$as_me: program exited with status $ac_status" >&5
7037echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040( exit $ac_status )
7041{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
7042See \`config.log' for more details." >&5
7043echo "$as_me: error: cannot compute sizeof (short int), 77
7044See \`config.log' for more details." >&2;}
7045   { (exit 1); exit 1; }; }
7046fi
7047rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7048fi
7049fi
7050rm -f conftest.val
7051else
7052  ac_cv_sizeof_short_int=0
7053fi
7054fi
7055echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
7056echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
7057cat >>confdefs.h <<_ACEOF
7058#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
7059_ACEOF
7060
7061
7062echo "$as_me:$LINENO: checking for int" >&5
7063echo $ECHO_N "checking for int... $ECHO_C" >&6
7064if test "${ac_cv_type_int+set}" = set; then
7065  echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067  cat >conftest.$ac_ext <<_ACEOF
7068/* confdefs.h.  */
7069_ACEOF
7070cat confdefs.h >>conftest.$ac_ext
7071cat >>conftest.$ac_ext <<_ACEOF
7072/* end confdefs.h.  */
7073$ac_includes_default
7074int
7075main ()
7076{
7077if ((int *) 0)
7078  return 0;
7079if (sizeof (int))
7080  return 0;
7081  ;
7082  return 0;
7083}
7084_ACEOF
7085rm -f conftest.$ac_objext
7086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087  (eval $ac_compile) 2>conftest.er1
7088  ac_status=$?
7089  grep -v '^ *+' conftest.er1 >conftest.err
7090  rm -f conftest.er1
7091  cat conftest.err >&5
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); } &&
7094	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096  (eval $ac_try) 2>&5
7097  ac_status=$?
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); }; } &&
7100	 { ac_try='test -s conftest.$ac_objext'
7101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102  (eval $ac_try) 2>&5
7103  ac_status=$?
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); }; }; then
7106  ac_cv_type_int=yes
7107else
7108  echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
7111ac_cv_type_int=no
7112fi
7113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114fi
7115echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7116echo "${ECHO_T}$ac_cv_type_int" >&6
7117
7118echo "$as_me:$LINENO: checking size of int" >&5
7119echo $ECHO_N "checking size of int... $ECHO_C" >&6
7120if test "${ac_cv_sizeof_int+set}" = set; then
7121  echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123  if test "$ac_cv_type_int" = yes; then
7124  # The cast to unsigned long works around a bug in the HP C Compiler
7125  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7126  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7127  # This bug is HP SR number 8606223364.
7128  if test "$cross_compiling" = yes; then
7129  # Depending upon the size, compute the lo and hi bounds.
7130cat >conftest.$ac_ext <<_ACEOF
7131/* confdefs.h.  */
7132_ACEOF
7133cat confdefs.h >>conftest.$ac_ext
7134cat >>conftest.$ac_ext <<_ACEOF
7135/* end confdefs.h.  */
7136$ac_includes_default
7137int
7138main ()
7139{
7140static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7141test_array [0] = 0
7142
7143  ;
7144  return 0;
7145}
7146_ACEOF
7147rm -f conftest.$ac_objext
7148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149  (eval $ac_compile) 2>conftest.er1
7150  ac_status=$?
7151  grep -v '^ *+' conftest.er1 >conftest.err
7152  rm -f conftest.er1
7153  cat conftest.err >&5
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); } &&
7156	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158  (eval $ac_try) 2>&5
7159  ac_status=$?
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); }; } &&
7162	 { ac_try='test -s conftest.$ac_objext'
7163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164  (eval $ac_try) 2>&5
7165  ac_status=$?
7166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167  (exit $ac_status); }; }; then
7168  ac_lo=0 ac_mid=0
7169  while :; do
7170    cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h.  */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h.  */
7176$ac_includes_default
7177int
7178main ()
7179{
7180static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7181test_array [0] = 0
7182
7183  ;
7184  return 0;
7185}
7186_ACEOF
7187rm -f conftest.$ac_objext
7188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7189  (eval $ac_compile) 2>conftest.er1
7190  ac_status=$?
7191  grep -v '^ *+' conftest.er1 >conftest.err
7192  rm -f conftest.er1
7193  cat conftest.err >&5
7194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195  (exit $ac_status); } &&
7196	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198  (eval $ac_try) 2>&5
7199  ac_status=$?
7200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201  (exit $ac_status); }; } &&
7202	 { ac_try='test -s conftest.$ac_objext'
7203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204  (eval $ac_try) 2>&5
7205  ac_status=$?
7206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207  (exit $ac_status); }; }; then
7208  ac_hi=$ac_mid; break
7209else
7210  echo "$as_me: failed program was:" >&5
7211sed 's/^/| /' conftest.$ac_ext >&5
7212
7213ac_lo=`expr $ac_mid + 1`
7214		    if test $ac_lo -le $ac_mid; then
7215		      ac_lo= ac_hi=
7216		      break
7217		    fi
7218		    ac_mid=`expr 2 '*' $ac_mid + 1`
7219fi
7220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7221  done
7222else
7223  echo "$as_me: failed program was:" >&5
7224sed 's/^/| /' conftest.$ac_ext >&5
7225
7226cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h.  */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h.  */
7232$ac_includes_default
7233int
7234main ()
7235{
7236static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7237test_array [0] = 0
7238
7239  ;
7240  return 0;
7241}
7242_ACEOF
7243rm -f conftest.$ac_objext
7244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7245  (eval $ac_compile) 2>conftest.er1
7246  ac_status=$?
7247  grep -v '^ *+' conftest.er1 >conftest.err
7248  rm -f conftest.er1
7249  cat conftest.err >&5
7250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251  (exit $ac_status); } &&
7252	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254  (eval $ac_try) 2>&5
7255  ac_status=$?
7256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257  (exit $ac_status); }; } &&
7258	 { ac_try='test -s conftest.$ac_objext'
7259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260  (eval $ac_try) 2>&5
7261  ac_status=$?
7262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263  (exit $ac_status); }; }; then
7264  ac_hi=-1 ac_mid=-1
7265  while :; do
7266    cat >conftest.$ac_ext <<_ACEOF
7267/* confdefs.h.  */
7268_ACEOF
7269cat confdefs.h >>conftest.$ac_ext
7270cat >>conftest.$ac_ext <<_ACEOF
7271/* end confdefs.h.  */
7272$ac_includes_default
7273int
7274main ()
7275{
7276static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7277test_array [0] = 0
7278
7279  ;
7280  return 0;
7281}
7282_ACEOF
7283rm -f conftest.$ac_objext
7284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285  (eval $ac_compile) 2>conftest.er1
7286  ac_status=$?
7287  grep -v '^ *+' conftest.er1 >conftest.err
7288  rm -f conftest.er1
7289  cat conftest.err >&5
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); } &&
7292	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294  (eval $ac_try) 2>&5
7295  ac_status=$?
7296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297  (exit $ac_status); }; } &&
7298	 { ac_try='test -s conftest.$ac_objext'
7299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300  (eval $ac_try) 2>&5
7301  ac_status=$?
7302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303  (exit $ac_status); }; }; then
7304  ac_lo=$ac_mid; break
7305else
7306  echo "$as_me: failed program was:" >&5
7307sed 's/^/| /' conftest.$ac_ext >&5
7308
7309ac_hi=`expr '(' $ac_mid ')' - 1`
7310		       if test $ac_mid -le $ac_hi; then
7311			 ac_lo= ac_hi=
7312			 break
7313		       fi
7314		       ac_mid=`expr 2 '*' $ac_mid`
7315fi
7316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7317  done
7318else
7319  echo "$as_me: failed program was:" >&5
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
7322ac_lo= ac_hi=
7323fi
7324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7325fi
7326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327# Binary search between lo and hi bounds.
7328while test "x$ac_lo" != "x$ac_hi"; do
7329  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7330  cat >conftest.$ac_ext <<_ACEOF
7331/* confdefs.h.  */
7332_ACEOF
7333cat confdefs.h >>conftest.$ac_ext
7334cat >>conftest.$ac_ext <<_ACEOF
7335/* end confdefs.h.  */
7336$ac_includes_default
7337int
7338main ()
7339{
7340static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7341test_array [0] = 0
7342
7343  ;
7344  return 0;
7345}
7346_ACEOF
7347rm -f conftest.$ac_objext
7348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7349  (eval $ac_compile) 2>conftest.er1
7350  ac_status=$?
7351  grep -v '^ *+' conftest.er1 >conftest.err
7352  rm -f conftest.er1
7353  cat conftest.err >&5
7354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355  (exit $ac_status); } &&
7356	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358  (eval $ac_try) 2>&5
7359  ac_status=$?
7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); }; } &&
7362	 { ac_try='test -s conftest.$ac_objext'
7363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364  (eval $ac_try) 2>&5
7365  ac_status=$?
7366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367  (exit $ac_status); }; }; then
7368  ac_hi=$ac_mid
7369else
7370  echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373ac_lo=`expr '(' $ac_mid ')' + 1`
7374fi
7375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376done
7377case $ac_lo in
7378?*) ac_cv_sizeof_int=$ac_lo;;
7379'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7380See \`config.log' for more details." >&5
7381echo "$as_me: error: cannot compute sizeof (int), 77
7382See \`config.log' for more details." >&2;}
7383   { (exit 1); exit 1; }; } ;;
7384esac
7385else
7386  if test "$cross_compiling" = yes; then
7387  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7388echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7389   { (exit 1); exit 1; }; }
7390else
7391  cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h.  */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h.  */
7397$ac_includes_default
7398long longval () { return (long) (sizeof (int)); }
7399unsigned long ulongval () { return (long) (sizeof (int)); }
7400#include <stdio.h>
7401#include <stdlib.h>
7402int
7403main ()
7404{
7405
7406  FILE *f = fopen ("conftest.val", "w");
7407  if (! f)
7408    exit (1);
7409  if (((long) (sizeof (int))) < 0)
7410    {
7411      long i = longval ();
7412      if (i != ((long) (sizeof (int))))
7413	exit (1);
7414      fprintf (f, "%ld\n", i);
7415    }
7416  else
7417    {
7418      unsigned long i = ulongval ();
7419      if (i != ((long) (sizeof (int))))
7420	exit (1);
7421      fprintf (f, "%lu\n", i);
7422    }
7423  exit (ferror (f) || fclose (f) != 0);
7424
7425  ;
7426  return 0;
7427}
7428_ACEOF
7429rm -f conftest$ac_exeext
7430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431  (eval $ac_link) 2>&5
7432  ac_status=$?
7433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436  (eval $ac_try) 2>&5
7437  ac_status=$?
7438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439  (exit $ac_status); }; }; then
7440  ac_cv_sizeof_int=`cat conftest.val`
7441else
7442  echo "$as_me: program exited with status $ac_status" >&5
7443echo "$as_me: failed program was:" >&5
7444sed 's/^/| /' conftest.$ac_ext >&5
7445
7446( exit $ac_status )
7447{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7448See \`config.log' for more details." >&5
7449echo "$as_me: error: cannot compute sizeof (int), 77
7450See \`config.log' for more details." >&2;}
7451   { (exit 1); exit 1; }; }
7452fi
7453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7454fi
7455fi
7456rm -f conftest.val
7457else
7458  ac_cv_sizeof_int=0
7459fi
7460fi
7461echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7462echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7463cat >>confdefs.h <<_ACEOF
7464#define SIZEOF_INT $ac_cv_sizeof_int
7465_ACEOF
7466
7467
7468echo "$as_me:$LINENO: checking for long int" >&5
7469echo $ECHO_N "checking for long int... $ECHO_C" >&6
7470if test "${ac_cv_type_long_int+set}" = set; then
7471  echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473  cat >conftest.$ac_ext <<_ACEOF
7474/* confdefs.h.  */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h.  */
7479$ac_includes_default
7480int
7481main ()
7482{
7483if ((long int *) 0)
7484  return 0;
7485if (sizeof (long int))
7486  return 0;
7487  ;
7488  return 0;
7489}
7490_ACEOF
7491rm -f conftest.$ac_objext
7492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7493  (eval $ac_compile) 2>conftest.er1
7494  ac_status=$?
7495  grep -v '^ *+' conftest.er1 >conftest.err
7496  rm -f conftest.er1
7497  cat conftest.err >&5
7498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499  (exit $ac_status); } &&
7500	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502  (eval $ac_try) 2>&5
7503  ac_status=$?
7504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505  (exit $ac_status); }; } &&
7506	 { ac_try='test -s conftest.$ac_objext'
7507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508  (eval $ac_try) 2>&5
7509  ac_status=$?
7510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511  (exit $ac_status); }; }; then
7512  ac_cv_type_long_int=yes
7513else
7514  echo "$as_me: failed program was:" >&5
7515sed 's/^/| /' conftest.$ac_ext >&5
7516
7517ac_cv_type_long_int=no
7518fi
7519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7520fi
7521echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
7522echo "${ECHO_T}$ac_cv_type_long_int" >&6
7523
7524echo "$as_me:$LINENO: checking size of long int" >&5
7525echo $ECHO_N "checking size of long int... $ECHO_C" >&6
7526if test "${ac_cv_sizeof_long_int+set}" = set; then
7527  echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529  if test "$ac_cv_type_long_int" = yes; then
7530  # The cast to unsigned long works around a bug in the HP C Compiler
7531  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7532  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7533  # This bug is HP SR number 8606223364.
7534  if test "$cross_compiling" = yes; then
7535  # Depending upon the size, compute the lo and hi bounds.
7536cat >conftest.$ac_ext <<_ACEOF
7537/* confdefs.h.  */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h.  */
7542$ac_includes_default
7543int
7544main ()
7545{
7546static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
7547test_array [0] = 0
7548
7549  ;
7550  return 0;
7551}
7552_ACEOF
7553rm -f conftest.$ac_objext
7554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555  (eval $ac_compile) 2>conftest.er1
7556  ac_status=$?
7557  grep -v '^ *+' conftest.er1 >conftest.err
7558  rm -f conftest.er1
7559  cat conftest.err >&5
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); } &&
7562	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564  (eval $ac_try) 2>&5
7565  ac_status=$?
7566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567  (exit $ac_status); }; } &&
7568	 { ac_try='test -s conftest.$ac_objext'
7569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570  (eval $ac_try) 2>&5
7571  ac_status=$?
7572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573  (exit $ac_status); }; }; then
7574  ac_lo=0 ac_mid=0
7575  while :; do
7576    cat >conftest.$ac_ext <<_ACEOF
7577/* confdefs.h.  */
7578_ACEOF
7579cat confdefs.h >>conftest.$ac_ext
7580cat >>conftest.$ac_ext <<_ACEOF
7581/* end confdefs.h.  */
7582$ac_includes_default
7583int
7584main ()
7585{
7586static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
7587test_array [0] = 0
7588
7589  ;
7590  return 0;
7591}
7592_ACEOF
7593rm -f conftest.$ac_objext
7594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595  (eval $ac_compile) 2>conftest.er1
7596  ac_status=$?
7597  grep -v '^ *+' conftest.er1 >conftest.err
7598  rm -f conftest.er1
7599  cat conftest.err >&5
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); } &&
7602	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604  (eval $ac_try) 2>&5
7605  ac_status=$?
7606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607  (exit $ac_status); }; } &&
7608	 { ac_try='test -s conftest.$ac_objext'
7609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610  (eval $ac_try) 2>&5
7611  ac_status=$?
7612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613  (exit $ac_status); }; }; then
7614  ac_hi=$ac_mid; break
7615else
7616  echo "$as_me: failed program was:" >&5
7617sed 's/^/| /' conftest.$ac_ext >&5
7618
7619ac_lo=`expr $ac_mid + 1`
7620		    if test $ac_lo -le $ac_mid; then
7621		      ac_lo= ac_hi=
7622		      break
7623		    fi
7624		    ac_mid=`expr 2 '*' $ac_mid + 1`
7625fi
7626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7627  done
7628else
7629  echo "$as_me: failed program was:" >&5
7630sed 's/^/| /' conftest.$ac_ext >&5
7631
7632cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h.  */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h.  */
7638$ac_includes_default
7639int
7640main ()
7641{
7642static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
7643test_array [0] = 0
7644
7645  ;
7646  return 0;
7647}
7648_ACEOF
7649rm -f conftest.$ac_objext
7650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651  (eval $ac_compile) 2>conftest.er1
7652  ac_status=$?
7653  grep -v '^ *+' conftest.er1 >conftest.err
7654  rm -f conftest.er1
7655  cat conftest.err >&5
7656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657  (exit $ac_status); } &&
7658	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; } &&
7664	 { ac_try='test -s conftest.$ac_objext'
7665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666  (eval $ac_try) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }; }; then
7670  ac_hi=-1 ac_mid=-1
7671  while :; do
7672    cat >conftest.$ac_ext <<_ACEOF
7673/* confdefs.h.  */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h.  */
7678$ac_includes_default
7679int
7680main ()
7681{
7682static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
7683test_array [0] = 0
7684
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext
7690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691  (eval $ac_compile) 2>conftest.er1
7692  ac_status=$?
7693  grep -v '^ *+' conftest.er1 >conftest.err
7694  rm -f conftest.er1
7695  cat conftest.err >&5
7696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697  (exit $ac_status); } &&
7698	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700  (eval $ac_try) 2>&5
7701  ac_status=$?
7702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703  (exit $ac_status); }; } &&
7704	 { ac_try='test -s conftest.$ac_objext'
7705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706  (eval $ac_try) 2>&5
7707  ac_status=$?
7708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); }; }; then
7710  ac_lo=$ac_mid; break
7711else
7712  echo "$as_me: failed program was:" >&5
7713sed 's/^/| /' conftest.$ac_ext >&5
7714
7715ac_hi=`expr '(' $ac_mid ')' - 1`
7716		       if test $ac_mid -le $ac_hi; then
7717			 ac_lo= ac_hi=
7718			 break
7719		       fi
7720		       ac_mid=`expr 2 '*' $ac_mid`
7721fi
7722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723  done
7724else
7725  echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728ac_lo= ac_hi=
7729fi
7730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731fi
7732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7733# Binary search between lo and hi bounds.
7734while test "x$ac_lo" != "x$ac_hi"; do
7735  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7736  cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h.  */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h.  */
7742$ac_includes_default
7743int
7744main ()
7745{
7746static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
7747test_array [0] = 0
7748
7749  ;
7750  return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext
7754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755  (eval $ac_compile) 2>conftest.er1
7756  ac_status=$?
7757  grep -v '^ *+' conftest.er1 >conftest.err
7758  rm -f conftest.er1
7759  cat conftest.err >&5
7760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761  (exit $ac_status); } &&
7762	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764  (eval $ac_try) 2>&5
7765  ac_status=$?
7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767  (exit $ac_status); }; } &&
7768	 { ac_try='test -s conftest.$ac_objext'
7769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770  (eval $ac_try) 2>&5
7771  ac_status=$?
7772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773  (exit $ac_status); }; }; then
7774  ac_hi=$ac_mid
7775else
7776  echo "$as_me: failed program was:" >&5
7777sed 's/^/| /' conftest.$ac_ext >&5
7778
7779ac_lo=`expr '(' $ac_mid ')' + 1`
7780fi
7781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7782done
7783case $ac_lo in
7784?*) ac_cv_sizeof_long_int=$ac_lo;;
7785'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
7786See \`config.log' for more details." >&5
7787echo "$as_me: error: cannot compute sizeof (long int), 77
7788See \`config.log' for more details." >&2;}
7789   { (exit 1); exit 1; }; } ;;
7790esac
7791else
7792  if test "$cross_compiling" = yes; then
7793  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7794echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7795   { (exit 1); exit 1; }; }
7796else
7797  cat >conftest.$ac_ext <<_ACEOF
7798/* confdefs.h.  */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h.  */
7803$ac_includes_default
7804long longval () { return (long) (sizeof (long int)); }
7805unsigned long ulongval () { return (long) (sizeof (long int)); }
7806#include <stdio.h>
7807#include <stdlib.h>
7808int
7809main ()
7810{
7811
7812  FILE *f = fopen ("conftest.val", "w");
7813  if (! f)
7814    exit (1);
7815  if (((long) (sizeof (long int))) < 0)
7816    {
7817      long i = longval ();
7818      if (i != ((long) (sizeof (long int))))
7819	exit (1);
7820      fprintf (f, "%ld\n", i);
7821    }
7822  else
7823    {
7824      unsigned long i = ulongval ();
7825      if (i != ((long) (sizeof (long int))))
7826	exit (1);
7827      fprintf (f, "%lu\n", i);
7828    }
7829  exit (ferror (f) || fclose (f) != 0);
7830
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835rm -f conftest$ac_exeext
7836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837  (eval $ac_link) 2>&5
7838  ac_status=$?
7839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842  (eval $ac_try) 2>&5
7843  ac_status=$?
7844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845  (exit $ac_status); }; }; then
7846  ac_cv_sizeof_long_int=`cat conftest.val`
7847else
7848  echo "$as_me: program exited with status $ac_status" >&5
7849echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852( exit $ac_status )
7853{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
7854See \`config.log' for more details." >&5
7855echo "$as_me: error: cannot compute sizeof (long int), 77
7856See \`config.log' for more details." >&2;}
7857   { (exit 1); exit 1; }; }
7858fi
7859rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7860fi
7861fi
7862rm -f conftest.val
7863else
7864  ac_cv_sizeof_long_int=0
7865fi
7866fi
7867echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
7868echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
7869cat >>confdefs.h <<_ACEOF
7870#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7871_ACEOF
7872
7873
7874
7875# Check for netplay support request
7876
7877echo "$as_me:$LINENO: checking whether netplay support was asked" >&5
7878echo $ECHO_N "checking whether netplay support was asked...            $ECHO_C" >&6
7879
7880if test "x$HAVE_LIBSDL_NET" = "xyes"
7881then
7882
7883
7884
7885if true; then
7886  NETPLAY_TRUE=
7887  NETPLAY_FALSE='#'
7888else
7889  NETPLAY_TRUE='#'
7890  NETPLAY_FALSE=
7891fi
7892
7893
7894NETPLAY=yes
7895
7896# Check whether --enable-netplay or --disable-netplay was given.
7897if test "${enable_netplay+set}" = set; then
7898  enableval="$enable_netplay"
7899   if test "$enableval" = "no"; then NETPLAY="no"; fi
7900fi;
7901
7902if test "$NETPLAY" = "yes"
7903then
7904
7905
7906cat >>confdefs.h <<\_ACEOF
7907#define ENABLE_NETPLAY 1
7908_ACEOF
7909
7910
7911
7912
7913if true; then
7914  NETPLAY_TRUE=
7915  NETPLAY_FALSE='#'
7916else
7917  NETPLAY_TRUE='#'
7918  NETPLAY_FALSE=
7919fi
7920
7921
7922  echo "$as_me:$LINENO: result: yes" >&5
7923  echo "${ECHO_T}yes" >&6
7924
7925else # NETPLAY
7926
7927
7928
7929if false; then
7930  NETPLAY_TRUE=
7931  NETPLAY_FALSE='#'
7932else
7933  NETPLAY_TRUE='#'
7934  NETPLAY_FALSE=
7935fi
7936
7937
7938  echo "$as_me:$LINENO: result: no" >&5
7939  echo "${ECHO_T}no" >&6
7940
7941fi
7942
7943else # HAVE_LIBSDL_NET
7944
7945
7946
7947if false; then
7948  NETPLAY_TRUE=
7949  NETPLAY_FALSE='#'
7950else
7951  NETPLAY_TRUE='#'
7952  NETPLAY_FALSE=
7953fi
7954
7955
7956  echo "$as_me:$LINENO: result: no (no SDL_net found)" >&5
7957  echo "${ECHO_T}no (no SDL_net found)" >&6
7958
7959fi
7960
7961# Check for kernel version request
7962
7963echo "$as_me:$LINENO: checking which version of hugo kernel was asked" >&5
7964echo $ECHO_N "checking whether new kernel version was asked...         $ECHO_C" >&6
7965
7966NEW_KERNEL=yes
7967
7968# Check whether --enable-new-kernel or --disable-new-kernel was given.
7969if test "${enable_new_kernel+set}" = set; then
7970  enableval="$enable_new_kernel"
7971   if test "$enableval" = "no"; then NEW_KERNEL="no"; fi
7972fi;
7973
7974if test "$NEW_KERNEL" = "yes"
7975then
7976
7977
7978cat >>confdefs.h <<\_ACEOF
7979#define KERNEL_DS 1
7980_ACEOF
7981
7982
7983  echo "$as_me:$LINENO: result: yes" >&5
7984  echo "${ECHO_T}yes" >&6
7985
7986else
7987
7988  echo "$as_me:$LINENO: result: no" >&5
7989  echo "${ECHO_T}no" >&6
7990
7991fi
7992
7993# Check for shared memory
7994
7995echo "$as_me:$LINENO: checking shared memory openness" >&5
7996echo $ECHO_N "checking whether shared memory openness was asked...     $ECHO_C" >&6
7997
7998SHARED_MEMORY=no
7999
8000# Check whether --enable-shared-memory or --disable-shared-memory was given.
8001if test "${enable_shared_memory+set}" = set; then
8002  enableval="$enable_shared_memory"
8003   if test "$enableval" = "yes"; then SHARED_MEMORY="yes"; fi
8004fi;
8005
8006if test "$SHARED_MEMORY" = "yes"
8007then
8008
8009
8010cat >>confdefs.h <<\_ACEOF
8011#define SHARED_MEMORY 1
8012_ACEOF
8013
8014
8015  echo "$as_me:$LINENO: result: yes" >&5
8016  echo "${ECHO_T}yes" >&6
8017
8018else
8019
8020  echo "$as_me:$LINENO: result: no" >&5
8021  echo "${ECHO_T}no" >&6
8022
8023fi
8024
8025# Check for new gfx engine
8026
8027echo "$as_me:$LINENO: checking new gfx engine" >&5
8028echo $ECHO_N "checking whether new gfx engine was asked...             $ECHO_C" >&6
8029
8030NEW_GFX_ENGINE=yes
8031
8032# Check whether --enable-new-gfx-engine or --disable-new-gfx-engine was given.
8033if test "${enable_new_gfx_engine+set}" = set; then
8034  enableval="$enable_new_gfx_engine"
8035   if test "$enableval" = "no"; then NEW_GFX_ENGINE="no"; fi
8036fi;
8037
8038if test "$NEW_GFX_ENGINE" = "yes"
8039then
8040
8041
8042cat >>confdefs.h <<\_ACEOF
8043#define NEW_GFX_ENGINE 1
8044_ACEOF
8045
8046
8047  echo "$as_me:$LINENO: result: yes" >&5
8048  echo "${ECHO_T}yes" >&6
8049
8050else
8051
8052  echo "$as_me:$LINENO: result: no" >&5
8053  echo "${ECHO_T}no" >&6
8054
8055fi
8056
8057# Check for debug version
8058
8059DEBUG_VERSION=no
8060
8061echo "$as_me:$LINENO: checking for debug version" >&5
8062echo $ECHO_N "checking whether debug version was asked...              $ECHO_C" >&6
8063
8064# Check whether --enable-final-release or --disable-final-release was given.
8065if test "${enable_final_release+set}" = set; then
8066  enableval="$enable_final_release"
8067   if test "$enableval" = "no"; then DEBUG_VERSION="yes"; fi
8068fi;
8069
8070if test "$DEBUG_VERSION" = "no"
8071then
8072
8073cat >>confdefs.h <<\_ACEOF
8074#define FINAL_RELEASE 1
8075_ACEOF
8076
8077
8078	echo "$as_me:$LINENO: result: no" >&5
8079  echo "${ECHO_T}no" >&6
8080else
8081  echo "$as_me:$LINENO: result: yes" >&5
8082  echo "${ECHO_T}yes" >&6
8083fi
8084
8085# Check for cd debugging
8086
8087CD_DEBUG=no
8088
8089echo "$as_me:$LINENO: checking for cd debug version" >&5
8090echo $ECHO_N "checking whether cd debug version was asked...           $ECHO_C" >&6
8091
8092# Check whether --enable-cd-debug or --disable-cd-debug was given.
8093if test "${enable_cd_debug+set}" = set; then
8094  enableval="$enable_cd_debug"
8095   if test "$enableval" = "yes"; then CD_DEBUG="yes"; fi
8096fi;
8097
8098if test "$CD_DEBUG" = "yes"
8099then
8100
8101cat >>confdefs.h <<\_ACEOF
8102#define CD_DEBUG 1
8103_ACEOF
8104
8105	echo "$as_me:$LINENO: result: yes" >&5
8106  echo "${ECHO_T}yes" >&6
8107else
8108  echo "$as_me:$LINENO: result: no" >&5
8109  echo "${ECHO_T}no" >&6
8110fi
8111
8112# Check for sound debugging
8113
8114SOUND_DEBUG=no
8115
8116echo "$as_me:$LINENO: checking for sound debug version" >&5
8117echo $ECHO_N "checking whether sound debug version was asked...        $ECHO_C" >&6
8118
8119# Check whether --enable-sound-debug or --disable-sound-debug was given.
8120if test "${enable_sound_debug+set}" = set; then
8121  enableval="$enable_sound_debug"
8122   if test "$enableval" = "yes"; then SOUND_DEBUG="yes"; fi
8123fi;
8124
8125if test "$SOUND_DEBUG" = "yes"
8126then
8127
8128cat >>confdefs.h <<\_ACEOF
8129#define SOUND_DEBUG 1
8130_ACEOF
8131
8132	echo "$as_me:$LINENO: result: yes" >&5
8133  echo "${ECHO_T}yes" >&6
8134else
8135  echo "$as_me:$LINENO: result: no" >&5
8136  echo "${ECHO_T}no" >&6
8137fi
8138
8139# Check for graphics debugging
8140
8141GFX_DEBUG=no
8142
8143echo "$as_me:$LINENO: checking for gfx debug version" >&5
8144echo $ECHO_N "checking whether gfx debug version was asked...          $ECHO_C" >&6
8145
8146# Check whether --enable-gfx-debug or --disable-gfx-debug was given.
8147if test "${enable_gfx_debug+set}" = set; then
8148  enableval="$enable_gfx_debug"
8149   if test "$enableval" = "yes"; then GFX_DEBUG="yes"; fi
8150fi;
8151
8152if test "$GFX_DEBUG" = "yes"
8153then
8154
8155cat >>confdefs.h <<\_ACEOF
8156#define GFX_DEBUG 1
8157_ACEOF
8158
8159	echo "$as_me:$LINENO: result: yes" >&5
8160  echo "${ECHO_T}yes" >&6
8161else
8162  echo "$as_me:$LINENO: result: no" >&5
8163  echo "${ECHO_T}no" >&6
8164
8165fi
8166
8167# Check for input debugging
8168
8169INPUT_DEBUG=no
8170
8171echo "$as_me:$LINENO: checking for input debug version" >&5
8172echo $ECHO_N "checking whether input debug version was asked...        $ECHO_C" >&6
8173
8174# Check whether --enable-input-debug or --disable-input-debug was given.
8175if test "${enable_input_debug+set}" = set; then
8176  enableval="$enable_input_debug"
8177   if test "$enableval" = "yes"; then INPUT_DEBUG="yes"; fi
8178fi;
8179
8180if test "$INPUT_DEBUG" = "yes"
8181then
8182
8183cat >>confdefs.h <<\_ACEOF
8184#define INPUT_DEBUG 1
8185_ACEOF
8186
8187	echo "$as_me:$LINENO: result: yes" >&5
8188  echo "${ECHO_T}yes" >&6
8189else
8190  echo "$as_me:$LINENO: result: no" >&5
8191  echo "${ECHO_T}no" >&6
8192fi
8193
8194# Check for kernel debugging
8195
8196KERNEL_DEBUG=no
8197
8198echo "$as_me:$LINENO: checking for kernel debug version" >&5
8199echo $ECHO_N "checking whether kernel debug version was asked...       $ECHO_C" >&6
8200
8201# Check whether --enable-kernel-debug or --disable-kernel-debug was given.
8202if test "${enable_kernel_debug+set}" = set; then
8203  enableval="$enable_kernel_debug"
8204   if test "$enableval" = "yes"; then KERNEL_DEBUG="yes"; fi
8205fi;
8206
8207if test "$KERNEL_DEBUG" = "yes"
8208then
8209
8210cat >>confdefs.h <<\_ACEOF
8211#define KERNEL_DEBUG 1
8212_ACEOF
8213
8214  echo "$as_me:$LINENO: result: yes" >&5
8215  echo "${ECHO_T}yes" >&6
8216else
8217  echo "$as_me:$LINENO: result: no" >&5
8218  echo "${ECHO_T}no" >&6
8219fi
8220
8221# Check for netplay debugging
8222
8223NETPLAY_DEBUG=no
8224
8225echo "$as_me:$LINENO: checking for netplay debug version" >&5
8226echo $ECHO_N "checking whether netplay debug version was asked...      $ECHO_C" >&6
8227
8228# Check whether --enable-netplay-debug or --disable-netplay-debug was given.
8229if test "${enable_netplay_debug+set}" = set; then
8230  enableval="$enable_netplay_debug"
8231   if test "$enableval" = "yes"; then NETPLAY_DEBUG="yes"; fi
8232fi;
8233
8234if test "$NETPLAY_DEBUG" = "yes"
8235then
8236
8237cat >>confdefs.h <<\_ACEOF
8238#define NETPLAY_DEBUG 1
8239_ACEOF
8240
8241  echo "$as_me:$LINENO: result: yes" >&5
8242  echo "${ECHO_T}yes" >&6
8243else
8244  echo "$as_me:$LINENO: result: no" >&5
8245  echo "${ECHO_T}no" >&6
8246fi
8247
8248# Check for bsd or gpl hardware cd support
8249
8250BSD_CD_HARDWARE_SUPPORT=yes
8251
8252echo "$as_me:$LINENO: checking for bsd pc engine cd version" >&5
8253echo $ECHO_N "checking whether bsd pc engine cd version was asked...   $ECHO_C" >&6
8254
8255# Check whether --enable-bsd-pcecd or --disable-bsd-pcecd was given.
8256if test "${enable_bsd_pcecd+set}" = set; then
8257  enableval="$enable_bsd_pcecd"
8258   if test "$enableval" = "no"; then BSD_CD_HARDWARE_SUPPORT="no"; fi
8259fi;
8260
8261if test "$BSD_CD_HARDWARE_SUPPORT" = "yes"
8262then
8263
8264cat >>confdefs.h <<\_ACEOF
8265#define BSD_CD_HARDWARE_SUPPORT 1
8266_ACEOF
8267
8268	echo "$as_me:$LINENO: result: yes" >&5
8269  echo "${ECHO_T}yes" >&6
8270else
8271  echo "$as_me:$LINENO: result: no" >&5
8272  echo "${ECHO_T}no" >&6
8273fi
8274
8275# Check if user wants to build with sdl
8276
8277USE_SDL=yes
8278
8279echo "$as_me:$LINENO: checking for SDL library version" >&5
8280echo $ECHO_N "checking whether SDL library version was asked...        $ECHO_C" >&6
8281
8282
8283# Check whether --with-sdl or --without-sdl was given.
8284if test "${with_sdl+set}" = set; then
8285  withval="$with_sdl"
8286   if test "$withval" = "no"; then USE_SDL="no"; fi
8287fi;
8288
8289if test "$USE_SDL" = "yes"
8290then
8291
8292cat >>confdefs.h <<\_ACEOF
8293#define SDL 1
8294_ACEOF
8295
8296	echo "$as_me:$LINENO: result: yes" >&5
8297  echo "${ECHO_T}yes" >&6
8298else
8299  echo "$as_me:$LINENO: result: no" >&5
8300  echo "${ECHO_T}no" >&6
8301fi
8302
8303# Check for SDL_mixer
8304echo $ECHO_N "checking whether SDL_mixer library version was asked...  $ECHO_C" >&6
8305USE_SDL_mixer=no
8306
8307
8308# Check whether --with-sdl_mixer or --without-sdl_mixer was given.
8309if test "${with_sdl_mixer+set}" = set; then
8310  withval="$with_sdl_mixer"
8311   if test "$withval" = "yes"; then USE_SDL_mixer="yes"; fi
8312fi;
8313
8314if test "$USE_SDL_mixer" = "yes"
8315then
8316  if test "$USE_SDL" = "yes"
8317  then
8318
8319cat >>confdefs.h <<\_ACEOF
8320#define SDL_mixer 1
8321_ACEOF
8322
8323    echo "$as_me:$LINENO: result: yes" >&5
8324    echo "${ECHO_T}yes" >&6
8325  else
8326    echo "$as_me:$LINENO: result: no (needs SDL)" >&5
8327    echo "${ECHO_T}no" >&6
8328  fi
8329else
8330  echo "$as_me:$LINENO: result: no" >&5
8331  echo "${ECHO_T}no" >&6
8332fi
8333
8334#Checking for ogg/vorbis support in .hcd
8335#echo "$as_me:$LINENO: checking whether ogg/vorbis support in .hcd was asked" >&5
8336echo $ECHO_N "checking whether ogg/vorbis support in .hcd was asked... $ECHO_C" >&6
8337OGG_SUPPORT=no
8338
8339
8340# Check whether --with-ogg-support or --without-ogg-support was given.
8341if test "${with_ogg_support+set}" = set; then
8342  withval="$with_ogg_support"
8343   if test "$withval" = "yes"; then OGG_SUPPORT="yes"; fi
8344fi;
8345
8346if test "$OGG_SUPPORT" = "yes"
8347then
8348  if test "$USE_SDL_mixer" = "yes"
8349  then
8350
8351cat >>confdefs.h <<\_ACEOF
8352#define OGG_SUPPORT 1
8353_ACEOF
8354
8355    echo "$as_me:$LINENO: result: yes" >&5
8356    echo "${ECHO_T}yes" >&6
8357  else
8358    echo "$as_me:$LINENO: result: no (needs SDL_mixer)" >&5
8359    echo "${ECHO_T}no" >&6
8360  fi
8361else
8362  echo "$as_me:$LINENO: result: no" >&5
8363  echo "${ECHO_T}no" >&6
8364fi
8365
8366# Mode for testing rom made to run with an offset of 0x68 for bank
8367
8368TEST_RELOCATED_ROM=no
8369
8370echo "$as_me:$LINENO: checking for test relocated rom version" >&5
8371echo $ECHO_N "checking whether test relocated rom version was asked... $ECHO_C" >&6
8372
8373# Check whether --enable-test-relocated-rom or --disable-test-relocated-rom was given.
8374if test "${enable_test_relocated_rom+set}" = set; then
8375  enableval="$enable_test_relocated_rom"
8376   if test "$enableval" = "yes"; then TEST_RELOCATED_ROM="yes"; fi
8377fi;
8378
8379if test "$TEST_RELOCATED_ROM" = "yes"
8380then
8381
8382cat >>confdefs.h <<\_ACEOF
8383#define TEST_ROM_RELOCATED 1
8384_ACEOF
8385
8386	echo "$as_me:$LINENO: result: yes" >&5
8387  echo "${ECHO_T}yes. UNUSABLE FOR NORMAL GAMES." >&6
8388else
8389  echo "$as_me:$LINENO: result: no" >&5
8390  echo "${ECHO_T}no" >&6
8391
8392fi
8393
8394# Inlined accessors ? they're slightly faster but doens't work for AC games
8395
8396INLINED_ACCESSORS=no
8397
8398echo "$as_me:$LINENO: checking for inlined accessors version" >&5
8399echo $ECHO_N "checking whether inlined accessors version was asked...  $ECHO_C" >&6
8400
8401# Check whether --enable-inlined-accessors or --disable-inlined-accessors was given.
8402if test "${enable_inlined_accessors+set}" = set; then
8403  enableval="$enable_inlined_accessors"
8404   if test "$enableval" = "yes"; then INLINED_ACCESSORS="yes"; fi
8405fi;
8406
8407if test "$INLINED_ACCESSORS" = "yes"
8408then
8409
8410cat >>confdefs.h <<\_ACEOF
8411#define INLINED_ACCESSORS 1
8412_ACEOF
8413
8414	echo "$as_me:$LINENO: result: yes" >&5
8415  echo "${ECHO_T}yes (AC games won't work properly)." >&6
8416else
8417  echo "$as_me:$LINENO: result: no" >&5
8418  echo "${ECHO_T}no" >&6
8419fi
8420
8421# Selecting machine / lib specific files
8422
8423if test "$target_alias" = ""; then
8424
8425	echo "$as_me:$LINENO: no target explicitely given, guessing" >&5
8426  echo $ECHO_N "no target explicitely given, guessing... $ECHO_C" >&6
8427
8428  target_alias=`uname -m`-`uname -s`
8429
8430  echo "$as_me:$LINENO: result: $target_alias" >&5
8431  echo "${ECHO_T}$target_alias" >&6
8432
8433fi
8434
8435
8436
8437if false; then
8438  SDL_LINUX_TRUE=
8439  SDL_LINUX_FALSE='#'
8440else
8441  SDL_LINUX_TRUE='#'
8442  SDL_LINUX_FALSE=
8443fi
8444
8445
8446
8447if false; then
8448  SDL_MIXER_LINUX_TRUE=
8449  SDL_MIXER_LINUX_FALSE='#'
8450else
8451  SDL_MIXER_LINUX_TRUE='#'
8452  SDL_MIXER_LINUX_FALSE=
8453fi
8454
8455
8456
8457if false; then
8458  ZE_HCD_OGG_SUPPORT_TRUE=
8459  ZE_HCD_OGG_SUPPORT_FALSE='#'
8460else
8461  ZE_HCD_OGG_SUPPORT_TRUE='#'
8462  ZE_HCD_OGG_SUPPORT_FALSE=
8463fi
8464
8465
8466
8467if false; then
8468  SDL_NET_LINUX_TRUE=
8469  SDL_NET_LINUX_FALSE='#'
8470else
8471  SDL_NET_LINUX_TRUE='#'
8472  SDL_NET_LINUX_FALSE=
8473fi
8474
8475
8476
8477if false; then
8478  ALLEGRO_LINUX_TRUE=
8479  ALLEGRO_LINUX_FALSE='#'
8480else
8481  ALLEGRO_LINUX_TRUE='#'
8482  ALLEGRO_LINUX_FALSE=
8483fi
8484
8485
8486
8487
8488if false; then
8489  SDL_WIN32_TRUE=
8490  SDL_WIN32_FALSE='#'
8491else
8492  SDL_WIN32_TRUE='#'
8493  SDL_WIN32_FALSE=
8494fi
8495
8496
8497
8498if false; then
8499  ALLEGRO_WIN32_TRUE=
8500  ALLEGRO_WIN32_FALSE='#'
8501else
8502  ALLEGRO_WIN32_TRUE='#'
8503  ALLEGRO_WIN32_FALSE=
8504fi
8505
8506
8507
8508
8509if false; then
8510  ALLEGRO_DJGPP_TRUE=
8511  ALLEGRO_DJGPP_FALSE='#'
8512else
8513  ALLEGRO_DJGPP_TRUE='#'
8514  ALLEGRO_DJGPP_FALSE=
8515fi
8516
8517
8518
8519
8520if false; then
8521  SDL_FREEBSD_TRUE=
8522  SDL_FREEBSD_FALSE='#'
8523else
8524  SDL_FREEBSD_TRUE='#'
8525  SDL_FREEBSD_FALSE=
8526fi
8527
8528
8529
8530
8531if false; then
8532  SDL_SOLARIS_TRUE=
8533  SDL_SOLARIS_FALSE='#'
8534else
8535  SDL_SOLARIS_TRUE='#'
8536  SDL_SOLARIS_FALSE=
8537fi
8538
8539
8540case $target_alias in
8541   i386-mingw32msvc)
8542 	   echo "Microsoft Windows 32bits with mingw build enabled"
8543		 HUGO_TARGET_MACHINE="WIN32"
8544
8545		 if test "$USE_SDL" = "yes"; then
8546
8547			 CFLAGS="$CFLAGS `sdl-config --cflags`"
8548       LIBS="$LIBS `sdl-config --libs` -lakrip32"
8549
8550
8551
8552if true; then
8553  SDL_WIN32_TRUE=
8554  SDL_WIN32_FALSE='#'
8555else
8556  SDL_WIN32_TRUE='#'
8557  SDL_WIN32_FALSE=
8558fi
8559
8560		 else
8561
8562			 HUGO_TARGET_LIBRARY="-DALLEGRO `allegro-config --cflags`"
8563			 HUGO_TARGET_LIBRARY_LD="`allegro-config --libs`"
8564
8565
8566
8567if true; then
8568  ALLEGRO_WIN32_TRUE=
8569  ALLEGRO_WIN32_FALSE='#'
8570else
8571  ALLEGRO_WIN32_TRUE='#'
8572  ALLEGRO_WIN32_FALSE=
8573fi
8574
8575		 fi
8576	 ;;
8577	 i386-djgpp)
8578	   echo "DJGPP build enabled"
8579
8580		 HUGO_TARGET_MACHINE="DJGPP"
8581		 HUGO_TARGET_LIBRARY="-DALLEGRO"
8582		 HUGO_TARGET_LIBRARY_LD="-lalleg"
8583
8584
8585
8586if true; then
8587  ALLEGRO_DJGPP_TRUE=
8588  ALLEGRO_DJGPP_FALSE='#'
8589else
8590  ALLEGRO_DJGPP_TRUE='#'
8591  ALLEGRO_DJGPP_FALSE=
8592fi
8593
8594	 ;;
8595	 *i?86-?inux*)
8596	   echo "Linux build enabled"
8597
8598		 HUGO_TARGET_MACHINE="LINUX"
8599
8600		 if test "$USE_SDL" = "yes"; then
8601
8602 			 CFLAGS="$CFLAGS `sdl-config --cflags`"
8603			 LIBS="$LIBS `sdl-config --libs`"
8604
8605
8606if true; then
8607  SDL_LINUX_TRUE=
8608  SDL_LINUX_FALSE='#'
8609else
8610  SDL_LINUX_TRUE='#'
8611  SDL_LINUX_FALSE=
8612fi
8613
8614
8615			 if test "$USE_SDL_mixer" = "yes"; then
8616				LIBS="$LIBS -lSDL_mixer "
8617
8618
8619if true; then
8620  SDL_MIXER_LINUX_TRUE=
8621  SDL_MIXER_LINUX_FALSE='#'
8622else
8623  SDL_MIXER_LINUX_TRUE='#'
8624  SDL_MIXER_LINUX_FALSE=
8625fi
8626
8627			 fi
8628
8629			 if test "$OGG_SUPPORT" = "yes"; then
8630				LIBS="$LIBS -lvorbis -lvorbisfile"
8631
8632
8633if true; then
8634  ZE_HCD_OGG_SUPPORT_TRUE=
8635  ZE_HCD_OGG_SUPPORT_FALSE='#'
8636else
8637  ZE_HCD_OGG_SUPPORT_TRUE='#'
8638  ZE_HCD_OGG_SUPPORT_FALSE=
8639fi
8640 # ZE_: needs to be processed after SDL_MIXER_LINUX...
8641			 fi
8642
8643		 else
8644
8645			 HUGO_TARGET_LIBRARY="-DALLEGRO `allegro-config --cflags`"
8646			 HUGO_TARGET_LIBRARY_LD="`allegro-config --libs`"
8647
8648
8649if true; then
8650  ALLEGRO_LINUX_TRUE=
8651  ALLEGRO_LINUX_FALSE='#'
8652else
8653  ALLEGRO_LINUX_TRUE='#'
8654  ALLEGRO_LINUX_FALSE=
8655fi
8656
8657
8658		 fi
8659	 ;;
8660	 *-FreeBSD|*-DragonFly)
8661	  echo "FreeBSD build enabled"
8662
8663		 	 HUGO_TARGET_MACHINE="FREEBSD"
8664
8665 			 CFLAGS="$CFLAGS `${SDL_CONFIG} --cflags`"
8666       LIBS="$LIBS `${SDL_CONFIG} --libs`"
8667
8668
8669
8670if true; then
8671  SDL_FREEBSD_TRUE=
8672  SDL_FREEBSD_FALSE='#'
8673else
8674  SDL_FREEBSD_TRUE='#'
8675  SDL_FREEBSD_FALSE=
8676fi
8677
8678
8679			 if test "$USE_SDL_mixer" = "yes"; then
8680				LIBS="$LIBS -lSDL_mixer "
8681
8682
8683if true; then
8684  SDL_MIXER_LINUX_TRUE=
8685  SDL_MIXER_LINUX_FALSE='#'
8686else
8687  SDL_MIXER_LINUX_TRUE='#'
8688  SDL_MIXER_LINUX_FALSE=
8689fi
8690
8691			 fi
8692
8693			 if test "$OGG_SUPPORT" = "yes"; then
8694				LIBS="$LIBS -lvorbis -lvorbisfile"
8695
8696
8697if true; then
8698  ZE_HCD_OGG_SUPPORT_TRUE=
8699  ZE_HCD_OGG_SUPPORT_FALSE='#'
8700else
8701  ZE_HCD_OGG_SUPPORT_TRUE='#'
8702  ZE_HCD_OGG_SUPPORT_FALSE=
8703fi
8704 # ZE_: needs to be processed after SDL_MIXER_LINUX...
8705			 fi
8706
8707	 ;;
8708	sun4u-SunOS)
8709	  echo "Solaris build enabled"
8710
8711	HUGO_TARGET_MACHINE="SOLARIS"
8712
8713	CFLAGS="$CFLAGS `sdl-config --cflags`"
8714	LIBS="$LIBS `sdl-config --libs`"
8715
8716
8717
8718if true; then
8719  SDL_SOLARIS_TRUE=
8720  SDL_SOLARIS_FALSE='#'
8721else
8722  SDL_SOLARIS_TRUE='#'
8723  SDL_SOLARIS_FALSE=
8724fi
8725
8726	;;
8727	*)
8728	   echo "No target specified, Please ask maintainer about target: $target_alias"
8729	 ;;
8730esac
8731
8732if test "x${datadir}" = 'x${prefix}/share'; then
8733  if test "x${prefix}" = "xNONE"; then
8734
8735cat >>confdefs.h <<_ACEOF
8736#define PACKAGE_DATA_DIR "${ac_default_prefix}/share/hugo"
8737_ACEOF
8738
8739  else
8740    cat >>confdefs.h <<_ACEOF
8741#define PACKAGE_DATA_DIR "${prefix}/share/hugo"
8742_ACEOF
8743
8744  fi
8745else
8746  cat >>confdefs.h <<_ACEOF
8747#define PACKAGE_DATA_DIR "${datadir}/hugo"
8748_ACEOF
8749
8750fi
8751
8752
8753
8754
8755
8756          ac_config_files="$ac_config_files Makefile"
8757
8758cat >confcache <<\_ACEOF
8759# This file is a shell script that caches the results of configure
8760# tests run on this system so they can be shared between configure
8761# scripts and configure runs, see configure's option --config-cache.
8762# It is not useful on other systems.  If it contains results you don't
8763# want to keep, you may remove or edit it.
8764#
8765# config.status only pays attention to the cache file if you give it
8766# the --recheck option to rerun configure.
8767#
8768# `ac_cv_env_foo' variables (set or unset) will be overridden when
8769# loading this file, other *unset* `ac_cv_foo' will be assigned the
8770# following values.
8771
8772_ACEOF
8773
8774# The following way of writing the cache mishandles newlines in values,
8775# but we know of no workaround that is simple, portable, and efficient.
8776# So, don't put newlines in cache variables' values.
8777# Ultrix sh set writes to stderr and can't be redirected directly,
8778# and sets the high bit in the cache file unless we assign to the vars.
8779{
8780  (set) 2>&1 |
8781    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8782    *ac_space=\ *)
8783      # `set' does not quote correctly, so add quotes (double-quote
8784      # substitution turns \\\\ into \\, and sed turns \\ into \).
8785      sed -n \
8786	"s/'/'\\\\''/g;
8787	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8788      ;;
8789    *)
8790      # `set' quotes correctly as required by POSIX, so do not add quotes.
8791      sed -n \
8792	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8793      ;;
8794    esac;
8795} |
8796  sed '
8797     t clear
8798     : clear
8799     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8800     t end
8801     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8802     : end' >>confcache
8803if diff $cache_file confcache >/dev/null 2>&1; then :; else
8804  if test -w $cache_file; then
8805    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8806    cat confcache >$cache_file
8807  else
8808    echo "not updating unwritable cache $cache_file"
8809  fi
8810fi
8811rm -f confcache
8812
8813test "x$prefix" = xNONE && prefix=$ac_default_prefix
8814# Let make expand exec_prefix.
8815test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8816
8817# VPATH may cause trouble with some makes, so we remove $(srcdir),
8818# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8819# trailing colons and then remove the whole line if VPATH becomes empty
8820# (actually we leave an empty line to preserve line numbers).
8821if test "x$srcdir" = x.; then
8822  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8823s/:*\$(srcdir):*/:/;
8824s/:*\${srcdir}:*/:/;
8825s/:*@srcdir@:*/:/;
8826s/^\([^=]*=[	 ]*\):*/\1/;
8827s/:*$//;
8828s/^[^=]*=[	 ]*$//;
8829}'
8830fi
8831
8832DEFS=-DHAVE_CONFIG_H
8833
8834ac_libobjs=
8835ac_ltlibobjs=
8836for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8837  # 1. Remove the extension, and $U if already installed.
8838  ac_i=`echo "$ac_i" |
8839	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8840  # 2. Add them.
8841  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8842  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8843done
8844LIBOBJS=$ac_libobjs
8845
8846LTLIBOBJS=$ac_ltlibobjs
8847
8848
8849if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8850  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8851Usually this means the macro was only invoked conditionally." >&5
8852echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8853Usually this means the macro was only invoked conditionally." >&2;}
8854   { (exit 1); exit 1; }; }
8855fi
8856if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8857  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8858Usually this means the macro was only invoked conditionally." >&5
8859echo "$as_me: error: conditional \"AMDEP\" was never defined.
8860Usually this means the macro was only invoked conditionally." >&2;}
8861   { (exit 1); exit 1; }; }
8862fi
8863if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8864  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8865Usually this means the macro was only invoked conditionally." >&5
8866echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8867Usually this means the macro was only invoked conditionally." >&2;}
8868   { (exit 1); exit 1; }; }
8869fi
8870if test -z "${HAVE_TOOLS_FOR_TXT_DOC_TRUE}" && test -z "${HAVE_TOOLS_FOR_TXT_DOC_FALSE}"; then
8871  { { echo "$as_me:$LINENO: error: conditional \"HAVE_TOOLS_FOR_TXT_DOC\" was never defined.
8872Usually this means the macro was only invoked conditionally." >&5
8873echo "$as_me: error: conditional \"HAVE_TOOLS_FOR_TXT_DOC\" was never defined.
8874Usually this means the macro was only invoked conditionally." >&2;}
8875   { (exit 1); exit 1; }; }
8876fi
8877if test -z "${HAVE_TOOLS_FOR_TXT_DOC_TRUE}" && test -z "${HAVE_TOOLS_FOR_TXT_DOC_FALSE}"; then
8878  { { echo "$as_me:$LINENO: error: conditional \"HAVE_TOOLS_FOR_TXT_DOC\" was never defined.
8879Usually this means the macro was only invoked conditionally." >&5
8880echo "$as_me: error: conditional \"HAVE_TOOLS_FOR_TXT_DOC\" was never defined.
8881Usually this means the macro was only invoked conditionally." >&2;}
8882   { (exit 1); exit 1; }; }
8883fi
8884if test -z "${HAVE_TOOLS_FOR_HTML_DOC_TRUE}" && test -z "${HAVE_TOOLS_FOR_HTML_DOC_FALSE}"; then
8885  { { echo "$as_me:$LINENO: error: conditional \"HAVE_TOOLS_FOR_HTML_DOC\" was never defined.
8886Usually this means the macro was only invoked conditionally." >&5
8887echo "$as_me: error: conditional \"HAVE_TOOLS_FOR_HTML_DOC\" was never defined.
8888Usually this means the macro was only invoked conditionally." >&2;}
8889   { (exit 1); exit 1; }; }
8890fi
8891if test -z "${HAVE_TOOLS_FOR_HTML_DOC_TRUE}" && test -z "${HAVE_TOOLS_FOR_HTML_DOC_FALSE}"; then
8892  { { echo "$as_me:$LINENO: error: conditional \"HAVE_TOOLS_FOR_HTML_DOC\" was never defined.
8893Usually this means the macro was only invoked conditionally." >&5
8894echo "$as_me: error: conditional \"HAVE_TOOLS_FOR_HTML_DOC\" was never defined.
8895Usually this means the macro was only invoked conditionally." >&2;}
8896   { (exit 1); exit 1; }; }
8897fi
8898if test -z "${ZLIB_TRUE}" && test -z "${ZLIB_FALSE}"; then
8899  { { echo "$as_me:$LINENO: error: conditional \"ZLIB\" was never defined.
8900Usually this means the macro was only invoked conditionally." >&5
8901echo "$as_me: error: conditional \"ZLIB\" was never defined.
8902Usually this means the macro was only invoked conditionally." >&2;}
8903   { (exit 1); exit 1; }; }
8904fi
8905if test -z "${ZLIB_TRUE}" && test -z "${ZLIB_FALSE}"; then
8906  { { echo "$as_me:$LINENO: error: conditional \"ZLIB\" was never defined.
8907Usually this means the macro was only invoked conditionally." >&5
8908echo "$as_me: error: conditional \"ZLIB\" was never defined.
8909Usually this means the macro was only invoked conditionally." >&2;}
8910   { (exit 1); exit 1; }; }
8911fi
8912if test -z "${ZLIB_TRUE}" && test -z "${ZLIB_FALSE}"; then
8913  { { echo "$as_me:$LINENO: error: conditional \"ZLIB\" was never defined.
8914Usually this means the macro was only invoked conditionally." >&5
8915echo "$as_me: error: conditional \"ZLIB\" was never defined.
8916Usually this means the macro was only invoked conditionally." >&2;}
8917   { (exit 1); exit 1; }; }
8918fi
8919if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8920  { { echo "$as_me:$LINENO: error: conditional \"GTK\" was never defined.
8921Usually this means the macro was only invoked conditionally." >&5
8922echo "$as_me: error: conditional \"GTK\" was never defined.
8923Usually this means the macro was only invoked conditionally." >&2;}
8924   { (exit 1); exit 1; }; }
8925fi
8926if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8927  { { echo "$as_me:$LINENO: error: conditional \"GTK\" was never defined.
8928Usually this means the macro was only invoked conditionally." >&5
8929echo "$as_me: error: conditional \"GTK\" was never defined.
8930Usually this means the macro was only invoked conditionally." >&2;}
8931   { (exit 1); exit 1; }; }
8932fi
8933if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8934  { { echo "$as_me:$LINENO: error: conditional \"GTK\" was never defined.
8935Usually this means the macro was only invoked conditionally." >&5
8936echo "$as_me: error: conditional \"GTK\" was never defined.
8937Usually this means the macro was only invoked conditionally." >&2;}
8938   { (exit 1); exit 1; }; }
8939fi
8940if test -z "${NETPLAY_TRUE}" && test -z "${NETPLAY_FALSE}"; then
8941  { { echo "$as_me:$LINENO: error: conditional \"NETPLAY\" was never defined.
8942Usually this means the macro was only invoked conditionally." >&5
8943echo "$as_me: error: conditional \"NETPLAY\" was never defined.
8944Usually this means the macro was only invoked conditionally." >&2;}
8945   { (exit 1); exit 1; }; }
8946fi
8947if test -z "${NETPLAY_TRUE}" && test -z "${NETPLAY_FALSE}"; then
8948  { { echo "$as_me:$LINENO: error: conditional \"NETPLAY\" was never defined.
8949Usually this means the macro was only invoked conditionally." >&5
8950echo "$as_me: error: conditional \"NETPLAY\" was never defined.
8951Usually this means the macro was only invoked conditionally." >&2;}
8952   { (exit 1); exit 1; }; }
8953fi
8954if test -z "${NETPLAY_TRUE}" && test -z "${NETPLAY_FALSE}"; then
8955  { { echo "$as_me:$LINENO: error: conditional \"NETPLAY\" was never defined.
8956Usually this means the macro was only invoked conditionally." >&5
8957echo "$as_me: error: conditional \"NETPLAY\" was never defined.
8958Usually this means the macro was only invoked conditionally." >&2;}
8959   { (exit 1); exit 1; }; }
8960fi
8961if test -z "${NETPLAY_TRUE}" && test -z "${NETPLAY_FALSE}"; then
8962  { { echo "$as_me:$LINENO: error: conditional \"NETPLAY\" was never defined.
8963Usually this means the macro was only invoked conditionally." >&5
8964echo "$as_me: error: conditional \"NETPLAY\" was never defined.
8965Usually this means the macro was only invoked conditionally." >&2;}
8966   { (exit 1); exit 1; }; }
8967fi
8968if test -z "${SDL_LINUX_TRUE}" && test -z "${SDL_LINUX_FALSE}"; then
8969  { { echo "$as_me:$LINENO: error: conditional \"SDL_LINUX\" was never defined.
8970Usually this means the macro was only invoked conditionally." >&5
8971echo "$as_me: error: conditional \"SDL_LINUX\" was never defined.
8972Usually this means the macro was only invoked conditionally." >&2;}
8973   { (exit 1); exit 1; }; }
8974fi
8975if test -z "${SDL_MIXER_LINUX_TRUE}" && test -z "${SDL_MIXER_LINUX_FALSE}"; then
8976  { { echo "$as_me:$LINENO: error: conditional \"SDL_MIXER_LINUX\" was never defined.
8977Usually this means the macro was only invoked conditionally." >&5
8978echo "$as_me: error: conditional \"SDL_MIXER_LINUX\" was never defined.
8979Usually this means the macro was only invoked conditionally." >&2;}
8980   { (exit 1); exit 1; }; }
8981fi
8982if test -z "${ZE_HCD_OGG_SUPPORT_TRUE}" && test -z "${ZE_HCD_OGG_SUPPORT_FALSE}"; then
8983  { { echo "$as_me:$LINENO: error: conditional \"ZE_HCD_OGG_SUPPORT\" was never defined.
8984Usually this means the macro was only invoked conditionally." >&5
8985echo "$as_me: error: conditional \"ZE_HCD_OGG_SUPPORT\" was never defined.
8986Usually this means the macro was only invoked conditionally." >&2;}
8987   { (exit 1); exit 1; }; }
8988fi
8989if test -z "${SDL_NET_LINUX_TRUE}" && test -z "${SDL_NET_LINUX_FALSE}"; then
8990  { { echo "$as_me:$LINENO: error: conditional \"SDL_NET_LINUX\" was never defined.
8991Usually this means the macro was only invoked conditionally." >&5
8992echo "$as_me: error: conditional \"SDL_NET_LINUX\" was never defined.
8993Usually this means the macro was only invoked conditionally." >&2;}
8994   { (exit 1); exit 1; }; }
8995fi
8996if test -z "${ALLEGRO_LINUX_TRUE}" && test -z "${ALLEGRO_LINUX_FALSE}"; then
8997  { { echo "$as_me:$LINENO: error: conditional \"ALLEGRO_LINUX\" was never defined.
8998Usually this means the macro was only invoked conditionally." >&5
8999echo "$as_me: error: conditional \"ALLEGRO_LINUX\" was never defined.
9000Usually this means the macro was only invoked conditionally." >&2;}
9001   { (exit 1); exit 1; }; }
9002fi
9003if test -z "${SDL_WIN32_TRUE}" && test -z "${SDL_WIN32_FALSE}"; then
9004  { { echo "$as_me:$LINENO: error: conditional \"SDL_WIN32\" was never defined.
9005Usually this means the macro was only invoked conditionally." >&5
9006echo "$as_me: error: conditional \"SDL_WIN32\" was never defined.
9007Usually this means the macro was only invoked conditionally." >&2;}
9008   { (exit 1); exit 1; }; }
9009fi
9010if test -z "${ALLEGRO_WIN32_TRUE}" && test -z "${ALLEGRO_WIN32_FALSE}"; then
9011  { { echo "$as_me:$LINENO: error: conditional \"ALLEGRO_WIN32\" was never defined.
9012Usually this means the macro was only invoked conditionally." >&5
9013echo "$as_me: error: conditional \"ALLEGRO_WIN32\" was never defined.
9014Usually this means the macro was only invoked conditionally." >&2;}
9015   { (exit 1); exit 1; }; }
9016fi
9017if test -z "${ALLEGRO_DJGPP_TRUE}" && test -z "${ALLEGRO_DJGPP_FALSE}"; then
9018  { { echo "$as_me:$LINENO: error: conditional \"ALLEGRO_DJGPP\" was never defined.
9019Usually this means the macro was only invoked conditionally." >&5
9020echo "$as_me: error: conditional \"ALLEGRO_DJGPP\" was never defined.
9021Usually this means the macro was only invoked conditionally." >&2;}
9022   { (exit 1); exit 1; }; }
9023fi
9024if test -z "${SDL_FREEBSD_TRUE}" && test -z "${SDL_FREEBSD_FALSE}"; then
9025  { { echo "$as_me:$LINENO: error: conditional \"SDL_FREEBSD\" was never defined.
9026Usually this means the macro was only invoked conditionally." >&5
9027echo "$as_me: error: conditional \"SDL_FREEBSD\" was never defined.
9028Usually this means the macro was only invoked conditionally." >&2;}
9029   { (exit 1); exit 1; }; }
9030fi
9031if test -z "${SDL_SOLARIS_TRUE}" && test -z "${SDL_SOLARIS_FALSE}"; then
9032  { { echo "$as_me:$LINENO: error: conditional \"SDL_SOLARIS\" was never defined.
9033Usually this means the macro was only invoked conditionally." >&5
9034echo "$as_me: error: conditional \"SDL_SOLARIS\" was never defined.
9035Usually this means the macro was only invoked conditionally." >&2;}
9036   { (exit 1); exit 1; }; }
9037fi
9038if test -z "${SDL_WIN32_TRUE}" && test -z "${SDL_WIN32_FALSE}"; then
9039  { { echo "$as_me:$LINENO: error: conditional \"SDL_WIN32\" was never defined.
9040Usually this means the macro was only invoked conditionally." >&5
9041echo "$as_me: error: conditional \"SDL_WIN32\" was never defined.
9042Usually this means the macro was only invoked conditionally." >&2;}
9043   { (exit 1); exit 1; }; }
9044fi
9045if test -z "${ALLEGRO_WIN32_TRUE}" && test -z "${ALLEGRO_WIN32_FALSE}"; then
9046  { { echo "$as_me:$LINENO: error: conditional \"ALLEGRO_WIN32\" was never defined.
9047Usually this means the macro was only invoked conditionally." >&5
9048echo "$as_me: error: conditional \"ALLEGRO_WIN32\" was never defined.
9049Usually this means the macro was only invoked conditionally." >&2;}
9050   { (exit 1); exit 1; }; }
9051fi
9052if test -z "${ALLEGRO_DJGPP_TRUE}" && test -z "${ALLEGRO_DJGPP_FALSE}"; then
9053  { { echo "$as_me:$LINENO: error: conditional \"ALLEGRO_DJGPP\" was never defined.
9054Usually this means the macro was only invoked conditionally." >&5
9055echo "$as_me: error: conditional \"ALLEGRO_DJGPP\" was never defined.
9056Usually this means the macro was only invoked conditionally." >&2;}
9057   { (exit 1); exit 1; }; }
9058fi
9059if test -z "${SDL_LINUX_TRUE}" && test -z "${SDL_LINUX_FALSE}"; then
9060  { { echo "$as_me:$LINENO: error: conditional \"SDL_LINUX\" was never defined.
9061Usually this means the macro was only invoked conditionally." >&5
9062echo "$as_me: error: conditional \"SDL_LINUX\" was never defined.
9063Usually this means the macro was only invoked conditionally." >&2;}
9064   { (exit 1); exit 1; }; }
9065fi
9066if test -z "${SDL_MIXER_LINUX_TRUE}" && test -z "${SDL_MIXER_LINUX_FALSE}"; then
9067  { { echo "$as_me:$LINENO: error: conditional \"SDL_MIXER_LINUX\" was never defined.
9068Usually this means the macro was only invoked conditionally." >&5
9069echo "$as_me: error: conditional \"SDL_MIXER_LINUX\" was never defined.
9070Usually this means the macro was only invoked conditionally." >&2;}
9071   { (exit 1); exit 1; }; }
9072fi
9073if test -z "${ZE_HCD_OGG_SUPPORT_TRUE}" && test -z "${ZE_HCD_OGG_SUPPORT_FALSE}"; then
9074  { { echo "$as_me:$LINENO: error: conditional \"ZE_HCD_OGG_SUPPORT\" was never defined.
9075Usually this means the macro was only invoked conditionally." >&5
9076echo "$as_me: error: conditional \"ZE_HCD_OGG_SUPPORT\" was never defined.
9077Usually this means the macro was only invoked conditionally." >&2;}
9078   { (exit 1); exit 1; }; }
9079fi
9080if test -z "${ALLEGRO_LINUX_TRUE}" && test -z "${ALLEGRO_LINUX_FALSE}"; then
9081  { { echo "$as_me:$LINENO: error: conditional \"ALLEGRO_LINUX\" was never defined.
9082Usually this means the macro was only invoked conditionally." >&5
9083echo "$as_me: error: conditional \"ALLEGRO_LINUX\" was never defined.
9084Usually this means the macro was only invoked conditionally." >&2;}
9085   { (exit 1); exit 1; }; }
9086fi
9087if test -z "${SDL_FREEBSD_TRUE}" && test -z "${SDL_FREEBSD_FALSE}"; then
9088  { { echo "$as_me:$LINENO: error: conditional \"SDL_FREEBSD\" was never defined.
9089Usually this means the macro was only invoked conditionally." >&5
9090echo "$as_me: error: conditional \"SDL_FREEBSD\" was never defined.
9091Usually this means the macro was only invoked conditionally." >&2;}
9092   { (exit 1); exit 1; }; }
9093fi
9094if test -z "${SDL_SOLARIS_TRUE}" && test -z "${SDL_SOLARIS_FALSE}"; then
9095  { { echo "$as_me:$LINENO: error: conditional \"SDL_SOLARIS\" was never defined.
9096Usually this means the macro was only invoked conditionally." >&5
9097echo "$as_me: error: conditional \"SDL_SOLARIS\" was never defined.
9098Usually this means the macro was only invoked conditionally." >&2;}
9099   { (exit 1); exit 1; }; }
9100fi
9101
9102: ${CONFIG_STATUS=./config.status}
9103ac_clean_files_save=$ac_clean_files
9104ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9105{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9106echo "$as_me: creating $CONFIG_STATUS" >&6;}
9107cat >$CONFIG_STATUS <<_ACEOF
9108#! $SHELL
9109# Generated by $as_me.
9110# Run this file to recreate the current configuration.
9111# Compiler output produced by configure, useful for debugging
9112# configure, is in config.log if it exists.
9113
9114debug=false
9115ac_cs_recheck=false
9116ac_cs_silent=false
9117SHELL=\${CONFIG_SHELL-$SHELL}
9118_ACEOF
9119
9120cat >>$CONFIG_STATUS <<\_ACEOF
9121## --------------------- ##
9122## M4sh Initialization.  ##
9123## --------------------- ##
9124
9125# Be Bourne compatible
9126if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9127  emulate sh
9128  NULLCMD=:
9129  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9130  # is contrary to our usage.  Disable this feature.
9131  alias -g '${1+"$@"}'='"$@"'
9132elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9133  set -o posix
9134fi
9135DUALCASE=1; export DUALCASE # for MKS sh
9136
9137# Support unset when possible.
9138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9139  as_unset=unset
9140else
9141  as_unset=false
9142fi
9143
9144
9145# Work around bugs in pre-3.0 UWIN ksh.
9146$as_unset ENV MAIL MAILPATH
9147PS1='$ '
9148PS2='> '
9149PS4='+ '
9150
9151# NLS nuisances.
9152for as_var in \
9153  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9154  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9155  LC_TELEPHONE LC_TIME
9156do
9157  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9158    eval $as_var=C; export $as_var
9159  else
9160    $as_unset $as_var
9161  fi
9162done
9163
9164# Required to use basename.
9165if expr a : '\(a\)' >/dev/null 2>&1; then
9166  as_expr=expr
9167else
9168  as_expr=false
9169fi
9170
9171if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9172  as_basename=basename
9173else
9174  as_basename=false
9175fi
9176
9177
9178# Name of the executable.
9179as_me=`$as_basename "$0" ||
9180$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9181	 X"$0" : 'X\(//\)$' \| \
9182	 X"$0" : 'X\(/\)$' \| \
9183	 .     : '\(.\)' 2>/dev/null ||
9184echo X/"$0" |
9185    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9186  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9187  	  /^X\/\(\/\).*/{ s//\1/; q; }
9188  	  s/.*/./; q'`
9189
9190
9191# PATH needs CR, and LINENO needs CR and PATH.
9192# Avoid depending upon Character Ranges.
9193as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9194as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9195as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9196as_cr_digits='0123456789'
9197as_cr_alnum=$as_cr_Letters$as_cr_digits
9198
9199# The user is always right.
9200if test "${PATH_SEPARATOR+set}" != set; then
9201  echo "#! /bin/sh" >conf$$.sh
9202  echo  "exit 0"   >>conf$$.sh
9203  chmod +x conf$$.sh
9204  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9205    PATH_SEPARATOR=';'
9206  else
9207    PATH_SEPARATOR=:
9208  fi
9209  rm -f conf$$.sh
9210fi
9211
9212
9213  as_lineno_1=$LINENO
9214  as_lineno_2=$LINENO
9215  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9216  test "x$as_lineno_1" != "x$as_lineno_2" &&
9217  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9218  # Find who we are.  Look in the path if we contain no path at all
9219  # relative or not.
9220  case $0 in
9221    *[\\/]* ) as_myself=$0 ;;
9222    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223for as_dir in $PATH
9224do
9225  IFS=$as_save_IFS
9226  test -z "$as_dir" && as_dir=.
9227  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9228done
9229
9230       ;;
9231  esac
9232  # We did not find ourselves, most probably we were run as `sh COMMAND'
9233  # in which case we are not to be found in the path.
9234  if test "x$as_myself" = x; then
9235    as_myself=$0
9236  fi
9237  if test ! -f "$as_myself"; then
9238    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9239echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9240   { (exit 1); exit 1; }; }
9241  fi
9242  case $CONFIG_SHELL in
9243  '')
9244    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9246do
9247  IFS=$as_save_IFS
9248  test -z "$as_dir" && as_dir=.
9249  for as_base in sh bash ksh sh5; do
9250	 case $as_dir in
9251	 /*)
9252	   if ("$as_dir/$as_base" -c '
9253  as_lineno_1=$LINENO
9254  as_lineno_2=$LINENO
9255  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9256  test "x$as_lineno_1" != "x$as_lineno_2" &&
9257  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9258	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9259	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9260	     CONFIG_SHELL=$as_dir/$as_base
9261	     export CONFIG_SHELL
9262	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9263	   fi;;
9264	 esac
9265       done
9266done
9267;;
9268  esac
9269
9270  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9271  # uniformly replaced by the line number.  The first 'sed' inserts a
9272  # line-number line before each line; the second 'sed' does the real
9273  # work.  The second script uses 'N' to pair each line-number line
9274  # with the numbered line, and appends trailing '-' during
9275  # substitution so that $LINENO is not a special case at line end.
9276  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9277  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9278  sed '=' <$as_myself |
9279    sed '
9280      N
9281      s,$,-,
9282      : loop
9283      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9284      t loop
9285      s,-$,,
9286      s,^['$as_cr_digits']*\n,,
9287    ' >$as_me.lineno &&
9288  chmod +x $as_me.lineno ||
9289    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9290echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9291   { (exit 1); exit 1; }; }
9292
9293  # Don't try to exec as it changes $[0], causing all sort of problems
9294  # (the dirname of $[0] is not the place where we might find the
9295  # original and so on.  Autoconf is especially sensible to this).
9296  . ./$as_me.lineno
9297  # Exit status is that of the last command.
9298  exit
9299}
9300
9301
9302case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9303  *c*,-n*) ECHO_N= ECHO_C='
9304' ECHO_T='	' ;;
9305  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9306  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9307esac
9308
9309if expr a : '\(a\)' >/dev/null 2>&1; then
9310  as_expr=expr
9311else
9312  as_expr=false
9313fi
9314
9315rm -f conf$$ conf$$.exe conf$$.file
9316echo >conf$$.file
9317if ln -s conf$$.file conf$$ 2>/dev/null; then
9318  # We could just check for DJGPP; but this test a) works b) is more generic
9319  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9320  if test -f conf$$.exe; then
9321    # Don't use ln at all; we don't have any links
9322    as_ln_s='cp -p'
9323  else
9324    as_ln_s='ln -s'
9325  fi
9326elif ln conf$$.file conf$$ 2>/dev/null; then
9327  as_ln_s=ln
9328else
9329  as_ln_s='cp -p'
9330fi
9331rm -f conf$$ conf$$.exe conf$$.file
9332
9333if mkdir -p . 2>/dev/null; then
9334  as_mkdir_p=:
9335else
9336  test -d ./-p && rmdir ./-p
9337  as_mkdir_p=false
9338fi
9339
9340as_executable_p="test -f"
9341
9342# Sed expression to map a string onto a valid CPP name.
9343as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9344
9345# Sed expression to map a string onto a valid variable name.
9346as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9347
9348
9349# IFS
9350# We need space, tab and new line, in precisely that order.
9351as_nl='
9352'
9353IFS=" 	$as_nl"
9354
9355# CDPATH.
9356$as_unset CDPATH
9357
9358exec 6>&1
9359
9360# Open the log real soon, to keep \$[0] and so on meaningful, and to
9361# report actual input values of CONFIG_FILES etc. instead of their
9362# values after options handling.  Logging --version etc. is OK.
9363exec 5>>config.log
9364{
9365  echo
9366  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9367## Running $as_me. ##
9368_ASBOX
9369} >&5
9370cat >&5 <<_CSEOF
9371
9372This file was extended by hugo $as_me 2.12, which was
9373generated by GNU Autoconf 2.59.  Invocation command line was
9374
9375  CONFIG_FILES    = $CONFIG_FILES
9376  CONFIG_HEADERS  = $CONFIG_HEADERS
9377  CONFIG_LINKS    = $CONFIG_LINKS
9378  CONFIG_COMMANDS = $CONFIG_COMMANDS
9379  $ $0 $@
9380
9381_CSEOF
9382echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9383echo >&5
9384_ACEOF
9385
9386# Files that config.status was made for.
9387if test -n "$ac_config_files"; then
9388  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9389fi
9390
9391if test -n "$ac_config_headers"; then
9392  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9393fi
9394
9395if test -n "$ac_config_links"; then
9396  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9397fi
9398
9399if test -n "$ac_config_commands"; then
9400  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9401fi
9402
9403cat >>$CONFIG_STATUS <<\_ACEOF
9404
9405ac_cs_usage="\
9406\`$as_me' instantiates files from templates according to the
9407current configuration.
9408
9409Usage: $0 [OPTIONS] [FILE]...
9410
9411  -h, --help       print this help, then exit
9412  -V, --version    print version number, then exit
9413  -q, --quiet      do not print progress messages
9414  -d, --debug      don't remove temporary files
9415      --recheck    update $as_me by reconfiguring in the same conditions
9416  --file=FILE[:TEMPLATE]
9417		   instantiate the configuration file FILE
9418  --header=FILE[:TEMPLATE]
9419		   instantiate the configuration header FILE
9420
9421Configuration files:
9422$config_files
9423
9424Configuration headers:
9425$config_headers
9426
9427Configuration commands:
9428$config_commands
9429
9430Report bugs to <bug-autoconf@gnu.org>."
9431_ACEOF
9432
9433cat >>$CONFIG_STATUS <<_ACEOF
9434ac_cs_version="\\
9435hugo config.status 2.12
9436configured by $0, generated by GNU Autoconf 2.59,
9437  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9438
9439Copyright (C) 2003 Free Software Foundation, Inc.
9440This config.status script is free software; the Free Software Foundation
9441gives unlimited permission to copy, distribute and modify it."
9442srcdir=$srcdir
9443INSTALL="$INSTALL"
9444_ACEOF
9445
9446cat >>$CONFIG_STATUS <<\_ACEOF
9447# If no file are specified by the user, then we need to provide default
9448# value.  By we need to know if files were specified by the user.
9449ac_need_defaults=:
9450while test $# != 0
9451do
9452  case $1 in
9453  --*=*)
9454    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9455    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9456    ac_shift=:
9457    ;;
9458  -*)
9459    ac_option=$1
9460    ac_optarg=$2
9461    ac_shift=shift
9462    ;;
9463  *) # This is not an option, so the user has probably given explicit
9464     # arguments.
9465     ac_option=$1
9466     ac_need_defaults=false;;
9467  esac
9468
9469  case $ac_option in
9470  # Handling of the options.
9471_ACEOF
9472cat >>$CONFIG_STATUS <<\_ACEOF
9473  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9474    ac_cs_recheck=: ;;
9475  --version | --vers* | -V )
9476    echo "$ac_cs_version"; exit 0 ;;
9477  --he | --h)
9478    # Conflict between --help and --header
9479    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9480Try \`$0 --help' for more information." >&5
9481echo "$as_me: error: ambiguous option: $1
9482Try \`$0 --help' for more information." >&2;}
9483   { (exit 1); exit 1; }; };;
9484  --help | --hel | -h )
9485    echo "$ac_cs_usage"; exit 0 ;;
9486  --debug | --d* | -d )
9487    debug=: ;;
9488  --file | --fil | --fi | --f )
9489    $ac_shift
9490    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9491    ac_need_defaults=false;;
9492  --header | --heade | --head | --hea )
9493    $ac_shift
9494    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9495    ac_need_defaults=false;;
9496  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9497  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9498    ac_cs_silent=: ;;
9499
9500  # This is an error.
9501  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9502Try \`$0 --help' for more information." >&5
9503echo "$as_me: error: unrecognized option: $1
9504Try \`$0 --help' for more information." >&2;}
9505   { (exit 1); exit 1; }; } ;;
9506
9507  *) ac_config_targets="$ac_config_targets $1" ;;
9508
9509  esac
9510  shift
9511done
9512
9513ac_configure_extra_args=
9514
9515if $ac_cs_silent; then
9516  exec 6>/dev/null
9517  ac_configure_extra_args="$ac_configure_extra_args --silent"
9518fi
9519
9520_ACEOF
9521cat >>$CONFIG_STATUS <<_ACEOF
9522if \$ac_cs_recheck; then
9523  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9524  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9525fi
9526
9527_ACEOF
9528
9529cat >>$CONFIG_STATUS <<_ACEOF
9530#
9531# INIT-COMMANDS section.
9532#
9533
9534AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9535
9536_ACEOF
9537
9538
9539
9540cat >>$CONFIG_STATUS <<\_ACEOF
9541for ac_config_target in $ac_config_targets
9542do
9543  case "$ac_config_target" in
9544  # Handling of arguments.
9545  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9546  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9547  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9548  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9549echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9550   { (exit 1); exit 1; }; };;
9551  esac
9552done
9553
9554# If the user did not use the arguments to specify the items to instantiate,
9555# then the envvar interface is used.  Set only those that are not.
9556# We use the long form for the default assignment because of an extremely
9557# bizarre bug on SunOS 4.1.3.
9558if $ac_need_defaults; then
9559  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9560  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9561  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9562fi
9563
9564# Have a temporary directory for convenience.  Make it in the build tree
9565# simply because there is no reason to put it here, and in addition,
9566# creating and moving files from /tmp can sometimes cause problems.
9567# Create a temporary directory, and hook for its removal unless debugging.
9568$debug ||
9569{
9570  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9571  trap '{ (exit 1); exit 1; }' 1 2 13 15
9572}
9573
9574# Create a (secure) tmp directory for tmp files.
9575
9576{
9577  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9578  test -n "$tmp" && test -d "$tmp"
9579}  ||
9580{
9581  tmp=./confstat$$-$RANDOM
9582  (umask 077 && mkdir $tmp)
9583} ||
9584{
9585   echo "$me: cannot create a temporary directory in ." >&2
9586   { (exit 1); exit 1; }
9587}
9588
9589_ACEOF
9590
9591cat >>$CONFIG_STATUS <<_ACEOF
9592
9593#
9594# CONFIG_FILES section.
9595#
9596
9597# No need to generate the scripts if there are no CONFIG_FILES.
9598# This happens for instance when ./config.status config.h
9599if test -n "\$CONFIG_FILES"; then
9600  # Protect against being on the right side of a sed subst in config.status.
9601  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9602   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9603s,@SHELL@,$SHELL,;t t
9604s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9605s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9606s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9607s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9608s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9609s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9610s,@exec_prefix@,$exec_prefix,;t t
9611s,@prefix@,$prefix,;t t
9612s,@program_transform_name@,$program_transform_name,;t t
9613s,@bindir@,$bindir,;t t
9614s,@sbindir@,$sbindir,;t t
9615s,@libexecdir@,$libexecdir,;t t
9616s,@datadir@,$datadir,;t t
9617s,@sysconfdir@,$sysconfdir,;t t
9618s,@sharedstatedir@,$sharedstatedir,;t t
9619s,@localstatedir@,$localstatedir,;t t
9620s,@libdir@,$libdir,;t t
9621s,@includedir@,$includedir,;t t
9622s,@oldincludedir@,$oldincludedir,;t t
9623s,@infodir@,$infodir,;t t
9624s,@mandir@,$mandir,;t t
9625s,@build_alias@,$build_alias,;t t
9626s,@host_alias@,$host_alias,;t t
9627s,@target_alias@,$target_alias,;t t
9628s,@DEFS@,$DEFS,;t t
9629s,@ECHO_C@,$ECHO_C,;t t
9630s,@ECHO_N@,$ECHO_N,;t t
9631s,@ECHO_T@,$ECHO_T,;t t
9632s,@LIBS@,$LIBS,;t t
9633s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9634s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9635s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9636s,@CYGPATH_W@,$CYGPATH_W,;t t
9637s,@PACKAGE@,$PACKAGE,;t t
9638s,@VERSION@,$VERSION,;t t
9639s,@ACLOCAL@,$ACLOCAL,;t t
9640s,@AUTOCONF@,$AUTOCONF,;t t
9641s,@AUTOMAKE@,$AUTOMAKE,;t t
9642s,@AUTOHEADER@,$AUTOHEADER,;t t
9643s,@MAKEINFO@,$MAKEINFO,;t t
9644s,@AMTAR@,$AMTAR,;t t
9645s,@install_sh@,$install_sh,;t t
9646s,@STRIP@,$STRIP,;t t
9647s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9648s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9649s,@AWK@,$AWK,;t t
9650s,@SET_MAKE@,$SET_MAKE,;t t
9651s,@am__leading_dot@,$am__leading_dot,;t t
9652s,@build@,$build,;t t
9653s,@build_cpu@,$build_cpu,;t t
9654s,@build_vendor@,$build_vendor,;t t
9655s,@build_os@,$build_os,;t t
9656s,@host@,$host,;t t
9657s,@host_cpu@,$host_cpu,;t t
9658s,@host_vendor@,$host_vendor,;t t
9659s,@host_os@,$host_os,;t t
9660s,@target@,$target,;t t
9661s,@target_cpu@,$target_cpu,;t t
9662s,@target_vendor@,$target_vendor,;t t
9663s,@target_os@,$target_os,;t t
9664s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9665s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9666s,@MAINT@,$MAINT,;t t
9667s,@CC@,$CC,;t t
9668s,@CFLAGS@,$CFLAGS,;t t
9669s,@LDFLAGS@,$LDFLAGS,;t t
9670s,@CPPFLAGS@,$CPPFLAGS,;t t
9671s,@ac_ct_CC@,$ac_ct_CC,;t t
9672s,@EXEEXT@,$EXEEXT,;t t
9673s,@OBJEXT@,$OBJEXT,;t t
9674s,@DEPDIR@,$DEPDIR,;t t
9675s,@am__include@,$am__include,;t t
9676s,@am__quote@,$am__quote,;t t
9677s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9678s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9679s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9680s,@CCDEPMODE@,$CCDEPMODE,;t t
9681s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9682s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9683s,@LN_S@,$LN_S,;t t
9684s,@HAVE_LYX@,$HAVE_LYX,;t t
9685s,@HAVE_LATEX2HTML@,$HAVE_LATEX2HTML,;t t
9686s,@HAVE_SED@,$HAVE_SED,;t t
9687s,@HAVE_TIDY@,$HAVE_TIDY,;t t
9688s,@HAVE_TOOLS_FOR_TXT_DOC_TRUE@,$HAVE_TOOLS_FOR_TXT_DOC_TRUE,;t t
9689s,@HAVE_TOOLS_FOR_TXT_DOC_FALSE@,$HAVE_TOOLS_FOR_TXT_DOC_FALSE,;t t
9690s,@HAVE_TOOLS_FOR_HTML_DOC_TRUE@,$HAVE_TOOLS_FOR_HTML_DOC_TRUE,;t t
9691s,@HAVE_TOOLS_FOR_HTML_DOC_FALSE@,$HAVE_TOOLS_FOR_HTML_DOC_FALSE,;t t
9692s,@AVAILABLE_DOC_TARGETS@,$AVAILABLE_DOC_TARGETS,;t t
9693s,@ZLIB_TRUE@,$ZLIB_TRUE,;t t
9694s,@ZLIB_FALSE@,$ZLIB_FALSE,;t t
9695s,@SDL_CONFIG@,$SDL_CONFIG,;t t
9696s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
9697s,@SDL_LIBS@,$SDL_LIBS,;t t
9698s,@PKG_CONFIG@,$PKG_CONFIG,;t t
9699s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
9700s,@GTK_LIBS@,$GTK_LIBS,;t t
9701s,@GTK_TRUE@,$GTK_TRUE,;t t
9702s,@GTK_FALSE@,$GTK_FALSE,;t t
9703s,@CPP@,$CPP,;t t
9704s,@EGREP@,$EGREP,;t t
9705s,@ALLOCA@,$ALLOCA,;t t
9706s,@NETPLAY_TRUE@,$NETPLAY_TRUE,;t t
9707s,@NETPLAY_FALSE@,$NETPLAY_FALSE,;t t
9708s,@SDL_LINUX_TRUE@,$SDL_LINUX_TRUE,;t t
9709s,@SDL_LINUX_FALSE@,$SDL_LINUX_FALSE,;t t
9710s,@SDL_MIXER_LINUX_TRUE@,$SDL_MIXER_LINUX_TRUE,;t t
9711s,@SDL_MIXER_LINUX_FALSE@,$SDL_MIXER_LINUX_FALSE,;t t
9712s,@ZE_HCD_OGG_SUPPORT_TRUE@,$ZE_HCD_OGG_SUPPORT_TRUE,;t t
9713s,@ZE_HCD_OGG_SUPPORT_FALSE@,$ZE_HCD_OGG_SUPPORT_FALSE,;t t
9714s,@SDL_NET_LINUX_TRUE@,$SDL_NET_LINUX_TRUE,;t t
9715s,@SDL_NET_LINUX_FALSE@,$SDL_NET_LINUX_FALSE,;t t
9716s,@ALLEGRO_LINUX_TRUE@,$ALLEGRO_LINUX_TRUE,;t t
9717s,@ALLEGRO_LINUX_FALSE@,$ALLEGRO_LINUX_FALSE,;t t
9718s,@SDL_WIN32_TRUE@,$SDL_WIN32_TRUE,;t t
9719s,@SDL_WIN32_FALSE@,$SDL_WIN32_FALSE,;t t
9720s,@ALLEGRO_WIN32_TRUE@,$ALLEGRO_WIN32_TRUE,;t t
9721s,@ALLEGRO_WIN32_FALSE@,$ALLEGRO_WIN32_FALSE,;t t
9722s,@ALLEGRO_DJGPP_TRUE@,$ALLEGRO_DJGPP_TRUE,;t t
9723s,@ALLEGRO_DJGPP_FALSE@,$ALLEGRO_DJGPP_FALSE,;t t
9724s,@SDL_FREEBSD_TRUE@,$SDL_FREEBSD_TRUE,;t t
9725s,@SDL_FREEBSD_FALSE@,$SDL_FREEBSD_FALSE,;t t
9726s,@SDL_SOLARIS_TRUE@,$SDL_SOLARIS_TRUE,;t t
9727s,@SDL_SOLARIS_FALSE@,$SDL_SOLARIS_FALSE,;t t
9728s,@HUGO_TARGET_MACHINE@,$HUGO_TARGET_MACHINE,;t t
9729s,@HUGO_TARGET_LIBRARY@,$HUGO_TARGET_LIBRARY,;t t
9730s,@HUGO_TARGET_LIBRARY_LD@,$HUGO_TARGET_LIBRARY_LD,;t t
9731s,@LIBOBJS@,$LIBOBJS,;t t
9732s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9733CEOF
9734
9735_ACEOF
9736
9737  cat >>$CONFIG_STATUS <<\_ACEOF
9738  # Split the substitutions into bite-sized pieces for seds with
9739  # small command number limits, like on Digital OSF/1 and HP-UX.
9740  ac_max_sed_lines=48
9741  ac_sed_frag=1 # Number of current file.
9742  ac_beg=1 # First line for current file.
9743  ac_end=$ac_max_sed_lines # Line after last line for current file.
9744  ac_more_lines=:
9745  ac_sed_cmds=
9746  while $ac_more_lines; do
9747    if test $ac_beg -gt 1; then
9748      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9749    else
9750      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9751    fi
9752    if test ! -s $tmp/subs.frag; then
9753      ac_more_lines=false
9754    else
9755      # The purpose of the label and of the branching condition is to
9756      # speed up the sed processing (if there are no `@' at all, there
9757      # is no need to browse any of the substitutions).
9758      # These are the two extra sed commands mentioned above.
9759      (echo ':t
9760  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9761      if test -z "$ac_sed_cmds"; then
9762	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9763      else
9764	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9765      fi
9766      ac_sed_frag=`expr $ac_sed_frag + 1`
9767      ac_beg=$ac_end
9768      ac_end=`expr $ac_end + $ac_max_sed_lines`
9769    fi
9770  done
9771  if test -z "$ac_sed_cmds"; then
9772    ac_sed_cmds=cat
9773  fi
9774fi # test -n "$CONFIG_FILES"
9775
9776_ACEOF
9777cat >>$CONFIG_STATUS <<\_ACEOF
9778for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9779  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9780  case $ac_file in
9781  - | *:- | *:-:* ) # input from stdin
9782	cat >$tmp/stdin
9783	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9784	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9785  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9786	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9787  * )   ac_file_in=$ac_file.in ;;
9788  esac
9789
9790  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9791  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9792$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9793	 X"$ac_file" : 'X\(//\)[^/]' \| \
9794	 X"$ac_file" : 'X\(//\)$' \| \
9795	 X"$ac_file" : 'X\(/\)' \| \
9796	 .     : '\(.\)' 2>/dev/null ||
9797echo X"$ac_file" |
9798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9799  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9800  	  /^X\(\/\/\)$/{ s//\1/; q; }
9801  	  /^X\(\/\).*/{ s//\1/; q; }
9802  	  s/.*/./; q'`
9803  { if $as_mkdir_p; then
9804    mkdir -p "$ac_dir"
9805  else
9806    as_dir="$ac_dir"
9807    as_dirs=
9808    while test ! -d "$as_dir"; do
9809      as_dirs="$as_dir $as_dirs"
9810      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9812	 X"$as_dir" : 'X\(//\)[^/]' \| \
9813	 X"$as_dir" : 'X\(//\)$' \| \
9814	 X"$as_dir" : 'X\(/\)' \| \
9815	 .     : '\(.\)' 2>/dev/null ||
9816echo X"$as_dir" |
9817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9818  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9819  	  /^X\(\/\/\)$/{ s//\1/; q; }
9820  	  /^X\(\/\).*/{ s//\1/; q; }
9821  	  s/.*/./; q'`
9822    done
9823    test ! -n "$as_dirs" || mkdir $as_dirs
9824  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9825echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9826   { (exit 1); exit 1; }; }; }
9827
9828  ac_builddir=.
9829
9830if test "$ac_dir" != .; then
9831  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9832  # A "../" for each directory in $ac_dir_suffix.
9833  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9834else
9835  ac_dir_suffix= ac_top_builddir=
9836fi
9837
9838case $srcdir in
9839  .)  # No --srcdir option.  We are building in place.
9840    ac_srcdir=.
9841    if test -z "$ac_top_builddir"; then
9842       ac_top_srcdir=.
9843    else
9844       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9845    fi ;;
9846  [\\/]* | ?:[\\/]* )  # Absolute path.
9847    ac_srcdir=$srcdir$ac_dir_suffix;
9848    ac_top_srcdir=$srcdir ;;
9849  *) # Relative path.
9850    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9851    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9852esac
9853
9854# Do not use `cd foo && pwd` to compute absolute paths, because
9855# the directories may not exist.
9856case `pwd` in
9857.) ac_abs_builddir="$ac_dir";;
9858*)
9859  case "$ac_dir" in
9860  .) ac_abs_builddir=`pwd`;;
9861  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9862  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9863  esac;;
9864esac
9865case $ac_abs_builddir in
9866.) ac_abs_top_builddir=${ac_top_builddir}.;;
9867*)
9868  case ${ac_top_builddir}. in
9869  .) ac_abs_top_builddir=$ac_abs_builddir;;
9870  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9871  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9872  esac;;
9873esac
9874case $ac_abs_builddir in
9875.) ac_abs_srcdir=$ac_srcdir;;
9876*)
9877  case $ac_srcdir in
9878  .) ac_abs_srcdir=$ac_abs_builddir;;
9879  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9880  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9881  esac;;
9882esac
9883case $ac_abs_builddir in
9884.) ac_abs_top_srcdir=$ac_top_srcdir;;
9885*)
9886  case $ac_top_srcdir in
9887  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9888  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9889  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9890  esac;;
9891esac
9892
9893
9894  case $INSTALL in
9895  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9896  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9897  esac
9898
9899  # Let's still pretend it is `configure' which instantiates (i.e., don't
9900  # use $as_me), people would be surprised to read:
9901  #    /* config.h.  Generated by config.status.  */
9902  if test x"$ac_file" = x-; then
9903    configure_input=
9904  else
9905    configure_input="$ac_file.  "
9906  fi
9907  configure_input=$configure_input"Generated from `echo $ac_file_in |
9908				     sed 's,.*/,,'` by configure."
9909
9910  # First look for the input files in the build tree, otherwise in the
9911  # src tree.
9912  ac_file_inputs=`IFS=:
9913    for f in $ac_file_in; do
9914      case $f in
9915      -) echo $tmp/stdin ;;
9916      [\\/$]*)
9917	 # Absolute (can't be DOS-style, as IFS=:)
9918	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9919echo "$as_me: error: cannot find input file: $f" >&2;}
9920   { (exit 1); exit 1; }; }
9921	 echo "$f";;
9922      *) # Relative
9923	 if test -f "$f"; then
9924	   # Build tree
9925	   echo "$f"
9926	 elif test -f "$srcdir/$f"; then
9927	   # Source tree
9928	   echo "$srcdir/$f"
9929	 else
9930	   # /dev/null tree
9931	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9932echo "$as_me: error: cannot find input file: $f" >&2;}
9933   { (exit 1); exit 1; }; }
9934	 fi;;
9935      esac
9936    done` || { (exit 1); exit 1; }
9937
9938  if test x"$ac_file" != x-; then
9939    { echo "$as_me:$LINENO: creating $ac_file" >&5
9940echo "$as_me: creating $ac_file" >&6;}
9941    rm -f "$ac_file"
9942  fi
9943_ACEOF
9944cat >>$CONFIG_STATUS <<_ACEOF
9945  sed "$ac_vpsub
9946$extrasub
9947_ACEOF
9948cat >>$CONFIG_STATUS <<\_ACEOF
9949:t
9950/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9951s,@configure_input@,$configure_input,;t t
9952s,@srcdir@,$ac_srcdir,;t t
9953s,@abs_srcdir@,$ac_abs_srcdir,;t t
9954s,@top_srcdir@,$ac_top_srcdir,;t t
9955s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9956s,@builddir@,$ac_builddir,;t t
9957s,@abs_builddir@,$ac_abs_builddir,;t t
9958s,@top_builddir@,$ac_top_builddir,;t t
9959s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9960s,@INSTALL@,$ac_INSTALL,;t t
9961" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9962  rm -f $tmp/stdin
9963  if test x"$ac_file" != x-; then
9964    mv $tmp/out $ac_file
9965  else
9966    cat $tmp/out
9967    rm -f $tmp/out
9968  fi
9969
9970done
9971_ACEOF
9972cat >>$CONFIG_STATUS <<\_ACEOF
9973
9974#
9975# CONFIG_HEADER section.
9976#
9977
9978# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9979# NAME is the cpp macro being defined and VALUE is the value it is being given.
9980#
9981# ac_d sets the value in "#define NAME VALUE" lines.
9982ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9983ac_dB='[	 ].*$,\1#\2'
9984ac_dC=' '
9985ac_dD=',;t'
9986# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9987ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9988ac_uB='$,\1#\2define\3'
9989ac_uC=' '
9990ac_uD=',;t'
9991
9992for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9993  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9994  case $ac_file in
9995  - | *:- | *:-:* ) # input from stdin
9996	cat >$tmp/stdin
9997	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9998	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9999  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10000	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10001  * )   ac_file_in=$ac_file.in ;;
10002  esac
10003
10004  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10005echo "$as_me: creating $ac_file" >&6;}
10006
10007  # First look for the input files in the build tree, otherwise in the
10008  # src tree.
10009  ac_file_inputs=`IFS=:
10010    for f in $ac_file_in; do
10011      case $f in
10012      -) echo $tmp/stdin ;;
10013      [\\/$]*)
10014	 # Absolute (can't be DOS-style, as IFS=:)
10015	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10016echo "$as_me: error: cannot find input file: $f" >&2;}
10017   { (exit 1); exit 1; }; }
10018	 # Do quote $f, to prevent DOS paths from being IFS'd.
10019	 echo "$f";;
10020      *) # Relative
10021	 if test -f "$f"; then
10022	   # Build tree
10023	   echo "$f"
10024	 elif test -f "$srcdir/$f"; then
10025	   # Source tree
10026	   echo "$srcdir/$f"
10027	 else
10028	   # /dev/null tree
10029	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10030echo "$as_me: error: cannot find input file: $f" >&2;}
10031   { (exit 1); exit 1; }; }
10032	 fi;;
10033      esac
10034    done` || { (exit 1); exit 1; }
10035  # Remove the trailing spaces.
10036  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10037
10038_ACEOF
10039
10040# Transform confdefs.h into two sed scripts, `conftest.defines' and
10041# `conftest.undefs', that substitutes the proper values into
10042# config.h.in to produce config.h.  The first handles `#define'
10043# templates, and the second `#undef' templates.
10044# And first: Protect against being on the right side of a sed subst in
10045# config.status.  Protect against being in an unquoted here document
10046# in config.status.
10047rm -f conftest.defines conftest.undefs
10048# Using a here document instead of a string reduces the quoting nightmare.
10049# Putting comments in sed scripts is not portable.
10050#
10051# `end' is used to avoid that the second main sed command (meant for
10052# 0-ary CPP macros) applies to n-ary macro definitions.
10053# See the Autoconf documentation for `clear'.
10054cat >confdef2sed.sed <<\_ACEOF
10055s/[\\&,]/\\&/g
10056s,[\\$`],\\&,g
10057t clear
10058: clear
10059s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10060t end
10061s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10062: end
10063_ACEOF
10064# If some macros were called several times there might be several times
10065# the same #defines, which is useless.  Nevertheless, we may not want to
10066# sort them, since we want the *last* AC-DEFINE to be honored.
10067uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10068sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10069rm -f confdef2sed.sed
10070
10071# This sed command replaces #undef with comments.  This is necessary, for
10072# example, in the case of _POSIX_SOURCE, which is predefined and required
10073# on some systems where configure will not decide to define it.
10074cat >>conftest.undefs <<\_ACEOF
10075s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10076_ACEOF
10077
10078# Break up conftest.defines because some shells have a limit on the size
10079# of here documents, and old seds have small limits too (100 cmds).
10080echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10081echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10082echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10083echo '  :' >>$CONFIG_STATUS
10084rm -f conftest.tail
10085while grep . conftest.defines >/dev/null
10086do
10087  # Write a limited-size here document to $tmp/defines.sed.
10088  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10089  # Speed up: don't consider the non `#define' lines.
10090  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10091  # Work around the forget-to-reset-the-flag bug.
10092  echo 't clr' >>$CONFIG_STATUS
10093  echo ': clr' >>$CONFIG_STATUS
10094  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10095  echo 'CEOF
10096  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10097  rm -f $tmp/in
10098  mv $tmp/out $tmp/in
10099' >>$CONFIG_STATUS
10100  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10101  rm -f conftest.defines
10102  mv conftest.tail conftest.defines
10103done
10104rm -f conftest.defines
10105echo '  fi # grep' >>$CONFIG_STATUS
10106echo >>$CONFIG_STATUS
10107
10108# Break up conftest.undefs because some shells have a limit on the size
10109# of here documents, and old seds have small limits too (100 cmds).
10110echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10111rm -f conftest.tail
10112while grep . conftest.undefs >/dev/null
10113do
10114  # Write a limited-size here document to $tmp/undefs.sed.
10115  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10116  # Speed up: don't consider the non `#undef'
10117  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10118  # Work around the forget-to-reset-the-flag bug.
10119  echo 't clr' >>$CONFIG_STATUS
10120  echo ': clr' >>$CONFIG_STATUS
10121  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10122  echo 'CEOF
10123  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10124  rm -f $tmp/in
10125  mv $tmp/out $tmp/in
10126' >>$CONFIG_STATUS
10127  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10128  rm -f conftest.undefs
10129  mv conftest.tail conftest.undefs
10130done
10131rm -f conftest.undefs
10132
10133cat >>$CONFIG_STATUS <<\_ACEOF
10134  # Let's still pretend it is `configure' which instantiates (i.e., don't
10135  # use $as_me), people would be surprised to read:
10136  #    /* config.h.  Generated by config.status.  */
10137  if test x"$ac_file" = x-; then
10138    echo "/* Generated by configure.  */" >$tmp/config.h
10139  else
10140    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10141  fi
10142  cat $tmp/in >>$tmp/config.h
10143  rm -f $tmp/in
10144  if test x"$ac_file" != x-; then
10145    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10146      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10147echo "$as_me: $ac_file is unchanged" >&6;}
10148    else
10149      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10150$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10151	 X"$ac_file" : 'X\(//\)[^/]' \| \
10152	 X"$ac_file" : 'X\(//\)$' \| \
10153	 X"$ac_file" : 'X\(/\)' \| \
10154	 .     : '\(.\)' 2>/dev/null ||
10155echo X"$ac_file" |
10156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10157  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10158  	  /^X\(\/\/\)$/{ s//\1/; q; }
10159  	  /^X\(\/\).*/{ s//\1/; q; }
10160  	  s/.*/./; q'`
10161      { if $as_mkdir_p; then
10162    mkdir -p "$ac_dir"
10163  else
10164    as_dir="$ac_dir"
10165    as_dirs=
10166    while test ! -d "$as_dir"; do
10167      as_dirs="$as_dir $as_dirs"
10168      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10170	 X"$as_dir" : 'X\(//\)[^/]' \| \
10171	 X"$as_dir" : 'X\(//\)$' \| \
10172	 X"$as_dir" : 'X\(/\)' \| \
10173	 .     : '\(.\)' 2>/dev/null ||
10174echo X"$as_dir" |
10175    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10176  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10177  	  /^X\(\/\/\)$/{ s//\1/; q; }
10178  	  /^X\(\/\).*/{ s//\1/; q; }
10179  	  s/.*/./; q'`
10180    done
10181    test ! -n "$as_dirs" || mkdir $as_dirs
10182  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10183echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10184   { (exit 1); exit 1; }; }; }
10185
10186      rm -f $ac_file
10187      mv $tmp/config.h $ac_file
10188    fi
10189  else
10190    cat $tmp/config.h
10191    rm -f $tmp/config.h
10192  fi
10193# Compute $ac_file's index in $config_headers.
10194_am_stamp_count=1
10195for _am_header in $config_headers :; do
10196  case $_am_header in
10197    $ac_file | $ac_file:* )
10198      break ;;
10199    * )
10200      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10201  esac
10202done
10203echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10204$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10205	 X$ac_file : 'X\(//\)[^/]' \| \
10206	 X$ac_file : 'X\(//\)$' \| \
10207	 X$ac_file : 'X\(/\)' \| \
10208	 .     : '\(.\)' 2>/dev/null ||
10209echo X$ac_file |
10210    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10211  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10212  	  /^X\(\/\/\)$/{ s//\1/; q; }
10213  	  /^X\(\/\).*/{ s//\1/; q; }
10214  	  s/.*/./; q'`/stamp-h$_am_stamp_count
10215done
10216_ACEOF
10217cat >>$CONFIG_STATUS <<\_ACEOF
10218
10219#
10220# CONFIG_COMMANDS section.
10221#
10222for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10223  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10224  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10225  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10226$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10227	 X"$ac_dest" : 'X\(//\)[^/]' \| \
10228	 X"$ac_dest" : 'X\(//\)$' \| \
10229	 X"$ac_dest" : 'X\(/\)' \| \
10230	 .     : '\(.\)' 2>/dev/null ||
10231echo X"$ac_dest" |
10232    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10233  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10234  	  /^X\(\/\/\)$/{ s//\1/; q; }
10235  	  /^X\(\/\).*/{ s//\1/; q; }
10236  	  s/.*/./; q'`
10237  { if $as_mkdir_p; then
10238    mkdir -p "$ac_dir"
10239  else
10240    as_dir="$ac_dir"
10241    as_dirs=
10242    while test ! -d "$as_dir"; do
10243      as_dirs="$as_dir $as_dirs"
10244      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10245$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10246	 X"$as_dir" : 'X\(//\)[^/]' \| \
10247	 X"$as_dir" : 'X\(//\)$' \| \
10248	 X"$as_dir" : 'X\(/\)' \| \
10249	 .     : '\(.\)' 2>/dev/null ||
10250echo X"$as_dir" |
10251    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10252  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10253  	  /^X\(\/\/\)$/{ s//\1/; q; }
10254  	  /^X\(\/\).*/{ s//\1/; q; }
10255  	  s/.*/./; q'`
10256    done
10257    test ! -n "$as_dirs" || mkdir $as_dirs
10258  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10259echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10260   { (exit 1); exit 1; }; }; }
10261
10262  ac_builddir=.
10263
10264if test "$ac_dir" != .; then
10265  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10266  # A "../" for each directory in $ac_dir_suffix.
10267  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10268else
10269  ac_dir_suffix= ac_top_builddir=
10270fi
10271
10272case $srcdir in
10273  .)  # No --srcdir option.  We are building in place.
10274    ac_srcdir=.
10275    if test -z "$ac_top_builddir"; then
10276       ac_top_srcdir=.
10277    else
10278       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10279    fi ;;
10280  [\\/]* | ?:[\\/]* )  # Absolute path.
10281    ac_srcdir=$srcdir$ac_dir_suffix;
10282    ac_top_srcdir=$srcdir ;;
10283  *) # Relative path.
10284    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10285    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10286esac
10287
10288# Do not use `cd foo && pwd` to compute absolute paths, because
10289# the directories may not exist.
10290case `pwd` in
10291.) ac_abs_builddir="$ac_dir";;
10292*)
10293  case "$ac_dir" in
10294  .) ac_abs_builddir=`pwd`;;
10295  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10296  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10297  esac;;
10298esac
10299case $ac_abs_builddir in
10300.) ac_abs_top_builddir=${ac_top_builddir}.;;
10301*)
10302  case ${ac_top_builddir}. in
10303  .) ac_abs_top_builddir=$ac_abs_builddir;;
10304  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10305  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10306  esac;;
10307esac
10308case $ac_abs_builddir in
10309.) ac_abs_srcdir=$ac_srcdir;;
10310*)
10311  case $ac_srcdir in
10312  .) ac_abs_srcdir=$ac_abs_builddir;;
10313  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10314  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10315  esac;;
10316esac
10317case $ac_abs_builddir in
10318.) ac_abs_top_srcdir=$ac_top_srcdir;;
10319*)
10320  case $ac_top_srcdir in
10321  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10322  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10323  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10324  esac;;
10325esac
10326
10327
10328  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10329echo "$as_me: executing $ac_dest commands" >&6;}
10330  case $ac_dest in
10331    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10332  # Strip MF so we end up with the name of the file.
10333  mf=`echo "$mf" | sed -e 's/:.*$//'`
10334  # Check whether this is an Automake generated Makefile or not.
10335  # We used to match only the files named `Makefile.in', but
10336  # some people rename them; so instead we look at the file content.
10337  # Grep'ing the first line is not enough: some people post-process
10338  # each Makefile.in and add a new line on top of each file to say so.
10339  # So let's grep whole file.
10340  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10341    dirpart=`(dirname "$mf") 2>/dev/null ||
10342$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10343	 X"$mf" : 'X\(//\)[^/]' \| \
10344	 X"$mf" : 'X\(//\)$' \| \
10345	 X"$mf" : 'X\(/\)' \| \
10346	 .     : '\(.\)' 2>/dev/null ||
10347echo X"$mf" |
10348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10349  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10350  	  /^X\(\/\/\)$/{ s//\1/; q; }
10351  	  /^X\(\/\).*/{ s//\1/; q; }
10352  	  s/.*/./; q'`
10353  else
10354    continue
10355  fi
10356  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10357  # Extract the definition of DEP_FILES from the Makefile without
10358  # running `make'.
10359  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10360  test -z "$DEPDIR" && continue
10361  # When using ansi2knr, U may be empty or an underscore; expand it
10362  U=`sed -n -e '/^U = / s///p' < "$mf"`
10363  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10364  # We invoke sed twice because it is the simplest approach to
10365  # changing $(DEPDIR) to its actual value in the expansion.
10366  for file in `sed -n -e '
10367    /^DEP_FILES = .*\\\\$/ {
10368      s/^DEP_FILES = //
10369      :loop
10370	s/\\\\$//
10371	p
10372	n
10373	/\\\\$/ b loop
10374      p
10375    }
10376    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10377       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10378    # Make sure the directory exists.
10379    test -f "$dirpart/$file" && continue
10380    fdir=`(dirname "$file") 2>/dev/null ||
10381$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10382	 X"$file" : 'X\(//\)[^/]' \| \
10383	 X"$file" : 'X\(//\)$' \| \
10384	 X"$file" : 'X\(/\)' \| \
10385	 .     : '\(.\)' 2>/dev/null ||
10386echo X"$file" |
10387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10388  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10389  	  /^X\(\/\/\)$/{ s//\1/; q; }
10390  	  /^X\(\/\).*/{ s//\1/; q; }
10391  	  s/.*/./; q'`
10392    { if $as_mkdir_p; then
10393    mkdir -p $dirpart/$fdir
10394  else
10395    as_dir=$dirpart/$fdir
10396    as_dirs=
10397    while test ! -d "$as_dir"; do
10398      as_dirs="$as_dir $as_dirs"
10399      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10401	 X"$as_dir" : 'X\(//\)[^/]' \| \
10402	 X"$as_dir" : 'X\(//\)$' \| \
10403	 X"$as_dir" : 'X\(/\)' \| \
10404	 .     : '\(.\)' 2>/dev/null ||
10405echo X"$as_dir" |
10406    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10407  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10408  	  /^X\(\/\/\)$/{ s//\1/; q; }
10409  	  /^X\(\/\).*/{ s//\1/; q; }
10410  	  s/.*/./; q'`
10411    done
10412    test ! -n "$as_dirs" || mkdir $as_dirs
10413  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10414echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10415   { (exit 1); exit 1; }; }; }
10416
10417    # echo "creating $dirpart/$file"
10418    echo '# dummy' > "$dirpart/$file"
10419  done
10420done
10421 ;;
10422  esac
10423done
10424_ACEOF
10425
10426cat >>$CONFIG_STATUS <<\_ACEOF
10427
10428{ (exit 0); exit 0; }
10429_ACEOF
10430chmod +x $CONFIG_STATUS
10431ac_clean_files=$ac_clean_files_save
10432
10433
10434# configure is writing to config.log, and then calls config.status.
10435# config.status does its own redirection, appending to config.log.
10436# Unfortunately, on DOS this fails, as config.log is still kept open
10437# by configure, so config.status won't be able to write to it; its
10438# output is simply discarded.  So we exec the FD to /dev/null,
10439# effectively closing config.log, so it can be properly (re)opened and
10440# appended to by config.status.  When coming back to configure, we
10441# need to make the FD available again.
10442if test "$no_create" != yes; then
10443  ac_cs_success=:
10444  ac_config_status_args=
10445  test "$silent" = yes &&
10446    ac_config_status_args="$ac_config_status_args --quiet"
10447  exec 5>/dev/null
10448  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10449  exec 5>>config.log
10450  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10451  # would make configure fail if this is the last instruction.
10452  $ac_cs_success || { (exit 1); exit 1; }
10453fi
10454
10455