Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5475

Last change on this file since 5475 was 5475, checked in by bensch, 18 years ago

default of shoot is now on Button-left

  • Property svn:executable set to *
File size: 373.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.3.1_alpha.
4#
5# Report bugs to <orxonox-dev at mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.3.1_alpha'
273PACKAGE_STRING='orxonox 0.3.1_alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.3.1_alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
871  --disable-gtk           Prevents GTK from being loaded
872  --disable-curl          Prevents libcURL from being loaded
873  --enable-profile        builds orxonox with profiling support
874  --enable-efence         builds orxonox with efence support
875  --enable-documentation  also builds the sDocumentation while make from
876                          srcdir
877
878Optional Packages:
879  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
881  --with-shared-lib-path  Tells the executable, where to look for the shared
882                          libraries.
883  --with-sub-projects     also builds the subProjects while make from srcdir
884  --with-tardis           sets all the necesary environment flags for
885                          linux-TARDIS boxes at the ETH Zurich
886
887Some influential environment variables:
888  CXX         C++ compiler command
889  CXXFLAGS    C++ compiler flags
890  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
891              nonstandard directory <lib dir>
892  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
893              headers in a nonstandard directory <include dir>
894  CC          C compiler command
895  CFLAGS      C compiler flags
896  CPP         C preprocessor
897
898Use these variables to override the choices made by `configure' or to help
899it to find libraries and programs with nonstandard names/locations.
900
901Report bugs to <orxonox-dev at mail.datacore.ch>.
902_ACEOF
903fi
904
905if test "$ac_init_help" = "recursive"; then
906  # If there are subdirs, report their specific --help.
907  ac_popdir=`pwd`
908  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909    test -d $ac_dir || continue
910    ac_builddir=.
911
912if test "$ac_dir" != .; then
913  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914  # A "../" for each directory in $ac_dir_suffix.
915  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916else
917  ac_dir_suffix= ac_top_builddir=
918fi
919
920case $srcdir in
921  .)  # No --srcdir option.  We are building in place.
922    ac_srcdir=.
923    if test -z "$ac_top_builddir"; then
924       ac_top_srcdir=.
925    else
926       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927    fi ;;
928  [\\/]* | ?:[\\/]* )  # Absolute path.
929    ac_srcdir=$srcdir$ac_dir_suffix;
930    ac_top_srcdir=$srcdir ;;
931  *) # Relative path.
932    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933    ac_top_srcdir=$ac_top_builddir$srcdir ;;
934esac
935
936# Do not use `cd foo && pwd` to compute absolute paths, because
937# the directories may not exist.
938case `pwd` in
939.) ac_abs_builddir="$ac_dir";;
940*)
941  case "$ac_dir" in
942  .) ac_abs_builddir=`pwd`;;
943  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
944  *) ac_abs_builddir=`pwd`/"$ac_dir";;
945  esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_top_builddir=${ac_top_builddir}.;;
949*)
950  case ${ac_top_builddir}. in
951  .) ac_abs_top_builddir=$ac_abs_builddir;;
952  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
953  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
954  esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_srcdir=$ac_srcdir;;
958*)
959  case $ac_srcdir in
960  .) ac_abs_srcdir=$ac_abs_builddir;;
961  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
962  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
963  esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_top_srcdir=$ac_top_srcdir;;
967*)
968  case $ac_top_srcdir in
969  .) ac_abs_top_srcdir=$ac_abs_builddir;;
970  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
971  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
972  esac;;
973esac
974
975    cd $ac_dir
976    # Check for guested configure; otherwise get Cygnus style configure.
977    if test -f $ac_srcdir/configure.gnu; then
978      echo
979      $SHELL $ac_srcdir/configure.gnu  --help=recursive
980    elif test -f $ac_srcdir/configure; then
981      echo
982      $SHELL $ac_srcdir/configure  --help=recursive
983    elif test -f $ac_srcdir/configure.ac ||
984           test -f $ac_srcdir/configure.in; then
985      echo
986      $ac_configure --help
987    else
988      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989    fi
990    cd $ac_popdir
991  done
992fi
993
994test -n "$ac_init_help" && exit 0
995if $ac_init_version; then
996  cat <<\_ACEOF
997orxonox configure 0.3.1_alpha
998generated by GNU Autoconf 2.59
999
1000Copyright (C) 2003 Free Software Foundation, Inc.
1001This configure script is free software; the Free Software Foundation
1002gives unlimited permission to copy, distribute and modify it.
1003_ACEOF
1004  exit 0
1005fi
1006exec 5>config.log
1007cat >&5 <<_ACEOF
1008This file contains any messages produced by compilers while
1009running configure, to aid debugging if configure makes a mistake.
1010
1011It was created by orxonox $as_me 0.3.1_alpha, which was
1012generated by GNU Autoconf 2.59.  Invocation command line was
1013
1014  $ $0 $@
1015
1016_ACEOF
1017{
1018cat <<_ASUNAME
1019## --------- ##
1020## Platform. ##
1021## --------- ##
1022
1023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1024uname -m = `(uname -m) 2>/dev/null || echo unknown`
1025uname -r = `(uname -r) 2>/dev/null || echo unknown`
1026uname -s = `(uname -s) 2>/dev/null || echo unknown`
1027uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028
1029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1030/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1031
1032/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1033/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1035hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1036/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1037/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1038/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1039
1040_ASUNAME
1041
1042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043for as_dir in $PATH
1044do
1045  IFS=$as_save_IFS
1046  test -z "$as_dir" && as_dir=.
1047  echo "PATH: $as_dir"
1048done
1049
1050} >&5
1051
1052cat >&5 <<_ACEOF
1053
1054
1055## ----------- ##
1056## Core tests. ##
1057## ----------- ##
1058
1059_ACEOF
1060
1061
1062# Keep a trace of the command line.
1063# Strip out --no-create and --no-recursion so they do not pile up.
1064# Strip out --silent because we don't want to record it for future runs.
1065# Also quote any args containing shell meta-characters.
1066# Make two passes to allow for proper duplicate-argument suppression.
1067ac_configure_args=
1068ac_configure_args0=
1069ac_configure_args1=
1070ac_sep=
1071ac_must_keep_next=false
1072for ac_pass in 1 2
1073do
1074  for ac_arg
1075  do
1076    case $ac_arg in
1077    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1078    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079    | -silent | --silent | --silen | --sile | --sil)
1080      continue ;;
1081    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1082      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1083    esac
1084    case $ac_pass in
1085    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086    2)
1087      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1088      if test $ac_must_keep_next = true; then
1089        ac_must_keep_next=false # Got value, back to normal.
1090      else
1091        case $ac_arg in
1092          *=* | --config-cache | -C | -disable-* | --disable-* \
1093          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1094          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1095          | -with-* | --with-* | -without-* | --without-* | --x)
1096            case "$ac_configure_args0 " in
1097              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1098            esac
1099            ;;
1100          -* ) ac_must_keep_next=true ;;
1101        esac
1102      fi
1103      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1104      # Get rid of the leading space.
1105      ac_sep=" "
1106      ;;
1107    esac
1108  done
1109done
1110$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1111$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112
1113# When interrupted or exit'd, cleanup temporary files, and complete
1114# config.log.  We remove comments because anyway the quotes in there
1115# would cause problems or look ugly.
1116# WARNING: Be sure not to use single quotes in there, as some shells,
1117# such as our DU 5.0 friend, will then `close' the trap.
1118trap 'exit_status=$?
1119  # Save into config.log some information that might help in debugging.
1120  {
1121    echo
1122
1123    cat <<\_ASBOX
1124## ---------------- ##
1125## Cache variables. ##
1126## ---------------- ##
1127_ASBOX
1128    echo
1129    # The following way of writing the cache mishandles newlines in values,
1130{
1131  (set) 2>&1 |
1132    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1133    *ac_space=\ *)
1134      sed -n \
1135        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1136          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137      ;;
1138    *)
1139      sed -n \
1140        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141      ;;
1142    esac;
1143}
1144    echo
1145
1146    cat <<\_ASBOX
1147## ----------------- ##
1148## Output variables. ##
1149## ----------------- ##
1150_ASBOX
1151    echo
1152    for ac_var in $ac_subst_vars
1153    do
1154      eval ac_val=$`echo $ac_var`
1155      echo "$ac_var='"'"'$ac_val'"'"'"
1156    done | sort
1157    echo
1158
1159    if test -n "$ac_subst_files"; then
1160      cat <<\_ASBOX
1161## ------------- ##
1162## Output files. ##
1163## ------------- ##
1164_ASBOX
1165      echo
1166      for ac_var in $ac_subst_files
1167      do
1168        eval ac_val=$`echo $ac_var`
1169        echo "$ac_var='"'"'$ac_val'"'"'"
1170      done | sort
1171      echo
1172    fi
1173
1174    if test -s confdefs.h; then
1175      cat <<\_ASBOX
1176## ----------- ##
1177## confdefs.h. ##
1178## ----------- ##
1179_ASBOX
1180      echo
1181      sed "/^$/d" confdefs.h | sort
1182      echo
1183    fi
1184    test "$ac_signal" != 0 &&
1185      echo "$as_me: caught signal $ac_signal"
1186    echo "$as_me: exit $exit_status"
1187  } >&5
1188  rm -f core *.core &&
1189  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1190    exit $exit_status
1191     ' 0
1192for ac_signal in 1 2 13 15; do
1193  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194done
1195ac_signal=0
1196
1197# confdefs.h avoids OS command line length limits that DEFS can exceed.
1198rm -rf conftest* confdefs.h
1199# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1200echo >confdefs.h
1201
1202# Predefined preprocessor variables.
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_NAME "$PACKAGE_NAME"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_VERSION "$PACKAGE_VERSION"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_STRING "$PACKAGE_STRING"
1221_ACEOF
1222
1223
1224cat >>confdefs.h <<_ACEOF
1225#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226_ACEOF
1227
1228
1229# Let the site file select an alternate cache file if it wants to.
1230# Prefer explicitly selected file to automatically selected ones.
1231if test -z "$CONFIG_SITE"; then
1232  if test "x$prefix" != xNONE; then
1233    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234  else
1235    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1236  fi
1237fi
1238for ac_site_file in $CONFIG_SITE; do
1239  if test -r "$ac_site_file"; then
1240    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1241echo "$as_me: loading site script $ac_site_file" >&6;}
1242    sed 's/^/| /' "$ac_site_file" >&5
1243    . "$ac_site_file"
1244  fi
1245done
1246
1247if test -r "$cache_file"; then
1248  # Some versions of bash will fail to source /dev/null (special
1249  # files actually), so we avoid doing that.
1250  if test -f "$cache_file"; then
1251    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1252echo "$as_me: loading cache $cache_file" >&6;}
1253    case $cache_file in
1254      [\\/]* | ?:[\\/]* ) . $cache_file;;
1255      *)                      . ./$cache_file;;
1256    esac
1257  fi
1258else
1259  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1260echo "$as_me: creating cache $cache_file" >&6;}
1261  >$cache_file
1262fi
1263
1264# Check that the precious variables saved in the cache have kept the same
1265# value.
1266ac_cache_corrupted=false
1267for ac_var in `(set) 2>&1 |
1268               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1269  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1270  eval ac_new_set=\$ac_env_${ac_var}_set
1271  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1272  eval ac_new_val="\$ac_env_${ac_var}_value"
1273  case $ac_old_set,$ac_new_set in
1274    set,)
1275      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1276echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1277      ac_cache_corrupted=: ;;
1278    ,set)
1279      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1280echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1281      ac_cache_corrupted=: ;;
1282    ,);;
1283    *)
1284      if test "x$ac_old_val" != "x$ac_new_val"; then
1285        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1286echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1287        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1288echo "$as_me:   former value:  $ac_old_val" >&2;}
1289        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1290echo "$as_me:   current value: $ac_new_val" >&2;}
1291        ac_cache_corrupted=:
1292      fi;;
1293  esac
1294  # Pass precious variables to config.status.
1295  if test "$ac_new_set" = set; then
1296    case $ac_new_val in
1297    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1299    *) ac_arg=$ac_var=$ac_new_val ;;
1300    esac
1301    case " $ac_configure_args " in
1302      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1303      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304    esac
1305  fi
1306done
1307if $ac_cache_corrupted; then
1308  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1309echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1310  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1311echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1312   { (exit 1); exit 1; }; }
1313fi
1314
1315ac_ext=c
1316ac_cpp='$CPP $CPPFLAGS'
1317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348## Detect the canonical host and target build environment.
1349ac_aux_dir=
1350for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351  if test -f $ac_dir/install-sh; then
1352    ac_aux_dir=$ac_dir
1353    ac_install_sh="$ac_aux_dir/install-sh -c"
1354    break
1355  elif test -f $ac_dir/install.sh; then
1356    ac_aux_dir=$ac_dir
1357    ac_install_sh="$ac_aux_dir/install.sh -c"
1358    break
1359  elif test -f $ac_dir/shtool; then
1360    ac_aux_dir=$ac_dir
1361    ac_install_sh="$ac_aux_dir/shtool install -c"
1362    break
1363  fi
1364done
1365if test -z "$ac_aux_dir"; then
1366  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368   { (exit 1); exit 1; }; }
1369fi
1370ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1373
1374# Make sure we can run config.sub.
1375$ac_config_sub sun4 >/dev/null 2>&1 ||
1376  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1377echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378   { (exit 1); exit 1; }; }
1379
1380echo "$as_me:$LINENO: checking build system type" >&5
1381echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382if test "${ac_cv_build+set}" = set; then
1383  echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385  ac_cv_build_alias=$build_alias
1386test -z "$ac_cv_build_alias" &&
1387  ac_cv_build_alias=`$ac_config_guess`
1388test -z "$ac_cv_build_alias" &&
1389  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1390echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391   { (exit 1); exit 1; }; }
1392ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1394echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1395   { (exit 1); exit 1; }; }
1396
1397fi
1398echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1399echo "${ECHO_T}$ac_cv_build" >&6
1400build=$ac_cv_build
1401build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406echo "$as_me:$LINENO: checking host system type" >&5
1407echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408if test "${ac_cv_host+set}" = set; then
1409  echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411  ac_cv_host_alias=$host_alias
1412test -z "$ac_cv_host_alias" &&
1413  ac_cv_host_alias=$ac_cv_build_alias
1414ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417   { (exit 1); exit 1; }; }
1418
1419fi
1420echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1421echo "${ECHO_T}$ac_cv_host" >&6
1422host=$ac_cv_host
1423host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428echo "$as_me:$LINENO: checking target system type" >&5
1429echo $ECHO_N "checking target system type... $ECHO_C" >&6
1430if test "${ac_cv_target+set}" = set; then
1431  echo $ECHO_N "(cached) $ECHO_C" >&6
1432else
1433  ac_cv_target_alias=$target_alias
1434test "x$ac_cv_target_alias" = "x" &&
1435  ac_cv_target_alias=$ac_cv_host_alias
1436ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1437  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1438echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1439   { (exit 1); exit 1; }; }
1440
1441fi
1442echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1443echo "${ECHO_T}$ac_cv_target" >&6
1444target=$ac_cv_target
1445target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450# The aliases save the names the user supplied, while $host etc.
1451# will get canonicalized.
1452test -n "$target_alias" &&
1453  test "$program_prefix$program_suffix$program_transform_name" = \
1454    NONENONEs,x,x, &&
1455  program_prefix=${target_alias}-
1456
1457am__api_version="1.9"
1458# Find a good install program.  We prefer a C program (faster),
1459# so one script is as good as another.  But avoid the broken or
1460# incompatible versions:
1461# SysV /etc/install, /usr/sbin/install
1462# SunOS /usr/etc/install
1463# IRIX /sbin/install
1464# AIX /bin/install
1465# AmigaOS /C/install, which installs bootblocks on floppy discs
1466# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1467# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1468# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1469# OS/2's system install, which has a completely different semantic
1470# ./install, which can be erroneously created by make from ./install.sh.
1471echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1472echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1473if test -z "$INSTALL"; then
1474if test "${ac_cv_path_install+set}" = set; then
1475  echo $ECHO_N "(cached) $ECHO_C" >&6
1476else
1477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478for as_dir in $PATH
1479do
1480  IFS=$as_save_IFS
1481  test -z "$as_dir" && as_dir=.
1482  # Account for people who put trailing slashes in PATH elements.
1483case $as_dir/ in
1484  ./ | .// | /cC/* | \
1485  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1486  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1487  /usr/ucb/* ) ;;
1488  *)
1489    # OSF1 and SCO ODT 3.0 have their own names for install.
1490    # Don't use installbsd from OSF since it installs stuff as root
1491    # by default.
1492    for ac_prog in ginstall scoinst install; do
1493      for ac_exec_ext in '' $ac_executable_extensions; do
1494        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1495          if test $ac_prog = install &&
1496            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497            # AIX install.  It has an incompatible calling convention.
1498            :
1499          elif test $ac_prog = install &&
1500            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1501            # program-specific install script used by HP pwplus--don't use.
1502            :
1503          else
1504            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1505            break 3
1506          fi
1507        fi
1508      done
1509    done
1510    ;;
1511esac
1512done
1513
1514
1515fi
1516  if test "${ac_cv_path_install+set}" = set; then
1517    INSTALL=$ac_cv_path_install
1518  else
1519    # As a last resort, use the slow shell script.  We don't cache a
1520    # path for INSTALL within a source directory, because that will
1521    # break other packages using the cache if that directory is
1522    # removed, or if the path is relative.
1523    INSTALL=$ac_install_sh
1524  fi
1525fi
1526echo "$as_me:$LINENO: result: $INSTALL" >&5
1527echo "${ECHO_T}$INSTALL" >&6
1528
1529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1530# It thinks the first close brace ends the variable substitution.
1531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1532
1533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1534
1535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1536
1537echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1538echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1539# Just in case
1540sleep 1
1541echo timestamp > conftest.file
1542# Do `set' in a subshell so we don't clobber the current shell's
1543# arguments.  Must try -L first in case configure is actually a
1544# symlink; some systems play weird games with the mod time of symlinks
1545# (eg FreeBSD returns the mod time of the symlink's containing
1546# directory).
1547if (
1548   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1549   if test "$*" = "X"; then
1550      # -L didn't work.
1551      set X `ls -t $srcdir/configure conftest.file`
1552   fi
1553   rm -f conftest.file
1554   if test "$*" != "X $srcdir/configure conftest.file" \
1555      && test "$*" != "X conftest.file $srcdir/configure"; then
1556
1557      # If neither matched, then we have a broken ls.  This can happen
1558      # if, for instance, CONFIG_SHELL is bash and it inherits a
1559      # broken ls alias from the environment.  This has actually
1560      # happened.  Such a system could not be considered "sane".
1561      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&5
1563echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1564alias in your environment" >&2;}
1565   { (exit 1); exit 1; }; }
1566   fi
1567
1568   test "$2" = conftest.file
1569   )
1570then
1571   # Ok.
1572   :
1573else
1574   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1575Check your system clock" >&5
1576echo "$as_me: error: newly created file is older than distributed files!
1577Check your system clock" >&2;}
1578   { (exit 1); exit 1; }; }
1579fi
1580echo "$as_me:$LINENO: result: yes" >&5
1581echo "${ECHO_T}yes" >&6
1582test "$program_prefix" != NONE &&
1583  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1584# Use a double $ so make ignores it.
1585test "$program_suffix" != NONE &&
1586  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1587# Double any \ or $.  echo might interpret backslashes.
1588# By default was `s,x,x', remove it if useless.
1589cat <<\_ACEOF >conftest.sed
1590s/[\\$]/&&/g;s/;s,x,x,$//
1591_ACEOF
1592program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1593rm conftest.sed
1594
1595# expand $ac_aux_dir to an absolute path
1596am_aux_dir=`cd $ac_aux_dir && pwd`
1597
1598test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1599# Use eval to expand $SHELL
1600if eval "$MISSING --run true"; then
1601  am_missing_run="$MISSING --run "
1602else
1603  am_missing_run=
1604  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1605echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1606fi
1607
1608if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1609  # We used to keeping the `.' as first argument, in order to
1610  # allow $(mkdir_p) to be used without argument.  As in
1611  #   $(mkdir_p) $(somedir)
1612  # where $(somedir) is conditionally defined.  However this is wrong
1613  # for two reasons:
1614  #  1. if the package is installed by a user who cannot write `.'
1615  #     make install will fail,
1616  #  2. the above comment should most certainly read
1617  #     $(mkdir_p) $(DESTDIR)$(somedir)
1618  #     so it does not work when $(somedir) is undefined and
1619  #     $(DESTDIR) is not.
1620  #  To support the latter case, we have to write
1621  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1622  #  so the `.' trick is pointless.
1623  mkdir_p='mkdir -p --'
1624else
1625  # On NextStep and OpenStep, the `mkdir' command does not
1626  # recognize any option.  It will interpret all options as
1627  # directories to create, and then abort because `.' already
1628  # exists.
1629  for d in ./-p ./--version;
1630  do
1631    test -d $d && rmdir $d
1632  done
1633  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1634  if test -f "$ac_aux_dir/mkinstalldirs"; then
1635    mkdir_p='$(mkinstalldirs)'
1636  else
1637    mkdir_p='$(install_sh) -d'
1638  fi
1639fi
1640
1641for ac_prog in gawk mawk nawk awk
1642do
1643  # Extract the first word of "$ac_prog", so it can be a program name with args.
1644set dummy $ac_prog; ac_word=$2
1645echo "$as_me:$LINENO: checking for $ac_word" >&5
1646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647if test "${ac_cv_prog_AWK+set}" = set; then
1648  echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650  if test -n "$AWK"; then
1651  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1652else
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656  IFS=$as_save_IFS
1657  test -z "$as_dir" && as_dir=.
1658  for ac_exec_ext in '' $ac_executable_extensions; do
1659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660    ac_cv_prog_AWK="$ac_prog"
1661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662    break 2
1663  fi
1664done
1665done
1666
1667fi
1668fi
1669AWK=$ac_cv_prog_AWK
1670if test -n "$AWK"; then
1671  echo "$as_me:$LINENO: result: $AWK" >&5
1672echo "${ECHO_T}$AWK" >&6
1673else
1674  echo "$as_me:$LINENO: result: no" >&5
1675echo "${ECHO_T}no" >&6
1676fi
1677
1678  test -n "$AWK" && break
1679done
1680
1681echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1682echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1683set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1684if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1685  echo $ECHO_N "(cached) $ECHO_C" >&6
1686else
1687  cat >conftest.make <<\_ACEOF
1688all:
1689        @echo 'ac_maketemp="$(MAKE)"'
1690_ACEOF
1691# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1692eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1693if test -n "$ac_maketemp"; then
1694  eval ac_cv_prog_make_${ac_make}_set=yes
1695else
1696  eval ac_cv_prog_make_${ac_make}_set=no
1697fi
1698rm -f conftest.make
1699fi
1700if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1701  echo "$as_me:$LINENO: result: yes" >&5
1702echo "${ECHO_T}yes" >&6
1703  SET_MAKE=
1704else
1705  echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707  SET_MAKE="MAKE=${MAKE-make}"
1708fi
1709
1710rm -rf .tst 2>/dev/null
1711mkdir .tst 2>/dev/null
1712if test -d .tst; then
1713  am__leading_dot=.
1714else
1715  am__leading_dot=_
1716fi
1717rmdir .tst 2>/dev/null
1718
1719# test to see if srcdir already configured
1720if test "`cd $srcdir && pwd`" != "`pwd`" &&
1721   test -f $srcdir/config.status; then
1722  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1723echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1724   { (exit 1); exit 1; }; }
1725fi
1726
1727# test whether we have cygpath
1728if test -z "$CYGPATH_W"; then
1729  if (cygpath --version) >/dev/null 2>/dev/null; then
1730    CYGPATH_W='cygpath -w'
1731  else
1732    CYGPATH_W=echo
1733  fi
1734fi
1735
1736
1737# Define the identity of the package.
1738 PACKAGE='orxonox'
1739 VERSION='0.3.1_alpha'
1740
1741
1742cat >>confdefs.h <<_ACEOF
1743#define PACKAGE "$PACKAGE"
1744_ACEOF
1745
1746
1747cat >>confdefs.h <<_ACEOF
1748#define VERSION "$VERSION"
1749_ACEOF
1750
1751# Some tools Automake needs.
1752
1753ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1754
1755
1756AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1757
1758
1759AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1760
1761
1762AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1763
1764
1765MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1766
1767install_sh=${install_sh-"$am_aux_dir/install-sh"}
1768
1769# Installed binaries are usually stripped using `strip' when the user
1770# run `make install-strip'.  However `strip' might not be the right
1771# tool to use in cross-compilation environments, therefore Automake
1772# will honor the `STRIP' environment variable to overrule this program.
1773if test "$cross_compiling" != no; then
1774  if test -n "$ac_tool_prefix"; then
1775  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1776set dummy ${ac_tool_prefix}strip; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_STRIP+set}" = set; then
1780  echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782  if test -n "$STRIP"; then
1783  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1784else
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788  IFS=$as_save_IFS
1789  test -z "$as_dir" && as_dir=.
1790  for ac_exec_ext in '' $ac_executable_extensions; do
1791  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794    break 2
1795  fi
1796done
1797done
1798
1799fi
1800fi
1801STRIP=$ac_cv_prog_STRIP
1802if test -n "$STRIP"; then
1803  echo "$as_me:$LINENO: result: $STRIP" >&5
1804echo "${ECHO_T}$STRIP" >&6
1805else
1806  echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808fi
1809
1810fi
1811if test -z "$ac_cv_prog_STRIP"; then
1812  ac_ct_STRIP=$STRIP
1813  # Extract the first word of "strip", so it can be a program name with args.
1814set dummy strip; ac_word=$2
1815echo "$as_me:$LINENO: checking for $ac_word" >&5
1816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1818  echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820  if test -n "$ac_ct_STRIP"; then
1821  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1822else
1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824for as_dir in $PATH
1825do
1826  IFS=$as_save_IFS
1827  test -z "$as_dir" && as_dir=.
1828  for ac_exec_ext in '' $ac_executable_extensions; do
1829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830    ac_cv_prog_ac_ct_STRIP="strip"
1831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832    break 2
1833  fi
1834done
1835done
1836
1837  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1838fi
1839fi
1840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1841if test -n "$ac_ct_STRIP"; then
1842  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1843echo "${ECHO_T}$ac_ct_STRIP" >&6
1844else
1845  echo "$as_me:$LINENO: result: no" >&5
1846echo "${ECHO_T}no" >&6
1847fi
1848
1849  STRIP=$ac_ct_STRIP
1850else
1851  STRIP="$ac_cv_prog_STRIP"
1852fi
1853
1854fi
1855INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1856
1857# We need awk for the "check" target.  The system "awk" is bad on
1858# some platforms.
1859# Always define AMTAR for backward compatibility.
1860
1861AMTAR=${AMTAR-"${am_missing_run}tar"}
1862
1863am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1864
1865
1866
1867
1868
1869
1870
1871          ac_config_headers="$ac_config_headers config.h"
1872
1873
1874#########################
1875## Checks for programs ##
1876#########################
1877ac_ext=cc
1878ac_cpp='$CXXCPP $CPPFLAGS'
1879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1882if test -n "$ac_tool_prefix"; then
1883  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1884  do
1885    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_CXX+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$CXX"; then
1893  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911CXX=$ac_cv_prog_CXX
1912if test -n "$CXX"; then
1913  echo "$as_me:$LINENO: result: $CXX" >&5
1914echo "${ECHO_T}$CXX" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920    test -n "$CXX" && break
1921  done
1922fi
1923if test -z "$CXX"; then
1924  ac_ct_CXX=$CXX
1925  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1926do
1927  # Extract the first word of "$ac_prog", so it can be a program name with args.
1928set dummy $ac_prog; ac_word=$2
1929echo "$as_me:$LINENO: checking for $ac_word" >&5
1930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1932  echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934  if test -n "$ac_ct_CXX"; then
1935  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1936else
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940  IFS=$as_save_IFS
1941  test -z "$as_dir" && as_dir=.
1942  for ac_exec_ext in '' $ac_executable_extensions; do
1943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944    ac_cv_prog_ac_ct_CXX="$ac_prog"
1945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946    break 2
1947  fi
1948done
1949done
1950
1951fi
1952fi
1953ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1954if test -n "$ac_ct_CXX"; then
1955  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1956echo "${ECHO_T}$ac_ct_CXX" >&6
1957else
1958  echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6
1960fi
1961
1962  test -n "$ac_ct_CXX" && break
1963done
1964test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1965
1966  CXX=$ac_ct_CXX
1967fi
1968
1969
1970# Provide some information about the compiler.
1971echo "$as_me:$LINENO:" \
1972     "checking for C++ compiler version" >&5
1973ac_compiler=`set X $ac_compile; echo $2`
1974{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1975  (eval $ac_compiler --version </dev/null >&5) 2>&5
1976  ac_status=$?
1977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978  (exit $ac_status); }
1979{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1980  (eval $ac_compiler -v </dev/null >&5) 2>&5
1981  ac_status=$?
1982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983  (exit $ac_status); }
1984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1985  (eval $ac_compiler -V </dev/null >&5) 2>&5
1986  ac_status=$?
1987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988  (exit $ac_status); }
1989
1990cat >conftest.$ac_ext <<_ACEOF
1991/* confdefs.h.  */
1992_ACEOF
1993cat confdefs.h >>conftest.$ac_ext
1994cat >>conftest.$ac_ext <<_ACEOF
1995/* end confdefs.h.  */
1996
1997int
1998main ()
1999{
2000
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005ac_clean_files_save=$ac_clean_files
2006ac_clean_files="$ac_clean_files a.out a.exe b.out"
2007# Try to create an executable without -o first, disregard a.out.
2008# It will help us diagnose broken compilers, and finding out an intuition
2009# of exeext.
2010echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2011echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2012ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2013if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2014  (eval $ac_link_default) 2>&5
2015  ac_status=$?
2016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017  (exit $ac_status); }; then
2018  # Find the output, starting from the most likely.  This scheme is
2019# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2020# resort.
2021
2022# Be careful to initialize this variable, since it used to be cached.
2023# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2024ac_cv_exeext=
2025# b.out is created by i960 compilers.
2026for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2027do
2028  test -f "$ac_file" || continue
2029  case $ac_file in
2030    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2031        ;;
2032    conftest.$ac_ext )
2033        # This is the source file.
2034        ;;
2035    [ab].out )
2036        # We found the default executable, but exeext='' is most
2037        # certainly right.
2038        break;;
2039    *.* )
2040        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2041        # FIXME: I believe we export ac_cv_exeext for Libtool,
2042        # but it would be cool to find out if it's true.  Does anybody
2043        # maintain Libtool? --akim.
2044        export ac_cv_exeext
2045        break;;
2046    * )
2047        break;;
2048  esac
2049done
2050else
2051  echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2055See \`config.log' for more details." >&5
2056echo "$as_me: error: C++ compiler cannot create executables
2057See \`config.log' for more details." >&2;}
2058   { (exit 77); exit 77; }; }
2059fi
2060
2061ac_exeext=$ac_cv_exeext
2062echo "$as_me:$LINENO: result: $ac_file" >&5
2063echo "${ECHO_T}$ac_file" >&6
2064
2065# Check the compiler produces executables we can run.  If not, either
2066# the compiler is broken, or we cross compile.
2067echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2068echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2069# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2070# If not cross compiling, check that we can run a simple program.
2071if test "$cross_compiling" != yes; then
2072  if { ac_try='./$ac_file'
2073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074  (eval $ac_try) 2>&5
2075  ac_status=$?
2076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077  (exit $ac_status); }; }; then
2078    cross_compiling=no
2079  else
2080    if test "$cross_compiling" = maybe; then
2081        cross_compiling=yes
2082    else
2083        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2084If you meant to cross compile, use \`--host'.
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: cannot run C++ compiled programs.
2087If you meant to cross compile, use \`--host'.
2088See \`config.log' for more details." >&2;}
2089   { (exit 1); exit 1; }; }
2090    fi
2091  fi
2092fi
2093echo "$as_me:$LINENO: result: yes" >&5
2094echo "${ECHO_T}yes" >&6
2095
2096rm -f a.out a.exe conftest$ac_cv_exeext b.out
2097ac_clean_files=$ac_clean_files_save
2098# Check the compiler produces executables we can run.  If not, either
2099# the compiler is broken, or we cross compile.
2100echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2101echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2102echo "$as_me:$LINENO: result: $cross_compiling" >&5
2103echo "${ECHO_T}$cross_compiling" >&6
2104
2105echo "$as_me:$LINENO: checking for suffix of executables" >&5
2106echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2108  (eval $ac_link) 2>&5
2109  ac_status=$?
2110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111  (exit $ac_status); }; then
2112  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2113# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2114# work properly (i.e., refer to `conftest.exe'), while it won't with
2115# `rm'.
2116for ac_file in conftest.exe conftest conftest.*; do
2117  test -f "$ac_file" || continue
2118  case $ac_file in
2119    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2120    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121          export ac_cv_exeext
2122          break;;
2123    * ) break;;
2124  esac
2125done
2126else
2127  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2128See \`config.log' for more details." >&5
2129echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2130See \`config.log' for more details." >&2;}
2131   { (exit 1); exit 1; }; }
2132fi
2133
2134rm -f conftest$ac_cv_exeext
2135echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2136echo "${ECHO_T}$ac_cv_exeext" >&6
2137
2138rm -f conftest.$ac_ext
2139EXEEXT=$ac_cv_exeext
2140ac_exeext=$EXEEXT
2141echo "$as_me:$LINENO: checking for suffix of object files" >&5
2142echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2143if test "${ac_cv_objext+set}" = set; then
2144  echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146  cat >conftest.$ac_ext <<_ACEOF
2147/* confdefs.h.  */
2148_ACEOF
2149cat confdefs.h >>conftest.$ac_ext
2150cat >>conftest.$ac_ext <<_ACEOF
2151/* end confdefs.h.  */
2152
2153int
2154main ()
2155{
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161rm -f conftest.o conftest.obj
2162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163  (eval $ac_compile) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }; then
2167  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2168  case $ac_file in
2169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2170    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2171       break;;
2172  esac
2173done
2174else
2175  echo "$as_me: failed program was:" >&5
2176sed 's/^/| /' conftest.$ac_ext >&5
2177
2178{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2179See \`config.log' for more details." >&5
2180echo "$as_me: error: cannot compute suffix of object files: cannot compile
2181See \`config.log' for more details." >&2;}
2182   { (exit 1); exit 1; }; }
2183fi
2184
2185rm -f conftest.$ac_cv_objext conftest.$ac_ext
2186fi
2187echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2188echo "${ECHO_T}$ac_cv_objext" >&6
2189OBJEXT=$ac_cv_objext
2190ac_objext=$OBJEXT
2191echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2192echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2193if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2194  echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196  cat >conftest.$ac_ext <<_ACEOF
2197/* confdefs.h.  */
2198_ACEOF
2199cat confdefs.h >>conftest.$ac_ext
2200cat >>conftest.$ac_ext <<_ACEOF
2201/* end confdefs.h.  */
2202
2203int
2204main ()
2205{
2206#ifndef __GNUC__
2207       choke me
2208#endif
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214rm -f conftest.$ac_objext
2215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216  (eval $ac_compile) 2>conftest.er1
2217  ac_status=$?
2218  grep -v '^ *+' conftest.er1 >conftest.err
2219  rm -f conftest.er1
2220  cat conftest.err >&5
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); } &&
2223         { ac_try='test -z "$ac_cxx_werror_flag"
2224                         || test ! -s conftest.err'
2225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226  (eval $ac_try) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; } &&
2230         { ac_try='test -s conftest.$ac_objext'
2231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232  (eval $ac_try) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; }; then
2236  ac_compiler_gnu=yes
2237else
2238  echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241ac_compiler_gnu=no
2242fi
2243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2244ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2245
2246fi
2247echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2248echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2249GXX=`test $ac_compiler_gnu = yes && echo yes`
2250ac_test_CXXFLAGS=${CXXFLAGS+set}
2251ac_save_CXXFLAGS=$CXXFLAGS
2252CXXFLAGS="-g"
2253echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2254echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2255if test "${ac_cv_prog_cxx_g+set}" = set; then
2256  echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258  cat >conftest.$ac_ext <<_ACEOF
2259/* confdefs.h.  */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h.  */
2264
2265int
2266main ()
2267{
2268
2269  ;
2270  return 0;
2271}
2272_ACEOF
2273rm -f conftest.$ac_objext
2274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275  (eval $ac_compile) 2>conftest.er1
2276  ac_status=$?
2277  grep -v '^ *+' conftest.er1 >conftest.err
2278  rm -f conftest.er1
2279  cat conftest.err >&5
2280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281  (exit $ac_status); } &&
2282         { ac_try='test -z "$ac_cxx_werror_flag"
2283                         || test ! -s conftest.err'
2284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285  (eval $ac_try) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }; } &&
2289         { ac_try='test -s conftest.$ac_objext'
2290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291  (eval $ac_try) 2>&5
2292  ac_status=$?
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); }; }; then
2295  ac_cv_prog_cxx_g=yes
2296else
2297  echo "$as_me: failed program was:" >&5
2298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300ac_cv_prog_cxx_g=no
2301fi
2302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2303fi
2304echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2305echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2306if test "$ac_test_CXXFLAGS" = set; then
2307  CXXFLAGS=$ac_save_CXXFLAGS
2308elif test $ac_cv_prog_cxx_g = yes; then
2309  if test "$GXX" = yes; then
2310    CXXFLAGS="-g -O2"
2311  else
2312    CXXFLAGS="-g"
2313  fi
2314else
2315  if test "$GXX" = yes; then
2316    CXXFLAGS="-O2"
2317  else
2318    CXXFLAGS=
2319  fi
2320fi
2321for ac_declaration in \
2322   '' \
2323   'extern "C" void std::exit (int) throw (); using std::exit;' \
2324   'extern "C" void std::exit (int); using std::exit;' \
2325   'extern "C" void exit (int) throw ();' \
2326   'extern "C" void exit (int);' \
2327   'void exit (int);'
2328do
2329  cat >conftest.$ac_ext <<_ACEOF
2330/* confdefs.h.  */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h.  */
2335$ac_declaration
2336#include <stdlib.h>
2337int
2338main ()
2339{
2340exit (42);
2341  ;
2342  return 0;
2343}
2344_ACEOF
2345rm -f conftest.$ac_objext
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347  (eval $ac_compile) 2>conftest.er1
2348  ac_status=$?
2349  grep -v '^ *+' conftest.er1 >conftest.err
2350  rm -f conftest.er1
2351  cat conftest.err >&5
2352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353  (exit $ac_status); } &&
2354         { ac_try='test -z "$ac_cxx_werror_flag"
2355                         || test ! -s conftest.err'
2356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357  (eval $ac_try) 2>&5
2358  ac_status=$?
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); }; } &&
2361         { ac_try='test -s conftest.$ac_objext'
2362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363  (eval $ac_try) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; }; then
2367  :
2368else
2369  echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372continue
2373fi
2374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375  cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h.  */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h.  */
2381$ac_declaration
2382int
2383main ()
2384{
2385exit (42);
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext
2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392  (eval $ac_compile) 2>conftest.er1
2393  ac_status=$?
2394  grep -v '^ *+' conftest.er1 >conftest.err
2395  rm -f conftest.er1
2396  cat conftest.err >&5
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } &&
2399         { ac_try='test -z "$ac_cxx_werror_flag"
2400                         || test ! -s conftest.err'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; } &&
2406         { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  break
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419done
2420rm -f conftest*
2421if test -n "$ac_declaration"; then
2422  echo '#ifdef __cplusplus' >>confdefs.h
2423  echo $ac_declaration      >>confdefs.h
2424  echo '#endif'             >>confdefs.h
2425fi
2426
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432DEPDIR="${am__leading_dot}deps"
2433
2434          ac_config_commands="$ac_config_commands depfiles"
2435
2436
2437am_make=${MAKE-make}
2438cat > confinc << 'END'
2439am__doit:
2440        @echo done
2441.PHONY: am__doit
2442END
2443# If we don't find an include directive, just comment out the code.
2444echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2445echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2446am__include="#"
2447am__quote=
2448_am_result=none
2449# First try GNU make style include.
2450echo "include confinc" > confmf
2451# We grep out `Entering directory' and `Leaving directory'
2452# messages which can occur if `w' ends up in MAKEFLAGS.
2453# In particular we don't look at `^make:' because GNU make might
2454# be invoked under some other name (usually "gmake"), in which
2455# case it prints its new name instead of `make'.
2456if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2457   am__include=include
2458   am__quote=
2459   _am_result=GNU
2460fi
2461# Now try BSD make style include.
2462if test "$am__include" = "#"; then
2463   echo '.include "confinc"' > confmf
2464   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2465      am__include=.include
2466      am__quote="\""
2467      _am_result=BSD
2468   fi
2469fi
2470
2471
2472echo "$as_me:$LINENO: result: $_am_result" >&5
2473echo "${ECHO_T}$_am_result" >&6
2474rm -f confinc confmf
2475
2476# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2477if test "${enable_dependency_tracking+set}" = set; then
2478  enableval="$enable_dependency_tracking"
2479
2480fi;
2481if test "x$enable_dependency_tracking" != xno; then
2482  am_depcomp="$ac_aux_dir/depcomp"
2483  AMDEPBACKSLASH='\'
2484fi
2485
2486
2487if test "x$enable_dependency_tracking" != xno; then
2488  AMDEP_TRUE=
2489  AMDEP_FALSE='#'
2490else
2491  AMDEP_TRUE='#'
2492  AMDEP_FALSE=
2493fi
2494
2495
2496
2497
2498depcc="$CXX"  am_compiler_list=
2499
2500echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2501echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2502if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2503  echo $ECHO_N "(cached) $ECHO_C" >&6
2504else
2505  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2506  # We make a subdir and do the tests there.  Otherwise we can end up
2507  # making bogus files that we don't know about and never remove.  For
2508  # instance it was reported that on HP-UX the gcc test will end up
2509  # making a dummy file named `D' -- because `-MD' means `put the output
2510  # in D'.
2511  mkdir conftest.dir
2512  # Copy depcomp to subdir because otherwise we won't find it if we're
2513  # using a relative directory.
2514  cp "$am_depcomp" conftest.dir
2515  cd conftest.dir
2516  # We will build objects and dependencies in a subdirectory because
2517  # it helps to detect inapplicable dependency modes.  For instance
2518  # both Tru64's cc and ICC support -MD to output dependencies as a
2519  # side effect of compilation, but ICC will put the dependencies in
2520  # the current directory while Tru64 will put them in the object
2521  # directory.
2522  mkdir sub
2523
2524  am_cv_CXX_dependencies_compiler_type=none
2525  if test "$am_compiler_list" = ""; then
2526     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2527  fi
2528  for depmode in $am_compiler_list; do
2529    # Setup a source with many dependencies, because some compilers
2530    # like to wrap large dependency lists on column 80 (with \), and
2531    # we should not choose a depcomp mode which is confused by this.
2532    #
2533    # We need to recreate these files for each test, as the compiler may
2534    # overwrite some of them when testing with obscure command lines.
2535    # This happens at least with the AIX C compiler.
2536    : > sub/conftest.c
2537    for i in 1 2 3 4 5 6; do
2538      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2539      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2540      # Solaris 8's {/usr,}/bin/sh.
2541      touch sub/conftst$i.h
2542    done
2543    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2544
2545    case $depmode in
2546    nosideeffect)
2547      # after this tag, mechanisms are not by side-effect, so they'll
2548      # only be used when explicitly requested
2549      if test "x$enable_dependency_tracking" = xyes; then
2550        continue
2551      else
2552        break
2553      fi
2554      ;;
2555    none) break ;;
2556    esac
2557    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2558    # mode.  It turns out that the SunPro C++ compiler does not properly
2559    # handle `-M -o', and we need to detect this.
2560    if depmode=$depmode \
2561       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2562       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2563       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2564         >/dev/null 2>conftest.err &&
2565       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2566       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2567       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2568      # icc doesn't choke on unknown options, it will just issue warnings
2569      # or remarks (even with -Werror).  So we grep stderr for any message
2570      # that says an option was ignored or not supported.
2571      # When given -MP, icc 7.0 and 7.1 complain thusly:
2572      #   icc: Command line warning: ignoring option '-M'; no argument required
2573      # The diagnosis changed in icc 8.0:
2574      #   icc: Command line remark: option '-MP' not supported
2575      if (grep 'ignoring option' conftest.err ||
2576          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2577        am_cv_CXX_dependencies_compiler_type=$depmode
2578        break
2579      fi
2580    fi
2581  done
2582
2583  cd ..
2584  rm -rf conftest.dir
2585else
2586  am_cv_CXX_dependencies_compiler_type=none
2587fi
2588
2589fi
2590echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2591echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2592CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2593
2594
2595
2596if
2597  test "x$enable_dependency_tracking" != xno \
2598  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2599  am__fastdepCXX_TRUE=
2600  am__fastdepCXX_FALSE='#'
2601else
2602  am__fastdepCXX_TRUE='#'
2603  am__fastdepCXX_FALSE=
2604fi
2605
2606
2607if test -n "$ac_tool_prefix"; then
2608  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2609set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
2613  echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615  if test -n "$RANLIB"; then
2616  ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
2626    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627    break 2
2628  fi
2629done
2630done
2631
2632fi
2633fi
2634RANLIB=$ac_cv_prog_RANLIB
2635if test -n "$RANLIB"; then
2636  echo "$as_me:$LINENO: result: $RANLIB" >&5
2637echo "${ECHO_T}$RANLIB" >&6
2638else
2639  echo "$as_me:$LINENO: result: no" >&5
2640echo "${ECHO_T}no" >&6
2641fi
2642
2643fi
2644if test -z "$ac_cv_prog_RANLIB"; then
2645  ac_ct_RANLIB=$RANLIB
2646  # Extract the first word of "ranlib", so it can be a program name with args.
2647set dummy ranlib; ac_word=$2
2648echo "$as_me:$LINENO: checking for $ac_word" >&5
2649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2651  echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653  if test -n "$ac_ct_RANLIB"; then
2654  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659  IFS=$as_save_IFS
2660  test -z "$as_dir" && as_dir=.
2661  for ac_exec_ext in '' $ac_executable_extensions; do
2662  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663    ac_cv_prog_ac_ct_RANLIB="ranlib"
2664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665    break 2
2666  fi
2667done
2668done
2669
2670  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2671fi
2672fi
2673ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2674if test -n "$ac_ct_RANLIB"; then
2675  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2676echo "${ECHO_T}$ac_ct_RANLIB" >&6
2677else
2678  echo "$as_me:$LINENO: result: no" >&5
2679echo "${ECHO_T}no" >&6
2680fi
2681
2682  RANLIB=$ac_ct_RANLIB
2683else
2684  RANLIB="$ac_cv_prog_RANLIB"
2685fi
2686
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692if test -n "$ac_tool_prefix"; then
2693  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694set dummy ${ac_tool_prefix}gcc; ac_word=$2
2695echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697if test "${ac_cv_prog_CC+set}" = set; then
2698  echo $ECHO_N "(cached) $ECHO_C" >&6
2699else
2700  if test -n "$CC"; then
2701  ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706  IFS=$as_save_IFS
2707  test -z "$as_dir" && as_dir=.
2708  for ac_exec_ext in '' $ac_executable_extensions; do
2709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712    break 2
2713  fi
2714done
2715done
2716
2717fi
2718fi
2719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
2721  echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6
2723else
2724  echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6
2726fi
2727
2728fi
2729if test -z "$ac_cv_prog_CC"; then
2730  ac_ct_CC=$CC
2731  # Extract the first word of "gcc", so it can be a program name with args.
2732set dummy gcc; ac_word=$2
2733echo "$as_me:$LINENO: checking for $ac_word" >&5
2734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736  echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738  if test -n "$ac_ct_CC"; then
2739  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744  IFS=$as_save_IFS
2745  test -z "$as_dir" && as_dir=.
2746  for ac_exec_ext in '' $ac_executable_extensions; do
2747  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748    ac_cv_prog_ac_ct_CC="gcc"
2749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750    break 2
2751  fi
2752done
2753done
2754
2755fi
2756fi
2757ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758if test -n "$ac_ct_CC"; then
2759  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760echo "${ECHO_T}$ac_ct_CC" >&6
2761else
2762  echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6
2764fi
2765
2766  CC=$ac_ct_CC
2767else
2768  CC="$ac_cv_prog_CC"
2769fi
2770
2771if test -z "$CC"; then
2772  if test -n "$ac_tool_prefix"; then
2773  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}cc; ac_word=$2
2775echo "$as_me:$LINENO: checking for $ac_word" >&5
2776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777if test "${ac_cv_prog_CC+set}" = set; then
2778  echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780  if test -n "$CC"; then
2781  ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786  IFS=$as_save_IFS
2787  test -z "$as_dir" && as_dir=.
2788  for ac_exec_ext in '' $ac_executable_extensions; do
2789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790    ac_cv_prog_CC="${ac_tool_prefix}cc"
2791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795done
2796
2797fi
2798fi
2799CC=$ac_cv_prog_CC
2800if test -n "$CC"; then
2801  echo "$as_me:$LINENO: result: $CC" >&5
2802echo "${ECHO_T}$CC" >&6
2803else
2804  echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
2806fi
2807
2808fi
2809if test -z "$ac_cv_prog_CC"; then
2810  ac_ct_CC=$CC
2811  # Extract the first word of "cc", so it can be a program name with args.
2812set dummy cc; ac_word=$2
2813echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  if test -n "$ac_ct_CC"; then
2819  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826  for ac_exec_ext in '' $ac_executable_extensions; do
2827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    ac_cv_prog_ac_ct_CC="cc"
2829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833done
2834
2835fi
2836fi
2837ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838if test -n "$ac_ct_CC"; then
2839  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2840echo "${ECHO_T}$ac_ct_CC" >&6
2841else
2842  echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6
2844fi
2845
2846  CC=$ac_ct_CC
2847else
2848  CC="$ac_cv_prog_CC"
2849fi
2850
2851fi
2852if test -z "$CC"; then
2853  # Extract the first word of "cc", so it can be a program name with args.
2854set dummy cc; ac_word=$2
2855echo "$as_me:$LINENO: checking for $ac_word" >&5
2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857if test "${ac_cv_prog_CC+set}" = set; then
2858  echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860  if test -n "$CC"; then
2861  ac_cv_prog_CC="$CC" # Let the user override the test.
2862else
2863  ac_prog_rejected=no
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867  IFS=$as_save_IFS
2868  test -z "$as_dir" && as_dir=.
2869  for ac_exec_ext in '' $ac_executable_extensions; do
2870  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2872       ac_prog_rejected=yes
2873       continue
2874     fi
2875    ac_cv_prog_CC="cc"
2876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880done
2881
2882if test $ac_prog_rejected = yes; then
2883  # We found a bogon in the path, so make sure we never use it.
2884  set dummy $ac_cv_prog_CC
2885  shift
2886  if test $# != 0; then
2887    # We chose a different compiler from the bogus one.
2888    # However, it has the same basename, so the bogon will be chosen
2889    # first if we set CC to just the basename; use the full file name.
2890    shift
2891    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892  fi
2893fi
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  echo "$as_me:$LINENO: result: $CC" >&5
2899echo "${ECHO_T}$CC" >&6
2900else
2901  echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905fi
2906if test -z "$CC"; then
2907  if test -n "$ac_tool_prefix"; then
2908  for ac_prog in cl
2909  do
2910    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912echo "$as_me:$LINENO: checking for $ac_word" >&5
2913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914if test "${ac_cv_prog_CC+set}" = set; then
2915  echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917  if test -n "$CC"; then
2918  ac_cv_prog_CC="$CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  test -z "$as_dir" && as_dir=.
2925  for ac_exec_ext in '' $ac_executable_extensions; do
2926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929    break 2
2930  fi
2931done
2932done
2933
2934fi
2935fi
2936CC=$ac_cv_prog_CC
2937if test -n "$CC"; then
2938  echo "$as_me:$LINENO: result: $CC" >&5
2939echo "${ECHO_T}$CC" >&6
2940else
2941  echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
2943fi
2944
2945    test -n "$CC" && break
2946  done
2947fi
2948if test -z "$CC"; then
2949  ac_ct_CC=$CC
2950  for ac_prog in cl
2951do
2952  # Extract the first word of "$ac_prog", so it can be a program name with args.
2953set dummy $ac_prog; ac_word=$2
2954echo "$as_me:$LINENO: checking for $ac_word" >&5
2955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957  echo $ECHO_N "(cached) $ECHO_C" >&6
2958else
2959  if test -n "$ac_ct_CC"; then
2960  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967  for ac_exec_ext in '' $ac_executable_extensions; do
2968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969    ac_cv_prog_ac_ct_CC="$ac_prog"
2970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974done
2975
2976fi
2977fi
2978ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979if test -n "$ac_ct_CC"; then
2980  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2981echo "${ECHO_T}$ac_ct_CC" >&6
2982else
2983  echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
2985fi
2986
2987  test -n "$ac_ct_CC" && break
2988done
2989
2990  CC=$ac_ct_CC
2991fi
2992
2993fi
2994
2995
2996test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2997See \`config.log' for more details." >&5
2998echo "$as_me: error: no acceptable C compiler found in \$PATH
2999See \`config.log' for more details." >&2;}
3000   { (exit 1); exit 1; }; }
3001
3002# Provide some information about the compiler.
3003echo "$as_me:$LINENO:" \
3004     "checking for C compiler version" >&5
3005ac_compiler=`set X $ac_compile; echo $2`
3006{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3007  (eval $ac_compiler --version </dev/null >&5) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }
3011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3012  (eval $ac_compiler -v </dev/null >&5) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }
3016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3017  (eval $ac_compiler -V </dev/null >&5) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }
3021
3022echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3023echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3024if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h.  */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h.  */
3033
3034int
3035main ()
3036{
3037#ifndef __GNUC__
3038       choke me
3039#endif
3040
3041  ;
3042  return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext
3046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047  (eval $ac_compile) 2>conftest.er1
3048  ac_status=$?
3049  grep -v '^ *+' conftest.er1 >conftest.err
3050  rm -f conftest.er1
3051  cat conftest.err >&5
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); } &&
3054         { ac_try='test -z "$ac_c_werror_flag"
3055                         || test ! -s conftest.err'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; } &&
3061         { ac_try='test -s conftest.$ac_objext'
3062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063  (eval $ac_try) 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }; }; then
3067  ac_compiler_gnu=yes
3068else
3069  echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072ac_compiler_gnu=no
3073fi
3074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3075ac_cv_c_compiler_gnu=$ac_compiler_gnu
3076
3077fi
3078echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3079echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3080GCC=`test $ac_compiler_gnu = yes && echo yes`
3081ac_test_CFLAGS=${CFLAGS+set}
3082ac_save_CFLAGS=$CFLAGS
3083CFLAGS="-g"
3084echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3086if test "${ac_cv_prog_cc_g+set}" = set; then
3087  echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089  cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106  (eval $ac_compile) 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } &&
3113         { ac_try='test -z "$ac_c_werror_flag"
3114                         || test ! -s conftest.err'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; } &&
3120         { ac_try='test -s conftest.$ac_objext'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; }; then
3126  ac_cv_prog_cc_g=yes
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131ac_cv_prog_cc_g=no
3132fi
3133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3134fi
3135echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3136echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3137if test "$ac_test_CFLAGS" = set; then
3138  CFLAGS=$ac_save_CFLAGS
3139elif test $ac_cv_prog_cc_g = yes; then
3140  if test "$GCC" = yes; then
3141    CFLAGS="-g -O2"
3142  else
3143    CFLAGS="-g"
3144  fi
3145else
3146  if test "$GCC" = yes; then
3147    CFLAGS="-O2"
3148  else
3149    CFLAGS=
3150  fi
3151fi
3152echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3153echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3154if test "${ac_cv_prog_cc_stdc+set}" = set; then
3155  echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157  ac_cv_prog_cc_stdc=no
3158ac_save_CC=$CC
3159cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h.  */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h.  */
3165#include <stdarg.h>
3166#include <stdio.h>
3167#include <sys/types.h>
3168#include <sys/stat.h>
3169/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3170struct buf { int x; };
3171FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172static char *e (p, i)
3173     char **p;
3174     int i;
3175{
3176  return p[i];
3177}
3178static char *f (char * (*g) (char **, int), char **p, ...)
3179{
3180  char *s;
3181  va_list v;
3182  va_start (v,p);
3183  s = g (p, va_arg (v,int));
3184  va_end (v);
3185  return s;
3186}
3187
3188/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3189   function prototypes and stuff, but not '\xHH' hex character constants.
3190   These don't provoke an error unfortunately, instead are silently treated
3191   as 'x'.  The following induces an error, until -std1 is added to get
3192   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3193   array size at least.  It's necessary to write '\x00'==0 to get something
3194   that's true only with -std1.  */
3195int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196
3197int test (int i, double x);
3198struct s1 {int (*f) (int a);};
3199struct s2 {int (*f) (double a);};
3200int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3201int argc;
3202char **argv;
3203int
3204main ()
3205{
3206return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3207  ;
3208  return 0;
3209}
3210_ACEOF
3211# Don't try gcc -ansi; that turns off useful extensions and
3212# breaks some systems' header files.
3213# AIX                   -qlanglvl=ansi
3214# Ultrix and OSF/1      -std1
3215# HP-UX 10.20 and later -Ae
3216# HP-UX older versions  -Aa -D_HPUX_SOURCE
3217# SVR4                  -Xc -D__EXTENSIONS__
3218for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3219do
3220  CC="$ac_save_CC $ac_arg"
3221  rm -f conftest.$ac_objext
3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223  (eval $ac_compile) 2>conftest.er1
3224  ac_status=$?
3225  grep -v '^ *+' conftest.er1 >conftest.err
3226  rm -f conftest.er1
3227  cat conftest.err >&5
3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); } &&
3230         { ac_try='test -z "$ac_c_werror_flag"
3231                         || test ! -s conftest.err'
3232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233  (eval $ac_try) 2>&5
3234  ac_status=$?
3235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236  (exit $ac_status); }; } &&
3237         { ac_try='test -s conftest.$ac_objext'
3238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239  (eval $ac_try) 2>&5
3240  ac_status=$?
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); }; }; then
3243  ac_cv_prog_cc_stdc=$ac_arg
3244break
3245else
3246  echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249fi
3250rm -f conftest.err conftest.$ac_objext
3251done
3252rm -f conftest.$ac_ext conftest.$ac_objext
3253CC=$ac_save_CC
3254
3255fi
3256
3257case "x$ac_cv_prog_cc_stdc" in
3258  x|xno)
3259    echo "$as_me:$LINENO: result: none needed" >&5
3260echo "${ECHO_T}none needed" >&6 ;;
3261  *)
3262    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3263echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3264    CC="$CC $ac_cv_prog_cc_stdc" ;;
3265esac
3266
3267# Some people use a C++ compiler to compile C.  Since we use `exit',
3268# in C++ we need to declare it.  In case someone uses the same compiler
3269# for both compiling C and C++ we need to have the C++ compiler decide
3270# the declaration of exit, since it's the most demanding environment.
3271cat >conftest.$ac_ext <<_ACEOF
3272#ifndef __cplusplus
3273  choke me
3274#endif
3275_ACEOF
3276rm -f conftest.$ac_objext
3277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278  (eval $ac_compile) 2>conftest.er1
3279  ac_status=$?
3280  grep -v '^ *+' conftest.er1 >conftest.err
3281  rm -f conftest.er1
3282  cat conftest.err >&5
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } &&
3285         { ac_try='test -z "$ac_c_werror_flag"
3286                         || test ! -s conftest.err'
3287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288  (eval $ac_try) 2>&5
3289  ac_status=$?
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }; } &&
3292         { ac_try='test -s conftest.$ac_objext'
3293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294  (eval $ac_try) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); }; }; then
3298  for ac_declaration in \
3299   '' \
3300   'extern "C" void std::exit (int) throw (); using std::exit;' \
3301   'extern "C" void std::exit (int); using std::exit;' \
3302   'extern "C" void exit (int) throw ();' \
3303   'extern "C" void exit (int);' \
3304   'void exit (int);'
3305do
3306  cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h.  */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h.  */
3312$ac_declaration
3313#include <stdlib.h>
3314int
3315main ()
3316{
3317exit (42);
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext
3323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324  (eval $ac_compile) 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } &&
3331         { ac_try='test -z "$ac_c_werror_flag"
3332                         || test ! -s conftest.err'
3333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334  (eval $ac_try) 2>&5
3335  ac_status=$?
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); }; } &&
3338         { ac_try='test -s conftest.$ac_objext'
3339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340  (eval $ac_try) 2>&5
3341  ac_status=$?
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); }; }; then
3344  :
3345else
3346  echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349continue
3350fi
3351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352  cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h.  */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h.  */
3358$ac_declaration
3359int
3360main ()
3361{
3362exit (42);
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369  (eval $ac_compile) 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } &&
3376         { ac_try='test -z "$ac_c_werror_flag"
3377                         || test ! -s conftest.err'
3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379  (eval $ac_try) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }; } &&
3383         { ac_try='test -s conftest.$ac_objext'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; }; then
3389  break
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396done
3397rm -f conftest*
3398if test -n "$ac_declaration"; then
3399  echo '#ifdef __cplusplus' >>confdefs.h
3400  echo $ac_declaration      >>confdefs.h
3401  echo '#endif'             >>confdefs.h
3402fi
3403
3404else
3405  echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408fi
3409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416depcc="$CC"   am_compiler_list=
3417
3418echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3419echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3420if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3421  echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3424  # We make a subdir and do the tests there.  Otherwise we can end up
3425  # making bogus files that we don't know about and never remove.  For
3426  # instance it was reported that on HP-UX the gcc test will end up
3427  # making a dummy file named `D' -- because `-MD' means `put the output
3428  # in D'.
3429  mkdir conftest.dir
3430  # Copy depcomp to subdir because otherwise we won't find it if we're
3431  # using a relative directory.
3432  cp "$am_depcomp" conftest.dir
3433  cd conftest.dir
3434  # We will build objects and dependencies in a subdirectory because
3435  # it helps to detect inapplicable dependency modes.  For instance
3436  # both Tru64's cc and ICC support -MD to output dependencies as a
3437  # side effect of compilation, but ICC will put the dependencies in
3438  # the current directory while Tru64 will put them in the object
3439  # directory.
3440  mkdir sub
3441
3442  am_cv_CC_dependencies_compiler_type=none
3443  if test "$am_compiler_list" = ""; then
3444     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3445  fi
3446  for depmode in $am_compiler_list; do
3447    # Setup a source with many dependencies, because some compilers
3448    # like to wrap large dependency lists on column 80 (with \), and
3449    # we should not choose a depcomp mode which is confused by this.
3450    #
3451    # We need to recreate these files for each test, as the compiler may
3452    # overwrite some of them when testing with obscure command lines.
3453    # This happens at least with the AIX C compiler.
3454    : > sub/conftest.c
3455    for i in 1 2 3 4 5 6; do
3456      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3457      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3458      # Solaris 8's {/usr,}/bin/sh.
3459      touch sub/conftst$i.h
3460    done
3461    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3462
3463    case $depmode in
3464    nosideeffect)
3465      # after this tag, mechanisms are not by side-effect, so they'll
3466      # only be used when explicitly requested
3467      if test "x$enable_dependency_tracking" = xyes; then
3468        continue
3469      else
3470        break
3471      fi
3472      ;;
3473    none) break ;;
3474    esac
3475    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3476    # mode.  It turns out that the SunPro C++ compiler does not properly
3477    # handle `-M -o', and we need to detect this.
3478    if depmode=$depmode \
3479       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3480       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3481       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3482         >/dev/null 2>conftest.err &&
3483       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3484       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3485       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3486      # icc doesn't choke on unknown options, it will just issue warnings
3487      # or remarks (even with -Werror).  So we grep stderr for any message
3488      # that says an option was ignored or not supported.
3489      # When given -MP, icc 7.0 and 7.1 complain thusly:
3490      #   icc: Command line warning: ignoring option '-M'; no argument required
3491      # The diagnosis changed in icc 8.0:
3492      #   icc: Command line remark: option '-MP' not supported
3493      if (grep 'ignoring option' conftest.err ||
3494          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3495        am_cv_CC_dependencies_compiler_type=$depmode
3496        break
3497      fi
3498    fi
3499  done
3500
3501  cd ..
3502  rm -rf conftest.dir
3503else
3504  am_cv_CC_dependencies_compiler_type=none
3505fi
3506
3507fi
3508echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3509echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3510CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3511
3512
3513
3514if
3515  test "x$enable_dependency_tracking" != xno \
3516  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3517  am__fastdepCC_TRUE=
3518  am__fastdepCC_FALSE='#'
3519else
3520  am__fastdepCC_TRUE='#'
3521  am__fastdepCC_FALSE=
3522fi
3523
3524
3525
3526ac_ext=c
3527ac_cpp='$CPP $CPPFLAGS'
3528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3532echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3533# On Suns, sometimes $CPP names a directory.
3534if test -n "$CPP" && test -d "$CPP"; then
3535  CPP=
3536fi
3537if test -z "$CPP"; then
3538  if test "${ac_cv_prog_CPP+set}" = set; then
3539  echo $ECHO_N "(cached) $ECHO_C" >&6
3540else
3541      # Double quotes because CPP needs to be expanded
3542    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3543    do
3544      ac_preproc_ok=false
3545for ac_c_preproc_warn_flag in '' yes
3546do
3547  # Use a header file that comes with gcc, so configuring glibc
3548  # with a fresh cross-compiler works.
3549  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550  # <limits.h> exists even on freestanding compilers.
3551  # On the NeXT, cc -E runs the code through the compiler's parser,
3552  # not just through cpp. "Syntax error" is here to catch this case.
3553  cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h.  */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h.  */
3559#ifdef __STDC__
3560# include <limits.h>
3561#else
3562# include <assert.h>
3563#endif
3564                     Syntax error
3565_ACEOF
3566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3567  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } >/dev/null; then
3574  if test -s conftest.err; then
3575    ac_cpp_err=$ac_c_preproc_warn_flag
3576    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3577  else
3578    ac_cpp_err=
3579  fi
3580else
3581  ac_cpp_err=yes
3582fi
3583if test -z "$ac_cpp_err"; then
3584  :
3585else
3586  echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589  # Broken: fails on valid input.
3590continue
3591fi
3592rm -f conftest.err conftest.$ac_ext
3593
3594  # OK, works on sane cases.  Now check whether non-existent headers
3595  # can be detected and how.
3596  cat >conftest.$ac_ext <<_ACEOF
3597/* confdefs.h.  */
3598_ACEOF
3599cat confdefs.h >>conftest.$ac_ext
3600cat >>conftest.$ac_ext <<_ACEOF
3601/* end confdefs.h.  */
3602#include <ac_nonexistent.h>
3603_ACEOF
3604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3605  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3606  ac_status=$?
3607  grep -v '^ *+' conftest.er1 >conftest.err
3608  rm -f conftest.er1
3609  cat conftest.err >&5
3610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); } >/dev/null; then
3612  if test -s conftest.err; then
3613    ac_cpp_err=$ac_c_preproc_warn_flag
3614    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3615  else
3616    ac_cpp_err=
3617  fi
3618else
3619  ac_cpp_err=yes
3620fi
3621if test -z "$ac_cpp_err"; then
3622  # Broken: success on invalid input.
3623continue
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628  # Passes both tests.
3629ac_preproc_ok=:
3630break
3631fi
3632rm -f conftest.err conftest.$ac_ext
3633
3634done
3635# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636rm -f conftest.err conftest.$ac_ext
3637if $ac_preproc_ok; then
3638  break
3639fi
3640
3641    done
3642    ac_cv_prog_CPP=$CPP
3643
3644fi
3645  CPP=$ac_cv_prog_CPP
3646else
3647  ac_cv_prog_CPP=$CPP
3648fi
3649echo "$as_me:$LINENO: result: $CPP" >&5
3650echo "${ECHO_T}$CPP" >&6
3651ac_preproc_ok=false
3652for ac_c_preproc_warn_flag in '' yes
3653do
3654  # Use a header file that comes with gcc, so configuring glibc
3655  # with a fresh cross-compiler works.
3656  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3657  # <limits.h> exists even on freestanding compilers.
3658  # On the NeXT, cc -E runs the code through the compiler's parser,
3659  # not just through cpp. "Syntax error" is here to catch this case.
3660  cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h.  */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h.  */
3666#ifdef __STDC__
3667# include <limits.h>
3668#else
3669# include <assert.h>
3670#endif
3671                     Syntax error
3672_ACEOF
3673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3674  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3675  ac_status=$?
3676  grep -v '^ *+' conftest.er1 >conftest.err
3677  rm -f conftest.er1
3678  cat conftest.err >&5
3679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680  (exit $ac_status); } >/dev/null; then
3681  if test -s conftest.err; then
3682    ac_cpp_err=$ac_c_preproc_warn_flag
3683    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3684  else
3685    ac_cpp_err=
3686  fi
3687else
3688  ac_cpp_err=yes
3689fi
3690if test -z "$ac_cpp_err"; then
3691  :
3692else
3693  echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696  # Broken: fails on valid input.
3697continue
3698fi
3699rm -f conftest.err conftest.$ac_ext
3700
3701  # OK, works on sane cases.  Now check whether non-existent headers
3702  # can be detected and how.
3703  cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h.  */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h.  */
3709#include <ac_nonexistent.h>
3710_ACEOF
3711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3712  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3713  ac_status=$?
3714  grep -v '^ *+' conftest.er1 >conftest.err
3715  rm -f conftest.er1
3716  cat conftest.err >&5
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); } >/dev/null; then
3719  if test -s conftest.err; then
3720    ac_cpp_err=$ac_c_preproc_warn_flag
3721    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3722  else
3723    ac_cpp_err=
3724  fi
3725else
3726  ac_cpp_err=yes
3727fi
3728if test -z "$ac_cpp_err"; then
3729  # Broken: success on invalid input.
3730continue
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735  # Passes both tests.
3736ac_preproc_ok=:
3737break
3738fi
3739rm -f conftest.err conftest.$ac_ext
3740
3741done
3742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3743rm -f conftest.err conftest.$ac_ext
3744if $ac_preproc_ok; then
3745  :
3746else
3747  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3748See \`config.log' for more details." >&5
3749echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3750See \`config.log' for more details." >&2;}
3751   { (exit 1); exit 1; }; }
3752fi
3753
3754ac_ext=c
3755ac_cpp='$CPP $CPPFLAGS'
3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759
3760
3761echo "$as_me:$LINENO: checking for egrep" >&5
3762echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3763if test "${ac_cv_prog_egrep+set}" = set; then
3764  echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3767    then ac_cv_prog_egrep='grep -E'
3768    else ac_cv_prog_egrep='egrep'
3769    fi
3770fi
3771echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3772echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3773 EGREP=$ac_cv_prog_egrep
3774
3775
3776echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3777echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3778if test "${ac_cv_header_stdc+set}" = set; then
3779  echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781  cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h.  */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h.  */
3787#include <stdlib.h>
3788#include <stdarg.h>
3789#include <string.h>
3790#include <float.h>
3791
3792int
3793main ()
3794{
3795
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800rm -f conftest.$ac_objext
3801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802  (eval $ac_compile) 2>conftest.er1
3803  ac_status=$?
3804  grep -v '^ *+' conftest.er1 >conftest.err
3805  rm -f conftest.er1
3806  cat conftest.err >&5
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); } &&
3809         { ac_try='test -z "$ac_c_werror_flag"
3810                         || test ! -s conftest.err'
3811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812  (eval $ac_try) 2>&5
3813  ac_status=$?
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); }; } &&
3816         { ac_try='test -s conftest.$ac_objext'
3817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818  (eval $ac_try) 2>&5
3819  ac_status=$?
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); }; }; then
3822  ac_cv_header_stdc=yes
3823else
3824  echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827ac_cv_header_stdc=no
3828fi
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830
3831if test $ac_cv_header_stdc = yes; then
3832  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3833  cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h.  */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h.  */
3839#include <string.h>
3840
3841_ACEOF
3842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843  $EGREP "memchr" >/dev/null 2>&1; then
3844  :
3845else
3846  ac_cv_header_stdc=no
3847fi
3848rm -f conftest*
3849
3850fi
3851
3852if test $ac_cv_header_stdc = yes; then
3853  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3854  cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h.  */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
3859/* end confdefs.h.  */
3860#include <stdlib.h>
3861
3862_ACEOF
3863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3864  $EGREP "free" >/dev/null 2>&1; then
3865  :
3866else
3867  ac_cv_header_stdc=no
3868fi
3869rm -f conftest*
3870
3871fi
3872
3873if test $ac_cv_header_stdc = yes; then
3874  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3875  if test "$cross_compiling" = yes; then
3876  :
3877else
3878  cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h.  */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h.  */
3884#include <ctype.h>
3885#if ((' ' & 0x0FF) == 0x020)
3886# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3887# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3888#else
3889# define ISLOWER(c) \
3890                   (('a' <= (c) && (c) <= 'i') \
3891                     || ('j' <= (c) && (c) <= 'r') \
3892                     || ('s' <= (c) && (c) <= 'z'))
3893# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3894#endif
3895
3896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3897int
3898main ()
3899{
3900  int i;
3901  for (i = 0; i < 256; i++)
3902    if (XOR (islower (i), ISLOWER (i))
3903        || toupper (i) != TOUPPER (i))
3904      exit(2);
3905  exit (0);
3906}
3907_ACEOF
3908rm -f conftest$ac_exeext
3909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910  (eval $ac_link) 2>&5
3911  ac_status=$?
3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915  (eval $ac_try) 2>&5
3916  ac_status=$?
3917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918  (exit $ac_status); }; }; then
3919  :
3920else
3921  echo "$as_me: program exited with status $ac_status" >&5
3922echo "$as_me: failed program was:" >&5
3923sed 's/^/| /' conftest.$ac_ext >&5
3924
3925( exit $ac_status )
3926ac_cv_header_stdc=no
3927fi
3928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3929fi
3930fi
3931fi
3932echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3933echo "${ECHO_T}$ac_cv_header_stdc" >&6
3934if test $ac_cv_header_stdc = yes; then
3935
3936cat >>confdefs.h <<\_ACEOF
3937#define STDC_HEADERS 1
3938_ACEOF
3939
3940fi
3941
3942
3943## THIS IS OUR DEFAULT-DATA-DIRECTORY
3944
3945##################################
3946## CHECKING  OPTIONAL ARGUMENTS ##
3947##################################
3948#----------------#
3949# Data-Directory #
3950#----------------#
3951DATA_DIR=$datadir
3952echo \$\{prefix\}
3953if test $DATA_DIR = \$\{prefix\}/share ; then
3954        echo "not given"
3955        DATA_DIR=/usr/share
3956else
3957        echo "given: $DATA_DIR"
3958fi
3959
3960cat >>confdefs.h <<_ACEOF
3961#define DATADIR "$DATA_DIR"
3962_ACEOF
3963
3964
3965#-----------------#
3966# shared-lib-path #
3967#-----------------#
3968SHARED_LIB_PATH=no
3969echo "$as_me:$LINENO: checking shared lib path" >&5
3970echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3971
3972# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3973if test "${with_shared_lib_path+set}" = set; then
3974  withval="$with_shared_lib_path"
3975  SHARED_LIB_PATH=$withval
3976fi;
3977if test x$SHARED_LIB_PATH != xno; then
3978        echo "set to $SHARED_LIB_PATH"
3979else
3980        echo "no"
3981fi
3982
3983
3984#-----------------#
3985# DEBUG-statement #
3986#-----------------#
3987DEBUG=no
3988echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3989echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3990# Check whether --enable-debug or --disable-debug was given.
3991if test "${enable_debug+set}" = set; then
3992  enableval="$enable_debug"
3993  DEBUG=$enableval
3994fi;
3995
3996if test x$DEBUG = xno; then
3997        echo "no"
3998        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3999        DEBUG=4
4000elif test x$DEBUG = xyes; then
4001        echo "yes"
4002        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
4003        DEBUG=4
4004else
4005        echo "yes: setting debuglevel to to $DEBUG"
4006fi
4007
4008cat >>confdefs.h <<_ACEOF
4009#define DEBUG $DEBUG
4010_ACEOF
4011
4012
4013
4014#---------------#
4015# Modular Debug #
4016#---------------#
4017MODULAR_DEBUG=yes
4018echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4019echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4020# Check whether --enable-modular-debug or --disable-modular-debug was given.
4021if test "${enable_modular_debug+set}" = set; then
4022  enableval="$enable_modular_debug"
4023  MODULAR_DEBUG=$enableval
4024fi;
4025
4026if test x$MODULAR_DEBUG = xno; then
4027        echo "no"
4028elif test x$MODULAR_DEBUG = xyes; then
4029        echo "yes"
4030
4031cat >>confdefs.h <<_ACEOF
4032#define MODULAR_DEBUG 1
4033_ACEOF
4034
4035fi
4036
4037#--------------#
4038# GTK-disabled #
4039#--------------#
4040echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4041echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4042# Check whether --enable-gtk or --disable-gtk was given.
4043if test "${enable_gtk+set}" = set; then
4044  enableval="$enable_gtk"
4045  def_gtk=no
4046else
4047  def_gtk=yes
4048fi;
4049if test x$def_gtk = xyes; then
4050  echo "yes"
4051fi
4052if test x$def_gtk = xno; then
4053  echo "no"
4054fi
4055
4056#------------------#
4057# libCurl-disabled #
4058#------------------#
4059echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4060echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4061# Check whether --enable-curl or --disable-curl was given.
4062if test "${enable_curl+set}" = set; then
4063  enableval="$enable_curl"
4064  def_curl=no
4065else
4066  def_curl=yes
4067fi;
4068if test x$def_curl = xyes; then
4069  echo "yes"
4070fi
4071if test x$def_curl = xno; then
4072  echo "no"
4073fi
4074
4075#-------------------#
4076# SubProject-enable #
4077#-------------------#
4078def_sub_projects=no
4079echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4080echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4081
4082# Check whether --with-sub-projects or --without-sub-projects was given.
4083if test "${with_sub_projects+set}" = set; then
4084  withval="$with_sub_projects"
4085  def_sub_projects=yes
4086fi;
4087if test x$def_sub_projects = xyes; then
4088  echo "yes"
4089fi
4090if test x$def_sub_projects = xno; then
4091  echo "no"
4092fi
4093
4094
4095if test x$def_sub_projects = xyes; then
4096  SUB_PROJECTS_TRUE=
4097  SUB_PROJECTS_FALSE='#'
4098else
4099  SUB_PROJECTS_TRUE='#'
4100  SUB_PROJECTS_FALSE=
4101fi
4102
4103
4104#-------------------#
4105# Profiling Enabled #
4106#-------------------#
4107def_profiling=no
4108echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4109echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4110# Check whether --enable-profile or --disable-profile was given.
4111if test "${enable_profile+set}" = set; then
4112  enableval="$enable_profile"
4113  def_profiling=yes
4114fi;
4115if test x$def_profiling = xyes; then
4116  echo "yes"
4117  CXXFLAGS="$CXXFLAGS -pg"
4118fi
4119if test x$def_profiling = xno; then
4120  echo "no"
4121fi
4122
4123#----------------#
4124# efence Enabled #
4125#----------------#
4126def_efence=no
4127echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4128echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4129# Check whether --enable-efence or --disable-efence was given.
4130if test "${enable_efence+set}" = set; then
4131  enableval="$enable_efence"
4132  def_efence=yes
4133fi;
4134if test x$def_efence = xyes; then
4135  echo "yes"
4136fi
4137if test x$def_efence = xno; then
4138  echo "no"
4139fi
4140
4141#----------------------#
4142# Documentation-enable #
4143#----------------------#
4144def_documentation=no
4145echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4146echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4147# Check whether --enable-documentation or --disable-documentation was given.
4148if test "${enable_documentation+set}" = set; then
4149  enableval="$enable_documentation"
4150  def_documentation=yes
4151fi;
4152if test x$def_documentation = xyes; then
4153  echo "yes"
4154fi
4155if test x$def_documentation = xno; then
4156  echo "no"
4157fi
4158
4159
4160if test x$def_documentation = xyes; then
4161  DOCUMENTATION_TRUE=
4162  DOCUMENTATION_FALSE='#'
4163else
4164  DOCUMENTATION_TRUE='#'
4165  DOCUMENTATION_FALSE=
4166fi
4167
4168
4169
4170
4171#---------------------------#
4172# WITH TARDIS (convenience) #
4173#---------------------------#
4174def_tardis=no
4175echo "$as_me:$LINENO: checking convenience flag for working at the taris in the ETH zurich" >&5
4176echo $ECHO_N "checking convenience flag for working at the taris in the ETH zurich... $ECHO_C" >&6
4177
4178# Check whether --with-tardis or --without-tardis was given.
4179if test "${with_tardis+set}" = set; then
4180  withval="$with_tardis"
4181  def_tardis=yes
4182fi;
4183if test x$def_tardis = xyes; then
4184  ARCH=i686-debian-linux3.1
4185   ## GAMELIBS
4186  PREFIX=/usr/pack/gamelibs-1.0-to
4187  CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
4188  LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib"
4189  ## GTK
4190  GTKPREFIX=/usr/pack/gtk-2.8.3-mo
4191  CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include"
4192  LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib"
4193  echo "yes"
4194fi
4195if test x$def_tardis = xno; then
4196  echo "no"
4197fi
4198
4199#######################
4200## PROGRAMM CHECKING ##
4201## 3. party Programs ##
4202#######################
4203
4204#----------------------#
4205# checking for Doxygen #
4206#----------------------#
4207# Extract the first word of "doxygen", so it can be a program name with args.
4208set dummy doxygen; ac_word=$2
4209echo "$as_me:$LINENO: checking for $ac_word" >&5
4210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4211if test "${ac_cv_path_DOXYGEN+set}" = set; then
4212  echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214  case $DOXYGEN in
4215  [\\/]* | ?:[\\/]*)
4216  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4217  ;;
4218  *)
4219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222  IFS=$as_save_IFS
4223  test -z "$as_dir" && as_dir=.
4224  for ac_exec_ext in '' $ac_executable_extensions; do
4225  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231done
4232
4233  ;;
4234esac
4235fi
4236DOXYGEN=$ac_cv_path_DOXYGEN
4237
4238if test -n "$DOXYGEN"; then
4239  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4240echo "${ECHO_T}$DOXYGEN" >&6
4241else
4242  echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244fi
4245
4246
4247
4248if test $DOXYGEN; then
4249  DOXYGEN_TRUE=
4250  DOXYGEN_FALSE='#'
4251else
4252  DOXYGEN_TRUE='#'
4253  DOXYGEN_FALSE=
4254fi
4255
4256
4257#--------------------#
4258# checking for gprof #
4259#--------------------#
4260# Extract the first word of "gprof", so it can be a program name with args.
4261set dummy gprof; ac_word=$2
4262echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264if test "${ac_cv_path_GPROF+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  case $GPROF in
4268  [\\/]* | ?:[\\/]*)
4269  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4270  ;;
4271  *)
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277  for ac_exec_ext in '' $ac_executable_extensions; do
4278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284done
4285
4286  ;;
4287esac
4288fi
4289GPROF=$ac_cv_path_GPROF
4290
4291if test -n "$GPROF"; then
4292  echo "$as_me:$LINENO: result: $GPROF" >&5
4293echo "${ECHO_T}$GPROF" >&6
4294else
4295  echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
4299
4300#-------------------------#
4301# checking for pkg-config #
4302#-------------------------#
4303if test x$def_gtk = xyes; then
4304 # Extract the first word of "pkg-config", so it can be a program name with args.
4305set dummy pkg-config; ac_word=$2
4306echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4309  echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311  case $PKG_CONFIG in
4312  [\\/]* | ?:[\\/]*)
4313  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4314  ;;
4315  *)
4316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319  IFS=$as_save_IFS
4320  test -z "$as_dir" && as_dir=.
4321  for ac_exec_ext in '' $ac_executable_extensions; do
4322  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325    break 2
4326  fi
4327done
4328done
4329
4330  ;;
4331esac
4332fi
4333PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4334
4335if test -n "$PKG_CONFIG"; then
4336  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4337echo "${ECHO_T}$PKG_CONFIG" >&6
4338else
4339  echo "$as_me:$LINENO: result: no" >&5
4340echo "${ECHO_T}no" >&6
4341fi
4342
4343fi
4344
4345
4346#########################
4347## CHECKING FOR SYSTEM ##
4348#########################
4349## here the system is checked, and openGL is included
4350## also checking for SDL on differen Systems
4351
4352echo "$as_me:$LINENO: checking for System" >&5
4353echo $ECHO_N "checking for System... $ECHO_C" >&6
4354## checking for openGL-environment and other sys-specific parameters
4355case "$target" in
4356
4357###########
4358#---------#
4359# WINDOWS #
4360#---------#
4361###########
4362  *-*-mingw32*)
4363echo "mingw-WINDOWS detected"
4364
4365CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4366
4367    mingw="yes"
4368    MSBITFIELDS="-mms-bitfields"
4369    MWINDOWS="-mwindows"
4370
4371#--------#
4372# MIN-GW #
4373#--------#
4374# checking for mingw32
4375    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4376echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4377if test "${ac_cv_lib_mingw32_main+set}" = set; then
4378  echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380  ac_check_lib_save_LIBS=$LIBS
4381LIBS="-lmingw32  $LIBS"
4382cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h.  */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h.  */
4388
4389
4390int
4391main ()
4392{
4393main ();
4394  ;
4395  return 0;
4396}
4397_ACEOF
4398rm -f conftest.$ac_objext conftest$ac_exeext
4399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400  (eval $ac_link) 2>conftest.er1
4401  ac_status=$?
4402  grep -v '^ *+' conftest.er1 >conftest.err
4403  rm -f conftest.er1
4404  cat conftest.err >&5
4405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406  (exit $ac_status); } &&
4407         { ac_try='test -z "$ac_c_werror_flag"
4408                         || test ! -s conftest.err'
4409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410  (eval $ac_try) 2>&5
4411  ac_status=$?
4412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413  (exit $ac_status); }; } &&
4414         { ac_try='test -s conftest$ac_exeext'
4415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416  (eval $ac_try) 2>&5
4417  ac_status=$?
4418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419  (exit $ac_status); }; }; then
4420  ac_cv_lib_mingw32_main=yes
4421else
4422  echo "$as_me: failed program was:" >&5
4423sed 's/^/| /' conftest.$ac_ext >&5
4424
4425ac_cv_lib_mingw32_main=no
4426fi
4427rm -f conftest.err conftest.$ac_objext \
4428      conftest$ac_exeext conftest.$ac_ext
4429LIBS=$ac_check_lib_save_LIBS
4430fi
4431echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4432echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4433if test $ac_cv_lib_mingw32_main = yes; then
4434  FOUND_mingw32=yes
4435fi
4436
4437    if test x$FOUND_mingw32 = xyes; then
4438        LIBS="$LIBS -lmingw32"
4439    fi
4440
4441#---------------#
4442# open-GL (win) #
4443#---------------#
4444# checking gl header
4445   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4456                  inttypes.h stdint.h unistd.h
4457do
4458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459echo "$as_me:$LINENO: checking for $ac_header" >&5
4460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4461if eval "test \"\${$as_ac_Header+set}\" = set"; then
4462  echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464  cat >conftest.$ac_ext <<_ACEOF
4465/* confdefs.h.  */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h.  */
4470$ac_includes_default
4471
4472#include <$ac_header>
4473_ACEOF
4474rm -f conftest.$ac_objext
4475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476  (eval $ac_compile) 2>conftest.er1
4477  ac_status=$?
4478  grep -v '^ *+' conftest.er1 >conftest.err
4479  rm -f conftest.er1
4480  cat conftest.err >&5
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); } &&
4483         { ac_try='test -z "$ac_c_werror_flag"
4484                         || test ! -s conftest.err'
4485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486  (eval $ac_try) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); }; } &&
4490         { ac_try='test -s conftest.$ac_objext'
4491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492  (eval $ac_try) 2>&5
4493  ac_status=$?
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); }; }; then
4496  eval "$as_ac_Header=yes"
4497else
4498  echo "$as_me: failed program was:" >&5
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
4501eval "$as_ac_Header=no"
4502fi
4503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4504fi
4505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4507if test `eval echo '${'$as_ac_Header'}'` = yes; then
4508  cat >>confdefs.h <<_ACEOF
4509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4510_ACEOF
4511
4512fi
4513
4514done
4515
4516
4517
4518for ac_header in GL/gl.h
4519do
4520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4521if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522  echo "$as_me:$LINENO: checking for $ac_header" >&5
4523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525  echo $ECHO_N "(cached) $ECHO_C" >&6
4526fi
4527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529else
4530  # Is the header compilable?
4531echo "$as_me:$LINENO: checking $ac_header usability" >&5
4532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4533cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h.  */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h.  */
4539$ac_includes_default
4540#include <$ac_header>
4541_ACEOF
4542rm -f conftest.$ac_objext
4543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544  (eval $ac_compile) 2>conftest.er1
4545  ac_status=$?
4546  grep -v '^ *+' conftest.er1 >conftest.err
4547  rm -f conftest.er1
4548  cat conftest.err >&5
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); } &&
4551         { ac_try='test -z "$ac_c_werror_flag"
4552                         || test ! -s conftest.err'
4553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554  (eval $ac_try) 2>&5
4555  ac_status=$?
4556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); }; } &&
4558         { ac_try='test -s conftest.$ac_objext'
4559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560  (eval $ac_try) 2>&5
4561  ac_status=$?
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; }; then
4564  ac_header_compiler=yes
4565else
4566  echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569ac_header_compiler=no
4570fi
4571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4573echo "${ECHO_T}$ac_header_compiler" >&6
4574
4575# Is the header present?
4576echo "$as_me:$LINENO: checking $ac_header presence" >&5
4577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4578cat >conftest.$ac_ext <<_ACEOF
4579/* confdefs.h.  */
4580_ACEOF
4581cat confdefs.h >>conftest.$ac_ext
4582cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h.  */
4584#include <$ac_header>
4585_ACEOF
4586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4587  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4588  ac_status=$?
4589  grep -v '^ *+' conftest.er1 >conftest.err
4590  rm -f conftest.er1
4591  cat conftest.err >&5
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } >/dev/null; then
4594  if test -s conftest.err; then
4595    ac_cpp_err=$ac_c_preproc_warn_flag
4596    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4597  else
4598    ac_cpp_err=
4599  fi
4600else
4601  ac_cpp_err=yes
4602fi
4603if test -z "$ac_cpp_err"; then
4604  ac_header_preproc=yes
4605else
4606  echo "$as_me: failed program was:" >&5
4607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609  ac_header_preproc=no
4610fi
4611rm -f conftest.err conftest.$ac_ext
4612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4613echo "${ECHO_T}$ac_header_preproc" >&6
4614
4615# So?  What about this header?
4616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4617  yes:no: )
4618    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4620    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4622    ac_header_preproc=yes
4623    ;;
4624  no:yes:* )
4625    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4627    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4628echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4629    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4631    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4632echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4633    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4635    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4637    (
4638      cat <<\_ASBOX
4639## ---------------------------------------------- ##
4640## Report this to orxonox-dev at mail.datacore.ch ##
4641## ---------------------------------------------- ##
4642_ASBOX
4643    ) |
4644      sed "s/^/$as_me: WARNING:     /" >&2
4645    ;;
4646esac
4647echo "$as_me:$LINENO: checking for $ac_header" >&5
4648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4649if eval "test \"\${$as_ac_Header+set}\" = set"; then
4650  echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652  eval "$as_ac_Header=\$ac_header_preproc"
4653fi
4654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4656
4657fi
4658if test `eval echo '${'$as_ac_Header'}'` = yes; then
4659  cat >>confdefs.h <<_ACEOF
4660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4661_ACEOF
4662
4663else
4664  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4665echo "$as_me: error: cannot find opengl headers" >&2;}
4666   { (exit 1); exit 1; }; }
4667fi
4668
4669done
4670
4671#   checking for Windows openGl library
4672    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4673echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4674if test "${ac_cv_lib_opengl32_main+set}" = set; then
4675  echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677  ac_check_lib_save_LIBS=$LIBS
4678LIBS="-lopengl32  $LIBS"
4679cat >conftest.$ac_ext <<_ACEOF
4680/* confdefs.h.  */
4681_ACEOF
4682cat confdefs.h >>conftest.$ac_ext
4683cat >>conftest.$ac_ext <<_ACEOF
4684/* end confdefs.h.  */
4685
4686
4687int
4688main ()
4689{
4690main ();
4691  ;
4692  return 0;
4693}
4694_ACEOF
4695rm -f conftest.$ac_objext conftest$ac_exeext
4696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697  (eval $ac_link) 2>conftest.er1
4698  ac_status=$?
4699  grep -v '^ *+' conftest.er1 >conftest.err
4700  rm -f conftest.er1
4701  cat conftest.err >&5
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); } &&
4704         { ac_try='test -z "$ac_c_werror_flag"
4705                         || test ! -s conftest.err'
4706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707  (eval $ac_try) 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); }; } &&
4711         { ac_try='test -s conftest$ac_exeext'
4712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713  (eval $ac_try) 2>&5
4714  ac_status=$?
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); }; }; then
4717  ac_cv_lib_opengl32_main=yes
4718else
4719  echo "$as_me: failed program was:" >&5
4720sed 's/^/| /' conftest.$ac_ext >&5
4721
4722ac_cv_lib_opengl32_main=no
4723fi
4724rm -f conftest.err conftest.$ac_objext \
4725      conftest$ac_exeext conftest.$ac_ext
4726LIBS=$ac_check_lib_save_LIBS
4727fi
4728echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4729echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4730if test $ac_cv_lib_opengl32_main = yes; then
4731  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
4732fi
4733
4734    if test x$FOUND_GL != xyes ; then
4735         echo "------------------"
4736         echo "opengl not found."
4737         echo "please install the opengl package which can be found at http://www.opengl.org"
4738         echo "------------------"
4739         exit -1
4740    fi
4741
4742# cheking for GLU-header
4743
4744for ac_header in GL/glu.h
4745do
4746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4747if eval "test \"\${$as_ac_Header+set}\" = set"; then
4748  echo "$as_me:$LINENO: checking for $ac_header" >&5
4749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4750if eval "test \"\${$as_ac_Header+set}\" = set"; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752fi
4753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4755else
4756  # Is the header compilable?
4757echo "$as_me:$LINENO: checking $ac_header usability" >&5
4758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4759cat >conftest.$ac_ext <<_ACEOF
4760/* confdefs.h.  */
4761_ACEOF
4762cat confdefs.h >>conftest.$ac_ext
4763cat >>conftest.$ac_ext <<_ACEOF
4764/* end confdefs.h.  */
4765$ac_includes_default
4766#include <$ac_header>
4767_ACEOF
4768rm -f conftest.$ac_objext
4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770  (eval $ac_compile) 2>conftest.er1
4771  ac_status=$?
4772  grep -v '^ *+' conftest.er1 >conftest.err
4773  rm -f conftest.er1
4774  cat conftest.err >&5
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); } &&
4777         { ac_try='test -z "$ac_c_werror_flag"
4778                         || test ! -s conftest.err'
4779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780  (eval $ac_try) 2>&5
4781  ac_status=$?
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); }; } &&
4784         { ac_try='test -s conftest.$ac_objext'
4785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786  (eval $ac_try) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); }; }; then
4790  ac_header_compiler=yes
4791else
4792  echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795ac_header_compiler=no
4796fi
4797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4799echo "${ECHO_T}$ac_header_compiler" >&6
4800
4801# Is the header present?
4802echo "$as_me:$LINENO: checking $ac_header presence" >&5
4803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4804cat >conftest.$ac_ext <<_ACEOF
4805/* confdefs.h.  */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h.  */
4810#include <$ac_header>
4811_ACEOF
4812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4814  ac_status=$?
4815  grep -v '^ *+' conftest.er1 >conftest.err
4816  rm -f conftest.er1
4817  cat conftest.err >&5
4818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819  (exit $ac_status); } >/dev/null; then
4820  if test -s conftest.err; then
4821    ac_cpp_err=$ac_c_preproc_warn_flag
4822    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4823  else
4824    ac_cpp_err=
4825  fi
4826else
4827  ac_cpp_err=yes
4828fi
4829if test -z "$ac_cpp_err"; then
4830  ac_header_preproc=yes
4831else
4832  echo "$as_me: failed program was:" >&5
4833sed 's/^/| /' conftest.$ac_ext >&5
4834
4835  ac_header_preproc=no
4836fi
4837rm -f conftest.err conftest.$ac_ext
4838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4839echo "${ECHO_T}$ac_header_preproc" >&6
4840
4841# So?  What about this header?
4842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4843  yes:no: )
4844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4848    ac_header_preproc=yes
4849    ;;
4850  no:yes:* )
4851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4863    (
4864      cat <<\_ASBOX
4865## ---------------------------------------------- ##
4866## Report this to orxonox-dev at mail.datacore.ch ##
4867## ---------------------------------------------- ##
4868_ASBOX
4869    ) |
4870      sed "s/^/$as_me: WARNING:     /" >&2
4871    ;;
4872esac
4873echo "$as_me:$LINENO: checking for $ac_header" >&5
4874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4875if eval "test \"\${$as_ac_Header+set}\" = set"; then
4876  echo $ECHO_N "(cached) $ECHO_C" >&6
4877else
4878  eval "$as_ac_Header=\$ac_header_preproc"
4879fi
4880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4882
4883fi
4884if test `eval echo '${'$as_ac_Header'}'` = yes; then
4885  cat >>confdefs.h <<_ACEOF
4886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4887_ACEOF
4888
4889else
4890  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4891echo "$as_me: error: cannot find opengl headers" >&2;}
4892   { (exit 1); exit 1; }; }
4893fi
4894
4895done
4896
4897
4898# checking for libGLU
4899    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4900echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4901if test "${ac_cv_lib_glu32_main+set}" = set; then
4902  echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904  ac_check_lib_save_LIBS=$LIBS
4905LIBS="-lglu32  $LIBS"
4906cat >conftest.$ac_ext <<_ACEOF
4907/* confdefs.h.  */
4908_ACEOF
4909cat confdefs.h >>conftest.$ac_ext
4910cat >>conftest.$ac_ext <<_ACEOF
4911/* end confdefs.h.  */
4912
4913
4914int
4915main ()
4916{
4917main ();
4918  ;
4919  return 0;
4920}
4921_ACEOF
4922rm -f conftest.$ac_objext conftest$ac_exeext
4923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4924  (eval $ac_link) 2>conftest.er1
4925  ac_status=$?
4926  grep -v '^ *+' conftest.er1 >conftest.err
4927  rm -f conftest.er1
4928  cat conftest.err >&5
4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); } &&
4931         { ac_try='test -z "$ac_c_werror_flag"
4932                         || test ! -s conftest.err'
4933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934  (eval $ac_try) 2>&5
4935  ac_status=$?
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); }; } &&
4938         { ac_try='test -s conftest$ac_exeext'
4939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940  (eval $ac_try) 2>&5
4941  ac_status=$?
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); }; }; then
4944  ac_cv_lib_glu32_main=yes
4945else
4946  echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949ac_cv_lib_glu32_main=no
4950fi
4951rm -f conftest.err conftest.$ac_objext \
4952      conftest$ac_exeext conftest.$ac_ext
4953LIBS=$ac_check_lib_save_LIBS
4954fi
4955echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4956echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4957if test $ac_cv_lib_glu32_main = yes; then
4958  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
4959fi
4960
4961    if test x$FOUND_GLU != xyes ; then
4962         echo "------------------"
4963         echo "GLU library not found."
4964         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4965         echo "------------------"
4966         exit -1
4967    fi
4968
4969# checking glew header
4970
4971for ac_header in GL/glew.h
4972do
4973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4974if eval "test \"\${$as_ac_Header+set}\" = set"; then
4975  echo "$as_me:$LINENO: checking for $ac_header" >&5
4976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4977if eval "test \"\${$as_ac_Header+set}\" = set"; then
4978  echo $ECHO_N "(cached) $ECHO_C" >&6
4979fi
4980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4982else
4983  # Is the header compilable?
4984echo "$as_me:$LINENO: checking $ac_header usability" >&5
4985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4986cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h.  */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h.  */
4992$ac_includes_default
4993#include <$ac_header>
4994_ACEOF
4995rm -f conftest.$ac_objext
4996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997  (eval $ac_compile) 2>conftest.er1
4998  ac_status=$?
4999  grep -v '^ *+' conftest.er1 >conftest.err
5000  rm -f conftest.er1
5001  cat conftest.err >&5
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } &&
5004         { ac_try='test -z "$ac_c_werror_flag"
5005                         || test ! -s conftest.err'
5006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007  (eval $ac_try) 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); }; } &&
5011         { ac_try='test -s conftest.$ac_objext'
5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013  (eval $ac_try) 2>&5
5014  ac_status=$?
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }; }; then
5017  ac_header_compiler=yes
5018else
5019  echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022ac_header_compiler=no
5023fi
5024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5026echo "${ECHO_T}$ac_header_compiler" >&6
5027
5028# Is the header present?
5029echo "$as_me:$LINENO: checking $ac_header presence" >&5
5030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5031cat >conftest.$ac_ext <<_ACEOF
5032/* confdefs.h.  */
5033_ACEOF
5034cat confdefs.h >>conftest.$ac_ext
5035cat >>conftest.$ac_ext <<_ACEOF
5036/* end confdefs.h.  */
5037#include <$ac_header>
5038_ACEOF
5039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5040  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5041  ac_status=$?
5042  grep -v '^ *+' conftest.er1 >conftest.err
5043  rm -f conftest.er1
5044  cat conftest.err >&5
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); } >/dev/null; then
5047  if test -s conftest.err; then
5048    ac_cpp_err=$ac_c_preproc_warn_flag
5049    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5050  else
5051    ac_cpp_err=
5052  fi
5053else
5054  ac_cpp_err=yes
5055fi
5056if test -z "$ac_cpp_err"; then
5057  ac_header_preproc=yes
5058else
5059  echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062  ac_header_preproc=no
5063fi
5064rm -f conftest.err conftest.$ac_ext
5065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5066echo "${ECHO_T}$ac_header_preproc" >&6
5067
5068# So?  What about this header?
5069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5070  yes:no: )
5071    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5073    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5075    ac_header_preproc=yes
5076    ;;
5077  no:yes:* )
5078    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5080    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5081echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5082    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5084    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5085echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5086    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5088    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5090    (
5091      cat <<\_ASBOX
5092## ---------------------------------------------- ##
5093## Report this to orxonox-dev at mail.datacore.ch ##
5094## ---------------------------------------------- ##
5095_ASBOX
5096    ) |
5097      sed "s/^/$as_me: WARNING:     /" >&2
5098    ;;
5099esac
5100echo "$as_me:$LINENO: checking for $ac_header" >&5
5101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5102if eval "test \"\${$as_ac_Header+set}\" = set"; then
5103  echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105  eval "$as_ac_Header=\$ac_header_preproc"
5106fi
5107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5109
5110fi
5111if test `eval echo '${'$as_ac_Header'}'` = yes; then
5112  cat >>confdefs.h <<_ACEOF
5113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114_ACEOF
5115
5116else
5117  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5118echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
5119   { (exit 1); exit 1; }; }
5120fi
5121
5122done
5123
5124#   checking for Windows glew library
5125    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5126echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5127if test "${ac_cv_lib_glew32_main+set}" = set; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  ac_check_lib_save_LIBS=$LIBS
5131LIBS="-lglew32  $LIBS"
5132cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h.  */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h.  */
5138
5139
5140int
5141main ()
5142{
5143main ();
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148rm -f conftest.$ac_objext conftest$ac_exeext
5149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150  (eval $ac_link) 2>conftest.er1
5151  ac_status=$?
5152  grep -v '^ *+' conftest.er1 >conftest.err
5153  rm -f conftest.er1
5154  cat conftest.err >&5
5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156  (exit $ac_status); } &&
5157         { ac_try='test -z "$ac_c_werror_flag"
5158                         || test ! -s conftest.err'
5159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160  (eval $ac_try) 2>&5
5161  ac_status=$?
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); }; } &&
5164         { ac_try='test -s conftest$ac_exeext'
5165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166  (eval $ac_try) 2>&5
5167  ac_status=$?
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); }; }; then
5170  ac_cv_lib_glew32_main=yes
5171else
5172  echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
5175ac_cv_lib_glew32_main=no
5176fi
5177rm -f conftest.err conftest.$ac_objext \
5178      conftest$ac_exeext conftest.$ac_ext
5179LIBS=$ac_check_lib_save_LIBS
5180fi
5181echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5182echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5183if test $ac_cv_lib_glew32_main = yes; then
5184  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
5185fi
5186
5187    if test x$FOUND_GLEW != xyes ; then
5188         echo "------------------"
5189         echo "opengl extension wrangler not found."
5190         echo "please install the glew package which can be found at http://glew.sourceforge.net"
5191         echo "------------------"
5192         exit -1
5193    fi
5194
5195#--------#
5196# openAL #
5197#--------#
5198# checking for openAL-headers
5199
5200for ac_header in AL/al.h
5201do
5202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5203if eval "test \"\${$as_ac_Header+set}\" = set"; then
5204  echo "$as_me:$LINENO: checking for $ac_header" >&5
5205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5206if eval "test \"\${$as_ac_Header+set}\" = set"; then
5207  echo $ECHO_N "(cached) $ECHO_C" >&6
5208fi
5209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5211else
5212  # Is the header compilable?
5213echo "$as_me:$LINENO: checking $ac_header usability" >&5
5214echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5215cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h.  */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h.  */
5221$ac_includes_default
5222#include <$ac_header>
5223_ACEOF
5224rm -f conftest.$ac_objext
5225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226  (eval $ac_compile) 2>conftest.er1
5227  ac_status=$?
5228  grep -v '^ *+' conftest.er1 >conftest.err
5229  rm -f conftest.er1
5230  cat conftest.err >&5
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); } &&
5233         { ac_try='test -z "$ac_c_werror_flag"
5234                         || test ! -s conftest.err'
5235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236  (eval $ac_try) 2>&5
5237  ac_status=$?
5238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239  (exit $ac_status); }; } &&
5240         { ac_try='test -s conftest.$ac_objext'
5241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242  (eval $ac_try) 2>&5
5243  ac_status=$?
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); }; }; then
5246  ac_header_compiler=yes
5247else
5248  echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251ac_header_compiler=no
5252fi
5253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5255echo "${ECHO_T}$ac_header_compiler" >&6
5256
5257# Is the header present?
5258echo "$as_me:$LINENO: checking $ac_header presence" >&5
5259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5260cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h.  */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h.  */
5266#include <$ac_header>
5267_ACEOF
5268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270  ac_status=$?
5271  grep -v '^ *+' conftest.er1 >conftest.err
5272  rm -f conftest.er1
5273  cat conftest.err >&5
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); } >/dev/null; then
5276  if test -s conftest.err; then
5277    ac_cpp_err=$ac_c_preproc_warn_flag
5278    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279  else
5280    ac_cpp_err=
5281  fi
5282else
5283  ac_cpp_err=yes
5284fi
5285if test -z "$ac_cpp_err"; then
5286  ac_header_preproc=yes
5287else
5288  echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291  ac_header_preproc=no
5292fi
5293rm -f conftest.err conftest.$ac_ext
5294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5295echo "${ECHO_T}$ac_header_preproc" >&6
5296
5297# So?  What about this header?
5298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5299  yes:no: )
5300    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5303echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5304    ac_header_preproc=yes
5305    ;;
5306  no:yes:* )
5307    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5308echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5309    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5310echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5311    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5312echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5313    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5314echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5315    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5316echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5317    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5318echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5319    (
5320      cat <<\_ASBOX
5321## ---------------------------------------------- ##
5322## Report this to orxonox-dev at mail.datacore.ch ##
5323## ---------------------------------------------- ##
5324_ASBOX
5325    ) |
5326      sed "s/^/$as_me: WARNING:     /" >&2
5327    ;;
5328esac
5329echo "$as_me:$LINENO: checking for $ac_header" >&5
5330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5331if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332  echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334  eval "$as_ac_Header=\$ac_header_preproc"
5335fi
5336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5338
5339fi
5340if test `eval echo '${'$as_ac_Header'}'` = yes; then
5341  cat >>confdefs.h <<_ACEOF
5342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5343_ACEOF
5344
5345else
5346  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5347echo "$as_me: error: cannot find openAL header." >&2;}
5348   { (exit 1); exit 1; }; }
5349fi
5350
5351done
5352
5353# checking for openAL-lib
5354  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5355echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5356if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5357  echo $ECHO_N "(cached) $ECHO_C" >&6
5358else
5359  ac_check_lib_save_LIBS=$LIBS
5360LIBS="-lOpenAL32  $LIBS"
5361cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h.  */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h.  */
5367
5368
5369int
5370main ()
5371{
5372main ();
5373  ;
5374  return 0;
5375}
5376_ACEOF
5377rm -f conftest.$ac_objext conftest$ac_exeext
5378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379  (eval $ac_link) 2>conftest.er1
5380  ac_status=$?
5381  grep -v '^ *+' conftest.er1 >conftest.err
5382  rm -f conftest.er1
5383  cat conftest.err >&5
5384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); } &&
5386         { ac_try='test -z "$ac_c_werror_flag"
5387                         || test ! -s conftest.err'
5388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389  (eval $ac_try) 2>&5
5390  ac_status=$?
5391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392  (exit $ac_status); }; } &&
5393         { ac_try='test -s conftest$ac_exeext'
5394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395  (eval $ac_try) 2>&5
5396  ac_status=$?
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); }; }; then
5399  ac_cv_lib_OpenAL32_main=yes
5400else
5401  echo "$as_me: failed program was:" >&5
5402sed 's/^/| /' conftest.$ac_ext >&5
5403
5404ac_cv_lib_OpenAL32_main=no
5405fi
5406rm -f conftest.err conftest.$ac_objext \
5407      conftest$ac_exeext conftest.$ac_ext
5408LIBS=$ac_check_lib_save_LIBS
5409fi
5410echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5411echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5412if test $ac_cv_lib_OpenAL32_main = yes; then
5413  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
5414fi
5415
5416  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5417echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5418if test "${ac_cv_lib_ALut_main+set}" = set; then
5419  echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421  ac_check_lib_save_LIBS=$LIBS
5422LIBS="-lALut  $LIBS"
5423cat >conftest.$ac_ext <<_ACEOF
5424/* confdefs.h.  */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
5428/* end confdefs.h.  */
5429
5430
5431int
5432main ()
5433{
5434main ();
5435  ;
5436  return 0;
5437}
5438_ACEOF
5439rm -f conftest.$ac_objext conftest$ac_exeext
5440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5441  (eval $ac_link) 2>conftest.er1
5442  ac_status=$?
5443  grep -v '^ *+' conftest.er1 >conftest.err
5444  rm -f conftest.er1
5445  cat conftest.err >&5
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); } &&
5448         { ac_try='test -z "$ac_c_werror_flag"
5449                         || test ! -s conftest.err'
5450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451  (eval $ac_try) 2>&5
5452  ac_status=$?
5453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454  (exit $ac_status); }; } &&
5455         { ac_try='test -s conftest$ac_exeext'
5456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457  (eval $ac_try) 2>&5
5458  ac_status=$?
5459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); }; }; then
5461  ac_cv_lib_ALut_main=yes
5462else
5463  echo "$as_me: failed program was:" >&5
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
5466ac_cv_lib_ALut_main=no
5467fi
5468rm -f conftest.err conftest.$ac_objext \
5469      conftest$ac_exeext conftest.$ac_ext
5470LIBS=$ac_check_lib_save_LIBS
5471fi
5472echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5473echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5474if test $ac_cv_lib_ALut_main = yes; then
5475  FOUND_ALUT=yes; LIBS="-lALut $LIBS"
5476fi
5477
5478     if test x$FOUND_OPENAL != xyes ; then
5479        echo "------------------"
5480        echo "openal library not found."
5481        echo "please install the openal library, which can be found at http://www.openal.org"
5482        echo "------------------"
5483        exit -1
5484     fi
5485
5486
5487#-----------#
5488# SDL(win) #
5489#-----------#
5490# checking for SDL-headers
5491
5492for ac_header in SDL/SDL.h
5493do
5494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5495if eval "test \"\${$as_ac_Header+set}\" = set"; then
5496  echo "$as_me:$LINENO: checking for $ac_header" >&5
5497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5498if eval "test \"\${$as_ac_Header+set}\" = set"; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500fi
5501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5503else
5504  # Is the header compilable?
5505echo "$as_me:$LINENO: checking $ac_header usability" >&5
5506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5507cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h.  */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h.  */
5513$ac_includes_default
5514#include <$ac_header>
5515_ACEOF
5516rm -f conftest.$ac_objext
5517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518  (eval $ac_compile) 2>conftest.er1
5519  ac_status=$?
5520  grep -v '^ *+' conftest.er1 >conftest.err
5521  rm -f conftest.er1
5522  cat conftest.err >&5
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); } &&
5525         { ac_try='test -z "$ac_c_werror_flag"
5526                         || test ! -s conftest.err'
5527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528  (eval $ac_try) 2>&5
5529  ac_status=$?
5530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531  (exit $ac_status); }; } &&
5532         { ac_try='test -s conftest.$ac_objext'
5533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534  (eval $ac_try) 2>&5
5535  ac_status=$?
5536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); }; }; then
5538  ac_header_compiler=yes
5539else
5540  echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
5543ac_header_compiler=no
5544fi
5545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5547echo "${ECHO_T}$ac_header_compiler" >&6
5548
5549# Is the header present?
5550echo "$as_me:$LINENO: checking $ac_header presence" >&5
5551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5552cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h.  */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h.  */
5558#include <$ac_header>
5559_ACEOF
5560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5561  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5562  ac_status=$?
5563  grep -v '^ *+' conftest.er1 >conftest.err
5564  rm -f conftest.er1
5565  cat conftest.err >&5
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); } >/dev/null; then
5568  if test -s conftest.err; then
5569    ac_cpp_err=$ac_c_preproc_warn_flag
5570    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5571  else
5572    ac_cpp_err=
5573  fi
5574else
5575  ac_cpp_err=yes
5576fi
5577if test -z "$ac_cpp_err"; then
5578  ac_header_preproc=yes
5579else
5580  echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583  ac_header_preproc=no
5584fi
5585rm -f conftest.err conftest.$ac_ext
5586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5587echo "${ECHO_T}$ac_header_preproc" >&6
5588
5589# So?  What about this header?
5590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5591  yes:no: )
5592    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5594    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5596    ac_header_preproc=yes
5597    ;;
5598  no:yes:* )
5599    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5601    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5602echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5603    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5605    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5606echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5607    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5609    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5611    (
5612      cat <<\_ASBOX
5613## ---------------------------------------------- ##
5614## Report this to orxonox-dev at mail.datacore.ch ##
5615## ---------------------------------------------- ##
5616_ASBOX
5617    ) |
5618      sed "s/^/$as_me: WARNING:     /" >&2
5619    ;;
5620esac
5621echo "$as_me:$LINENO: checking for $ac_header" >&5
5622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5623if eval "test \"\${$as_ac_Header+set}\" = set"; then
5624  echo $ECHO_N "(cached) $ECHO_C" >&6
5625else
5626  eval "$as_ac_Header=\$ac_header_preproc"
5627fi
5628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5630
5631fi
5632if test `eval echo '${'$as_ac_Header'}'` = yes; then
5633  cat >>confdefs.h <<_ACEOF
5634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5635_ACEOF
5636
5637else
5638  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5639echo "$as_me: error: cannot find SDL headers" >&2;}
5640   { (exit 1); exit 1; }; }
5641fi
5642
5643done
5644
5645
5646#checking for libSDL
5647    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5648echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5649if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5650  echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652  ac_check_lib_save_LIBS=$LIBS
5653LIBS="-lsdlmain  $LIBS"
5654cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h.  */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h.  */
5660
5661
5662int
5663main ()
5664{
5665main ();
5666  ;
5667  return 0;
5668}
5669_ACEOF
5670rm -f conftest.$ac_objext conftest$ac_exeext
5671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672  (eval $ac_link) 2>conftest.er1
5673  ac_status=$?
5674  grep -v '^ *+' conftest.er1 >conftest.err
5675  rm -f conftest.er1
5676  cat conftest.err >&5
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); } &&
5679         { ac_try='test -z "$ac_c_werror_flag"
5680                         || test ! -s conftest.err'
5681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682  (eval $ac_try) 2>&5
5683  ac_status=$?
5684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685  (exit $ac_status); }; } &&
5686         { ac_try='test -s conftest$ac_exeext'
5687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688  (eval $ac_try) 2>&5
5689  ac_status=$?
5690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691  (exit $ac_status); }; }; then
5692  ac_cv_lib_sdlmain_main=yes
5693else
5694  echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697ac_cv_lib_sdlmain_main=no
5698fi
5699rm -f conftest.err conftest.$ac_objext \
5700      conftest$ac_exeext conftest.$ac_ext
5701LIBS=$ac_check_lib_save_LIBS
5702fi
5703echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5704echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5705if test $ac_cv_lib_sdlmain_main = yes; then
5706  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
5707fi
5708
5709    if test x$FOUND_sdlmain != xyes ; then
5710        echo "------------------"
5711        echo "SDL library not found."
5712        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5713        echo "------------------"
5714        exit 1
5715    fi
5716    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5717echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5718if test "${ac_cv_lib_sdl_main+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  ac_check_lib_save_LIBS=$LIBS
5722LIBS="-lsdl  $LIBS"
5723cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h.  */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h.  */
5729
5730
5731int
5732main ()
5733{
5734main ();
5735  ;
5736  return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext conftest$ac_exeext
5740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741  (eval $ac_link) 2>conftest.er1
5742  ac_status=$?
5743  grep -v '^ *+' conftest.er1 >conftest.err
5744  rm -f conftest.er1
5745  cat conftest.err >&5
5746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747  (exit $ac_status); } &&
5748         { ac_try='test -z "$ac_c_werror_flag"
5749                         || test ! -s conftest.err'
5750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751  (eval $ac_try) 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }; } &&
5755         { ac_try='test -s conftest$ac_exeext'
5756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757  (eval $ac_try) 2>&5
5758  ac_status=$?
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); }; }; then
5761  ac_cv_lib_sdl_main=yes
5762else
5763  echo "$as_me: failed program was:" >&5
5764sed 's/^/| /' conftest.$ac_ext >&5
5765
5766ac_cv_lib_sdl_main=no
5767fi
5768rm -f conftest.err conftest.$ac_objext \
5769      conftest$ac_exeext conftest.$ac_ext
5770LIBS=$ac_check_lib_save_LIBS
5771fi
5772echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5773echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5774if test $ac_cv_lib_sdl_main = yes; then
5775  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
5776fi
5777
5778    if test x$FOUND_SDL != xyes ; then
5779        echo "------------------"
5780        echo "SDL library not found."
5781        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5782        echo "------------------"
5783        exit -1
5784    fi
5785
5786  ;;
5787
5788#########
5789#-------#
5790# LINUX #
5791#-------#
5792#########
5793 *-*-linux*)
5794echo "Linux detected"
5795
5796 Linux="yes"
5797
5798##CPPFLAGS="-I/usr/include $CPPFLAGS"
5799##LDFLAGS="-L/usr/lib $LDFLAGS"
5800if test x$SHARED_LIB_PATH != xno; then
5801        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5802        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5803fi
5804
5805#--------#
5806# openGL #
5807#--------#
5808# checking gl header
5809
5810for ac_header in GL/gl.h
5811do
5812as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5813if eval "test \"\${$as_ac_Header+set}\" = set"; then
5814  echo "$as_me:$LINENO: checking for $ac_header" >&5
5815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5816if eval "test \"\${$as_ac_Header+set}\" = set"; then
5817  echo $ECHO_N "(cached) $ECHO_C" >&6
5818fi
5819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5821else
5822  # Is the header compilable?
5823echo "$as_me:$LINENO: checking $ac_header usability" >&5
5824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5825cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h.  */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h.  */
5831$ac_includes_default
5832#include <$ac_header>
5833_ACEOF
5834rm -f conftest.$ac_objext
5835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836  (eval $ac_compile) 2>conftest.er1
5837  ac_status=$?
5838  grep -v '^ *+' conftest.er1 >conftest.err
5839  rm -f conftest.er1
5840  cat conftest.err >&5
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); } &&
5843         { ac_try='test -z "$ac_c_werror_flag"
5844                         || test ! -s conftest.err'
5845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846  (eval $ac_try) 2>&5
5847  ac_status=$?
5848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849  (exit $ac_status); }; } &&
5850         { ac_try='test -s conftest.$ac_objext'
5851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852  (eval $ac_try) 2>&5
5853  ac_status=$?
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); }; }; then
5856  ac_header_compiler=yes
5857else
5858  echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
5861ac_header_compiler=no
5862fi
5863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5865echo "${ECHO_T}$ac_header_compiler" >&6
5866
5867# Is the header present?
5868echo "$as_me:$LINENO: checking $ac_header presence" >&5
5869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5870cat >conftest.$ac_ext <<_ACEOF
5871/* confdefs.h.  */
5872_ACEOF
5873cat confdefs.h >>conftest.$ac_ext
5874cat >>conftest.$ac_ext <<_ACEOF
5875/* end confdefs.h.  */
5876#include <$ac_header>
5877_ACEOF
5878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5879  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5880  ac_status=$?
5881  grep -v '^ *+' conftest.er1 >conftest.err
5882  rm -f conftest.er1
5883  cat conftest.err >&5
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); } >/dev/null; then
5886  if test -s conftest.err; then
5887    ac_cpp_err=$ac_c_preproc_warn_flag
5888    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5889  else
5890    ac_cpp_err=
5891  fi
5892else
5893  ac_cpp_err=yes
5894fi
5895if test -z "$ac_cpp_err"; then
5896  ac_header_preproc=yes
5897else
5898  echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901  ac_header_preproc=no
5902fi
5903rm -f conftest.err conftest.$ac_ext
5904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5905echo "${ECHO_T}$ac_header_preproc" >&6
5906
5907# So?  What about this header?
5908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5909  yes:no: )
5910    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5912    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5914    ac_header_preproc=yes
5915    ;;
5916  no:yes:* )
5917    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5919    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5920echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5921    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5923    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5924echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5925    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5927    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5929    (
5930      cat <<\_ASBOX
5931## ---------------------------------------------- ##
5932## Report this to orxonox-dev at mail.datacore.ch ##
5933## ---------------------------------------------- ##
5934_ASBOX
5935    ) |
5936      sed "s/^/$as_me: WARNING:     /" >&2
5937    ;;
5938esac
5939echo "$as_me:$LINENO: checking for $ac_header" >&5
5940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5941if eval "test \"\${$as_ac_Header+set}\" = set"; then
5942  echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944  eval "$as_ac_Header=\$ac_header_preproc"
5945fi
5946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5948
5949fi
5950if test `eval echo '${'$as_ac_Header'}'` = yes; then
5951  cat >>confdefs.h <<_ACEOF
5952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5953_ACEOF
5954
5955else
5956  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5957echo "$as_me: error: cannot find opengl headers" >&2;}
5958   { (exit 1); exit 1; }; }
5959fi
5960
5961done
5962
5963
5964#  checking for Unix GL
5965   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5966echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5967if test "${ac_cv_lib_GL_main+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  ac_check_lib_save_LIBS=$LIBS
5971LIBS="-lGL  $LIBS"
5972cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h.  */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h.  */
5978
5979
5980int
5981main ()
5982{
5983main ();
5984  ;
5985  return 0;
5986}
5987_ACEOF
5988rm -f conftest.$ac_objext conftest$ac_exeext
5989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5990  (eval $ac_link) 2>conftest.er1
5991  ac_status=$?
5992  grep -v '^ *+' conftest.er1 >conftest.err
5993  rm -f conftest.er1
5994  cat conftest.err >&5
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); } &&
5997         { ac_try='test -z "$ac_c_werror_flag"
5998                         || test ! -s conftest.err'
5999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000  (eval $ac_try) 2>&5
6001  ac_status=$?
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); }; } &&
6004         { ac_try='test -s conftest$ac_exeext'
6005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006  (eval $ac_try) 2>&5
6007  ac_status=$?
6008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009  (exit $ac_status); }; }; then
6010  ac_cv_lib_GL_main=yes
6011else
6012  echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
6014
6015ac_cv_lib_GL_main=no
6016fi
6017rm -f conftest.err conftest.$ac_objext \
6018      conftest$ac_exeext conftest.$ac_ext
6019LIBS=$ac_check_lib_save_LIBS
6020fi
6021echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6022echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6023if test $ac_cv_lib_GL_main = yes; then
6024  FOUND_GL=yes; LIBS="$LIBS -lGL"
6025fi
6026
6027   if test x$FOUND_GL != xyes ; then
6028         echo "------------------"
6029         echo "opengl not found."
6030         echo "please install the opengl package which can be found at http://www.opengl.org"
6031         echo "------------------"
6032         exit -1
6033   fi
6034
6035# cheking for GLU-header
6036
6037for ac_header in GL/glu.h
6038do
6039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6040if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041  echo "$as_me:$LINENO: checking for $ac_header" >&5
6042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6043if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044  echo $ECHO_N "(cached) $ECHO_C" >&6
6045fi
6046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6048else
6049  # Is the header compilable?
6050echo "$as_me:$LINENO: checking $ac_header usability" >&5
6051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6052cat >conftest.$ac_ext <<_ACEOF
6053/* confdefs.h.  */
6054_ACEOF
6055cat confdefs.h >>conftest.$ac_ext
6056cat >>conftest.$ac_ext <<_ACEOF
6057/* end confdefs.h.  */
6058$ac_includes_default
6059#include <$ac_header>
6060_ACEOF
6061rm -f conftest.$ac_objext
6062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063  (eval $ac_compile) 2>conftest.er1
6064  ac_status=$?
6065  grep -v '^ *+' conftest.er1 >conftest.err
6066  rm -f conftest.er1
6067  cat conftest.err >&5
6068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069  (exit $ac_status); } &&
6070         { ac_try='test -z "$ac_c_werror_flag"
6071                         || test ! -s conftest.err'
6072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073  (eval $ac_try) 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; } &&
6077         { ac_try='test -s conftest.$ac_objext'
6078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079  (eval $ac_try) 2>&5
6080  ac_status=$?
6081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); }; }; then
6083  ac_header_compiler=yes
6084else
6085  echo "$as_me: failed program was:" >&5
6086sed 's/^/| /' conftest.$ac_ext >&5
6087
6088ac_header_compiler=no
6089fi
6090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6092echo "${ECHO_T}$ac_header_compiler" >&6
6093
6094# Is the header present?
6095echo "$as_me:$LINENO: checking $ac_header presence" >&5
6096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6097cat >conftest.$ac_ext <<_ACEOF
6098/* confdefs.h.  */
6099_ACEOF
6100cat confdefs.h >>conftest.$ac_ext
6101cat >>conftest.$ac_ext <<_ACEOF
6102/* end confdefs.h.  */
6103#include <$ac_header>
6104_ACEOF
6105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6107  ac_status=$?
6108  grep -v '^ *+' conftest.er1 >conftest.err
6109  rm -f conftest.er1
6110  cat conftest.err >&5
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); } >/dev/null; then
6113  if test -s conftest.err; then
6114    ac_cpp_err=$ac_c_preproc_warn_flag
6115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6116  else
6117    ac_cpp_err=
6118  fi
6119else
6120  ac_cpp_err=yes
6121fi
6122if test -z "$ac_cpp_err"; then
6123  ac_header_preproc=yes
6124else
6125  echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
6127
6128  ac_header_preproc=no
6129fi
6130rm -f conftest.err conftest.$ac_ext
6131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6132echo "${ECHO_T}$ac_header_preproc" >&6
6133
6134# So?  What about this header?
6135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6136  yes:no: )
6137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6141    ac_header_preproc=yes
6142    ;;
6143  no:yes:* )
6144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6156    (
6157      cat <<\_ASBOX
6158## ---------------------------------------------- ##
6159## Report this to orxonox-dev at mail.datacore.ch ##
6160## ---------------------------------------------- ##
6161_ASBOX
6162    ) |
6163      sed "s/^/$as_me: WARNING:     /" >&2
6164    ;;
6165esac
6166echo "$as_me:$LINENO: checking for $ac_header" >&5
6167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6168if eval "test \"\${$as_ac_Header+set}\" = set"; then
6169  echo $ECHO_N "(cached) $ECHO_C" >&6
6170else
6171  eval "$as_ac_Header=\$ac_header_preproc"
6172fi
6173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6175
6176fi
6177if test `eval echo '${'$as_ac_Header'}'` = yes; then
6178  cat >>confdefs.h <<_ACEOF
6179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6180_ACEOF
6181
6182else
6183  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6184echo "$as_me: error: cannot find opengl headers" >&2;}
6185   { (exit 1); exit 1; }; }
6186fi
6187
6188done
6189
6190    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
6191echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
6192if test "${ac_cv_lib_GLU_main+set}" = set; then
6193  echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195  ac_check_lib_save_LIBS=$LIBS
6196LIBS="-lGLU  $LIBS"
6197cat >conftest.$ac_ext <<_ACEOF
6198/* confdefs.h.  */
6199_ACEOF
6200cat confdefs.h >>conftest.$ac_ext
6201cat >>conftest.$ac_ext <<_ACEOF
6202/* end confdefs.h.  */
6203
6204
6205int
6206main ()
6207{
6208main ();
6209  ;
6210  return 0;
6211}
6212_ACEOF
6213rm -f conftest.$ac_objext conftest$ac_exeext
6214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6215  (eval $ac_link) 2>conftest.er1
6216  ac_status=$?
6217  grep -v '^ *+' conftest.er1 >conftest.err
6218  rm -f conftest.er1
6219  cat conftest.err >&5
6220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221  (exit $ac_status); } &&
6222         { ac_try='test -z "$ac_c_werror_flag"
6223                         || test ! -s conftest.err'
6224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225  (eval $ac_try) 2>&5
6226  ac_status=$?
6227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228  (exit $ac_status); }; } &&
6229         { ac_try='test -s conftest$ac_exeext'
6230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231  (eval $ac_try) 2>&5
6232  ac_status=$?
6233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234  (exit $ac_status); }; }; then
6235  ac_cv_lib_GLU_main=yes
6236else
6237  echo "$as_me: failed program was:" >&5
6238sed 's/^/| /' conftest.$ac_ext >&5
6239
6240ac_cv_lib_GLU_main=no
6241fi
6242rm -f conftest.err conftest.$ac_objext \
6243      conftest$ac_exeext conftest.$ac_ext
6244LIBS=$ac_check_lib_save_LIBS
6245fi
6246echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
6247echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
6248if test $ac_cv_lib_GLU_main = yes; then
6249  FOUND_GLU=yes; LIBS="$LIBS -lGLU"
6250fi
6251
6252    if test x$FOUND_GLU != xyes ; then
6253         echo "------------------"
6254         echo "GLU library not found."
6255         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6256         echo "------------------"
6257         exit -1
6258    fi
6259
6260# checking for GLEW-headers
6261
6262for ac_header in GL/glew.h
6263do
6264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6265if eval "test \"\${$as_ac_Header+set}\" = set"; then
6266  echo "$as_me:$LINENO: checking for $ac_header" >&5
6267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6268if eval "test \"\${$as_ac_Header+set}\" = set"; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270fi
6271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6273else
6274  # Is the header compilable?
6275echo "$as_me:$LINENO: checking $ac_header usability" >&5
6276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6277cat >conftest.$ac_ext <<_ACEOF
6278/* confdefs.h.  */
6279_ACEOF
6280cat confdefs.h >>conftest.$ac_ext
6281cat >>conftest.$ac_ext <<_ACEOF
6282/* end confdefs.h.  */
6283$ac_includes_default
6284#include <$ac_header>
6285_ACEOF
6286rm -f conftest.$ac_objext
6287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288  (eval $ac_compile) 2>conftest.er1
6289  ac_status=$?
6290  grep -v '^ *+' conftest.er1 >conftest.err
6291  rm -f conftest.er1
6292  cat conftest.err >&5
6293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294  (exit $ac_status); } &&
6295         { ac_try='test -z "$ac_c_werror_flag"
6296                         || test ! -s conftest.err'
6297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298  (eval $ac_try) 2>&5
6299  ac_status=$?
6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); }; } &&
6302         { ac_try='test -s conftest.$ac_objext'
6303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304  (eval $ac_try) 2>&5
6305  ac_status=$?
6306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); }; }; then
6308  ac_header_compiler=yes
6309else
6310  echo "$as_me: failed program was:" >&5
6311sed 's/^/| /' conftest.$ac_ext >&5
6312
6313ac_header_compiler=no
6314fi
6315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6316echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6317echo "${ECHO_T}$ac_header_compiler" >&6
6318
6319# Is the header present?
6320echo "$as_me:$LINENO: checking $ac_header presence" >&5
6321echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6322cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h.  */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h.  */
6328#include <$ac_header>
6329_ACEOF
6330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6331  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6332  ac_status=$?
6333  grep -v '^ *+' conftest.er1 >conftest.err
6334  rm -f conftest.er1
6335  cat conftest.err >&5
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); } >/dev/null; then
6338  if test -s conftest.err; then
6339    ac_cpp_err=$ac_c_preproc_warn_flag
6340    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6341  else
6342    ac_cpp_err=
6343  fi
6344else
6345  ac_cpp_err=yes
6346fi
6347if test -z "$ac_cpp_err"; then
6348  ac_header_preproc=yes
6349else
6350  echo "$as_me: failed program was:" >&5
6351sed 's/^/| /' conftest.$ac_ext >&5
6352
6353  ac_header_preproc=no
6354fi
6355rm -f conftest.err conftest.$ac_ext
6356echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6357echo "${ECHO_T}$ac_header_preproc" >&6
6358
6359# So?  What about this header?
6360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6361  yes:no: )
6362    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6363echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6364    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6365echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6366    ac_header_preproc=yes
6367    ;;
6368  no:yes:* )
6369    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6370echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6371    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6372echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6373    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6374echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6375    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6376echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6377    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6378echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6379    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6380echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6381    (
6382      cat <<\_ASBOX
6383## ---------------------------------------------- ##
6384## Report this to orxonox-dev at mail.datacore.ch ##
6385## ---------------------------------------------- ##
6386_ASBOX
6387    ) |
6388      sed "s/^/$as_me: WARNING:     /" >&2
6389    ;;
6390esac
6391echo "$as_me:$LINENO: checking for $ac_header" >&5
6392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394  echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396  eval "$as_ac_Header=\$ac_header_preproc"
6397fi
6398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400
6401fi
6402if test `eval echo '${'$as_ac_Header'}'` = yes; then
6403  cat >>confdefs.h <<_ACEOF
6404#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6405_ACEOF
6406
6407else
6408  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6409echo "$as_me: error: cannot find glew headers" >&2;}
6410   { (exit 1); exit 1; }; }
6411fi
6412
6413done
6414
6415# checking for GLEW-lib
6416  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6417echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6418if test "${ac_cv_lib_GLEW_main+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  ac_check_lib_save_LIBS=$LIBS
6422LIBS="-lGLEW  $LIBS"
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h.  */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h.  */
6429
6430
6431int
6432main ()
6433{
6434main ();
6435  ;
6436  return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext conftest$ac_exeext
6440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441  (eval $ac_link) 2>conftest.er1
6442  ac_status=$?
6443  grep -v '^ *+' conftest.er1 >conftest.err
6444  rm -f conftest.er1
6445  cat conftest.err >&5
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); } &&
6448         { ac_try='test -z "$ac_c_werror_flag"
6449                         || test ! -s conftest.err'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; } &&
6455         { ac_try='test -s conftest$ac_exeext'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; }; then
6461  ac_cv_lib_GLEW_main=yes
6462else
6463  echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466ac_cv_lib_GLEW_main=no
6467fi
6468rm -f conftest.err conftest.$ac_objext \
6469      conftest$ac_exeext conftest.$ac_ext
6470LIBS=$ac_check_lib_save_LIBS
6471fi
6472echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6473echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6474if test $ac_cv_lib_GLEW_main = yes; then
6475  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
6476fi
6477
6478   if test x$FOUND_GLEW != xyes ; then
6479         echo "------------------"
6480         echo "glew not found."
6481         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6482         echo "------------------"
6483         exit -1
6484   fi
6485
6486#--------#
6487# openAL #
6488#--------#
6489# checking for openAL-headers
6490
6491for ac_header in AL/al.h
6492do
6493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495  echo "$as_me:$LINENO: checking for $ac_header" >&5
6496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6497if eval "test \"\${$as_ac_Header+set}\" = set"; then
6498  echo $ECHO_N "(cached) $ECHO_C" >&6
6499fi
6500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6502else
6503  # Is the header compilable?
6504echo "$as_me:$LINENO: checking $ac_header usability" >&5
6505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6506cat >conftest.$ac_ext <<_ACEOF
6507/* confdefs.h.  */
6508_ACEOF
6509cat confdefs.h >>conftest.$ac_ext
6510cat >>conftest.$ac_ext <<_ACEOF
6511/* end confdefs.h.  */
6512$ac_includes_default
6513#include <$ac_header>
6514_ACEOF
6515rm -f conftest.$ac_objext
6516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517  (eval $ac_compile) 2>conftest.er1
6518  ac_status=$?
6519  grep -v '^ *+' conftest.er1 >conftest.err
6520  rm -f conftest.er1
6521  cat conftest.err >&5
6522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523  (exit $ac_status); } &&
6524         { ac_try='test -z "$ac_c_werror_flag"
6525                         || test ! -s conftest.err'
6526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527  (eval $ac_try) 2>&5
6528  ac_status=$?
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); }; } &&
6531         { ac_try='test -s conftest.$ac_objext'
6532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533  (eval $ac_try) 2>&5
6534  ac_status=$?
6535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536  (exit $ac_status); }; }; then
6537  ac_header_compiler=yes
6538else
6539  echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542ac_header_compiler=no
6543fi
6544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6545echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6546echo "${ECHO_T}$ac_header_compiler" >&6
6547
6548# Is the header present?
6549echo "$as_me:$LINENO: checking $ac_header presence" >&5
6550echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6551cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h.  */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h.  */
6557#include <$ac_header>
6558_ACEOF
6559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6560  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6561  ac_status=$?
6562  grep -v '^ *+' conftest.er1 >conftest.err
6563  rm -f conftest.er1
6564  cat conftest.err >&5
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); } >/dev/null; then
6567  if test -s conftest.err; then
6568    ac_cpp_err=$ac_c_preproc_warn_flag
6569    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6570  else
6571    ac_cpp_err=
6572  fi
6573else
6574  ac_cpp_err=yes
6575fi
6576if test -z "$ac_cpp_err"; then
6577  ac_header_preproc=yes
6578else
6579  echo "$as_me: failed program was:" >&5
6580sed 's/^/| /' conftest.$ac_ext >&5
6581
6582  ac_header_preproc=no
6583fi
6584rm -f conftest.err conftest.$ac_ext
6585echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6586echo "${ECHO_T}$ac_header_preproc" >&6
6587
6588# So?  What about this header?
6589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6590  yes:no: )
6591    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6592echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6593    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6594echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6595    ac_header_preproc=yes
6596    ;;
6597  no:yes:* )
6598    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6599echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6600    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6601echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6602    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6603echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6604    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6605echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6606    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6608    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6609echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6610    (
6611      cat <<\_ASBOX
6612## ---------------------------------------------- ##
6613## Report this to orxonox-dev at mail.datacore.ch ##
6614## ---------------------------------------------- ##
6615_ASBOX
6616    ) |
6617      sed "s/^/$as_me: WARNING:     /" >&2
6618    ;;
6619esac
6620echo "$as_me:$LINENO: checking for $ac_header" >&5
6621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6622if eval "test \"\${$as_ac_Header+set}\" = set"; then
6623  echo $ECHO_N "(cached) $ECHO_C" >&6
6624else
6625  eval "$as_ac_Header=\$ac_header_preproc"
6626fi
6627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6629
6630fi
6631if test `eval echo '${'$as_ac_Header'}'` = yes; then
6632  cat >>confdefs.h <<_ACEOF
6633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6634_ACEOF
6635
6636else
6637  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6638echo "$as_me: error: cannot find openAL header." >&2;}
6639   { (exit 1); exit 1; }; }
6640fi
6641
6642done
6643
6644# checking for openAL-lib
6645  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6646echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6647if test "${ac_cv_lib_openal_main+set}" = set; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650  ac_check_lib_save_LIBS=$LIBS
6651LIBS="-lopenal  $LIBS"
6652cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h.  */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h.  */
6658
6659
6660int
6661main ()
6662{
6663main ();
6664  ;
6665  return 0;
6666}
6667_ACEOF
6668rm -f conftest.$ac_objext conftest$ac_exeext
6669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670  (eval $ac_link) 2>conftest.er1
6671  ac_status=$?
6672  grep -v '^ *+' conftest.er1 >conftest.err
6673  rm -f conftest.er1
6674  cat conftest.err >&5
6675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676  (exit $ac_status); } &&
6677         { ac_try='test -z "$ac_c_werror_flag"
6678                         || test ! -s conftest.err'
6679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680  (eval $ac_try) 2>&5
6681  ac_status=$?
6682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683  (exit $ac_status); }; } &&
6684         { ac_try='test -s conftest$ac_exeext'
6685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686  (eval $ac_try) 2>&5
6687  ac_status=$?
6688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689  (exit $ac_status); }; }; then
6690  ac_cv_lib_openal_main=yes
6691else
6692  echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695ac_cv_lib_openal_main=no
6696fi
6697rm -f conftest.err conftest.$ac_objext \
6698      conftest$ac_exeext conftest.$ac_ext
6699LIBS=$ac_check_lib_save_LIBS
6700fi
6701echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6702echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6703if test $ac_cv_lib_openal_main = yes; then
6704  FOUND_OPENAL=yes; LIBS="$LIBS -lopenal"
6705fi
6706
6707     if test x$FOUND_OPENAL != xyes ; then
6708        echo "------------------"
6709        echo "openal library not found."
6710        echo "please install the openal library, which can be found at http://www.openal.org"
6711        echo "------------------"
6712        exit -1
6713     fi
6714# checking for alut
6715
6716for ac_header in AL/alut.h
6717do
6718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6719if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720  echo "$as_me:$LINENO: checking for $ac_header" >&5
6721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6722if eval "test \"\${$as_ac_Header+set}\" = set"; then
6723  echo $ECHO_N "(cached) $ECHO_C" >&6
6724fi
6725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6727else
6728  # Is the header compilable?
6729echo "$as_me:$LINENO: checking $ac_header usability" >&5
6730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6731cat >conftest.$ac_ext <<_ACEOF
6732/* confdefs.h.  */
6733_ACEOF
6734cat confdefs.h >>conftest.$ac_ext
6735cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h.  */
6737$ac_includes_default
6738#include <$ac_header>
6739_ACEOF
6740rm -f conftest.$ac_objext
6741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742  (eval $ac_compile) 2>conftest.er1
6743  ac_status=$?
6744  grep -v '^ *+' conftest.er1 >conftest.err
6745  rm -f conftest.er1
6746  cat conftest.err >&5
6747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748  (exit $ac_status); } &&
6749         { ac_try='test -z "$ac_c_werror_flag"
6750                         || test ! -s conftest.err'
6751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752  (eval $ac_try) 2>&5
6753  ac_status=$?
6754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755  (exit $ac_status); }; } &&
6756         { ac_try='test -s conftest.$ac_objext'
6757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758  (eval $ac_try) 2>&5
6759  ac_status=$?
6760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761  (exit $ac_status); }; }; then
6762  ac_header_compiler=yes
6763else
6764  echo "$as_me: failed program was:" >&5
6765sed 's/^/| /' conftest.$ac_ext >&5
6766
6767ac_header_compiler=no
6768fi
6769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6771echo "${ECHO_T}$ac_header_compiler" >&6
6772
6773# Is the header present?
6774echo "$as_me:$LINENO: checking $ac_header presence" >&5
6775echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6776cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h.  */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h.  */
6782#include <$ac_header>
6783_ACEOF
6784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6786  ac_status=$?
6787  grep -v '^ *+' conftest.er1 >conftest.err
6788  rm -f conftest.er1
6789  cat conftest.err >&5
6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); } >/dev/null; then
6792  if test -s conftest.err; then
6793    ac_cpp_err=$ac_c_preproc_warn_flag
6794    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6795  else
6796    ac_cpp_err=
6797  fi
6798else
6799  ac_cpp_err=yes
6800fi
6801if test -z "$ac_cpp_err"; then
6802  ac_header_preproc=yes
6803else
6804  echo "$as_me: failed program was:" >&5
6805sed 's/^/| /' conftest.$ac_ext >&5
6806
6807  ac_header_preproc=no
6808fi
6809rm -f conftest.err conftest.$ac_ext
6810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6811echo "${ECHO_T}$ac_header_preproc" >&6
6812
6813# So?  What about this header?
6814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6815  yes:no: )
6816    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6818    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6820    ac_header_preproc=yes
6821    ;;
6822  no:yes:* )
6823    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6825    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6826echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6827    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6829    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6830echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6831    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6833    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6835    (
6836      cat <<\_ASBOX
6837## ---------------------------------------------- ##
6838## Report this to orxonox-dev at mail.datacore.ch ##
6839## ---------------------------------------------- ##
6840_ASBOX
6841    ) |
6842      sed "s/^/$as_me: WARNING:     /" >&2
6843    ;;
6844esac
6845echo "$as_me:$LINENO: checking for $ac_header" >&5
6846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6847if eval "test \"\${$as_ac_Header+set}\" = set"; then
6848  echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850  eval "$as_ac_Header=\$ac_header_preproc"
6851fi
6852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6854
6855fi
6856if test `eval echo '${'$as_ac_Header'}'` = yes; then
6857  cat >>confdefs.h <<_ACEOF
6858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6859_ACEOF
6860
6861else
6862  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6863echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6864   { (exit 1); exit 1; }; }
6865fi
6866
6867done
6868
6869  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6870echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6871if test "${ac_cv_lib_alut_main+set}" = set; then
6872  echo $ECHO_N "(cached) $ECHO_C" >&6
6873else
6874  ac_check_lib_save_LIBS=$LIBS
6875LIBS="-lalut  $LIBS"
6876cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h.  */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h.  */
6882
6883
6884int
6885main ()
6886{
6887main ();
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892rm -f conftest.$ac_objext conftest$ac_exeext
6893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894  (eval $ac_link) 2>conftest.er1
6895  ac_status=$?
6896  grep -v '^ *+' conftest.er1 >conftest.err
6897  rm -f conftest.er1
6898  cat conftest.err >&5
6899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900  (exit $ac_status); } &&
6901         { ac_try='test -z "$ac_c_werror_flag"
6902                         || test ! -s conftest.err'
6903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904  (eval $ac_try) 2>&5
6905  ac_status=$?
6906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907  (exit $ac_status); }; } &&
6908         { ac_try='test -s conftest$ac_exeext'
6909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910  (eval $ac_try) 2>&5
6911  ac_status=$?
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); }; }; then
6914  ac_cv_lib_alut_main=yes
6915else
6916  echo "$as_me: failed program was:" >&5
6917sed 's/^/| /' conftest.$ac_ext >&5
6918
6919ac_cv_lib_alut_main=no
6920fi
6921rm -f conftest.err conftest.$ac_objext \
6922      conftest$ac_exeext conftest.$ac_ext
6923LIBS=$ac_check_lib_save_LIBS
6924fi
6925echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6926echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6927if test $ac_cv_lib_alut_main = yes; then
6928  FOUND_ALUT=yes; LIBS="-lalut $LIBS"
6929fi
6930
6931
6932#-----#
6933# SDL #
6934#-----#
6935# checking for SDL
6936  echo "$as_me:$LINENO: checking for SDL-version" >&5
6937echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6938  SDL_VERSION=`sdl-config --version`
6939  echo $SDL_VERSION
6940
6941   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6942
6943for ac_header in SDL.h
6944do
6945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6946if eval "test \"\${$as_ac_Header+set}\" = set"; then
6947  echo "$as_me:$LINENO: checking for $ac_header" >&5
6948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6949if eval "test \"\${$as_ac_Header+set}\" = set"; then
6950  echo $ECHO_N "(cached) $ECHO_C" >&6
6951fi
6952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6954else
6955  # Is the header compilable?
6956echo "$as_me:$LINENO: checking $ac_header usability" >&5
6957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6958cat >conftest.$ac_ext <<_ACEOF
6959/* confdefs.h.  */
6960_ACEOF
6961cat confdefs.h >>conftest.$ac_ext
6962cat >>conftest.$ac_ext <<_ACEOF
6963/* end confdefs.h.  */
6964$ac_includes_default
6965#include <$ac_header>
6966_ACEOF
6967rm -f conftest.$ac_objext
6968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969  (eval $ac_compile) 2>conftest.er1
6970  ac_status=$?
6971  grep -v '^ *+' conftest.er1 >conftest.err
6972  rm -f conftest.er1
6973  cat conftest.err >&5
6974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975  (exit $ac_status); } &&
6976         { ac_try='test -z "$ac_c_werror_flag"
6977                         || test ! -s conftest.err'
6978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979  (eval $ac_try) 2>&5
6980  ac_status=$?
6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982  (exit $ac_status); }; } &&
6983         { ac_try='test -s conftest.$ac_objext'
6984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985  (eval $ac_try) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); }; }; then
6989  ac_header_compiler=yes
6990else
6991  echo "$as_me: failed program was:" >&5
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
6994ac_header_compiler=no
6995fi
6996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6998echo "${ECHO_T}$ac_header_compiler" >&6
6999
7000# Is the header present?
7001echo "$as_me:$LINENO: checking $ac_header presence" >&5
7002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7003cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h.  */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h.  */
7009#include <$ac_header>
7010_ACEOF
7011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7013  ac_status=$?
7014  grep -v '^ *+' conftest.er1 >conftest.err
7015  rm -f conftest.er1
7016  cat conftest.err >&5
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); } >/dev/null; then
7019  if test -s conftest.err; then
7020    ac_cpp_err=$ac_c_preproc_warn_flag
7021    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7022  else
7023    ac_cpp_err=
7024  fi
7025else
7026  ac_cpp_err=yes
7027fi
7028if test -z "$ac_cpp_err"; then
7029  ac_header_preproc=yes
7030else
7031  echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
7033
7034  ac_header_preproc=no
7035fi
7036rm -f conftest.err conftest.$ac_ext
7037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7038echo "${ECHO_T}$ac_header_preproc" >&6
7039
7040# So?  What about this header?
7041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7042  yes:no: )
7043    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7045    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7047    ac_header_preproc=yes
7048    ;;
7049  no:yes:* )
7050    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7052    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7053echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7054    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7056    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7057echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7058    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7060    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7062    (
7063      cat <<\_ASBOX
7064## ---------------------------------------------- ##
7065## Report this to orxonox-dev at mail.datacore.ch ##
7066## ---------------------------------------------- ##
7067_ASBOX
7068    ) |
7069      sed "s/^/$as_me: WARNING:     /" >&2
7070    ;;
7071esac
7072echo "$as_me:$LINENO: checking for $ac_header" >&5
7073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7074if eval "test \"\${$as_ac_Header+set}\" = set"; then
7075  echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077  eval "$as_ac_Header=\$ac_header_preproc"
7078fi
7079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7081
7082fi
7083if test `eval echo '${'$as_ac_Header'}'` = yes; then
7084  cat >>confdefs.h <<_ACEOF
7085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7086_ACEOF
7087
7088else
7089
7090for ac_header in SDL/SDL.h
7091do
7092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7093if eval "test \"\${$as_ac_Header+set}\" = set"; then
7094  echo "$as_me:$LINENO: checking for $ac_header" >&5
7095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7096if eval "test \"\${$as_ac_Header+set}\" = set"; then
7097  echo $ECHO_N "(cached) $ECHO_C" >&6
7098fi
7099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7101else
7102  # Is the header compilable?
7103echo "$as_me:$LINENO: checking $ac_header usability" >&5
7104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7105cat >conftest.$ac_ext <<_ACEOF
7106/* confdefs.h.  */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h.  */
7111$ac_includes_default
7112#include <$ac_header>
7113_ACEOF
7114rm -f conftest.$ac_objext
7115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116  (eval $ac_compile) 2>conftest.er1
7117  ac_status=$?
7118  grep -v '^ *+' conftest.er1 >conftest.err
7119  rm -f conftest.er1
7120  cat conftest.err >&5
7121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122  (exit $ac_status); } &&
7123         { ac_try='test -z "$ac_c_werror_flag"
7124                         || test ! -s conftest.err'
7125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126  (eval $ac_try) 2>&5
7127  ac_status=$?
7128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129  (exit $ac_status); }; } &&
7130         { ac_try='test -s conftest.$ac_objext'
7131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132  (eval $ac_try) 2>&5
7133  ac_status=$?
7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135  (exit $ac_status); }; }; then
7136  ac_header_compiler=yes
7137else
7138  echo "$as_me: failed program was:" >&5
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7141ac_header_compiler=no
7142fi
7143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7145echo "${ECHO_T}$ac_header_compiler" >&6
7146
7147# Is the header present?
7148echo "$as_me:$LINENO: checking $ac_header presence" >&5
7149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7150cat >conftest.$ac_ext <<_ACEOF
7151/* confdefs.h.  */
7152_ACEOF
7153cat confdefs.h >>conftest.$ac_ext
7154cat >>conftest.$ac_ext <<_ACEOF
7155/* end confdefs.h.  */
7156#include <$ac_header>
7157_ACEOF
7158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7159  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7160  ac_status=$?
7161  grep -v '^ *+' conftest.er1 >conftest.err
7162  rm -f conftest.er1
7163  cat conftest.err >&5
7164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165  (exit $ac_status); } >/dev/null; then
7166  if test -s conftest.err; then
7167    ac_cpp_err=$ac_c_preproc_warn_flag
7168    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7169  else
7170    ac_cpp_err=
7171  fi
7172else
7173  ac_cpp_err=yes
7174fi
7175if test -z "$ac_cpp_err"; then
7176  ac_header_preproc=yes
7177else
7178  echo "$as_me: failed program was:" >&5
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181  ac_header_preproc=no
7182fi
7183rm -f conftest.err conftest.$ac_ext
7184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7185echo "${ECHO_T}$ac_header_preproc" >&6
7186
7187# So?  What about this header?
7188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7189  yes:no: )
7190    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7192    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7194    ac_header_preproc=yes
7195    ;;
7196  no:yes:* )
7197    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7199    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7200echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7201    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7203    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7204echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7205    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7207    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7209    (
7210      cat <<\_ASBOX
7211## ---------------------------------------------- ##
7212## Report this to orxonox-dev at mail.datacore.ch ##
7213## ---------------------------------------------- ##
7214_ASBOX
7215    ) |
7216      sed "s/^/$as_me: WARNING:     /" >&2
7217    ;;
7218esac
7219echo "$as_me:$LINENO: checking for $ac_header" >&5
7220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222  echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224  eval "$as_ac_Header=\$ac_header_preproc"
7225fi
7226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7228
7229fi
7230if test `eval echo '${'$as_ac_Header'}'` = yes; then
7231  cat >>confdefs.h <<_ACEOF
7232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7233_ACEOF
7234
7235else
7236  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7237echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
7238   { (exit 1); exit 1; }; }
7239fi
7240
7241done
7242
7243fi
7244
7245done
7246
7247   LIBS="`sdl-config --libs` $LIBS"
7248   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7249echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7250if test "${ac_cv_lib_SDL_main+set}" = set; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253  ac_check_lib_save_LIBS=$LIBS
7254LIBS="-lSDL  $LIBS"
7255cat >conftest.$ac_ext <<_ACEOF
7256/* confdefs.h.  */
7257_ACEOF
7258cat confdefs.h >>conftest.$ac_ext
7259cat >>conftest.$ac_ext <<_ACEOF
7260/* end confdefs.h.  */
7261
7262
7263int
7264main ()
7265{
7266main ();
7267  ;
7268  return 0;
7269}
7270_ACEOF
7271rm -f conftest.$ac_objext conftest$ac_exeext
7272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273  (eval $ac_link) 2>conftest.er1
7274  ac_status=$?
7275  grep -v '^ *+' conftest.er1 >conftest.err
7276  rm -f conftest.er1
7277  cat conftest.err >&5
7278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279  (exit $ac_status); } &&
7280         { ac_try='test -z "$ac_c_werror_flag"
7281                         || test ! -s conftest.err'
7282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283  (eval $ac_try) 2>&5
7284  ac_status=$?
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); }; } &&
7287         { ac_try='test -s conftest$ac_exeext'
7288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289  (eval $ac_try) 2>&5
7290  ac_status=$?
7291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292  (exit $ac_status); }; }; then
7293  ac_cv_lib_SDL_main=yes
7294else
7295  echo "$as_me: failed program was:" >&5
7296sed 's/^/| /' conftest.$ac_ext >&5
7297
7298ac_cv_lib_SDL_main=no
7299fi
7300rm -f conftest.err conftest.$ac_objext \
7301      conftest$ac_exeext conftest.$ac_ext
7302LIBS=$ac_check_lib_save_LIBS
7303fi
7304echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7305echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7306if test $ac_cv_lib_SDL_main = yes; then
7307  FOUND_SDL=yes
7308fi
7309
7310    if test x$FOUND_SDL != xyes ; then
7311        echo "------------------"
7312        echo "SDL library not found."
7313        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7314        echo "------------------"
7315        exit -1
7316     fi
7317
7318    ;;
7319
7320#############
7321#-----------#
7322# MAC -OS X #
7323#-----------#
7324#############
7325 *darwin*)
7326 echo "OS X detected"
7327
7328 osX="yes"
7329
7330 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7331 LDFLAGS="$LDFLAGS -L/sw/lib"
7332# checking gl header
7333
7334for ac_header in OpenGL/gl.h
7335do
7336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337if eval "test \"\${$as_ac_Header+set}\" = set"; then
7338  echo "$as_me:$LINENO: checking for $ac_header" >&5
7339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7340if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341  echo $ECHO_N "(cached) $ECHO_C" >&6
7342fi
7343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7345else
7346  # Is the header compilable?
7347echo "$as_me:$LINENO: checking $ac_header usability" >&5
7348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7349cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h.  */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h.  */
7355$ac_includes_default
7356#include <$ac_header>
7357_ACEOF
7358rm -f conftest.$ac_objext
7359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360  (eval $ac_compile) 2>conftest.er1
7361  ac_status=$?
7362  grep -v '^ *+' conftest.er1 >conftest.err
7363  rm -f conftest.er1
7364  cat conftest.err >&5
7365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366  (exit $ac_status); } &&
7367         { ac_try='test -z "$ac_c_werror_flag"
7368                         || test ! -s conftest.err'
7369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370  (eval $ac_try) 2>&5
7371  ac_status=$?
7372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373  (exit $ac_status); }; } &&
7374         { ac_try='test -s conftest.$ac_objext'
7375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376  (eval $ac_try) 2>&5
7377  ac_status=$?
7378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379  (exit $ac_status); }; }; then
7380  ac_header_compiler=yes
7381else
7382  echo "$as_me: failed program was:" >&5
7383sed 's/^/| /' conftest.$ac_ext >&5
7384
7385ac_header_compiler=no
7386fi
7387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7389echo "${ECHO_T}$ac_header_compiler" >&6
7390
7391# Is the header present?
7392echo "$as_me:$LINENO: checking $ac_header presence" >&5
7393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7394cat >conftest.$ac_ext <<_ACEOF
7395/* confdefs.h.  */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h.  */
7400#include <$ac_header>
7401_ACEOF
7402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7403  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7404  ac_status=$?
7405  grep -v '^ *+' conftest.er1 >conftest.err
7406  rm -f conftest.er1
7407  cat conftest.err >&5
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); } >/dev/null; then
7410  if test -s conftest.err; then
7411    ac_cpp_err=$ac_c_preproc_warn_flag
7412    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7413  else
7414    ac_cpp_err=
7415  fi
7416else
7417  ac_cpp_err=yes
7418fi
7419if test -z "$ac_cpp_err"; then
7420  ac_header_preproc=yes
7421else
7422  echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
7424
7425  ac_header_preproc=no
7426fi
7427rm -f conftest.err conftest.$ac_ext
7428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7429echo "${ECHO_T}$ac_header_preproc" >&6
7430
7431# So?  What about this header?
7432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7433  yes:no: )
7434    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7436    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7438    ac_header_preproc=yes
7439    ;;
7440  no:yes:* )
7441    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7443    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7444echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7445    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7447    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7448echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7449    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7451    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7453    (
7454      cat <<\_ASBOX
7455## ---------------------------------------------- ##
7456## Report this to orxonox-dev at mail.datacore.ch ##
7457## ---------------------------------------------- ##
7458_ASBOX
7459    ) |
7460      sed "s/^/$as_me: WARNING:     /" >&2
7461    ;;
7462esac
7463echo "$as_me:$LINENO: checking for $ac_header" >&5
7464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7465if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468  eval "$as_ac_Header=\$ac_header_preproc"
7469fi
7470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7472
7473fi
7474if test `eval echo '${'$as_ac_Header'}'` = yes; then
7475  cat >>confdefs.h <<_ACEOF
7476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7477_ACEOF
7478
7479else
7480  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7481echo "$as_me: error: cannot find opengl headers" >&2;}
7482   { (exit 1); exit 1; }; }
7483fi
7484
7485done
7486
7487# cheking for GLU-header
7488
7489for ac_header in OpenGL/glu.h
7490do
7491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7492if eval "test \"\${$as_ac_Header+set}\" = set"; then
7493  echo "$as_me:$LINENO: checking for $ac_header" >&5
7494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7495if eval "test \"\${$as_ac_Header+set}\" = set"; then
7496  echo $ECHO_N "(cached) $ECHO_C" >&6
7497fi
7498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7500else
7501  # Is the header compilable?
7502echo "$as_me:$LINENO: checking $ac_header usability" >&5
7503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7504cat >conftest.$ac_ext <<_ACEOF
7505/* confdefs.h.  */
7506_ACEOF
7507cat confdefs.h >>conftest.$ac_ext
7508cat >>conftest.$ac_ext <<_ACEOF
7509/* end confdefs.h.  */
7510$ac_includes_default
7511#include <$ac_header>
7512_ACEOF
7513rm -f conftest.$ac_objext
7514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515  (eval $ac_compile) 2>conftest.er1
7516  ac_status=$?
7517  grep -v '^ *+' conftest.er1 >conftest.err
7518  rm -f conftest.er1
7519  cat conftest.err >&5
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); } &&
7522         { ac_try='test -z "$ac_c_werror_flag"
7523                         || test ! -s conftest.err'
7524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525  (eval $ac_try) 2>&5
7526  ac_status=$?
7527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528  (exit $ac_status); }; } &&
7529         { ac_try='test -s conftest.$ac_objext'
7530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531  (eval $ac_try) 2>&5
7532  ac_status=$?
7533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534  (exit $ac_status); }; }; then
7535  ac_header_compiler=yes
7536else
7537  echo "$as_me: failed program was:" >&5
7538sed 's/^/| /' conftest.$ac_ext >&5
7539
7540ac_header_compiler=no
7541fi
7542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7544echo "${ECHO_T}$ac_header_compiler" >&6
7545
7546# Is the header present?
7547echo "$as_me:$LINENO: checking $ac_header presence" >&5
7548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7549cat >conftest.$ac_ext <<_ACEOF
7550/* confdefs.h.  */
7551_ACEOF
7552cat confdefs.h >>conftest.$ac_ext
7553cat >>conftest.$ac_ext <<_ACEOF
7554/* end confdefs.h.  */
7555#include <$ac_header>
7556_ACEOF
7557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7558  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7559  ac_status=$?
7560  grep -v '^ *+' conftest.er1 >conftest.err
7561  rm -f conftest.er1
7562  cat conftest.err >&5
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); } >/dev/null; then
7565  if test -s conftest.err; then
7566    ac_cpp_err=$ac_c_preproc_warn_flag
7567    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7568  else
7569    ac_cpp_err=
7570  fi
7571else
7572  ac_cpp_err=yes
7573fi
7574if test -z "$ac_cpp_err"; then
7575  ac_header_preproc=yes
7576else
7577  echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580  ac_header_preproc=no
7581fi
7582rm -f conftest.err conftest.$ac_ext
7583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7584echo "${ECHO_T}$ac_header_preproc" >&6
7585
7586# So?  What about this header?
7587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7588  yes:no: )
7589    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7591    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7593    ac_header_preproc=yes
7594    ;;
7595  no:yes:* )
7596    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7598    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7599echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7600    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7602    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7603echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7604    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7606    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7608    (
7609      cat <<\_ASBOX
7610## ---------------------------------------------- ##
7611## Report this to orxonox-dev at mail.datacore.ch ##
7612## ---------------------------------------------- ##
7613_ASBOX
7614    ) |
7615      sed "s/^/$as_me: WARNING:     /" >&2
7616    ;;
7617esac
7618echo "$as_me:$LINENO: checking for $ac_header" >&5
7619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7620if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621  echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623  eval "$as_ac_Header=\$ac_header_preproc"
7624fi
7625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7627
7628fi
7629if test `eval echo '${'$as_ac_Header'}'` = yes; then
7630  cat >>confdefs.h <<_ACEOF
7631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7632_ACEOF
7633
7634else
7635  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7636echo "$as_me: error: cannot find opengl headers" >&2;}
7637   { (exit 1); exit 1; }; }
7638fi
7639
7640done
7641
7642
7643   LIBS="$LIBS -framework OpenGL"
7644
7645
7646
7647# checking for GLEW-headers
7648
7649for ac_header in GL/glew.h
7650do
7651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7652if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653  echo "$as_me:$LINENO: checking for $ac_header" >&5
7654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7655if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656  echo $ECHO_N "(cached) $ECHO_C" >&6
7657fi
7658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7660else
7661  # Is the header compilable?
7662echo "$as_me:$LINENO: checking $ac_header usability" >&5
7663echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7664cat >conftest.$ac_ext <<_ACEOF
7665/* confdefs.h.  */
7666_ACEOF
7667cat confdefs.h >>conftest.$ac_ext
7668cat >>conftest.$ac_ext <<_ACEOF
7669/* end confdefs.h.  */
7670$ac_includes_default
7671#include <$ac_header>
7672_ACEOF
7673rm -f conftest.$ac_objext
7674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675  (eval $ac_compile) 2>conftest.er1
7676  ac_status=$?
7677  grep -v '^ *+' conftest.er1 >conftest.err
7678  rm -f conftest.er1
7679  cat conftest.err >&5
7680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681  (exit $ac_status); } &&
7682         { ac_try='test -z "$ac_c_werror_flag"
7683                         || test ! -s conftest.err'
7684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685  (eval $ac_try) 2>&5
7686  ac_status=$?
7687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688  (exit $ac_status); }; } &&
7689         { ac_try='test -s conftest.$ac_objext'
7690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691  (eval $ac_try) 2>&5
7692  ac_status=$?
7693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694  (exit $ac_status); }; }; then
7695  ac_header_compiler=yes
7696else
7697  echo "$as_me: failed program was:" >&5
7698sed 's/^/| /' conftest.$ac_ext >&5
7699
7700ac_header_compiler=no
7701fi
7702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7704echo "${ECHO_T}$ac_header_compiler" >&6
7705
7706# Is the header present?
7707echo "$as_me:$LINENO: checking $ac_header presence" >&5
7708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7709cat >conftest.$ac_ext <<_ACEOF
7710/* confdefs.h.  */
7711_ACEOF
7712cat confdefs.h >>conftest.$ac_ext
7713cat >>conftest.$ac_ext <<_ACEOF
7714/* end confdefs.h.  */
7715#include <$ac_header>
7716_ACEOF
7717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7718  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7719  ac_status=$?
7720  grep -v '^ *+' conftest.er1 >conftest.err
7721  rm -f conftest.er1
7722  cat conftest.err >&5
7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); } >/dev/null; then
7725  if test -s conftest.err; then
7726    ac_cpp_err=$ac_c_preproc_warn_flag
7727    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7728  else
7729    ac_cpp_err=
7730  fi
7731else
7732  ac_cpp_err=yes
7733fi
7734if test -z "$ac_cpp_err"; then
7735  ac_header_preproc=yes
7736else
7737  echo "$as_me: failed program was:" >&5
7738sed 's/^/| /' conftest.$ac_ext >&5
7739
7740  ac_header_preproc=no
7741fi
7742rm -f conftest.err conftest.$ac_ext
7743echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7744echo "${ECHO_T}$ac_header_preproc" >&6
7745
7746# So?  What about this header?
7747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7748  yes:no: )
7749    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7753    ac_header_preproc=yes
7754    ;;
7755  no:yes:* )
7756    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7758    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7759echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7760    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7762    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7763echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7764    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7766    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7768    (
7769      cat <<\_ASBOX
7770## ---------------------------------------------- ##
7771## Report this to orxonox-dev at mail.datacore.ch ##
7772## ---------------------------------------------- ##
7773_ASBOX
7774    ) |
7775      sed "s/^/$as_me: WARNING:     /" >&2
7776    ;;
7777esac
7778echo "$as_me:$LINENO: checking for $ac_header" >&5
7779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7780if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781  echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783  eval "$as_ac_Header=\$ac_header_preproc"
7784fi
7785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7787
7788fi
7789if test `eval echo '${'$as_ac_Header'}'` = yes; then
7790  cat >>confdefs.h <<_ACEOF
7791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7792_ACEOF
7793
7794else
7795  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
7796echo "$as_me: error: cannot find glew headers" >&2;}
7797   { (exit 1); exit 1; }; }
7798fi
7799
7800done
7801
7802# checking for GLEW-lib
7803  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
7804echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
7805if test "${ac_cv_lib_GLEW_main+set}" = set; then
7806  echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808  ac_check_lib_save_LIBS=$LIBS
7809LIBS="-lGLEW  $LIBS"
7810cat >conftest.$ac_ext <<_ACEOF
7811/* confdefs.h.  */
7812_ACEOF
7813cat confdefs.h >>conftest.$ac_ext
7814cat >>conftest.$ac_ext <<_ACEOF
7815/* end confdefs.h.  */
7816
7817
7818int
7819main ()
7820{
7821main ();
7822  ;
7823  return 0;
7824}
7825_ACEOF
7826rm -f conftest.$ac_objext conftest$ac_exeext
7827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828  (eval $ac_link) 2>conftest.er1
7829  ac_status=$?
7830  grep -v '^ *+' conftest.er1 >conftest.err
7831  rm -f conftest.er1
7832  cat conftest.err >&5
7833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834  (exit $ac_status); } &&
7835         { ac_try='test -z "$ac_c_werror_flag"
7836                         || test ! -s conftest.err'
7837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838  (eval $ac_try) 2>&5
7839  ac_status=$?
7840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841  (exit $ac_status); }; } &&
7842         { ac_try='test -s conftest$ac_exeext'
7843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844  (eval $ac_try) 2>&5
7845  ac_status=$?
7846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847  (exit $ac_status); }; }; then
7848  ac_cv_lib_GLEW_main=yes
7849else
7850  echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
7853ac_cv_lib_GLEW_main=no
7854fi
7855rm -f conftest.err conftest.$ac_objext \
7856      conftest$ac_exeext conftest.$ac_ext
7857LIBS=$ac_check_lib_save_LIBS
7858fi
7859echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
7860echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
7861if test $ac_cv_lib_GLEW_main = yes; then
7862  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
7863fi
7864
7865   if test x$FOUND_GLEW != xyes ; then
7866         echo "------------------"
7867         echo "glew not found."
7868         echo "please install the glew package which can be found at http://glew.sourceforge.net"
7869         echo "------------------"
7870         exit -1
7871   fi
7872
7873
7874
7875for ac_header in OpenAL/al.h
7876do
7877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7878if eval "test \"\${$as_ac_Header+set}\" = set"; then
7879  echo "$as_me:$LINENO: checking for $ac_header" >&5
7880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7881if eval "test \"\${$as_ac_Header+set}\" = set"; then
7882  echo $ECHO_N "(cached) $ECHO_C" >&6
7883fi
7884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7886else
7887  # Is the header compilable?
7888echo "$as_me:$LINENO: checking $ac_header usability" >&5
7889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7890cat >conftest.$ac_ext <<_ACEOF
7891/* confdefs.h.  */
7892_ACEOF
7893cat confdefs.h >>conftest.$ac_ext
7894cat >>conftest.$ac_ext <<_ACEOF
7895/* end confdefs.h.  */
7896$ac_includes_default
7897#include <$ac_header>
7898_ACEOF
7899rm -f conftest.$ac_objext
7900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901  (eval $ac_compile) 2>conftest.er1
7902  ac_status=$?
7903  grep -v '^ *+' conftest.er1 >conftest.err
7904  rm -f conftest.er1
7905  cat conftest.err >&5
7906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907  (exit $ac_status); } &&
7908         { ac_try='test -z "$ac_c_werror_flag"
7909                         || test ! -s conftest.err'
7910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911  (eval $ac_try) 2>&5
7912  ac_status=$?
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); }; } &&
7915         { ac_try='test -s conftest.$ac_objext'
7916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917  (eval $ac_try) 2>&5
7918  ac_status=$?
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); }; }; then
7921  ac_header_compiler=yes
7922else
7923  echo "$as_me: failed program was:" >&5
7924sed 's/^/| /' conftest.$ac_ext >&5
7925
7926ac_header_compiler=no
7927fi
7928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7929echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7930echo "${ECHO_T}$ac_header_compiler" >&6
7931
7932# Is the header present?
7933echo "$as_me:$LINENO: checking $ac_header presence" >&5
7934echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7935cat >conftest.$ac_ext <<_ACEOF
7936/* confdefs.h.  */
7937_ACEOF
7938cat confdefs.h >>conftest.$ac_ext
7939cat >>conftest.$ac_ext <<_ACEOF
7940/* end confdefs.h.  */
7941#include <$ac_header>
7942_ACEOF
7943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7944  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7945  ac_status=$?
7946  grep -v '^ *+' conftest.er1 >conftest.err
7947  rm -f conftest.er1
7948  cat conftest.err >&5
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); } >/dev/null; then
7951  if test -s conftest.err; then
7952    ac_cpp_err=$ac_c_preproc_warn_flag
7953    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7954  else
7955    ac_cpp_err=
7956  fi
7957else
7958  ac_cpp_err=yes
7959fi
7960if test -z "$ac_cpp_err"; then
7961  ac_header_preproc=yes
7962else
7963  echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7966  ac_header_preproc=no
7967fi
7968rm -f conftest.err conftest.$ac_ext
7969echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7970echo "${ECHO_T}$ac_header_preproc" >&6
7971
7972# So?  What about this header?
7973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7974  yes:no: )
7975    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7977    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7979    ac_header_preproc=yes
7980    ;;
7981  no:yes:* )
7982    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7984    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7985echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7986    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7988    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7989echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7990    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7992    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7994    (
7995      cat <<\_ASBOX
7996## ---------------------------------------------- ##
7997## Report this to orxonox-dev at mail.datacore.ch ##
7998## ---------------------------------------------- ##
7999_ASBOX
8000    ) |
8001      sed "s/^/$as_me: WARNING:     /" >&2
8002    ;;
8003esac
8004echo "$as_me:$LINENO: checking for $ac_header" >&5
8005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8006if eval "test \"\${$as_ac_Header+set}\" = set"; then
8007  echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009  eval "$as_ac_Header=\$ac_header_preproc"
8010fi
8011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8013
8014fi
8015if test `eval echo '${'$as_ac_Header'}'` = yes; then
8016  cat >>confdefs.h <<_ACEOF
8017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8018_ACEOF
8019
8020else
8021  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
8022echo "$as_me: error: cannot find opengl headers" >&2;}
8023   { (exit 1); exit 1; }; }
8024fi
8025
8026done
8027
8028  HAVE_OPENAL=yes
8029  LIBS="$LIBS -framework OpenAL"
8030
8031
8032## SDL-check
8033       SDL_CFLAGS=`sdl-config --cflags`
8034       SDL_LIBS=`sdl-config --libs`
8035       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8036       LIBS="$LIBS $SDL_LIBS"
8037
8038for ac_header in SDL/SDL.h
8039do
8040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8041if eval "test \"\${$as_ac_Header+set}\" = set"; then
8042  echo "$as_me:$LINENO: checking for $ac_header" >&5
8043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8044if eval "test \"\${$as_ac_Header+set}\" = set"; then
8045  echo $ECHO_N "(cached) $ECHO_C" >&6
8046fi
8047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8049else
8050  # Is the header compilable?
8051echo "$as_me:$LINENO: checking $ac_header usability" >&5
8052echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8053cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h.  */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h.  */
8059$ac_includes_default
8060#include <$ac_header>
8061_ACEOF
8062rm -f conftest.$ac_objext
8063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064  (eval $ac_compile) 2>conftest.er1
8065  ac_status=$?
8066  grep -v '^ *+' conftest.er1 >conftest.err
8067  rm -f conftest.er1
8068  cat conftest.err >&5
8069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070  (exit $ac_status); } &&
8071         { ac_try='test -z "$ac_c_werror_flag"
8072                         || test ! -s conftest.err'
8073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074  (eval $ac_try) 2>&5
8075  ac_status=$?
8076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077  (exit $ac_status); }; } &&
8078         { ac_try='test -s conftest.$ac_objext'
8079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080  (eval $ac_try) 2>&5
8081  ac_status=$?
8082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083  (exit $ac_status); }; }; then
8084  ac_header_compiler=yes
8085else
8086  echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089ac_header_compiler=no
8090fi
8091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8092echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8093echo "${ECHO_T}$ac_header_compiler" >&6
8094
8095# Is the header present?
8096echo "$as_me:$LINENO: checking $ac_header presence" >&5
8097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8098cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h.  */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h.  */
8104#include <$ac_header>
8105_ACEOF
8106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8107  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108  ac_status=$?
8109  grep -v '^ *+' conftest.er1 >conftest.err
8110  rm -f conftest.er1
8111  cat conftest.err >&5
8112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113  (exit $ac_status); } >/dev/null; then
8114  if test -s conftest.err; then
8115    ac_cpp_err=$ac_c_preproc_warn_flag
8116    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8117  else
8118    ac_cpp_err=
8119  fi
8120else
8121  ac_cpp_err=yes
8122fi
8123if test -z "$ac_cpp_err"; then
8124  ac_header_preproc=yes
8125else
8126  echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
8129  ac_header_preproc=no
8130fi
8131rm -f conftest.err conftest.$ac_ext
8132echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8133echo "${ECHO_T}$ac_header_preproc" >&6
8134
8135# So?  What about this header?
8136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8137  yes:no: )
8138    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8139echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8140    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8141echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8142    ac_header_preproc=yes
8143    ;;
8144  no:yes:* )
8145    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8147    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8148echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8149    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8150echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8151    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8152echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8153    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8155    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8156echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8157    (
8158      cat <<\_ASBOX
8159## ---------------------------------------------- ##
8160## Report this to orxonox-dev at mail.datacore.ch ##
8161## ---------------------------------------------- ##
8162_ASBOX
8163    ) |
8164      sed "s/^/$as_me: WARNING:     /" >&2
8165    ;;
8166esac
8167echo "$as_me:$LINENO: checking for $ac_header" >&5
8168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8169if eval "test \"\${$as_ac_Header+set}\" = set"; then
8170  echo $ECHO_N "(cached) $ECHO_C" >&6
8171else
8172  eval "$as_ac_Header=\$ac_header_preproc"
8173fi
8174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8176
8177fi
8178if test `eval echo '${'$as_ac_Header'}'` = yes; then
8179  cat >>confdefs.h <<_ACEOF
8180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8181_ACEOF
8182
8183else
8184  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
8185echo "$as_me: error: cannot find SDL headers" >&2;}
8186   { (exit 1); exit 1; }; }
8187fi
8188
8189done
8190
8191   HAVE_SDL=yes
8192#   LIBS="$LIBS -framework SDL"
8193
8194# checking for SDL-headers
8195#    AC_CHECK_HEADERS(SDL/SDL.h ,,
8196#      [AC_MSG_ERROR([cannot find SDL headers]) ])
8197
8198## checking for SDL
8199#    SDL_VERSION=1.2.7
8200#    AM_PATH_SDL($SDL_VERSION,
8201#      :,
8202#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
8203#      )
8204
8205
8206    ;;
8207
8208  *)
8209    ;;
8210esac
8211
8212
8213
8214###################################
8215## CHECKING FOR HEADERS AND LIBS ##
8216###################################
8217
8218#---------#
8219# SDL_ttf #
8220#---------#
8221# checking for SDL_ttf-headers
8222
8223for ac_header in SDL_ttf.h
8224do
8225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227  echo "$as_me:$LINENO: checking for $ac_header" >&5
8228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230  echo $ECHO_N "(cached) $ECHO_C" >&6
8231fi
8232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8234else
8235  # Is the header compilable?
8236echo "$as_me:$LINENO: checking $ac_header usability" >&5
8237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8238cat >conftest.$ac_ext <<_ACEOF
8239/* confdefs.h.  */
8240_ACEOF
8241cat confdefs.h >>conftest.$ac_ext
8242cat >>conftest.$ac_ext <<_ACEOF
8243/* end confdefs.h.  */
8244$ac_includes_default
8245#include <$ac_header>
8246_ACEOF
8247rm -f conftest.$ac_objext
8248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249  (eval $ac_compile) 2>conftest.er1
8250  ac_status=$?
8251  grep -v '^ *+' conftest.er1 >conftest.err
8252  rm -f conftest.er1
8253  cat conftest.err >&5
8254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255  (exit $ac_status); } &&
8256         { ac_try='test -z "$ac_c_werror_flag"
8257                         || test ! -s conftest.err'
8258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259  (eval $ac_try) 2>&5
8260  ac_status=$?
8261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262  (exit $ac_status); }; } &&
8263         { ac_try='test -s conftest.$ac_objext'
8264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265  (eval $ac_try) 2>&5
8266  ac_status=$?
8267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268  (exit $ac_status); }; }; then
8269  ac_header_compiler=yes
8270else
8271  echo "$as_me: failed program was:" >&5
8272sed 's/^/| /' conftest.$ac_ext >&5
8273
8274ac_header_compiler=no
8275fi
8276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8278echo "${ECHO_T}$ac_header_compiler" >&6
8279
8280# Is the header present?
8281echo "$as_me:$LINENO: checking $ac_header presence" >&5
8282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8283cat >conftest.$ac_ext <<_ACEOF
8284/* confdefs.h.  */
8285_ACEOF
8286cat confdefs.h >>conftest.$ac_ext
8287cat >>conftest.$ac_ext <<_ACEOF
8288/* end confdefs.h.  */
8289#include <$ac_header>
8290_ACEOF
8291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8293  ac_status=$?
8294  grep -v '^ *+' conftest.er1 >conftest.err
8295  rm -f conftest.er1
8296  cat conftest.err >&5
8297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298  (exit $ac_status); } >/dev/null; then
8299  if test -s conftest.err; then
8300    ac_cpp_err=$ac_c_preproc_warn_flag
8301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8302  else
8303    ac_cpp_err=
8304  fi
8305else
8306  ac_cpp_err=yes
8307fi
8308if test -z "$ac_cpp_err"; then
8309  ac_header_preproc=yes
8310else
8311  echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
8314  ac_header_preproc=no
8315fi
8316rm -f conftest.err conftest.$ac_ext
8317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8318echo "${ECHO_T}$ac_header_preproc" >&6
8319
8320# So?  What about this header?
8321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8322  yes:no: )
8323    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8325    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8327    ac_header_preproc=yes
8328    ;;
8329  no:yes:* )
8330    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8332    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8333echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8334    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8336    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8337echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8338    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8340    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8342    (
8343      cat <<\_ASBOX
8344## ---------------------------------------------- ##
8345## Report this to orxonox-dev at mail.datacore.ch ##
8346## ---------------------------------------------- ##
8347_ASBOX
8348    ) |
8349      sed "s/^/$as_me: WARNING:     /" >&2
8350    ;;
8351esac
8352echo "$as_me:$LINENO: checking for $ac_header" >&5
8353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8354if eval "test \"\${$as_ac_Header+set}\" = set"; then
8355  echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357  eval "$as_ac_Header=\$ac_header_preproc"
8358fi
8359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8361
8362fi
8363if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364  cat >>confdefs.h <<_ACEOF
8365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8366_ACEOF
8367
8368else
8369
8370for ac_header in SDL/SDL_ttf.h
8371do
8372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8373if eval "test \"\${$as_ac_Header+set}\" = set"; then
8374  echo "$as_me:$LINENO: checking for $ac_header" >&5
8375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8376if eval "test \"\${$as_ac_Header+set}\" = set"; then
8377  echo $ECHO_N "(cached) $ECHO_C" >&6
8378fi
8379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8381else
8382  # Is the header compilable?
8383echo "$as_me:$LINENO: checking $ac_header usability" >&5
8384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8385cat >conftest.$ac_ext <<_ACEOF
8386/* confdefs.h.  */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h.  */
8391$ac_includes_default
8392#include <$ac_header>
8393_ACEOF
8394rm -f conftest.$ac_objext
8395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8396  (eval $ac_compile) 2>conftest.er1
8397  ac_status=$?
8398  grep -v '^ *+' conftest.er1 >conftest.err
8399  rm -f conftest.er1
8400  cat conftest.err >&5
8401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402  (exit $ac_status); } &&
8403         { ac_try='test -z "$ac_c_werror_flag"
8404                         || test ! -s conftest.err'
8405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406  (eval $ac_try) 2>&5
8407  ac_status=$?
8408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409  (exit $ac_status); }; } &&
8410         { ac_try='test -s conftest.$ac_objext'
8411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412  (eval $ac_try) 2>&5
8413  ac_status=$?
8414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415  (exit $ac_status); }; }; then
8416  ac_header_compiler=yes
8417else
8418  echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421ac_header_compiler=no
8422fi
8423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8425echo "${ECHO_T}$ac_header_compiler" >&6
8426
8427# Is the header present?
8428echo "$as_me:$LINENO: checking $ac_header presence" >&5
8429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8430cat >conftest.$ac_ext <<_ACEOF
8431/* confdefs.h.  */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
8435/* end confdefs.h.  */
8436#include <$ac_header>
8437_ACEOF
8438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8439  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8440  ac_status=$?
8441  grep -v '^ *+' conftest.er1 >conftest.err
8442  rm -f conftest.er1
8443  cat conftest.err >&5
8444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445  (exit $ac_status); } >/dev/null; then
8446  if test -s conftest.err; then
8447    ac_cpp_err=$ac_c_preproc_warn_flag
8448    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8449  else
8450    ac_cpp_err=
8451  fi
8452else
8453  ac_cpp_err=yes
8454fi
8455if test -z "$ac_cpp_err"; then
8456  ac_header_preproc=yes
8457else
8458  echo "$as_me: failed program was:" >&5
8459sed 's/^/| /' conftest.$ac_ext >&5
8460
8461  ac_header_preproc=no
8462fi
8463rm -f conftest.err conftest.$ac_ext
8464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8465echo "${ECHO_T}$ac_header_preproc" >&6
8466
8467# So?  What about this header?
8468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8469  yes:no: )
8470    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8472    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8474    ac_header_preproc=yes
8475    ;;
8476  no:yes:* )
8477    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8479    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8480echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8481    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8483    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8484echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8485    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8487    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8489    (
8490      cat <<\_ASBOX
8491## ---------------------------------------------- ##
8492## Report this to orxonox-dev at mail.datacore.ch ##
8493## ---------------------------------------------- ##
8494_ASBOX
8495    ) |
8496      sed "s/^/$as_me: WARNING:     /" >&2
8497    ;;
8498esac
8499echo "$as_me:$LINENO: checking for $ac_header" >&5
8500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8501if eval "test \"\${$as_ac_Header+set}\" = set"; then
8502  echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504  eval "$as_ac_Header=\$ac_header_preproc"
8505fi
8506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8508
8509fi
8510if test `eval echo '${'$as_ac_Header'}'` = yes; then
8511  cat >>confdefs.h <<_ACEOF
8512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8513_ACEOF
8514
8515else
8516  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
8517echo "$as_me: error: cannot find SDL_ttf header." >&2;}
8518   { (exit 1); exit 1; }; }
8519fi
8520
8521done
8522
8523fi
8524
8525done
8526
8527# checking for SDL_ttf-lib
8528  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
8529echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
8530if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
8531  echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533  ac_check_lib_save_LIBS=$LIBS
8534LIBS="-lSDL_ttf  $LIBS"
8535cat >conftest.$ac_ext <<_ACEOF
8536/* confdefs.h.  */
8537_ACEOF
8538cat confdefs.h >>conftest.$ac_ext
8539cat >>conftest.$ac_ext <<_ACEOF
8540/* end confdefs.h.  */
8541
8542/* Override any gcc2 internal prototype to avoid an error.  */
8543#ifdef __cplusplus
8544extern "C"
8545#endif
8546/* We use char because int might match the return type of a gcc2
8547   builtin and then its argument prototype would still apply.  */
8548char TTF_OpenFont ();
8549int
8550main ()
8551{
8552TTF_OpenFont ();
8553  ;
8554  return 0;
8555}
8556_ACEOF
8557rm -f conftest.$ac_objext conftest$ac_exeext
8558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559  (eval $ac_link) 2>conftest.er1
8560  ac_status=$?
8561  grep -v '^ *+' conftest.er1 >conftest.err
8562  rm -f conftest.er1
8563  cat conftest.err >&5
8564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); } &&
8566         { ac_try='test -z "$ac_c_werror_flag"
8567                         || test ! -s conftest.err'
8568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569  (eval $ac_try) 2>&5
8570  ac_status=$?
8571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572  (exit $ac_status); }; } &&
8573         { ac_try='test -s conftest$ac_exeext'
8574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575  (eval $ac_try) 2>&5
8576  ac_status=$?
8577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578  (exit $ac_status); }; }; then
8579  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
8580else
8581  echo "$as_me: failed program was:" >&5
8582sed 's/^/| /' conftest.$ac_ext >&5
8583
8584ac_cv_lib_SDL_ttf_TTF_OpenFont=no
8585fi
8586rm -f conftest.err conftest.$ac_objext \
8587      conftest$ac_exeext conftest.$ac_ext
8588LIBS=$ac_check_lib_save_LIBS
8589fi
8590echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
8591echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
8592if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
8593  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
8594fi
8595
8596     if test x$FOUND_SDL_ttf != xyes ; then
8597        echo "------------------"
8598        echo "SDL_ttf library not found."
8599        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
8600        echo "------------------"
8601        exit -1
8602     fi
8603
8604#-----------#
8605# SDL_Image #
8606#-----------#
8607# checking for SDL_image-headers
8608
8609for ac_header in SDL_image.h
8610do
8611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8612if eval "test \"\${$as_ac_Header+set}\" = set"; then
8613  echo "$as_me:$LINENO: checking for $ac_header" >&5
8614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8615if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616  echo $ECHO_N "(cached) $ECHO_C" >&6
8617fi
8618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8620else
8621  # Is the header compilable?
8622echo "$as_me:$LINENO: checking $ac_header usability" >&5
8623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8624cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h.  */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h.  */
8630$ac_includes_default
8631#include <$ac_header>
8632_ACEOF
8633rm -f conftest.$ac_objext
8634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635  (eval $ac_compile) 2>conftest.er1
8636  ac_status=$?
8637  grep -v '^ *+' conftest.er1 >conftest.err
8638  rm -f conftest.er1
8639  cat conftest.err >&5
8640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641  (exit $ac_status); } &&
8642         { ac_try='test -z "$ac_c_werror_flag"
8643                         || test ! -s conftest.err'
8644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645  (eval $ac_try) 2>&5
8646  ac_status=$?
8647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); }; } &&
8649         { ac_try='test -s conftest.$ac_objext'
8650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651  (eval $ac_try) 2>&5
8652  ac_status=$?
8653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654  (exit $ac_status); }; }; then
8655  ac_header_compiler=yes
8656else
8657  echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660ac_header_compiler=no
8661fi
8662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8664echo "${ECHO_T}$ac_header_compiler" >&6
8665
8666# Is the header present?
8667echo "$as_me:$LINENO: checking $ac_header presence" >&5
8668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8669cat >conftest.$ac_ext <<_ACEOF
8670/* confdefs.h.  */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h.  */
8675#include <$ac_header>
8676_ACEOF
8677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8678  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } >/dev/null; then
8685  if test -s conftest.err; then
8686    ac_cpp_err=$ac_c_preproc_warn_flag
8687    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8688  else
8689    ac_cpp_err=
8690  fi
8691else
8692  ac_cpp_err=yes
8693fi
8694if test -z "$ac_cpp_err"; then
8695  ac_header_preproc=yes
8696else
8697  echo "$as_me: failed program was:" >&5
8698sed 's/^/| /' conftest.$ac_ext >&5
8699
8700  ac_header_preproc=no
8701fi
8702rm -f conftest.err conftest.$ac_ext
8703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8704echo "${ECHO_T}$ac_header_preproc" >&6
8705
8706# So?  What about this header?
8707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8708  yes:no: )
8709    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8711    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8713    ac_header_preproc=yes
8714    ;;
8715  no:yes:* )
8716    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8718    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8719echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8720    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8722    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8723echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8724    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8726    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8728    (
8729      cat <<\_ASBOX
8730## ---------------------------------------------- ##
8731## Report this to orxonox-dev at mail.datacore.ch ##
8732## ---------------------------------------------- ##
8733_ASBOX
8734    ) |
8735      sed "s/^/$as_me: WARNING:     /" >&2
8736    ;;
8737esac
8738echo "$as_me:$LINENO: checking for $ac_header" >&5
8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741  echo $ECHO_N "(cached) $ECHO_C" >&6
8742else
8743  eval "$as_ac_Header=\$ac_header_preproc"
8744fi
8745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8747
8748fi
8749if test `eval echo '${'$as_ac_Header'}'` = yes; then
8750  cat >>confdefs.h <<_ACEOF
8751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8752_ACEOF
8753
8754else
8755
8756for ac_header in SDL/SDL_image.h
8757do
8758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8759if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760  echo "$as_me:$LINENO: checking for $ac_header" >&5
8761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8762if eval "test \"\${$as_ac_Header+set}\" = set"; then
8763  echo $ECHO_N "(cached) $ECHO_C" >&6
8764fi
8765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8767else
8768  # Is the header compilable?
8769echo "$as_me:$LINENO: checking $ac_header usability" >&5
8770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8771cat >conftest.$ac_ext <<_ACEOF
8772/* confdefs.h.  */
8773_ACEOF
8774cat confdefs.h >>conftest.$ac_ext
8775cat >>conftest.$ac_ext <<_ACEOF
8776/* end confdefs.h.  */
8777$ac_includes_default
8778#include <$ac_header>
8779_ACEOF
8780rm -f conftest.$ac_objext
8781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782  (eval $ac_compile) 2>conftest.er1
8783  ac_status=$?
8784  grep -v '^ *+' conftest.er1 >conftest.err
8785  rm -f conftest.er1
8786  cat conftest.err >&5
8787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788  (exit $ac_status); } &&
8789         { ac_try='test -z "$ac_c_werror_flag"
8790                         || test ! -s conftest.err'
8791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792  (eval $ac_try) 2>&5
8793  ac_status=$?
8794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795  (exit $ac_status); }; } &&
8796         { ac_try='test -s conftest.$ac_objext'
8797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798  (eval $ac_try) 2>&5
8799  ac_status=$?
8800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801  (exit $ac_status); }; }; then
8802  ac_header_compiler=yes
8803else
8804  echo "$as_me: failed program was:" >&5
8805sed 's/^/| /' conftest.$ac_ext >&5
8806
8807ac_header_compiler=no
8808fi
8809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8811echo "${ECHO_T}$ac_header_compiler" >&6
8812
8813# Is the header present?
8814echo "$as_me:$LINENO: checking $ac_header presence" >&5
8815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8816cat >conftest.$ac_ext <<_ACEOF
8817/* confdefs.h.  */
8818_ACEOF
8819cat confdefs.h >>conftest.$ac_ext
8820cat >>conftest.$ac_ext <<_ACEOF
8821/* end confdefs.h.  */
8822#include <$ac_header>
8823_ACEOF
8824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8825  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8826  ac_status=$?
8827  grep -v '^ *+' conftest.er1 >conftest.err
8828  rm -f conftest.er1
8829  cat conftest.err >&5
8830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831  (exit $ac_status); } >/dev/null; then
8832  if test -s conftest.err; then
8833    ac_cpp_err=$ac_c_preproc_warn_flag
8834    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8835  else
8836    ac_cpp_err=
8837  fi
8838else
8839  ac_cpp_err=yes
8840fi
8841if test -z "$ac_cpp_err"; then
8842  ac_header_preproc=yes
8843else
8844  echo "$as_me: failed program was:" >&5
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847  ac_header_preproc=no
8848fi
8849rm -f conftest.err conftest.$ac_ext
8850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8851echo "${ECHO_T}$ac_header_preproc" >&6
8852
8853# So?  What about this header?
8854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8855  yes:no: )
8856    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8858    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8860    ac_header_preproc=yes
8861    ;;
8862  no:yes:* )
8863    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8865    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8866echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8867    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8869    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8870echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8871    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8873    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8875    (
8876      cat <<\_ASBOX
8877## ---------------------------------------------- ##
8878## Report this to orxonox-dev at mail.datacore.ch ##
8879## ---------------------------------------------- ##
8880_ASBOX
8881    ) |
8882      sed "s/^/$as_me: WARNING:     /" >&2
8883    ;;
8884esac
8885echo "$as_me:$LINENO: checking for $ac_header" >&5
8886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8887if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888  echo $ECHO_N "(cached) $ECHO_C" >&6
8889else
8890  eval "$as_ac_Header=\$ac_header_preproc"
8891fi
8892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8894
8895fi
8896if test `eval echo '${'$as_ac_Header'}'` = yes; then
8897  cat >>confdefs.h <<_ACEOF
8898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8899_ACEOF
8900
8901else
8902  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8903echo "$as_me: error: SDL_image header not found." >&2;}
8904   { (exit 1); exit 1; }; }
8905fi
8906
8907done
8908
8909fi
8910
8911done
8912
8913# checking for SDL_image-lib
8914echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8915echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8916if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8917  echo $ECHO_N "(cached) $ECHO_C" >&6
8918else
8919  ac_check_lib_save_LIBS=$LIBS
8920LIBS="-lSDL_image  $LIBS"
8921cat >conftest.$ac_ext <<_ACEOF
8922/* confdefs.h.  */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
8926/* end confdefs.h.  */
8927
8928
8929int
8930main ()
8931{
8932main ();
8933  ;
8934  return 0;
8935}
8936_ACEOF
8937rm -f conftest.$ac_objext conftest$ac_exeext
8938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939  (eval $ac_link) 2>conftest.er1
8940  ac_status=$?
8941  grep -v '^ *+' conftest.er1 >conftest.err
8942  rm -f conftest.er1
8943  cat conftest.err >&5
8944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945  (exit $ac_status); } &&
8946         { ac_try='test -z "$ac_c_werror_flag"
8947                         || test ! -s conftest.err'
8948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949  (eval $ac_try) 2>&5
8950  ac_status=$?
8951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952  (exit $ac_status); }; } &&
8953         { ac_try='test -s conftest$ac_exeext'
8954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955  (eval $ac_try) 2>&5
8956  ac_status=$?
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); }; }; then
8959  ac_cv_lib_SDL_image_main=yes
8960else
8961  echo "$as_me: failed program was:" >&5
8962sed 's/^/| /' conftest.$ac_ext >&5
8963
8964ac_cv_lib_SDL_image_main=no
8965fi
8966rm -f conftest.err conftest.$ac_objext \
8967      conftest$ac_exeext conftest.$ac_ext
8968LIBS=$ac_check_lib_save_LIBS
8969fi
8970echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8971echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8972if test $ac_cv_lib_SDL_image_main = yes; then
8973  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
8974fi
8975
8976   if test x$FOUND_SDL_image != xyes ; then
8977      echo "------------------"
8978      echo "SDL_image library not found."
8979      echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/"
8980      echo "------------------"
8981      exit -1
8982   fi
8983
8984#-----#
8985# ogg #
8986#-----#
8987# checking for ogg-headers
8988
8989for ac_header in ogg/ogg.h
8990do
8991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8992if eval "test \"\${$as_ac_Header+set}\" = set"; then
8993  echo "$as_me:$LINENO: checking for $ac_header" >&5
8994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8995if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996  echo $ECHO_N "(cached) $ECHO_C" >&6
8997fi
8998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9000else
9001  # Is the header compilable?
9002echo "$as_me:$LINENO: checking $ac_header usability" >&5
9003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9004cat >conftest.$ac_ext <<_ACEOF
9005/* confdefs.h.  */
9006_ACEOF
9007cat confdefs.h >>conftest.$ac_ext
9008cat >>conftest.$ac_ext <<_ACEOF
9009/* end confdefs.h.  */
9010$ac_includes_default
9011#include <$ac_header>
9012_ACEOF
9013rm -f conftest.$ac_objext
9014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015  (eval $ac_compile) 2>conftest.er1
9016  ac_status=$?
9017  grep -v '^ *+' conftest.er1 >conftest.err
9018  rm -f conftest.er1
9019  cat conftest.err >&5
9020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021  (exit $ac_status); } &&
9022         { ac_try='test -z "$ac_c_werror_flag"
9023                         || test ! -s conftest.err'
9024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025  (eval $ac_try) 2>&5
9026  ac_status=$?
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); }; } &&
9029         { ac_try='test -s conftest.$ac_objext'
9030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031  (eval $ac_try) 2>&5
9032  ac_status=$?
9033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034  (exit $ac_status); }; }; then
9035  ac_header_compiler=yes
9036else
9037  echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040ac_header_compiler=no
9041fi
9042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9044echo "${ECHO_T}$ac_header_compiler" >&6
9045
9046# Is the header present?
9047echo "$as_me:$LINENO: checking $ac_header presence" >&5
9048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9049cat >conftest.$ac_ext <<_ACEOF
9050/* confdefs.h.  */
9051_ACEOF
9052cat confdefs.h >>conftest.$ac_ext
9053cat >>conftest.$ac_ext <<_ACEOF
9054/* end confdefs.h.  */
9055#include <$ac_header>
9056_ACEOF
9057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9058  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9059  ac_status=$?
9060  grep -v '^ *+' conftest.er1 >conftest.err
9061  rm -f conftest.er1
9062  cat conftest.err >&5
9063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064  (exit $ac_status); } >/dev/null; then
9065  if test -s conftest.err; then
9066    ac_cpp_err=$ac_c_preproc_warn_flag
9067    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9068  else
9069    ac_cpp_err=
9070  fi
9071else
9072  ac_cpp_err=yes
9073fi
9074if test -z "$ac_cpp_err"; then
9075  ac_header_preproc=yes
9076else
9077  echo "$as_me: failed program was:" >&5
9078sed 's/^/| /' conftest.$ac_ext >&5
9079
9080  ac_header_preproc=no
9081fi
9082rm -f conftest.err conftest.$ac_ext
9083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9084echo "${ECHO_T}$ac_header_preproc" >&6
9085
9086# So?  What about this header?
9087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9088  yes:no: )
9089    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9091    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9093    ac_header_preproc=yes
9094    ;;
9095  no:yes:* )
9096    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9098    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9099echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9100    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9102    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9103echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9104    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9106    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9108    (
9109      cat <<\_ASBOX
9110## ---------------------------------------------- ##
9111## Report this to orxonox-dev at mail.datacore.ch ##
9112## ---------------------------------------------- ##
9113_ASBOX
9114    ) |
9115      sed "s/^/$as_me: WARNING:     /" >&2
9116    ;;
9117esac
9118echo "$as_me:$LINENO: checking for $ac_header" >&5
9119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9120if eval "test \"\${$as_ac_Header+set}\" = set"; then
9121  echo $ECHO_N "(cached) $ECHO_C" >&6
9122else
9123  eval "$as_ac_Header=\$ac_header_preproc"
9124fi
9125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9127
9128fi
9129if test `eval echo '${'$as_ac_Header'}'` = yes; then
9130  cat >>confdefs.h <<_ACEOF
9131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9132_ACEOF
9133
9134else
9135  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
9136echo "$as_me: error: cannot find ogg header." >&2;}
9137   { (exit 1); exit 1; }; }
9138fi
9139
9140done
9141
9142# checking for ogg-lib
9143  echo "$as_me:$LINENO: checking for main in -logg" >&5
9144echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
9145if test "${ac_cv_lib_ogg_main+set}" = set; then
9146  echo $ECHO_N "(cached) $ECHO_C" >&6
9147else
9148  ac_check_lib_save_LIBS=$LIBS
9149LIBS="-logg  $LIBS"
9150cat >conftest.$ac_ext <<_ACEOF
9151/* confdefs.h.  */
9152_ACEOF
9153cat confdefs.h >>conftest.$ac_ext
9154cat >>conftest.$ac_ext <<_ACEOF
9155/* end confdefs.h.  */
9156
9157
9158int
9159main ()
9160{
9161main ();
9162  ;
9163  return 0;
9164}
9165_ACEOF
9166rm -f conftest.$ac_objext conftest$ac_exeext
9167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168  (eval $ac_link) 2>conftest.er1
9169  ac_status=$?
9170  grep -v '^ *+' conftest.er1 >conftest.err
9171  rm -f conftest.er1
9172  cat conftest.err >&5
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); } &&
9175         { ac_try='test -z "$ac_c_werror_flag"
9176                         || test ! -s conftest.err'
9177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178  (eval $ac_try) 2>&5
9179  ac_status=$?
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); }; } &&
9182         { ac_try='test -s conftest$ac_exeext'
9183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184  (eval $ac_try) 2>&5
9185  ac_status=$?
9186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); }; }; then
9188  ac_cv_lib_ogg_main=yes
9189else
9190  echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193ac_cv_lib_ogg_main=no
9194fi
9195rm -f conftest.err conftest.$ac_objext \
9196      conftest$ac_exeext conftest.$ac_ext
9197LIBS=$ac_check_lib_save_LIBS
9198fi
9199echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
9200echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
9201if test $ac_cv_lib_ogg_main = yes; then
9202  FOUND_ogg=yes; LIBS="$LIBS -logg"
9203fi
9204
9205     if test x$FOUND_ogg != xyes ; then
9206        echo "------------------"
9207        echo "ogg library not found."
9208        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9209        echo "------------------"
9210        exit -1
9211     fi
9212
9213#--------#
9214# vorbis #
9215#--------#
9216# checking for vorbis-lib
9217  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
9218echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
9219if test "${ac_cv_lib_vorbis_main+set}" = set; then
9220  echo $ECHO_N "(cached) $ECHO_C" >&6
9221else
9222  ac_check_lib_save_LIBS=$LIBS
9223LIBS="-lvorbis  $LIBS"
9224cat >conftest.$ac_ext <<_ACEOF
9225/* confdefs.h.  */
9226_ACEOF
9227cat confdefs.h >>conftest.$ac_ext
9228cat >>conftest.$ac_ext <<_ACEOF
9229/* end confdefs.h.  */
9230
9231
9232int
9233main ()
9234{
9235main ();
9236  ;
9237  return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext conftest$ac_exeext
9241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9242  (eval $ac_link) 2>conftest.er1
9243  ac_status=$?
9244  grep -v '^ *+' conftest.er1 >conftest.err
9245  rm -f conftest.er1
9246  cat conftest.err >&5
9247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248  (exit $ac_status); } &&
9249         { ac_try='test -z "$ac_c_werror_flag"
9250                         || test ! -s conftest.err'
9251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252  (eval $ac_try) 2>&5
9253  ac_status=$?
9254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255  (exit $ac_status); }; } &&
9256         { ac_try='test -s conftest$ac_exeext'
9257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258  (eval $ac_try) 2>&5
9259  ac_status=$?
9260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261  (exit $ac_status); }; }; then
9262  ac_cv_lib_vorbis_main=yes
9263else
9264  echo "$as_me: failed program was:" >&5
9265sed 's/^/| /' conftest.$ac_ext >&5
9266
9267ac_cv_lib_vorbis_main=no
9268fi
9269rm -f conftest.err conftest.$ac_objext \
9270      conftest$ac_exeext conftest.$ac_ext
9271LIBS=$ac_check_lib_save_LIBS
9272fi
9273echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
9274echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
9275if test $ac_cv_lib_vorbis_main = yes; then
9276  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
9277fi
9278
9279     if test x$FOUND_vorbis != xyes ; then
9280        echo "------------------"
9281        echo "vorbis library not found."
9282        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9283        echo "------------------"
9284        exit -1
9285     fi
9286
9287#------------#
9288# vorbisfile #
9289#------------#
9290# checking for vorbis-headers
9291
9292for ac_header in vorbis/vorbisfile.h
9293do
9294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9295if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296  echo "$as_me:$LINENO: checking for $ac_header" >&5
9297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299  echo $ECHO_N "(cached) $ECHO_C" >&6
9300fi
9301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9303else
9304  # Is the header compilable?
9305echo "$as_me:$LINENO: checking $ac_header usability" >&5
9306echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9307cat >conftest.$ac_ext <<_ACEOF
9308/* confdefs.h.  */
9309_ACEOF
9310cat confdefs.h >>conftest.$ac_ext
9311cat >>conftest.$ac_ext <<_ACEOF
9312/* end confdefs.h.  */
9313$ac_includes_default
9314#include <$ac_header>
9315_ACEOF
9316rm -f conftest.$ac_objext
9317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9318  (eval $ac_compile) 2>conftest.er1
9319  ac_status=$?
9320  grep -v '^ *+' conftest.er1 >conftest.err
9321  rm -f conftest.er1
9322  cat conftest.err >&5
9323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324  (exit $ac_status); } &&
9325         { ac_try='test -z "$ac_c_werror_flag"
9326                         || test ! -s conftest.err'
9327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328  (eval $ac_try) 2>&5
9329  ac_status=$?
9330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331  (exit $ac_status); }; } &&
9332         { ac_try='test -s conftest.$ac_objext'
9333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334  (eval $ac_try) 2>&5
9335  ac_status=$?
9336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337  (exit $ac_status); }; }; then
9338  ac_header_compiler=yes
9339else
9340  echo "$as_me: failed program was:" >&5
9341sed 's/^/| /' conftest.$ac_ext >&5
9342
9343ac_header_compiler=no
9344fi
9345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9346echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9347echo "${ECHO_T}$ac_header_compiler" >&6
9348
9349# Is the header present?
9350echo "$as_me:$LINENO: checking $ac_header presence" >&5
9351echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9352cat >conftest.$ac_ext <<_ACEOF
9353/* confdefs.h.  */
9354_ACEOF
9355cat confdefs.h >>conftest.$ac_ext
9356cat >>conftest.$ac_ext <<_ACEOF
9357/* end confdefs.h.  */
9358#include <$ac_header>
9359_ACEOF
9360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9362  ac_status=$?
9363  grep -v '^ *+' conftest.er1 >conftest.err
9364  rm -f conftest.er1
9365  cat conftest.err >&5
9366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367  (exit $ac_status); } >/dev/null; then
9368  if test -s conftest.err; then
9369    ac_cpp_err=$ac_c_preproc_warn_flag
9370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371  else
9372    ac_cpp_err=
9373  fi
9374else
9375  ac_cpp_err=yes
9376fi
9377if test -z "$ac_cpp_err"; then
9378  ac_header_preproc=yes
9379else
9380  echo "$as_me: failed program was:" >&5
9381sed 's/^/| /' conftest.$ac_ext >&5
9382
9383  ac_header_preproc=no
9384fi
9385rm -f conftest.err conftest.$ac_ext
9386echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387echo "${ECHO_T}$ac_header_preproc" >&6
9388
9389# So?  What about this header?
9390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9391  yes:no: )
9392    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396    ac_header_preproc=yes
9397    ;;
9398  no:yes:* )
9399    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9402echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9403    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9406echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9407    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9411    (
9412      cat <<\_ASBOX
9413## ---------------------------------------------- ##
9414## Report this to orxonox-dev at mail.datacore.ch ##
9415## ---------------------------------------------- ##
9416_ASBOX
9417    ) |
9418      sed "s/^/$as_me: WARNING:     /" >&2
9419    ;;
9420esac
9421echo "$as_me:$LINENO: checking for $ac_header" >&5
9422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9423if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424  echo $ECHO_N "(cached) $ECHO_C" >&6
9425else
9426  eval "$as_ac_Header=\$ac_header_preproc"
9427fi
9428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9430
9431fi
9432if test `eval echo '${'$as_ac_Header'}'` = yes; then
9433  cat >>confdefs.h <<_ACEOF
9434#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9435_ACEOF
9436
9437else
9438  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
9439echo "$as_me: error: cannot find vorbisfile header." >&2;}
9440   { (exit 1); exit 1; }; }
9441fi
9442
9443done
9444
9445# checking for vorbisfile-lib
9446  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
9447echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
9448if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
9449  echo $ECHO_N "(cached) $ECHO_C" >&6
9450else
9451  ac_check_lib_save_LIBS=$LIBS
9452LIBS="-lvorbisfile  $LIBS"
9453cat >conftest.$ac_ext <<_ACEOF
9454/* confdefs.h.  */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h.  */
9459
9460
9461int
9462main ()
9463{
9464main ();
9465  ;
9466  return 0;
9467}
9468_ACEOF
9469rm -f conftest.$ac_objext conftest$ac_exeext
9470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471  (eval $ac_link) 2>conftest.er1
9472  ac_status=$?
9473  grep -v '^ *+' conftest.er1 >conftest.err
9474  rm -f conftest.er1
9475  cat conftest.err >&5
9476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477  (exit $ac_status); } &&
9478         { ac_try='test -z "$ac_c_werror_flag"
9479                         || test ! -s conftest.err'
9480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481  (eval $ac_try) 2>&5
9482  ac_status=$?
9483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484  (exit $ac_status); }; } &&
9485         { ac_try='test -s conftest$ac_exeext'
9486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487  (eval $ac_try) 2>&5
9488  ac_status=$?
9489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490  (exit $ac_status); }; }; then
9491  ac_cv_lib_vorbisfile_main=yes
9492else
9493  echo "$as_me: failed program was:" >&5
9494sed 's/^/| /' conftest.$ac_ext >&5
9495
9496ac_cv_lib_vorbisfile_main=no
9497fi
9498rm -f conftest.err conftest.$ac_objext \
9499      conftest$ac_exeext conftest.$ac_ext
9500LIBS=$ac_check_lib_save_LIBS
9501fi
9502echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
9503echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
9504if test $ac_cv_lib_vorbisfile_main = yes; then
9505  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
9506fi
9507
9508     if test x$FOUND_vorbisfile != xyes ; then
9509        echo "------------------"
9510        echo "vorbisfile library not found."
9511        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9512        echo "------------------"
9513        exit -1
9514     fi
9515
9516
9517#---------#
9518# libcURL #
9519#---------#
9520if test x$def_curl = xyes; then
9521
9522for ac_header in curl/curl.h
9523do
9524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9525if eval "test \"\${$as_ac_Header+set}\" = set"; then
9526  echo "$as_me:$LINENO: checking for $ac_header" >&5
9527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9528if eval "test \"\${$as_ac_Header+set}\" = set"; then
9529  echo $ECHO_N "(cached) $ECHO_C" >&6
9530fi
9531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9533else
9534  # Is the header compilable?
9535echo "$as_me:$LINENO: checking $ac_header usability" >&5
9536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9537cat >conftest.$ac_ext <<_ACEOF
9538/* confdefs.h.  */
9539_ACEOF
9540cat confdefs.h >>conftest.$ac_ext
9541cat >>conftest.$ac_ext <<_ACEOF
9542/* end confdefs.h.  */
9543$ac_includes_default
9544#include <$ac_header>
9545_ACEOF
9546rm -f conftest.$ac_objext
9547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548  (eval $ac_compile) 2>conftest.er1
9549  ac_status=$?
9550  grep -v '^ *+' conftest.er1 >conftest.err
9551  rm -f conftest.er1
9552  cat conftest.err >&5
9553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554  (exit $ac_status); } &&
9555         { ac_try='test -z "$ac_c_werror_flag"
9556                         || test ! -s conftest.err'
9557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558  (eval $ac_try) 2>&5
9559  ac_status=$?
9560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561  (exit $ac_status); }; } &&
9562         { ac_try='test -s conftest.$ac_objext'
9563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564  (eval $ac_try) 2>&5
9565  ac_status=$?
9566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567  (exit $ac_status); }; }; then
9568  ac_header_compiler=yes
9569else
9570  echo "$as_me: failed program was:" >&5
9571sed 's/^/| /' conftest.$ac_ext >&5
9572
9573ac_header_compiler=no
9574fi
9575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9577echo "${ECHO_T}$ac_header_compiler" >&6
9578
9579# Is the header present?
9580echo "$as_me:$LINENO: checking $ac_header presence" >&5
9581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9582cat >conftest.$ac_ext <<_ACEOF
9583/* confdefs.h.  */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h.  */
9588#include <$ac_header>
9589_ACEOF
9590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9592  ac_status=$?
9593  grep -v '^ *+' conftest.er1 >conftest.err
9594  rm -f conftest.er1
9595  cat conftest.err >&5
9596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597  (exit $ac_status); } >/dev/null; then
9598  if test -s conftest.err; then
9599    ac_cpp_err=$ac_c_preproc_warn_flag
9600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9601  else
9602    ac_cpp_err=
9603  fi
9604else
9605  ac_cpp_err=yes
9606fi
9607if test -z "$ac_cpp_err"; then
9608  ac_header_preproc=yes
9609else
9610  echo "$as_me: failed program was:" >&5
9611sed 's/^/| /' conftest.$ac_ext >&5
9612
9613  ac_header_preproc=no
9614fi
9615rm -f conftest.err conftest.$ac_ext
9616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9617echo "${ECHO_T}$ac_header_preproc" >&6
9618
9619# So?  What about this header?
9620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9621  yes:no: )
9622    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9626    ac_header_preproc=yes
9627    ;;
9628  no:yes:* )
9629    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9631    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9632echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9633    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9635    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9636echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9637    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9639    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9641    (
9642      cat <<\_ASBOX
9643## ---------------------------------------------- ##
9644## Report this to orxonox-dev at mail.datacore.ch ##
9645## ---------------------------------------------- ##
9646_ASBOX
9647    ) |
9648      sed "s/^/$as_me: WARNING:     /" >&2
9649    ;;
9650esac
9651echo "$as_me:$LINENO: checking for $ac_header" >&5
9652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9653if eval "test \"\${$as_ac_Header+set}\" = set"; then
9654  echo $ECHO_N "(cached) $ECHO_C" >&6
9655else
9656  eval "$as_ac_Header=\$ac_header_preproc"
9657fi
9658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9660
9661fi
9662if test `eval echo '${'$as_ac_Header'}'` = yes; then
9663  cat >>confdefs.h <<_ACEOF
9664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9665_ACEOF
9666 curlHeader=yes
9667else
9668  curlHeader=no
9669fi
9670
9671done
9672
9673 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9674echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9675if test "${ac_cv_lib_curl_main+set}" = set; then
9676  echo $ECHO_N "(cached) $ECHO_C" >&6
9677else
9678  ac_check_lib_save_LIBS=$LIBS
9679LIBS="-lcurl  $LIBS"
9680cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h.  */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h.  */
9686
9687
9688int
9689main ()
9690{
9691main ();
9692  ;
9693  return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
9697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698  (eval $ac_link) 2>conftest.er1
9699  ac_status=$?
9700  grep -v '^ *+' conftest.er1 >conftest.err
9701  rm -f conftest.er1
9702  cat conftest.err >&5
9703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704  (exit $ac_status); } &&
9705         { ac_try='test -z "$ac_c_werror_flag"
9706                         || test ! -s conftest.err'
9707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708  (eval $ac_try) 2>&5
9709  ac_status=$?
9710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711  (exit $ac_status); }; } &&
9712         { ac_try='test -s conftest$ac_exeext'
9713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714  (eval $ac_try) 2>&5
9715  ac_status=$?
9716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717  (exit $ac_status); }; }; then
9718  ac_cv_lib_curl_main=yes
9719else
9720  echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
9723ac_cv_lib_curl_main=no
9724fi
9725rm -f conftest.err conftest.$ac_objext \
9726      conftest$ac_exeext conftest.$ac_ext
9727LIBS=$ac_check_lib_save_LIBS
9728fi
9729echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9730echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9731if test $ac_cv_lib_curl_main = yes; then
9732  FOUND_curl=yes
9733fi
9734
9735 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
9736  have_curl=yes
9737  CURL_LIBS=`curl-config --libs`
9738  CURLCFLAGS=`curl-config --cflags`
9739
9740cat >>confdefs.h <<_ACEOF
9741#define HAVE_CURL 1
9742_ACEOF
9743
9744 else
9745  have_curl=no
9746 fi
9747
9748fi
9749
9750
9751
9752
9753if test x$have_curl = xyes; then
9754  HAVE_CURL_TRUE=
9755  HAVE_CURL_FALSE='#'
9756else
9757  HAVE_CURL_TRUE='#'
9758  HAVE_CURL_FALSE=
9759fi
9760
9761
9762#--------#
9763# efence #
9764#--------#
9765if test x$def_efence = xyes ; then
9766  echo "$as_me:$LINENO: checking for main in -lefence" >&5
9767echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9768if test "${ac_cv_lib_efence_main+set}" = set; then
9769  echo $ECHO_N "(cached) $ECHO_C" >&6
9770else
9771  ac_check_lib_save_LIBS=$LIBS
9772LIBS="-lefence  $LIBS"
9773cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h.  */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h.  */
9779
9780
9781int
9782main ()
9783{
9784main ();
9785  ;
9786  return 0;
9787}
9788_ACEOF
9789rm -f conftest.$ac_objext conftest$ac_exeext
9790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791  (eval $ac_link) 2>conftest.er1
9792  ac_status=$?
9793  grep -v '^ *+' conftest.er1 >conftest.err
9794  rm -f conftest.er1
9795  cat conftest.err >&5
9796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797  (exit $ac_status); } &&
9798         { ac_try='test -z "$ac_c_werror_flag"
9799                         || test ! -s conftest.err'
9800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801  (eval $ac_try) 2>&5
9802  ac_status=$?
9803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804  (exit $ac_status); }; } &&
9805         { ac_try='test -s conftest$ac_exeext'
9806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807  (eval $ac_try) 2>&5
9808  ac_status=$?
9809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810  (exit $ac_status); }; }; then
9811  ac_cv_lib_efence_main=yes
9812else
9813  echo "$as_me: failed program was:" >&5
9814sed 's/^/| /' conftest.$ac_ext >&5
9815
9816ac_cv_lib_efence_main=no
9817fi
9818rm -f conftest.err conftest.$ac_objext \
9819      conftest$ac_exeext conftest.$ac_ext
9820LIBS=$ac_check_lib_save_LIBS
9821fi
9822echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9823echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9824if test $ac_cv_lib_efence_main = yes; then
9825  FOUND_efence=yes; LIBS="$LIBS -lefence"
9826fi
9827
9828   if test x$FOUND_efence != xyes ; then
9829     echo "efence was requested, but is not installed!! going on"
9830   fi
9831
9832fi
9833
9834#-----#
9835# GTK #
9836#-----#
9837if test x$def_gtk = xyes; then
9838#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
9839        echo "$as_me:$LINENO: checking for gtk2.0" >&5
9840echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
9841        if `$PKG_CONFIG --exists gtk+-2.0`; then
9842                echo "yes"
9843                have_gtk2=yes
9844                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9845                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9846
9847cat >>confdefs.h <<_ACEOF
9848#define HAVE_GTK2 1
9849_ACEOF
9850
9851                if test $DEBUG -ge 3; then
9852                 echo "cflags: $GTK2_CFLAGS"
9853                 echo "libs: $GTK2_LIBS"
9854                fi
9855        else
9856                echo "no"
9857        fi
9858
9859fi
9860
9861
9862
9863
9864if test x$have_gtk2 = xyes; then
9865  HAVE_GTK2_TRUE=
9866  HAVE_GTK2_FALSE='#'
9867else
9868  HAVE_GTK2_TRUE='#'
9869  HAVE_GTK2_FALSE=
9870fi
9871
9872
9873
9874# FIXME: Replace `main' with a function in `-lm':
9875
9876echo "$as_me:$LINENO: checking for main in -lm" >&5
9877echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9878if test "${ac_cv_lib_m_main+set}" = set; then
9879  echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881  ac_check_lib_save_LIBS=$LIBS
9882LIBS="-lm  $LIBS"
9883cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h.  */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h.  */
9889
9890
9891int
9892main ()
9893{
9894main ();
9895  ;
9896  return 0;
9897}
9898_ACEOF
9899rm -f conftest.$ac_objext conftest$ac_exeext
9900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901  (eval $ac_link) 2>conftest.er1
9902  ac_status=$?
9903  grep -v '^ *+' conftest.er1 >conftest.err
9904  rm -f conftest.er1
9905  cat conftest.err >&5
9906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907  (exit $ac_status); } &&
9908         { ac_try='test -z "$ac_c_werror_flag"
9909                         || test ! -s conftest.err'
9910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911  (eval $ac_try) 2>&5
9912  ac_status=$?
9913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914  (exit $ac_status); }; } &&
9915         { ac_try='test -s conftest$ac_exeext'
9916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917  (eval $ac_try) 2>&5
9918  ac_status=$?
9919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920  (exit $ac_status); }; }; then
9921  ac_cv_lib_m_main=yes
9922else
9923  echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
9926ac_cv_lib_m_main=no
9927fi
9928rm -f conftest.err conftest.$ac_objext \
9929      conftest$ac_exeext conftest.$ac_ext
9930LIBS=$ac_check_lib_save_LIBS
9931fi
9932echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9933echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9934if test $ac_cv_lib_m_main = yes; then
9935  cat >>confdefs.h <<_ACEOF
9936#define HAVE_LIBM 1
9937_ACEOF
9938
9939  LIBS="-lm $LIBS"
9940
9941fi
9942
9943
9944
9945# Checks for header files.
9946echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9947echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9948if test "${ac_cv_header_stdc+set}" = set; then
9949  echo $ECHO_N "(cached) $ECHO_C" >&6
9950else
9951  cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h.  */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h.  */
9957#include <stdlib.h>
9958#include <stdarg.h>
9959#include <string.h>
9960#include <float.h>
9961
9962int
9963main ()
9964{
9965
9966  ;
9967  return 0;
9968}
9969_ACEOF
9970rm -f conftest.$ac_objext
9971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972  (eval $ac_compile) 2>conftest.er1
9973  ac_status=$?
9974  grep -v '^ *+' conftest.er1 >conftest.err
9975  rm -f conftest.er1
9976  cat conftest.err >&5
9977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978  (exit $ac_status); } &&
9979         { ac_try='test -z "$ac_c_werror_flag"
9980                         || test ! -s conftest.err'
9981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982  (eval $ac_try) 2>&5
9983  ac_status=$?
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); }; } &&
9986         { ac_try='test -s conftest.$ac_objext'
9987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988  (eval $ac_try) 2>&5
9989  ac_status=$?
9990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); }; }; then
9992  ac_cv_header_stdc=yes
9993else
9994  echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997ac_cv_header_stdc=no
9998fi
9999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000
10001if test $ac_cv_header_stdc = yes; then
10002  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10003  cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h.  */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h.  */
10009#include <string.h>
10010
10011_ACEOF
10012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10013  $EGREP "memchr" >/dev/null 2>&1; then
10014  :
10015else
10016  ac_cv_header_stdc=no
10017fi
10018rm -f conftest*
10019
10020fi
10021
10022if test $ac_cv_header_stdc = yes; then
10023  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10024  cat >conftest.$ac_ext <<_ACEOF
10025/* confdefs.h.  */
10026_ACEOF
10027cat confdefs.h >>conftest.$ac_ext
10028cat >>conftest.$ac_ext <<_ACEOF
10029/* end confdefs.h.  */
10030#include <stdlib.h>
10031
10032_ACEOF
10033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10034  $EGREP "free" >/dev/null 2>&1; then
10035  :
10036else
10037  ac_cv_header_stdc=no
10038fi
10039rm -f conftest*
10040
10041fi
10042
10043if test $ac_cv_header_stdc = yes; then
10044  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10045  if test "$cross_compiling" = yes; then
10046  :
10047else
10048  cat >conftest.$ac_ext <<_ACEOF
10049/* confdefs.h.  */
10050_ACEOF
10051cat confdefs.h >>conftest.$ac_ext
10052cat >>conftest.$ac_ext <<_ACEOF
10053/* end confdefs.h.  */
10054#include <ctype.h>
10055#if ((' ' & 0x0FF) == 0x020)
10056# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10057# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10058#else
10059# define ISLOWER(c) \
10060                   (('a' <= (c) && (c) <= 'i') \
10061                     || ('j' <= (c) && (c) <= 'r') \
10062                     || ('s' <= (c) && (c) <= 'z'))
10063# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10064#endif
10065
10066#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10067int
10068main ()
10069{
10070  int i;
10071  for (i = 0; i < 256; i++)
10072    if (XOR (islower (i), ISLOWER (i))
10073        || toupper (i) != TOUPPER (i))
10074      exit(2);
10075  exit (0);
10076}
10077_ACEOF
10078rm -f conftest$ac_exeext
10079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10080  (eval $ac_link) 2>&5
10081  ac_status=$?
10082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085  (eval $ac_try) 2>&5
10086  ac_status=$?
10087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088  (exit $ac_status); }; }; then
10089  :
10090else
10091  echo "$as_me: program exited with status $ac_status" >&5
10092echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
10095( exit $ac_status )
10096ac_cv_header_stdc=no
10097fi
10098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10099fi
10100fi
10101fi
10102echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10103echo "${ECHO_T}$ac_cv_header_stdc" >&6
10104if test $ac_cv_header_stdc = yes; then
10105
10106cat >>confdefs.h <<\_ACEOF
10107#define STDC_HEADERS 1
10108_ACEOF
10109
10110fi
10111
10112
10113
10114for ac_header in stdlib.h string.h
10115do
10116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10117if eval "test \"\${$as_ac_Header+set}\" = set"; then
10118  echo "$as_me:$LINENO: checking for $ac_header" >&5
10119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10120if eval "test \"\${$as_ac_Header+set}\" = set"; then
10121  echo $ECHO_N "(cached) $ECHO_C" >&6
10122fi
10123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10125else
10126  # Is the header compilable?
10127echo "$as_me:$LINENO: checking $ac_header usability" >&5
10128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10129cat >conftest.$ac_ext <<_ACEOF
10130/* confdefs.h.  */
10131_ACEOF
10132cat confdefs.h >>conftest.$ac_ext
10133cat >>conftest.$ac_ext <<_ACEOF
10134/* end confdefs.h.  */
10135$ac_includes_default
10136#include <$ac_header>
10137_ACEOF
10138rm -f conftest.$ac_objext
10139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140  (eval $ac_compile) 2>conftest.er1
10141  ac_status=$?
10142  grep -v '^ *+' conftest.er1 >conftest.err
10143  rm -f conftest.er1
10144  cat conftest.err >&5
10145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146  (exit $ac_status); } &&
10147         { ac_try='test -z "$ac_c_werror_flag"
10148                         || test ! -s conftest.err'
10149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150  (eval $ac_try) 2>&5
10151  ac_status=$?
10152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153  (exit $ac_status); }; } &&
10154         { ac_try='test -s conftest.$ac_objext'
10155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156  (eval $ac_try) 2>&5
10157  ac_status=$?
10158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159  (exit $ac_status); }; }; then
10160  ac_header_compiler=yes
10161else
10162  echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
10165ac_header_compiler=no
10166fi
10167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10169echo "${ECHO_T}$ac_header_compiler" >&6
10170
10171# Is the header present?
10172echo "$as_me:$LINENO: checking $ac_header presence" >&5
10173echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10174cat >conftest.$ac_ext <<_ACEOF
10175/* confdefs.h.  */
10176_ACEOF
10177cat confdefs.h >>conftest.$ac_ext
10178cat >>conftest.$ac_ext <<_ACEOF
10179/* end confdefs.h.  */
10180#include <$ac_header>
10181_ACEOF
10182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10183  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10184  ac_status=$?
10185  grep -v '^ *+' conftest.er1 >conftest.err
10186  rm -f conftest.er1
10187  cat conftest.err >&5
10188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189  (exit $ac_status); } >/dev/null; then
10190  if test -s conftest.err; then
10191    ac_cpp_err=$ac_c_preproc_warn_flag
10192    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10193  else
10194    ac_cpp_err=
10195  fi
10196else
10197  ac_cpp_err=yes
10198fi
10199if test -z "$ac_cpp_err"; then
10200  ac_header_preproc=yes
10201else
10202  echo "$as_me: failed program was:" >&5
10203sed 's/^/| /' conftest.$ac_ext >&5
10204
10205  ac_header_preproc=no
10206fi
10207rm -f conftest.err conftest.$ac_ext
10208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10209echo "${ECHO_T}$ac_header_preproc" >&6
10210
10211# So?  What about this header?
10212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10213  yes:no: )
10214    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10218    ac_header_preproc=yes
10219    ;;
10220  no:yes:* )
10221    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10223    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10224echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10225    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10227    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10228echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10229    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10231    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10233    (
10234      cat <<\_ASBOX
10235## ---------------------------------------------- ##
10236## Report this to orxonox-dev at mail.datacore.ch ##
10237## ---------------------------------------------- ##
10238_ASBOX
10239    ) |
10240      sed "s/^/$as_me: WARNING:     /" >&2
10241    ;;
10242esac
10243echo "$as_me:$LINENO: checking for $ac_header" >&5
10244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10245if eval "test \"\${$as_ac_Header+set}\" = set"; then
10246  echo $ECHO_N "(cached) $ECHO_C" >&6
10247else
10248  eval "$as_ac_Header=\$ac_header_preproc"
10249fi
10250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10252
10253fi
10254if test `eval echo '${'$as_ac_Header'}'` = yes; then
10255  cat >>confdefs.h <<_ACEOF
10256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10257_ACEOF
10258
10259fi
10260
10261done
10262
10263
10264# Checks for typedefs, structures, and compiler characteristics.
10265echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10266echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10267if test "${ac_cv_header_stdbool_h+set}" = set; then
10268  echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270  cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h.  */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h.  */
10276
10277#include <stdbool.h>
10278#ifndef bool
10279# error bool is not defined
10280#endif
10281#ifndef false
10282# error false is not defined
10283#endif
10284#if false
10285# error false is not 0
10286#endif
10287#ifndef true
10288# error true is not defined
10289#endif
10290#if true != 1
10291# error true is not 1
10292#endif
10293#ifndef __bool_true_false_are_defined
10294# error __bool_true_false_are_defined is not defined
10295#endif
10296
10297        struct s { _Bool s: 1; _Bool t; } s;
10298
10299        char a[true == 1 ? 1 : -1];
10300        char b[false == 0 ? 1 : -1];
10301        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10302        char d[(bool) -0.5 == true ? 1 : -1];
10303        bool e = &s;
10304        char f[(_Bool) -0.0 == false ? 1 : -1];
10305        char g[true];
10306        char h[sizeof (_Bool)];
10307        char i[sizeof s.t];
10308
10309int
10310main ()
10311{
10312 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10313  ;
10314  return 0;
10315}
10316_ACEOF
10317rm -f conftest.$ac_objext
10318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319  (eval $ac_compile) 2>conftest.er1
10320  ac_status=$?
10321  grep -v '^ *+' conftest.er1 >conftest.err
10322  rm -f conftest.er1
10323  cat conftest.err >&5
10324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325  (exit $ac_status); } &&
10326         { ac_try='test -z "$ac_c_werror_flag"
10327                         || test ! -s conftest.err'
10328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329  (eval $ac_try) 2>&5
10330  ac_status=$?
10331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332  (exit $ac_status); }; } &&
10333         { ac_try='test -s conftest.$ac_objext'
10334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335  (eval $ac_try) 2>&5
10336  ac_status=$?
10337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338  (exit $ac_status); }; }; then
10339  ac_cv_header_stdbool_h=yes
10340else
10341  echo "$as_me: failed program was:" >&5
10342sed 's/^/| /' conftest.$ac_ext >&5
10343
10344ac_cv_header_stdbool_h=no
10345fi
10346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10347fi
10348echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10349echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10350echo "$as_me:$LINENO: checking for _Bool" >&5
10351echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10352if test "${ac_cv_type__Bool+set}" = set; then
10353  echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355  cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h.  */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h.  */
10361$ac_includes_default
10362int
10363main ()
10364{
10365if ((_Bool *) 0)
10366  return 0;
10367if (sizeof (_Bool))
10368  return 0;
10369  ;
10370  return 0;
10371}
10372_ACEOF
10373rm -f conftest.$ac_objext
10374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375  (eval $ac_compile) 2>conftest.er1
10376  ac_status=$?
10377  grep -v '^ *+' conftest.er1 >conftest.err
10378  rm -f conftest.er1
10379  cat conftest.err >&5
10380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381  (exit $ac_status); } &&
10382         { ac_try='test -z "$ac_c_werror_flag"
10383                         || test ! -s conftest.err'
10384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385  (eval $ac_try) 2>&5
10386  ac_status=$?
10387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388  (exit $ac_status); }; } &&
10389         { ac_try='test -s conftest.$ac_objext'
10390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391  (eval $ac_try) 2>&5
10392  ac_status=$?
10393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394  (exit $ac_status); }; }; then
10395  ac_cv_type__Bool=yes
10396else
10397  echo "$as_me: failed program was:" >&5
10398sed 's/^/| /' conftest.$ac_ext >&5
10399
10400ac_cv_type__Bool=no
10401fi
10402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403fi
10404echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10405echo "${ECHO_T}$ac_cv_type__Bool" >&6
10406if test $ac_cv_type__Bool = yes; then
10407
10408cat >>confdefs.h <<_ACEOF
10409#define HAVE__BOOL 1
10410_ACEOF
10411
10412
10413fi
10414
10415if test $ac_cv_header_stdbool_h = yes; then
10416
10417cat >>confdefs.h <<\_ACEOF
10418#define HAVE_STDBOOL_H 1
10419_ACEOF
10420
10421fi
10422
10423
10424# Checks for library functions.
10425
10426for ac_header in stdlib.h
10427do
10428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10429if eval "test \"\${$as_ac_Header+set}\" = set"; then
10430  echo "$as_me:$LINENO: checking for $ac_header" >&5
10431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10432if eval "test \"\${$as_ac_Header+set}\" = set"; then
10433  echo $ECHO_N "(cached) $ECHO_C" >&6
10434fi
10435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10437else
10438  # Is the header compilable?
10439echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10441cat >conftest.$ac_ext <<_ACEOF
10442/* confdefs.h.  */
10443_ACEOF
10444cat confdefs.h >>conftest.$ac_ext
10445cat >>conftest.$ac_ext <<_ACEOF
10446/* end confdefs.h.  */
10447$ac_includes_default
10448#include <$ac_header>
10449_ACEOF
10450rm -f conftest.$ac_objext
10451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452  (eval $ac_compile) 2>conftest.er1
10453  ac_status=$?
10454  grep -v '^ *+' conftest.er1 >conftest.err
10455  rm -f conftest.er1
10456  cat conftest.err >&5
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); } &&
10459         { ac_try='test -z "$ac_c_werror_flag"
10460                         || test ! -s conftest.err'
10461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462  (eval $ac_try) 2>&5
10463  ac_status=$?
10464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465  (exit $ac_status); }; } &&
10466         { ac_try='test -s conftest.$ac_objext'
10467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468  (eval $ac_try) 2>&5
10469  ac_status=$?
10470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); }; }; then
10472  ac_header_compiler=yes
10473else
10474  echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477ac_header_compiler=no
10478fi
10479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10481echo "${ECHO_T}$ac_header_compiler" >&6
10482
10483# Is the header present?
10484echo "$as_me:$LINENO: checking $ac_header presence" >&5
10485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10486cat >conftest.$ac_ext <<_ACEOF
10487/* confdefs.h.  */
10488_ACEOF
10489cat confdefs.h >>conftest.$ac_ext
10490cat >>conftest.$ac_ext <<_ACEOF
10491/* end confdefs.h.  */
10492#include <$ac_header>
10493_ACEOF
10494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10495  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10496  ac_status=$?
10497  grep -v '^ *+' conftest.er1 >conftest.err
10498  rm -f conftest.er1
10499  cat conftest.err >&5
10500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501  (exit $ac_status); } >/dev/null; then
10502  if test -s conftest.err; then
10503    ac_cpp_err=$ac_c_preproc_warn_flag
10504    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10505  else
10506    ac_cpp_err=
10507  fi
10508else
10509  ac_cpp_err=yes
10510fi
10511if test -z "$ac_cpp_err"; then
10512  ac_header_preproc=yes
10513else
10514  echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
10516
10517  ac_header_preproc=no
10518fi
10519rm -f conftest.err conftest.$ac_ext
10520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10521echo "${ECHO_T}$ac_header_preproc" >&6
10522
10523# So?  What about this header?
10524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10525  yes:no: )
10526    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10528    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10530    ac_header_preproc=yes
10531    ;;
10532  no:yes:* )
10533    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10535    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10536echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10537    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10539    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10540echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10541    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10543    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10545    (
10546      cat <<\_ASBOX
10547## ---------------------------------------------- ##
10548## Report this to orxonox-dev at mail.datacore.ch ##
10549## ---------------------------------------------- ##
10550_ASBOX
10551    ) |
10552      sed "s/^/$as_me: WARNING:     /" >&2
10553    ;;
10554esac
10555echo "$as_me:$LINENO: checking for $ac_header" >&5
10556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10557if eval "test \"\${$as_ac_Header+set}\" = set"; then
10558  echo $ECHO_N "(cached) $ECHO_C" >&6
10559else
10560  eval "$as_ac_Header=\$ac_header_preproc"
10561fi
10562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10564
10565fi
10566if test `eval echo '${'$as_ac_Header'}'` = yes; then
10567  cat >>confdefs.h <<_ACEOF
10568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10569_ACEOF
10570
10571fi
10572
10573done
10574
10575echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10576echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
10577if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10578  echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580  if test "$cross_compiling" = yes; then
10581  ac_cv_func_malloc_0_nonnull=no
10582else
10583  cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h.  */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h.  */
10589#if STDC_HEADERS || HAVE_STDLIB_H
10590# include <stdlib.h>
10591#else
10592char *malloc ();
10593#endif
10594
10595int
10596main ()
10597{
10598exit (malloc (0) ? 0 : 1);
10599  ;
10600  return 0;
10601}
10602_ACEOF
10603rm -f conftest$ac_exeext
10604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605  (eval $ac_link) 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610  (eval $ac_try) 2>&5
10611  ac_status=$?
10612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613  (exit $ac_status); }; }; then
10614  ac_cv_func_malloc_0_nonnull=yes
10615else
10616  echo "$as_me: program exited with status $ac_status" >&5
10617echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620( exit $ac_status )
10621ac_cv_func_malloc_0_nonnull=no
10622fi
10623rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10624fi
10625fi
10626echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10627echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10628if test $ac_cv_func_malloc_0_nonnull = yes; then
10629
10630cat >>confdefs.h <<\_ACEOF
10631#define HAVE_MALLOC 1
10632_ACEOF
10633
10634else
10635  cat >>confdefs.h <<\_ACEOF
10636#define HAVE_MALLOC 0
10637_ACEOF
10638
10639   case $LIBOBJS in
10640    "malloc.$ac_objext"   | \
10641  *" malloc.$ac_objext"   | \
10642    "malloc.$ac_objext "* | \
10643  *" malloc.$ac_objext "* ) ;;
10644  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
10645esac
10646
10647
10648cat >>confdefs.h <<\_ACEOF
10649#define malloc rpl_malloc
10650_ACEOF
10651
10652fi
10653
10654
10655
10656
10657
10658for ac_func in bzero sqrt
10659do
10660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10661echo "$as_me:$LINENO: checking for $ac_func" >&5
10662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10663if eval "test \"\${$as_ac_var+set}\" = set"; then
10664  echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666  cat >conftest.$ac_ext <<_ACEOF
10667/* confdefs.h.  */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h.  */
10672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10673   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10674#define $ac_func innocuous_$ac_func
10675
10676/* System header to define __stub macros and hopefully few prototypes,
10677    which can conflict with char $ac_func (); below.
10678    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10679    <limits.h> exists even on freestanding compilers.  */
10680
10681#ifdef __STDC__
10682# include <limits.h>
10683#else
10684# include <assert.h>
10685#endif
10686
10687#undef $ac_func
10688
10689/* Override any gcc2 internal prototype to avoid an error.  */
10690#ifdef __cplusplus
10691extern "C"
10692{
10693#endif
10694/* We use char because int might match the return type of a gcc2
10695   builtin and then its argument prototype would still apply.  */
10696char $ac_func ();
10697/* The GNU C library defines this for functions which it implements
10698    to always fail with ENOSYS.  Some functions are actually named
10699    something starting with __ and the normal name is an alias.  */
10700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10701choke me
10702#else
10703char (*f) () = $ac_func;
10704#endif
10705#ifdef __cplusplus
10706}
10707#endif
10708
10709int
10710main ()
10711{
10712return f != $ac_func;
10713  ;
10714  return 0;
10715}
10716_ACEOF
10717rm -f conftest.$ac_objext conftest$ac_exeext
10718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10719  (eval $ac_link) 2>conftest.er1
10720  ac_status=$?
10721  grep -v '^ *+' conftest.er1 >conftest.err
10722  rm -f conftest.er1
10723  cat conftest.err >&5
10724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725  (exit $ac_status); } &&
10726         { ac_try='test -z "$ac_c_werror_flag"
10727                         || test ! -s conftest.err'
10728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729  (eval $ac_try) 2>&5
10730  ac_status=$?
10731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732  (exit $ac_status); }; } &&
10733         { ac_try='test -s conftest$ac_exeext'
10734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735  (eval $ac_try) 2>&5
10736  ac_status=$?
10737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738  (exit $ac_status); }; }; then
10739  eval "$as_ac_var=yes"
10740else
10741  echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744eval "$as_ac_var=no"
10745fi
10746rm -f conftest.err conftest.$ac_objext \
10747      conftest$ac_exeext conftest.$ac_ext
10748fi
10749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10751if test `eval echo '${'$as_ac_var'}'` = yes; then
10752  cat >>confdefs.h <<_ACEOF
10753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10754_ACEOF
10755
10756fi
10757done
10758
10759
10760######################
10761## OUTPUT CONFIGURE ##
10762######################
10763                                                                                                                                                                                                                            ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/gui/gtk_gui/Makefile src/lib/gui/gl_gui/Makefile src/lib/tinyxml/Makefile src/util/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
10764
10765
10766cat >confcache <<\_ACEOF
10767# This file is a shell script that caches the results of configure
10768# tests run on this system so they can be shared between configure
10769# scripts and configure runs, see configure's option --config-cache.
10770# It is not useful on other systems.  If it contains results you don't
10771# want to keep, you may remove or edit it.
10772#
10773# config.status only pays attention to the cache file if you give it
10774# the --recheck option to rerun configure.
10775#
10776# `ac_cv_env_foo' variables (set or unset) will be overridden when
10777# loading this file, other *unset* `ac_cv_foo' will be assigned the
10778# following values.
10779
10780_ACEOF
10781
10782# The following way of writing the cache mishandles newlines in values,
10783# but we know of no workaround that is simple, portable, and efficient.
10784# So, don't put newlines in cache variables' values.
10785# Ultrix sh set writes to stderr and can't be redirected directly,
10786# and sets the high bit in the cache file unless we assign to the vars.
10787{
10788  (set) 2>&1 |
10789    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10790    *ac_space=\ *)
10791      # `set' does not quote correctly, so add quotes (double-quote
10792      # substitution turns \\\\ into \\, and sed turns \\ into \).
10793      sed -n \
10794        "s/'/'\\\\''/g;
10795          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10796      ;;
10797    *)
10798      # `set' quotes correctly as required by POSIX, so do not add quotes.
10799      sed -n \
10800        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10801      ;;
10802    esac;
10803} |
10804  sed '
10805     t clear
10806     : clear
10807     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10808     t end
10809     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10810     : end' >>confcache
10811if diff $cache_file confcache >/dev/null 2>&1; then :; else
10812  if test -w $cache_file; then
10813    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10814    cat confcache >$cache_file
10815  else
10816    echo "not updating unwritable cache $cache_file"
10817  fi
10818fi
10819rm -f confcache
10820
10821test "x$prefix" = xNONE && prefix=$ac_default_prefix
10822# Let make expand exec_prefix.
10823test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10824
10825# VPATH may cause trouble with some makes, so we remove $(srcdir),
10826# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10827# trailing colons and then remove the whole line if VPATH becomes empty
10828# (actually we leave an empty line to preserve line numbers).
10829if test "x$srcdir" = x.; then
10830  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10831s/:*\$(srcdir):*/:/;
10832s/:*\${srcdir}:*/:/;
10833s/:*@srcdir@:*/:/;
10834s/^\([^=]*=[     ]*\):*/\1/;
10835s/:*$//;
10836s/^[^=]*=[       ]*$//;
10837}'
10838fi
10839
10840DEFS=-DHAVE_CONFIG_H
10841
10842ac_libobjs=
10843ac_ltlibobjs=
10844for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10845  # 1. Remove the extension, and $U if already installed.
10846  ac_i=`echo "$ac_i" |
10847         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10848  # 2. Add them.
10849  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10850  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10851done
10852LIBOBJS=$ac_libobjs
10853
10854LTLIBOBJS=$ac_ltlibobjs
10855
10856
10857if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10858  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10859Usually this means the macro was only invoked conditionally." >&5
10860echo "$as_me: error: conditional \"AMDEP\" was never defined.
10861Usually this means the macro was only invoked conditionally." >&2;}
10862   { (exit 1); exit 1; }; }
10863fi
10864if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10865  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10866Usually this means the macro was only invoked conditionally." >&5
10867echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10868Usually this means the macro was only invoked conditionally." >&2;}
10869   { (exit 1); exit 1; }; }
10870fi
10871if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10872  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10873Usually this means the macro was only invoked conditionally." >&5
10874echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10875Usually this means the macro was only invoked conditionally." >&2;}
10876   { (exit 1); exit 1; }; }
10877fi
10878if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10879  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10880Usually this means the macro was only invoked conditionally." >&5
10881echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10882Usually this means the macro was only invoked conditionally." >&2;}
10883   { (exit 1); exit 1; }; }
10884fi
10885if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10886  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10887Usually this means the macro was only invoked conditionally." >&5
10888echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10889Usually this means the macro was only invoked conditionally." >&2;}
10890   { (exit 1); exit 1; }; }
10891fi
10892if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10893  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10894Usually this means the macro was only invoked conditionally." >&5
10895echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10896Usually this means the macro was only invoked conditionally." >&2;}
10897   { (exit 1); exit 1; }; }
10898fi
10899if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10900  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
10901Usually this means the macro was only invoked conditionally." >&5
10902echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
10903Usually this means the macro was only invoked conditionally." >&2;}
10904   { (exit 1); exit 1; }; }
10905fi
10906if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10907  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
10908Usually this means the macro was only invoked conditionally." >&5
10909echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
10910Usually this means the macro was only invoked conditionally." >&2;}
10911   { (exit 1); exit 1; }; }
10912fi
10913
10914: ${CONFIG_STATUS=./config.status}
10915ac_clean_files_save=$ac_clean_files
10916ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10917{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10918echo "$as_me: creating $CONFIG_STATUS" >&6;}
10919cat >$CONFIG_STATUS <<_ACEOF
10920#! $SHELL
10921# Generated by $as_me.
10922# Run this file to recreate the current configuration.
10923# Compiler output produced by configure, useful for debugging
10924# configure, is in config.log if it exists.
10925
10926debug=false
10927ac_cs_recheck=false
10928ac_cs_silent=false
10929SHELL=\${CONFIG_SHELL-$SHELL}
10930_ACEOF
10931
10932cat >>$CONFIG_STATUS <<\_ACEOF
10933## --------------------- ##
10934## M4sh Initialization.  ##
10935## --------------------- ##
10936
10937# Be Bourne compatible
10938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10939  emulate sh
10940  NULLCMD=:
10941  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10942  # is contrary to our usage.  Disable this feature.
10943  alias -g '${1+"$@"}'='"$@"'
10944elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10945  set -o posix
10946fi
10947DUALCASE=1; export DUALCASE # for MKS sh
10948
10949# Support unset when possible.
10950if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10951  as_unset=unset
10952else
10953  as_unset=false
10954fi
10955
10956
10957# Work around bugs in pre-3.0 UWIN ksh.
10958$as_unset ENV MAIL MAILPATH
10959PS1='$ '
10960PS2='> '
10961PS4='+ '
10962
10963# NLS nuisances.
10964for as_var in \
10965  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10966  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10967  LC_TELEPHONE LC_TIME
10968do
10969  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10970    eval $as_var=C; export $as_var
10971  else
10972    $as_unset $as_var
10973  fi
10974done
10975
10976# Required to use basename.
10977if expr a : '\(a\)' >/dev/null 2>&1; then
10978  as_expr=expr
10979else
10980  as_expr=false
10981fi
10982
10983if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10984  as_basename=basename
10985else
10986  as_basename=false
10987fi
10988
10989
10990# Name of the executable.
10991as_me=`$as_basename "$0" ||
10992$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10993         X"$0" : 'X\(//\)$' \| \
10994         X"$0" : 'X\(/\)$' \| \
10995         .     : '\(.\)' 2>/dev/null ||
10996echo X/"$0" |
10997    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10998          /^X\/\(\/\/\)$/{ s//\1/; q; }
10999          /^X\/\(\/\).*/{ s//\1/; q; }
11000          s/.*/./; q'`
11001
11002
11003# PATH needs CR, and LINENO needs CR and PATH.
11004# Avoid depending upon Character Ranges.
11005as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11006as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11007as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11008as_cr_digits='0123456789'
11009as_cr_alnum=$as_cr_Letters$as_cr_digits
11010
11011# The user is always right.
11012if test "${PATH_SEPARATOR+set}" != set; then
11013  echo "#! /bin/sh" >conf$$.sh
11014  echo  "exit 0"   >>conf$$.sh
11015  chmod +x conf$$.sh
11016  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11017    PATH_SEPARATOR=';'
11018  else
11019    PATH_SEPARATOR=:
11020  fi
11021  rm -f conf$$.sh
11022fi
11023
11024
11025  as_lineno_1=$LINENO
11026  as_lineno_2=$LINENO
11027  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11028  test "x$as_lineno_1" != "x$as_lineno_2" &&
11029  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11030  # Find who we are.  Look in the path if we contain no path at all
11031  # relative or not.
11032  case $0 in
11033    *[\\/]* ) as_myself=$0 ;;
11034    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035for as_dir in $PATH
11036do
11037  IFS=$as_save_IFS
11038  test -z "$as_dir" && as_dir=.
11039  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11040done
11041
11042       ;;
11043  esac
11044  # We did not find ourselves, most probably we were run as `sh COMMAND'
11045  # in which case we are not to be found in the path.
11046  if test "x$as_myself" = x; then
11047    as_myself=$0
11048  fi
11049  if test ! -f "$as_myself"; then
11050    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11051echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11052   { (exit 1); exit 1; }; }
11053  fi
11054  case $CONFIG_SHELL in
11055  '')
11056    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11058do
11059  IFS=$as_save_IFS
11060  test -z "$as_dir" && as_dir=.
11061  for as_base in sh bash ksh sh5; do
11062         case $as_dir in
11063         /*)
11064           if ("$as_dir/$as_base" -c '
11065  as_lineno_1=$LINENO
11066  as_lineno_2=$LINENO
11067  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11068  test "x$as_lineno_1" != "x$as_lineno_2" &&
11069  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11070             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11071             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11072             CONFIG_SHELL=$as_dir/$as_base
11073             export CONFIG_SHELL
11074             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11075           fi;;
11076         esac
11077       done
11078done
11079;;
11080  esac
11081
11082  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11083  # uniformly replaced by the line number.  The first 'sed' inserts a
11084  # line-number line before each line; the second 'sed' does the real
11085  # work.  The second script uses 'N' to pair each line-number line
11086  # with the numbered line, and appends trailing '-' during
11087  # substitution so that $LINENO is not a special case at line end.
11088  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11089  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11090  sed '=' <$as_myself |
11091    sed '
11092      N
11093      s,$,-,
11094      : loop
11095      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11096      t loop
11097      s,-$,,
11098      s,^['$as_cr_digits']*\n,,
11099    ' >$as_me.lineno &&
11100  chmod +x $as_me.lineno ||
11101    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11102echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11103   { (exit 1); exit 1; }; }
11104
11105  # Don't try to exec as it changes $[0], causing all sort of problems
11106  # (the dirname of $[0] is not the place where we might find the
11107  # original and so on.  Autoconf is especially sensible to this).
11108  . ./$as_me.lineno
11109  # Exit status is that of the last command.
11110  exit
11111}
11112
11113
11114case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11115  *c*,-n*) ECHO_N= ECHO_C='
11116' ECHO_T='      ' ;;
11117  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11118  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11119esac
11120
11121if expr a : '\(a\)' >/dev/null 2>&1; then
11122  as_expr=expr
11123else
11124  as_expr=false
11125fi
11126
11127rm -f conf$$ conf$$.exe conf$$.file
11128echo >conf$$.file
11129if ln -s conf$$.file conf$$ 2>/dev/null; then
11130  # We could just check for DJGPP; but this test a) works b) is more generic
11131  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11132  if test -f conf$$.exe; then
11133    # Don't use ln at all; we don't have any links
11134    as_ln_s='cp -p'
11135  else
11136    as_ln_s='ln -s'
11137  fi
11138elif ln conf$$.file conf$$ 2>/dev/null; then
11139  as_ln_s=ln
11140else
11141  as_ln_s='cp -p'
11142fi
11143rm -f conf$$ conf$$.exe conf$$.file
11144
11145if mkdir -p . 2>/dev/null; then
11146  as_mkdir_p=:
11147else
11148  test -d ./-p && rmdir ./-p
11149  as_mkdir_p=false
11150fi
11151
11152as_executable_p="test -f"
11153
11154# Sed expression to map a string onto a valid CPP name.
11155as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11156
11157# Sed expression to map a string onto a valid variable name.
11158as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11159
11160
11161# IFS
11162# We need space, tab and new line, in precisely that order.
11163as_nl='
11164'
11165IFS="   $as_nl"
11166
11167# CDPATH.
11168$as_unset CDPATH
11169
11170exec 6>&1
11171
11172# Open the log real soon, to keep \$[0] and so on meaningful, and to
11173# report actual input values of CONFIG_FILES etc. instead of their
11174# values after options handling.  Logging --version etc. is OK.
11175exec 5>>config.log
11176{
11177  echo
11178  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11179## Running $as_me. ##
11180_ASBOX
11181} >&5
11182cat >&5 <<_CSEOF
11183
11184This file was extended by orxonox $as_me 0.3.1_alpha, which was
11185generated by GNU Autoconf 2.59.  Invocation command line was
11186
11187  CONFIG_FILES    = $CONFIG_FILES
11188  CONFIG_HEADERS  = $CONFIG_HEADERS
11189  CONFIG_LINKS    = $CONFIG_LINKS
11190  CONFIG_COMMANDS = $CONFIG_COMMANDS
11191  $ $0 $@
11192
11193_CSEOF
11194echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11195echo >&5
11196_ACEOF
11197
11198# Files that config.status was made for.
11199if test -n "$ac_config_files"; then
11200  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11201fi
11202
11203if test -n "$ac_config_headers"; then
11204  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11205fi
11206
11207if test -n "$ac_config_links"; then
11208  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11209fi
11210
11211if test -n "$ac_config_commands"; then
11212  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11213fi
11214
11215cat >>$CONFIG_STATUS <<\_ACEOF
11216
11217ac_cs_usage="\
11218\`$as_me' instantiates files from templates according to the
11219current configuration.
11220
11221Usage: $0 [OPTIONS] [FILE]...
11222
11223  -h, --help       print this help, then exit
11224  -V, --version    print version number, then exit
11225  -q, --quiet      do not print progress messages
11226  -d, --debug      don't remove temporary files
11227      --recheck    update $as_me by reconfiguring in the same conditions
11228  --file=FILE[:TEMPLATE]
11229                   instantiate the configuration file FILE
11230  --header=FILE[:TEMPLATE]
11231                   instantiate the configuration header FILE
11232
11233Configuration files:
11234$config_files
11235
11236Configuration headers:
11237$config_headers
11238
11239Configuration commands:
11240$config_commands
11241
11242Report bugs to <bug-autoconf@gnu.org>."
11243_ACEOF
11244
11245cat >>$CONFIG_STATUS <<_ACEOF
11246ac_cs_version="\\
11247orxonox config.status 0.3.1_alpha
11248configured by $0, generated by GNU Autoconf 2.59,
11249  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11250
11251Copyright (C) 2003 Free Software Foundation, Inc.
11252This config.status script is free software; the Free Software Foundation
11253gives unlimited permission to copy, distribute and modify it."
11254srcdir=$srcdir
11255INSTALL="$INSTALL"
11256_ACEOF
11257
11258cat >>$CONFIG_STATUS <<\_ACEOF
11259# If no file are specified by the user, then we need to provide default
11260# value.  By we need to know if files were specified by the user.
11261ac_need_defaults=:
11262while test $# != 0
11263do
11264  case $1 in
11265  --*=*)
11266    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11267    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11268    ac_shift=:
11269    ;;
11270  -*)
11271    ac_option=$1
11272    ac_optarg=$2
11273    ac_shift=shift
11274    ;;
11275  *) # This is not an option, so the user has probably given explicit
11276     # arguments.
11277     ac_option=$1
11278     ac_need_defaults=false;;
11279  esac
11280
11281  case $ac_option in
11282  # Handling of the options.
11283_ACEOF
11284cat >>$CONFIG_STATUS <<\_ACEOF
11285  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11286    ac_cs_recheck=: ;;
11287  --version | --vers* | -V )
11288    echo "$ac_cs_version"; exit 0 ;;
11289  --he | --h)
11290    # Conflict between --help and --header
11291    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11292Try \`$0 --help' for more information." >&5
11293echo "$as_me: error: ambiguous option: $1
11294Try \`$0 --help' for more information." >&2;}
11295   { (exit 1); exit 1; }; };;
11296  --help | --hel | -h )
11297    echo "$ac_cs_usage"; exit 0 ;;
11298  --debug | --d* | -d )
11299    debug=: ;;
11300  --file | --fil | --fi | --f )
11301    $ac_shift
11302    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11303    ac_need_defaults=false;;
11304  --header | --heade | --head | --hea )
11305    $ac_shift
11306    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11307    ac_need_defaults=false;;
11308  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11309  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11310    ac_cs_silent=: ;;
11311
11312  # This is an error.
11313  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11314Try \`$0 --help' for more information." >&5
11315echo "$as_me: error: unrecognized option: $1
11316Try \`$0 --help' for more information." >&2;}
11317   { (exit 1); exit 1; }; } ;;
11318
11319  *) ac_config_targets="$ac_config_targets $1" ;;
11320
11321  esac
11322  shift
11323done
11324
11325ac_configure_extra_args=
11326
11327if $ac_cs_silent; then
11328  exec 6>/dev/null
11329  ac_configure_extra_args="$ac_configure_extra_args --silent"
11330fi
11331
11332_ACEOF
11333cat >>$CONFIG_STATUS <<_ACEOF
11334if \$ac_cs_recheck; then
11335  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11336  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11337fi
11338
11339_ACEOF
11340
11341cat >>$CONFIG_STATUS <<_ACEOF
11342#
11343# INIT-COMMANDS section.
11344#
11345
11346AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11347
11348_ACEOF
11349
11350
11351
11352cat >>$CONFIG_STATUS <<\_ACEOF
11353for ac_config_target in $ac_config_targets
11354do
11355  case "$ac_config_target" in
11356  # Handling of arguments.
11357  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11358  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11359  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11360  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
11361  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
11362  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
11363  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
11364  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
11365  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
11366  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
11367  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
11368  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
11369  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
11370  "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;;
11371  "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;;
11372  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
11373  "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
11374  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
11375  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
11376  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
11377  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
11378  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
11379  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11380  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11381  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11382echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11383   { (exit 1); exit 1; }; };;
11384  esac
11385done
11386
11387# If the user did not use the arguments to specify the items to instantiate,
11388# then the envvar interface is used.  Set only those that are not.
11389# We use the long form for the default assignment because of an extremely
11390# bizarre bug on SunOS 4.1.3.
11391if $ac_need_defaults; then
11392  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11393  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11394  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11395fi
11396
11397# Have a temporary directory for convenience.  Make it in the build tree
11398# simply because there is no reason to put it here, and in addition,
11399# creating and moving files from /tmp can sometimes cause problems.
11400# Create a temporary directory, and hook for its removal unless debugging.
11401$debug ||
11402{
11403  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11404  trap '{ (exit 1); exit 1; }' 1 2 13 15
11405}
11406
11407# Create a (secure) tmp directory for tmp files.
11408
11409{
11410  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11411  test -n "$tmp" && test -d "$tmp"
11412}  ||
11413{
11414  tmp=./confstat$$-$RANDOM
11415  (umask 077 && mkdir $tmp)
11416} ||
11417{
11418   echo "$me: cannot create a temporary directory in ." >&2
11419   { (exit 1); exit 1; }
11420}
11421
11422_ACEOF
11423
11424cat >>$CONFIG_STATUS <<_ACEOF
11425
11426#
11427# CONFIG_FILES section.
11428#
11429
11430# No need to generate the scripts if there are no CONFIG_FILES.
11431# This happens for instance when ./config.status config.h
11432if test -n "\$CONFIG_FILES"; then
11433  # Protect against being on the right side of a sed subst in config.status.
11434  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11435   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11436s,@SHELL@,$SHELL,;t t
11437s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11438s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11439s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11440s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11441s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11442s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11443s,@exec_prefix@,$exec_prefix,;t t
11444s,@prefix@,$prefix,;t t
11445s,@program_transform_name@,$program_transform_name,;t t
11446s,@bindir@,$bindir,;t t
11447s,@sbindir@,$sbindir,;t t
11448s,@libexecdir@,$libexecdir,;t t
11449s,@datadir@,$datadir,;t t
11450s,@sysconfdir@,$sysconfdir,;t t
11451s,@sharedstatedir@,$sharedstatedir,;t t
11452s,@localstatedir@,$localstatedir,;t t
11453s,@libdir@,$libdir,;t t
11454s,@includedir@,$includedir,;t t
11455s,@oldincludedir@,$oldincludedir,;t t
11456s,@infodir@,$infodir,;t t
11457s,@mandir@,$mandir,;t t
11458s,@build_alias@,$build_alias,;t t
11459s,@host_alias@,$host_alias,;t t
11460s,@target_alias@,$target_alias,;t t
11461s,@DEFS@,$DEFS,;t t
11462s,@ECHO_C@,$ECHO_C,;t t
11463s,@ECHO_N@,$ECHO_N,;t t
11464s,@ECHO_T@,$ECHO_T,;t t
11465s,@LIBS@,$LIBS,;t t
11466s,@build@,$build,;t t
11467s,@build_cpu@,$build_cpu,;t t
11468s,@build_vendor@,$build_vendor,;t t
11469s,@build_os@,$build_os,;t t
11470s,@host@,$host,;t t
11471s,@host_cpu@,$host_cpu,;t t
11472s,@host_vendor@,$host_vendor,;t t
11473s,@host_os@,$host_os,;t t
11474s,@target@,$target,;t t
11475s,@target_cpu@,$target_cpu,;t t
11476s,@target_vendor@,$target_vendor,;t t
11477s,@target_os@,$target_os,;t t
11478s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11479s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11480s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11481s,@CYGPATH_W@,$CYGPATH_W,;t t
11482s,@PACKAGE@,$PACKAGE,;t t
11483s,@VERSION@,$VERSION,;t t
11484s,@ACLOCAL@,$ACLOCAL,;t t
11485s,@AUTOCONF@,$AUTOCONF,;t t
11486s,@AUTOMAKE@,$AUTOMAKE,;t t
11487s,@AUTOHEADER@,$AUTOHEADER,;t t
11488s,@MAKEINFO@,$MAKEINFO,;t t
11489s,@install_sh@,$install_sh,;t t
11490s,@STRIP@,$STRIP,;t t
11491s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11492s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11493s,@mkdir_p@,$mkdir_p,;t t
11494s,@AWK@,$AWK,;t t
11495s,@SET_MAKE@,$SET_MAKE,;t t
11496s,@am__leading_dot@,$am__leading_dot,;t t
11497s,@AMTAR@,$AMTAR,;t t
11498s,@am__tar@,$am__tar,;t t
11499s,@am__untar@,$am__untar,;t t
11500s,@CXX@,$CXX,;t t
11501s,@CXXFLAGS@,$CXXFLAGS,;t t
11502s,@LDFLAGS@,$LDFLAGS,;t t
11503s,@CPPFLAGS@,$CPPFLAGS,;t t
11504s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11505s,@EXEEXT@,$EXEEXT,;t t
11506s,@OBJEXT@,$OBJEXT,;t t
11507s,@DEPDIR@,$DEPDIR,;t t
11508s,@am__include@,$am__include,;t t
11509s,@am__quote@,$am__quote,;t t
11510s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11511s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11512s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11513s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11514s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11515s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11516s,@RANLIB@,$RANLIB,;t t
11517s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11518s,@CC@,$CC,;t t
11519s,@CFLAGS@,$CFLAGS,;t t
11520s,@ac_ct_CC@,$ac_ct_CC,;t t
11521s,@CCDEPMODE@,$CCDEPMODE,;t t
11522s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11523s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11524s,@CPP@,$CPP,;t t
11525s,@EGREP@,$EGREP,;t t
11526s,@DEBUG@,$DEBUG,;t t
11527s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
11528s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
11529s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
11530s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
11531s,@DOXYGEN@,$DOXYGEN,;t t
11532s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
11533s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
11534s,@GPROF@,$GPROF,;t t
11535s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11536s,@MSBITFIELDS@,$MSBITFIELDS,;t t
11537s,@CURL_LIBS@,$CURL_LIBS,;t t
11538s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
11539s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
11540s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
11541s,@GTK2_LIBS@,$GTK2_LIBS,;t t
11542s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
11543s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
11544s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
11545s,@LIBOBJS@,$LIBOBJS,;t t
11546s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11547CEOF
11548
11549_ACEOF
11550
11551  cat >>$CONFIG_STATUS <<\_ACEOF
11552  # Split the substitutions into bite-sized pieces for seds with
11553  # small command number limits, like on Digital OSF/1 and HP-UX.
11554  ac_max_sed_lines=48
11555  ac_sed_frag=1 # Number of current file.
11556  ac_beg=1 # First line for current file.
11557  ac_end=$ac_max_sed_lines # Line after last line for current file.
11558  ac_more_lines=:
11559  ac_sed_cmds=
11560  while $ac_more_lines; do
11561    if test $ac_beg -gt 1; then
11562      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11563    else
11564      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11565    fi
11566    if test ! -s $tmp/subs.frag; then
11567      ac_more_lines=false
11568    else
11569      # The purpose of the label and of the branching condition is to
11570      # speed up the sed processing (if there are no `@' at all, there
11571      # is no need to browse any of the substitutions).
11572      # These are the two extra sed commands mentioned above.
11573      (echo ':t
11574  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11575      if test -z "$ac_sed_cmds"; then
11576        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11577      else
11578        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11579      fi
11580      ac_sed_frag=`expr $ac_sed_frag + 1`
11581      ac_beg=$ac_end
11582      ac_end=`expr $ac_end + $ac_max_sed_lines`
11583    fi
11584  done
11585  if test -z "$ac_sed_cmds"; then
11586    ac_sed_cmds=cat
11587  fi
11588fi # test -n "$CONFIG_FILES"
11589
11590_ACEOF
11591cat >>$CONFIG_STATUS <<\_ACEOF
11592for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11593  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11594  case $ac_file in
11595  - | *:- | *:-:* ) # input from stdin
11596        cat >$tmp/stdin
11597        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11598        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11599  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11600        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11601  * )   ac_file_in=$ac_file.in ;;
11602  esac
11603
11604  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11605  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11607         X"$ac_file" : 'X\(//\)[^/]' \| \
11608         X"$ac_file" : 'X\(//\)$' \| \
11609         X"$ac_file" : 'X\(/\)' \| \
11610         .     : '\(.\)' 2>/dev/null ||
11611echo X"$ac_file" |
11612    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11613          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11614          /^X\(\/\/\)$/{ s//\1/; q; }
11615          /^X\(\/\).*/{ s//\1/; q; }
11616          s/.*/./; q'`
11617  { if $as_mkdir_p; then
11618    mkdir -p "$ac_dir"
11619  else
11620    as_dir="$ac_dir"
11621    as_dirs=
11622    while test ! -d "$as_dir"; do
11623      as_dirs="$as_dir $as_dirs"
11624      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11626         X"$as_dir" : 'X\(//\)[^/]' \| \
11627         X"$as_dir" : 'X\(//\)$' \| \
11628         X"$as_dir" : 'X\(/\)' \| \
11629         .     : '\(.\)' 2>/dev/null ||
11630echo X"$as_dir" |
11631    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11632          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11633          /^X\(\/\/\)$/{ s//\1/; q; }
11634          /^X\(\/\).*/{ s//\1/; q; }
11635          s/.*/./; q'`
11636    done
11637    test ! -n "$as_dirs" || mkdir $as_dirs
11638  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11639echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11640   { (exit 1); exit 1; }; }; }
11641
11642  ac_builddir=.
11643
11644if test "$ac_dir" != .; then
11645  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11646  # A "../" for each directory in $ac_dir_suffix.
11647  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11648else
11649  ac_dir_suffix= ac_top_builddir=
11650fi
11651
11652case $srcdir in
11653  .)  # No --srcdir option.  We are building in place.
11654    ac_srcdir=.
11655    if test -z "$ac_top_builddir"; then
11656       ac_top_srcdir=.
11657    else
11658       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11659    fi ;;
11660  [\\/]* | ?:[\\/]* )  # Absolute path.
11661    ac_srcdir=$srcdir$ac_dir_suffix;
11662    ac_top_srcdir=$srcdir ;;
11663  *) # Relative path.
11664    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11665    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11666esac
11667
11668# Do not use `cd foo && pwd` to compute absolute paths, because
11669# the directories may not exist.
11670case `pwd` in
11671.) ac_abs_builddir="$ac_dir";;
11672*)
11673  case "$ac_dir" in
11674  .) ac_abs_builddir=`pwd`;;
11675  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11676  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11677  esac;;
11678esac
11679case $ac_abs_builddir in
11680.) ac_abs_top_builddir=${ac_top_builddir}.;;
11681*)
11682  case ${ac_top_builddir}. in
11683  .) ac_abs_top_builddir=$ac_abs_builddir;;
11684  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11685  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11686  esac;;
11687esac
11688case $ac_abs_builddir in
11689.) ac_abs_srcdir=$ac_srcdir;;
11690*)
11691  case $ac_srcdir in
11692  .) ac_abs_srcdir=$ac_abs_builddir;;
11693  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11694  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11695  esac;;
11696esac
11697case $ac_abs_builddir in
11698.) ac_abs_top_srcdir=$ac_top_srcdir;;
11699*)
11700  case $ac_top_srcdir in
11701  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11702  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11703  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11704  esac;;
11705esac
11706
11707
11708  case $INSTALL in
11709  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11710  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11711  esac
11712
11713  if test x"$ac_file" != x-; then
11714    { echo "$as_me:$LINENO: creating $ac_file" >&5
11715echo "$as_me: creating $ac_file" >&6;}
11716    rm -f "$ac_file"
11717  fi
11718  # Let's still pretend it is `configure' which instantiates (i.e., don't
11719  # use $as_me), people would be surprised to read:
11720  #    /* config.h.  Generated by config.status.  */
11721  if test x"$ac_file" = x-; then
11722    configure_input=
11723  else
11724    configure_input="$ac_file.  "
11725  fi
11726  configure_input=$configure_input"Generated from `echo $ac_file_in |
11727                                     sed 's,.*/,,'` by configure."
11728
11729  # First look for the input files in the build tree, otherwise in the
11730  # src tree.
11731  ac_file_inputs=`IFS=:
11732    for f in $ac_file_in; do
11733      case $f in
11734      -) echo $tmp/stdin ;;
11735      [\\/$]*)
11736         # Absolute (can't be DOS-style, as IFS=:)
11737         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11738echo "$as_me: error: cannot find input file: $f" >&2;}
11739   { (exit 1); exit 1; }; }
11740         echo "$f";;
11741      *) # Relative
11742         if test -f "$f"; then
11743           # Build tree
11744           echo "$f"
11745         elif test -f "$srcdir/$f"; then
11746           # Source tree
11747           echo "$srcdir/$f"
11748         else
11749           # /dev/null tree
11750           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11751echo "$as_me: error: cannot find input file: $f" >&2;}
11752   { (exit 1); exit 1; }; }
11753         fi;;
11754      esac
11755    done` || { (exit 1); exit 1; }
11756_ACEOF
11757cat >>$CONFIG_STATUS <<_ACEOF
11758  sed "$ac_vpsub
11759$extrasub
11760_ACEOF
11761cat >>$CONFIG_STATUS <<\_ACEOF
11762:t
11763/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11764s,@configure_input@,$configure_input,;t t
11765s,@srcdir@,$ac_srcdir,;t t
11766s,@abs_srcdir@,$ac_abs_srcdir,;t t
11767s,@top_srcdir@,$ac_top_srcdir,;t t
11768s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11769s,@builddir@,$ac_builddir,;t t
11770s,@abs_builddir@,$ac_abs_builddir,;t t
11771s,@top_builddir@,$ac_top_builddir,;t t
11772s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11773s,@INSTALL@,$ac_INSTALL,;t t
11774" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11775  rm -f $tmp/stdin
11776  if test x"$ac_file" != x-; then
11777    mv $tmp/out $ac_file
11778  else
11779    cat $tmp/out
11780    rm -f $tmp/out
11781  fi
11782
11783done
11784_ACEOF
11785cat >>$CONFIG_STATUS <<\_ACEOF
11786
11787#
11788# CONFIG_HEADER section.
11789#
11790
11791# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11792# NAME is the cpp macro being defined and VALUE is the value it is being given.
11793#
11794# ac_d sets the value in "#define NAME VALUE" lines.
11795ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11796ac_dB='[         ].*$,\1#\2'
11797ac_dC=' '
11798ac_dD=',;t'
11799# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11800ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11801ac_uB='$,\1#\2define\3'
11802ac_uC=' '
11803ac_uD=',;t'
11804
11805for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11806  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11807  case $ac_file in
11808  - | *:- | *:-:* ) # input from stdin
11809        cat >$tmp/stdin
11810        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11811        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11812  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11813        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11814  * )   ac_file_in=$ac_file.in ;;
11815  esac
11816
11817  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11818echo "$as_me: creating $ac_file" >&6;}
11819
11820  # First look for the input files in the build tree, otherwise in the
11821  # src tree.
11822  ac_file_inputs=`IFS=:
11823    for f in $ac_file_in; do
11824      case $f in
11825      -) echo $tmp/stdin ;;
11826      [\\/$]*)
11827         # Absolute (can't be DOS-style, as IFS=:)
11828         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11829echo "$as_me: error: cannot find input file: $f" >&2;}
11830   { (exit 1); exit 1; }; }
11831         # Do quote $f, to prevent DOS paths from being IFS'd.
11832         echo "$f";;
11833      *) # Relative
11834         if test -f "$f"; then
11835           # Build tree
11836           echo "$f"
11837         elif test -f "$srcdir/$f"; then
11838           # Source tree
11839           echo "$srcdir/$f"
11840         else
11841           # /dev/null tree
11842           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11843echo "$as_me: error: cannot find input file: $f" >&2;}
11844   { (exit 1); exit 1; }; }
11845         fi;;
11846      esac
11847    done` || { (exit 1); exit 1; }
11848  # Remove the trailing spaces.
11849  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11850
11851_ACEOF
11852
11853# Transform confdefs.h into two sed scripts, `conftest.defines' and
11854# `conftest.undefs', that substitutes the proper values into
11855# config.h.in to produce config.h.  The first handles `#define'
11856# templates, and the second `#undef' templates.
11857# And first: Protect against being on the right side of a sed subst in
11858# config.status.  Protect against being in an unquoted here document
11859# in config.status.
11860rm -f conftest.defines conftest.undefs
11861# Using a here document instead of a string reduces the quoting nightmare.
11862# Putting comments in sed scripts is not portable.
11863#
11864# `end' is used to avoid that the second main sed command (meant for
11865# 0-ary CPP macros) applies to n-ary macro definitions.
11866# See the Autoconf documentation for `clear'.
11867cat >confdef2sed.sed <<\_ACEOF
11868s/[\\&,]/\\&/g
11869s,[\\$`],\\&,g
11870t clear
11871: clear
11872s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11873t end
11874s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11875: end
11876_ACEOF
11877# If some macros were called several times there might be several times
11878# the same #defines, which is useless.  Nevertheless, we may not want to
11879# sort them, since we want the *last* AC-DEFINE to be honored.
11880uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11881sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11882rm -f confdef2sed.sed
11883
11884# This sed command replaces #undef with comments.  This is necessary, for
11885# example, in the case of _POSIX_SOURCE, which is predefined and required
11886# on some systems where configure will not decide to define it.
11887cat >>conftest.undefs <<\_ACEOF
11888s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11889_ACEOF
11890
11891# Break up conftest.defines because some shells have a limit on the size
11892# of here documents, and old seds have small limits too (100 cmds).
11893echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11894echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11895echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11896echo '  :' >>$CONFIG_STATUS
11897rm -f conftest.tail
11898while grep . conftest.defines >/dev/null
11899do
11900  # Write a limited-size here document to $tmp/defines.sed.
11901  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11902  # Speed up: don't consider the non `#define' lines.
11903  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11904  # Work around the forget-to-reset-the-flag bug.
11905  echo 't clr' >>$CONFIG_STATUS
11906  echo ': clr' >>$CONFIG_STATUS
11907  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11908  echo 'CEOF
11909  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11910  rm -f $tmp/in
11911  mv $tmp/out $tmp/in
11912' >>$CONFIG_STATUS
11913  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11914  rm -f conftest.defines
11915  mv conftest.tail conftest.defines
11916done
11917rm -f conftest.defines
11918echo '  fi # grep' >>$CONFIG_STATUS
11919echo >>$CONFIG_STATUS
11920
11921# Break up conftest.undefs because some shells have a limit on the size
11922# of here documents, and old seds have small limits too (100 cmds).
11923echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11924rm -f conftest.tail
11925while grep . conftest.undefs >/dev/null
11926do
11927  # Write a limited-size here document to $tmp/undefs.sed.
11928  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11929  # Speed up: don't consider the non `#undef'
11930  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11931  # Work around the forget-to-reset-the-flag bug.
11932  echo 't clr' >>$CONFIG_STATUS
11933  echo ': clr' >>$CONFIG_STATUS
11934  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11935  echo 'CEOF
11936  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11937  rm -f $tmp/in
11938  mv $tmp/out $tmp/in
11939' >>$CONFIG_STATUS
11940  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11941  rm -f conftest.undefs
11942  mv conftest.tail conftest.undefs
11943done
11944rm -f conftest.undefs
11945
11946cat >>$CONFIG_STATUS <<\_ACEOF
11947  # Let's still pretend it is `configure' which instantiates (i.e., don't
11948  # use $as_me), people would be surprised to read:
11949  #    /* config.h.  Generated by config.status.  */
11950  if test x"$ac_file" = x-; then
11951    echo "/* Generated by configure.  */" >$tmp/config.h
11952  else
11953    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11954  fi
11955  cat $tmp/in >>$tmp/config.h
11956  rm -f $tmp/in
11957  if test x"$ac_file" != x-; then
11958    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11959      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11960echo "$as_me: $ac_file is unchanged" >&6;}
11961    else
11962      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11963$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11964         X"$ac_file" : 'X\(//\)[^/]' \| \
11965         X"$ac_file" : 'X\(//\)$' \| \
11966         X"$ac_file" : 'X\(/\)' \| \
11967         .     : '\(.\)' 2>/dev/null ||
11968echo X"$ac_file" |
11969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11970          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11971          /^X\(\/\/\)$/{ s//\1/; q; }
11972          /^X\(\/\).*/{ s//\1/; q; }
11973          s/.*/./; q'`
11974      { if $as_mkdir_p; then
11975    mkdir -p "$ac_dir"
11976  else
11977    as_dir="$ac_dir"
11978    as_dirs=
11979    while test ! -d "$as_dir"; do
11980      as_dirs="$as_dir $as_dirs"
11981      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11982$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11983         X"$as_dir" : 'X\(//\)[^/]' \| \
11984         X"$as_dir" : 'X\(//\)$' \| \
11985         X"$as_dir" : 'X\(/\)' \| \
11986         .     : '\(.\)' 2>/dev/null ||
11987echo X"$as_dir" |
11988    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11989          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11990          /^X\(\/\/\)$/{ s//\1/; q; }
11991          /^X\(\/\).*/{ s//\1/; q; }
11992          s/.*/./; q'`
11993    done
11994    test ! -n "$as_dirs" || mkdir $as_dirs
11995  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11996echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11997   { (exit 1); exit 1; }; }; }
11998
11999      rm -f $ac_file
12000      mv $tmp/config.h $ac_file
12001    fi
12002  else
12003    cat $tmp/config.h
12004    rm -f $tmp/config.h
12005  fi
12006# Compute $ac_file's index in $config_headers.
12007_am_stamp_count=1
12008for _am_header in $config_headers :; do
12009  case $_am_header in
12010    $ac_file | $ac_file:* )
12011      break ;;
12012    * )
12013      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12014  esac
12015done
12016echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12017$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12018         X$ac_file : 'X\(//\)[^/]' \| \
12019         X$ac_file : 'X\(//\)$' \| \
12020         X$ac_file : 'X\(/\)' \| \
12021         .     : '\(.\)' 2>/dev/null ||
12022echo X$ac_file |
12023    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12024          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12025          /^X\(\/\/\)$/{ s//\1/; q; }
12026          /^X\(\/\).*/{ s//\1/; q; }
12027          s/.*/./; q'`/stamp-h$_am_stamp_count
12028done
12029_ACEOF
12030cat >>$CONFIG_STATUS <<\_ACEOF
12031
12032#
12033# CONFIG_COMMANDS section.
12034#
12035for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12036  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12037  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12038  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12039$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12040         X"$ac_dest" : 'X\(//\)[^/]' \| \
12041         X"$ac_dest" : 'X\(//\)$' \| \
12042         X"$ac_dest" : 'X\(/\)' \| \
12043         .     : '\(.\)' 2>/dev/null ||
12044echo X"$ac_dest" |
12045    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12046          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12047          /^X\(\/\/\)$/{ s//\1/; q; }
12048          /^X\(\/\).*/{ s//\1/; q; }
12049          s/.*/./; q'`
12050  { if $as_mkdir_p; then
12051    mkdir -p "$ac_dir"
12052  else
12053    as_dir="$ac_dir"
12054    as_dirs=
12055    while test ! -d "$as_dir"; do
12056      as_dirs="$as_dir $as_dirs"
12057      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12059         X"$as_dir" : 'X\(//\)[^/]' \| \
12060         X"$as_dir" : 'X\(//\)$' \| \
12061         X"$as_dir" : 'X\(/\)' \| \
12062         .     : '\(.\)' 2>/dev/null ||
12063echo X"$as_dir" |
12064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12065          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12066          /^X\(\/\/\)$/{ s//\1/; q; }
12067          /^X\(\/\).*/{ s//\1/; q; }
12068          s/.*/./; q'`
12069    done
12070    test ! -n "$as_dirs" || mkdir $as_dirs
12071  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12072echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12073   { (exit 1); exit 1; }; }; }
12074
12075  ac_builddir=.
12076
12077if test "$ac_dir" != .; then
12078  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12079  # A "../" for each directory in $ac_dir_suffix.
12080  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12081else
12082  ac_dir_suffix= ac_top_builddir=
12083fi
12084
12085case $srcdir in
12086  .)  # No --srcdir option.  We are building in place.
12087    ac_srcdir=.
12088    if test -z "$ac_top_builddir"; then
12089       ac_top_srcdir=.
12090    else
12091       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12092    fi ;;
12093  [\\/]* | ?:[\\/]* )  # Absolute path.
12094    ac_srcdir=$srcdir$ac_dir_suffix;
12095    ac_top_srcdir=$srcdir ;;
12096  *) # Relative path.
12097    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12098    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12099esac
12100
12101# Do not use `cd foo && pwd` to compute absolute paths, because
12102# the directories may not exist.
12103case `pwd` in
12104.) ac_abs_builddir="$ac_dir";;
12105*)
12106  case "$ac_dir" in
12107  .) ac_abs_builddir=`pwd`;;
12108  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12109  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12110  esac;;
12111esac
12112case $ac_abs_builddir in
12113.) ac_abs_top_builddir=${ac_top_builddir}.;;
12114*)
12115  case ${ac_top_builddir}. in
12116  .) ac_abs_top_builddir=$ac_abs_builddir;;
12117  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12118  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12119  esac;;
12120esac
12121case $ac_abs_builddir in
12122.) ac_abs_srcdir=$ac_srcdir;;
12123*)
12124  case $ac_srcdir in
12125  .) ac_abs_srcdir=$ac_abs_builddir;;
12126  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12127  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12128  esac;;
12129esac
12130case $ac_abs_builddir in
12131.) ac_abs_top_srcdir=$ac_top_srcdir;;
12132*)
12133  case $ac_top_srcdir in
12134  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12135  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12136  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12137  esac;;
12138esac
12139
12140
12141  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12142echo "$as_me: executing $ac_dest commands" >&6;}
12143  case $ac_dest in
12144    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12145  # Strip MF so we end up with the name of the file.
12146  mf=`echo "$mf" | sed -e 's/:.*$//'`
12147  # Check whether this is an Automake generated Makefile or not.
12148  # We used to match only the files named `Makefile.in', but
12149  # some people rename them; so instead we look at the file content.
12150  # Grep'ing the first line is not enough: some people post-process
12151  # each Makefile.in and add a new line on top of each file to say so.
12152  # So let's grep whole file.
12153  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12154    dirpart=`(dirname "$mf") 2>/dev/null ||
12155$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12156         X"$mf" : 'X\(//\)[^/]' \| \
12157         X"$mf" : 'X\(//\)$' \| \
12158         X"$mf" : 'X\(/\)' \| \
12159         .     : '\(.\)' 2>/dev/null ||
12160echo X"$mf" |
12161    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12162          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12163          /^X\(\/\/\)$/{ s//\1/; q; }
12164          /^X\(\/\).*/{ s//\1/; q; }
12165          s/.*/./; q'`
12166  else
12167    continue
12168  fi
12169  # Extract the definition of DEPDIR, am__include, and am__quote
12170  # from the Makefile without running `make'.
12171  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12172  test -z "$DEPDIR" && continue
12173  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12174  test -z "am__include" && continue
12175  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12176  # When using ansi2knr, U may be empty or an underscore; expand it
12177  U=`sed -n 's/^U = //p' < "$mf"`
12178  # Find all dependency output files, they are included files with
12179  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12180  # simplest approach to changing $(DEPDIR) to its actual value in the
12181  # expansion.
12182  for file in `sed -n "
12183    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12184       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12185    # Make sure the directory exists.
12186    test -f "$dirpart/$file" && continue
12187    fdir=`(dirname "$file") 2>/dev/null ||
12188$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12189         X"$file" : 'X\(//\)[^/]' \| \
12190         X"$file" : 'X\(//\)$' \| \
12191         X"$file" : 'X\(/\)' \| \
12192         .     : '\(.\)' 2>/dev/null ||
12193echo X"$file" |
12194    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12195          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12196          /^X\(\/\/\)$/{ s//\1/; q; }
12197          /^X\(\/\).*/{ s//\1/; q; }
12198          s/.*/./; q'`
12199    { if $as_mkdir_p; then
12200    mkdir -p $dirpart/$fdir
12201  else
12202    as_dir=$dirpart/$fdir
12203    as_dirs=
12204    while test ! -d "$as_dir"; do
12205      as_dirs="$as_dir $as_dirs"
12206      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12208         X"$as_dir" : 'X\(//\)[^/]' \| \
12209         X"$as_dir" : 'X\(//\)$' \| \
12210         X"$as_dir" : 'X\(/\)' \| \
12211         .     : '\(.\)' 2>/dev/null ||
12212echo X"$as_dir" |
12213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12214          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12215          /^X\(\/\/\)$/{ s//\1/; q; }
12216          /^X\(\/\).*/{ s//\1/; q; }
12217          s/.*/./; q'`
12218    done
12219    test ! -n "$as_dirs" || mkdir $as_dirs
12220  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12221echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12222   { (exit 1); exit 1; }; }; }
12223
12224    # echo "creating $dirpart/$file"
12225    echo '# dummy' > "$dirpart/$file"
12226  done
12227done
12228 ;;
12229  esac
12230done
12231_ACEOF
12232
12233cat >>$CONFIG_STATUS <<\_ACEOF
12234
12235{ (exit 0); exit 0; }
12236_ACEOF
12237chmod +x $CONFIG_STATUS
12238ac_clean_files=$ac_clean_files_save
12239
12240
12241# configure is writing to config.log, and then calls config.status.
12242# config.status does its own redirection, appending to config.log.
12243# Unfortunately, on DOS this fails, as config.log is still kept open
12244# by configure, so config.status won't be able to write to it; its
12245# output is simply discarded.  So we exec the FD to /dev/null,
12246# effectively closing config.log, so it can be properly (re)opened and
12247# appended to by config.status.  When coming back to configure, we
12248# need to make the FD available again.
12249if test "$no_create" != yes; then
12250  ac_cs_success=:
12251  ac_config_status_args=
12252  test "$silent" = yes &&
12253    ac_config_status_args="$ac_config_status_args --quiet"
12254  exec 5>/dev/null
12255  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12256  exec 5>>config.log
12257  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12258  # would make configure fail if this is the last instruction.
12259  $ac_cs_success || { (exit 1); exit 1; }
12260fi
12261
Note: See TracBrowser for help on using the repository browser.