1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Amoebax 0.2.1.
4#
5# Report bugs to <jordi@emma-soft.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# Copyright (c) 2006, 2007 Emma's Software.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24  set -o posix
25fi
26DUALCASE=1; export DUALCASE # for MKS sh
27
28# Support unset when possible.
29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30  as_unset=unset
31else
32  as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46  LC_TELEPHONE LC_TIME
47do
48  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49    eval $as_var=C; export $as_var
50  else
51    $as_unset $as_var
52  fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57  as_expr=expr
58else
59  as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63  as_basename=basename
64else
65  as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72	 X"$0" : 'X\(//\)$' \| \
73	 X"$0" : 'X\(/\)$' \| \
74	 .     : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
78  	  /^X\/\(\/\).*/{ s//\1/; q; }
79  	  s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92  echo "#! /bin/sh" >conf$$.sh
93  echo  "exit 0"   >>conf$$.sh
94  chmod +x conf$$.sh
95  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96    PATH_SEPARATOR=';'
97  else
98    PATH_SEPARATOR=:
99  fi
100  rm -f conf$$.sh
101fi
102
103
104  as_lineno_1=$LINENO
105  as_lineno_2=$LINENO
106  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107  test "x$as_lineno_1" != "x$as_lineno_2" &&
108  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109  # Find who we are.  Look in the path if we contain no path at all
110  # relative or not.
111  case $0 in
112    *[\\/]* ) as_myself=$0 ;;
113    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116  IFS=$as_save_IFS
117  test -z "$as_dir" && as_dir=.
118  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121       ;;
122  esac
123  # We did not find ourselves, most probably we were run as `sh COMMAND'
124  # in which case we are not to be found in the path.
125  if test "x$as_myself" = x; then
126    as_myself=$0
127  fi
128  if test ! -f "$as_myself"; then
129    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130   { (exit 1); exit 1; }; }
131  fi
132  case $CONFIG_SHELL in
133  '')
134    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137  IFS=$as_save_IFS
138  test -z "$as_dir" && as_dir=.
139  for as_base in sh bash ksh sh5; do
140	 case $as_dir in
141	 /*)
142	   if ("$as_dir/$as_base" -c '
143  as_lineno_1=$LINENO
144  as_lineno_2=$LINENO
145  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146  test "x$as_lineno_1" != "x$as_lineno_2" &&
147  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150	     CONFIG_SHELL=$as_dir/$as_base
151	     export CONFIG_SHELL
152	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153	   fi;;
154	 esac
155       done
156done
157;;
158  esac
159
160  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161  # uniformly replaced by the line number.  The first 'sed' inserts a
162  # line-number line before each line; the second 'sed' does the real
163  # work.  The second script uses 'N' to pair each line-number line
164  # with the numbered line, and appends trailing '-' during
165  # substitution so that $LINENO is not a special case at line end.
166  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168  sed '=' <$as_myself |
169    sed '
170      N
171      s,$,-,
172      : loop
173      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174      t loop
175      s,-$,,
176      s,^['$as_cr_digits']*\n,,
177    ' >$as_me.lineno &&
178  chmod +x $as_me.lineno ||
179    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180   { (exit 1); exit 1; }; }
181
182  # Don't try to exec as it changes $[0], causing all sort of problems
183  # (the dirname of $[0] is not the place where we might find the
184  # original and so on.  Autoconf is especially sensible to this).
185  . ./$as_me.lineno
186  # Exit status is that of the last command.
187  exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192  *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T='	' ;;
194  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199  as_expr=expr
200else
201  as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207  # We could just check for DJGPP; but this test a) works b) is more generic
208  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209  if test -f conf$$.exe; then
210    # Don't use ln at all; we don't have any links
211    as_ln_s='cp -p'
212  else
213    as_ln_s='ln -s'
214  fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216  as_ln_s=ln
217else
218  as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223  as_mkdir_p=:
224else
225  test -d ./-p && rmdir ./-p
226  as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234# Sed expression to map a string onto a valid variable name.
235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" 	$as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
247
248# Name of the host.
249# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250# so uname gets run too.
251ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252
253exec 6>&1
254
255#
256# Initializations.
257#
258ac_default_prefix=/usr/local
259ac_config_libobj_dir=.
260cross_compiling=no
261subdirs=
262MFLAGS=
263MAKEFLAGS=
264SHELL=${CONFIG_SHELL-/bin/sh}
265
266# Maximum number of lines to put in a shell here document.
267# This variable seems obsolete.  It should probably be removed, and
268# only ac_max_sed_lines should be used.
269: ${ac_max_here_lines=38}
270
271# Identity of this package.
272PACKAGE_NAME='Amoebax'
273PACKAGE_TARNAME='amoebax'
274PACKAGE_VERSION='0.2.1'
275PACKAGE_STRING='Amoebax 0.2.1'
276PACKAGE_BUGREPORT='jordi@emma-soft.com'
277
278ac_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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os IS_OSX_HOST_TRUE IS_OSX_HOST_FALSE IS_GP2X_HOST_TRUE IS_GP2X_HOST_FALSE IS_WIN32_HOST_TRUE IS_WIN32_HOST_FALSE IS_WINCE_HOST_TRUE IS_WINCE_HOST_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE OBJC OBJCFLAGS ac_ct_OBJC OBJCDEPMODE WINDRES ac_ct_WINDRES build_win32_resource_TRUE build_win32_resource_FALSE CANDLE LIGHT build_win32_msi_TRUE build_win32_msi_FALSE DOXYGEN build_reference_TRUE build_reference_FALSE BINRELOC_CFLAGS BINRELOC_LIBS SDL_CONFIG SDL_CFLAGS SDL_LIBS SDL_IMAGE_CFLAGS SDL_IMAGE_LIBS SDL_MIXER_CFLAGS SDL_MIXER_LIBS LIBOBJS LTLIBOBJS'
279ac_subst_files=''
280
281# Initialize some variables set by options.
282ac_init_help=
283ac_init_version=false
284# The variables have the same names as the options, with
285# dashes changed to underlines.
286cache_file=/dev/null
287exec_prefix=NONE
288no_create=
289no_recursion=
290prefix=NONE
291program_prefix=NONE
292program_suffix=NONE
293program_transform_name=s,x,x,
294silent=
295site=
296srcdir=
297verbose=
298x_includes=NONE
299x_libraries=NONE
300
301# Installation directory options.
302# These are left unexpanded so users can "make install exec_prefix=/foo"
303# and all the variables that are supposed to be based on exec_prefix
304# by default will actually change.
305# Use braces instead of parens because sh, perl, etc. also accept them.
306bindir='${exec_prefix}/bin'
307sbindir='${exec_prefix}/sbin'
308libexecdir='${exec_prefix}/libexec'
309datadir='${prefix}/share'
310sysconfdir='${prefix}/etc'
311sharedstatedir='${prefix}/com'
312localstatedir='${prefix}/var'
313libdir='${exec_prefix}/lib'
314includedir='${prefix}/include'
315oldincludedir='/usr/include'
316infodir='${prefix}/info'
317mandir='${prefix}/man'
318
319ac_prev=
320for ac_option
321do
322  # If the previous option needs an argument, assign it.
323  if test -n "$ac_prev"; then
324    eval "$ac_prev=\$ac_option"
325    ac_prev=
326    continue
327  fi
328
329  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
330
331  # Accept the important Cygnus configure options, so we can diagnose typos.
332
333  case $ac_option in
334
335  -bindir | --bindir | --bindi | --bind | --bin | --bi)
336    ac_prev=bindir ;;
337  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338    bindir=$ac_optarg ;;
339
340  -build | --build | --buil | --bui | --bu)
341    ac_prev=build_alias ;;
342  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
343    build_alias=$ac_optarg ;;
344
345  -cache-file | --cache-file | --cache-fil | --cache-fi \
346  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
347    ac_prev=cache_file ;;
348  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
349  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
350    cache_file=$ac_optarg ;;
351
352  --config-cache | -C)
353    cache_file=config.cache ;;
354
355  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
356    ac_prev=datadir ;;
357  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
358  | --da=*)
359    datadir=$ac_optarg ;;
360
361  -disable-* | --disable-*)
362    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
363    # Reject names that are not valid shell variable names.
364    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
365      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366   { (exit 1); exit 1; }; }
367    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
368    eval "enable_$ac_feature=no" ;;
369
370  -enable-* | --enable-*)
371    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
372    # Reject names that are not valid shell variable names.
373    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
374      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
375   { (exit 1); exit 1; }; }
376    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
377    case $ac_option in
378      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379      *) ac_optarg=yes ;;
380    esac
381    eval "enable_$ac_feature='$ac_optarg'" ;;
382
383  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
384  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
385  | --exec | --exe | --ex)
386    ac_prev=exec_prefix ;;
387  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
388  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
389  | --exec=* | --exe=* | --ex=*)
390    exec_prefix=$ac_optarg ;;
391
392  -gas | --gas | --ga | --g)
393    # Obsolete; use --with-gas.
394    with_gas=yes ;;
395
396  -help | --help | --hel | --he | -h)
397    ac_init_help=long ;;
398  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
399    ac_init_help=recursive ;;
400  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
401    ac_init_help=short ;;
402
403  -host | --host | --hos | --ho)
404    ac_prev=host_alias ;;
405  -host=* | --host=* | --hos=* | --ho=*)
406    host_alias=$ac_optarg ;;
407
408  -includedir | --includedir | --includedi | --included | --include \
409  | --includ | --inclu | --incl | --inc)
410    ac_prev=includedir ;;
411  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
412  | --includ=* | --inclu=* | --incl=* | --inc=*)
413    includedir=$ac_optarg ;;
414
415  -infodir | --infodir | --infodi | --infod | --info | --inf)
416    ac_prev=infodir ;;
417  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
418    infodir=$ac_optarg ;;
419
420  -libdir | --libdir | --libdi | --libd)
421    ac_prev=libdir ;;
422  -libdir=* | --libdir=* | --libdi=* | --libd=*)
423    libdir=$ac_optarg ;;
424
425  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
426  | --libexe | --libex | --libe)
427    ac_prev=libexecdir ;;
428  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
429  | --libexe=* | --libex=* | --libe=*)
430    libexecdir=$ac_optarg ;;
431
432  -localstatedir | --localstatedir | --localstatedi | --localstated \
433  | --localstate | --localstat | --localsta | --localst \
434  | --locals | --local | --loca | --loc | --lo)
435    ac_prev=localstatedir ;;
436  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
437  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
438  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
439    localstatedir=$ac_optarg ;;
440
441  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
442    ac_prev=mandir ;;
443  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
444    mandir=$ac_optarg ;;
445
446  -nfp | --nfp | --nf)
447    # Obsolete; use --without-fp.
448    with_fp=no ;;
449
450  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451  | --no-cr | --no-c | -n)
452    no_create=yes ;;
453
454  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456    no_recursion=yes ;;
457
458  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
459  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
460  | --oldin | --oldi | --old | --ol | --o)
461    ac_prev=oldincludedir ;;
462  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
463  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
464  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
465    oldincludedir=$ac_optarg ;;
466
467  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
468    ac_prev=prefix ;;
469  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470    prefix=$ac_optarg ;;
471
472  -program-prefix | --program-prefix | --program-prefi | --program-pref \
473  | --program-pre | --program-pr | --program-p)
474    ac_prev=program_prefix ;;
475  -program-prefix=* | --program-prefix=* | --program-prefi=* \
476  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
477    program_prefix=$ac_optarg ;;
478
479  -program-suffix | --program-suffix | --program-suffi | --program-suff \
480  | --program-suf | --program-su | --program-s)
481    ac_prev=program_suffix ;;
482  -program-suffix=* | --program-suffix=* | --program-suffi=* \
483  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
484    program_suffix=$ac_optarg ;;
485
486  -program-transform-name | --program-transform-name \
487  | --program-transform-nam | --program-transform-na \
488  | --program-transform-n | --program-transform- \
489  | --program-transform | --program-transfor \
490  | --program-transfo | --program-transf \
491  | --program-trans | --program-tran \
492  | --progr-tra | --program-tr | --program-t)
493    ac_prev=program_transform_name ;;
494  -program-transform-name=* | --program-transform-name=* \
495  | --program-transform-nam=* | --program-transform-na=* \
496  | --program-transform-n=* | --program-transform-=* \
497  | --program-transform=* | --program-transfor=* \
498  | --program-transfo=* | --program-transf=* \
499  | --program-trans=* | --program-tran=* \
500  | --progr-tra=* | --program-tr=* | --program-t=*)
501    program_transform_name=$ac_optarg ;;
502
503  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
504  | -silent | --silent | --silen | --sile | --sil)
505    silent=yes ;;
506
507  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
508    ac_prev=sbindir ;;
509  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
510  | --sbi=* | --sb=*)
511    sbindir=$ac_optarg ;;
512
513  -sharedstatedir | --sharedstatedir | --sharedstatedi \
514  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
515  | --sharedst | --shareds | --shared | --share | --shar \
516  | --sha | --sh)
517    ac_prev=sharedstatedir ;;
518  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
519  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
520  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
521  | --sha=* | --sh=*)
522    sharedstatedir=$ac_optarg ;;
523
524  -site | --site | --sit)
525    ac_prev=site ;;
526  -site=* | --site=* | --sit=*)
527    site=$ac_optarg ;;
528
529  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
530    ac_prev=srcdir ;;
531  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532    srcdir=$ac_optarg ;;
533
534  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
535  | --syscon | --sysco | --sysc | --sys | --sy)
536    ac_prev=sysconfdir ;;
537  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
538  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
539    sysconfdir=$ac_optarg ;;
540
541  -target | --target | --targe | --targ | --tar | --ta | --t)
542    ac_prev=target_alias ;;
543  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
544    target_alias=$ac_optarg ;;
545
546  -v | -verbose | --verbose | --verbos | --verbo | --verb)
547    verbose=yes ;;
548
549  -version | --version | --versio | --versi | --vers | -V)
550    ac_init_version=: ;;
551
552  -with-* | --with-*)
553    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
554    # Reject names that are not valid shell variable names.
555    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556      { echo "$as_me: error: invalid package name: $ac_package" >&2
557   { (exit 1); exit 1; }; }
558    ac_package=`echo $ac_package| sed 's/-/_/g'`
559    case $ac_option in
560      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561      *) ac_optarg=yes ;;
562    esac
563    eval "with_$ac_package='$ac_optarg'" ;;
564
565  -without-* | --without-*)
566    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
567    # Reject names that are not valid shell variable names.
568    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569      { echo "$as_me: error: invalid package name: $ac_package" >&2
570   { (exit 1); exit 1; }; }
571    ac_package=`echo $ac_package | sed 's/-/_/g'`
572    eval "with_$ac_package=no" ;;
573
574  --x)
575    # Obsolete; use --with-x.
576    with_x=yes ;;
577
578  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
579  | --x-incl | --x-inc | --x-in | --x-i)
580    ac_prev=x_includes ;;
581  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
582  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
583    x_includes=$ac_optarg ;;
584
585  -x-libraries | --x-libraries | --x-librarie | --x-librari \
586  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
587    ac_prev=x_libraries ;;
588  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
589  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
590    x_libraries=$ac_optarg ;;
591
592  -*) { echo "$as_me: error: unrecognized option: $ac_option
593Try \`$0 --help' for more information." >&2
594   { (exit 1); exit 1; }; }
595    ;;
596
597  *=*)
598    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
599    # Reject names that are not valid shell variable names.
600    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
601      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
602   { (exit 1); exit 1; }; }
603    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
604    eval "$ac_envvar='$ac_optarg'"
605    export $ac_envvar ;;
606
607  *)
608    # FIXME: should be removed in autoconf 3.0.
609    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
610    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
611      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
612    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
613    ;;
614
615  esac
616done
617
618if test -n "$ac_prev"; then
619  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
620  { echo "$as_me: error: missing argument to $ac_option" >&2
621   { (exit 1); exit 1; }; }
622fi
623
624# Be sure to have absolute paths.
625for ac_var in exec_prefix prefix
626do
627  eval ac_val=$`echo $ac_var`
628  case $ac_val in
629    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
630    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
631   { (exit 1); exit 1; }; };;
632  esac
633done
634
635# Be sure to have absolute paths.
636for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
637	      localstatedir libdir includedir oldincludedir infodir mandir
638do
639  eval ac_val=$`echo $ac_var`
640  case $ac_val in
641    [\\/$]* | ?:[\\/]* ) ;;
642    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
643   { (exit 1); exit 1; }; };;
644  esac
645done
646
647# There might be people who depend on the old broken behavior: `$host'
648# used to hold the argument of --host etc.
649# FIXME: To remove some day.
650build=$build_alias
651host=$host_alias
652target=$target_alias
653
654# FIXME: To remove some day.
655if test "x$host_alias" != x; then
656  if test "x$build_alias" = x; then
657    cross_compiling=maybe
658    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
659    If a cross compiler is detected then cross compile mode will be used." >&2
660  elif test "x$build_alias" != "x$host_alias"; then
661    cross_compiling=yes
662  fi
663fi
664
665ac_tool_prefix=
666test -n "$host_alias" && ac_tool_prefix=$host_alias-
667
668test "$silent" = yes && exec 6>/dev/null
669
670
671# Find the source files, if location was not specified.
672if test -z "$srcdir"; then
673  ac_srcdir_defaulted=yes
674  # Try the directory containing this script, then its parent.
675  ac_confdir=`(dirname "$0") 2>/dev/null ||
676$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
677	 X"$0" : 'X\(//\)[^/]' \| \
678	 X"$0" : 'X\(//\)$' \| \
679	 X"$0" : 'X\(/\)' \| \
680	 .     : '\(.\)' 2>/dev/null ||
681echo X"$0" |
682    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
683  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
684  	  /^X\(\/\/\)$/{ s//\1/; q; }
685  	  /^X\(\/\).*/{ s//\1/; q; }
686  	  s/.*/./; q'`
687  srcdir=$ac_confdir
688  if test ! -r $srcdir/$ac_unique_file; then
689    srcdir=..
690  fi
691else
692  ac_srcdir_defaulted=no
693fi
694if test ! -r $srcdir/$ac_unique_file; then
695  if test "$ac_srcdir_defaulted" = yes; then
696    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
697   { (exit 1); exit 1; }; }
698  else
699    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
700   { (exit 1); exit 1; }; }
701  fi
702fi
703(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
704  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
705   { (exit 1); exit 1; }; }
706srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
707ac_env_build_alias_set=${build_alias+set}
708ac_env_build_alias_value=$build_alias
709ac_cv_env_build_alias_set=${build_alias+set}
710ac_cv_env_build_alias_value=$build_alias
711ac_env_host_alias_set=${host_alias+set}
712ac_env_host_alias_value=$host_alias
713ac_cv_env_host_alias_set=${host_alias+set}
714ac_cv_env_host_alias_value=$host_alias
715ac_env_target_alias_set=${target_alias+set}
716ac_env_target_alias_value=$target_alias
717ac_cv_env_target_alias_set=${target_alias+set}
718ac_cv_env_target_alias_value=$target_alias
719ac_env_CXX_set=${CXX+set}
720ac_env_CXX_value=$CXX
721ac_cv_env_CXX_set=${CXX+set}
722ac_cv_env_CXX_value=$CXX
723ac_env_CXXFLAGS_set=${CXXFLAGS+set}
724ac_env_CXXFLAGS_value=$CXXFLAGS
725ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
726ac_cv_env_CXXFLAGS_value=$CXXFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_OBJC_set=${OBJC+set}
736ac_env_OBJC_value=$OBJC
737ac_cv_env_OBJC_set=${OBJC+set}
738ac_cv_env_OBJC_value=$OBJC
739ac_env_OBJCFLAGS_set=${OBJCFLAGS+set}
740ac_env_OBJCFLAGS_value=$OBJCFLAGS
741ac_cv_env_OBJCFLAGS_set=${OBJCFLAGS+set}
742ac_cv_env_OBJCFLAGS_value=$OBJCFLAGS
743
744#
745# Report the --help message.
746#
747if test "$ac_init_help" = "long"; then
748  # Omit some internal or obsolete options to make the list less imposing.
749  # This message is too long to be a string in the A/UX 3.1 sh.
750  cat <<_ACEOF
751\`configure' configures Amoebax 0.2.1 to adapt to many kinds of systems.
752
753Usage: $0 [OPTION]... [VAR=VALUE]...
754
755To assign environment variables (e.g., CC, CFLAGS...), specify them as
756VAR=VALUE.  See below for descriptions of some of the useful variables.
757
758Defaults for the options are specified in brackets.
759
760Configuration:
761  -h, --help              display this help and exit
762      --help=short        display options specific to this package
763      --help=recursive    display the short help of all the included packages
764  -V, --version           display version information and exit
765  -q, --quiet, --silent   do not print \`checking...' messages
766      --cache-file=FILE   cache test results in FILE [disabled]
767  -C, --config-cache      alias for \`--cache-file=config.cache'
768  -n, --no-create         do not create output files
769      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
770
771_ACEOF
772
773  cat <<_ACEOF
774Installation directories:
775  --prefix=PREFIX         install architecture-independent files in PREFIX
776			  [$ac_default_prefix]
777  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
778			  [PREFIX]
779
780By default, \`make install' will install all the files in
781\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
782an installation prefix other than \`$ac_default_prefix' using \`--prefix',
783for instance \`--prefix=\$HOME'.
784
785For better control, use the options below.
786
787Fine tuning of the installation directories:
788  --bindir=DIR           user executables [EPREFIX/bin]
789  --sbindir=DIR          system admin executables [EPREFIX/sbin]
790  --libexecdir=DIR       program executables [EPREFIX/libexec]
791  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
792  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
793  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
794  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
795  --libdir=DIR           object code libraries [EPREFIX/lib]
796  --includedir=DIR       C header files [PREFIX/include]
797  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
798  --infodir=DIR          info documentation [PREFIX/info]
799  --mandir=DIR           man documentation [PREFIX/man]
800_ACEOF
801
802  cat <<\_ACEOF
803
804Program names:
805  --program-prefix=PREFIX            prepend PREFIX to installed program names
806  --program-suffix=SUFFIX            append SUFFIX to installed program names
807  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
808
809System types:
810  --build=BUILD     configure for building on BUILD [guessed]
811  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
812_ACEOF
813fi
814
815if test -n "$ac_init_help"; then
816  case $ac_init_help in
817     short | recursive ) echo "Configuration of Amoebax 0.2.1:";;
818   esac
819  cat <<\_ACEOF
820
821Optional Features:
822  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
823  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
824  --enable-maintainer-mode enable make rules and dependencies not useful
825                          (and sometimes confusing) to the casual installer
826  --enable-debug          turn on debugging (default is NO)
827  --disable-dependency-tracking Speeds up one-time builds
828  --enable-dependency-tracking  Do not reject slow dependency extractors
829  --enable-binreloc       compile with binary relocation support
830                          (default=enable when available)
831  --enable-binreloc-threads      compile binary relocation with threads support
832	                         (default=yes)
833
834Optional Packages:
835  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
836  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
837  --with-sdl-prefix       prefix where SDL is installed (optional)
838  --with-sdl-exec-prefix  prefix where SDL binaries are installed (optional)
839
840Some influential environment variables:
841  CXX         C++ compiler command
842  CXXFLAGS    C++ compiler flags
843  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
844              nonstandard directory <lib dir>
845  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
846              headers in a nonstandard directory <include dir>
847  OBJC        Objective C compiler command
848  OBJCFLAGS   Objective C compiler flags
849
850Use these variables to override the choices made by `configure' or to help
851it to find libraries and programs with nonstandard names/locations.
852
853Report bugs to <jordi@emma-soft.com>.
854_ACEOF
855fi
856
857if test "$ac_init_help" = "recursive"; then
858  # If there are subdirs, report their specific --help.
859  ac_popdir=`pwd`
860  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
861    test -d $ac_dir || continue
862    ac_builddir=.
863
864if test "$ac_dir" != .; then
865  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
866  # A "../" for each directory in $ac_dir_suffix.
867  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
868else
869  ac_dir_suffix= ac_top_builddir=
870fi
871
872case $srcdir in
873  .)  # No --srcdir option.  We are building in place.
874    ac_srcdir=.
875    if test -z "$ac_top_builddir"; then
876       ac_top_srcdir=.
877    else
878       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
879    fi ;;
880  [\\/]* | ?:[\\/]* )  # Absolute path.
881    ac_srcdir=$srcdir$ac_dir_suffix;
882    ac_top_srcdir=$srcdir ;;
883  *) # Relative path.
884    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
885    ac_top_srcdir=$ac_top_builddir$srcdir ;;
886esac
887
888# Do not use `cd foo && pwd` to compute absolute paths, because
889# the directories may not exist.
890case `pwd` in
891.) ac_abs_builddir="$ac_dir";;
892*)
893  case "$ac_dir" in
894  .) ac_abs_builddir=`pwd`;;
895  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
896  *) ac_abs_builddir=`pwd`/"$ac_dir";;
897  esac;;
898esac
899case $ac_abs_builddir in
900.) ac_abs_top_builddir=${ac_top_builddir}.;;
901*)
902  case ${ac_top_builddir}. in
903  .) ac_abs_top_builddir=$ac_abs_builddir;;
904  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
905  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
906  esac;;
907esac
908case $ac_abs_builddir in
909.) ac_abs_srcdir=$ac_srcdir;;
910*)
911  case $ac_srcdir in
912  .) ac_abs_srcdir=$ac_abs_builddir;;
913  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
914  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
915  esac;;
916esac
917case $ac_abs_builddir in
918.) ac_abs_top_srcdir=$ac_top_srcdir;;
919*)
920  case $ac_top_srcdir in
921  .) ac_abs_top_srcdir=$ac_abs_builddir;;
922  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
923  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
924  esac;;
925esac
926
927    cd $ac_dir
928    # Check for guested configure; otherwise get Cygnus style configure.
929    if test -f $ac_srcdir/configure.gnu; then
930      echo
931      $SHELL $ac_srcdir/configure.gnu  --help=recursive
932    elif test -f $ac_srcdir/configure; then
933      echo
934      $SHELL $ac_srcdir/configure  --help=recursive
935    elif test -f $ac_srcdir/configure.ac ||
936	   test -f $ac_srcdir/configure.in; then
937      echo
938      $ac_configure --help
939    else
940      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941    fi
942    cd $ac_popdir
943  done
944fi
945
946test -n "$ac_init_help" && exit 0
947if $ac_init_version; then
948  cat <<\_ACEOF
949Amoebax configure 0.2.1
950generated by GNU Autoconf 2.59
951
952Copyright (C) 2003 Free Software Foundation, Inc.
953This configure script is free software; the Free Software Foundation
954gives unlimited permission to copy, distribute and modify it.
955
956Copyright (c) 2006, 2007 Emma's Software.
957_ACEOF
958  exit 0
959fi
960exec 5>config.log
961cat >&5 <<_ACEOF
962This file contains any messages produced by compilers while
963running configure, to aid debugging if configure makes a mistake.
964
965It was created by Amoebax $as_me 0.2.1, which was
966generated by GNU Autoconf 2.59.  Invocation command line was
967
968  $ $0 $@
969
970_ACEOF
971{
972cat <<_ASUNAME
973## --------- ##
974## Platform. ##
975## --------- ##
976
977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978uname -m = `(uname -m) 2>/dev/null || echo unknown`
979uname -r = `(uname -r) 2>/dev/null || echo unknown`
980uname -s = `(uname -s) 2>/dev/null || echo unknown`
981uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
985
986/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
987/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
990/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
991/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
992/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
993
994_ASUNAME
995
996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997for as_dir in $PATH
998do
999  IFS=$as_save_IFS
1000  test -z "$as_dir" && as_dir=.
1001  echo "PATH: $as_dir"
1002done
1003
1004} >&5
1005
1006cat >&5 <<_ACEOF
1007
1008
1009## ----------- ##
1010## Core tests. ##
1011## ----------- ##
1012
1013_ACEOF
1014
1015
1016# Keep a trace of the command line.
1017# Strip out --no-create and --no-recursion so they do not pile up.
1018# Strip out --silent because we don't want to record it for future runs.
1019# Also quote any args containing shell meta-characters.
1020# Make two passes to allow for proper duplicate-argument suppression.
1021ac_configure_args=
1022ac_configure_args0=
1023ac_configure_args1=
1024ac_sep=
1025ac_must_keep_next=false
1026for ac_pass in 1 2
1027do
1028  for ac_arg
1029  do
1030    case $ac_arg in
1031    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033    | -silent | --silent | --silen | --sile | --sil)
1034      continue ;;
1035    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037    esac
1038    case $ac_pass in
1039    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040    2)
1041      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042      if test $ac_must_keep_next = true; then
1043	ac_must_keep_next=false # Got value, back to normal.
1044      else
1045	case $ac_arg in
1046	  *=* | --config-cache | -C | -disable-* | --disable-* \
1047	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049	  | -with-* | --with-* | -without-* | --without-* | --x)
1050	    case "$ac_configure_args0 " in
1051	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052	    esac
1053	    ;;
1054	  -* ) ac_must_keep_next=true ;;
1055	esac
1056      fi
1057      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058      # Get rid of the leading space.
1059      ac_sep=" "
1060      ;;
1061    esac
1062  done
1063done
1064$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067# When interrupted or exit'd, cleanup temporary files, and complete
1068# config.log.  We remove comments because anyway the quotes in there
1069# would cause problems or look ugly.
1070# WARNING: Be sure not to use single quotes in there, as some shells,
1071# such as our DU 5.0 friend, will then `close' the trap.
1072trap 'exit_status=$?
1073  # Save into config.log some information that might help in debugging.
1074  {
1075    echo
1076
1077    cat <<\_ASBOX
1078## ---------------- ##
1079## Cache variables. ##
1080## ---------------- ##
1081_ASBOX
1082    echo
1083    # The following way of writing the cache mishandles newlines in values,
1084{
1085  (set) 2>&1 |
1086    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087    *ac_space=\ *)
1088      sed -n \
1089	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091      ;;
1092    *)
1093      sed -n \
1094	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095      ;;
1096    esac;
1097}
1098    echo
1099
1100    cat <<\_ASBOX
1101## ----------------- ##
1102## Output variables. ##
1103## ----------------- ##
1104_ASBOX
1105    echo
1106    for ac_var in $ac_subst_vars
1107    do
1108      eval ac_val=$`echo $ac_var`
1109      echo "$ac_var='"'"'$ac_val'"'"'"
1110    done | sort
1111    echo
1112
1113    if test -n "$ac_subst_files"; then
1114      cat <<\_ASBOX
1115## ------------- ##
1116## Output files. ##
1117## ------------- ##
1118_ASBOX
1119      echo
1120      for ac_var in $ac_subst_files
1121      do
1122	eval ac_val=$`echo $ac_var`
1123	echo "$ac_var='"'"'$ac_val'"'"'"
1124      done | sort
1125      echo
1126    fi
1127
1128    if test -s confdefs.h; then
1129      cat <<\_ASBOX
1130## ----------- ##
1131## confdefs.h. ##
1132## ----------- ##
1133_ASBOX
1134      echo
1135      sed "/^$/d" confdefs.h | sort
1136      echo
1137    fi
1138    test "$ac_signal" != 0 &&
1139      echo "$as_me: caught signal $ac_signal"
1140    echo "$as_me: exit $exit_status"
1141  } >&5
1142  rm -f core *.core &&
1143  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144    exit $exit_status
1145     ' 0
1146for ac_signal in 1 2 13 15; do
1147  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148done
1149ac_signal=0
1150
1151# confdefs.h avoids OS command line length limits that DEFS can exceed.
1152rm -rf conftest* confdefs.h
1153# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154echo >confdefs.h
1155
1156# Predefined preprocessor variables.
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_NAME "$PACKAGE_NAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_VERSION "$PACKAGE_VERSION"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_STRING "$PACKAGE_STRING"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180_ACEOF
1181
1182
1183# Let the site file select an alternate cache file if it wants to.
1184# Prefer explicitly selected file to automatically selected ones.
1185if test -z "$CONFIG_SITE"; then
1186  if test "x$prefix" != xNONE; then
1187    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188  else
1189    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190  fi
1191fi
1192for ac_site_file in $CONFIG_SITE; do
1193  if test -r "$ac_site_file"; then
1194    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195echo "$as_me: loading site script $ac_site_file" >&6;}
1196    sed 's/^/| /' "$ac_site_file" >&5
1197    . "$ac_site_file"
1198  fi
1199done
1200
1201if test -r "$cache_file"; then
1202  # Some versions of bash will fail to source /dev/null (special
1203  # files actually), so we avoid doing that.
1204  if test -f "$cache_file"; then
1205    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206echo "$as_me: loading cache $cache_file" >&6;}
1207    case $cache_file in
1208      [\\/]* | ?:[\\/]* ) . $cache_file;;
1209      *)                      . ./$cache_file;;
1210    esac
1211  fi
1212else
1213  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214echo "$as_me: creating cache $cache_file" >&6;}
1215  >$cache_file
1216fi
1217
1218# Check that the precious variables saved in the cache have kept the same
1219# value.
1220ac_cache_corrupted=false
1221for ac_var in `(set) 2>&1 |
1222	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224  eval ac_new_set=\$ac_env_${ac_var}_set
1225  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226  eval ac_new_val="\$ac_env_${ac_var}_value"
1227  case $ac_old_set,$ac_new_set in
1228    set,)
1229      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231      ac_cache_corrupted=: ;;
1232    ,set)
1233      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235      ac_cache_corrupted=: ;;
1236    ,);;
1237    *)
1238      if test "x$ac_old_val" != "x$ac_new_val"; then
1239	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1242echo "$as_me:   former value:  $ac_old_val" >&2;}
1243	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1244echo "$as_me:   current value: $ac_new_val" >&2;}
1245	ac_cache_corrupted=:
1246      fi;;
1247  esac
1248  # Pass precious variables to config.status.
1249  if test "$ac_new_set" = set; then
1250    case $ac_new_val in
1251    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253    *) ac_arg=$ac_var=$ac_new_val ;;
1254    esac
1255    case " $ac_configure_args " in
1256      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1257      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258    esac
1259  fi
1260done
1261if $ac_cache_corrupted; then
1262  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266   { (exit 1); exit 1; }; }
1267fi
1268
1269ac_ext=c
1270ac_cpp='$CPP $CPPFLAGS'
1271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302am__api_version="1.6"
1303ac_aux_dir=
1304for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1305  if test -f $ac_dir/install-sh; then
1306    ac_aux_dir=$ac_dir
1307    ac_install_sh="$ac_aux_dir/install-sh -c"
1308    break
1309  elif test -f $ac_dir/install.sh; then
1310    ac_aux_dir=$ac_dir
1311    ac_install_sh="$ac_aux_dir/install.sh -c"
1312    break
1313  elif test -f $ac_dir/shtool; then
1314    ac_aux_dir=$ac_dir
1315    ac_install_sh="$ac_aux_dir/shtool install -c"
1316    break
1317  fi
1318done
1319if test -z "$ac_aux_dir"; then
1320  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322   { (exit 1); exit 1; }; }
1323fi
1324ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327
1328# Find a good install program.  We prefer a C program (faster),
1329# so one script is as good as another.  But avoid the broken or
1330# incompatible versions:
1331# SysV /etc/install, /usr/sbin/install
1332# SunOS /usr/etc/install
1333# IRIX /sbin/install
1334# AIX /bin/install
1335# AmigaOS /C/install, which installs bootblocks on floppy discs
1336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1337# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1339# OS/2's system install, which has a completely different semantic
1340# ./install, which can be erroneously created by make from ./install.sh.
1341echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1342echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1343if test -z "$INSTALL"; then
1344if test "${ac_cv_path_install+set}" = set; then
1345  echo $ECHO_N "(cached) $ECHO_C" >&6
1346else
1347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348for as_dir in $PATH
1349do
1350  IFS=$as_save_IFS
1351  test -z "$as_dir" && as_dir=.
1352  # Account for people who put trailing slashes in PATH elements.
1353case $as_dir/ in
1354  ./ | .// | /cC/* | \
1355  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1356  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1357  /usr/ucb/* ) ;;
1358  *)
1359    # OSF1 and SCO ODT 3.0 have their own names for install.
1360    # Don't use installbsd from OSF since it installs stuff as root
1361    # by default.
1362    for ac_prog in ginstall scoinst install; do
1363      for ac_exec_ext in '' $ac_executable_extensions; do
1364	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1365	  if test $ac_prog = install &&
1366	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1367	    # AIX install.  It has an incompatible calling convention.
1368	    :
1369	  elif test $ac_prog = install &&
1370	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1371	    # program-specific install script used by HP pwplus--don't use.
1372	    :
1373	  else
1374	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1375	    break 3
1376	  fi
1377	fi
1378      done
1379    done
1380    ;;
1381esac
1382done
1383
1384
1385fi
1386  if test "${ac_cv_path_install+set}" = set; then
1387    INSTALL=$ac_cv_path_install
1388  else
1389    # As a last resort, use the slow shell script.  We don't cache a
1390    # path for INSTALL within a source directory, because that will
1391    # break other packages using the cache if that directory is
1392    # removed, or if the path is relative.
1393    INSTALL=$ac_install_sh
1394  fi
1395fi
1396echo "$as_me:$LINENO: result: $INSTALL" >&5
1397echo "${ECHO_T}$INSTALL" >&6
1398
1399# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1400# It thinks the first close brace ends the variable substitution.
1401test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1402
1403test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1404
1405test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1406
1407echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1408echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1409# Just in case
1410sleep 1
1411echo timestamp > conftest.file
1412# Do `set' in a subshell so we don't clobber the current shell's
1413# arguments.  Must try -L first in case configure is actually a
1414# symlink; some systems play weird games with the mod time of symlinks
1415# (eg FreeBSD returns the mod time of the symlink's containing
1416# directory).
1417if (
1418   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1419   if test "$*" = "X"; then
1420      # -L didn't work.
1421      set X `ls -t $srcdir/configure conftest.file`
1422   fi
1423   rm -f conftest.file
1424   if test "$*" != "X $srcdir/configure conftest.file" \
1425      && test "$*" != "X conftest.file $srcdir/configure"; then
1426
1427      # If neither matched, then we have a broken ls.  This can happen
1428      # if, for instance, CONFIG_SHELL is bash and it inherits a
1429      # broken ls alias from the environment.  This has actually
1430      # happened.  Such a system could not be considered "sane".
1431      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1432alias in your environment" >&5
1433echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1434alias in your environment" >&2;}
1435   { (exit 1); exit 1; }; }
1436   fi
1437
1438   test "$2" = conftest.file
1439   )
1440then
1441   # Ok.
1442   :
1443else
1444   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1445Check your system clock" >&5
1446echo "$as_me: error: newly created file is older than distributed files!
1447Check your system clock" >&2;}
1448   { (exit 1); exit 1; }; }
1449fi
1450echo "$as_me:$LINENO: result: yes" >&5
1451echo "${ECHO_T}yes" >&6
1452test "$program_prefix" != NONE &&
1453  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1454# Use a double $ so make ignores it.
1455test "$program_suffix" != NONE &&
1456  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1457# Double any \ or $.  echo might interpret backslashes.
1458# By default was `s,x,x', remove it if useless.
1459cat <<\_ACEOF >conftest.sed
1460s/[\\$]/&&/g;s/;s,x,x,$//
1461_ACEOF
1462program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1463rm conftest.sed
1464
1465
1466# expand $ac_aux_dir to an absolute path
1467am_aux_dir=`cd $ac_aux_dir && pwd`
1468
1469test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1470# Use eval to expand $SHELL
1471if eval "$MISSING --run true"; then
1472  am_missing_run="$MISSING --run "
1473else
1474  am_missing_run=
1475  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1476echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1477fi
1478
1479for ac_prog in gawk mawk nawk awk
1480do
1481  # Extract the first word of "$ac_prog", so it can be a program name with args.
1482set dummy $ac_prog; ac_word=$2
1483echo "$as_me:$LINENO: checking for $ac_word" >&5
1484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485if test "${ac_cv_prog_AWK+set}" = set; then
1486  echo $ECHO_N "(cached) $ECHO_C" >&6
1487else
1488  if test -n "$AWK"; then
1489  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1490else
1491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492for as_dir in $PATH
1493do
1494  IFS=$as_save_IFS
1495  test -z "$as_dir" && as_dir=.
1496  for ac_exec_ext in '' $ac_executable_extensions; do
1497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498    ac_cv_prog_AWK="$ac_prog"
1499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500    break 2
1501  fi
1502done
1503done
1504
1505fi
1506fi
1507AWK=$ac_cv_prog_AWK
1508if test -n "$AWK"; then
1509  echo "$as_me:$LINENO: result: $AWK" >&5
1510echo "${ECHO_T}$AWK" >&6
1511else
1512  echo "$as_me:$LINENO: result: no" >&5
1513echo "${ECHO_T}no" >&6
1514fi
1515
1516  test -n "$AWK" && break
1517done
1518
1519echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1520echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1521set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1522if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1523  echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525  cat >conftest.make <<\_ACEOF
1526all:
1527	@echo 'ac_maketemp="$(MAKE)"'
1528_ACEOF
1529# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1530eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1531if test -n "$ac_maketemp"; then
1532  eval ac_cv_prog_make_${ac_make}_set=yes
1533else
1534  eval ac_cv_prog_make_${ac_make}_set=no
1535fi
1536rm -f conftest.make
1537fi
1538if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1539  echo "$as_me:$LINENO: result: yes" >&5
1540echo "${ECHO_T}yes" >&6
1541  SET_MAKE=
1542else
1543  echo "$as_me:$LINENO: result: no" >&5
1544echo "${ECHO_T}no" >&6
1545  SET_MAKE="MAKE=${MAKE-make}"
1546fi
1547
1548 # test to see if srcdir already configured
1549if test "`cd $srcdir && pwd`" != "`pwd`" &&
1550   test -f $srcdir/config.status; then
1551  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1552echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1553   { (exit 1); exit 1; }; }
1554fi
1555
1556# Define the identity of the package.
1557 PACKAGE=amoebax
1558 VERSION=0.2.1
1559
1560
1561cat >>confdefs.h <<_ACEOF
1562#define PACKAGE "$PACKAGE"
1563_ACEOF
1564
1565
1566cat >>confdefs.h <<_ACEOF
1567#define VERSION "$VERSION"
1568_ACEOF
1569
1570# Some tools Automake needs.
1571
1572ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1573
1574
1575AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1576
1577
1578AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1579
1580
1581AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1582
1583
1584MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1585
1586
1587AMTAR=${AMTAR-"${am_missing_run}tar"}
1588
1589install_sh=${install_sh-"$am_aux_dir/install-sh"}
1590
1591# Installed binaries are usually stripped using `strip' when the user
1592# run `make install-strip'.  However `strip' might not be the right
1593# tool to use in cross-compilation environments, therefore Automake
1594# will honor the `STRIP' environment variable to overrule this program.
1595if test "$cross_compiling" != no; then
1596  if test -n "$ac_tool_prefix"; then
1597  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1598set dummy ${ac_tool_prefix}strip; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_STRIP+set}" = set; then
1602  echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604  if test -n "$STRIP"; then
1605  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1606else
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610  IFS=$as_save_IFS
1611  test -z "$as_dir" && as_dir=.
1612  for ac_exec_ext in '' $ac_executable_extensions; do
1613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616    break 2
1617  fi
1618done
1619done
1620
1621fi
1622fi
1623STRIP=$ac_cv_prog_STRIP
1624if test -n "$STRIP"; then
1625  echo "$as_me:$LINENO: result: $STRIP" >&5
1626echo "${ECHO_T}$STRIP" >&6
1627else
1628  echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
1630fi
1631
1632fi
1633if test -z "$ac_cv_prog_STRIP"; then
1634  ac_ct_STRIP=$STRIP
1635  # Extract the first word of "strip", so it can be a program name with args.
1636set dummy strip; ac_word=$2
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1640  echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642  if test -n "$ac_ct_STRIP"; then
1643  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648  IFS=$as_save_IFS
1649  test -z "$as_dir" && as_dir=.
1650  for ac_exec_ext in '' $ac_executable_extensions; do
1651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652    ac_cv_prog_ac_ct_STRIP="strip"
1653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654    break 2
1655  fi
1656done
1657done
1658
1659  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1660fi
1661fi
1662ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1663if test -n "$ac_ct_STRIP"; then
1664  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1665echo "${ECHO_T}$ac_ct_STRIP" >&6
1666else
1667  echo "$as_me:$LINENO: result: no" >&5
1668echo "${ECHO_T}no" >&6
1669fi
1670
1671  STRIP=$ac_ct_STRIP
1672else
1673  STRIP="$ac_cv_prog_STRIP"
1674fi
1675
1676fi
1677INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1678
1679# We need awk for the "check" target.  The system "awk" is bad on
1680# some platforms.
1681
1682
1683
1684# Add the stamp file to the list of files AC keeps track of,
1685# along with our hook.
1686          ac_config_headers="$ac_config_headers config.h"
1687
1688
1689
1690echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1691echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1692    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1693if test "${enable_maintainer_mode+set}" = set; then
1694  enableval="$enable_maintainer_mode"
1695  USE_MAINTAINER_MODE=$enableval
1696else
1697  USE_MAINTAINER_MODE=no
1698fi;
1699  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1700echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1701
1702
1703if test $USE_MAINTAINER_MODE = yes; then
1704  MAINTAINER_MODE_TRUE=
1705  MAINTAINER_MODE_FALSE='#'
1706else
1707  MAINTAINER_MODE_TRUE='#'
1708  MAINTAINER_MODE_FALSE=
1709fi
1710
1711  MAINT=$MAINTAINER_MODE_TRUE
1712
1713
1714
1715# Check host.
1716# Make sure we can run config.sub.
1717$ac_config_sub sun4 >/dev/null 2>&1 ||
1718  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1719echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1720   { (exit 1); exit 1; }; }
1721
1722echo "$as_me:$LINENO: checking build system type" >&5
1723echo $ECHO_N "checking build system type... $ECHO_C" >&6
1724if test "${ac_cv_build+set}" = set; then
1725  echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727  ac_cv_build_alias=$build_alias
1728test -z "$ac_cv_build_alias" &&
1729  ac_cv_build_alias=`$ac_config_guess`
1730test -z "$ac_cv_build_alias" &&
1731  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1732echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1733   { (exit 1); exit 1; }; }
1734ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1735  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1736echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1737   { (exit 1); exit 1; }; }
1738
1739fi
1740echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1741echo "${ECHO_T}$ac_cv_build" >&6
1742build=$ac_cv_build
1743build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746
1747
1748echo "$as_me:$LINENO: checking host system type" >&5
1749echo $ECHO_N "checking host system type... $ECHO_C" >&6
1750if test "${ac_cv_host+set}" = set; then
1751  echo $ECHO_N "(cached) $ECHO_C" >&6
1752else
1753  ac_cv_host_alias=$host_alias
1754test -z "$ac_cv_host_alias" &&
1755  ac_cv_host_alias=$ac_cv_build_alias
1756ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1757  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1758echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1759   { (exit 1); exit 1; }; }
1760
1761fi
1762echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1763echo "${ECHO_T}$ac_cv_host" >&6
1764host=$ac_cv_host
1765host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1766host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1767host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1768
1769
1770case "${host}" in
1771    *-apple-darwin*)
1772
1773cat >>confdefs.h <<\_ACEOF
1774#define IS_OSX_HOST 1
1775_ACEOF
1776
1777        osx_host="yes"
1778        ;;
1779    *-gp2x*)
1780
1781cat >>confdefs.h <<\_ACEOF
1782#define IS_GP2X_HOST 1
1783_ACEOF
1784
1785        gp2x_host="yes"
1786        ;;
1787    arm-*-mingw32*)
1788
1789cat >>confdefs.h <<\_ACEOF
1790#define IS_WINCE_HOST 1
1791_ACEOF
1792
1793        wince_host="yes"
1794        ;;
1795    *-*-mingw32* | *-*-cygwin*)
1796
1797cat >>confdefs.h <<\_ACEOF
1798#define IS_WIN32_HOST 1
1799_ACEOF
1800
1801        win32_host="yes"
1802        ;;
1803esac
1804
1805
1806if test "x${osx_host}" = "xyes"; then
1807  IS_OSX_HOST_TRUE=
1808  IS_OSX_HOST_FALSE='#'
1809else
1810  IS_OSX_HOST_TRUE='#'
1811  IS_OSX_HOST_FALSE=
1812fi
1813
1814
1815
1816if test "x${gp2x_host}" = "xyes"; then
1817  IS_GP2X_HOST_TRUE=
1818  IS_GP2X_HOST_FALSE='#'
1819else
1820  IS_GP2X_HOST_TRUE='#'
1821  IS_GP2X_HOST_FALSE=
1822fi
1823
1824
1825
1826if test "x${win32_host}" = "xyes"; then
1827  IS_WIN32_HOST_TRUE=
1828  IS_WIN32_HOST_FALSE='#'
1829else
1830  IS_WIN32_HOST_TRUE='#'
1831  IS_WIN32_HOST_FALSE=
1832fi
1833
1834
1835
1836if test "x${wince_host}" = "xyes"; then
1837  IS_WINCE_HOST_TRUE=
1838  IS_WINCE_HOST_FALSE='#'
1839else
1840  IS_WINCE_HOST_TRUE='#'
1841  IS_WINCE_HOST_FALSE=
1842fi
1843
1844
1845# Parameters
1846# Check whether --enable-debug or --disable-debug was given.
1847if test "${enable_debug+set}" = set; then
1848  enableval="$enable_debug"
1849
1850fi;
1851if test "x$enable_debug" != "xyes"; then
1852    DEBUGFLAGS="-DNDEBUG"
1853else
1854    DEBUGFLAGS="-DDEBUG"
1855fi
1856
1857# Check for programs.
1858echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1859echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1860set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1861if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1862  echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864  cat >conftest.make <<\_ACEOF
1865all:
1866	@echo 'ac_maketemp="$(MAKE)"'
1867_ACEOF
1868# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1869eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1870if test -n "$ac_maketemp"; then
1871  eval ac_cv_prog_make_${ac_make}_set=yes
1872else
1873  eval ac_cv_prog_make_${ac_make}_set=no
1874fi
1875rm -f conftest.make
1876fi
1877if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1878  echo "$as_me:$LINENO: result: yes" >&5
1879echo "${ECHO_T}yes" >&6
1880  SET_MAKE=
1881else
1882  echo "$as_me:$LINENO: result: no" >&5
1883echo "${ECHO_T}no" >&6
1884  SET_MAKE="MAKE=${MAKE-make}"
1885fi
1886
1887ac_ext=cc
1888ac_cpp='$CXXCPP $CPPFLAGS'
1889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1892if test -n "$ac_tool_prefix"; then
1893  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1894  do
1895    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1897echo "$as_me:$LINENO: checking for $ac_word" >&5
1898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899if test "${ac_cv_prog_CXX+set}" = set; then
1900  echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902  if test -n "$CXX"; then
1903  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908  IFS=$as_save_IFS
1909  test -z "$as_dir" && as_dir=.
1910  for ac_exec_ext in '' $ac_executable_extensions; do
1911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914    break 2
1915  fi
1916done
1917done
1918
1919fi
1920fi
1921CXX=$ac_cv_prog_CXX
1922if test -n "$CXX"; then
1923  echo "$as_me:$LINENO: result: $CXX" >&5
1924echo "${ECHO_T}$CXX" >&6
1925else
1926  echo "$as_me:$LINENO: result: no" >&5
1927echo "${ECHO_T}no" >&6
1928fi
1929
1930    test -n "$CXX" && break
1931  done
1932fi
1933if test -z "$CXX"; then
1934  ac_ct_CXX=$CXX
1935  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1936do
1937  # Extract the first word of "$ac_prog", so it can be a program name with args.
1938set dummy $ac_prog; ac_word=$2
1939echo "$as_me:$LINENO: checking for $ac_word" >&5
1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1942  echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944  if test -n "$ac_ct_CXX"; then
1945  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1946else
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950  IFS=$as_save_IFS
1951  test -z "$as_dir" && as_dir=.
1952  for ac_exec_ext in '' $ac_executable_extensions; do
1953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954    ac_cv_prog_ac_ct_CXX="$ac_prog"
1955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956    break 2
1957  fi
1958done
1959done
1960
1961fi
1962fi
1963ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1964if test -n "$ac_ct_CXX"; then
1965  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1966echo "${ECHO_T}$ac_ct_CXX" >&6
1967else
1968  echo "$as_me:$LINENO: result: no" >&5
1969echo "${ECHO_T}no" >&6
1970fi
1971
1972  test -n "$ac_ct_CXX" && break
1973done
1974test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1975
1976  CXX=$ac_ct_CXX
1977fi
1978
1979
1980# Provide some information about the compiler.
1981echo "$as_me:$LINENO:" \
1982     "checking for C++ compiler version" >&5
1983ac_compiler=`set X $ac_compile; echo $2`
1984{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1985  (eval $ac_compiler --version </dev/null >&5) 2>&5
1986  ac_status=$?
1987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988  (exit $ac_status); }
1989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1990  (eval $ac_compiler -v </dev/null >&5) 2>&5
1991  ac_status=$?
1992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993  (exit $ac_status); }
1994{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1995  (eval $ac_compiler -V </dev/null >&5) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }
1999
2000cat >conftest.$ac_ext <<_ACEOF
2001/* confdefs.h.  */
2002_ACEOF
2003cat confdefs.h >>conftest.$ac_ext
2004cat >>conftest.$ac_ext <<_ACEOF
2005/* end confdefs.h.  */
2006
2007int
2008main ()
2009{
2010
2011  ;
2012  return 0;
2013}
2014_ACEOF
2015ac_clean_files_save=$ac_clean_files
2016ac_clean_files="$ac_clean_files a.out a.exe b.out"
2017# Try to create an executable without -o first, disregard a.out.
2018# It will help us diagnose broken compilers, and finding out an intuition
2019# of exeext.
2020echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2021echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2022ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2023if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2024  (eval $ac_link_default) 2>&5
2025  ac_status=$?
2026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027  (exit $ac_status); }; then
2028  # Find the output, starting from the most likely.  This scheme is
2029# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2030# resort.
2031
2032# Be careful to initialize this variable, since it used to be cached.
2033# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2034ac_cv_exeext=
2035# b.out is created by i960 compilers.
2036for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2037do
2038  test -f "$ac_file" || continue
2039  case $ac_file in
2040    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2041	;;
2042    conftest.$ac_ext )
2043	# This is the source file.
2044	;;
2045    [ab].out )
2046	# We found the default executable, but exeext='' is most
2047	# certainly right.
2048	break;;
2049    *.* )
2050	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2051	# FIXME: I believe we export ac_cv_exeext for Libtool,
2052	# but it would be cool to find out if it's true.  Does anybody
2053	# maintain Libtool? --akim.
2054	export ac_cv_exeext
2055	break;;
2056    * )
2057	break;;
2058  esac
2059done
2060else
2061  echo "$as_me: failed program was:" >&5
2062sed 's/^/| /' conftest.$ac_ext >&5
2063
2064{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: C++ compiler cannot create executables
2067See \`config.log' for more details." >&2;}
2068   { (exit 77); exit 77; }; }
2069fi
2070
2071ac_exeext=$ac_cv_exeext
2072echo "$as_me:$LINENO: result: $ac_file" >&5
2073echo "${ECHO_T}$ac_file" >&6
2074
2075# Check the compiler produces executables we can run.  If not, either
2076# the compiler is broken, or we cross compile.
2077echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2078echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2079# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2080# If not cross compiling, check that we can run a simple program.
2081if test "$cross_compiling" != yes; then
2082  if { ac_try='./$ac_file'
2083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084  (eval $ac_try) 2>&5
2085  ac_status=$?
2086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087  (exit $ac_status); }; }; then
2088    cross_compiling=no
2089  else
2090    if test "$cross_compiling" = maybe; then
2091	cross_compiling=yes
2092    else
2093	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2094If you meant to cross compile, use \`--host'.
2095See \`config.log' for more details." >&5
2096echo "$as_me: error: cannot run C++ compiled programs.
2097If you meant to cross compile, use \`--host'.
2098See \`config.log' for more details." >&2;}
2099   { (exit 1); exit 1; }; }
2100    fi
2101  fi
2102fi
2103echo "$as_me:$LINENO: result: yes" >&5
2104echo "${ECHO_T}yes" >&6
2105
2106rm -f a.out a.exe conftest$ac_cv_exeext b.out
2107ac_clean_files=$ac_clean_files_save
2108# Check the compiler produces executables we can run.  If not, either
2109# the compiler is broken, or we cross compile.
2110echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2111echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2112echo "$as_me:$LINENO: result: $cross_compiling" >&5
2113echo "${ECHO_T}$cross_compiling" >&6
2114
2115echo "$as_me:$LINENO: checking for suffix of executables" >&5
2116echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2118  (eval $ac_link) 2>&5
2119  ac_status=$?
2120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121  (exit $ac_status); }; then
2122  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2123# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2124# work properly (i.e., refer to `conftest.exe'), while it won't with
2125# `rm'.
2126for ac_file in conftest.exe conftest conftest.*; do
2127  test -f "$ac_file" || continue
2128  case $ac_file in
2129    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2130    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2131	  export ac_cv_exeext
2132	  break;;
2133    * ) break;;
2134  esac
2135done
2136else
2137  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2138See \`config.log' for more details." >&5
2139echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2140See \`config.log' for more details." >&2;}
2141   { (exit 1); exit 1; }; }
2142fi
2143
2144rm -f conftest$ac_cv_exeext
2145echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2146echo "${ECHO_T}$ac_cv_exeext" >&6
2147
2148rm -f conftest.$ac_ext
2149EXEEXT=$ac_cv_exeext
2150ac_exeext=$EXEEXT
2151echo "$as_me:$LINENO: checking for suffix of object files" >&5
2152echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2153if test "${ac_cv_objext+set}" = set; then
2154  echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156  cat >conftest.$ac_ext <<_ACEOF
2157/* confdefs.h.  */
2158_ACEOF
2159cat confdefs.h >>conftest.$ac_ext
2160cat >>conftest.$ac_ext <<_ACEOF
2161/* end confdefs.h.  */
2162
2163int
2164main ()
2165{
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171rm -f conftest.o conftest.obj
2172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173  (eval $ac_compile) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; then
2177  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2178  case $ac_file in
2179    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2180    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2181       break;;
2182  esac
2183done
2184else
2185  echo "$as_me: failed program was:" >&5
2186sed 's/^/| /' conftest.$ac_ext >&5
2187
2188{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2189See \`config.log' for more details." >&5
2190echo "$as_me: error: cannot compute suffix of object files: cannot compile
2191See \`config.log' for more details." >&2;}
2192   { (exit 1); exit 1; }; }
2193fi
2194
2195rm -f conftest.$ac_cv_objext conftest.$ac_ext
2196fi
2197echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2198echo "${ECHO_T}$ac_cv_objext" >&6
2199OBJEXT=$ac_cv_objext
2200ac_objext=$OBJEXT
2201echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2202echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2203if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2204  echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206  cat >conftest.$ac_ext <<_ACEOF
2207/* confdefs.h.  */
2208_ACEOF
2209cat confdefs.h >>conftest.$ac_ext
2210cat >>conftest.$ac_ext <<_ACEOF
2211/* end confdefs.h.  */
2212
2213int
2214main ()
2215{
2216#ifndef __GNUC__
2217       choke me
2218#endif
2219
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226  (eval $ac_compile) 2>conftest.er1
2227  ac_status=$?
2228  grep -v '^ *+' conftest.er1 >conftest.err
2229  rm -f conftest.er1
2230  cat conftest.err >&5
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); } &&
2233	 { ac_try='test -z "$ac_cxx_werror_flag"
2234			 || test ! -s conftest.err'
2235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236  (eval $ac_try) 2>&5
2237  ac_status=$?
2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239  (exit $ac_status); }; } &&
2240	 { ac_try='test -s conftest.$ac_objext'
2241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242  (eval $ac_try) 2>&5
2243  ac_status=$?
2244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245  (exit $ac_status); }; }; then
2246  ac_compiler_gnu=yes
2247else
2248  echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251ac_compiler_gnu=no
2252fi
2253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2255
2256fi
2257echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2258echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2259GXX=`test $ac_compiler_gnu = yes && echo yes`
2260ac_test_CXXFLAGS=${CXXFLAGS+set}
2261ac_save_CXXFLAGS=$CXXFLAGS
2262CXXFLAGS="-g"
2263echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2264echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2265if test "${ac_cv_prog_cxx_g+set}" = set; then
2266  echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268  cat >conftest.$ac_ext <<_ACEOF
2269/* confdefs.h.  */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h.  */
2274
2275int
2276main ()
2277{
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285  (eval $ac_compile) 2>conftest.er1
2286  ac_status=$?
2287  grep -v '^ *+' conftest.er1 >conftest.err
2288  rm -f conftest.er1
2289  cat conftest.err >&5
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); } &&
2292	 { ac_try='test -z "$ac_cxx_werror_flag"
2293			 || test ! -s conftest.err'
2294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295  (eval $ac_try) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; } &&
2299	 { ac_try='test -s conftest.$ac_objext'
2300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301  (eval $ac_try) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; }; then
2305  ac_cv_prog_cxx_g=yes
2306else
2307  echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310ac_cv_prog_cxx_g=no
2311fi
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313fi
2314echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2315echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2316if test "$ac_test_CXXFLAGS" = set; then
2317  CXXFLAGS=$ac_save_CXXFLAGS
2318elif test $ac_cv_prog_cxx_g = yes; then
2319  if test "$GXX" = yes; then
2320    CXXFLAGS="-g -O2"
2321  else
2322    CXXFLAGS="-g"
2323  fi
2324else
2325  if test "$GXX" = yes; then
2326    CXXFLAGS="-O2"
2327  else
2328    CXXFLAGS=
2329  fi
2330fi
2331for ac_declaration in \
2332   ''
2333do
2334  cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h.  */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h.  */
2340$ac_declaration
2341#include <stdlib.h>
2342int
2343main ()
2344{
2345exit (42);
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350rm -f conftest.$ac_objext
2351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352  (eval $ac_compile) 2>conftest.er1
2353  ac_status=$?
2354  grep -v '^ *+' conftest.er1 >conftest.err
2355  rm -f conftest.er1
2356  cat conftest.err >&5
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); } &&
2359	 { ac_try='test -z "$ac_cxx_werror_flag"
2360			 || test ! -s conftest.err'
2361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362  (eval $ac_try) 2>&5
2363  ac_status=$?
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); }; } &&
2366	 { ac_try='test -s conftest.$ac_objext'
2367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368  (eval $ac_try) 2>&5
2369  ac_status=$?
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); }; }; then
2372  :
2373else
2374  echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377continue
2378fi
2379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380  cat >conftest.$ac_ext <<_ACEOF
2381/* confdefs.h.  */
2382_ACEOF
2383cat confdefs.h >>conftest.$ac_ext
2384cat >>conftest.$ac_ext <<_ACEOF
2385/* end confdefs.h.  */
2386$ac_declaration
2387int
2388main ()
2389{
2390exit (42);
2391  ;
2392  return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext
2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397  (eval $ac_compile) 2>conftest.er1
2398  ac_status=$?
2399  grep -v '^ *+' conftest.er1 >conftest.err
2400  rm -f conftest.er1
2401  cat conftest.err >&5
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); } &&
2404	 { ac_try='test -z "$ac_cxx_werror_flag"
2405			 || test ! -s conftest.err'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; } &&
2411	 { ac_try='test -s conftest.$ac_objext'
2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413  (eval $ac_try) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; }; then
2417  break
2418else
2419  echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422fi
2423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424done
2425rm -f conftest*
2426if test -n "$ac_declaration"; then
2427  echo '#ifdef __cplusplus' >>confdefs.h
2428  echo $ac_declaration      >>confdefs.h
2429  echo '#endif'             >>confdefs.h
2430fi
2431
2432ac_ext=c
2433ac_cpp='$CPP $CPPFLAGS'
2434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437rm -f .deps 2>/dev/null
2438mkdir .deps 2>/dev/null
2439if test -d .deps; then
2440  DEPDIR=.deps
2441else
2442  # MS-DOS does not allow filenames that begin with a dot.
2443  DEPDIR=_deps
2444fi
2445rmdir .deps 2>/dev/null
2446
2447
2448          ac_config_commands="$ac_config_commands depfiles"
2449
2450
2451am_make=${MAKE-make}
2452cat > confinc << 'END'
2453doit:
2454	@echo done
2455END
2456# If we don't find an include directive, just comment out the code.
2457echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2458echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2459am__include="#"
2460am__quote=
2461_am_result=none
2462# First try GNU make style include.
2463echo "include confinc" > confmf
2464# We grep out `Entering directory' and `Leaving directory'
2465# messages which can occur if `w' ends up in MAKEFLAGS.
2466# In particular we don't look at `^make:' because GNU make might
2467# be invoked under some other name (usually "gmake"), in which
2468# case it prints its new name instead of `make'.
2469if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2470   am__include=include
2471   am__quote=
2472   _am_result=GNU
2473fi
2474# Now try BSD make style include.
2475if test "$am__include" = "#"; then
2476   echo '.include "confinc"' > confmf
2477   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2478      am__include=.include
2479      am__quote="\""
2480      _am_result=BSD
2481   fi
2482fi
2483
2484
2485echo "$as_me:$LINENO: result: $_am_result" >&5
2486echo "${ECHO_T}$_am_result" >&6
2487rm -f confinc confmf
2488
2489# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2490if test "${enable_dependency_tracking+set}" = set; then
2491  enableval="$enable_dependency_tracking"
2492
2493fi;
2494if test "x$enable_dependency_tracking" != xno; then
2495  am_depcomp="$ac_aux_dir/depcomp"
2496  AMDEPBACKSLASH='\'
2497fi
2498
2499
2500if test "x$enable_dependency_tracking" != xno; then
2501  AMDEP_TRUE=
2502  AMDEP_FALSE='#'
2503else
2504  AMDEP_TRUE='#'
2505  AMDEP_FALSE=
2506fi
2507
2508
2509
2510
2511depcc="$CXX"  am_compiler_list=
2512
2513echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2514echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2515if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2516  echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2519  # We make a subdir and do the tests there.  Otherwise we can end up
2520  # making bogus files that we don't know about and never remove.  For
2521  # instance it was reported that on HP-UX the gcc test will end up
2522  # making a dummy file named `D' -- because `-MD' means `put the output
2523  # in D'.
2524  mkdir conftest.dir
2525  # Copy depcomp to subdir because otherwise we won't find it if we're
2526  # using a relative directory.
2527  cp "$am_depcomp" conftest.dir
2528  cd conftest.dir
2529
2530  am_cv_CXX_dependencies_compiler_type=none
2531  if test "$am_compiler_list" = ""; then
2532     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2533  fi
2534  for depmode in $am_compiler_list; do
2535    # We need to recreate these files for each test, as the compiler may
2536    # overwrite some of them when testing with obscure command lines.
2537    # This happens at least with the AIX C compiler.
2538    echo '#include "conftest.h"' > conftest.c
2539    echo 'int i;' > conftest.h
2540    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2541
2542    case $depmode in
2543    nosideeffect)
2544      # after this tag, mechanisms are not by side-effect, so they'll
2545      # only be used when explicitly requested
2546      if test "x$enable_dependency_tracking" = xyes; then
2547	continue
2548      else
2549	break
2550      fi
2551      ;;
2552    none) break ;;
2553    esac
2554    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2555    # mode.  It turns out that the SunPro C++ compiler does not properly
2556    # handle `-M -o', and we need to detect this.
2557    if depmode=$depmode \
2558       source=conftest.c object=conftest.o \
2559       depfile=conftest.Po tmpdepfile=conftest.TPo \
2560       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2561       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2562       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2563      am_cv_CXX_dependencies_compiler_type=$depmode
2564      break
2565    fi
2566  done
2567
2568  cd ..
2569  rm -rf conftest.dir
2570else
2571  am_cv_CXX_dependencies_compiler_type=none
2572fi
2573
2574fi
2575echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2576echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2577CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2578
2579
2580ac_ext=cc
2581ac_cpp='$CXXCPP $CPPFLAGS'
2582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2585
2586# Support for Objective-C in OS X.
2587ac_ext=m
2588ac_cpp='$OBJCPP $CPPFLAGS'
2589ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_objc_compiler_gnu
2592if test -n "$ac_tool_prefix"; then
2593  for ac_prog in $CCC gcc cc objc
2594  do
2595    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2597echo "$as_me:$LINENO: checking for $ac_word" >&5
2598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599if test "${ac_cv_prog_OBJC+set}" = set; then
2600  echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
2602  if test -n "$OBJC"; then
2603  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608  IFS=$as_save_IFS
2609  test -z "$as_dir" && as_dir=.
2610  for ac_exec_ext in '' $ac_executable_extensions; do
2611  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
2613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614    break 2
2615  fi
2616done
2617done
2618
2619fi
2620fi
2621OBJC=$ac_cv_prog_OBJC
2622if test -n "$OBJC"; then
2623  echo "$as_me:$LINENO: result: $OBJC" >&5
2624echo "${ECHO_T}$OBJC" >&6
2625else
2626  echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6
2628fi
2629
2630    test -n "$OBJC" && break
2631  done
2632fi
2633if test -z "$OBJC"; then
2634  ac_ct_OBJC=$OBJC
2635  for ac_prog in $CCC gcc cc objc
2636do
2637  # Extract the first word of "$ac_prog", so it can be a program name with args.
2638set dummy $ac_prog; ac_word=$2
2639echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
2642  echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644  if test -n "$ac_ct_OBJC"; then
2645  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650  IFS=$as_save_IFS
2651  test -z "$as_dir" && as_dir=.
2652  for ac_exec_ext in '' $ac_executable_extensions; do
2653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654    ac_cv_prog_ac_ct_OBJC="$ac_prog"
2655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656    break 2
2657  fi
2658done
2659done
2660
2661fi
2662fi
2663ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
2664if test -n "$ac_ct_OBJC"; then
2665  echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
2666echo "${ECHO_T}$ac_ct_OBJC" >&6
2667else
2668  echo "$as_me:$LINENO: result: no" >&5
2669echo "${ECHO_T}no" >&6
2670fi
2671
2672  test -n "$ac_ct_OBJC" && break
2673done
2674test -n "$ac_ct_OBJC" || ac_ct_OBJC="gcc"
2675
2676  OBJC=$ac_ct_OBJC
2677fi
2678
2679
2680# Provide some information about the compiler.
2681echo "$as_me:$LINENO:" \
2682     "checking for Objective C compiler version" >&5
2683ac_compiler=`set X $ac_compile; echo $2`
2684{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2685  (eval $ac_compiler --version </dev/null >&5) 2>&5
2686  ac_status=$?
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); }
2689{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2690  (eval $ac_compiler -v </dev/null >&5) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }
2694{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2695  (eval $ac_compiler -V </dev/null >&5) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }
2699
2700echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
2701echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6
2702if test "${ac_cv_objc_compiler_gnu+set}" = set; then
2703  echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705  cat >conftest.$ac_ext <<_ACEOF
2706/* confdefs.h.  */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h.  */
2711
2712int
2713main ()
2714{
2715#ifndef __GNUC__
2716       choke me
2717#endif
2718
2719  ;
2720  return 0;
2721}
2722_ACEOF
2723rm -f conftest.$ac_objext
2724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725  (eval $ac_compile) 2>conftest.er1
2726  ac_status=$?
2727  grep -v '^ *+' conftest.er1 >conftest.err
2728  rm -f conftest.er1
2729  cat conftest.err >&5
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); } &&
2732	 { ac_try='test -z "$ac_objc_werror_flag"
2733			 || test ! -s conftest.err'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; } &&
2739	 { ac_try='test -s conftest.$ac_objext'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; }; then
2745  ac_compiler_gnu=yes
2746else
2747  echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750ac_compiler_gnu=no
2751fi
2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753ac_cv_objc_compiler_gnu=$ac_compiler_gnu
2754
2755fi
2756echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
2757echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6
2758GOBJC=`test $ac_compiler_gnu = yes && echo yes`
2759ac_test_OBJCFLAGS=${OBJCFLAGS+set}
2760ac_save_OBJCFLAGS=$OBJCFLAGS
2761OBJCFLAGS="$OBJCFLAGS -x objective-c"
2762echo "$as_me:$LINENO: checking whether $OBJC accepts -x objective-c" >&5
2763echo $ECHO_N "checking whether $OBJC accepts -x objective-c... $ECHO_C" >&6
2764if test "${ac_cv_prog_objc_x+set}" = set; then
2765  echo $ECHO_N "(cached) $ECHO_C" >&6
2766else
2767  cat >conftest.$ac_ext <<_ACEOF
2768/* confdefs.h.  */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h.  */
2773
2774int
2775main ()
2776{
2777
2778  ;
2779  return 0;
2780}
2781_ACEOF
2782rm -f conftest.$ac_objext
2783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784  (eval $ac_compile) 2>conftest.er1
2785  ac_status=$?
2786  grep -v '^ *+' conftest.er1 >conftest.err
2787  rm -f conftest.er1
2788  cat conftest.err >&5
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); } &&
2791	 { ac_try='test -z "$ac_objc_werror_flag"
2792			 || test ! -s conftest.err'
2793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794  (eval $ac_try) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }; } &&
2798	 { ac_try='test -s conftest.$ac_objext'
2799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800  (eval $ac_try) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804  ac_cv_prog_objc_x=yes
2805else
2806  echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809ac_cv_prog_objc_x=no
2810fi
2811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812fi
2813echo "$as_me:$LINENO: result: $ac_cv_prog_objc_x" >&5
2814echo "${ECHO_T}$ac_cv_prog_objc_x" >&6
2815if test $ac_cv_prog_objc_x = yes; then
2816  OBJCFLAGS="$ac_save_OBJCFLAGS -x objective-c"
2817else
2818  OBJCFLAGS="$ac_save_OBJCFLAGS"
2819fi
2820ac_ext=cc
2821ac_cpp='$CXXCPP $CPPFLAGS'
2822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2825
2826
2827
2828
2829depcc="$OBJC" am_compiler_list='gcc3 gcc'
2830
2831echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2832echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2833if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
2834  echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2837  # We make a subdir and do the tests there.  Otherwise we can end up
2838  # making bogus files that we don't know about and never remove.  For
2839  # instance it was reported that on HP-UX the gcc test will end up
2840  # making a dummy file named `D' -- because `-MD' means `put the output
2841  # in D'.
2842  mkdir conftest.dir
2843  # Copy depcomp to subdir because otherwise we won't find it if we're
2844  # using a relative directory.
2845  cp "$am_depcomp" conftest.dir
2846  cd conftest.dir
2847
2848  am_cv_OBJC_dependencies_compiler_type=none
2849  if test "$am_compiler_list" = ""; then
2850     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2851  fi
2852  for depmode in $am_compiler_list; do
2853    # We need to recreate these files for each test, as the compiler may
2854    # overwrite some of them when testing with obscure command lines.
2855    # This happens at least with the AIX C compiler.
2856    echo '#include "conftest.h"' > conftest.c
2857    echo 'int i;' > conftest.h
2858    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2859
2860    case $depmode in
2861    nosideeffect)
2862      # after this tag, mechanisms are not by side-effect, so they'll
2863      # only be used when explicitly requested
2864      if test "x$enable_dependency_tracking" = xyes; then
2865	continue
2866      else
2867	break
2868      fi
2869      ;;
2870    none) break ;;
2871    esac
2872    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2873    # mode.  It turns out that the SunPro C++ compiler does not properly
2874    # handle `-M -o', and we need to detect this.
2875    if depmode=$depmode \
2876       source=conftest.c object=conftest.o \
2877       depfile=conftest.Po tmpdepfile=conftest.TPo \
2878       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2879       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2880       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2881      am_cv_OBJC_dependencies_compiler_type=$depmode
2882      break
2883    fi
2884  done
2885
2886  cd ..
2887  rm -rf conftest.dir
2888else
2889  am_cv_OBJC_dependencies_compiler_type=none
2890fi
2891
2892fi
2893echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
2894echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6
2895OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
2896
2897
2898# Support for resource files in Windows.
2899if test -n "$ac_tool_prefix"; then
2900  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2901set dummy ${ac_tool_prefix}windres; ac_word=$2
2902echo "$as_me:$LINENO: checking for $ac_word" >&5
2903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904if test "${ac_cv_prog_WINDRES+set}" = set; then
2905  echo $ECHO_N "(cached) $ECHO_C" >&6
2906else
2907  if test -n "$WINDRES"; then
2908  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2909else
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913  IFS=$as_save_IFS
2914  test -z "$as_dir" && as_dir=.
2915  for ac_exec_ext in '' $ac_executable_extensions; do
2916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919    break 2
2920  fi
2921done
2922done
2923
2924fi
2925fi
2926WINDRES=$ac_cv_prog_WINDRES
2927if test -n "$WINDRES"; then
2928  echo "$as_me:$LINENO: result: $WINDRES" >&5
2929echo "${ECHO_T}$WINDRES" >&6
2930else
2931  echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
2933fi
2934
2935fi
2936if test -z "$ac_cv_prog_WINDRES"; then
2937  ac_ct_WINDRES=$WINDRES
2938  # Extract the first word of "windres", so it can be a program name with args.
2939set dummy windres; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$ac_ct_WINDRES"; then
2946  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_WINDRES="windres"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961
2962  test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="no"
2963fi
2964fi
2965ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2966if test -n "$ac_ct_WINDRES"; then
2967  echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2968echo "${ECHO_T}$ac_ct_WINDRES" >&6
2969else
2970  echo "$as_me:$LINENO: result: no" >&5
2971echo "${ECHO_T}no" >&6
2972fi
2973
2974  WINDRES=$ac_ct_WINDRES
2975else
2976  WINDRES="$ac_cv_prog_WINDRES"
2977fi
2978
2979
2980
2981if test "x$WINDRES" != "xno"; then
2982  build_win32_resource_TRUE=
2983  build_win32_resource_FALSE='#'
2984else
2985  build_win32_resource_TRUE='#'
2986  build_win32_resource_FALSE=
2987fi
2988
2989# Check for WiX files in order to create Windows installer script.
2990# Extract the first word of "candle", so it can be a program name with args.
2991set dummy candle; ac_word=$2
2992echo "$as_me:$LINENO: checking for $ac_word" >&5
2993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994if test "${ac_cv_path_CANDLE+set}" = set; then
2995  echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997  case $CANDLE in
2998  [\\/]* | ?:[\\/]*)
2999  ac_cv_path_CANDLE="$CANDLE" # Let the user override the test with a path.
3000  ;;
3001  *)
3002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005  IFS=$as_save_IFS
3006  test -z "$as_dir" && as_dir=.
3007  for ac_exec_ext in '' $ac_executable_extensions; do
3008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009    ac_cv_path_CANDLE="$as_dir/$ac_word$ac_exec_ext"
3010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011    break 2
3012  fi
3013done
3014done
3015
3016  test -z "$ac_cv_path_CANDLE" && ac_cv_path_CANDLE="no"
3017  ;;
3018esac
3019fi
3020CANDLE=$ac_cv_path_CANDLE
3021
3022if test -n "$CANDLE"; then
3023  echo "$as_me:$LINENO: result: $CANDLE" >&5
3024echo "${ECHO_T}$CANDLE" >&6
3025else
3026  echo "$as_me:$LINENO: result: no" >&5
3027echo "${ECHO_T}no" >&6
3028fi
3029
3030# Extract the first word of "light", so it can be a program name with args.
3031set dummy light; ac_word=$2
3032echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034if test "${ac_cv_path_LIGHT+set}" = set; then
3035  echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037  case $LIGHT in
3038  [\\/]* | ?:[\\/]*)
3039  ac_cv_path_LIGHT="$LIGHT" # Let the user override the test with a path.
3040  ;;
3041  *)
3042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047  for ac_exec_ext in '' $ac_executable_extensions; do
3048  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049    ac_cv_path_LIGHT="$as_dir/$ac_word$ac_exec_ext"
3050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054done
3055
3056  test -z "$ac_cv_path_LIGHT" && ac_cv_path_LIGHT="no"
3057  ;;
3058esac
3059fi
3060LIGHT=$ac_cv_path_LIGHT
3061
3062if test -n "$LIGHT"; then
3063  echo "$as_me:$LINENO: result: $LIGHT" >&5
3064echo "${ECHO_T}$LIGHT" >&6
3065else
3066  echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6
3068fi
3069
3070
3071
3072if test "x$CANDLE" != "xno" -a "x$LIGHT" != "xno"; then
3073  build_win32_msi_TRUE=
3074  build_win32_msi_FALSE='#'
3075else
3076  build_win32_msi_TRUE='#'
3077  build_win32_msi_FALSE=
3078fi
3079
3080# Support for documentation.
3081# Extract the first word of "doxygen", so it can be a program name with args.
3082set dummy doxygen; ac_word=$2
3083echo "$as_me:$LINENO: checking for $ac_word" >&5
3084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085if test "${ac_cv_path_DOXYGEN+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  case $DOXYGEN in
3089  [\\/]* | ?:[\\/]*)
3090  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
3091  ;;
3092  *)
3093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096  IFS=$as_save_IFS
3097  test -z "$as_dir" && as_dir=.
3098  for ac_exec_ext in '' $ac_executable_extensions; do
3099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
3101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105done
3106
3107  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
3108  ;;
3109esac
3110fi
3111DOXYGEN=$ac_cv_path_DOXYGEN
3112
3113if test -n "$DOXYGEN"; then
3114  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
3115echo "${ECHO_T}$DOXYGEN" >&6
3116else
3117  echo "$as_me:$LINENO: result: no" >&5
3118echo "${ECHO_T}no" >&6
3119fi
3120
3121
3122
3123if test "x$DOXYGEN" != "xno"; then
3124  build_reference_TRUE=
3125  build_reference_FALSE='#'
3126else
3127  build_reference_TRUE='#'
3128  build_reference_FALSE=
3129fi
3130
3131
3132# Check for header files.
3133# Check for libraries.
3134
3135
3136	# Check whether --enable-binreloc or --disable-binreloc was given.
3137if test "${enable_binreloc+set}" = set; then
3138  enableval="$enable_binreloc"
3139  enable_binreloc=$enableval
3140else
3141  enable_binreloc=auto
3142fi;
3143
3144	# Check whether --enable-binreloc-threads or --disable-binreloc-threads was given.
3145if test "${enable_binreloc_threads+set}" = set; then
3146  enableval="$enable_binreloc_threads"
3147  enable_binreloc_threads=$enableval
3148else
3149  enable_binreloc_threads=yes
3150fi;
3151
3152	BINRELOC_CFLAGS=
3153	BINRELOC_LIBS=
3154	if test "x$enable_binreloc" = "xauto"; then
3155		echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
3156echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
3157if test "${ac_cv_file__proc_self_maps+set}" = set; then
3158  echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160  test "$cross_compiling" = yes &&
3161  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3162echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3163   { (exit 1); exit 1; }; }
3164if test -r "/proc/self/maps"; then
3165  ac_cv_file__proc_self_maps=yes
3166else
3167  ac_cv_file__proc_self_maps=no
3168fi
3169fi
3170echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
3171echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
3172
3173		echo "$as_me:$LINENO: checking whether everything is installed to the same prefix" >&5
3174echo $ECHO_N "checking whether everything is installed to the same prefix... $ECHO_C" >&6
3175if test "${br_cv_valid_prefixes+set}" = set; then
3176  echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178
3179				if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
3180					"$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \
3181					"$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc'
3182				then
3183					br_cv_valid_prefixes=yes
3184				else
3185					br_cv_valid_prefixes=no
3186				fi
3187
3188fi
3189echo "$as_me:$LINENO: result: $br_cv_valid_prefixes" >&5
3190echo "${ECHO_T}$br_cv_valid_prefixes" >&6
3191	fi
3192	echo "$as_me:$LINENO: checking whether binary relocation support should be enabled" >&5
3193echo $ECHO_N "checking whether binary relocation support should be enabled... $ECHO_C" >&6
3194if test "${br_cv_binreloc+set}" = set; then
3195  echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197  if test "x$enable_binreloc" = "xyes"; then
3198		       	       br_cv_binreloc=yes
3199		       elif test "x$enable_binreloc" = "xauto"; then
3200			       if test "x$br_cv_valid_prefixes" = "xyes" -a \
3201			       	       "x$ac_cv_file__proc_self_maps" = "xyes"; then
3202				       br_cv_binreloc=yes
3203			       else
3204				       br_cv_binreloc=no
3205			       fi
3206		       else
3207			       br_cv_binreloc=no
3208		       fi
3209fi
3210echo "$as_me:$LINENO: result: $br_cv_binreloc" >&5
3211echo "${ECHO_T}$br_cv_binreloc" >&6
3212
3213	if test "x$br_cv_binreloc" = "xyes"; then
3214		BINRELOC_CFLAGS="-DENABLE_BINRELOC"
3215
3216cat >>confdefs.h <<\_ACEOF
3217#define ENABLE_BINRELOC
3218_ACEOF
3219
3220		if test "x$enable_binreloc_threads" = "xyes"; then
3221
3222echo "$as_me:$LINENO: checking for pthread_getspecific in -lpthread" >&5
3223echo $ECHO_N "checking for pthread_getspecific in -lpthread... $ECHO_C" >&6
3224if test "${ac_cv_lib_pthread_pthread_getspecific+set}" = set; then
3225  echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227  ac_check_lib_save_LIBS=$LIBS
3228LIBS="-lpthread  $LIBS"
3229cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h.  */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h.  */
3235
3236/* Override any gcc2 internal prototype to avoid an error.  */
3237#ifdef __cplusplus
3238extern "C"
3239#endif
3240/* We use char because int might match the return type of a gcc2
3241   builtin and then its argument prototype would still apply.  */
3242char pthread_getspecific ();
3243int
3244main ()
3245{
3246pthread_getspecific ();
3247  ;
3248  return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext conftest$ac_exeext
3252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253  (eval $ac_link) 2>conftest.er1
3254  ac_status=$?
3255  grep -v '^ *+' conftest.er1 >conftest.err
3256  rm -f conftest.er1
3257  cat conftest.err >&5
3258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); } &&
3260	 { ac_try='test -z "$ac_cxx_werror_flag"
3261			 || test ! -s conftest.err'
3262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263  (eval $ac_try) 2>&5
3264  ac_status=$?
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); }; } &&
3267	 { ac_try='test -s conftest$ac_exeext'
3268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269  (eval $ac_try) 2>&5
3270  ac_status=$?
3271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272  (exit $ac_status); }; }; then
3273  ac_cv_lib_pthread_pthread_getspecific=yes
3274else
3275  echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278ac_cv_lib_pthread_pthread_getspecific=no
3279fi
3280rm -f conftest.err conftest.$ac_objext \
3281      conftest$ac_exeext conftest.$ac_ext
3282LIBS=$ac_check_lib_save_LIBS
3283fi
3284echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_getspecific" >&5
3285echo "${ECHO_T}$ac_cv_lib_pthread_pthread_getspecific" >&6
3286if test $ac_cv_lib_pthread_pthread_getspecific = yes; then
3287  cat >>confdefs.h <<_ACEOF
3288#define HAVE_LIBPTHREAD 1
3289_ACEOF
3290
3291  LIBS="-lpthread $LIBS"
3292
3293fi
3294
3295		fi
3296
3297		echo "$as_me:$LINENO: checking whether binary relocation should use threads" >&5
3298echo $ECHO_N "checking whether binary relocation should use threads... $ECHO_C" >&6
3299if test "${br_cv_binreloc_threads+set}" = set; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  if test "x$enable_binreloc_threads" = "xyes"; then
3303					if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then
3304						br_cv_binreloc_threads=yes
3305					else
3306						br_cv_binreloc_threads=no
3307					fi
3308			        else
3309					br_cv_binreloc_threads=no
3310				fi
3311fi
3312echo "$as_me:$LINENO: result: $br_cv_binreloc_threads" >&5
3313echo "${ECHO_T}$br_cv_binreloc_threads" >&6
3314
3315		if test "x$br_cv_binreloc_threads" = "xyes"; then
3316			BINRELOC_LIBS="-lpthread"
3317
3318cat >>confdefs.h <<\_ACEOF
3319#define BR_PTHREAD 1
3320_ACEOF
3321
3322		else
3323			BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0"
3324
3325cat >>confdefs.h <<\_ACEOF
3326#define BR_PTHREAD 0
3327_ACEOF
3328
3329		fi
3330	fi
3331
3332
3333
3334
3335# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
3336if test "${with_sdl_prefix+set}" = set; then
3337  withval="$with_sdl_prefix"
3338  _es_lib_sdl_prefix=$withval
3339else
3340  _es_lib_sdl_prefix=""
3341fi;
3342
3343# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
3344if test "${with_sdl_exec_prefix+set}" = set; then
3345  withval="$with_sdl_exec_prefix"
3346  _es_lib_sdl_exec_prefix=$withval
3347else
3348  _es_lib_sdl_exec_prefix=""
3349fi;
3350
3351_es_lib_sdl_found="no"
3352_es_lib_sdl_min_version=1.2.7
3353_es_lib_sdl_min_version_major=`echo ${_es_lib_sdl_min_version} | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3354_es_lib_sdl_min_version_minor=`echo ${_es_lib_sdl_min_version} | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3355_es_lib_sdl_min_version_micro=`echo ${_es_lib_sdl_min_version} | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3356
3357case "${host}" in
3358    *-apple-darwin*)
3359        _es_lib_sdl_osx=yes
3360        ;;
3361esac
3362# On Mac OS X, just try to use the SDL framework.
3363if test "x${_es_lib_sdl_osx}" = "xyes" ; then
3364    echo "$as_me:$LINENO: checking for SDL, version >= ${_es_lib_sdl_min_version}" >&5
3365echo $ECHO_N "checking for SDL, version >= ${_es_lib_sdl_min_version}... $ECHO_C" >&6
3366
3367    _es_frameworks_dirs="/System/Library/Frameworks /Library/Frameworks ~/Library/Frameworks"
3368    _es_framework_headers_dir="no"
3369    for _es_frameworks_dir in ${_es_frameworks_dirs} ; do
3370        _es_tmp_headers_dir="${_es_frameworks_dir}/SDL.framework/Headers"
3371        _es_framework_save_CFLAGS="${CFLAGS}"
3372        _es_framework_save_CXXFLAGS="${CXXFLAGS}"
3373        CFLAGS="${CFLAGS} -I${_es_tmp_headers_dir}"
3374        CXXFLAGS="${CXXFLAGS} -I${_es_tmp_headers_dir}"
3375        cat >conftest.$ac_ext <<_ACEOF
3376/* confdefs.h.  */
3377_ACEOF
3378cat confdefs.h >>conftest.$ac_ext
3379cat >>conftest.$ac_ext <<_ACEOF
3380/* end confdefs.h.  */
3381#include <SDL.h>
3382int
3383main ()
3384{
3385
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390rm -f conftest.$ac_objext
3391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392  (eval $ac_compile) 2>conftest.er1
3393  ac_status=$?
3394  grep -v '^ *+' conftest.er1 >conftest.err
3395  rm -f conftest.er1
3396  cat conftest.err >&5
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); } &&
3399	 { ac_try='test -z "$ac_cxx_werror_flag"
3400			 || test ! -s conftest.err'
3401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402  (eval $ac_try) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }; } &&
3406	 { ac_try='test -s conftest.$ac_objext'
3407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408  (eval $ac_try) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }; }; then
3412  _es_framework_headers_dir=${_es_tmp_headers_dir}
3413else
3414  echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417fi
3418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3419        CFLAGS="${_es_framework_save_CFLAGS}"
3420        CXXFLAGS="${_es_framework_save_CXXFLAGS}"
3421        if test "x${_es_framework_headers_dir}" != "xno" ; then
3422            break
3423        fi
3424    done
3425
3426    if test "x${_es_lib_sdl_osx_headers_dir}" = "xno" ; then
3427        FRAMEWORK_HEADERS_DIR=""
3428        _es_lib_sdl_osx_headers_dir="no"
3429    else
3430        FRAMEWORK_HEADERS_DIR="${_es_framework_headers_dir}"
3431        _es_lib_sdl_osx_headers_dir="${FRAMEWORK_HEADERS_DIR}"
3432    fi
3433
3434
3435    if test "x${_es_lib_sdl_osx_headers_dir}" = "xno" ; then
3436        SDL_CFLAGS=""
3437        SDL_LIBS=""
3438
3439        echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441        :
3442    else
3443        SDL_CFLAGS="-I${_es_lib_sdl_osx_headers_dir}"
3444        SDL_LIBS="-framework SDL -framework Cocoa"
3445        _es_lib_sdl_found="yes"
3446    fi
3447else
3448# On others platforms use the sdl-config program.
3449    if test "x${_es_lib_sdl_exec_prefix}" != "x" ; then
3450        _es_lib_sdl_args="${_es_lib_sdl_args} --exec-prefix=${_es_lib_sdl_exec_prefix}"
3451        _es_lib_sdl_path="${_es_lib_sdl_exec_prefix}/bin:${_es_lib_sdl_path}"
3452    fi
3453
3454    if test "x${_es_lib_sdl_prefix}" != "x" ; then
3455        _es_lib_sdl_args="${_es_lib_sdl_args} --prefix=${_es_lib_sdl_prefix}"
3456        _es_lib_sdl_path="${_es_lib_sdl_prefix}/bin:${_es_lib_sdl_path}"
3457    fi
3458    # Extract the first word of "sdl-config", so it can be a program name with args.
3459set dummy sdl-config; ac_word=$2
3460echo "$as_me:$LINENO: checking for $ac_word" >&5
3461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
3463  echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465  case $SDL_CONFIG in
3466  [\\/]* | ?:[\\/]*)
3467  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3468  ;;
3469  *)
3470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471as_dummy="${_es_lib_sdl_path}:${PATH}"
3472for as_dir in $as_dummy
3473do
3474  IFS=$as_save_IFS
3475  test -z "$as_dir" && as_dir=.
3476  for ac_exec_ext in '' $ac_executable_extensions; do
3477  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3479    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480    break 2
3481  fi
3482done
3483done
3484
3485  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
3486  ;;
3487esac
3488fi
3489SDL_CONFIG=$ac_cv_path_SDL_CONFIG
3490
3491if test -n "$SDL_CONFIG"; then
3492  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
3493echo "${ECHO_T}$SDL_CONFIG" >&6
3494else
3495  echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
3497fi
3498
3499    echo "$as_me:$LINENO: checking for SDL, version >= ${_es_lib_sdl_min_version}" >&5
3500echo $ECHO_N "checking for SDL, version >= ${_es_lib_sdl_min_version}... $ECHO_C" >&6
3501    if test "x${SDL_CONFIG}" != "xno" ; then
3502        SDL_CFLAGS=`${SDL_CONFIG} ${_es_lib_sdl_args} --cflags`
3503        SDL_LIBS=`${SDL_CONFIG} ${_es_lib_sdl_args} --libs`
3504        _es_lib_sdl_found="yes"
3505    else
3506        SDL_CFLAGS=""
3507        SDL_LIBS=""
3508
3509        echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511        :
3512    fi
3513fi
3514
3515if test "x${_es_lib_sdl_found}" = "xyes" ; then
3516    _es_lib_sdl_save_CFLAGS="${CFLAGS}"
3517    _es_lib_sdl_save_CXXFLAGS="${CXXFLAGS}"
3518    _es_lib_sdl_save_LIBS="${LIBS}"
3519    CFLAGS="${CFLAGS} ${SDL_CFLAGS}"
3520    CXXFLAGS="${CXXFLAGS} ${SDL_CFLAGS}"
3521    LIBS="${LIBS} ${SDL_LIBS}"
3522    cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h.  */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h.  */
3528#include <SDL.h>
3529#include <SDL_version.h>
3530
3531
3532#if SDL_MAJOR_VERSION * 1000 + SDL_MINOR_VERSION * 100 + SDL_PATCHLEVEL < ${_es_lib_sdl_min_version_major} * 1000 + ${_es_lib_sdl_min_version_minor} * 100 + ${_es_lib_sdl_min_version_micro}
3533#error "SDL version not valid!"
3534#endif
3535
3536#ifdef main
3537#undef main
3538#endif
3539#if IS_WINCE_HOST
3540int SDL_main (int a, char **v) { return 0; }
3541#endif
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550rm -f conftest.$ac_objext conftest$ac_exeext
3551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3552  (eval $ac_link) 2>conftest.er1
3553  ac_status=$?
3554  grep -v '^ *+' conftest.er1 >conftest.err
3555  rm -f conftest.er1
3556  cat conftest.err >&5
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); } &&
3559	 { ac_try='test -z "$ac_cxx_werror_flag"
3560			 || test ! -s conftest.err'
3561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562  (eval $ac_try) 2>&5
3563  ac_status=$?
3564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565  (exit $ac_status); }; } &&
3566	 { ac_try='test -s conftest$ac_exeext'
3567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568  (eval $ac_try) 2>&5
3569  ac_status=$?
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); }; }; then
3572  _es_lib_sdl_linked="yes"
3573else
3574  echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577_es_lib_sdl_linked="no"
3578fi
3579rm -f conftest.err conftest.$ac_objext \
3580      conftest$ac_exeext conftest.$ac_ext
3581    CFLAGS="${_es_lib_sdl_save_CFLAGS}"
3582    CXXFLAGS="${_es_lib_sdl_save_CXXFLAGS}"
3583    LIBS="${_es_lib_sdl_save_LIBS}"
3584    if test "x${_es_lib_sdl_linked}" = "xyes" ; then
3585
3586
3587        echo "$as_me:$LINENO: result: yes" >&5
3588echo "${ECHO_T}yes" >&6
3589        amoebax_sdl_found="yes"
3590    else
3591        echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6
3593        :
3594    fi
3595fi
3596
3597if test "x${amoebax_sdl_found}" != "xyes" ; then
3598    { { echo "$as_me:$LINENO: error: SDL library not found." >&5
3599echo "$as_me: error: SDL library not found." >&2;}
3600   { (exit 1); exit 1; }; }
3601fi
3602_es_lib_sdl_sublibrary_found="no"
3603
3604case "${host}" in
3605    *-apple-darwin*)
3606        _es_lib_sdl_sublibrary_osx="yes"
3607        ;;
3608    *-gp2x*)
3609        _es_lib_sdl_sublibrary_gp2x="yes"
3610        ;;
3611esac
3612# On Mac OS X, just try to use the SDL_sublibrary framework.
3613if test "x${_es_lib_sdl_sublibrary_osx}" = "xyes" ; then
3614    echo "$as_me:$LINENO: checking for SDL_image" >&5
3615echo $ECHO_N "checking for SDL_image... $ECHO_C" >&6
3616    _es_lib_sdl_sublibrary_save_CFLAGS="${CFLAGS}"
3617    _es_lib_sdl_sublibrary_save_CXXFLAGS="${CXXFLAGS}"
3618    CFLAGS="${CFLAGS} ${SDL_CFLAGS}"
3619    CXXFLAGS="${CXXFLAGS} ${SDL_CFLAGS}"
3620
3621    _es_frameworks_dirs="/System/Library/Frameworks /Library/Frameworks ~/Library/Frameworks"
3622    _es_framework_headers_dir="no"
3623    for _es_frameworks_dir in ${_es_frameworks_dirs} ; do
3624        _es_tmp_headers_dir="${_es_frameworks_dir}/SDL_image.framework/Headers"
3625        _es_framework_save_CFLAGS="${CFLAGS}"
3626        _es_framework_save_CXXFLAGS="${CXXFLAGS}"
3627        CFLAGS="${CFLAGS} -I${_es_tmp_headers_dir}"
3628        CXXFLAGS="${CXXFLAGS} -I${_es_tmp_headers_dir}"
3629        cat >conftest.$ac_ext <<_ACEOF
3630/* confdefs.h.  */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h.  */
3635#include <SDL_image.h>
3636int
3637main ()
3638{
3639
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644rm -f conftest.$ac_objext
3645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646  (eval $ac_compile) 2>conftest.er1
3647  ac_status=$?
3648  grep -v '^ *+' conftest.er1 >conftest.err
3649  rm -f conftest.er1
3650  cat conftest.err >&5
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); } &&
3653	 { ac_try='test -z "$ac_cxx_werror_flag"
3654			 || test ! -s conftest.err'
3655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656  (eval $ac_try) 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }; } &&
3660	 { ac_try='test -s conftest.$ac_objext'
3661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662  (eval $ac_try) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; }; then
3666  _es_framework_headers_dir=${_es_tmp_headers_dir}
3667else
3668  echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671fi
3672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3673        CFLAGS="${_es_framework_save_CFLAGS}"
3674        CXXFLAGS="${_es_framework_save_CXXFLAGS}"
3675        if test "x${_es_framework_headers_dir}" != "xno" ; then
3676            break
3677        fi
3678    done
3679
3680    if test "x${_es_lib_sdl_osx_headers_dir}" = "xno" ; then
3681        FRAMEWORK_HEADERS_DIR=""
3682        _es_lib_sdl_sublibrary_osx_headers_dir="no"
3683    else
3684        FRAMEWORK_HEADERS_DIR="${_es_framework_headers_dir}"
3685        _es_lib_sdl_sublibrary_osx_headers_dir="${FRAMEWORK_HEADERS_DIR}"
3686    fi
3687
3688    CFLAGS="${_es_lib_sdl_sublibrary_save_CFLAGS}"
3689    CXXFLAGS="${_es_lib_sdl_sublibrary_save_CXXFLAGS}"
3690
3691    if test "x${_es_lib_sdl_sublibrary_osx_headers_dir}" = "xno" ; then
3692        SDL_IMAGE_CFLAGS=""
3693        SDL_IMAGE_LIBS=""
3694
3695        echo "$as_me:$LINENO: result: no" >&5
3696echo "${ECHO_T}no" >&6
3697        :
3698    else
3699        SDL_IMAGE_CFLAGS="-I${_es_lib_sdl_sublibrary_osx_headers_dir}"
3700        SDL_IMAGE_LIBS="-framework SDL_image"
3701        _es_lib_sdl_sublibrary_found="yes"
3702    fi
3703# On others platforms try to compile the test program using SDL_CFLAGS
3704# and SDL_LIBS.
3705else
3706    # I seem to have problems in GP2X if I don't include them when linking.
3707    if test "x${_es_lib_sdl_sublibrary_gp2x}" = "xyes" ; then
3708        case image in
3709            image)
3710            _es_lib_sdl_sublibrary_extra_libs="-ljpeg -lpng -lz"
3711            ;;
3712            mixer)
3713            _es_lib_sdl_sublibrary_extra_libs="-lvorbisidec"
3714            ;;
3715            ttf)
3716            _es_lib_sdl_sublibrary_extra_libs="-lfreetype"
3717            ;;
3718        esac
3719    fi
3720    echo "$as_me:$LINENO: checking for SDL_image" >&5
3721echo $ECHO_N "checking for SDL_image... $ECHO_C" >&6
3722    _es_lib_sdl_sublibrary_save_CFLAGS="${CFLAGS}"
3723    _es_lib_sdl_sublibrary_save_CXXFLAGS="${CXXFLAGS}"
3724    CFLAGS="${CFLAGS} ${SDL_CFLAGS}"
3725    CXXFLAGS="${CXXFLAGS} ${SDL_CFLAGS}"
3726    cat >conftest.$ac_ext <<_ACEOF
3727/* confdefs.h.  */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h.  */
3732#include <SDL_image.h>
3733int
3734main ()
3735{
3736
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741rm -f conftest.$ac_objext
3742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743  (eval $ac_compile) 2>conftest.er1
3744  ac_status=$?
3745  grep -v '^ *+' conftest.er1 >conftest.err
3746  rm -f conftest.er1
3747  cat conftest.err >&5
3748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749  (exit $ac_status); } &&
3750	 { ac_try='test -z "$ac_cxx_werror_flag"
3751			 || test ! -s conftest.err'
3752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753  (eval $ac_try) 2>&5
3754  ac_status=$?
3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756  (exit $ac_status); }; } &&
3757	 { ac_try='test -s conftest.$ac_objext'
3758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759  (eval $ac_try) 2>&5
3760  ac_status=$?
3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762  (exit $ac_status); }; }; then
3763  _es_lib_sdl_sublibrary_found="yes"
3764else
3765  echo "$as_me: failed program was:" >&5
3766sed 's/^/| /' conftest.$ac_ext >&5
3767
3768_es_lib_sdl_sublibrary_found="no"
3769fi
3770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771    CFLAGS="${_es_lib_sdl_sublibrary_save_CFLAGS}"
3772    CXXFLAGS="${_es_lib_sdl_sublibrary_save_CXXFLAGS}"
3773
3774    if test "x${_es_lib_sdl_sublibrary_found}" = "xno" ; then
3775        SDL_IMAGE_CFLAGS=""
3776        SDL_IMAGE_LIBS=""
3777        echo "$as_me:$LINENO: result: no" >&5
3778echo "${ECHO_T}no" >&6
3779        :
3780    else
3781        SDL_IMAGE_CFLAGS=""
3782        SDL_IMAGE_LIBS="-lSDL_image ${_es_lib_sdl_sublibrary_extra_libs}"
3783    fi
3784fi
3785
3786if test "x${_es_lib_sdl_sublibrary_found}" = "xyes" ; then
3787    _es_lib_sdl_sublibrary_save_CFLAGS="${CFLAGS}"
3788    _es_lib_sdl_sublibrary_save_CXXFLAGS="${CXXFLAGS}"
3789    _es_lib_sdl_sublibrary_save_LIBS="${LIBS}"
3790    CFLAGS="${CFLAGS} ${SDL_CFLAGS} ${SDL_IMAGE_CFLAGS}"
3791    CXXFLAGS="${CXXFLAGS} ${SDL_CFLAGS} ${SDL_IMAGE_CFLAGS}"
3792    LIBS="${LIBS} ${SDL_LIBS} ${SDL_IMAGE_LIBS}"
3793    cat >conftest.$ac_ext <<_ACEOF
3794/* confdefs.h.  */
3795_ACEOF
3796cat confdefs.h >>conftest.$ac_ext
3797cat >>conftest.$ac_ext <<_ACEOF
3798/* end confdefs.h.  */
3799#include <SDL.h>
3800#include <SDL_image.h>
3801
3802#ifdef main
3803#undef main
3804#endif
3805#if IS_WINCE_HOST
3806int SDL_main (int a, char **v) { return 0; }
3807#endif
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext conftest$ac_exeext
3817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818  (eval $ac_link) 2>conftest.er1
3819  ac_status=$?
3820  grep -v '^ *+' conftest.er1 >conftest.err
3821  rm -f conftest.er1
3822  cat conftest.err >&5
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); } &&
3825	 { ac_try='test -z "$ac_cxx_werror_flag"
3826			 || test ! -s conftest.err'
3827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828  (eval $ac_try) 2>&5
3829  ac_status=$?
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); }; } &&
3832	 { ac_try='test -s conftest$ac_exeext'
3833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834  (eval $ac_try) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }; }; then
3838  _es_lib_sdl_sublibrary_linked="yes"
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843_es_lib_sdl_sublibrary_linked="no"
3844fi
3845rm -f conftest.err conftest.$ac_objext \
3846      conftest$ac_exeext conftest.$ac_ext
3847    CFLAGS="${_es_lib_sdl_sublibrary_save_CFLAGS}"
3848    CXXFLAGS="${_es_lib_sdl_sublibrary_save_CXXFLAGS}"
3849    LIBS="${_es_lib_sdl_sublibrary_save_LIBS}"
3850
3851    if test "x${_es_lib_sdl_sublibrary_linked}" = "xyes" ; then
3852        echo "$as_me:$LINENO: result: yes" >&5
3853echo "${ECHO_T}yes" >&6
3854        amoebax_sdl_image_found="yes"
3855    else
3856        echo "$as_me:$LINENO: result: no" >&5
3857echo "${ECHO_T}no" >&6
3858        :
3859    fi
3860fi
3861
3862if test "x${amoebax_sdl_image_found}" != "xyes" ; then
3863    { { echo "$as_me:$LINENO: error: SDL_image library not found." >&5
3864echo "$as_me: error: SDL_image library not found." >&2;}
3865   { (exit 1); exit 1; }; }
3866fi
3867_es_lib_sdl_sublibrary_found="no"
3868
3869case "${host}" in
3870    *-apple-darwin*)
3871        _es_lib_sdl_sublibrary_osx="yes"
3872        ;;
3873    *-gp2x*)
3874        _es_lib_sdl_sublibrary_gp2x="yes"
3875        ;;
3876esac
3877# On Mac OS X, just try to use the SDL_sublibrary framework.
3878if test "x${_es_lib_sdl_sublibrary_osx}" = "xyes" ; then
3879    echo "$as_me:$LINENO: checking for SDL_mixer" >&5
3880echo $ECHO_N "checking for SDL_mixer... $ECHO_C" >&6
3881    _es_lib_sdl_sublibrary_save_CFLAGS="${CFLAGS}"
3882    _es_lib_sdl_sublibrary_save_CXXFLAGS="${CXXFLAGS}"
3883    CFLAGS="${CFLAGS} ${SDL_CFLAGS}"
3884    CXXFLAGS="${CXXFLAGS} ${SDL_CFLAGS}"
3885
3886    _es_frameworks_dirs="/System/Library/Frameworks /Library/Frameworks ~/Library/Frameworks"
3887    _es_framework_headers_dir="no"
3888    for _es_frameworks_dir in ${_es_frameworks_dirs} ; do
3889        _es_tmp_headers_dir="${_es_frameworks_dir}/SDL_mixer.framework/Headers"
3890        _es_framework_save_CFLAGS="${CFLAGS}"
3891        _es_framework_save_CXXFLAGS="${CXXFLAGS}"
3892        CFLAGS="${CFLAGS} -I${_es_tmp_headers_dir}"
3893        CXXFLAGS="${CXXFLAGS} -I${_es_tmp_headers_dir}"
3894        cat >conftest.$ac_ext <<_ACEOF
3895/* confdefs.h.  */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h.  */
3900#include <SDL_mixer.h>
3901int
3902main ()
3903{
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909rm -f conftest.$ac_objext
3910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3911  (eval $ac_compile) 2>conftest.er1
3912  ac_status=$?
3913  grep -v '^ *+' conftest.er1 >conftest.err
3914  rm -f conftest.er1
3915  cat conftest.err >&5
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); } &&
3918	 { ac_try='test -z "$ac_cxx_werror_flag"
3919			 || test ! -s conftest.err'
3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); }; } &&
3925	 { ac_try='test -s conftest.$ac_objext'
3926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927  (eval $ac_try) 2>&5
3928  ac_status=$?
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); }; }; then
3931  _es_framework_headers_dir=${_es_tmp_headers_dir}
3932else
3933  echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936fi
3937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938        CFLAGS="${_es_framework_save_CFLAGS}"
3939        CXXFLAGS="${_es_framework_save_CXXFLAGS}"
3940        if test "x${_es_framework_headers_dir}" != "xno" ; then
3941            break
3942        fi
3943    done
3944
3945    if test "x${_es_lib_sdl_osx_headers_dir}" = "xno" ; then
3946        FRAMEWORK_HEADERS_DIR=""
3947        _es_lib_sdl_sublibrary_osx_headers_dir="no"
3948    else
3949        FRAMEWORK_HEADERS_DIR="${_es_framework_headers_dir}"
3950        _es_lib_sdl_sublibrary_osx_headers_dir="${FRAMEWORK_HEADERS_DIR}"
3951    fi
3952
3953    CFLAGS="${_es_lib_sdl_sublibrary_save_CFLAGS}"
3954    CXXFLAGS="${_es_lib_sdl_sublibrary_save_CXXFLAGS}"
3955
3956    if test "x${_es_lib_sdl_sublibrary_osx_headers_dir}" = "xno" ; then
3957        SDL_MIXER_CFLAGS=""
3958        SDL_MIXER_LIBS=""
3959
3960        echo "$as_me:$LINENO: result: no" >&5
3961echo "${ECHO_T}no" >&6
3962        :
3963    else
3964        SDL_MIXER_CFLAGS="-I${_es_lib_sdl_sublibrary_osx_headers_dir}"
3965        SDL_MIXER_LIBS="-framework SDL_mixer"
3966        _es_lib_sdl_sublibrary_found="yes"
3967    fi
3968# On others platforms try to compile the test program using SDL_CFLAGS
3969# and SDL_LIBS.
3970else
3971    # I seem to have problems in GP2X if I don't include them when linking.
3972    if test "x${_es_lib_sdl_sublibrary_gp2x}" = "xyes" ; then
3973        case mixer in
3974            image)
3975            _es_lib_sdl_sublibrary_extra_libs="-ljpeg -lpng -lz"
3976            ;;
3977            mixer)
3978            _es_lib_sdl_sublibrary_extra_libs="-lvorbisidec"
3979            ;;
3980            ttf)
3981            _es_lib_sdl_sublibrary_extra_libs="-lfreetype"
3982            ;;
3983        esac
3984    fi
3985    echo "$as_me:$LINENO: checking for SDL_mixer" >&5
3986echo $ECHO_N "checking for SDL_mixer... $ECHO_C" >&6
3987    _es_lib_sdl_sublibrary_save_CFLAGS="${CFLAGS}"
3988    _es_lib_sdl_sublibrary_save_CXXFLAGS="${CXXFLAGS}"
3989    CFLAGS="${CFLAGS} ${SDL_CFLAGS}"
3990    CXXFLAGS="${CXXFLAGS} ${SDL_CFLAGS}"
3991    cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997#include <SDL_mixer.h>
3998int
3999main ()
4000{
4001
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext
4007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008  (eval $ac_compile) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015	 { ac_try='test -z "$ac_cxx_werror_flag"
4016			 || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022	 { ac_try='test -s conftest.$ac_objext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  _es_lib_sdl_sublibrary_found="yes"
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033_es_lib_sdl_sublibrary_found="no"
4034fi
4035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4036    CFLAGS="${_es_lib_sdl_sublibrary_save_CFLAGS}"
4037    CXXFLAGS="${_es_lib_sdl_sublibrary_save_CXXFLAGS}"
4038
4039    if test "x${_es_lib_sdl_sublibrary_found}" = "xno" ; then
4040        SDL_MIXER_CFLAGS=""
4041        SDL_MIXER_LIBS=""
4042        echo "$as_me:$LINENO: result: no" >&5
4043echo "${ECHO_T}no" >&6
4044        :
4045    else
4046        SDL_MIXER_CFLAGS=""
4047        SDL_MIXER_LIBS="-lSDL_mixer ${_es_lib_sdl_sublibrary_extra_libs}"
4048    fi
4049fi
4050
4051if test "x${_es_lib_sdl_sublibrary_found}" = "xyes" ; then
4052    _es_lib_sdl_sublibrary_save_CFLAGS="${CFLAGS}"
4053    _es_lib_sdl_sublibrary_save_CXXFLAGS="${CXXFLAGS}"
4054    _es_lib_sdl_sublibrary_save_LIBS="${LIBS}"
4055    CFLAGS="${CFLAGS} ${SDL_CFLAGS} ${SDL_MIXER_CFLAGS}"
4056    CXXFLAGS="${CXXFLAGS} ${SDL_CFLAGS} ${SDL_MIXER_CFLAGS}"
4057    LIBS="${LIBS} ${SDL_LIBS} ${SDL_MIXER_LIBS}"
4058    cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h.  */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h.  */
4064#include <SDL.h>
4065#include <SDL_mixer.h>
4066
4067#ifdef main
4068#undef main
4069#endif
4070#if IS_WINCE_HOST
4071int SDL_main (int a, char **v) { return 0; }
4072#endif
4073int
4074main ()
4075{
4076
4077  ;
4078  return 0;
4079}
4080_ACEOF
4081rm -f conftest.$ac_objext conftest$ac_exeext
4082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083  (eval $ac_link) 2>conftest.er1
4084  ac_status=$?
4085  grep -v '^ *+' conftest.er1 >conftest.err
4086  rm -f conftest.er1
4087  cat conftest.err >&5
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); } &&
4090	 { ac_try='test -z "$ac_cxx_werror_flag"
4091			 || test ! -s conftest.err'
4092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093  (eval $ac_try) 2>&5
4094  ac_status=$?
4095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096  (exit $ac_status); }; } &&
4097	 { ac_try='test -s conftest$ac_exeext'
4098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099  (eval $ac_try) 2>&5
4100  ac_status=$?
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); }; }; then
4103  _es_lib_sdl_sublibrary_linked="yes"
4104else
4105  echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108_es_lib_sdl_sublibrary_linked="no"
4109fi
4110rm -f conftest.err conftest.$ac_objext \
4111      conftest$ac_exeext conftest.$ac_ext
4112    CFLAGS="${_es_lib_sdl_sublibrary_save_CFLAGS}"
4113    CXXFLAGS="${_es_lib_sdl_sublibrary_save_CXXFLAGS}"
4114    LIBS="${_es_lib_sdl_sublibrary_save_LIBS}"
4115
4116    if test "x${_es_lib_sdl_sublibrary_linked}" = "xyes" ; then
4117        echo "$as_me:$LINENO: result: yes" >&5
4118echo "${ECHO_T}yes" >&6
4119        amoebax_sdl_mixer_found="yes"
4120    else
4121        echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123        :
4124    fi
4125fi
4126
4127if test "x${amoebax_sdl_mixer_found}" != "xyes" ; then
4128    { { echo "$as_me:$LINENO: error: SDL_mixer library not found." >&5
4129echo "$as_me: error: SDL_mixer library not found." >&2;}
4130   { (exit 1); exit 1; }; }
4131fi
4132
4133
4134
4135
4136
4137
4138# Check for types.
4139# Check for structures.
4140# Check for compiler characteristics.
4141# Check for libraries functions.
4142# Check for system services.
4143
4144# Set the CFLAGS and CXXFLAGS
4145CFLAGS="$CFLAGS $DEBUGFLAGS"
4146CXXFLAGS="$CXXFLAGS $DEBUGFLAGS"
4147
4148# Set the right extension for GP2X executable files.
4149if test "x${gp2x_host}" = "xyes"; then
4150    EXEEXT=".gpe"
4151fi
4152
4153                                                                                                                                                                          ac_config_files="$ac_config_files Makefile autopackage/Makefile autopackage/default.apspec data/Makefile data/InfoPlist.strings data/Info.plist data/AmoebaxMain.nib/Makefile data/dlls/Makefile data/fonts/Makefile data/graphics/Makefile data/graphics/gp2x/Makefile data/music/Makefile data/sfx/Makefile doc/Doxyfile doc/Makefile m4/Makefile src/Makefile"
4154
4155cat >confcache <<\_ACEOF
4156# This file is a shell script that caches the results of configure
4157# tests run on this system so they can be shared between configure
4158# scripts and configure runs, see configure's option --config-cache.
4159# It is not useful on other systems.  If it contains results you don't
4160# want to keep, you may remove or edit it.
4161#
4162# config.status only pays attention to the cache file if you give it
4163# the --recheck option to rerun configure.
4164#
4165# `ac_cv_env_foo' variables (set or unset) will be overridden when
4166# loading this file, other *unset* `ac_cv_foo' will be assigned the
4167# following values.
4168
4169_ACEOF
4170
4171# The following way of writing the cache mishandles newlines in values,
4172# but we know of no workaround that is simple, portable, and efficient.
4173# So, don't put newlines in cache variables' values.
4174# Ultrix sh set writes to stderr and can't be redirected directly,
4175# and sets the high bit in the cache file unless we assign to the vars.
4176{
4177  (set) 2>&1 |
4178    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4179    *ac_space=\ *)
4180      # `set' does not quote correctly, so add quotes (double-quote
4181      # substitution turns \\\\ into \\, and sed turns \\ into \).
4182      sed -n \
4183	"s/'/'\\\\''/g;
4184	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4185      ;;
4186    *)
4187      # `set' quotes correctly as required by POSIX, so do not add quotes.
4188      sed -n \
4189	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4190      ;;
4191    esac;
4192} |
4193  sed '
4194     t clear
4195     : clear
4196     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4197     t end
4198     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4199     : end' >>confcache
4200if diff $cache_file confcache >/dev/null 2>&1; then :; else
4201  if test -w $cache_file; then
4202    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4203    cat confcache >$cache_file
4204  else
4205    echo "not updating unwritable cache $cache_file"
4206  fi
4207fi
4208rm -f confcache
4209
4210test "x$prefix" = xNONE && prefix=$ac_default_prefix
4211# Let make expand exec_prefix.
4212test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4213
4214# VPATH may cause trouble with some makes, so we remove $(srcdir),
4215# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4216# trailing colons and then remove the whole line if VPATH becomes empty
4217# (actually we leave an empty line to preserve line numbers).
4218if test "x$srcdir" = x.; then
4219  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4220s/:*\$(srcdir):*/:/;
4221s/:*\${srcdir}:*/:/;
4222s/:*@srcdir@:*/:/;
4223s/^\([^=]*=[	 ]*\):*/\1/;
4224s/:*$//;
4225s/^[^=]*=[	 ]*$//;
4226}'
4227fi
4228
4229DEFS=-DHAVE_CONFIG_H
4230
4231ac_libobjs=
4232ac_ltlibobjs=
4233for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4234  # 1. Remove the extension, and $U if already installed.
4235  ac_i=`echo "$ac_i" |
4236	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4237  # 2. Add them.
4238  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4239  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4240done
4241LIBOBJS=$ac_libobjs
4242
4243LTLIBOBJS=$ac_ltlibobjs
4244
4245
4246if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4247  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4248Usually this means the macro was only invoked conditionally." >&5
4249echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4250Usually this means the macro was only invoked conditionally." >&2;}
4251   { (exit 1); exit 1; }; }
4252fi
4253if test -z "${IS_OSX_HOST_TRUE}" && test -z "${IS_OSX_HOST_FALSE}"; then
4254  { { echo "$as_me:$LINENO: error: conditional \"IS_OSX_HOST\" was never defined.
4255Usually this means the macro was only invoked conditionally." >&5
4256echo "$as_me: error: conditional \"IS_OSX_HOST\" was never defined.
4257Usually this means the macro was only invoked conditionally." >&2;}
4258   { (exit 1); exit 1; }; }
4259fi
4260if test -z "${IS_GP2X_HOST_TRUE}" && test -z "${IS_GP2X_HOST_FALSE}"; then
4261  { { echo "$as_me:$LINENO: error: conditional \"IS_GP2X_HOST\" was never defined.
4262Usually this means the macro was only invoked conditionally." >&5
4263echo "$as_me: error: conditional \"IS_GP2X_HOST\" was never defined.
4264Usually this means the macro was only invoked conditionally." >&2;}
4265   { (exit 1); exit 1; }; }
4266fi
4267if test -z "${IS_WIN32_HOST_TRUE}" && test -z "${IS_WIN32_HOST_FALSE}"; then
4268  { { echo "$as_me:$LINENO: error: conditional \"IS_WIN32_HOST\" was never defined.
4269Usually this means the macro was only invoked conditionally." >&5
4270echo "$as_me: error: conditional \"IS_WIN32_HOST\" was never defined.
4271Usually this means the macro was only invoked conditionally." >&2;}
4272   { (exit 1); exit 1; }; }
4273fi
4274if test -z "${IS_WINCE_HOST_TRUE}" && test -z "${IS_WINCE_HOST_FALSE}"; then
4275  { { echo "$as_me:$LINENO: error: conditional \"IS_WINCE_HOST\" was never defined.
4276Usually this means the macro was only invoked conditionally." >&5
4277echo "$as_me: error: conditional \"IS_WINCE_HOST\" was never defined.
4278Usually this means the macro was only invoked conditionally." >&2;}
4279   { (exit 1); exit 1; }; }
4280fi
4281if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4282  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4283Usually this means the macro was only invoked conditionally." >&5
4284echo "$as_me: error: conditional \"AMDEP\" was never defined.
4285Usually this means the macro was only invoked conditionally." >&2;}
4286   { (exit 1); exit 1; }; }
4287fi
4288if test -z "${build_win32_resource_TRUE}" && test -z "${build_win32_resource_FALSE}"; then
4289  { { echo "$as_me:$LINENO: error: conditional \"build_win32_resource\" was never defined.
4290Usually this means the macro was only invoked conditionally." >&5
4291echo "$as_me: error: conditional \"build_win32_resource\" was never defined.
4292Usually this means the macro was only invoked conditionally." >&2;}
4293   { (exit 1); exit 1; }; }
4294fi
4295if test -z "${build_win32_msi_TRUE}" && test -z "${build_win32_msi_FALSE}"; then
4296  { { echo "$as_me:$LINENO: error: conditional \"build_win32_msi\" was never defined.
4297Usually this means the macro was only invoked conditionally." >&5
4298echo "$as_me: error: conditional \"build_win32_msi\" was never defined.
4299Usually this means the macro was only invoked conditionally." >&2;}
4300   { (exit 1); exit 1; }; }
4301fi
4302if test -z "${build_reference_TRUE}" && test -z "${build_reference_FALSE}"; then
4303  { { echo "$as_me:$LINENO: error: conditional \"build_reference\" was never defined.
4304Usually this means the macro was only invoked conditionally." >&5
4305echo "$as_me: error: conditional \"build_reference\" was never defined.
4306Usually this means the macro was only invoked conditionally." >&2;}
4307   { (exit 1); exit 1; }; }
4308fi
4309
4310: ${CONFIG_STATUS=./config.status}
4311ac_clean_files_save=$ac_clean_files
4312ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4313{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4314echo "$as_me: creating $CONFIG_STATUS" >&6;}
4315cat >$CONFIG_STATUS <<_ACEOF
4316#! $SHELL
4317# Generated by $as_me.
4318# Run this file to recreate the current configuration.
4319# Compiler output produced by configure, useful for debugging
4320# configure, is in config.log if it exists.
4321
4322debug=false
4323ac_cs_recheck=false
4324ac_cs_silent=false
4325SHELL=\${CONFIG_SHELL-$SHELL}
4326_ACEOF
4327
4328cat >>$CONFIG_STATUS <<\_ACEOF
4329## --------------------- ##
4330## M4sh Initialization.  ##
4331## --------------------- ##
4332
4333# Be Bourne compatible
4334if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4335  emulate sh
4336  NULLCMD=:
4337  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4338  # is contrary to our usage.  Disable this feature.
4339  alias -g '${1+"$@"}'='"$@"'
4340elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4341  set -o posix
4342fi
4343DUALCASE=1; export DUALCASE # for MKS sh
4344
4345# Support unset when possible.
4346if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4347  as_unset=unset
4348else
4349  as_unset=false
4350fi
4351
4352
4353# Work around bugs in pre-3.0 UWIN ksh.
4354$as_unset ENV MAIL MAILPATH
4355PS1='$ '
4356PS2='> '
4357PS4='+ '
4358
4359# NLS nuisances.
4360for as_var in \
4361  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4362  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4363  LC_TELEPHONE LC_TIME
4364do
4365  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4366    eval $as_var=C; export $as_var
4367  else
4368    $as_unset $as_var
4369  fi
4370done
4371
4372# Required to use basename.
4373if expr a : '\(a\)' >/dev/null 2>&1; then
4374  as_expr=expr
4375else
4376  as_expr=false
4377fi
4378
4379if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4380  as_basename=basename
4381else
4382  as_basename=false
4383fi
4384
4385
4386# Name of the executable.
4387as_me=`$as_basename "$0" ||
4388$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4389	 X"$0" : 'X\(//\)$' \| \
4390	 X"$0" : 'X\(/\)$' \| \
4391	 .     : '\(.\)' 2>/dev/null ||
4392echo X/"$0" |
4393    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4394  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4395  	  /^X\/\(\/\).*/{ s//\1/; q; }
4396  	  s/.*/./; q'`
4397
4398
4399# PATH needs CR, and LINENO needs CR and PATH.
4400# Avoid depending upon Character Ranges.
4401as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4402as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4403as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4404as_cr_digits='0123456789'
4405as_cr_alnum=$as_cr_Letters$as_cr_digits
4406
4407# The user is always right.
4408if test "${PATH_SEPARATOR+set}" != set; then
4409  echo "#! /bin/sh" >conf$$.sh
4410  echo  "exit 0"   >>conf$$.sh
4411  chmod +x conf$$.sh
4412  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4413    PATH_SEPARATOR=';'
4414  else
4415    PATH_SEPARATOR=:
4416  fi
4417  rm -f conf$$.sh
4418fi
4419
4420
4421  as_lineno_1=$LINENO
4422  as_lineno_2=$LINENO
4423  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4424  test "x$as_lineno_1" != "x$as_lineno_2" &&
4425  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4426  # Find who we are.  Look in the path if we contain no path at all
4427  # relative or not.
4428  case $0 in
4429    *[\\/]* ) as_myself=$0 ;;
4430    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433  IFS=$as_save_IFS
4434  test -z "$as_dir" && as_dir=.
4435  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4436done
4437
4438       ;;
4439  esac
4440  # We did not find ourselves, most probably we were run as `sh COMMAND'
4441  # in which case we are not to be found in the path.
4442  if test "x$as_myself" = x; then
4443    as_myself=$0
4444  fi
4445  if test ! -f "$as_myself"; then
4446    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4447echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4448   { (exit 1); exit 1; }; }
4449  fi
4450  case $CONFIG_SHELL in
4451  '')
4452    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4454do
4455  IFS=$as_save_IFS
4456  test -z "$as_dir" && as_dir=.
4457  for as_base in sh bash ksh sh5; do
4458	 case $as_dir in
4459	 /*)
4460	   if ("$as_dir/$as_base" -c '
4461  as_lineno_1=$LINENO
4462  as_lineno_2=$LINENO
4463  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4464  test "x$as_lineno_1" != "x$as_lineno_2" &&
4465  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4466	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4467	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4468	     CONFIG_SHELL=$as_dir/$as_base
4469	     export CONFIG_SHELL
4470	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4471	   fi;;
4472	 esac
4473       done
4474done
4475;;
4476  esac
4477
4478  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4479  # uniformly replaced by the line number.  The first 'sed' inserts a
4480  # line-number line before each line; the second 'sed' does the real
4481  # work.  The second script uses 'N' to pair each line-number line
4482  # with the numbered line, and appends trailing '-' during
4483  # substitution so that $LINENO is not a special case at line end.
4484  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4485  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4486  sed '=' <$as_myself |
4487    sed '
4488      N
4489      s,$,-,
4490      : loop
4491      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4492      t loop
4493      s,-$,,
4494      s,^['$as_cr_digits']*\n,,
4495    ' >$as_me.lineno &&
4496  chmod +x $as_me.lineno ||
4497    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4498echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4499   { (exit 1); exit 1; }; }
4500
4501  # Don't try to exec as it changes $[0], causing all sort of problems
4502  # (the dirname of $[0] is not the place where we might find the
4503  # original and so on.  Autoconf is especially sensible to this).
4504  . ./$as_me.lineno
4505  # Exit status is that of the last command.
4506  exit
4507}
4508
4509
4510case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4511  *c*,-n*) ECHO_N= ECHO_C='
4512' ECHO_T='	' ;;
4513  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4514  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4515esac
4516
4517if expr a : '\(a\)' >/dev/null 2>&1; then
4518  as_expr=expr
4519else
4520  as_expr=false
4521fi
4522
4523rm -f conf$$ conf$$.exe conf$$.file
4524echo >conf$$.file
4525if ln -s conf$$.file conf$$ 2>/dev/null; then
4526  # We could just check for DJGPP; but this test a) works b) is more generic
4527  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4528  if test -f conf$$.exe; then
4529    # Don't use ln at all; we don't have any links
4530    as_ln_s='cp -p'
4531  else
4532    as_ln_s='ln -s'
4533  fi
4534elif ln conf$$.file conf$$ 2>/dev/null; then
4535  as_ln_s=ln
4536else
4537  as_ln_s='cp -p'
4538fi
4539rm -f conf$$ conf$$.exe conf$$.file
4540
4541if mkdir -p . 2>/dev/null; then
4542  as_mkdir_p=:
4543else
4544  test -d ./-p && rmdir ./-p
4545  as_mkdir_p=false
4546fi
4547
4548as_executable_p="test -f"
4549
4550# Sed expression to map a string onto a valid CPP name.
4551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4552
4553# Sed expression to map a string onto a valid variable name.
4554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4555
4556
4557# IFS
4558# We need space, tab and new line, in precisely that order.
4559as_nl='
4560'
4561IFS=" 	$as_nl"
4562
4563# CDPATH.
4564$as_unset CDPATH
4565
4566exec 6>&1
4567
4568# Open the log real soon, to keep \$[0] and so on meaningful, and to
4569# report actual input values of CONFIG_FILES etc. instead of their
4570# values after options handling.  Logging --version etc. is OK.
4571exec 5>>config.log
4572{
4573  echo
4574  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4575## Running $as_me. ##
4576_ASBOX
4577} >&5
4578cat >&5 <<_CSEOF
4579
4580This file was extended by Amoebax $as_me 0.2.1, which was
4581generated by GNU Autoconf 2.59.  Invocation command line was
4582
4583  CONFIG_FILES    = $CONFIG_FILES
4584  CONFIG_HEADERS  = $CONFIG_HEADERS
4585  CONFIG_LINKS    = $CONFIG_LINKS
4586  CONFIG_COMMANDS = $CONFIG_COMMANDS
4587  $ $0 $@
4588
4589_CSEOF
4590echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4591echo >&5
4592_ACEOF
4593
4594# Files that config.status was made for.
4595if test -n "$ac_config_files"; then
4596  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4597fi
4598
4599if test -n "$ac_config_headers"; then
4600  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4601fi
4602
4603if test -n "$ac_config_links"; then
4604  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4605fi
4606
4607if test -n "$ac_config_commands"; then
4608  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4609fi
4610
4611cat >>$CONFIG_STATUS <<\_ACEOF
4612
4613ac_cs_usage="\
4614\`$as_me' instantiates files from templates according to the
4615current configuration.
4616
4617Usage: $0 [OPTIONS] [FILE]...
4618
4619  -h, --help       print this help, then exit
4620  -V, --version    print version number, then exit
4621  -q, --quiet      do not print progress messages
4622  -d, --debug      don't remove temporary files
4623      --recheck    update $as_me by reconfiguring in the same conditions
4624  --file=FILE[:TEMPLATE]
4625		   instantiate the configuration file FILE
4626  --header=FILE[:TEMPLATE]
4627		   instantiate the configuration header FILE
4628
4629Configuration files:
4630$config_files
4631
4632Configuration headers:
4633$config_headers
4634
4635Configuration commands:
4636$config_commands
4637
4638Report bugs to <bug-autoconf@gnu.org>."
4639_ACEOF
4640
4641cat >>$CONFIG_STATUS <<_ACEOF
4642ac_cs_version="\\
4643Amoebax config.status 0.2.1
4644configured by $0, generated by GNU Autoconf 2.59,
4645  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4646
4647Copyright (C) 2003 Free Software Foundation, Inc.
4648This config.status script is free software; the Free Software Foundation
4649gives unlimited permission to copy, distribute and modify it."
4650srcdir=$srcdir
4651INSTALL="$INSTALL"
4652_ACEOF
4653
4654cat >>$CONFIG_STATUS <<\_ACEOF
4655# If no file are specified by the user, then we need to provide default
4656# value.  By we need to know if files were specified by the user.
4657ac_need_defaults=:
4658while test $# != 0
4659do
4660  case $1 in
4661  --*=*)
4662    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4663    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4664    ac_shift=:
4665    ;;
4666  -*)
4667    ac_option=$1
4668    ac_optarg=$2
4669    ac_shift=shift
4670    ;;
4671  *) # This is not an option, so the user has probably given explicit
4672     # arguments.
4673     ac_option=$1
4674     ac_need_defaults=false;;
4675  esac
4676
4677  case $ac_option in
4678  # Handling of the options.
4679_ACEOF
4680cat >>$CONFIG_STATUS <<\_ACEOF
4681  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4682    ac_cs_recheck=: ;;
4683  --version | --vers* | -V )
4684    echo "$ac_cs_version"; exit 0 ;;
4685  --he | --h)
4686    # Conflict between --help and --header
4687    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4688Try \`$0 --help' for more information." >&5
4689echo "$as_me: error: ambiguous option: $1
4690Try \`$0 --help' for more information." >&2;}
4691   { (exit 1); exit 1; }; };;
4692  --help | --hel | -h )
4693    echo "$ac_cs_usage"; exit 0 ;;
4694  --debug | --d* | -d )
4695    debug=: ;;
4696  --file | --fil | --fi | --f )
4697    $ac_shift
4698    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4699    ac_need_defaults=false;;
4700  --header | --heade | --head | --hea )
4701    $ac_shift
4702    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4703    ac_need_defaults=false;;
4704  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4705  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4706    ac_cs_silent=: ;;
4707
4708  # This is an error.
4709  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4710Try \`$0 --help' for more information." >&5
4711echo "$as_me: error: unrecognized option: $1
4712Try \`$0 --help' for more information." >&2;}
4713   { (exit 1); exit 1; }; } ;;
4714
4715  *) ac_config_targets="$ac_config_targets $1" ;;
4716
4717  esac
4718  shift
4719done
4720
4721ac_configure_extra_args=
4722
4723if $ac_cs_silent; then
4724  exec 6>/dev/null
4725  ac_configure_extra_args="$ac_configure_extra_args --silent"
4726fi
4727
4728_ACEOF
4729cat >>$CONFIG_STATUS <<_ACEOF
4730if \$ac_cs_recheck; then
4731  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4732  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4733fi
4734
4735_ACEOF
4736
4737cat >>$CONFIG_STATUS <<_ACEOF
4738#
4739# INIT-COMMANDS section.
4740#
4741
4742AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4743
4744_ACEOF
4745
4746
4747
4748cat >>$CONFIG_STATUS <<\_ACEOF
4749for ac_config_target in $ac_config_targets
4750do
4751  case "$ac_config_target" in
4752  # Handling of arguments.
4753  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4754  "autopackage/Makefile" ) CONFIG_FILES="$CONFIG_FILES autopackage/Makefile" ;;
4755  "autopackage/default.apspec" ) CONFIG_FILES="$CONFIG_FILES autopackage/default.apspec" ;;
4756  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
4757  "data/InfoPlist.strings" ) CONFIG_FILES="$CONFIG_FILES data/InfoPlist.strings" ;;
4758  "data/Info.plist" ) CONFIG_FILES="$CONFIG_FILES data/Info.plist" ;;
4759  "data/AmoebaxMain.nib/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/AmoebaxMain.nib/Makefile" ;;
4760  "data/dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/dlls/Makefile" ;;
4761  "data/fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/fonts/Makefile" ;;
4762  "data/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/graphics/Makefile" ;;
4763  "data/graphics/gp2x/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/graphics/gp2x/Makefile" ;;
4764  "data/music/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/music/Makefile" ;;
4765  "data/sfx/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/sfx/Makefile" ;;
4766  "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
4767  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4768  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
4769  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4770  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4771  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4772  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4773echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4774   { (exit 1); exit 1; }; };;
4775  esac
4776done
4777
4778# If the user did not use the arguments to specify the items to instantiate,
4779# then the envvar interface is used.  Set only those that are not.
4780# We use the long form for the default assignment because of an extremely
4781# bizarre bug on SunOS 4.1.3.
4782if $ac_need_defaults; then
4783  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4784  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4785  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4786fi
4787
4788# Have a temporary directory for convenience.  Make it in the build tree
4789# simply because there is no reason to put it here, and in addition,
4790# creating and moving files from /tmp can sometimes cause problems.
4791# Create a temporary directory, and hook for its removal unless debugging.
4792$debug ||
4793{
4794  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4795  trap '{ (exit 1); exit 1; }' 1 2 13 15
4796}
4797
4798# Create a (secure) tmp directory for tmp files.
4799
4800{
4801  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4802  test -n "$tmp" && test -d "$tmp"
4803}  ||
4804{
4805  tmp=./confstat$$-$RANDOM
4806  (umask 077 && mkdir $tmp)
4807} ||
4808{
4809   echo "$me: cannot create a temporary directory in ." >&2
4810   { (exit 1); exit 1; }
4811}
4812
4813_ACEOF
4814
4815cat >>$CONFIG_STATUS <<_ACEOF
4816
4817#
4818# CONFIG_FILES section.
4819#
4820
4821# No need to generate the scripts if there are no CONFIG_FILES.
4822# This happens for instance when ./config.status config.h
4823if test -n "\$CONFIG_FILES"; then
4824  # Protect against being on the right side of a sed subst in config.status.
4825  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4826   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4827s,@SHELL@,$SHELL,;t t
4828s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4829s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4830s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4831s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4832s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4833s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4834s,@exec_prefix@,$exec_prefix,;t t
4835s,@prefix@,$prefix,;t t
4836s,@program_transform_name@,$program_transform_name,;t t
4837s,@bindir@,$bindir,;t t
4838s,@sbindir@,$sbindir,;t t
4839s,@libexecdir@,$libexecdir,;t t
4840s,@datadir@,$datadir,;t t
4841s,@sysconfdir@,$sysconfdir,;t t
4842s,@sharedstatedir@,$sharedstatedir,;t t
4843s,@localstatedir@,$localstatedir,;t t
4844s,@libdir@,$libdir,;t t
4845s,@includedir@,$includedir,;t t
4846s,@oldincludedir@,$oldincludedir,;t t
4847s,@infodir@,$infodir,;t t
4848s,@mandir@,$mandir,;t t
4849s,@build_alias@,$build_alias,;t t
4850s,@host_alias@,$host_alias,;t t
4851s,@target_alias@,$target_alias,;t t
4852s,@DEFS@,$DEFS,;t t
4853s,@ECHO_C@,$ECHO_C,;t t
4854s,@ECHO_N@,$ECHO_N,;t t
4855s,@ECHO_T@,$ECHO_T,;t t
4856s,@LIBS@,$LIBS,;t t
4857s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4858s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4859s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4860s,@PACKAGE@,$PACKAGE,;t t
4861s,@VERSION@,$VERSION,;t t
4862s,@ACLOCAL@,$ACLOCAL,;t t
4863s,@AUTOCONF@,$AUTOCONF,;t t
4864s,@AUTOMAKE@,$AUTOMAKE,;t t
4865s,@AUTOHEADER@,$AUTOHEADER,;t t
4866s,@MAKEINFO@,$MAKEINFO,;t t
4867s,@AMTAR@,$AMTAR,;t t
4868s,@install_sh@,$install_sh,;t t
4869s,@STRIP@,$STRIP,;t t
4870s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4871s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4872s,@AWK@,$AWK,;t t
4873s,@SET_MAKE@,$SET_MAKE,;t t
4874s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4875s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4876s,@MAINT@,$MAINT,;t t
4877s,@build@,$build,;t t
4878s,@build_cpu@,$build_cpu,;t t
4879s,@build_vendor@,$build_vendor,;t t
4880s,@build_os@,$build_os,;t t
4881s,@host@,$host,;t t
4882s,@host_cpu@,$host_cpu,;t t
4883s,@host_vendor@,$host_vendor,;t t
4884s,@host_os@,$host_os,;t t
4885s,@IS_OSX_HOST_TRUE@,$IS_OSX_HOST_TRUE,;t t
4886s,@IS_OSX_HOST_FALSE@,$IS_OSX_HOST_FALSE,;t t
4887s,@IS_GP2X_HOST_TRUE@,$IS_GP2X_HOST_TRUE,;t t
4888s,@IS_GP2X_HOST_FALSE@,$IS_GP2X_HOST_FALSE,;t t
4889s,@IS_WIN32_HOST_TRUE@,$IS_WIN32_HOST_TRUE,;t t
4890s,@IS_WIN32_HOST_FALSE@,$IS_WIN32_HOST_FALSE,;t t
4891s,@IS_WINCE_HOST_TRUE@,$IS_WINCE_HOST_TRUE,;t t
4892s,@IS_WINCE_HOST_FALSE@,$IS_WINCE_HOST_FALSE,;t t
4893s,@CXX@,$CXX,;t t
4894s,@CXXFLAGS@,$CXXFLAGS,;t t
4895s,@LDFLAGS@,$LDFLAGS,;t t
4896s,@CPPFLAGS@,$CPPFLAGS,;t t
4897s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4898s,@EXEEXT@,$EXEEXT,;t t
4899s,@OBJEXT@,$OBJEXT,;t t
4900s,@DEPDIR@,$DEPDIR,;t t
4901s,@am__include@,$am__include,;t t
4902s,@am__quote@,$am__quote,;t t
4903s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4904s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4905s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4906s,@CXXDEPMODE@,$CXXDEPMODE,;t t
4907s,@OBJC@,$OBJC,;t t
4908s,@OBJCFLAGS@,$OBJCFLAGS,;t t
4909s,@ac_ct_OBJC@,$ac_ct_OBJC,;t t
4910s,@OBJCDEPMODE@,$OBJCDEPMODE,;t t
4911s,@WINDRES@,$WINDRES,;t t
4912s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
4913s,@build_win32_resource_TRUE@,$build_win32_resource_TRUE,;t t
4914s,@build_win32_resource_FALSE@,$build_win32_resource_FALSE,;t t
4915s,@CANDLE@,$CANDLE,;t t
4916s,@LIGHT@,$LIGHT,;t t
4917s,@build_win32_msi_TRUE@,$build_win32_msi_TRUE,;t t
4918s,@build_win32_msi_FALSE@,$build_win32_msi_FALSE,;t t
4919s,@DOXYGEN@,$DOXYGEN,;t t
4920s,@build_reference_TRUE@,$build_reference_TRUE,;t t
4921s,@build_reference_FALSE@,$build_reference_FALSE,;t t
4922s,@BINRELOC_CFLAGS@,$BINRELOC_CFLAGS,;t t
4923s,@BINRELOC_LIBS@,$BINRELOC_LIBS,;t t
4924s,@SDL_CONFIG@,$SDL_CONFIG,;t t
4925s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
4926s,@SDL_LIBS@,$SDL_LIBS,;t t
4927s,@SDL_IMAGE_CFLAGS@,$SDL_IMAGE_CFLAGS,;t t
4928s,@SDL_IMAGE_LIBS@,$SDL_IMAGE_LIBS,;t t
4929s,@SDL_MIXER_CFLAGS@,$SDL_MIXER_CFLAGS,;t t
4930s,@SDL_MIXER_LIBS@,$SDL_MIXER_LIBS,;t t
4931s,@LIBOBJS@,$LIBOBJS,;t t
4932s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4933CEOF
4934
4935_ACEOF
4936
4937  cat >>$CONFIG_STATUS <<\_ACEOF
4938  # Split the substitutions into bite-sized pieces for seds with
4939  # small command number limits, like on Digital OSF/1 and HP-UX.
4940  ac_max_sed_lines=48
4941  ac_sed_frag=1 # Number of current file.
4942  ac_beg=1 # First line for current file.
4943  ac_end=$ac_max_sed_lines # Line after last line for current file.
4944  ac_more_lines=:
4945  ac_sed_cmds=
4946  while $ac_more_lines; do
4947    if test $ac_beg -gt 1; then
4948      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4949    else
4950      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4951    fi
4952    if test ! -s $tmp/subs.frag; then
4953      ac_more_lines=false
4954    else
4955      # The purpose of the label and of the branching condition is to
4956      # speed up the sed processing (if there are no `@' at all, there
4957      # is no need to browse any of the substitutions).
4958      # These are the two extra sed commands mentioned above.
4959      (echo ':t
4960  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4961      if test -z "$ac_sed_cmds"; then
4962	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4963      else
4964	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4965      fi
4966      ac_sed_frag=`expr $ac_sed_frag + 1`
4967      ac_beg=$ac_end
4968      ac_end=`expr $ac_end + $ac_max_sed_lines`
4969    fi
4970  done
4971  if test -z "$ac_sed_cmds"; then
4972    ac_sed_cmds=cat
4973  fi
4974fi # test -n "$CONFIG_FILES"
4975
4976_ACEOF
4977cat >>$CONFIG_STATUS <<\_ACEOF
4978for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4979  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4980  case $ac_file in
4981  - | *:- | *:-:* ) # input from stdin
4982	cat >$tmp/stdin
4983	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4984	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4985  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4986	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4987  * )   ac_file_in=$ac_file.in ;;
4988  esac
4989
4990  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4991  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4992$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4993	 X"$ac_file" : 'X\(//\)[^/]' \| \
4994	 X"$ac_file" : 'X\(//\)$' \| \
4995	 X"$ac_file" : 'X\(/\)' \| \
4996	 .     : '\(.\)' 2>/dev/null ||
4997echo X"$ac_file" |
4998    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4999  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5000  	  /^X\(\/\/\)$/{ s//\1/; q; }
5001  	  /^X\(\/\).*/{ s//\1/; q; }
5002  	  s/.*/./; q'`
5003  { if $as_mkdir_p; then
5004    mkdir -p "$ac_dir"
5005  else
5006    as_dir="$ac_dir"
5007    as_dirs=
5008    while test ! -d "$as_dir"; do
5009      as_dirs="$as_dir $as_dirs"
5010      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5011$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5012	 X"$as_dir" : 'X\(//\)[^/]' \| \
5013	 X"$as_dir" : 'X\(//\)$' \| \
5014	 X"$as_dir" : 'X\(/\)' \| \
5015	 .     : '\(.\)' 2>/dev/null ||
5016echo X"$as_dir" |
5017    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5018  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5019  	  /^X\(\/\/\)$/{ s//\1/; q; }
5020  	  /^X\(\/\).*/{ s//\1/; q; }
5021  	  s/.*/./; q'`
5022    done
5023    test ! -n "$as_dirs" || mkdir $as_dirs
5024  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5025echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5026   { (exit 1); exit 1; }; }; }
5027
5028  ac_builddir=.
5029
5030if test "$ac_dir" != .; then
5031  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5032  # A "../" for each directory in $ac_dir_suffix.
5033  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5034else
5035  ac_dir_suffix= ac_top_builddir=
5036fi
5037
5038case $srcdir in
5039  .)  # No --srcdir option.  We are building in place.
5040    ac_srcdir=.
5041    if test -z "$ac_top_builddir"; then
5042       ac_top_srcdir=.
5043    else
5044       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5045    fi ;;
5046  [\\/]* | ?:[\\/]* )  # Absolute path.
5047    ac_srcdir=$srcdir$ac_dir_suffix;
5048    ac_top_srcdir=$srcdir ;;
5049  *) # Relative path.
5050    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5051    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5052esac
5053
5054# Do not use `cd foo && pwd` to compute absolute paths, because
5055# the directories may not exist.
5056case `pwd` in
5057.) ac_abs_builddir="$ac_dir";;
5058*)
5059  case "$ac_dir" in
5060  .) ac_abs_builddir=`pwd`;;
5061  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5062  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5063  esac;;
5064esac
5065case $ac_abs_builddir in
5066.) ac_abs_top_builddir=${ac_top_builddir}.;;
5067*)
5068  case ${ac_top_builddir}. in
5069  .) ac_abs_top_builddir=$ac_abs_builddir;;
5070  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5071  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5072  esac;;
5073esac
5074case $ac_abs_builddir in
5075.) ac_abs_srcdir=$ac_srcdir;;
5076*)
5077  case $ac_srcdir in
5078  .) ac_abs_srcdir=$ac_abs_builddir;;
5079  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5080  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5081  esac;;
5082esac
5083case $ac_abs_builddir in
5084.) ac_abs_top_srcdir=$ac_top_srcdir;;
5085*)
5086  case $ac_top_srcdir in
5087  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5088  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5089  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5090  esac;;
5091esac
5092
5093
5094  case $INSTALL in
5095  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5096  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5097  esac
5098
5099  if test x"$ac_file" != x-; then
5100    { echo "$as_me:$LINENO: creating $ac_file" >&5
5101echo "$as_me: creating $ac_file" >&6;}
5102    rm -f "$ac_file"
5103  fi
5104  # Let's still pretend it is `configure' which instantiates (i.e., don't
5105  # use $as_me), people would be surprised to read:
5106  #    /* config.h.  Generated by config.status.  */
5107  if test x"$ac_file" = x-; then
5108    configure_input=
5109  else
5110    configure_input="$ac_file.  "
5111  fi
5112  configure_input=$configure_input"Generated from `echo $ac_file_in |
5113				     sed 's,.*/,,'` by configure."
5114
5115  # First look for the input files in the build tree, otherwise in the
5116  # src tree.
5117  ac_file_inputs=`IFS=:
5118    for f in $ac_file_in; do
5119      case $f in
5120      -) echo $tmp/stdin ;;
5121      [\\/$]*)
5122	 # Absolute (can't be DOS-style, as IFS=:)
5123	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5124echo "$as_me: error: cannot find input file: $f" >&2;}
5125   { (exit 1); exit 1; }; }
5126	 echo "$f";;
5127      *) # Relative
5128	 if test -f "$f"; then
5129	   # Build tree
5130	   echo "$f"
5131	 elif test -f "$srcdir/$f"; then
5132	   # Source tree
5133	   echo "$srcdir/$f"
5134	 else
5135	   # /dev/null tree
5136	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5137echo "$as_me: error: cannot find input file: $f" >&2;}
5138   { (exit 1); exit 1; }; }
5139	 fi;;
5140      esac
5141    done` || { (exit 1); exit 1; }
5142_ACEOF
5143cat >>$CONFIG_STATUS <<_ACEOF
5144  sed "$ac_vpsub
5145$extrasub
5146_ACEOF
5147cat >>$CONFIG_STATUS <<\_ACEOF
5148:t
5149/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5150s,@configure_input@,$configure_input,;t t
5151s,@srcdir@,$ac_srcdir,;t t
5152s,@abs_srcdir@,$ac_abs_srcdir,;t t
5153s,@top_srcdir@,$ac_top_srcdir,;t t
5154s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5155s,@builddir@,$ac_builddir,;t t
5156s,@abs_builddir@,$ac_abs_builddir,;t t
5157s,@top_builddir@,$ac_top_builddir,;t t
5158s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5159s,@INSTALL@,$ac_INSTALL,;t t
5160" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5161  rm -f $tmp/stdin
5162  if test x"$ac_file" != x-; then
5163    mv $tmp/out $ac_file
5164  else
5165    cat $tmp/out
5166    rm -f $tmp/out
5167  fi
5168
5169done
5170_ACEOF
5171cat >>$CONFIG_STATUS <<\_ACEOF
5172
5173#
5174# CONFIG_HEADER section.
5175#
5176
5177# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5178# NAME is the cpp macro being defined and VALUE is the value it is being given.
5179#
5180# ac_d sets the value in "#define NAME VALUE" lines.
5181ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
5182ac_dB='[	 ].*$,\1#\2'
5183ac_dC=' '
5184ac_dD=',;t'
5185# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5186ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
5187ac_uB='$,\1#\2define\3'
5188ac_uC=' '
5189ac_uD=',;t'
5190
5191for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5192  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5193  case $ac_file in
5194  - | *:- | *:-:* ) # input from stdin
5195	cat >$tmp/stdin
5196	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5197	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5198  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5199	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5200  * )   ac_file_in=$ac_file.in ;;
5201  esac
5202
5203  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5204echo "$as_me: creating $ac_file" >&6;}
5205
5206  # First look for the input files in the build tree, otherwise in the
5207  # src tree.
5208  ac_file_inputs=`IFS=:
5209    for f in $ac_file_in; do
5210      case $f in
5211      -) echo $tmp/stdin ;;
5212      [\\/$]*)
5213	 # Absolute (can't be DOS-style, as IFS=:)
5214	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5215echo "$as_me: error: cannot find input file: $f" >&2;}
5216   { (exit 1); exit 1; }; }
5217	 # Do quote $f, to prevent DOS paths from being IFS'd.
5218	 echo "$f";;
5219      *) # Relative
5220	 if test -f "$f"; then
5221	   # Build tree
5222	   echo "$f"
5223	 elif test -f "$srcdir/$f"; then
5224	   # Source tree
5225	   echo "$srcdir/$f"
5226	 else
5227	   # /dev/null tree
5228	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5229echo "$as_me: error: cannot find input file: $f" >&2;}
5230   { (exit 1); exit 1; }; }
5231	 fi;;
5232      esac
5233    done` || { (exit 1); exit 1; }
5234  # Remove the trailing spaces.
5235  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
5236
5237_ACEOF
5238
5239# Transform confdefs.h into two sed scripts, `conftest.defines' and
5240# `conftest.undefs', that substitutes the proper values into
5241# config.h.in to produce config.h.  The first handles `#define'
5242# templates, and the second `#undef' templates.
5243# And first: Protect against being on the right side of a sed subst in
5244# config.status.  Protect against being in an unquoted here document
5245# in config.status.
5246rm -f conftest.defines conftest.undefs
5247# Using a here document instead of a string reduces the quoting nightmare.
5248# Putting comments in sed scripts is not portable.
5249#
5250# `end' is used to avoid that the second main sed command (meant for
5251# 0-ary CPP macros) applies to n-ary macro definitions.
5252# See the Autoconf documentation for `clear'.
5253cat >confdef2sed.sed <<\_ACEOF
5254s/[\\&,]/\\&/g
5255s,[\\$`],\\&,g
5256t clear
5257: clear
5258s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5259t end
5260s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5261: end
5262_ACEOF
5263# If some macros were called several times there might be several times
5264# the same #defines, which is useless.  Nevertheless, we may not want to
5265# sort them, since we want the *last* AC-DEFINE to be honored.
5266uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5267sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5268rm -f confdef2sed.sed
5269
5270# This sed command replaces #undef with comments.  This is necessary, for
5271# example, in the case of _POSIX_SOURCE, which is predefined and required
5272# on some systems where configure will not decide to define it.
5273cat >>conftest.undefs <<\_ACEOF
5274s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5275_ACEOF
5276
5277# Break up conftest.defines because some shells have a limit on the size
5278# of here documents, and old seds have small limits too (100 cmds).
5279echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5280echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5281echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5282echo '  :' >>$CONFIG_STATUS
5283rm -f conftest.tail
5284while grep . conftest.defines >/dev/null
5285do
5286  # Write a limited-size here document to $tmp/defines.sed.
5287  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5288  # Speed up: don't consider the non `#define' lines.
5289  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
5290  # Work around the forget-to-reset-the-flag bug.
5291  echo 't clr' >>$CONFIG_STATUS
5292  echo ': clr' >>$CONFIG_STATUS
5293  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5294  echo 'CEOF
5295  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5296  rm -f $tmp/in
5297  mv $tmp/out $tmp/in
5298' >>$CONFIG_STATUS
5299  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5300  rm -f conftest.defines
5301  mv conftest.tail conftest.defines
5302done
5303rm -f conftest.defines
5304echo '  fi # grep' >>$CONFIG_STATUS
5305echo >>$CONFIG_STATUS
5306
5307# Break up conftest.undefs because some shells have a limit on the size
5308# of here documents, and old seds have small limits too (100 cmds).
5309echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5310rm -f conftest.tail
5311while grep . conftest.undefs >/dev/null
5312do
5313  # Write a limited-size here document to $tmp/undefs.sed.
5314  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5315  # Speed up: don't consider the non `#undef'
5316  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
5317  # Work around the forget-to-reset-the-flag bug.
5318  echo 't clr' >>$CONFIG_STATUS
5319  echo ': clr' >>$CONFIG_STATUS
5320  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5321  echo 'CEOF
5322  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5323  rm -f $tmp/in
5324  mv $tmp/out $tmp/in
5325' >>$CONFIG_STATUS
5326  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5327  rm -f conftest.undefs
5328  mv conftest.tail conftest.undefs
5329done
5330rm -f conftest.undefs
5331
5332cat >>$CONFIG_STATUS <<\_ACEOF
5333  # Let's still pretend it is `configure' which instantiates (i.e., don't
5334  # use $as_me), people would be surprised to read:
5335  #    /* config.h.  Generated by config.status.  */
5336  if test x"$ac_file" = x-; then
5337    echo "/* Generated by configure.  */" >$tmp/config.h
5338  else
5339    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5340  fi
5341  cat $tmp/in >>$tmp/config.h
5342  rm -f $tmp/in
5343  if test x"$ac_file" != x-; then
5344    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5345      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5346echo "$as_me: $ac_file is unchanged" >&6;}
5347    else
5348      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5349$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5350	 X"$ac_file" : 'X\(//\)[^/]' \| \
5351	 X"$ac_file" : 'X\(//\)$' \| \
5352	 X"$ac_file" : 'X\(/\)' \| \
5353	 .     : '\(.\)' 2>/dev/null ||
5354echo X"$ac_file" |
5355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5356  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5357  	  /^X\(\/\/\)$/{ s//\1/; q; }
5358  	  /^X\(\/\).*/{ s//\1/; q; }
5359  	  s/.*/./; q'`
5360      { if $as_mkdir_p; then
5361    mkdir -p "$ac_dir"
5362  else
5363    as_dir="$ac_dir"
5364    as_dirs=
5365    while test ! -d "$as_dir"; do
5366      as_dirs="$as_dir $as_dirs"
5367      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5368$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5369	 X"$as_dir" : 'X\(//\)[^/]' \| \
5370	 X"$as_dir" : 'X\(//\)$' \| \
5371	 X"$as_dir" : 'X\(/\)' \| \
5372	 .     : '\(.\)' 2>/dev/null ||
5373echo X"$as_dir" |
5374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5375  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5376  	  /^X\(\/\/\)$/{ s//\1/; q; }
5377  	  /^X\(\/\).*/{ s//\1/; q; }
5378  	  s/.*/./; q'`
5379    done
5380    test ! -n "$as_dirs" || mkdir $as_dirs
5381  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5382echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5383   { (exit 1); exit 1; }; }; }
5384
5385      rm -f $ac_file
5386      mv $tmp/config.h $ac_file
5387    fi
5388  else
5389    cat $tmp/config.h
5390    rm -f $tmp/config.h
5391  fi
5392  # Run the commands associated with the file.
5393  case $ac_file in
5394    config.h ) # update the timestamp
5395echo 'timestamp for config.h' >"./stamp-h1"
5396 ;;
5397  esac
5398done
5399_ACEOF
5400cat >>$CONFIG_STATUS <<\_ACEOF
5401
5402#
5403# CONFIG_COMMANDS section.
5404#
5405for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5406  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5407  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5408  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5409$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5410	 X"$ac_dest" : 'X\(//\)[^/]' \| \
5411	 X"$ac_dest" : 'X\(//\)$' \| \
5412	 X"$ac_dest" : 'X\(/\)' \| \
5413	 .     : '\(.\)' 2>/dev/null ||
5414echo X"$ac_dest" |
5415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5416  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5417  	  /^X\(\/\/\)$/{ s//\1/; q; }
5418  	  /^X\(\/\).*/{ s//\1/; q; }
5419  	  s/.*/./; q'`
5420  { if $as_mkdir_p; then
5421    mkdir -p "$ac_dir"
5422  else
5423    as_dir="$ac_dir"
5424    as_dirs=
5425    while test ! -d "$as_dir"; do
5426      as_dirs="$as_dir $as_dirs"
5427      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5429	 X"$as_dir" : 'X\(//\)[^/]' \| \
5430	 X"$as_dir" : 'X\(//\)$' \| \
5431	 X"$as_dir" : 'X\(/\)' \| \
5432	 .     : '\(.\)' 2>/dev/null ||
5433echo X"$as_dir" |
5434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5435  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5436  	  /^X\(\/\/\)$/{ s//\1/; q; }
5437  	  /^X\(\/\).*/{ s//\1/; q; }
5438  	  s/.*/./; q'`
5439    done
5440    test ! -n "$as_dirs" || mkdir $as_dirs
5441  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5442echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5443   { (exit 1); exit 1; }; }; }
5444
5445  ac_builddir=.
5446
5447if test "$ac_dir" != .; then
5448  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5449  # A "../" for each directory in $ac_dir_suffix.
5450  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5451else
5452  ac_dir_suffix= ac_top_builddir=
5453fi
5454
5455case $srcdir in
5456  .)  # No --srcdir option.  We are building in place.
5457    ac_srcdir=.
5458    if test -z "$ac_top_builddir"; then
5459       ac_top_srcdir=.
5460    else
5461       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5462    fi ;;
5463  [\\/]* | ?:[\\/]* )  # Absolute path.
5464    ac_srcdir=$srcdir$ac_dir_suffix;
5465    ac_top_srcdir=$srcdir ;;
5466  *) # Relative path.
5467    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5468    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5469esac
5470
5471# Do not use `cd foo && pwd` to compute absolute paths, because
5472# the directories may not exist.
5473case `pwd` in
5474.) ac_abs_builddir="$ac_dir";;
5475*)
5476  case "$ac_dir" in
5477  .) ac_abs_builddir=`pwd`;;
5478  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5479  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5480  esac;;
5481esac
5482case $ac_abs_builddir in
5483.) ac_abs_top_builddir=${ac_top_builddir}.;;
5484*)
5485  case ${ac_top_builddir}. in
5486  .) ac_abs_top_builddir=$ac_abs_builddir;;
5487  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5488  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5489  esac;;
5490esac
5491case $ac_abs_builddir in
5492.) ac_abs_srcdir=$ac_srcdir;;
5493*)
5494  case $ac_srcdir in
5495  .) ac_abs_srcdir=$ac_abs_builddir;;
5496  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5497  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5498  esac;;
5499esac
5500case $ac_abs_builddir in
5501.) ac_abs_top_srcdir=$ac_top_srcdir;;
5502*)
5503  case $ac_top_srcdir in
5504  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5505  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5506  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5507  esac;;
5508esac
5509
5510
5511  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5512echo "$as_me: executing $ac_dest commands" >&6;}
5513  case $ac_dest in
5514    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5515  # Strip MF so we end up with the name of the file.
5516  mf=`echo "$mf" | sed -e 's/:.*$//'`
5517  # Check whether this is an Automake generated Makefile or not.
5518  # We used to match only the files named `Makefile.in', but
5519  # some people rename them; so instead we look at the file content.
5520  # Grep'ing the first line is not enough: some people post-process
5521  # each Makefile.in and add a new line on top of each file to say so.
5522  # So let's grep whole file.
5523  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5524    dirpart=`(dirname "$mf") 2>/dev/null ||
5525$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5526	 X"$mf" : 'X\(//\)[^/]' \| \
5527	 X"$mf" : 'X\(//\)$' \| \
5528	 X"$mf" : 'X\(/\)' \| \
5529	 .     : '\(.\)' 2>/dev/null ||
5530echo X"$mf" |
5531    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5532  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5533  	  /^X\(\/\/\)$/{ s//\1/; q; }
5534  	  /^X\(\/\).*/{ s//\1/; q; }
5535  	  s/.*/./; q'`
5536  else
5537    continue
5538  fi
5539  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5540  # Extract the definition of DEP_FILES from the Makefile without
5541  # running `make'.
5542  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5543  test -z "$DEPDIR" && continue
5544  # When using ansi2knr, U may be empty or an underscore; expand it
5545  U=`sed -n -e '/^U = / s///p' < "$mf"`
5546  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5547  # We invoke sed twice because it is the simplest approach to
5548  # changing $(DEPDIR) to its actual value in the expansion.
5549  for file in `sed -n -e '
5550    /^DEP_FILES = .*\\\\$/ {
5551      s/^DEP_FILES = //
5552      :loop
5553	s/\\\\$//
5554	p
5555	n
5556	/\\\\$/ b loop
5557      p
5558    }
5559    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5560       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5561    # Make sure the directory exists.
5562    test -f "$dirpart/$file" && continue
5563    fdir=`(dirname "$file") 2>/dev/null ||
5564$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5565	 X"$file" : 'X\(//\)[^/]' \| \
5566	 X"$file" : 'X\(//\)$' \| \
5567	 X"$file" : 'X\(/\)' \| \
5568	 .     : '\(.\)' 2>/dev/null ||
5569echo X"$file" |
5570    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5571  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5572  	  /^X\(\/\/\)$/{ s//\1/; q; }
5573  	  /^X\(\/\).*/{ s//\1/; q; }
5574  	  s/.*/./; q'`
5575    { if $as_mkdir_p; then
5576    mkdir -p $dirpart/$fdir
5577  else
5578    as_dir=$dirpart/$fdir
5579    as_dirs=
5580    while test ! -d "$as_dir"; do
5581      as_dirs="$as_dir $as_dirs"
5582      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5583$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5584	 X"$as_dir" : 'X\(//\)[^/]' \| \
5585	 X"$as_dir" : 'X\(//\)$' \| \
5586	 X"$as_dir" : 'X\(/\)' \| \
5587	 .     : '\(.\)' 2>/dev/null ||
5588echo X"$as_dir" |
5589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5590  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5591  	  /^X\(\/\/\)$/{ s//\1/; q; }
5592  	  /^X\(\/\).*/{ s//\1/; q; }
5593  	  s/.*/./; q'`
5594    done
5595    test ! -n "$as_dirs" || mkdir $as_dirs
5596  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5597echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5598   { (exit 1); exit 1; }; }; }
5599
5600    # echo "creating $dirpart/$file"
5601    echo '# dummy' > "$dirpart/$file"
5602  done
5603done
5604 ;;
5605  esac
5606done
5607_ACEOF
5608
5609cat >>$CONFIG_STATUS <<\_ACEOF
5610
5611{ (exit 0); exit 0; }
5612_ACEOF
5613chmod +x $CONFIG_STATUS
5614ac_clean_files=$ac_clean_files_save
5615
5616
5617# configure is writing to config.log, and then calls config.status.
5618# config.status does its own redirection, appending to config.log.
5619# Unfortunately, on DOS this fails, as config.log is still kept open
5620# by configure, so config.status won't be able to write to it; its
5621# output is simply discarded.  So we exec the FD to /dev/null,
5622# effectively closing config.log, so it can be properly (re)opened and
5623# appended to by config.status.  When coming back to configure, we
5624# need to make the FD available again.
5625if test "$no_create" != yes; then
5626  ac_cs_success=:
5627  ac_config_status_args=
5628  test "$silent" = yes &&
5629    ac_config_status_args="$ac_config_status_args --quiet"
5630  exec 5>/dev/null
5631  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5632  exec 5>>config.log
5633  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5634  # would make configure fail if this is the last instruction.
5635  $ac_cs_success || { (exit 1); exit 1; }
5636fi
5637
5638