Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/osX/configure @ 2992

Last change on this file since 2992 was 2985, checked in by nico, 20 years ago

orxonox/branches/osX: compiling on osX now

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