Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5271

Last change on this file since 5271 was 5271, checked in by bensch, 19 years ago

orxonox/trunk: better checking, and not loading shader if it is non-existent

  • Property svn:executable set to *
File size: 353.7 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_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
885Some influential environment variables:
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CC          C compiler command
893  CFLAGS      C compiler flags
894  CPP         C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899Report bugs to <orxonox-dev at mail.datacore.ch>.
900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904  # If there are subdirs, report their specific --help.
905  ac_popdir=`pwd`
906  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907    test -d $ac_dir || continue
908    ac_builddir=.
909
910if test "$ac_dir" != .; then
911  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912  # A "../" for each directory in $ac_dir_suffix.
913  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915  ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919  .)  # No --srcdir option.  We are building in place.
920    ac_srcdir=.
921    if test -z "$ac_top_builddir"; then
922       ac_top_srcdir=.
923    else
924       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925    fi ;;
926  [\\/]* | ?:[\\/]* )  # Absolute path.
927    ac_srcdir=$srcdir$ac_dir_suffix;
928    ac_top_srcdir=$srcdir ;;
929  *) # Relative path.
930    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939  case "$ac_dir" in
940  .) ac_abs_builddir=`pwd`;;
941  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942  *) ac_abs_builddir=`pwd`/"$ac_dir";;
943  esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948  case ${ac_top_builddir}. in
949  .) ac_abs_top_builddir=$ac_abs_builddir;;
950  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957  case $ac_srcdir in
958  .) ac_abs_srcdir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966  case $ac_top_srcdir in
967  .) ac_abs_top_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970  esac;;
971esac
972
973    cd $ac_dir
974    # Check for guested configure; otherwise get Cygnus style configure.
975    if test -f $ac_srcdir/configure.gnu; then
976      echo
977      $SHELL $ac_srcdir/configure.gnu  --help=recursive
978    elif test -f $ac_srcdir/configure; then
979      echo
980      $SHELL $ac_srcdir/configure  --help=recursive
981    elif test -f $ac_srcdir/configure.ac ||
982           test -f $ac_srcdir/configure.in; then
983      echo
984      $ac_configure --help
985    else
986      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987    fi
988    cd $ac_popdir
989  done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994  cat <<\_ACEOF
995orxonox configure 0.3.1_alpha
996generated by GNU Autoconf 2.59
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002  exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
1009It was created by orxonox $as_me 0.3.1_alpha, which was
1010generated by GNU Autoconf 2.59.  Invocation command line was
1011
1012  $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1029
1030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043  IFS=$as_save_IFS
1044  test -z "$as_dir" && as_dir=.
1045  echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072  for ac_arg
1073  do
1074    case $ac_arg in
1075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077    | -silent | --silent | --silen | --sile | --sil)
1078      continue ;;
1079    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081    esac
1082    case $ac_pass in
1083    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084    2)
1085      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086      if test $ac_must_keep_next = true; then
1087        ac_must_keep_next=false # Got value, back to normal.
1088      else
1089        case $ac_arg in
1090          *=* | --config-cache | -C | -disable-* | --disable-* \
1091          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093          | -with-* | --with-* | -without-* | --without-* | --x)
1094            case "$ac_configure_args0 " in
1095              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096            esac
1097            ;;
1098          -* ) ac_must_keep_next=true ;;
1099        esac
1100      fi
1101      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102      # Get rid of the leading space.
1103      ac_sep=" "
1104      ;;
1105    esac
1106  done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log.  We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117  # Save into config.log some information that might help in debugging.
1118  {
1119    echo
1120
1121    cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126    echo
1127    # The following way of writing the cache mishandles newlines in values,
1128{
1129  (set) 2>&1 |
1130    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131    *ac_space=\ *)
1132      sed -n \
1133        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135      ;;
1136    *)
1137      sed -n \
1138        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139      ;;
1140    esac;
1141}
1142    echo
1143
1144    cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149    echo
1150    for ac_var in $ac_subst_vars
1151    do
1152      eval ac_val=$`echo $ac_var`
1153      echo "$ac_var='"'"'$ac_val'"'"'"
1154    done | sort
1155    echo
1156
1157    if test -n "$ac_subst_files"; then
1158      cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163      echo
1164      for ac_var in $ac_subst_files
1165      do
1166        eval ac_val=$`echo $ac_var`
1167        echo "$ac_var='"'"'$ac_val'"'"'"
1168      done | sort
1169      echo
1170    fi
1171
1172    if test -s confdefs.h; then
1173      cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178      echo
1179      sed "/^$/d" confdefs.h | sort
1180      echo
1181    fi
1182    test "$ac_signal" != 0 &&
1183      echo "$as_me: caught signal $ac_signal"
1184    echo "$as_me: exit $exit_status"
1185  } >&5
1186  rm -f core *.core &&
1187  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188    exit $exit_status
1189     ' 0
1190for ac_signal in 1 2 13 15; do
1191  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230  if test "x$prefix" != xNONE; then
1231    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232  else
1233    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234  fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237  if test -r "$ac_site_file"; then
1238    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240    sed 's/^/| /' "$ac_site_file" >&5
1241    . "$ac_site_file"
1242  fi
1243done
1244
1245if test -r "$cache_file"; then
1246  # Some versions of bash will fail to source /dev/null (special
1247  # files actually), so we avoid doing that.
1248  if test -f "$cache_file"; then
1249    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251    case $cache_file in
1252      [\\/]* | ?:[\\/]* ) . $cache_file;;
1253      *)                      . ./$cache_file;;
1254    esac
1255  fi
1256else
1257  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259  >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268  eval ac_new_set=\$ac_env_${ac_var}_set
1269  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270  eval ac_new_val="\$ac_env_${ac_var}_value"
1271  case $ac_old_set,$ac_new_set in
1272    set,)
1273      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275      ac_cache_corrupted=: ;;
1276    ,set)
1277      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279      ac_cache_corrupted=: ;;
1280    ,);;
1281    *)
1282      if test "x$ac_old_val" != "x$ac_new_val"; then
1283        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286echo "$as_me:   former value:  $ac_old_val" >&2;}
1287        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288echo "$as_me:   current value: $ac_new_val" >&2;}
1289        ac_cache_corrupted=:
1290      fi;;
1291  esac
1292  # Pass precious variables to config.status.
1293  if test "$ac_new_set" = set; then
1294    case $ac_new_val in
1295    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297    *) ac_arg=$ac_var=$ac_new_val ;;
1298    esac
1299    case " $ac_configure_args " in
1300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1301      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302    esac
1303  fi
1304done
1305if $ac_cache_corrupted; then
1306  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
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## Detect the canonical host and target build environment.
1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372# Make sure we can run config.sub.
1373$ac_config_sub sun4 >/dev/null 2>&1 ||
1374  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1375echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1376   { (exit 1); exit 1; }; }
1377
1378echo "$as_me:$LINENO: checking build system type" >&5
1379echo $ECHO_N "checking build system type... $ECHO_C" >&6
1380if test "${ac_cv_build+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_build_alias=$build_alias
1384test -z "$ac_cv_build_alias" &&
1385  ac_cv_build_alias=`$ac_config_guess`
1386test -z "$ac_cv_build_alias" &&
1387  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1389   { (exit 1); exit 1; }; }
1390ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1391  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1393   { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1397echo "${ECHO_T}$ac_cv_build" >&6
1398build=$ac_cv_build
1399build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking host system type" >&5
1405echo $ECHO_N "checking host system type... $ECHO_C" >&6
1406if test "${ac_cv_host+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  ac_cv_host_alias=$host_alias
1410test -z "$ac_cv_host_alias" &&
1411  ac_cv_host_alias=$ac_cv_build_alias
1412ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1413  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1415   { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1419echo "${ECHO_T}$ac_cv_host" >&6
1420host=$ac_cv_host
1421host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426echo "$as_me:$LINENO: checking target system type" >&5
1427echo $ECHO_N "checking target system type... $ECHO_C" >&6
1428if test "${ac_cv_target+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  ac_cv_target_alias=$target_alias
1432test "x$ac_cv_target_alias" = "x" &&
1433  ac_cv_target_alias=$ac_cv_host_alias
1434ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1435  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1436echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1437   { (exit 1); exit 1; }; }
1438
1439fi
1440echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1441echo "${ECHO_T}$ac_cv_target" >&6
1442target=$ac_cv_target
1443target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448# The aliases save the names the user supplied, while $host etc.
1449# will get canonicalized.
1450test -n "$target_alias" &&
1451  test "$program_prefix$program_suffix$program_transform_name" = \
1452    NONENONEs,x,x, &&
1453  program_prefix=${target_alias}-
1454
1455am__api_version="1.8"
1456# Find a good install program.  We prefer a C program (faster),
1457# so one script is as good as another.  But avoid the broken or
1458# incompatible versions:
1459# SysV /etc/install, /usr/sbin/install
1460# SunOS /usr/etc/install
1461# IRIX /sbin/install
1462# AIX /bin/install
1463# AmigaOS /C/install, which installs bootblocks on floppy discs
1464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467# OS/2's system install, which has a completely different semantic
1468# ./install, which can be erroneously created by make from ./install.sh.
1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471if test -z "$INSTALL"; then
1472if test "${ac_cv_path_install+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  # Account for people who put trailing slashes in PATH elements.
1481case $as_dir/ in
1482  ./ | .// | /cC/* | \
1483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485  /usr/ucb/* ) ;;
1486  *)
1487    # OSF1 and SCO ODT 3.0 have their own names for install.
1488    # Don't use installbsd from OSF since it installs stuff as root
1489    # by default.
1490    for ac_prog in ginstall scoinst install; do
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493          if test $ac_prog = install &&
1494            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # AIX install.  It has an incompatible calling convention.
1496            :
1497          elif test $ac_prog = install &&
1498            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499            # program-specific install script used by HP pwplus--don't use.
1500            :
1501          else
1502            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503            break 3
1504          fi
1505        fi
1506      done
1507    done
1508    ;;
1509esac
1510done
1511
1512
1513fi
1514  if test "${ac_cv_path_install+set}" = set; then
1515    INSTALL=$ac_cv_path_install
1516  else
1517    # As a last resort, use the slow shell script.  We don't cache a
1518    # path for INSTALL within a source directory, because that will
1519    # break other packages using the cache if that directory is
1520    # removed, or if the path is relative.
1521    INSTALL=$ac_install_sh
1522  fi
1523fi
1524echo "$as_me:$LINENO: result: $INSTALL" >&5
1525echo "${ECHO_T}$INSTALL" >&6
1526
1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528# It thinks the first close brace ends the variable substitution.
1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530
1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532
1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534
1535echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537# Just in case
1538sleep 1
1539echo timestamp > conftest.file
1540# Do `set' in a subshell so we don't clobber the current shell's
1541# arguments.  Must try -L first in case configure is actually a
1542# symlink; some systems play weird games with the mod time of symlinks
1543# (eg FreeBSD returns the mod time of the symlink's containing
1544# directory).
1545if (
1546   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547   if test "$*" = "X"; then
1548      # -L didn't work.
1549      set X `ls -t $srcdir/configure conftest.file`
1550   fi
1551   rm -f conftest.file
1552   if test "$*" != "X $srcdir/configure conftest.file" \
1553      && test "$*" != "X conftest.file $srcdir/configure"; then
1554
1555      # If neither matched, then we have a broken ls.  This can happen
1556      # if, for instance, CONFIG_SHELL is bash and it inherits a
1557      # broken ls alias from the environment.  This has actually
1558      # happened.  Such a system could not be considered "sane".
1559      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&5
1561echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&2;}
1563   { (exit 1); exit 1; }; }
1564   fi
1565
1566   test "$2" = conftest.file
1567   )
1568then
1569   # Ok.
1570   :
1571else
1572   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573Check your system clock" >&5
1574echo "$as_me: error: newly created file is older than distributed files!
1575Check your system clock" >&2;}
1576   { (exit 1); exit 1; }; }
1577fi
1578echo "$as_me:$LINENO: result: yes" >&5
1579echo "${ECHO_T}yes" >&6
1580test "$program_prefix" != NONE &&
1581  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582# Use a double $ so make ignores it.
1583test "$program_suffix" != NONE &&
1584  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585# Double any \ or $.  echo might interpret backslashes.
1586# By default was `s,x,x', remove it if useless.
1587cat <<\_ACEOF >conftest.sed
1588s/[\\$]/&&/g;s/;s,x,x,$//
1589_ACEOF
1590program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591rm conftest.sed
1592
1593# expand $ac_aux_dir to an absolute path
1594am_aux_dir=`cd $ac_aux_dir && pwd`
1595
1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597# Use eval to expand $SHELL
1598if eval "$MISSING --run true"; then
1599  am_missing_run="$MISSING --run "
1600else
1601  am_missing_run=
1602  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604fi
1605
1606if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1607  # Keeping the `.' argument allows $(mkdir_p) to be used without
1608  # argument.  Indeed, we sometimes output rules like
1609  #   $(mkdir_p) $(somedir)
1610  # where $(somedir) is conditionally defined.
1611  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1612  # expensive solution, as it forces Make to start a sub-shell.)
1613  mkdir_p='mkdir -p -- .'
1614else
1615  # On NextStep and OpenStep, the `mkdir' command does not
1616  # recognize any option.  It will interpret all options as
1617  # directories to create, and then abort because `.' already
1618  # exists.
1619  for d in ./-p ./--version;
1620  do
1621    test -d $d && rmdir $d
1622  done
1623  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1624  if test -f "$ac_aux_dir/mkinstalldirs"; then
1625    mkdir_p='$(mkinstalldirs)'
1626  else
1627    mkdir_p='$(install_sh) -d'
1628  fi
1629fi
1630
1631for ac_prog in gawk mawk nawk awk
1632do
1633  # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_AWK+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$AWK"; then
1641  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_AWK="$ac_prog"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657fi
1658fi
1659AWK=$ac_cv_prog_AWK
1660if test -n "$AWK"; then
1661  echo "$as_me:$LINENO: result: $AWK" >&5
1662echo "${ECHO_T}$AWK" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  test -n "$AWK" && break
1669done
1670
1671echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1672echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1673set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1674if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  cat >conftest.make <<\_ACEOF
1678all:
1679        @echo 'ac_maketemp="$(MAKE)"'
1680_ACEOF
1681# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683if test -n "$ac_maketemp"; then
1684  eval ac_cv_prog_make_${ac_make}_set=yes
1685else
1686  eval ac_cv_prog_make_${ac_make}_set=no
1687fi
1688rm -f conftest.make
1689fi
1690if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693  SET_MAKE=
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697  SET_MAKE="MAKE=${MAKE-make}"
1698fi
1699
1700rm -rf .tst 2>/dev/null
1701mkdir .tst 2>/dev/null
1702if test -d .tst; then
1703  am__leading_dot=.
1704else
1705  am__leading_dot=_
1706fi
1707rmdir .tst 2>/dev/null
1708
1709# test to see if srcdir already configured
1710if test "`cd $srcdir && pwd`" != "`pwd`" &&
1711   test -f $srcdir/config.status; then
1712  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716
1717# test whether we have cygpath
1718if test -z "$CYGPATH_W"; then
1719  if (cygpath --version) >/dev/null 2>/dev/null; then
1720    CYGPATH_W='cygpath -w'
1721  else
1722    CYGPATH_W=echo
1723  fi
1724fi
1725
1726
1727# Define the identity of the package.
1728 PACKAGE='orxonox'
1729 VERSION='0.3.1_alpha'
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741# Some tools Automake needs.
1742
1743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744
1745
1746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747
1748
1749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750
1751
1752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753
1754
1755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1756
1757
1758AMTAR=${AMTAR-"${am_missing_run}tar"}
1759
1760install_sh=${install_sh-"$am_aux_dir/install-sh"}
1761
1762# Installed binaries are usually stripped using `strip' when the user
1763# run `make install-strip'.  However `strip' might not be the right
1764# tool to use in cross-compilation environments, therefore Automake
1765# will honor the `STRIP' environment variable to overrule this program.
1766if test "$cross_compiling" != no; then
1767  if test -n "$ac_tool_prefix"; then
1768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}strip; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_STRIP+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$STRIP"; then
1776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794STRIP=$ac_cv_prog_STRIP
1795if test -n "$STRIP"; then
1796  echo "$as_me:$LINENO: result: $STRIP" >&5
1797echo "${ECHO_T}$STRIP" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_STRIP"; then
1805  ac_ct_STRIP=$STRIP
1806  # Extract the first word of "strip", so it can be a program name with args.
1807set dummy strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$ac_ct_STRIP"; then
1814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823    ac_cv_prog_ac_ct_STRIP="strip"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829
1830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1831fi
1832fi
1833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834if test -n "$ac_ct_STRIP"; then
1835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836echo "${ECHO_T}$ac_ct_STRIP" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842  STRIP=$ac_ct_STRIP
1843else
1844  STRIP="$ac_cv_prog_STRIP"
1845fi
1846
1847fi
1848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1849
1850# We need awk for the "check" target.  The system "awk" is bad on
1851# some platforms.
1852
1853
1854
1855
1856
1857          ac_config_headers="$ac_config_headers config.h"
1858
1859
1860#########################
1861## Checks for programs ##
1862#########################
1863ac_ext=cc
1864ac_cpp='$CXXCPP $CPPFLAGS'
1865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1868if test -n "$ac_tool_prefix"; then
1869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1870  do
1871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CXX+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$CXX"; then
1879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897CXX=$ac_cv_prog_CXX
1898if test -n "$CXX"; then
1899  echo "$as_me:$LINENO: result: $CXX" >&5
1900echo "${ECHO_T}$CXX" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906    test -n "$CXX" && break
1907  done
1908fi
1909if test -z "$CXX"; then
1910  ac_ct_CXX=$CXX
1911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912do
1913  # Extract the first word of "$ac_prog", so it can be a program name with args.
1914set dummy $ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_CXX"; then
1921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_CXX="$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1940if test -n "$ac_ct_CXX"; then
1941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1942echo "${ECHO_T}$ac_ct_CXX" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948  test -n "$ac_ct_CXX" && break
1949done
1950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1951
1952  CXX=$ac_ct_CXX
1953fi
1954
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C++ compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991ac_clean_files_save=$ac_clean_files
1992ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993# Try to create an executable without -o first, disregard a.out.
1994# It will help us diagnose broken compilers, and finding out an intuition
1995# of exeext.
1996echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1997echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1998ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000  (eval $ac_link_default) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; then
2004  # Find the output, starting from the most likely.  This scheme is
2005# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006# resort.
2007
2008# Be careful to initialize this variable, since it used to be cached.
2009# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010ac_cv_exeext=
2011# b.out is created by i960 compilers.
2012for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013do
2014  test -f "$ac_file" || continue
2015  case $ac_file in
2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2017        ;;
2018    conftest.$ac_ext )
2019        # This is the source file.
2020        ;;
2021    [ab].out )
2022        # We found the default executable, but exeext='' is most
2023        # certainly right.
2024        break;;
2025    *.* )
2026        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027        # FIXME: I believe we export ac_cv_exeext for Libtool,
2028        # but it would be cool to find out if it's true.  Does anybody
2029        # maintain Libtool? --akim.
2030        export ac_cv_exeext
2031        break;;
2032    * )
2033        break;;
2034  esac
2035done
2036else
2037  echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&2;}
2044   { (exit 77); exit 77; }; }
2045fi
2046
2047ac_exeext=$ac_cv_exeext
2048echo "$as_me:$LINENO: result: $ac_file" >&5
2049echo "${ECHO_T}$ac_file" >&6
2050
2051# Check the compiler produces executables we can run.  If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2054echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2055# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2056# If not cross compiling, check that we can run a simple program.
2057if test "$cross_compiling" != yes; then
2058  if { ac_try='./$ac_file'
2059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060  (eval $ac_try) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; }; then
2064    cross_compiling=no
2065  else
2066    if test "$cross_compiling" = maybe; then
2067        cross_compiling=yes
2068    else
2069        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: cannot run C++ compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076    fi
2077  fi
2078fi
2079echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6
2081
2082rm -f a.out a.exe conftest$ac_cv_exeext b.out
2083ac_clean_files=$ac_clean_files_save
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2087echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2088echo "$as_me:$LINENO: result: $cross_compiling" >&5
2089echo "${ECHO_T}$cross_compiling" >&6
2090
2091echo "$as_me:$LINENO: checking for suffix of executables" >&5
2092echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2094  (eval $ac_link) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2100# work properly (i.e., refer to `conftest.exe'), while it won't with
2101# `rm'.
2102for ac_file in conftest.exe conftest conftest.*; do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107          export ac_cv_exeext
2108          break;;
2109    * ) break;;
2110  esac
2111done
2112else
2113  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest$ac_cv_exeext
2121echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2122echo "${ECHO_T}$ac_cv_exeext" >&6
2123
2124rm -f conftest.$ac_ext
2125EXEEXT=$ac_cv_exeext
2126ac_exeext=$EXEEXT
2127echo "$as_me:$LINENO: checking for suffix of object files" >&5
2128echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2129if test "${ac_cv_objext+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147rm -f conftest.o conftest.obj
2148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149  (eval $ac_compile) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157       break;;
2158  esac
2159done
2160else
2161  echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2174echo "${ECHO_T}$ac_cv_objext" >&6
2175OBJEXT=$ac_cv_objext
2176ac_objext=$OBJEXT
2177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188
2189int
2190main ()
2191{
2192#ifndef __GNUC__
2193       choke me
2194#endif
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209         { ac_try='test -z "$ac_cxx_werror_flag"
2210                         || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216         { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_compiler_gnu=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_compiler_gnu=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2234echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2235GXX=`test $ac_compiler_gnu = yes && echo yes`
2236ac_test_CXXFLAGS=${CXXFLAGS+set}
2237ac_save_CXXFLAGS=$CXXFLAGS
2238CXXFLAGS="-g"
2239echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2240echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2241if test "${ac_cv_prog_cxx_g+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  ac_cv_prog_cxx_g=yes
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286ac_cv_prog_cxx_g=no
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2292if test "$ac_test_CXXFLAGS" = set; then
2293  CXXFLAGS=$ac_save_CXXFLAGS
2294elif test $ac_cv_prog_cxx_g = yes; then
2295  if test "$GXX" = yes; then
2296    CXXFLAGS="-g -O2"
2297  else
2298    CXXFLAGS="-g"
2299  fi
2300else
2301  if test "$GXX" = yes; then
2302    CXXFLAGS="-O2"
2303  else
2304    CXXFLAGS=
2305  fi
2306fi
2307for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  :
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358continue
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367$ac_declaration
2368int
2369main ()
2370{
2371exit (42);
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_cxx_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418DEPDIR="${am__leading_dot}deps"
2419
2420          ac_config_commands="$ac_config_commands depfiles"
2421
2422
2423am_make=${MAKE-make}
2424cat > confinc << 'END'
2425am__doit:
2426        @echo done
2427.PHONY: am__doit
2428END
2429# If we don't find an include directive, just comment out the code.
2430echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2431echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2432am__include="#"
2433am__quote=
2434_am_result=none
2435# First try GNU make style include.
2436echo "include confinc" > confmf
2437# We grep out `Entering directory' and `Leaving directory'
2438# messages which can occur if `w' ends up in MAKEFLAGS.
2439# In particular we don't look at `^make:' because GNU make might
2440# be invoked under some other name (usually "gmake"), in which
2441# case it prints its new name instead of `make'.
2442if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2443   am__include=include
2444   am__quote=
2445   _am_result=GNU
2446fi
2447# Now try BSD make style include.
2448if test "$am__include" = "#"; then
2449   echo '.include "confinc"' > confmf
2450   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2451      am__include=.include
2452      am__quote="\""
2453      _am_result=BSD
2454   fi
2455fi
2456
2457
2458echo "$as_me:$LINENO: result: $_am_result" >&5
2459echo "${ECHO_T}$_am_result" >&6
2460rm -f confinc confmf
2461
2462# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2463if test "${enable_dependency_tracking+set}" = set; then
2464  enableval="$enable_dependency_tracking"
2465
2466fi;
2467if test "x$enable_dependency_tracking" != xno; then
2468  am_depcomp="$ac_aux_dir/depcomp"
2469  AMDEPBACKSLASH='\'
2470fi
2471
2472
2473if test "x$enable_dependency_tracking" != xno; then
2474  AMDEP_TRUE=
2475  AMDEP_FALSE='#'
2476else
2477  AMDEP_TRUE='#'
2478  AMDEP_FALSE=
2479fi
2480
2481
2482
2483
2484depcc="$CXX"  am_compiler_list=
2485
2486echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2488if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2492  # We make a subdir and do the tests there.  Otherwise we can end up
2493  # making bogus files that we don't know about and never remove.  For
2494  # instance it was reported that on HP-UX the gcc test will end up
2495  # making a dummy file named `D' -- because `-MD' means `put the output
2496  # in D'.
2497  mkdir conftest.dir
2498  # Copy depcomp to subdir because otherwise we won't find it if we're
2499  # using a relative directory.
2500  cp "$am_depcomp" conftest.dir
2501  cd conftest.dir
2502  # We will build objects and dependencies in a subdirectory because
2503  # it helps to detect inapplicable dependency modes.  For instance
2504  # both Tru64's cc and ICC support -MD to output dependencies as a
2505  # side effect of compilation, but ICC will put the dependencies in
2506  # the current directory while Tru64 will put them in the object
2507  # directory.
2508  mkdir sub
2509
2510  am_cv_CXX_dependencies_compiler_type=none
2511  if test "$am_compiler_list" = ""; then
2512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2513  fi
2514  for depmode in $am_compiler_list; do
2515    # Setup a source with many dependencies, because some compilers
2516    # like to wrap large dependency lists on column 80 (with \), and
2517    # we should not choose a depcomp mode which is confused by this.
2518    #
2519    # We need to recreate these files for each test, as the compiler may
2520    # overwrite some of them when testing with obscure command lines.
2521    # This happens at least with the AIX C compiler.
2522    : > sub/conftest.c
2523    for i in 1 2 3 4 5 6; do
2524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2526      # Solaris 8's {/usr,}/bin/sh.
2527      touch sub/conftst$i.h
2528    done
2529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2530
2531    case $depmode in
2532    nosideeffect)
2533      # after this tag, mechanisms are not by side-effect, so they'll
2534      # only be used when explicitly requested
2535      if test "x$enable_dependency_tracking" = xyes; then
2536        continue
2537      else
2538        break
2539      fi
2540      ;;
2541    none) break ;;
2542    esac
2543    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2544    # mode.  It turns out that the SunPro C++ compiler does not properly
2545    # handle `-M -o', and we need to detect this.
2546    if depmode=$depmode \
2547       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2549       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2550         >/dev/null 2>conftest.err &&
2551       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2552       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2553       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2554      # icc doesn't choke on unknown options, it will just issue warnings
2555      # or remarks (even with -Werror).  So we grep stderr for any message
2556      # that says an option was ignored or not supported.
2557      # When given -MP, icc 7.0 and 7.1 complain thusly:
2558      #   icc: Command line warning: ignoring option '-M'; no argument required
2559      # The diagnosis changed in icc 8.0:
2560      #   icc: Command line remark: option '-MP' not supported
2561      if (grep 'ignoring option' conftest.err ||
2562          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2563        am_cv_CXX_dependencies_compiler_type=$depmode
2564        break
2565      fi
2566    fi
2567  done
2568
2569  cd ..
2570  rm -rf conftest.dir
2571else
2572  am_cv_CXX_dependencies_compiler_type=none
2573fi
2574
2575fi
2576echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2577echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2579
2580
2581
2582if
2583  test "x$enable_dependency_tracking" != xno \
2584  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2585  am__fastdepCXX_TRUE=
2586  am__fastdepCXX_FALSE='#'
2587else
2588  am__fastdepCXX_TRUE='#'
2589  am__fastdepCXX_FALSE=
2590fi
2591
2592
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_RANLIB+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$RANLIB"; then
2602  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620RANLIB=$ac_cv_prog_RANLIB
2621if test -n "$RANLIB"; then
2622  echo "$as_me:$LINENO: result: $RANLIB" >&5
2623echo "${ECHO_T}$RANLIB" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_RANLIB"; then
2631  ac_ct_RANLIB=$RANLIB
2632  # Extract the first word of "ranlib", so it can be a program name with args.
2633set dummy ranlib; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_RANLIB"; then
2640  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_RANLIB="ranlib"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2657fi
2658fi
2659ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2660if test -n "$ac_ct_RANLIB"; then
2661  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2662echo "${ECHO_T}$ac_ct_RANLIB" >&6
2663else
2664  echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666fi
2667
2668  RANLIB=$ac_ct_RANLIB
2669else
2670  RANLIB="$ac_cv_prog_RANLIB"
2671fi
2672
2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
2709else
2710  echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746echo "${ECHO_T}$ac_ct_CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752  CC=$ac_ct_CC
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757if test -z "$CC"; then
2758  if test -n "$ac_tool_prefix"; then
2759  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760set dummy ${ac_tool_prefix}cc; ac_word=$2
2761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776    ac_cv_prog_CC="${ac_tool_prefix}cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  echo "$as_me:$LINENO: result: $CC" >&5
2788echo "${ECHO_T}$CC" >&6
2789else
2790  echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792fi
2793
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796  ac_ct_CC=$CC
2797  # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_ac_ct_CC="cc"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2826echo "${ECHO_T}$ac_ct_CC" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832  CC=$ac_ct_CC
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837fi
2838if test -z "$CC"; then
2839  # Extract the first word of "cc", so it can be a program name with args.
2840set dummy cc; ac_word=$2
2841echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843if test "${ac_cv_prog_CC+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849  ac_prog_rejected=no
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858       ac_prog_rejected=yes
2859       continue
2860     fi
2861    ac_cv_prog_CC="cc"
2862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  echo "$as_me:$LINENO: result: $CC" >&5
2885echo "${ECHO_T}$CC" >&6
2886else
2887  echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$CC"; then
2893  if test -n "$ac_tool_prefix"; then
2894  for ac_prog in cl
2895  do
2896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900if test "${ac_cv_prog_CC+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
2924  echo "$as_me:$LINENO: result: $CC" >&5
2925echo "${ECHO_T}$CC" >&6
2926else
2927  echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929fi
2930
2931    test -n "$CC" && break
2932  done
2933fi
2934if test -z "$CC"; then
2935  ac_ct_CC=$CC
2936  for ac_prog in cl
2937do
2938  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939set dummy $ac_prog; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$ac_ct_CC"; then
2946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_CC="$ac_prog"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969  echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973  test -n "$ac_ct_CC" && break
2974done
2975
2976  CC=$ac_ct_CC
2977fi
2978
2979fi
2980
2981
2982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&5
2984echo "$as_me: error: no acceptable C compiler found in \$PATH
2985See \`config.log' for more details." >&2;}
2986   { (exit 1); exit 1; }; }
2987
2988# Provide some information about the compiler.
2989echo "$as_me:$LINENO:" \
2990     "checking for C compiler version" >&5
2991ac_compiler=`set X $ac_compile; echo $2`
2992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2993  (eval $ac_compiler --version </dev/null >&5) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }
2997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2998  (eval $ac_compiler -v </dev/null >&5) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }
3002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3003  (eval $ac_compiler -V </dev/null >&5) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }
3007
3008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest.$ac_objext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_compiler_gnu=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058ac_compiler_gnu=no
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
3069CFLAGS="-g"
3070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3072if test "${ac_cv_prog_cc_g+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092  (eval $ac_compile) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  ac_cv_prog_cc_g=yes
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_cv_prog_cc_g=no
3118fi
3119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3123if test "$ac_test_CFLAGS" = set; then
3124  CFLAGS=$ac_save_CFLAGS
3125elif test $ac_cv_prog_cc_g = yes; then
3126  if test "$GCC" = yes; then
3127    CFLAGS="-g -O2"
3128  else
3129    CFLAGS="-g"
3130  fi
3131else
3132  if test "$GCC" = yes; then
3133    CFLAGS="-O2"
3134  else
3135    CFLAGS=
3136  fi
3137fi
3138echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3139echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3140if test "${ac_cv_prog_cc_stdc+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_cv_prog_cc_stdc=no
3144ac_save_CC=$CC
3145cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151#include <stdarg.h>
3152#include <stdio.h>
3153#include <sys/types.h>
3154#include <sys/stat.h>
3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3156struct buf { int x; };
3157FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158static char *e (p, i)
3159     char **p;
3160     int i;
3161{
3162  return p[i];
3163}
3164static char *f (char * (*g) (char **, int), char **p, ...)
3165{
3166  char *s;
3167  va_list v;
3168  va_start (v,p);
3169  s = g (p, va_arg (v,int));
3170  va_end (v);
3171  return s;
3172}
3173
3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3175   function prototypes and stuff, but not '\xHH' hex character constants.
3176   These don't provoke an error unfortunately, instead are silently treated
3177   as 'x'.  The following induces an error, until -std1 is added to get
3178   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3179   array size at least.  It's necessary to write '\x00'==0 to get something
3180   that's true only with -std1.  */
3181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182
3183int test (int i, double x);
3184struct s1 {int (*f) (int a);};
3185struct s2 {int (*f) (double a);};
3186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187int argc;
3188char **argv;
3189int
3190main ()
3191{
3192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197# Don't try gcc -ansi; that turns off useful extensions and
3198# breaks some systems' header files.
3199# AIX                   -qlanglvl=ansi
3200# Ultrix and OSF/1      -std1
3201# HP-UX 10.20 and later -Ae
3202# HP-UX older versions  -Aa -D_HPUX_SOURCE
3203# SVR4                  -Xc -D__EXTENSIONS__
3204for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205do
3206  CC="$ac_save_CC $ac_arg"
3207  rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209  (eval $ac_compile) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest.$ac_objext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  ac_cv_prog_cc_stdc=$ac_arg
3230break
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235fi
3236rm -f conftest.err conftest.$ac_objext
3237done
3238rm -f conftest.$ac_ext conftest.$ac_objext
3239CC=$ac_save_CC
3240
3241fi
3242
3243case "x$ac_cv_prog_cc_stdc" in
3244  x|xno)
3245    echo "$as_me:$LINENO: result: none needed" >&5
3246echo "${ECHO_T}none needed" >&6 ;;
3247  *)
3248    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3250    CC="$CC $ac_cv_prog_cc_stdc" ;;
3251esac
3252
3253# Some people use a C++ compiler to compile C.  Since we use `exit',
3254# in C++ we need to declare it.  In case someone uses the same compiler
3255# for both compiling C and C++ we need to have the C++ compiler decide
3256# the declaration of exit, since it's the most demanding environment.
3257cat >conftest.$ac_ext <<_ACEOF
3258#ifndef __cplusplus
3259  choke me
3260#endif
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264  (eval $ac_compile) 2>conftest.er1
3265  ac_status=$?
3266  grep -v '^ *+' conftest.er1 >conftest.err
3267  rm -f conftest.er1
3268  cat conftest.err >&5
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); } &&
3271         { ac_try='test -z "$ac_c_werror_flag"
3272                         || test ! -s conftest.err'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; } &&
3278         { ac_try='test -s conftest.$ac_objext'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; }; then
3284  for ac_declaration in \
3285   '' \
3286   'extern "C" void std::exit (int) throw (); using std::exit;' \
3287   'extern "C" void std::exit (int); using std::exit;' \
3288   'extern "C" void exit (int) throw ();' \
3289   'extern "C" void exit (int);' \
3290   'void exit (int);'
3291do
3292  cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298$ac_declaration
3299#include <stdlib.h>
3300int
3301main ()
3302{
3303exit (42);
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310  (eval $ac_compile) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } &&
3317         { ac_try='test -z "$ac_c_werror_flag"
3318                         || test ! -s conftest.err'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324         { ac_try='test -s conftest.$ac_objext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  :
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335continue
3336fi
3337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344$ac_declaration
3345int
3346main ()
3347{
3348exit (42);
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355  (eval $ac_compile) 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } &&
3362         { ac_try='test -z "$ac_c_werror_flag"
3363                         || test ! -s conftest.err'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; } &&
3369         { ac_try='test -s conftest.$ac_objext'
3370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371  (eval $ac_try) 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }; }; then
3375  break
3376else
3377  echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380fi
3381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382done
3383rm -f conftest*
3384if test -n "$ac_declaration"; then
3385  echo '#ifdef __cplusplus' >>confdefs.h
3386  echo $ac_declaration      >>confdefs.h
3387  echo '#endif'             >>confdefs.h
3388fi
3389
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
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402depcc="$CC"   am_compiler_list=
3403
3404echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410  # We make a subdir and do the tests there.  Otherwise we can end up
3411  # making bogus files that we don't know about and never remove.  For
3412  # instance it was reported that on HP-UX the gcc test will end up
3413  # making a dummy file named `D' -- because `-MD' means `put the output
3414  # in D'.
3415  mkdir conftest.dir
3416  # Copy depcomp to subdir because otherwise we won't find it if we're
3417  # using a relative directory.
3418  cp "$am_depcomp" conftest.dir
3419  cd conftest.dir
3420  # We will build objects and dependencies in a subdirectory because
3421  # it helps to detect inapplicable dependency modes.  For instance
3422  # both Tru64's cc and ICC support -MD to output dependencies as a
3423  # side effect of compilation, but ICC will put the dependencies in
3424  # the current directory while Tru64 will put them in the object
3425  # directory.
3426  mkdir sub
3427
3428  am_cv_CC_dependencies_compiler_type=none
3429  if test "$am_compiler_list" = ""; then
3430     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431  fi
3432  for depmode in $am_compiler_list; do
3433    # Setup a source with many dependencies, because some compilers
3434    # like to wrap large dependency lists on column 80 (with \), and
3435    # we should not choose a depcomp mode which is confused by this.
3436    #
3437    # We need to recreate these files for each test, as the compiler may
3438    # overwrite some of them when testing with obscure command lines.
3439    # This happens at least with the AIX C compiler.
3440    : > sub/conftest.c
3441    for i in 1 2 3 4 5 6; do
3442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444      # Solaris 8's {/usr,}/bin/sh.
3445      touch sub/conftst$i.h
3446    done
3447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449    case $depmode in
3450    nosideeffect)
3451      # after this tag, mechanisms are not by side-effect, so they'll
3452      # only be used when explicitly requested
3453      if test "x$enable_dependency_tracking" = xyes; then
3454        continue
3455      else
3456        break
3457      fi
3458      ;;
3459    none) break ;;
3460    esac
3461    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462    # mode.  It turns out that the SunPro C++ compiler does not properly
3463    # handle `-M -o', and we need to detect this.
3464    if depmode=$depmode \
3465       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468         >/dev/null 2>conftest.err &&
3469       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472      # icc doesn't choke on unknown options, it will just issue warnings
3473      # or remarks (even with -Werror).  So we grep stderr for any message
3474      # that says an option was ignored or not supported.
3475      # When given -MP, icc 7.0 and 7.1 complain thusly:
3476      #   icc: Command line warning: ignoring option '-M'; no argument required
3477      # The diagnosis changed in icc 8.0:
3478      #   icc: Command line remark: option '-MP' not supported
3479      if (grep 'ignoring option' conftest.err ||
3480          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481        am_cv_CC_dependencies_compiler_type=$depmode
3482        break
3483      fi
3484    fi
3485  done
3486
3487  cd ..
3488  rm -rf conftest.dir
3489else
3490  am_cv_CC_dependencies_compiler_type=none
3491fi
3492
3493fi
3494echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498
3499
3500if
3501  test "x$enable_dependency_tracking" != xno \
3502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503  am__fastdepCC_TRUE=
3504  am__fastdepCC_FALSE='#'
3505else
3506  am__fastdepCC_TRUE='#'
3507  am__fastdepCC_FALSE=
3508fi
3509
3510
3511
3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3518echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3519# On Suns, sometimes $CPP names a directory.
3520if test -n "$CPP" && test -d "$CPP"; then
3521  CPP=
3522fi
3523if test -z "$CPP"; then
3524  if test "${ac_cv_prog_CPP+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527      # Double quotes because CPP needs to be expanded
3528    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529    do
3530      ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550                     Syntax error
3551_ACEOF
3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } >/dev/null; then
3560  if test -s conftest.err; then
3561    ac_cpp_err=$ac_c_preproc_warn_flag
3562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563  else
3564    ac_cpp_err=
3565  fi
3566else
3567  ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575  # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_ext
3579
3580  # OK, works on sane cases.  Now check whether non-existent headers
3581  # can be detected and how.
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <ac_nonexistent.h>
3589_ACEOF
3590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } >/dev/null; then
3598  if test -s conftest.err; then
3599    ac_cpp_err=$ac_c_preproc_warn_flag
3600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601  else
3602    ac_cpp_err=
3603  fi
3604else
3605  ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608  # Broken: success on invalid input.
3609continue
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614  # Passes both tests.
3615ac_preproc_ok=:
3616break
3617fi
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624  break
3625fi
3626
3627    done
3628    ac_cv_prog_CPP=$CPP
3629
3630fi
3631  CPP=$ac_cv_prog_CPP
3632else
3633  ac_cv_prog_CPP=$CPP
3634fi
3635echo "$as_me:$LINENO: result: $CPP" >&5
3636echo "${ECHO_T}$CPP" >&6
3637ac_preproc_ok=false
3638for ac_c_preproc_warn_flag in '' yes
3639do
3640  # Use a header file that comes with gcc, so configuring glibc
3641  # with a fresh cross-compiler works.
3642  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643  # <limits.h> exists even on freestanding compilers.
3644  # On the NeXT, cc -E runs the code through the compiler's parser,
3645  # not just through cpp. "Syntax error" is here to catch this case.
3646  cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#ifdef __STDC__
3653# include <limits.h>
3654#else
3655# include <assert.h>
3656#endif
3657                     Syntax error
3658_ACEOF
3659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } >/dev/null; then
3667  if test -s conftest.err; then
3668    ac_cpp_err=$ac_c_preproc_warn_flag
3669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670  else
3671    ac_cpp_err=
3672  fi
3673else
3674  ac_cpp_err=yes
3675fi
3676if test -z "$ac_cpp_err"; then
3677  :
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682  # Broken: fails on valid input.
3683continue
3684fi
3685rm -f conftest.err conftest.$ac_ext
3686
3687  # OK, works on sane cases.  Now check whether non-existent headers
3688  # can be detected and how.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <ac_nonexistent.h>
3696_ACEOF
3697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } >/dev/null; then
3705  if test -s conftest.err; then
3706    ac_cpp_err=$ac_c_preproc_warn_flag
3707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708  else
3709    ac_cpp_err=
3710  fi
3711else
3712  ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
3715  # Broken: success on invalid input.
3716continue
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721  # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731  :
3732else
3733  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737   { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747echo "$as_me:$LINENO: checking for egrep" >&5
3748echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3749if test "${ac_cv_prog_egrep+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3753    then ac_cv_prog_egrep='grep -E'
3754    else ac_cv_prog_egrep='egrep'
3755    fi
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3758echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3759 EGREP=$ac_cv_prog_egrep
3760
3761
3762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3764if test "${ac_cv_header_stdc+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773#include <stdlib.h>
3774#include <stdarg.h>
3775#include <string.h>
3776#include <float.h>
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_c_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest.$ac_objext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  ac_cv_header_stdc=yes
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_cv_header_stdc=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816
3817if test $ac_cv_header_stdc = yes; then
3818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <string.h>
3826
3827_ACEOF
3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829  $EGREP "memchr" >/dev/null 2>&1; then
3830  :
3831else
3832  ac_cv_header_stdc=no
3833fi
3834rm -f conftest*
3835
3836fi
3837
3838if test $ac_cv_header_stdc = yes; then
3839  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <stdlib.h>
3847
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850  $EGREP "free" >/dev/null 2>&1; then
3851  :
3852else
3853  ac_cv_header_stdc=no
3854fi
3855rm -f conftest*
3856
3857fi
3858
3859if test $ac_cv_header_stdc = yes; then
3860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3861  if test "$cross_compiling" = yes; then
3862  :
3863else
3864  cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h.  */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h.  */
3870#include <ctype.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876                   (('a' <= (c) && (c) <= 'i') \
3877                     || ('j' <= (c) && (c) <= 'r') \
3878                     || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886  int i;
3887  for (i = 0; i < 256; i++)
3888    if (XOR (islower (i), ISLOWER (i))
3889        || toupper (i) != TOUPPER (i))
3890      exit(2);
3891  exit (0);
3892}
3893_ACEOF
3894rm -f conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; }; then
3905  :
3906else
3907  echo "$as_me: program exited with status $ac_status" >&5
3908echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911( exit $ac_status )
3912ac_cv_header_stdc=no
3913fi
3914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915fi
3916fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919echo "${ECHO_T}$ac_cv_header_stdc" >&6
3920if test $ac_cv_header_stdc = yes; then
3921
3922cat >>confdefs.h <<\_ACEOF
3923#define STDC_HEADERS 1
3924_ACEOF
3925
3926fi
3927
3928
3929## THIS IS OUR DEFAULT-DATA-DIRECTORY
3930
3931##################################
3932## CHECKING  OPTIONAL ARGUMENTS ##
3933##################################
3934#----------------#
3935# Data-Directory #
3936#----------------#
3937DATA_DIR=$datadir
3938echo \$\{prefix\}
3939if test $DATA_DIR = \$\{prefix\}/share ; then
3940        echo "not given"
3941        DATA_DIR=/usr/share
3942else
3943        echo "given: $DATA_DIR"
3944fi
3945
3946cat >>confdefs.h <<_ACEOF
3947#define DATADIR "$DATA_DIR"
3948_ACEOF
3949
3950
3951#-----------------#
3952# shared-lib-path #
3953#-----------------#
3954SHARED_LIB_PATH=no
3955echo "$as_me:$LINENO: checking shared lib path" >&5
3956echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3957
3958# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3959if test "${with_shared_lib_path+set}" = set; then
3960  withval="$with_shared_lib_path"
3961  SHARED_LIB_PATH=$withval
3962fi;
3963if test x$SHARED_LIB_PATH != xno; then
3964        echo "set to $SHARED_LIB_PATH"
3965else
3966        echo "no"
3967fi
3968
3969
3970#-----------------#
3971# DEBUG-statement #
3972#-----------------#
3973DEBUG=no
3974echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3975echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3976# Check whether --enable-debug or --disable-debug was given.
3977if test "${enable_debug+set}" = set; then
3978  enableval="$enable_debug"
3979  DEBUG=$enableval
3980fi;
3981
3982if test x$DEBUG = xno; then
3983        echo "no"
3984        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3985        DEBUG=4
3986elif test x$DEBUG = xyes; then
3987        echo "yes"
3988        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3989        DEBUG=4
3990else
3991        echo "yes: setting debuglevel to to $DEBUG"
3992fi
3993
3994cat >>confdefs.h <<_ACEOF
3995#define DEBUG $DEBUG
3996_ACEOF
3997
3998
3999
4000#---------------#
4001# Modular Debug #
4002#---------------#
4003MODULAR_DEBUG=yes
4004echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4005echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4006# Check whether --enable-modular-debug or --disable-modular-debug was given.
4007if test "${enable_modular_debug+set}" = set; then
4008  enableval="$enable_modular_debug"
4009  MODULAR_DEBUG=$enableval
4010fi;
4011
4012if test x$MODULAR_DEBUG = xno; then
4013        echo "no"
4014elif test x$MODULAR_DEBUG = xyes; then
4015        echo "yes"
4016
4017cat >>confdefs.h <<_ACEOF
4018#define MODULAR_DEBUG 1
4019_ACEOF
4020
4021fi
4022
4023#--------------#
4024# GTK-disabled #
4025#--------------#
4026echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4027echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4028# Check whether --enable-gtk or --disable-gtk was given.
4029if test "${enable_gtk+set}" = set; then
4030  enableval="$enable_gtk"
4031  def_gtk=no
4032else
4033  def_gtk=yes
4034fi;
4035if test x$def_gtk = xyes; then
4036  echo "yes"
4037fi
4038if test x$def_gtk = xno; then
4039  echo "no"
4040fi
4041
4042#------------------#
4043# libCurl-disabled #
4044#------------------#
4045echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4046echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4047# Check whether --enable-curl or --disable-curl was given.
4048if test "${enable_curl+set}" = set; then
4049  enableval="$enable_curl"
4050  def_curl=no
4051else
4052  def_curl=yes
4053fi;
4054if test x$def_curl = xyes; then
4055  echo "yes"
4056fi
4057if test x$def_curl = xno; then
4058  echo "no"
4059fi
4060
4061#-------------------#
4062# SubProject-enable #
4063#-------------------#
4064def_sub_projects=no
4065echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4066echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4067
4068# Check whether --with-sub-projects or --without-sub-projects was given.
4069if test "${with_sub_projects+set}" = set; then
4070  withval="$with_sub_projects"
4071  def_sub_projects=yes
4072fi;
4073if test x$def_sub_projects = xyes; then
4074  echo "yes"
4075fi
4076if test x$def_sub_projects = xno; then
4077  echo "no"
4078fi
4079
4080
4081if test x$def_sub_projects = xyes; then
4082  SUB_PROJECTS_TRUE=
4083  SUB_PROJECTS_FALSE='#'
4084else
4085  SUB_PROJECTS_TRUE='#'
4086  SUB_PROJECTS_FALSE=
4087fi
4088
4089
4090#-------------------#
4091# Profiling Enabled #
4092#-------------------#
4093def_profiling=no
4094echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4095echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4096# Check whether --enable-profile or --disable-profile was given.
4097if test "${enable_profile+set}" = set; then
4098  enableval="$enable_profile"
4099  def_profiling=yes
4100fi;
4101if test x$def_profiling = xyes; then
4102  echo "yes"
4103  CXXFLAGS="$CXXFLAGS -pg"
4104fi
4105if test x$def_profiling = xno; then
4106  echo "no"
4107fi
4108
4109#----------------#
4110# efence Enabled #
4111#----------------#
4112def_efence=no
4113echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4114echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4115# Check whether --enable-efence or --disable-efence was given.
4116if test "${enable_efence+set}" = set; then
4117  enableval="$enable_efence"
4118  def_efence=yes
4119fi;
4120if test x$def_efence = xyes; then
4121  echo "yes"
4122fi
4123if test x$def_efence = xno; then
4124  echo "no"
4125fi
4126
4127#----------------------#
4128# Documentation-enable #
4129#----------------------#
4130def_documentation=no
4131echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4132echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4133# Check whether --enable-documentation or --disable-documentation was given.
4134if test "${enable_documentation+set}" = set; then
4135  enableval="$enable_documentation"
4136  def_documentation=yes
4137fi;
4138if test x$def_documentation = xyes; then
4139  echo "yes"
4140fi
4141if test x$def_documentation = xno; then
4142  echo "no"
4143fi
4144
4145
4146if test x$def_documentation = xyes; then
4147  DOCUMENTATION_TRUE=
4148  DOCUMENTATION_FALSE='#'
4149else
4150  DOCUMENTATION_TRUE='#'
4151  DOCUMENTATION_FALSE=
4152fi
4153
4154
4155#######################
4156## PROGRAMM CHECKING ##
4157## 3. party Programs ##
4158#######################
4159
4160#----------------------#
4161# checking for Doxygen #
4162#----------------------#
4163# Extract the first word of "doxygen", so it can be a program name with args.
4164set dummy doxygen; ac_word=$2
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167if test "${ac_cv_path_DOXYGEN+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  case $DOXYGEN in
4171  [\\/]* | ?:[\\/]*)
4172  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4173  ;;
4174  *)
4175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180  for ac_exec_ext in '' $ac_executable_extensions; do
4181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184    break 2
4185  fi
4186done
4187done
4188
4189  ;;
4190esac
4191fi
4192DOXYGEN=$ac_cv_path_DOXYGEN
4193
4194if test -n "$DOXYGEN"; then
4195  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4196echo "${ECHO_T}$DOXYGEN" >&6
4197else
4198  echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200fi
4201
4202
4203
4204if test $DOXYGEN; then
4205  DOXYGEN_TRUE=
4206  DOXYGEN_FALSE='#'
4207else
4208  DOXYGEN_TRUE='#'
4209  DOXYGEN_FALSE=
4210fi
4211
4212
4213#--------------------#
4214# checking for gprof #
4215#--------------------#
4216# Extract the first word of "gprof", so it can be a program name with args.
4217set dummy gprof; ac_word=$2
4218echo "$as_me:$LINENO: checking for $ac_word" >&5
4219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220if test "${ac_cv_path_GPROF+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  case $GPROF in
4224  [\\/]* | ?:[\\/]*)
4225  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4226  ;;
4227  *)
4228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233  for ac_exec_ext in '' $ac_executable_extensions; do
4234  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239done
4240done
4241
4242  ;;
4243esac
4244fi
4245GPROF=$ac_cv_path_GPROF
4246
4247if test -n "$GPROF"; then
4248  echo "$as_me:$LINENO: result: $GPROF" >&5
4249echo "${ECHO_T}$GPROF" >&6
4250else
4251  echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254
4255
4256#-------------------------#
4257# checking for pkg-config #
4258#-------------------------#
4259if test x$def_gtk = xyes; then
4260 # Extract the first word of "pkg-config", so it can be a program name with args.
4261set dummy pkg-config; 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_PKG_CONFIG+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  case $PKG_CONFIG in
4268  [\\/]* | ?:[\\/]*)
4269  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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_PKG_CONFIG="$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
4289PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4290
4291if test -n "$PKG_CONFIG"; then
4292  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4293echo "${ECHO_T}$PKG_CONFIG" >&6
4294else
4295  echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
4299fi
4300
4301
4302#########################
4303## CHECKING FOR SYSTEM ##
4304#########################
4305## here the system is checked, and openGL is included
4306## also checking for SDL on differen Systems
4307
4308echo "$as_me:$LINENO: checking for System" >&5
4309echo $ECHO_N "checking for System... $ECHO_C" >&6
4310## checking for openGL-environment and other sys-specific parameters
4311case "$target" in
4312
4313###########
4314#---------#
4315# WINDOWS #
4316#---------#
4317###########
4318  *-*-mingw32*)
4319echo "mingw-WINDOWS detected"
4320
4321CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4322
4323    mingw="yes"
4324    MSBITFIELDS="-mms-bitfields"
4325    MWINDOWS="-mwindows"
4326
4327
4328
4329# checking for mingw32
4330    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4331echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4332if test "${ac_cv_lib_mingw32_main+set}" = set; then
4333  echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335  ac_check_lib_save_LIBS=$LIBS
4336LIBS="-lmingw32  $LIBS"
4337cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h.  */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h.  */
4343
4344
4345int
4346main ()
4347{
4348main ();
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext conftest$ac_exeext
4354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355  (eval $ac_link) 2>conftest.er1
4356  ac_status=$?
4357  grep -v '^ *+' conftest.er1 >conftest.err
4358  rm -f conftest.er1
4359  cat conftest.err >&5
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); } &&
4362         { ac_try='test -z "$ac_c_werror_flag"
4363                         || test ! -s conftest.err'
4364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365  (eval $ac_try) 2>&5
4366  ac_status=$?
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); }; } &&
4369         { ac_try='test -s conftest$ac_exeext'
4370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371  (eval $ac_try) 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }; }; then
4375  ac_cv_lib_mingw32_main=yes
4376else
4377  echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380ac_cv_lib_mingw32_main=no
4381fi
4382rm -f conftest.err conftest.$ac_objext \
4383      conftest$ac_exeext conftest.$ac_ext
4384LIBS=$ac_check_lib_save_LIBS
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4387echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4388if test $ac_cv_lib_mingw32_main = yes; then
4389  FOUND_mingw32=yes
4390fi
4391
4392    if test x$FOUND_mingw32 = xyes; then
4393        LIBS="$LIBS -lmingw32"
4394    fi
4395
4396#-----------#
4397# SDL(win) #
4398#-----------#
4399# checking for SDL-headers
4400    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4411                  inttypes.h stdint.h unistd.h
4412do
4413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414echo "$as_me:$LINENO: checking for $ac_header" >&5
4415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4416if eval "test \"\${$as_ac_Header+set}\" = set"; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h.  */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h.  */
4425$ac_includes_default
4426
4427#include <$ac_header>
4428_ACEOF
4429rm -f conftest.$ac_objext
4430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431  (eval $ac_compile) 2>conftest.er1
4432  ac_status=$?
4433  grep -v '^ *+' conftest.er1 >conftest.err
4434  rm -f conftest.er1
4435  cat conftest.err >&5
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); } &&
4438         { ac_try='test -z "$ac_c_werror_flag"
4439                         || test ! -s conftest.err'
4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441  (eval $ac_try) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); }; } &&
4445         { ac_try='test -s conftest.$ac_objext'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  eval "$as_ac_Header=yes"
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456eval "$as_ac_Header=no"
4457fi
4458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4459fi
4460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463  cat >>confdefs.h <<_ACEOF
4464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465_ACEOF
4466
4467fi
4468
4469done
4470
4471
4472
4473for ac_header in SDL/SDL.h
4474do
4475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477  echo "$as_me:$LINENO: checking for $ac_header" >&5
4478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4479if eval "test \"\${$as_ac_Header+set}\" = set"; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481fi
4482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484else
4485  # Is the header compilable?
4486echo "$as_me:$LINENO: checking $ac_header usability" >&5
4487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4488cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h.  */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h.  */
4494$ac_includes_default
4495#include <$ac_header>
4496_ACEOF
4497rm -f conftest.$ac_objext
4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499  (eval $ac_compile) 2>conftest.er1
4500  ac_status=$?
4501  grep -v '^ *+' conftest.er1 >conftest.err
4502  rm -f conftest.er1
4503  cat conftest.err >&5
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); } &&
4506         { ac_try='test -z "$ac_c_werror_flag"
4507                         || test ! -s conftest.err'
4508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509  (eval $ac_try) 2>&5
4510  ac_status=$?
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); }; } &&
4513         { ac_try='test -s conftest.$ac_objext'
4514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515  (eval $ac_try) 2>&5
4516  ac_status=$?
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); }; }; then
4519  ac_header_compiler=yes
4520else
4521  echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524ac_header_compiler=no
4525fi
4526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4528echo "${ECHO_T}$ac_header_compiler" >&6
4529
4530# Is the header present?
4531echo "$as_me:$LINENO: checking $ac_header presence" >&5
4532echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
4540_ACEOF
4541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4542  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4543  ac_status=$?
4544  grep -v '^ *+' conftest.er1 >conftest.err
4545  rm -f conftest.er1
4546  cat conftest.err >&5
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); } >/dev/null; then
4549  if test -s conftest.err; then
4550    ac_cpp_err=$ac_c_preproc_warn_flag
4551    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4552  else
4553    ac_cpp_err=
4554  fi
4555else
4556  ac_cpp_err=yes
4557fi
4558if test -z "$ac_cpp_err"; then
4559  ac_header_preproc=yes
4560else
4561  echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564  ac_header_preproc=no
4565fi
4566rm -f conftest.err conftest.$ac_ext
4567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4568echo "${ECHO_T}$ac_header_preproc" >&6
4569
4570# So?  What about this header?
4571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4572  yes:no: )
4573    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4575    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4576echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4577    ac_header_preproc=yes
4578    ;;
4579  no:yes:* )
4580    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4581echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4582    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4583echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4584    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4585echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4586    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4587echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4588    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4590    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4591echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4592    (
4593      cat <<\_ASBOX
4594## ---------------------------------------------- ##
4595## Report this to orxonox-dev at mail.datacore.ch ##
4596## ---------------------------------------------- ##
4597_ASBOX
4598    ) |
4599      sed "s/^/$as_me: WARNING:     /" >&2
4600    ;;
4601esac
4602echo "$as_me:$LINENO: checking for $ac_header" >&5
4603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4604if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605  echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607  eval "$as_ac_Header=\$ac_header_preproc"
4608fi
4609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4611
4612fi
4613if test `eval echo '${'$as_ac_Header'}'` = yes; then
4614  cat >>confdefs.h <<_ACEOF
4615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616_ACEOF
4617
4618else
4619  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4620echo "$as_me: error: cannot find SDL headers" >&2;}
4621   { (exit 1); exit 1; }; }
4622fi
4623
4624done
4625
4626
4627#checking for libSDL
4628    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4629echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4630if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4631  echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633  ac_check_lib_save_LIBS=$LIBS
4634LIBS="-lsdlmain  $LIBS"
4635cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h.  */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h.  */
4641
4642
4643int
4644main ()
4645{
4646main ();
4647  ;
4648  return 0;
4649}
4650_ACEOF
4651rm -f conftest.$ac_objext conftest$ac_exeext
4652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4653  (eval $ac_link) 2>conftest.er1
4654  ac_status=$?
4655  grep -v '^ *+' conftest.er1 >conftest.err
4656  rm -f conftest.er1
4657  cat conftest.err >&5
4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659  (exit $ac_status); } &&
4660         { ac_try='test -z "$ac_c_werror_flag"
4661                         || test ! -s conftest.err'
4662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663  (eval $ac_try) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; } &&
4667         { ac_try='test -s conftest$ac_exeext'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; }; then
4673  ac_cv_lib_sdlmain_main=yes
4674else
4675  echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678ac_cv_lib_sdlmain_main=no
4679fi
4680rm -f conftest.err conftest.$ac_objext \
4681      conftest$ac_exeext conftest.$ac_ext
4682LIBS=$ac_check_lib_save_LIBS
4683fi
4684echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4685echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4686if test $ac_cv_lib_sdlmain_main = yes; then
4687  FOUND_sdlmain=yes
4688fi
4689
4690    if test x$FOUND_sdlmain = xyes ; then
4691       LIBS="$LIBS -lsdlmain"
4692    else
4693        echo "------------------"
4694        echo "SDL library not found."
4695        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4696        echo "------------------"
4697        exit 1
4698    fi
4699    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4700echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4701if test "${ac_cv_lib_sdl_main+set}" = set; then
4702  echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704  ac_check_lib_save_LIBS=$LIBS
4705LIBS="-lsdl  $LIBS"
4706cat >conftest.$ac_ext <<_ACEOF
4707/* confdefs.h.  */
4708_ACEOF
4709cat confdefs.h >>conftest.$ac_ext
4710cat >>conftest.$ac_ext <<_ACEOF
4711/* end confdefs.h.  */
4712
4713
4714int
4715main ()
4716{
4717main ();
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext conftest$ac_exeext
4723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724  (eval $ac_link) 2>conftest.er1
4725  ac_status=$?
4726  grep -v '^ *+' conftest.er1 >conftest.err
4727  rm -f conftest.er1
4728  cat conftest.err >&5
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); } &&
4731         { ac_try='test -z "$ac_c_werror_flag"
4732                         || test ! -s conftest.err'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; } &&
4738         { ac_try='test -s conftest$ac_exeext'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; }; then
4744  ac_cv_lib_sdl_main=yes
4745else
4746  echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749ac_cv_lib_sdl_main=no
4750fi
4751rm -f conftest.err conftest.$ac_objext \
4752      conftest$ac_exeext conftest.$ac_ext
4753LIBS=$ac_check_lib_save_LIBS
4754fi
4755echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4756echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4757if test $ac_cv_lib_sdl_main = yes; then
4758  FOUND_sdl=yes
4759fi
4760
4761    if test x$FOUND_sdl = xyes ; then
4762       LIBS="$LIBS -lsdl"
4763    else
4764        echo "------------------"
4765        echo "SDL library not found."
4766        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4767        echo "------------------"
4768        exit -1
4769    fi
4770
4771#---------------#
4772# open-GL (win) #
4773#---------------#
4774# checking gl header
4775
4776for ac_header in GL/gl.h
4777do
4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780  echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787else
4788  # Is the header compilable?
4789echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797$ac_includes_default
4798#include <$ac_header>
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802  (eval $ac_compile) 2>conftest.er1
4803  ac_status=$?
4804  grep -v '^ *+' conftest.er1 >conftest.err
4805  rm -f conftest.er1
4806  cat conftest.err >&5
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); } &&
4809         { ac_try='test -z "$ac_c_werror_flag"
4810                         || test ! -s conftest.err'
4811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812  (eval $ac_try) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }; } &&
4816         { ac_try='test -s conftest.$ac_objext'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; }; then
4822  ac_header_compiler=yes
4823else
4824  echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827ac_header_compiler=no
4828fi
4829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831echo "${ECHO_T}$ac_header_compiler" >&6
4832
4833# Is the header present?
4834echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h.  */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h.  */
4842#include <$ac_header>
4843_ACEOF
4844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846  ac_status=$?
4847  grep -v '^ *+' conftest.er1 >conftest.err
4848  rm -f conftest.er1
4849  cat conftest.err >&5
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); } >/dev/null; then
4852  if test -s conftest.err; then
4853    ac_cpp_err=$ac_c_preproc_warn_flag
4854    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855  else
4856    ac_cpp_err=
4857  fi
4858else
4859  ac_cpp_err=yes
4860fi
4861if test -z "$ac_cpp_err"; then
4862  ac_header_preproc=yes
4863else
4864  echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867  ac_header_preproc=no
4868fi
4869rm -f conftest.err conftest.$ac_ext
4870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871echo "${ECHO_T}$ac_header_preproc" >&6
4872
4873# So?  What about this header?
4874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875  yes:no: )
4876    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4880    ac_header_preproc=yes
4881    ;;
4882  no:yes:* )
4883    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4886echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4887    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4889    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4890echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4891    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4893    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4895    (
4896      cat <<\_ASBOX
4897## ---------------------------------------------- ##
4898## Report this to orxonox-dev at mail.datacore.ch ##
4899## ---------------------------------------------- ##
4900_ASBOX
4901    ) |
4902      sed "s/^/$as_me: WARNING:     /" >&2
4903    ;;
4904esac
4905echo "$as_me:$LINENO: checking for $ac_header" >&5
4906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908  echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910  eval "$as_ac_Header=\$ac_header_preproc"
4911fi
4912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4914
4915fi
4916if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917  cat >>confdefs.h <<_ACEOF
4918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919_ACEOF
4920
4921else
4922  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4923echo "$as_me: error: cannot find opengl headers" >&2;}
4924   { (exit 1); exit 1; }; }
4925fi
4926
4927done
4928
4929#   checking for Windows openGl library
4930    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4931echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4932if test "${ac_cv_lib_opengl32_main+set}" = set; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  ac_check_lib_save_LIBS=$LIBS
4936LIBS="-lopengl32  $LIBS"
4937cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h.  */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h.  */
4943
4944
4945int
4946main ()
4947{
4948main ();
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext conftest$ac_exeext
4954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955  (eval $ac_link) 2>conftest.er1
4956  ac_status=$?
4957  grep -v '^ *+' conftest.er1 >conftest.err
4958  rm -f conftest.er1
4959  cat conftest.err >&5
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); } &&
4962         { ac_try='test -z "$ac_c_werror_flag"
4963                         || test ! -s conftest.err'
4964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965  (eval $ac_try) 2>&5
4966  ac_status=$?
4967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968  (exit $ac_status); }; } &&
4969         { ac_try='test -s conftest$ac_exeext'
4970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971  (eval $ac_try) 2>&5
4972  ac_status=$?
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); }; }; then
4975  ac_cv_lib_opengl32_main=yes
4976else
4977  echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980ac_cv_lib_opengl32_main=no
4981fi
4982rm -f conftest.err conftest.$ac_objext \
4983      conftest$ac_exeext conftest.$ac_ext
4984LIBS=$ac_check_lib_save_LIBS
4985fi
4986echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4987echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4988if test $ac_cv_lib_opengl32_main = yes; then
4989  FOUND_opengl32=yes
4990else
4991  "gl/gl.h"
4992fi
4993
4994    if test x$FOUND_opengl32 = xyes ; then
4995        LIBS="$LIBS -lopengl32"
4996    else
4997         echo "------------------"
4998         echo "opengl not found."
4999         echo "please install the opengl package which can be found at http://www.opengl.org"
5000         echo "------------------"
5001         exit -1
5002    fi
5003
5004# cheking for GLU-header
5005
5006for ac_header in GL/glu.h
5007do
5008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5009if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010  echo "$as_me:$LINENO: checking for $ac_header" >&5
5011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5012if eval "test \"\${$as_ac_Header+set}\" = set"; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014fi
5015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5017else
5018  # Is the header compilable?
5019echo "$as_me:$LINENO: checking $ac_header usability" >&5
5020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5021cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h.  */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h.  */
5027$ac_includes_default
5028#include <$ac_header>
5029_ACEOF
5030rm -f conftest.$ac_objext
5031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032  (eval $ac_compile) 2>conftest.er1
5033  ac_status=$?
5034  grep -v '^ *+' conftest.er1 >conftest.err
5035  rm -f conftest.er1
5036  cat conftest.err >&5
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); } &&
5039         { ac_try='test -z "$ac_c_werror_flag"
5040                         || test ! -s conftest.err'
5041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042  (eval $ac_try) 2>&5
5043  ac_status=$?
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); }; } &&
5046         { ac_try='test -s conftest.$ac_objext'
5047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048  (eval $ac_try) 2>&5
5049  ac_status=$?
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); }; }; then
5052  ac_header_compiler=yes
5053else
5054  echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057ac_header_compiler=no
5058fi
5059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5061echo "${ECHO_T}$ac_header_compiler" >&6
5062
5063# Is the header present?
5064echo "$as_me:$LINENO: checking $ac_header presence" >&5
5065echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5066cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h.  */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h.  */
5072#include <$ac_header>
5073_ACEOF
5074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5075  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5076  ac_status=$?
5077  grep -v '^ *+' conftest.er1 >conftest.err
5078  rm -f conftest.er1
5079  cat conftest.err >&5
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); } >/dev/null; then
5082  if test -s conftest.err; then
5083    ac_cpp_err=$ac_c_preproc_warn_flag
5084    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5085  else
5086    ac_cpp_err=
5087  fi
5088else
5089  ac_cpp_err=yes
5090fi
5091if test -z "$ac_cpp_err"; then
5092  ac_header_preproc=yes
5093else
5094  echo "$as_me: failed program was:" >&5
5095sed 's/^/| /' conftest.$ac_ext >&5
5096
5097  ac_header_preproc=no
5098fi
5099rm -f conftest.err conftest.$ac_ext
5100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5101echo "${ECHO_T}$ac_header_preproc" >&6
5102
5103# So?  What about this header?
5104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5105  yes:no: )
5106    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5108    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5110    ac_header_preproc=yes
5111    ;;
5112  no:yes:* )
5113    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5115    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5116echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5117    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5119    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5120echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5121    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5123    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5125    (
5126      cat <<\_ASBOX
5127## ---------------------------------------------- ##
5128## Report this to orxonox-dev at mail.datacore.ch ##
5129## ---------------------------------------------- ##
5130_ASBOX
5131    ) |
5132      sed "s/^/$as_me: WARNING:     /" >&2
5133    ;;
5134esac
5135echo "$as_me:$LINENO: checking for $ac_header" >&5
5136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  eval "$as_ac_Header=\$ac_header_preproc"
5141fi
5142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5144
5145fi
5146if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147  cat >>confdefs.h <<_ACEOF
5148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149_ACEOF
5150
5151else
5152  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5153echo "$as_me: error: cannot find opengl headers" >&2;}
5154   { (exit 1); exit 1; }; }
5155fi
5156
5157done
5158
5159
5160# checking for libGLU
5161    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
5162echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
5163if test "${ac_cv_lib_glu32_main+set}" = set; then
5164  echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166  ac_check_lib_save_LIBS=$LIBS
5167LIBS="-lglu32  $LIBS"
5168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h.  */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h.  */
5174
5175
5176int
5177main ()
5178{
5179main ();
5180  ;
5181  return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
5185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186  (eval $ac_link) 2>conftest.er1
5187  ac_status=$?
5188  grep -v '^ *+' conftest.er1 >conftest.err
5189  rm -f conftest.er1
5190  cat conftest.err >&5
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); } &&
5193         { ac_try='test -z "$ac_c_werror_flag"
5194                         || test ! -s conftest.err'
5195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196  (eval $ac_try) 2>&5
5197  ac_status=$?
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); }; } &&
5200         { ac_try='test -s conftest$ac_exeext'
5201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202  (eval $ac_try) 2>&5
5203  ac_status=$?
5204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205  (exit $ac_status); }; }; then
5206  ac_cv_lib_glu32_main=yes
5207else
5208  echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
5211ac_cv_lib_glu32_main=no
5212fi
5213rm -f conftest.err conftest.$ac_objext \
5214      conftest$ac_exeext conftest.$ac_ext
5215LIBS=$ac_check_lib_save_LIBS
5216fi
5217echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
5218echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5219if test $ac_cv_lib_glu32_main = yes; then
5220  FOUND_glu32=yes
5221fi
5222
5223    if test x$FOUND_glu32 = xyes ; then
5224        LIBS="$LIBS -lGLU32"
5225    else
5226         echo "------------------"
5227         echo "GLU library not found."
5228         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5229         echo "------------------"
5230         exit -1
5231    fi
5232
5233# checking glew header
5234
5235for ac_header in GL/glew.h
5236do
5237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5238if eval "test \"\${$as_ac_Header+set}\" = set"; then
5239  echo "$as_me:$LINENO: checking for $ac_header" >&5
5240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5241if eval "test \"\${$as_ac_Header+set}\" = set"; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243fi
5244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5246else
5247  # Is the header compilable?
5248echo "$as_me:$LINENO: checking $ac_header usability" >&5
5249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5250cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h.  */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h.  */
5256$ac_includes_default
5257#include <$ac_header>
5258_ACEOF
5259rm -f conftest.$ac_objext
5260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261  (eval $ac_compile) 2>conftest.er1
5262  ac_status=$?
5263  grep -v '^ *+' conftest.er1 >conftest.err
5264  rm -f conftest.er1
5265  cat conftest.err >&5
5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267  (exit $ac_status); } &&
5268         { ac_try='test -z "$ac_c_werror_flag"
5269                         || test ! -s conftest.err'
5270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271  (eval $ac_try) 2>&5
5272  ac_status=$?
5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); }; } &&
5275         { ac_try='test -s conftest.$ac_objext'
5276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277  (eval $ac_try) 2>&5
5278  ac_status=$?
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); }; }; then
5281  ac_header_compiler=yes
5282else
5283  echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286ac_header_compiler=no
5287fi
5288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290echo "${ECHO_T}$ac_header_compiler" >&6
5291
5292# Is the header present?
5293echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5295cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h.  */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h.  */
5301#include <$ac_header>
5302_ACEOF
5303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5304  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5305  ac_status=$?
5306  grep -v '^ *+' conftest.er1 >conftest.err
5307  rm -f conftest.er1
5308  cat conftest.err >&5
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); } >/dev/null; then
5311  if test -s conftest.err; then
5312    ac_cpp_err=$ac_c_preproc_warn_flag
5313    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5314  else
5315    ac_cpp_err=
5316  fi
5317else
5318  ac_cpp_err=yes
5319fi
5320if test -z "$ac_cpp_err"; then
5321  ac_header_preproc=yes
5322else
5323  echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326  ac_header_preproc=no
5327fi
5328rm -f conftest.err conftest.$ac_ext
5329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5330echo "${ECHO_T}$ac_header_preproc" >&6
5331
5332# So?  What about this header?
5333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5334  yes:no: )
5335    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5337    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5339    ac_header_preproc=yes
5340    ;;
5341  no:yes:* )
5342    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5344    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5345echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5346    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5348    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5349echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5350    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5352    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5354    (
5355      cat <<\_ASBOX
5356## ---------------------------------------------- ##
5357## Report this to orxonox-dev at mail.datacore.ch ##
5358## ---------------------------------------------- ##
5359_ASBOX
5360    ) |
5361      sed "s/^/$as_me: WARNING:     /" >&2
5362    ;;
5363esac
5364echo "$as_me:$LINENO: checking for $ac_header" >&5
5365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5366if eval "test \"\${$as_ac_Header+set}\" = set"; then
5367  echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369  eval "$as_ac_Header=\$ac_header_preproc"
5370fi
5371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373
5374fi
5375if test `eval echo '${'$as_ac_Header'}'` = yes; then
5376  cat >>confdefs.h <<_ACEOF
5377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378_ACEOF
5379
5380else
5381  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5382echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
5383   { (exit 1); exit 1; }; }
5384fi
5385
5386done
5387
5388#   checking for Windows glew library
5389    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5390echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5391if test "${ac_cv_lib_glew32_main+set}" = set; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394  ac_check_lib_save_LIBS=$LIBS
5395LIBS="-lglew32  $LIBS"
5396cat >conftest.$ac_ext <<_ACEOF
5397/* confdefs.h.  */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h.  */
5402
5403
5404int
5405main ()
5406{
5407main ();
5408  ;
5409  return 0;
5410}
5411_ACEOF
5412rm -f conftest.$ac_objext conftest$ac_exeext
5413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414  (eval $ac_link) 2>conftest.er1
5415  ac_status=$?
5416  grep -v '^ *+' conftest.er1 >conftest.err
5417  rm -f conftest.er1
5418  cat conftest.err >&5
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); } &&
5421         { ac_try='test -z "$ac_c_werror_flag"
5422                         || test ! -s conftest.err'
5423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424  (eval $ac_try) 2>&5
5425  ac_status=$?
5426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427  (exit $ac_status); }; } &&
5428         { ac_try='test -s conftest$ac_exeext'
5429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430  (eval $ac_try) 2>&5
5431  ac_status=$?
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); }; }; then
5434  ac_cv_lib_glew32_main=yes
5435else
5436  echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439ac_cv_lib_glew32_main=no
5440fi
5441rm -f conftest.err conftest.$ac_objext \
5442      conftest$ac_exeext conftest.$ac_ext
5443LIBS=$ac_check_lib_save_LIBS
5444fi
5445echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5446echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5447if test $ac_cv_lib_glew32_main = yes; then
5448  echo "$as_me:$LINENO: checking for main in -lglew32s" >&5
5449echo $ECHO_N "checking for main in -lglew32s... $ECHO_C" >&6
5450if test "${ac_cv_lib_glew32s_main+set}" = set; then
5451  echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453  ac_check_lib_save_LIBS=$LIBS
5454LIBS="-lglew32s  $LIBS"
5455cat >conftest.$ac_ext <<_ACEOF
5456/* confdefs.h.  */
5457_ACEOF
5458cat confdefs.h >>conftest.$ac_ext
5459cat >>conftest.$ac_ext <<_ACEOF
5460/* end confdefs.h.  */
5461
5462
5463int
5464main ()
5465{
5466main ();
5467  ;
5468  return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext conftest$ac_exeext
5472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473  (eval $ac_link) 2>conftest.er1
5474  ac_status=$?
5475  grep -v '^ *+' conftest.er1 >conftest.err
5476  rm -f conftest.er1
5477  cat conftest.err >&5
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); } &&
5480         { ac_try='test -z "$ac_c_werror_flag"
5481                         || test ! -s conftest.err'
5482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483  (eval $ac_try) 2>&5
5484  ac_status=$?
5485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486  (exit $ac_status); }; } &&
5487         { ac_try='test -s conftest$ac_exeext'
5488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489  (eval $ac_try) 2>&5
5490  ac_status=$?
5491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); }; }; then
5493  ac_cv_lib_glew32s_main=yes
5494else
5495  echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498ac_cv_lib_glew32s_main=no
5499fi
5500rm -f conftest.err conftest.$ac_objext \
5501      conftest$ac_exeext conftest.$ac_ext
5502LIBS=$ac_check_lib_save_LIBS
5503fi
5504echo "$as_me:$LINENO: result: $ac_cv_lib_glew32s_main" >&5
5505echo "${ECHO_T}$ac_cv_lib_glew32s_main" >&6
5506if test $ac_cv_lib_glew32s_main = yes; then
5507  FOUND_glew32=yes
5508fi
5509
5510fi
5511
5512    if test x$FOUND_glew32 = xyes ; then
5513        LIBS="$LIBS -lglew32 -lglew32s"
5514    else
5515         echo "------------------"
5516         echo "opengl extension wrangler not found."
5517         echo "please install the glew package which can be found at http://glew.sourceforge.net"
5518         echo "------------------"
5519         exit -1
5520    fi
5521
5522#--------#
5523# openAL #
5524#--------#
5525# checking for openAL-headers
5526
5527for ac_header in AL/al.h
5528do
5529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5530if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531  echo "$as_me:$LINENO: checking for $ac_header" >&5
5532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5533if eval "test \"\${$as_ac_Header+set}\" = set"; then
5534  echo $ECHO_N "(cached) $ECHO_C" >&6
5535fi
5536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5538else
5539  # Is the header compilable?
5540echo "$as_me:$LINENO: checking $ac_header usability" >&5
5541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5542cat >conftest.$ac_ext <<_ACEOF
5543/* confdefs.h.  */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
5547/* end confdefs.h.  */
5548$ac_includes_default
5549#include <$ac_header>
5550_ACEOF
5551rm -f conftest.$ac_objext
5552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553  (eval $ac_compile) 2>conftest.er1
5554  ac_status=$?
5555  grep -v '^ *+' conftest.er1 >conftest.err
5556  rm -f conftest.er1
5557  cat conftest.err >&5
5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559  (exit $ac_status); } &&
5560         { ac_try='test -z "$ac_c_werror_flag"
5561                         || test ! -s conftest.err'
5562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563  (eval $ac_try) 2>&5
5564  ac_status=$?
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); }; } &&
5567         { ac_try='test -s conftest.$ac_objext'
5568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569  (eval $ac_try) 2>&5
5570  ac_status=$?
5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572  (exit $ac_status); }; }; then
5573  ac_header_compiler=yes
5574else
5575  echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578ac_header_compiler=no
5579fi
5580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5582echo "${ECHO_T}$ac_header_compiler" >&6
5583
5584# Is the header present?
5585echo "$as_me:$LINENO: checking $ac_header presence" >&5
5586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5587cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h.  */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h.  */
5593#include <$ac_header>
5594_ACEOF
5595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5596  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5597  ac_status=$?
5598  grep -v '^ *+' conftest.er1 >conftest.err
5599  rm -f conftest.er1
5600  cat conftest.err >&5
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); } >/dev/null; then
5603  if test -s conftest.err; then
5604    ac_cpp_err=$ac_c_preproc_warn_flag
5605    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5606  else
5607    ac_cpp_err=
5608  fi
5609else
5610  ac_cpp_err=yes
5611fi
5612if test -z "$ac_cpp_err"; then
5613  ac_header_preproc=yes
5614else
5615  echo "$as_me: failed program was:" >&5
5616sed 's/^/| /' conftest.$ac_ext >&5
5617
5618  ac_header_preproc=no
5619fi
5620rm -f conftest.err conftest.$ac_ext
5621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5622echo "${ECHO_T}$ac_header_preproc" >&6
5623
5624# So?  What about this header?
5625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5626  yes:no: )
5627    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5631    ac_header_preproc=yes
5632    ;;
5633  no:yes:* )
5634    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5636    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5637echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5638    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5640    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5641echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5644    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5646    (
5647      cat <<\_ASBOX
5648## ---------------------------------------------- ##
5649## Report this to orxonox-dev at mail.datacore.ch ##
5650## ---------------------------------------------- ##
5651_ASBOX
5652    ) |
5653      sed "s/^/$as_me: WARNING:     /" >&2
5654    ;;
5655esac
5656echo "$as_me:$LINENO: checking for $ac_header" >&5
5657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5658if eval "test \"\${$as_ac_Header+set}\" = set"; then
5659  echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661  eval "$as_ac_Header=\$ac_header_preproc"
5662fi
5663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5665
5666fi
5667if test `eval echo '${'$as_ac_Header'}'` = yes; then
5668  cat >>confdefs.h <<_ACEOF
5669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5670_ACEOF
5671
5672else
5673  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5674echo "$as_me: error: cannot find openAL header." >&2;}
5675   { (exit 1); exit 1; }; }
5676fi
5677
5678done
5679
5680# checking for openAL-lib
5681  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5682echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5683if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5684  echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686  ac_check_lib_save_LIBS=$LIBS
5687LIBS="-lOpenAL32  $LIBS"
5688cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h.  */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694
5695
5696int
5697main ()
5698{
5699main ();
5700  ;
5701  return 0;
5702}
5703_ACEOF
5704rm -f conftest.$ac_objext conftest$ac_exeext
5705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706  (eval $ac_link) 2>conftest.er1
5707  ac_status=$?
5708  grep -v '^ *+' conftest.er1 >conftest.err
5709  rm -f conftest.er1
5710  cat conftest.err >&5
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } &&
5713         { ac_try='test -z "$ac_c_werror_flag"
5714                         || test ! -s conftest.err'
5715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716  (eval $ac_try) 2>&5
5717  ac_status=$?
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); }; } &&
5720         { ac_try='test -s conftest$ac_exeext'
5721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722  (eval $ac_try) 2>&5
5723  ac_status=$?
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); }; }; then
5726  ac_cv_lib_OpenAL32_main=yes
5727else
5728  echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731ac_cv_lib_OpenAL32_main=no
5732fi
5733rm -f conftest.err conftest.$ac_objext \
5734      conftest$ac_exeext conftest.$ac_ext
5735LIBS=$ac_check_lib_save_LIBS
5736fi
5737echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5738echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5739if test $ac_cv_lib_OpenAL32_main = yes; then
5740  FOUND_openal=yes
5741fi
5742
5743  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5744echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5745if test "${ac_cv_lib_ALut_main+set}" = set; then
5746  echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
5748  ac_check_lib_save_LIBS=$LIBS
5749LIBS="-lALut  $LIBS"
5750cat >conftest.$ac_ext <<_ACEOF
5751/* confdefs.h.  */
5752_ACEOF
5753cat confdefs.h >>conftest.$ac_ext
5754cat >>conftest.$ac_ext <<_ACEOF
5755/* end confdefs.h.  */
5756
5757
5758int
5759main ()
5760{
5761main ();
5762  ;
5763  return 0;
5764}
5765_ACEOF
5766rm -f conftest.$ac_objext conftest$ac_exeext
5767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5768  (eval $ac_link) 2>conftest.er1
5769  ac_status=$?
5770  grep -v '^ *+' conftest.er1 >conftest.err
5771  rm -f conftest.er1
5772  cat conftest.err >&5
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); } &&
5775         { ac_try='test -z "$ac_c_werror_flag"
5776                         || test ! -s conftest.err'
5777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778  (eval $ac_try) 2>&5
5779  ac_status=$?
5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781  (exit $ac_status); }; } &&
5782         { ac_try='test -s conftest$ac_exeext'
5783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784  (eval $ac_try) 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }; }; then
5788  ac_cv_lib_ALut_main=yes
5789else
5790  echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793ac_cv_lib_ALut_main=no
5794fi
5795rm -f conftest.err conftest.$ac_objext \
5796      conftest$ac_exeext conftest.$ac_ext
5797LIBS=$ac_check_lib_save_LIBS
5798fi
5799echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5800echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5801if test $ac_cv_lib_ALut_main = yes; then
5802  FOUND_ALut=yes
5803fi
5804
5805     if test x$FOUND_openal = xyes ; then
5806      if test x$FOUND_ALut = xyes ; then
5807       LIBS="$LIBS -lALut -lOpenAL32"
5808     else
5809        echo "------------------"
5810        echo "openal library not found."
5811        echo "please install the openal library, which can be found at http://www.openal.org"
5812        echo "------------------"
5813        exit -1
5814      fi
5815     fi
5816    ;;
5817
5818#########
5819#-------#
5820# LINUX #
5821#-------#
5822#########
5823 *-*-linux*)
5824echo "Linux detected"
5825
5826 Linux="yes"
5827
5828##CPPFLAGS="-I/usr/include $CPPFLAGS"
5829##LDFLAGS="-L/usr/lib $LDFLAGS"
5830if test x$SHARED_LIB_PATH != xno; then
5831        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5832        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5833fi
5834
5835# checking gl header
5836
5837for ac_header in GL/gl.h
5838do
5839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5840if eval "test \"\${$as_ac_Header+set}\" = set"; then
5841  echo "$as_me:$LINENO: checking for $ac_header" >&5
5842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5843if eval "test \"\${$as_ac_Header+set}\" = set"; then
5844  echo $ECHO_N "(cached) $ECHO_C" >&6
5845fi
5846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5848else
5849  # Is the header compilable?
5850echo "$as_me:$LINENO: checking $ac_header usability" >&5
5851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5852cat >conftest.$ac_ext <<_ACEOF
5853/* confdefs.h.  */
5854_ACEOF
5855cat confdefs.h >>conftest.$ac_ext
5856cat >>conftest.$ac_ext <<_ACEOF
5857/* end confdefs.h.  */
5858$ac_includes_default
5859#include <$ac_header>
5860_ACEOF
5861rm -f conftest.$ac_objext
5862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863  (eval $ac_compile) 2>conftest.er1
5864  ac_status=$?
5865  grep -v '^ *+' conftest.er1 >conftest.err
5866  rm -f conftest.er1
5867  cat conftest.err >&5
5868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869  (exit $ac_status); } &&
5870         { ac_try='test -z "$ac_c_werror_flag"
5871                         || test ! -s conftest.err'
5872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873  (eval $ac_try) 2>&5
5874  ac_status=$?
5875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876  (exit $ac_status); }; } &&
5877         { ac_try='test -s conftest.$ac_objext'
5878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879  (eval $ac_try) 2>&5
5880  ac_status=$?
5881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); }; }; then
5883  ac_header_compiler=yes
5884else
5885  echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888ac_header_compiler=no
5889fi
5890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5892echo "${ECHO_T}$ac_header_compiler" >&6
5893
5894# Is the header present?
5895echo "$as_me:$LINENO: checking $ac_header presence" >&5
5896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5897cat >conftest.$ac_ext <<_ACEOF
5898/* confdefs.h.  */
5899_ACEOF
5900cat confdefs.h >>conftest.$ac_ext
5901cat >>conftest.$ac_ext <<_ACEOF
5902/* end confdefs.h.  */
5903#include <$ac_header>
5904_ACEOF
5905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5906  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5907  ac_status=$?
5908  grep -v '^ *+' conftest.er1 >conftest.err
5909  rm -f conftest.er1
5910  cat conftest.err >&5
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); } >/dev/null; then
5913  if test -s conftest.err; then
5914    ac_cpp_err=$ac_c_preproc_warn_flag
5915    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5916  else
5917    ac_cpp_err=
5918  fi
5919else
5920  ac_cpp_err=yes
5921fi
5922if test -z "$ac_cpp_err"; then
5923  ac_header_preproc=yes
5924else
5925  echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
5928  ac_header_preproc=no
5929fi
5930rm -f conftest.err conftest.$ac_ext
5931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5932echo "${ECHO_T}$ac_header_preproc" >&6
5933
5934# So?  What about this header?
5935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5936  yes:no: )
5937    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5939    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5941    ac_header_preproc=yes
5942    ;;
5943  no:yes:* )
5944    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5946    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5947echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5948    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5950    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5951echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5952    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5954    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5956    (
5957      cat <<\_ASBOX
5958## ---------------------------------------------- ##
5959## Report this to orxonox-dev at mail.datacore.ch ##
5960## ---------------------------------------------- ##
5961_ASBOX
5962    ) |
5963      sed "s/^/$as_me: WARNING:     /" >&2
5964    ;;
5965esac
5966echo "$as_me:$LINENO: checking for $ac_header" >&5
5967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5968if eval "test \"\${$as_ac_Header+set}\" = set"; then
5969  echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971  eval "$as_ac_Header=\$ac_header_preproc"
5972fi
5973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5975
5976fi
5977if test `eval echo '${'$as_ac_Header'}'` = yes; then
5978  cat >>confdefs.h <<_ACEOF
5979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980_ACEOF
5981
5982else
5983  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5984echo "$as_me: error: cannot find opengl headers" >&2;}
5985   { (exit 1); exit 1; }; }
5986fi
5987
5988done
5989
5990
5991#  checking for Unix GL
5992   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5993echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5994if test "${ac_cv_lib_GL_main+set}" = set; then
5995  echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997  ac_check_lib_save_LIBS=$LIBS
5998LIBS="-lGL  $LIBS"
5999cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h.  */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h.  */
6005
6006
6007int
6008main ()
6009{
6010main ();
6011  ;
6012  return 0;
6013}
6014_ACEOF
6015rm -f conftest.$ac_objext conftest$ac_exeext
6016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017  (eval $ac_link) 2>conftest.er1
6018  ac_status=$?
6019  grep -v '^ *+' conftest.er1 >conftest.err
6020  rm -f conftest.er1
6021  cat conftest.err >&5
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); } &&
6024         { ac_try='test -z "$ac_c_werror_flag"
6025                         || test ! -s conftest.err'
6026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027  (eval $ac_try) 2>&5
6028  ac_status=$?
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); }; } &&
6031         { ac_try='test -s conftest$ac_exeext'
6032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033  (eval $ac_try) 2>&5
6034  ac_status=$?
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); }; }; then
6037  ac_cv_lib_GL_main=yes
6038else
6039  echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
6041
6042ac_cv_lib_GL_main=no
6043fi
6044rm -f conftest.err conftest.$ac_objext \
6045      conftest$ac_exeext conftest.$ac_ext
6046LIBS=$ac_check_lib_save_LIBS
6047fi
6048echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6049echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6050if test $ac_cv_lib_GL_main = yes; then
6051  FOUND_GL=yes
6052fi
6053
6054   if test x$FOUND_GL = xyes ; then
6055     LIBS="$LIBS -lGL"
6056   else
6057         echo "------------------"
6058         echo "opengl not found."
6059         echo "please install the opengl package which can be found at http://www.opengl.org"
6060         echo "------------------"
6061         exit -1
6062   fi
6063
6064# cheking for GLU-header
6065
6066for ac_header in GL/glu.h
6067do
6068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6069if eval "test \"\${$as_ac_Header+set}\" = set"; then
6070  echo "$as_me:$LINENO: checking for $ac_header" >&5
6071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6072if eval "test \"\${$as_ac_Header+set}\" = set"; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074fi
6075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6077else
6078  # Is the header compilable?
6079echo "$as_me:$LINENO: checking $ac_header usability" >&5
6080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6081cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h.  */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h.  */
6087$ac_includes_default
6088#include <$ac_header>
6089_ACEOF
6090rm -f conftest.$ac_objext
6091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092  (eval $ac_compile) 2>conftest.er1
6093  ac_status=$?
6094  grep -v '^ *+' conftest.er1 >conftest.err
6095  rm -f conftest.er1
6096  cat conftest.err >&5
6097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098  (exit $ac_status); } &&
6099         { ac_try='test -z "$ac_c_werror_flag"
6100                         || test ! -s conftest.err'
6101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102  (eval $ac_try) 2>&5
6103  ac_status=$?
6104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105  (exit $ac_status); }; } &&
6106         { ac_try='test -s conftest.$ac_objext'
6107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108  (eval $ac_try) 2>&5
6109  ac_status=$?
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); }; }; then
6112  ac_header_compiler=yes
6113else
6114  echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117ac_header_compiler=no
6118fi
6119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6121echo "${ECHO_T}$ac_header_compiler" >&6
6122
6123# Is the header present?
6124echo "$as_me:$LINENO: checking $ac_header presence" >&5
6125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6126cat >conftest.$ac_ext <<_ACEOF
6127/* confdefs.h.  */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h.  */
6132#include <$ac_header>
6133_ACEOF
6134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136  ac_status=$?
6137  grep -v '^ *+' conftest.er1 >conftest.err
6138  rm -f conftest.er1
6139  cat conftest.err >&5
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); } >/dev/null; then
6142  if test -s conftest.err; then
6143    ac_cpp_err=$ac_c_preproc_warn_flag
6144    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6145  else
6146    ac_cpp_err=
6147  fi
6148else
6149  ac_cpp_err=yes
6150fi
6151if test -z "$ac_cpp_err"; then
6152  ac_header_preproc=yes
6153else
6154  echo "$as_me: failed program was:" >&5
6155sed 's/^/| /' conftest.$ac_ext >&5
6156
6157  ac_header_preproc=no
6158fi
6159rm -f conftest.err conftest.$ac_ext
6160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6161echo "${ECHO_T}$ac_header_preproc" >&6
6162
6163# So?  What about this header?
6164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6165  yes:no: )
6166    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6168    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6170    ac_header_preproc=yes
6171    ;;
6172  no:yes:* )
6173    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6175    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6176echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6177    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6179    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6180echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6181    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6183    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6185    (
6186      cat <<\_ASBOX
6187## ---------------------------------------------- ##
6188## Report this to orxonox-dev at mail.datacore.ch ##
6189## ---------------------------------------------- ##
6190_ASBOX
6191    ) |
6192      sed "s/^/$as_me: WARNING:     /" >&2
6193    ;;
6194esac
6195echo "$as_me:$LINENO: checking for $ac_header" >&5
6196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6197if eval "test \"\${$as_ac_Header+set}\" = set"; then
6198  echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200  eval "$as_ac_Header=\$ac_header_preproc"
6201fi
6202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6204
6205fi
6206if test `eval echo '${'$as_ac_Header'}'` = yes; then
6207  cat >>confdefs.h <<_ACEOF
6208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6209_ACEOF
6210
6211else
6212  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6213echo "$as_me: error: cannot find opengl headers" >&2;}
6214   { (exit 1); exit 1; }; }
6215fi
6216
6217done
6218
6219
6220#    AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes)
6221#    if test x$FOUND_GLU = xyes ; then
6222      LIBS="$LIBS -lGLU"
6223#    else
6224#         echo "------------------"
6225#         echo "GLU library not found."
6226#         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6227#         echo "------------------"
6228#         exit -1
6229#    fi
6230
6231# checking for GLEW-headers
6232
6233for ac_header in GL/glew.h
6234do
6235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6236if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237  echo "$as_me:$LINENO: checking for $ac_header" >&5
6238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6239if eval "test \"\${$as_ac_Header+set}\" = set"; then
6240  echo $ECHO_N "(cached) $ECHO_C" >&6
6241fi
6242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6244else
6245  # Is the header compilable?
6246echo "$as_me:$LINENO: checking $ac_header usability" >&5
6247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6248cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h.  */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h.  */
6254$ac_includes_default
6255#include <$ac_header>
6256_ACEOF
6257rm -f conftest.$ac_objext
6258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259  (eval $ac_compile) 2>conftest.er1
6260  ac_status=$?
6261  grep -v '^ *+' conftest.er1 >conftest.err
6262  rm -f conftest.er1
6263  cat conftest.err >&5
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); } &&
6266         { ac_try='test -z "$ac_c_werror_flag"
6267                         || test ! -s conftest.err'
6268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269  (eval $ac_try) 2>&5
6270  ac_status=$?
6271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272  (exit $ac_status); }; } &&
6273         { ac_try='test -s conftest.$ac_objext'
6274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275  (eval $ac_try) 2>&5
6276  ac_status=$?
6277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278  (exit $ac_status); }; }; then
6279  ac_header_compiler=yes
6280else
6281  echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
6284ac_header_compiler=no
6285fi
6286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6288echo "${ECHO_T}$ac_header_compiler" >&6
6289
6290# Is the header present?
6291echo "$as_me:$LINENO: checking $ac_header presence" >&5
6292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6293cat >conftest.$ac_ext <<_ACEOF
6294/* confdefs.h.  */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h.  */
6299#include <$ac_header>
6300_ACEOF
6301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6302  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6303  ac_status=$?
6304  grep -v '^ *+' conftest.er1 >conftest.err
6305  rm -f conftest.er1
6306  cat conftest.err >&5
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); } >/dev/null; then
6309  if test -s conftest.err; then
6310    ac_cpp_err=$ac_c_preproc_warn_flag
6311    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6312  else
6313    ac_cpp_err=
6314  fi
6315else
6316  ac_cpp_err=yes
6317fi
6318if test -z "$ac_cpp_err"; then
6319  ac_header_preproc=yes
6320else
6321  echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324  ac_header_preproc=no
6325fi
6326rm -f conftest.err conftest.$ac_ext
6327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6328echo "${ECHO_T}$ac_header_preproc" >&6
6329
6330# So?  What about this header?
6331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6332  yes:no: )
6333    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6335    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6337    ac_header_preproc=yes
6338    ;;
6339  no:yes:* )
6340    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6342    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6343echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6344    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6346    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6347echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6348    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6350    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6352    (
6353      cat <<\_ASBOX
6354## ---------------------------------------------- ##
6355## Report this to orxonox-dev at mail.datacore.ch ##
6356## ---------------------------------------------- ##
6357_ASBOX
6358    ) |
6359      sed "s/^/$as_me: WARNING:     /" >&2
6360    ;;
6361esac
6362echo "$as_me:$LINENO: checking for $ac_header" >&5
6363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365  echo $ECHO_N "(cached) $ECHO_C" >&6
6366else
6367  eval "$as_ac_Header=\$ac_header_preproc"
6368fi
6369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6371
6372fi
6373if test `eval echo '${'$as_ac_Header'}'` = yes; then
6374  cat >>confdefs.h <<_ACEOF
6375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6376_ACEOF
6377
6378else
6379  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6380echo "$as_me: error: cannot find glew headers" >&2;}
6381   { (exit 1); exit 1; }; }
6382fi
6383
6384done
6385
6386# checking for GLEW-lib
6387  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6388echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6389if test "${ac_cv_lib_GLEW_main+set}" = set; then
6390  echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392  ac_check_lib_save_LIBS=$LIBS
6393LIBS="-lGLEW  $LIBS"
6394cat >conftest.$ac_ext <<_ACEOF
6395/* confdefs.h.  */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h.  */
6400
6401
6402int
6403main ()
6404{
6405main ();
6406  ;
6407  return 0;
6408}
6409_ACEOF
6410rm -f conftest.$ac_objext conftest$ac_exeext
6411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412  (eval $ac_link) 2>conftest.er1
6413  ac_status=$?
6414  grep -v '^ *+' conftest.er1 >conftest.err
6415  rm -f conftest.er1
6416  cat conftest.err >&5
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); } &&
6419         { ac_try='test -z "$ac_c_werror_flag"
6420                         || test ! -s conftest.err'
6421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422  (eval $ac_try) 2>&5
6423  ac_status=$?
6424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425  (exit $ac_status); }; } &&
6426         { ac_try='test -s conftest$ac_exeext'
6427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428  (eval $ac_try) 2>&5
6429  ac_status=$?
6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); }; }; then
6432  ac_cv_lib_GLEW_main=yes
6433else
6434  echo "$as_me: failed program was:" >&5
6435sed 's/^/| /' conftest.$ac_ext >&5
6436
6437ac_cv_lib_GLEW_main=no
6438fi
6439rm -f conftest.err conftest.$ac_objext \
6440      conftest$ac_exeext conftest.$ac_ext
6441LIBS=$ac_check_lib_save_LIBS
6442fi
6443echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6444echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6445if test $ac_cv_lib_GLEW_main = yes; then
6446  FOUND_GLEW=yes
6447fi
6448
6449   if test x$FOUND_GLEW = xyes ; then
6450     LIBS="$LIBS -lGLEW"
6451   else
6452         echo "------------------"
6453         echo "glew not found."
6454         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6455         echo "------------------"
6456         exit -1
6457   fi
6458
6459#--------#
6460# openAL #
6461#--------#
6462# checking for openAL-headers
6463
6464for ac_header in AL/al.h
6465do
6466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6467if eval "test \"\${$as_ac_Header+set}\" = set"; then
6468  echo "$as_me:$LINENO: checking for $ac_header" >&5
6469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6470if eval "test \"\${$as_ac_Header+set}\" = set"; then
6471  echo $ECHO_N "(cached) $ECHO_C" >&6
6472fi
6473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6475else
6476  # Is the header compilable?
6477echo "$as_me:$LINENO: checking $ac_header usability" >&5
6478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6479cat >conftest.$ac_ext <<_ACEOF
6480/* confdefs.h.  */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h.  */
6485$ac_includes_default
6486#include <$ac_header>
6487_ACEOF
6488rm -f conftest.$ac_objext
6489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490  (eval $ac_compile) 2>conftest.er1
6491  ac_status=$?
6492  grep -v '^ *+' conftest.er1 >conftest.err
6493  rm -f conftest.er1
6494  cat conftest.err >&5
6495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496  (exit $ac_status); } &&
6497         { ac_try='test -z "$ac_c_werror_flag"
6498                         || test ! -s conftest.err'
6499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500  (eval $ac_try) 2>&5
6501  ac_status=$?
6502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503  (exit $ac_status); }; } &&
6504         { ac_try='test -s conftest.$ac_objext'
6505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506  (eval $ac_try) 2>&5
6507  ac_status=$?
6508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509  (exit $ac_status); }; }; then
6510  ac_header_compiler=yes
6511else
6512  echo "$as_me: failed program was:" >&5
6513sed 's/^/| /' conftest.$ac_ext >&5
6514
6515ac_header_compiler=no
6516fi
6517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6519echo "${ECHO_T}$ac_header_compiler" >&6
6520
6521# Is the header present?
6522echo "$as_me:$LINENO: checking $ac_header presence" >&5
6523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6524cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h.  */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h.  */
6530#include <$ac_header>
6531_ACEOF
6532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6533  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6534  ac_status=$?
6535  grep -v '^ *+' conftest.er1 >conftest.err
6536  rm -f conftest.er1
6537  cat conftest.err >&5
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); } >/dev/null; then
6540  if test -s conftest.err; then
6541    ac_cpp_err=$ac_c_preproc_warn_flag
6542    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6543  else
6544    ac_cpp_err=
6545  fi
6546else
6547  ac_cpp_err=yes
6548fi
6549if test -z "$ac_cpp_err"; then
6550  ac_header_preproc=yes
6551else
6552  echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555  ac_header_preproc=no
6556fi
6557rm -f conftest.err conftest.$ac_ext
6558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6559echo "${ECHO_T}$ac_header_preproc" >&6
6560
6561# So?  What about this header?
6562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6563  yes:no: )
6564    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6568    ac_header_preproc=yes
6569    ;;
6570  no:yes:* )
6571    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6573    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6574echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6575    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6577    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6578echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6579    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6581    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6583    (
6584      cat <<\_ASBOX
6585## ---------------------------------------------- ##
6586## Report this to orxonox-dev at mail.datacore.ch ##
6587## ---------------------------------------------- ##
6588_ASBOX
6589    ) |
6590      sed "s/^/$as_me: WARNING:     /" >&2
6591    ;;
6592esac
6593echo "$as_me:$LINENO: checking for $ac_header" >&5
6594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6595if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596  echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598  eval "$as_ac_Header=\$ac_header_preproc"
6599fi
6600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602
6603fi
6604if test `eval echo '${'$as_ac_Header'}'` = yes; then
6605  cat >>confdefs.h <<_ACEOF
6606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6607_ACEOF
6608
6609else
6610  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6611echo "$as_me: error: cannot find openAL header." >&2;}
6612   { (exit 1); exit 1; }; }
6613fi
6614
6615done
6616
6617# checking for openAL-lib
6618  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6619echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6620if test "${ac_cv_lib_openal_main+set}" = set; then
6621  echo $ECHO_N "(cached) $ECHO_C" >&6
6622else
6623  ac_check_lib_save_LIBS=$LIBS
6624LIBS="-lopenal  $LIBS"
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h.  */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h.  */
6631
6632
6633int
6634main ()
6635{
6636main ();
6637  ;
6638  return 0;
6639}
6640_ACEOF
6641rm -f conftest.$ac_objext conftest$ac_exeext
6642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643  (eval $ac_link) 2>conftest.er1
6644  ac_status=$?
6645  grep -v '^ *+' conftest.er1 >conftest.err
6646  rm -f conftest.er1
6647  cat conftest.err >&5
6648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649  (exit $ac_status); } &&
6650         { ac_try='test -z "$ac_c_werror_flag"
6651                         || test ! -s conftest.err'
6652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653  (eval $ac_try) 2>&5
6654  ac_status=$?
6655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656  (exit $ac_status); }; } &&
6657         { ac_try='test -s conftest$ac_exeext'
6658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659  (eval $ac_try) 2>&5
6660  ac_status=$?
6661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662  (exit $ac_status); }; }; then
6663  ac_cv_lib_openal_main=yes
6664else
6665  echo "$as_me: failed program was:" >&5
6666sed 's/^/| /' conftest.$ac_ext >&5
6667
6668ac_cv_lib_openal_main=no
6669fi
6670rm -f conftest.err conftest.$ac_objext \
6671      conftest$ac_exeext conftest.$ac_ext
6672LIBS=$ac_check_lib_save_LIBS
6673fi
6674echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6675echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6676if test $ac_cv_lib_openal_main = yes; then
6677  FOUND_openal=yes
6678fi
6679
6680     if test x$FOUND_openal = xyes ; then
6681       LIBS="$LIBS -lopenal"
6682     else
6683        echo "------------------"
6684        echo "openal library not found."
6685        echo "please install the openal library, which can be found at http://www.openal.org"
6686        echo "------------------"
6687        exit -1
6688     fi
6689# checking for alut
6690
6691for ac_header in AL/alut.h
6692do
6693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6694if eval "test \"\${$as_ac_Header+set}\" = set"; then
6695  echo "$as_me:$LINENO: checking for $ac_header" >&5
6696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699fi
6700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6702else
6703  # Is the header compilable?
6704echo "$as_me:$LINENO: checking $ac_header usability" >&5
6705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6706cat >conftest.$ac_ext <<_ACEOF
6707/* confdefs.h.  */
6708_ACEOF
6709cat confdefs.h >>conftest.$ac_ext
6710cat >>conftest.$ac_ext <<_ACEOF
6711/* end confdefs.h.  */
6712$ac_includes_default
6713#include <$ac_header>
6714_ACEOF
6715rm -f conftest.$ac_objext
6716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717  (eval $ac_compile) 2>conftest.er1
6718  ac_status=$?
6719  grep -v '^ *+' conftest.er1 >conftest.err
6720  rm -f conftest.er1
6721  cat conftest.err >&5
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); } &&
6724         { ac_try='test -z "$ac_c_werror_flag"
6725                         || test ! -s conftest.err'
6726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727  (eval $ac_try) 2>&5
6728  ac_status=$?
6729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730  (exit $ac_status); }; } &&
6731         { ac_try='test -s conftest.$ac_objext'
6732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733  (eval $ac_try) 2>&5
6734  ac_status=$?
6735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736  (exit $ac_status); }; }; then
6737  ac_header_compiler=yes
6738else
6739  echo "$as_me: failed program was:" >&5
6740sed 's/^/| /' conftest.$ac_ext >&5
6741
6742ac_header_compiler=no
6743fi
6744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6746echo "${ECHO_T}$ac_header_compiler" >&6
6747
6748# Is the header present?
6749echo "$as_me:$LINENO: checking $ac_header presence" >&5
6750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6751cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h.  */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h.  */
6757#include <$ac_header>
6758_ACEOF
6759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6761  ac_status=$?
6762  grep -v '^ *+' conftest.er1 >conftest.err
6763  rm -f conftest.er1
6764  cat conftest.err >&5
6765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); } >/dev/null; then
6767  if test -s conftest.err; then
6768    ac_cpp_err=$ac_c_preproc_warn_flag
6769    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6770  else
6771    ac_cpp_err=
6772  fi
6773else
6774  ac_cpp_err=yes
6775fi
6776if test -z "$ac_cpp_err"; then
6777  ac_header_preproc=yes
6778else
6779  echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782  ac_header_preproc=no
6783fi
6784rm -f conftest.err conftest.$ac_ext
6785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6786echo "${ECHO_T}$ac_header_preproc" >&6
6787
6788# So?  What about this header?
6789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6790  yes:no: )
6791    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6793    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6795    ac_header_preproc=yes
6796    ;;
6797  no:yes:* )
6798    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6800    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6801echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6802    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6804    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6805echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6808    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6810    (
6811      cat <<\_ASBOX
6812## ---------------------------------------------- ##
6813## Report this to orxonox-dev at mail.datacore.ch ##
6814## ---------------------------------------------- ##
6815_ASBOX
6816    ) |
6817      sed "s/^/$as_me: WARNING:     /" >&2
6818    ;;
6819esac
6820echo "$as_me:$LINENO: checking for $ac_header" >&5
6821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6822if eval "test \"\${$as_ac_Header+set}\" = set"; then
6823  echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825  eval "$as_ac_Header=\$ac_header_preproc"
6826fi
6827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6829
6830fi
6831if test `eval echo '${'$as_ac_Header'}'` = yes; then
6832  cat >>confdefs.h <<_ACEOF
6833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6834_ACEOF
6835
6836else
6837  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6838echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6839   { (exit 1); exit 1; }; }
6840fi
6841
6842done
6843
6844  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6845echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6846if test "${ac_cv_lib_alut_main+set}" = set; then
6847  echo $ECHO_N "(cached) $ECHO_C" >&6
6848else
6849  ac_check_lib_save_LIBS=$LIBS
6850LIBS="-lalut  $LIBS"
6851cat >conftest.$ac_ext <<_ACEOF
6852/* confdefs.h.  */
6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h.  */
6857
6858
6859int
6860main ()
6861{
6862main ();
6863  ;
6864  return 0;
6865}
6866_ACEOF
6867rm -f conftest.$ac_objext conftest$ac_exeext
6868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869  (eval $ac_link) 2>conftest.er1
6870  ac_status=$?
6871  grep -v '^ *+' conftest.er1 >conftest.err
6872  rm -f conftest.er1
6873  cat conftest.err >&5
6874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875  (exit $ac_status); } &&
6876         { ac_try='test -z "$ac_c_werror_flag"
6877                         || test ! -s conftest.err'
6878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879  (eval $ac_try) 2>&5
6880  ac_status=$?
6881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882  (exit $ac_status); }; } &&
6883         { ac_try='test -s conftest$ac_exeext'
6884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885  (eval $ac_try) 2>&5
6886  ac_status=$?
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); }; }; then
6889  ac_cv_lib_alut_main=yes
6890else
6891  echo "$as_me: failed program was:" >&5
6892sed 's/^/| /' conftest.$ac_ext >&5
6893
6894ac_cv_lib_alut_main=no
6895fi
6896rm -f conftest.err conftest.$ac_objext \
6897      conftest$ac_exeext conftest.$ac_ext
6898LIBS=$ac_check_lib_save_LIBS
6899fi
6900echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6901echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6902if test $ac_cv_lib_alut_main = yes; then
6903  FOUND_alut=yes
6904fi
6905
6906     if test x$FOUND_alut = xyes ; then
6907       LIBS="-lalut $LIBS"
6908     fi
6909
6910# checking for SDL
6911  echo "$as_me:$LINENO: checking for SDL-version" >&5
6912echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6913  SDL_VERSION=`sdl-config --version`
6914  echo $SDL_VERSION
6915
6916   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6917
6918for ac_header in SDL.h
6919do
6920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6921if eval "test \"\${$as_ac_Header+set}\" = set"; then
6922  echo "$as_me:$LINENO: checking for $ac_header" >&5
6923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6924if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925  echo $ECHO_N "(cached) $ECHO_C" >&6
6926fi
6927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6929else
6930  # Is the header compilable?
6931echo "$as_me:$LINENO: checking $ac_header usability" >&5
6932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6933cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h.  */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h.  */
6939$ac_includes_default
6940#include <$ac_header>
6941_ACEOF
6942rm -f conftest.$ac_objext
6943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6944  (eval $ac_compile) 2>conftest.er1
6945  ac_status=$?
6946  grep -v '^ *+' conftest.er1 >conftest.err
6947  rm -f conftest.er1
6948  cat conftest.err >&5
6949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950  (exit $ac_status); } &&
6951         { ac_try='test -z "$ac_c_werror_flag"
6952                         || test ! -s conftest.err'
6953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954  (eval $ac_try) 2>&5
6955  ac_status=$?
6956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957  (exit $ac_status); }; } &&
6958         { ac_try='test -s conftest.$ac_objext'
6959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960  (eval $ac_try) 2>&5
6961  ac_status=$?
6962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963  (exit $ac_status); }; }; then
6964  ac_header_compiler=yes
6965else
6966  echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969ac_header_compiler=no
6970fi
6971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6973echo "${ECHO_T}$ac_header_compiler" >&6
6974
6975# Is the header present?
6976echo "$as_me:$LINENO: checking $ac_header presence" >&5
6977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6978cat >conftest.$ac_ext <<_ACEOF
6979/* confdefs.h.  */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h.  */
6984#include <$ac_header>
6985_ACEOF
6986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6987  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6988  ac_status=$?
6989  grep -v '^ *+' conftest.er1 >conftest.err
6990  rm -f conftest.er1
6991  cat conftest.err >&5
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); } >/dev/null; then
6994  if test -s conftest.err; then
6995    ac_cpp_err=$ac_c_preproc_warn_flag
6996    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6997  else
6998    ac_cpp_err=
6999  fi
7000else
7001  ac_cpp_err=yes
7002fi
7003if test -z "$ac_cpp_err"; then
7004  ac_header_preproc=yes
7005else
7006  echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009  ac_header_preproc=no
7010fi
7011rm -f conftest.err conftest.$ac_ext
7012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7013echo "${ECHO_T}$ac_header_preproc" >&6
7014
7015# So?  What about this header?
7016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7017  yes:no: )
7018    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7020    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7022    ac_header_preproc=yes
7023    ;;
7024  no:yes:* )
7025    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7027    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7028echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7029    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7031    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7032echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7035    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7037    (
7038      cat <<\_ASBOX
7039## ---------------------------------------------- ##
7040## Report this to orxonox-dev at mail.datacore.ch ##
7041## ---------------------------------------------- ##
7042_ASBOX
7043    ) |
7044      sed "s/^/$as_me: WARNING:     /" >&2
7045    ;;
7046esac
7047echo "$as_me:$LINENO: checking for $ac_header" >&5
7048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7049if eval "test \"\${$as_ac_Header+set}\" = set"; then
7050  echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052  eval "$as_ac_Header=\$ac_header_preproc"
7053fi
7054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7056
7057fi
7058if test `eval echo '${'$as_ac_Header'}'` = yes; then
7059  cat >>confdefs.h <<_ACEOF
7060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7061_ACEOF
7062
7063else
7064
7065for ac_header in SDL/SDL.h
7066do
7067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7068if eval "test \"\${$as_ac_Header+set}\" = set"; then
7069  echo "$as_me:$LINENO: checking for $ac_header" >&5
7070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7071if eval "test \"\${$as_ac_Header+set}\" = set"; then
7072  echo $ECHO_N "(cached) $ECHO_C" >&6
7073fi
7074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7076else
7077  # Is the header compilable?
7078echo "$as_me:$LINENO: checking $ac_header usability" >&5
7079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7080cat >conftest.$ac_ext <<_ACEOF
7081/* confdefs.h.  */
7082_ACEOF
7083cat confdefs.h >>conftest.$ac_ext
7084cat >>conftest.$ac_ext <<_ACEOF
7085/* end confdefs.h.  */
7086$ac_includes_default
7087#include <$ac_header>
7088_ACEOF
7089rm -f conftest.$ac_objext
7090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091  (eval $ac_compile) 2>conftest.er1
7092  ac_status=$?
7093  grep -v '^ *+' conftest.er1 >conftest.err
7094  rm -f conftest.er1
7095  cat conftest.err >&5
7096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097  (exit $ac_status); } &&
7098         { ac_try='test -z "$ac_c_werror_flag"
7099                         || test ! -s conftest.err'
7100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101  (eval $ac_try) 2>&5
7102  ac_status=$?
7103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104  (exit $ac_status); }; } &&
7105         { ac_try='test -s conftest.$ac_objext'
7106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107  (eval $ac_try) 2>&5
7108  ac_status=$?
7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110  (exit $ac_status); }; }; then
7111  ac_header_compiler=yes
7112else
7113  echo "$as_me: failed program was:" >&5
7114sed 's/^/| /' conftest.$ac_ext >&5
7115
7116ac_header_compiler=no
7117fi
7118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7120echo "${ECHO_T}$ac_header_compiler" >&6
7121
7122# Is the header present?
7123echo "$as_me:$LINENO: checking $ac_header presence" >&5
7124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7125cat >conftest.$ac_ext <<_ACEOF
7126/* confdefs.h.  */
7127_ACEOF
7128cat confdefs.h >>conftest.$ac_ext
7129cat >>conftest.$ac_ext <<_ACEOF
7130/* end confdefs.h.  */
7131#include <$ac_header>
7132_ACEOF
7133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7134  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7135  ac_status=$?
7136  grep -v '^ *+' conftest.er1 >conftest.err
7137  rm -f conftest.er1
7138  cat conftest.err >&5
7139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140  (exit $ac_status); } >/dev/null; then
7141  if test -s conftest.err; then
7142    ac_cpp_err=$ac_c_preproc_warn_flag
7143    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7144  else
7145    ac_cpp_err=
7146  fi
7147else
7148  ac_cpp_err=yes
7149fi
7150if test -z "$ac_cpp_err"; then
7151  ac_header_preproc=yes
7152else
7153  echo "$as_me: failed program was:" >&5
7154sed 's/^/| /' conftest.$ac_ext >&5
7155
7156  ac_header_preproc=no
7157fi
7158rm -f conftest.err conftest.$ac_ext
7159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7160echo "${ECHO_T}$ac_header_preproc" >&6
7161
7162# So?  What about this header?
7163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7164  yes:no: )
7165    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7167    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7169    ac_header_preproc=yes
7170    ;;
7171  no:yes:* )
7172    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7174    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7175echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7176    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7178    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7179echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7180    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7182    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7184    (
7185      cat <<\_ASBOX
7186## ---------------------------------------------- ##
7187## Report this to orxonox-dev at mail.datacore.ch ##
7188## ---------------------------------------------- ##
7189_ASBOX
7190    ) |
7191      sed "s/^/$as_me: WARNING:     /" >&2
7192    ;;
7193esac
7194echo "$as_me:$LINENO: checking for $ac_header" >&5
7195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7196if eval "test \"\${$as_ac_Header+set}\" = set"; then
7197  echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199  eval "$as_ac_Header=\$ac_header_preproc"
7200fi
7201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7203
7204fi
7205if test `eval echo '${'$as_ac_Header'}'` = yes; then
7206  cat >>confdefs.h <<_ACEOF
7207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7208_ACEOF
7209
7210else
7211  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7212echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
7213   { (exit 1); exit 1; }; }
7214fi
7215
7216done
7217
7218fi
7219
7220done
7221
7222   LIBS="`sdl-config --libs` $LIBS"
7223   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7224echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7225if test "${ac_cv_lib_SDL_main+set}" = set; then
7226  echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228  ac_check_lib_save_LIBS=$LIBS
7229LIBS="-lSDL  $LIBS"
7230cat >conftest.$ac_ext <<_ACEOF
7231/* confdefs.h.  */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h.  */
7236
7237
7238int
7239main ()
7240{
7241main ();
7242  ;
7243  return 0;
7244}
7245_ACEOF
7246rm -f conftest.$ac_objext conftest$ac_exeext
7247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248  (eval $ac_link) 2>conftest.er1
7249  ac_status=$?
7250  grep -v '^ *+' conftest.er1 >conftest.err
7251  rm -f conftest.er1
7252  cat conftest.err >&5
7253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254  (exit $ac_status); } &&
7255         { ac_try='test -z "$ac_c_werror_flag"
7256                         || test ! -s conftest.err'
7257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258  (eval $ac_try) 2>&5
7259  ac_status=$?
7260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261  (exit $ac_status); }; } &&
7262         { ac_try='test -s conftest$ac_exeext'
7263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264  (eval $ac_try) 2>&5
7265  ac_status=$?
7266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); }; }; then
7268  ac_cv_lib_SDL_main=yes
7269else
7270  echo "$as_me: failed program was:" >&5
7271sed 's/^/| /' conftest.$ac_ext >&5
7272
7273ac_cv_lib_SDL_main=no
7274fi
7275rm -f conftest.err conftest.$ac_objext \
7276      conftest$ac_exeext conftest.$ac_ext
7277LIBS=$ac_check_lib_save_LIBS
7278fi
7279echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7280echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7281if test $ac_cv_lib_SDL_main = yes; then
7282  FOUND_SDL=yes
7283fi
7284
7285    if test x$FOUND_SDL = xyes ; then
7286     echo `sdl-config --libs`
7287    else
7288        echo "------------------"
7289        echo "SDL library not found."
7290        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7291        echo "------------------"
7292        exit -1
7293     fi
7294
7295    ;;
7296
7297#############
7298#-----------#
7299# MAC -OS X #
7300#-----------#
7301#############
7302 *darwin*)
7303 echo "OS X detected"
7304
7305 osX="yes"
7306
7307 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7308# checking gl header
7309
7310for ac_header in OpenGL/gl.h
7311do
7312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7313if eval "test \"\${$as_ac_Header+set}\" = set"; then
7314  echo "$as_me:$LINENO: checking for $ac_header" >&5
7315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7316if eval "test \"\${$as_ac_Header+set}\" = set"; then
7317  echo $ECHO_N "(cached) $ECHO_C" >&6
7318fi
7319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7321else
7322  # Is the header compilable?
7323echo "$as_me:$LINENO: checking $ac_header usability" >&5
7324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7325cat >conftest.$ac_ext <<_ACEOF
7326/* confdefs.h.  */
7327_ACEOF
7328cat confdefs.h >>conftest.$ac_ext
7329cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h.  */
7331$ac_includes_default
7332#include <$ac_header>
7333_ACEOF
7334rm -f conftest.$ac_objext
7335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336  (eval $ac_compile) 2>conftest.er1
7337  ac_status=$?
7338  grep -v '^ *+' conftest.er1 >conftest.err
7339  rm -f conftest.er1
7340  cat conftest.err >&5
7341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342  (exit $ac_status); } &&
7343         { ac_try='test -z "$ac_c_werror_flag"
7344                         || test ! -s conftest.err'
7345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346  (eval $ac_try) 2>&5
7347  ac_status=$?
7348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349  (exit $ac_status); }; } &&
7350         { ac_try='test -s conftest.$ac_objext'
7351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352  (eval $ac_try) 2>&5
7353  ac_status=$?
7354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355  (exit $ac_status); }; }; then
7356  ac_header_compiler=yes
7357else
7358  echo "$as_me: failed program was:" >&5
7359sed 's/^/| /' conftest.$ac_ext >&5
7360
7361ac_header_compiler=no
7362fi
7363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7365echo "${ECHO_T}$ac_header_compiler" >&6
7366
7367# Is the header present?
7368echo "$as_me:$LINENO: checking $ac_header presence" >&5
7369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7370cat >conftest.$ac_ext <<_ACEOF
7371/* confdefs.h.  */
7372_ACEOF
7373cat confdefs.h >>conftest.$ac_ext
7374cat >>conftest.$ac_ext <<_ACEOF
7375/* end confdefs.h.  */
7376#include <$ac_header>
7377_ACEOF
7378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7379  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7380  ac_status=$?
7381  grep -v '^ *+' conftest.er1 >conftest.err
7382  rm -f conftest.er1
7383  cat conftest.err >&5
7384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385  (exit $ac_status); } >/dev/null; then
7386  if test -s conftest.err; then
7387    ac_cpp_err=$ac_c_preproc_warn_flag
7388    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7389  else
7390    ac_cpp_err=
7391  fi
7392else
7393  ac_cpp_err=yes
7394fi
7395if test -z "$ac_cpp_err"; then
7396  ac_header_preproc=yes
7397else
7398  echo "$as_me: failed program was:" >&5
7399sed 's/^/| /' conftest.$ac_ext >&5
7400
7401  ac_header_preproc=no
7402fi
7403rm -f conftest.err conftest.$ac_ext
7404echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7405echo "${ECHO_T}$ac_header_preproc" >&6
7406
7407# So?  What about this header?
7408case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7409  yes:no: )
7410    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7411echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7412    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7413echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7414    ac_header_preproc=yes
7415    ;;
7416  no:yes:* )
7417    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7418echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7419    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7420echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7421    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7422echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7424echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7425    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7426echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7427    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7428echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7429    (
7430      cat <<\_ASBOX
7431## ---------------------------------------------- ##
7432## Report this to orxonox-dev at mail.datacore.ch ##
7433## ---------------------------------------------- ##
7434_ASBOX
7435    ) |
7436      sed "s/^/$as_me: WARNING:     /" >&2
7437    ;;
7438esac
7439echo "$as_me:$LINENO: checking for $ac_header" >&5
7440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7441if eval "test \"\${$as_ac_Header+set}\" = set"; then
7442  echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444  eval "$as_ac_Header=\$ac_header_preproc"
7445fi
7446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448
7449fi
7450if test `eval echo '${'$as_ac_Header'}'` = yes; then
7451  cat >>confdefs.h <<_ACEOF
7452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7453_ACEOF
7454
7455else
7456  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7457echo "$as_me: error: cannot find opengl headers" >&2;}
7458   { (exit 1); exit 1; }; }
7459fi
7460
7461done
7462
7463# cheking for GLU-header
7464
7465for ac_header in OpenGL/glu.h
7466do
7467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7468if eval "test \"\${$as_ac_Header+set}\" = set"; then
7469  echo "$as_me:$LINENO: checking for $ac_header" >&5
7470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7471if eval "test \"\${$as_ac_Header+set}\" = set"; then
7472  echo $ECHO_N "(cached) $ECHO_C" >&6
7473fi
7474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7476else
7477  # Is the header compilable?
7478echo "$as_me:$LINENO: checking $ac_header usability" >&5
7479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7480cat >conftest.$ac_ext <<_ACEOF
7481/* confdefs.h.  */
7482_ACEOF
7483cat confdefs.h >>conftest.$ac_ext
7484cat >>conftest.$ac_ext <<_ACEOF
7485/* end confdefs.h.  */
7486$ac_includes_default
7487#include <$ac_header>
7488_ACEOF
7489rm -f conftest.$ac_objext
7490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7491  (eval $ac_compile) 2>conftest.er1
7492  ac_status=$?
7493  grep -v '^ *+' conftest.er1 >conftest.err
7494  rm -f conftest.er1
7495  cat conftest.err >&5
7496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); } &&
7498         { ac_try='test -z "$ac_c_werror_flag"
7499                         || test ! -s conftest.err'
7500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501  (eval $ac_try) 2>&5
7502  ac_status=$?
7503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504  (exit $ac_status); }; } &&
7505         { ac_try='test -s conftest.$ac_objext'
7506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507  (eval $ac_try) 2>&5
7508  ac_status=$?
7509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510  (exit $ac_status); }; }; then
7511  ac_header_compiler=yes
7512else
7513  echo "$as_me: failed program was:" >&5
7514sed 's/^/| /' conftest.$ac_ext >&5
7515
7516ac_header_compiler=no
7517fi
7518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7520echo "${ECHO_T}$ac_header_compiler" >&6
7521
7522# Is the header present?
7523echo "$as_me:$LINENO: checking $ac_header presence" >&5
7524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7525cat >conftest.$ac_ext <<_ACEOF
7526/* confdefs.h.  */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h.  */
7531#include <$ac_header>
7532_ACEOF
7533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7534  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7535  ac_status=$?
7536  grep -v '^ *+' conftest.er1 >conftest.err
7537  rm -f conftest.er1
7538  cat conftest.err >&5
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); } >/dev/null; then
7541  if test -s conftest.err; then
7542    ac_cpp_err=$ac_c_preproc_warn_flag
7543    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7544  else
7545    ac_cpp_err=
7546  fi
7547else
7548  ac_cpp_err=yes
7549fi
7550if test -z "$ac_cpp_err"; then
7551  ac_header_preproc=yes
7552else
7553  echo "$as_me: failed program was:" >&5
7554sed 's/^/| /' conftest.$ac_ext >&5
7555
7556  ac_header_preproc=no
7557fi
7558rm -f conftest.err conftest.$ac_ext
7559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7560echo "${ECHO_T}$ac_header_preproc" >&6
7561
7562# So?  What about this header?
7563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7564  yes:no: )
7565    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7567    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7569    ac_header_preproc=yes
7570    ;;
7571  no:yes:* )
7572    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7574    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7575echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7576    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7578    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7579echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7580    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7582    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7584    (
7585      cat <<\_ASBOX
7586## ---------------------------------------------- ##
7587## Report this to orxonox-dev at mail.datacore.ch ##
7588## ---------------------------------------------- ##
7589_ASBOX
7590    ) |
7591      sed "s/^/$as_me: WARNING:     /" >&2
7592    ;;
7593esac
7594echo "$as_me:$LINENO: checking for $ac_header" >&5
7595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7596if eval "test \"\${$as_ac_Header+set}\" = set"; then
7597  echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599  eval "$as_ac_Header=\$ac_header_preproc"
7600fi
7601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603
7604fi
7605if test `eval echo '${'$as_ac_Header'}'` = yes; then
7606  cat >>confdefs.h <<_ACEOF
7607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7608_ACEOF
7609
7610else
7611  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7612echo "$as_me: error: cannot find opengl headers" >&2;}
7613   { (exit 1); exit 1; }; }
7614fi
7615
7616done
7617
7618
7619   LIBS="$LIBS -framework OpenGL"
7620
7621
7622## SDL-check
7623       SDL_CFLAGS=`sdl-config --cflags`
7624       SDL_LIBS=`sdl-config --libs`
7625       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7626       LIBS="$LIBS $SDL_LIBS"
7627
7628
7629# checking for SDL-headers
7630#    AC_CHECK_HEADERS(SDL/SDL.h ,,
7631#      [AC_MSG_ERROR([cannot find SDL headers]) ])
7632
7633## checking for SDL
7634#    SDL_VERSION=1.2.7
7635#    AM_PATH_SDL($SDL_VERSION,
7636#      :,
7637#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
7638#      )
7639
7640
7641    ;;
7642
7643  *)
7644    ;;
7645esac
7646
7647
7648
7649###################################
7650## CHECKING FOR HEADERS AND LIBS ##
7651###################################
7652
7653#---------#
7654# SDL_ttf #
7655#---------#
7656# checking for SDL_ttf-headers
7657
7658for ac_header in SDL_ttf.h
7659do
7660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662  echo "$as_me:$LINENO: checking for $ac_header" >&5
7663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7664if eval "test \"\${$as_ac_Header+set}\" = set"; then
7665  echo $ECHO_N "(cached) $ECHO_C" >&6
7666fi
7667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7669else
7670  # Is the header compilable?
7671echo "$as_me:$LINENO: checking $ac_header usability" >&5
7672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7673cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h.  */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h.  */
7679$ac_includes_default
7680#include <$ac_header>
7681_ACEOF
7682rm -f conftest.$ac_objext
7683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684  (eval $ac_compile) 2>conftest.er1
7685  ac_status=$?
7686  grep -v '^ *+' conftest.er1 >conftest.err
7687  rm -f conftest.er1
7688  cat conftest.err >&5
7689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690  (exit $ac_status); } &&
7691         { ac_try='test -z "$ac_c_werror_flag"
7692                         || test ! -s conftest.err'
7693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694  (eval $ac_try) 2>&5
7695  ac_status=$?
7696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697  (exit $ac_status); }; } &&
7698         { ac_try='test -s conftest.$ac_objext'
7699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700  (eval $ac_try) 2>&5
7701  ac_status=$?
7702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703  (exit $ac_status); }; }; then
7704  ac_header_compiler=yes
7705else
7706  echo "$as_me: failed program was:" >&5
7707sed 's/^/| /' conftest.$ac_ext >&5
7708
7709ac_header_compiler=no
7710fi
7711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7713echo "${ECHO_T}$ac_header_compiler" >&6
7714
7715# Is the header present?
7716echo "$as_me:$LINENO: checking $ac_header presence" >&5
7717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7718cat >conftest.$ac_ext <<_ACEOF
7719/* confdefs.h.  */
7720_ACEOF
7721cat confdefs.h >>conftest.$ac_ext
7722cat >>conftest.$ac_ext <<_ACEOF
7723/* end confdefs.h.  */
7724#include <$ac_header>
7725_ACEOF
7726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7728  ac_status=$?
7729  grep -v '^ *+' conftest.er1 >conftest.err
7730  rm -f conftest.er1
7731  cat conftest.err >&5
7732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); } >/dev/null; then
7734  if test -s conftest.err; then
7735    ac_cpp_err=$ac_c_preproc_warn_flag
7736    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7737  else
7738    ac_cpp_err=
7739  fi
7740else
7741  ac_cpp_err=yes
7742fi
7743if test -z "$ac_cpp_err"; then
7744  ac_header_preproc=yes
7745else
7746  echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
7749  ac_header_preproc=no
7750fi
7751rm -f conftest.err conftest.$ac_ext
7752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7753echo "${ECHO_T}$ac_header_preproc" >&6
7754
7755# So?  What about this header?
7756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7757  yes:no: )
7758    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7760    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7762    ac_header_preproc=yes
7763    ;;
7764  no:yes:* )
7765    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7767    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7768echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7769    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7771    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7772echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7773    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7775    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7777    (
7778      cat <<\_ASBOX
7779## ---------------------------------------------- ##
7780## Report this to orxonox-dev at mail.datacore.ch ##
7781## ---------------------------------------------- ##
7782_ASBOX
7783    ) |
7784      sed "s/^/$as_me: WARNING:     /" >&2
7785    ;;
7786esac
7787echo "$as_me:$LINENO: checking for $ac_header" >&5
7788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7789if eval "test \"\${$as_ac_Header+set}\" = set"; then
7790  echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792  eval "$as_ac_Header=\$ac_header_preproc"
7793fi
7794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7796
7797fi
7798if test `eval echo '${'$as_ac_Header'}'` = yes; then
7799  cat >>confdefs.h <<_ACEOF
7800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7801_ACEOF
7802
7803else
7804
7805for ac_header in SDL/SDL_ttf.h
7806do
7807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7808if eval "test \"\${$as_ac_Header+set}\" = set"; then
7809  echo "$as_me:$LINENO: checking for $ac_header" >&5
7810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7811if eval "test \"\${$as_ac_Header+set}\" = set"; then
7812  echo $ECHO_N "(cached) $ECHO_C" >&6
7813fi
7814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7816else
7817  # Is the header compilable?
7818echo "$as_me:$LINENO: checking $ac_header usability" >&5
7819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7820cat >conftest.$ac_ext <<_ACEOF
7821/* confdefs.h.  */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h.  */
7826$ac_includes_default
7827#include <$ac_header>
7828_ACEOF
7829rm -f conftest.$ac_objext
7830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831  (eval $ac_compile) 2>conftest.er1
7832  ac_status=$?
7833  grep -v '^ *+' conftest.er1 >conftest.err
7834  rm -f conftest.er1
7835  cat conftest.err >&5
7836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837  (exit $ac_status); } &&
7838         { ac_try='test -z "$ac_c_werror_flag"
7839                         || test ! -s conftest.err'
7840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841  (eval $ac_try) 2>&5
7842  ac_status=$?
7843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844  (exit $ac_status); }; } &&
7845         { ac_try='test -s conftest.$ac_objext'
7846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847  (eval $ac_try) 2>&5
7848  ac_status=$?
7849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850  (exit $ac_status); }; }; then
7851  ac_header_compiler=yes
7852else
7853  echo "$as_me: failed program was:" >&5
7854sed 's/^/| /' conftest.$ac_ext >&5
7855
7856ac_header_compiler=no
7857fi
7858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7860echo "${ECHO_T}$ac_header_compiler" >&6
7861
7862# Is the header present?
7863echo "$as_me:$LINENO: checking $ac_header presence" >&5
7864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7865cat >conftest.$ac_ext <<_ACEOF
7866/* confdefs.h.  */
7867_ACEOF
7868cat confdefs.h >>conftest.$ac_ext
7869cat >>conftest.$ac_ext <<_ACEOF
7870/* end confdefs.h.  */
7871#include <$ac_header>
7872_ACEOF
7873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7874  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7875  ac_status=$?
7876  grep -v '^ *+' conftest.er1 >conftest.err
7877  rm -f conftest.er1
7878  cat conftest.err >&5
7879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880  (exit $ac_status); } >/dev/null; then
7881  if test -s conftest.err; then
7882    ac_cpp_err=$ac_c_preproc_warn_flag
7883    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7884  else
7885    ac_cpp_err=
7886  fi
7887else
7888  ac_cpp_err=yes
7889fi
7890if test -z "$ac_cpp_err"; then
7891  ac_header_preproc=yes
7892else
7893  echo "$as_me: failed program was:" >&5
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896  ac_header_preproc=no
7897fi
7898rm -f conftest.err conftest.$ac_ext
7899echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7900echo "${ECHO_T}$ac_header_preproc" >&6
7901
7902# So?  What about this header?
7903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7904  yes:no: )
7905    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7907    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7908echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7909    ac_header_preproc=yes
7910    ;;
7911  no:yes:* )
7912    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7913echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7914    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7915echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7916    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7917echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7918    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7919echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7920    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7921echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7922    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7923echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7924    (
7925      cat <<\_ASBOX
7926## ---------------------------------------------- ##
7927## Report this to orxonox-dev at mail.datacore.ch ##
7928## ---------------------------------------------- ##
7929_ASBOX
7930    ) |
7931      sed "s/^/$as_me: WARNING:     /" >&2
7932    ;;
7933esac
7934echo "$as_me:$LINENO: checking for $ac_header" >&5
7935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7936if eval "test \"\${$as_ac_Header+set}\" = set"; then
7937  echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
7939  eval "$as_ac_Header=\$ac_header_preproc"
7940fi
7941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7943
7944fi
7945if test `eval echo '${'$as_ac_Header'}'` = yes; then
7946  cat >>confdefs.h <<_ACEOF
7947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7948_ACEOF
7949
7950else
7951  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7952echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7953   { (exit 1); exit 1; }; }
7954fi
7955
7956done
7957
7958fi
7959
7960done
7961
7962# checking for SDL_ttf-lib
7963  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7964echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7965if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7966  echo $ECHO_N "(cached) $ECHO_C" >&6
7967else
7968  ac_check_lib_save_LIBS=$LIBS
7969LIBS="-lSDL_ttf  $LIBS"
7970cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h.  */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h.  */
7976
7977/* Override any gcc2 internal prototype to avoid an error.  */
7978#ifdef __cplusplus
7979extern "C"
7980#endif
7981/* We use char because int might match the return type of a gcc2
7982   builtin and then its argument prototype would still apply.  */
7983char TTF_OpenFont ();
7984int
7985main ()
7986{
7987TTF_OpenFont ();
7988  ;
7989  return 0;
7990}
7991_ACEOF
7992rm -f conftest.$ac_objext conftest$ac_exeext
7993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7994  (eval $ac_link) 2>conftest.er1
7995  ac_status=$?
7996  grep -v '^ *+' conftest.er1 >conftest.err
7997  rm -f conftest.er1
7998  cat conftest.err >&5
7999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000  (exit $ac_status); } &&
8001         { ac_try='test -z "$ac_c_werror_flag"
8002                         || test ! -s conftest.err'
8003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004  (eval $ac_try) 2>&5
8005  ac_status=$?
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); }; } &&
8008         { ac_try='test -s conftest$ac_exeext'
8009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010  (eval $ac_try) 2>&5
8011  ac_status=$?
8012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013  (exit $ac_status); }; }; then
8014  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
8015else
8016  echo "$as_me: failed program was:" >&5
8017sed 's/^/| /' conftest.$ac_ext >&5
8018
8019ac_cv_lib_SDL_ttf_TTF_OpenFont=no
8020fi
8021rm -f conftest.err conftest.$ac_objext \
8022      conftest$ac_exeext conftest.$ac_ext
8023LIBS=$ac_check_lib_save_LIBS
8024fi
8025echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
8026echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
8027if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
8028  FOUND_SDL_ttf=yes
8029fi
8030
8031     if test x$FOUND_SDL_ttf = xyes ; then
8032       LIBS="$LIBS -lSDL_ttf"
8033     else
8034        echo "------------------"
8035        echo "SDL_ttf library not found."
8036        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
8037        echo "------------------"
8038        exit -1
8039     fi
8040
8041#-----------#
8042# SDL_Image #
8043#-----------#
8044# checking for SDL_image-headers
8045
8046for ac_header in SDL_image.h
8047do
8048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8049if eval "test \"\${$as_ac_Header+set}\" = set"; then
8050  echo "$as_me:$LINENO: checking for $ac_header" >&5
8051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8052if eval "test \"\${$as_ac_Header+set}\" = set"; then
8053  echo $ECHO_N "(cached) $ECHO_C" >&6
8054fi
8055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8057else
8058  # Is the header compilable?
8059echo "$as_me:$LINENO: checking $ac_header usability" >&5
8060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8061cat >conftest.$ac_ext <<_ACEOF
8062/* confdefs.h.  */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h.  */
8067$ac_includes_default
8068#include <$ac_header>
8069_ACEOF
8070rm -f conftest.$ac_objext
8071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072  (eval $ac_compile) 2>conftest.er1
8073  ac_status=$?
8074  grep -v '^ *+' conftest.er1 >conftest.err
8075  rm -f conftest.er1
8076  cat conftest.err >&5
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); } &&
8079         { ac_try='test -z "$ac_c_werror_flag"
8080                         || test ! -s conftest.err'
8081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082  (eval $ac_try) 2>&5
8083  ac_status=$?
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); }; } &&
8086         { ac_try='test -s conftest.$ac_objext'
8087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088  (eval $ac_try) 2>&5
8089  ac_status=$?
8090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091  (exit $ac_status); }; }; then
8092  ac_header_compiler=yes
8093else
8094  echo "$as_me: failed program was:" >&5
8095sed 's/^/| /' conftest.$ac_ext >&5
8096
8097ac_header_compiler=no
8098fi
8099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8100echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8101echo "${ECHO_T}$ac_header_compiler" >&6
8102
8103# Is the header present?
8104echo "$as_me:$LINENO: checking $ac_header presence" >&5
8105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8106cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h.  */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h.  */
8112#include <$ac_header>
8113_ACEOF
8114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8115  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8116  ac_status=$?
8117  grep -v '^ *+' conftest.er1 >conftest.err
8118  rm -f conftest.er1
8119  cat conftest.err >&5
8120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121  (exit $ac_status); } >/dev/null; then
8122  if test -s conftest.err; then
8123    ac_cpp_err=$ac_c_preproc_warn_flag
8124    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8125  else
8126    ac_cpp_err=
8127  fi
8128else
8129  ac_cpp_err=yes
8130fi
8131if test -z "$ac_cpp_err"; then
8132  ac_header_preproc=yes
8133else
8134  echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
8137  ac_header_preproc=no
8138fi
8139rm -f conftest.err conftest.$ac_ext
8140echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8141echo "${ECHO_T}$ac_header_preproc" >&6
8142
8143# So?  What about this header?
8144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8145  yes:no: )
8146    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8148    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8150    ac_header_preproc=yes
8151    ;;
8152  no:yes:* )
8153    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8155    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8156echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8157    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8159    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8160echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8161    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8163    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8165    (
8166      cat <<\_ASBOX
8167## ---------------------------------------------- ##
8168## Report this to orxonox-dev at mail.datacore.ch ##
8169## ---------------------------------------------- ##
8170_ASBOX
8171    ) |
8172      sed "s/^/$as_me: WARNING:     /" >&2
8173    ;;
8174esac
8175echo "$as_me:$LINENO: checking for $ac_header" >&5
8176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8177if eval "test \"\${$as_ac_Header+set}\" = set"; then
8178  echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180  eval "$as_ac_Header=\$ac_header_preproc"
8181fi
8182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8184
8185fi
8186if test `eval echo '${'$as_ac_Header'}'` = yes; then
8187  cat >>confdefs.h <<_ACEOF
8188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8189_ACEOF
8190
8191else
8192
8193for ac_header in SDL/SDL_image.h
8194do
8195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8196if eval "test \"\${$as_ac_Header+set}\" = set"; then
8197  echo "$as_me:$LINENO: checking for $ac_header" >&5
8198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8199if eval "test \"\${$as_ac_Header+set}\" = set"; then
8200  echo $ECHO_N "(cached) $ECHO_C" >&6
8201fi
8202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8204else
8205  # Is the header compilable?
8206echo "$as_me:$LINENO: checking $ac_header usability" >&5
8207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8208cat >conftest.$ac_ext <<_ACEOF
8209/* confdefs.h.  */
8210_ACEOF
8211cat confdefs.h >>conftest.$ac_ext
8212cat >>conftest.$ac_ext <<_ACEOF
8213/* end confdefs.h.  */
8214$ac_includes_default
8215#include <$ac_header>
8216_ACEOF
8217rm -f conftest.$ac_objext
8218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219  (eval $ac_compile) 2>conftest.er1
8220  ac_status=$?
8221  grep -v '^ *+' conftest.er1 >conftest.err
8222  rm -f conftest.er1
8223  cat conftest.err >&5
8224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225  (exit $ac_status); } &&
8226         { ac_try='test -z "$ac_c_werror_flag"
8227                         || test ! -s conftest.err'
8228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229  (eval $ac_try) 2>&5
8230  ac_status=$?
8231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232  (exit $ac_status); }; } &&
8233         { ac_try='test -s conftest.$ac_objext'
8234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235  (eval $ac_try) 2>&5
8236  ac_status=$?
8237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238  (exit $ac_status); }; }; then
8239  ac_header_compiler=yes
8240else
8241  echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244ac_header_compiler=no
8245fi
8246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8248echo "${ECHO_T}$ac_header_compiler" >&6
8249
8250# Is the header present?
8251echo "$as_me:$LINENO: checking $ac_header presence" >&5
8252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8253cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h.  */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h.  */
8259#include <$ac_header>
8260_ACEOF
8261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8262  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8263  ac_status=$?
8264  grep -v '^ *+' conftest.er1 >conftest.err
8265  rm -f conftest.er1
8266  cat conftest.err >&5
8267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268  (exit $ac_status); } >/dev/null; then
8269  if test -s conftest.err; then
8270    ac_cpp_err=$ac_c_preproc_warn_flag
8271    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8272  else
8273    ac_cpp_err=
8274  fi
8275else
8276  ac_cpp_err=yes
8277fi
8278if test -z "$ac_cpp_err"; then
8279  ac_header_preproc=yes
8280else
8281  echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
8284  ac_header_preproc=no
8285fi
8286rm -f conftest.err conftest.$ac_ext
8287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8288echo "${ECHO_T}$ac_header_preproc" >&6
8289
8290# So?  What about this header?
8291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8292  yes:no: )
8293    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8295    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8297    ac_header_preproc=yes
8298    ;;
8299  no:yes:* )
8300    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8302    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8303echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8304    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8306    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8307echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8308    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8310    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8312    (
8313      cat <<\_ASBOX
8314## ---------------------------------------------- ##
8315## Report this to orxonox-dev at mail.datacore.ch ##
8316## ---------------------------------------------- ##
8317_ASBOX
8318    ) |
8319      sed "s/^/$as_me: WARNING:     /" >&2
8320    ;;
8321esac
8322echo "$as_me:$LINENO: checking for $ac_header" >&5
8323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8324if eval "test \"\${$as_ac_Header+set}\" = set"; then
8325  echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327  eval "$as_ac_Header=\$ac_header_preproc"
8328fi
8329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8331
8332fi
8333if test `eval echo '${'$as_ac_Header'}'` = yes; then
8334  cat >>confdefs.h <<_ACEOF
8335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8336_ACEOF
8337
8338else
8339  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8340echo "$as_me: error: SDL_image header not found." >&2;}
8341   { (exit 1); exit 1; }; }
8342fi
8343
8344done
8345
8346fi
8347
8348done
8349
8350# checking for SDL_image-lib
8351echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8352echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8353if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8354  echo $ECHO_N "(cached) $ECHO_C" >&6
8355else
8356  ac_check_lib_save_LIBS=$LIBS
8357LIBS="-lSDL_image  $LIBS"
8358cat >conftest.$ac_ext <<_ACEOF
8359/* confdefs.h.  */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h.  */
8364
8365
8366int
8367main ()
8368{
8369main ();
8370  ;
8371  return 0;
8372}
8373_ACEOF
8374rm -f conftest.$ac_objext conftest$ac_exeext
8375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376  (eval $ac_link) 2>conftest.er1
8377  ac_status=$?
8378  grep -v '^ *+' conftest.er1 >conftest.err
8379  rm -f conftest.er1
8380  cat conftest.err >&5
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); } &&
8383         { ac_try='test -z "$ac_c_werror_flag"
8384                         || test ! -s conftest.err'
8385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386  (eval $ac_try) 2>&5
8387  ac_status=$?
8388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389  (exit $ac_status); }; } &&
8390         { ac_try='test -s conftest$ac_exeext'
8391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392  (eval $ac_try) 2>&5
8393  ac_status=$?
8394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395  (exit $ac_status); }; }; then
8396  ac_cv_lib_SDL_image_main=yes
8397else
8398  echo "$as_me: failed program was:" >&5
8399sed 's/^/| /' conftest.$ac_ext >&5
8400
8401ac_cv_lib_SDL_image_main=no
8402fi
8403rm -f conftest.err conftest.$ac_objext \
8404      conftest$ac_exeext conftest.$ac_ext
8405LIBS=$ac_check_lib_save_LIBS
8406fi
8407echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8408echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8409if test $ac_cv_lib_SDL_image_main = yes; then
8410  FOUND_SDL_image=yes
8411fi
8412
8413   if test x$FOUND_SDL_image = xyes ; then
8414     LIBS="$LIBS -lSDL_image"
8415   else
8416      echo "------------------"
8417      echo "SDL_image library not found."
8418      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
8419      echo "------------------"
8420      exit -1
8421   fi
8422
8423#-----#
8424# ogg #
8425#-----#
8426# checking for ogg-headers
8427
8428for ac_header in ogg/ogg.h
8429do
8430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8431if eval "test \"\${$as_ac_Header+set}\" = set"; then
8432  echo "$as_me:$LINENO: checking for $ac_header" >&5
8433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435  echo $ECHO_N "(cached) $ECHO_C" >&6
8436fi
8437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439else
8440  # Is the header compilable?
8441echo "$as_me:$LINENO: checking $ac_header usability" >&5
8442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8443cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h.  */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h.  */
8449$ac_includes_default
8450#include <$ac_header>
8451_ACEOF
8452rm -f conftest.$ac_objext
8453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454  (eval $ac_compile) 2>conftest.er1
8455  ac_status=$?
8456  grep -v '^ *+' conftest.er1 >conftest.err
8457  rm -f conftest.er1
8458  cat conftest.err >&5
8459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460  (exit $ac_status); } &&
8461         { ac_try='test -z "$ac_c_werror_flag"
8462                         || test ! -s conftest.err'
8463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464  (eval $ac_try) 2>&5
8465  ac_status=$?
8466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467  (exit $ac_status); }; } &&
8468         { ac_try='test -s conftest.$ac_objext'
8469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470  (eval $ac_try) 2>&5
8471  ac_status=$?
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); }; }; then
8474  ac_header_compiler=yes
8475else
8476  echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479ac_header_compiler=no
8480fi
8481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8483echo "${ECHO_T}$ac_header_compiler" >&6
8484
8485# Is the header present?
8486echo "$as_me:$LINENO: checking $ac_header presence" >&5
8487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8488cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h.  */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h.  */
8494#include <$ac_header>
8495_ACEOF
8496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8498  ac_status=$?
8499  grep -v '^ *+' conftest.er1 >conftest.err
8500  rm -f conftest.er1
8501  cat conftest.err >&5
8502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503  (exit $ac_status); } >/dev/null; then
8504  if test -s conftest.err; then
8505    ac_cpp_err=$ac_c_preproc_warn_flag
8506    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8507  else
8508    ac_cpp_err=
8509  fi
8510else
8511  ac_cpp_err=yes
8512fi
8513if test -z "$ac_cpp_err"; then
8514  ac_header_preproc=yes
8515else
8516  echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519  ac_header_preproc=no
8520fi
8521rm -f conftest.err conftest.$ac_ext
8522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523echo "${ECHO_T}$ac_header_preproc" >&6
8524
8525# So?  What about this header?
8526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8527  yes:no: )
8528    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532    ac_header_preproc=yes
8533    ;;
8534  no:yes:* )
8535    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8538echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8539    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8542echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8543    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8547    (
8548      cat <<\_ASBOX
8549## ---------------------------------------------- ##
8550## Report this to orxonox-dev at mail.datacore.ch ##
8551## ---------------------------------------------- ##
8552_ASBOX
8553    ) |
8554      sed "s/^/$as_me: WARNING:     /" >&2
8555    ;;
8556esac
8557echo "$as_me:$LINENO: checking for $ac_header" >&5
8558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8559if eval "test \"\${$as_ac_Header+set}\" = set"; then
8560  echo $ECHO_N "(cached) $ECHO_C" >&6
8561else
8562  eval "$as_ac_Header=\$ac_header_preproc"
8563fi
8564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8566
8567fi
8568if test `eval echo '${'$as_ac_Header'}'` = yes; then
8569  cat >>confdefs.h <<_ACEOF
8570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571_ACEOF
8572
8573else
8574  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
8575echo "$as_me: error: cannot find ogg header." >&2;}
8576   { (exit 1); exit 1; }; }
8577fi
8578
8579done
8580
8581# checking for ogg-lib
8582  echo "$as_me:$LINENO: checking for main in -logg" >&5
8583echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
8584if test "${ac_cv_lib_ogg_main+set}" = set; then
8585  echo $ECHO_N "(cached) $ECHO_C" >&6
8586else
8587  ac_check_lib_save_LIBS=$LIBS
8588LIBS="-logg  $LIBS"
8589cat >conftest.$ac_ext <<_ACEOF
8590/* confdefs.h.  */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
8594/* end confdefs.h.  */
8595
8596
8597int
8598main ()
8599{
8600main ();
8601  ;
8602  return 0;
8603}
8604_ACEOF
8605rm -f conftest.$ac_objext conftest$ac_exeext
8606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607  (eval $ac_link) 2>conftest.er1
8608  ac_status=$?
8609  grep -v '^ *+' conftest.er1 >conftest.err
8610  rm -f conftest.er1
8611  cat conftest.err >&5
8612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613  (exit $ac_status); } &&
8614         { ac_try='test -z "$ac_c_werror_flag"
8615                         || test ! -s conftest.err'
8616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617  (eval $ac_try) 2>&5
8618  ac_status=$?
8619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620  (exit $ac_status); }; } &&
8621         { ac_try='test -s conftest$ac_exeext'
8622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623  (eval $ac_try) 2>&5
8624  ac_status=$?
8625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626  (exit $ac_status); }; }; then
8627  ac_cv_lib_ogg_main=yes
8628else
8629  echo "$as_me: failed program was:" >&5
8630sed 's/^/| /' conftest.$ac_ext >&5
8631
8632ac_cv_lib_ogg_main=no
8633fi
8634rm -f conftest.err conftest.$ac_objext \
8635      conftest$ac_exeext conftest.$ac_ext
8636LIBS=$ac_check_lib_save_LIBS
8637fi
8638echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
8639echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
8640if test $ac_cv_lib_ogg_main = yes; then
8641  FOUND_ogg=yes
8642fi
8643
8644     if test x$FOUND_ogg = xyes ; then
8645       LIBS="$LIBS -logg"
8646     else
8647        echo "------------------"
8648        echo "ogg library not found."
8649        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8650        echo "------------------"
8651        exit -1
8652     fi
8653
8654#--------#
8655# vorbis #
8656#--------#
8657# checking for vorbis-lib
8658  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
8659echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
8660if test "${ac_cv_lib_vorbis_main+set}" = set; then
8661  echo $ECHO_N "(cached) $ECHO_C" >&6
8662else
8663  ac_check_lib_save_LIBS=$LIBS
8664LIBS="-lvorbis  $LIBS"
8665cat >conftest.$ac_ext <<_ACEOF
8666/* confdefs.h.  */
8667_ACEOF
8668cat confdefs.h >>conftest.$ac_ext
8669cat >>conftest.$ac_ext <<_ACEOF
8670/* end confdefs.h.  */
8671
8672
8673int
8674main ()
8675{
8676main ();
8677  ;
8678  return 0;
8679}
8680_ACEOF
8681rm -f conftest.$ac_objext conftest$ac_exeext
8682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683  (eval $ac_link) 2>conftest.er1
8684  ac_status=$?
8685  grep -v '^ *+' conftest.er1 >conftest.err
8686  rm -f conftest.er1
8687  cat conftest.err >&5
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); } &&
8690         { ac_try='test -z "$ac_c_werror_flag"
8691                         || test ! -s conftest.err'
8692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693  (eval $ac_try) 2>&5
8694  ac_status=$?
8695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696  (exit $ac_status); }; } &&
8697         { ac_try='test -s conftest$ac_exeext'
8698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699  (eval $ac_try) 2>&5
8700  ac_status=$?
8701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702  (exit $ac_status); }; }; then
8703  ac_cv_lib_vorbis_main=yes
8704else
8705  echo "$as_me: failed program was:" >&5
8706sed 's/^/| /' conftest.$ac_ext >&5
8707
8708ac_cv_lib_vorbis_main=no
8709fi
8710rm -f conftest.err conftest.$ac_objext \
8711      conftest$ac_exeext conftest.$ac_ext
8712LIBS=$ac_check_lib_save_LIBS
8713fi
8714echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
8715echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
8716if test $ac_cv_lib_vorbis_main = yes; then
8717  FOUND_vorbis=yes
8718fi
8719
8720     if test x$FOUND_vorbis = xyes ; then
8721       LIBS="$LIBS -lvorbis"
8722     else
8723        echo "------------------"
8724        echo "vorbis library not found."
8725        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8726        echo "------------------"
8727        exit -1
8728     fi
8729
8730#------------#
8731# vorbisfile #
8732#------------#
8733# checking for vorbis-headers
8734
8735for ac_header in vorbis/vorbisfile.h
8736do
8737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8738if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739  echo "$as_me:$LINENO: checking for $ac_header" >&5
8740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8741if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742  echo $ECHO_N "(cached) $ECHO_C" >&6
8743fi
8744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8746else
8747  # Is the header compilable?
8748echo "$as_me:$LINENO: checking $ac_header usability" >&5
8749echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8750cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h.  */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h.  */
8756$ac_includes_default
8757#include <$ac_header>
8758_ACEOF
8759rm -f conftest.$ac_objext
8760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761  (eval $ac_compile) 2>conftest.er1
8762  ac_status=$?
8763  grep -v '^ *+' conftest.er1 >conftest.err
8764  rm -f conftest.er1
8765  cat conftest.err >&5
8766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767  (exit $ac_status); } &&
8768         { ac_try='test -z "$ac_c_werror_flag"
8769                         || test ! -s conftest.err'
8770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771  (eval $ac_try) 2>&5
8772  ac_status=$?
8773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774  (exit $ac_status); }; } &&
8775         { ac_try='test -s conftest.$ac_objext'
8776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777  (eval $ac_try) 2>&5
8778  ac_status=$?
8779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780  (exit $ac_status); }; }; then
8781  ac_header_compiler=yes
8782else
8783  echo "$as_me: failed program was:" >&5
8784sed 's/^/| /' conftest.$ac_ext >&5
8785
8786ac_header_compiler=no
8787fi
8788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8790echo "${ECHO_T}$ac_header_compiler" >&6
8791
8792# Is the header present?
8793echo "$as_me:$LINENO: checking $ac_header presence" >&5
8794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8795cat >conftest.$ac_ext <<_ACEOF
8796/* confdefs.h.  */
8797_ACEOF
8798cat confdefs.h >>conftest.$ac_ext
8799cat >>conftest.$ac_ext <<_ACEOF
8800/* end confdefs.h.  */
8801#include <$ac_header>
8802_ACEOF
8803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8805  ac_status=$?
8806  grep -v '^ *+' conftest.er1 >conftest.err
8807  rm -f conftest.er1
8808  cat conftest.err >&5
8809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810  (exit $ac_status); } >/dev/null; then
8811  if test -s conftest.err; then
8812    ac_cpp_err=$ac_c_preproc_warn_flag
8813    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8814  else
8815    ac_cpp_err=
8816  fi
8817else
8818  ac_cpp_err=yes
8819fi
8820if test -z "$ac_cpp_err"; then
8821  ac_header_preproc=yes
8822else
8823  echo "$as_me: failed program was:" >&5
8824sed 's/^/| /' conftest.$ac_ext >&5
8825
8826  ac_header_preproc=no
8827fi
8828rm -f conftest.err conftest.$ac_ext
8829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8830echo "${ECHO_T}$ac_header_preproc" >&6
8831
8832# So?  What about this header?
8833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8834  yes:no: )
8835    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8837    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8839    ac_header_preproc=yes
8840    ;;
8841  no:yes:* )
8842    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8844    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8845echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8846    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8848    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8849echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8852    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8854    (
8855      cat <<\_ASBOX
8856## ---------------------------------------------- ##
8857## Report this to orxonox-dev at mail.datacore.ch ##
8858## ---------------------------------------------- ##
8859_ASBOX
8860    ) |
8861      sed "s/^/$as_me: WARNING:     /" >&2
8862    ;;
8863esac
8864echo "$as_me:$LINENO: checking for $ac_header" >&5
8865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8866if eval "test \"\${$as_ac_Header+set}\" = set"; then
8867  echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869  eval "$as_ac_Header=\$ac_header_preproc"
8870fi
8871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8873
8874fi
8875if test `eval echo '${'$as_ac_Header'}'` = yes; then
8876  cat >>confdefs.h <<_ACEOF
8877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8878_ACEOF
8879
8880else
8881  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8882echo "$as_me: error: cannot find vorbisfile header." >&2;}
8883   { (exit 1); exit 1; }; }
8884fi
8885
8886done
8887
8888# checking for vorbisfile-lib
8889  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8890echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8891if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8892  echo $ECHO_N "(cached) $ECHO_C" >&6
8893else
8894  ac_check_lib_save_LIBS=$LIBS
8895LIBS="-lvorbisfile  $LIBS"
8896cat >conftest.$ac_ext <<_ACEOF
8897/* confdefs.h.  */
8898_ACEOF
8899cat confdefs.h >>conftest.$ac_ext
8900cat >>conftest.$ac_ext <<_ACEOF
8901/* end confdefs.h.  */
8902
8903
8904int
8905main ()
8906{
8907main ();
8908  ;
8909  return 0;
8910}
8911_ACEOF
8912rm -f conftest.$ac_objext conftest$ac_exeext
8913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914  (eval $ac_link) 2>conftest.er1
8915  ac_status=$?
8916  grep -v '^ *+' conftest.er1 >conftest.err
8917  rm -f conftest.er1
8918  cat conftest.err >&5
8919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920  (exit $ac_status); } &&
8921         { ac_try='test -z "$ac_c_werror_flag"
8922                         || test ! -s conftest.err'
8923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924  (eval $ac_try) 2>&5
8925  ac_status=$?
8926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927  (exit $ac_status); }; } &&
8928         { ac_try='test -s conftest$ac_exeext'
8929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930  (eval $ac_try) 2>&5
8931  ac_status=$?
8932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933  (exit $ac_status); }; }; then
8934  ac_cv_lib_vorbisfile_main=yes
8935else
8936  echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939ac_cv_lib_vorbisfile_main=no
8940fi
8941rm -f conftest.err conftest.$ac_objext \
8942      conftest$ac_exeext conftest.$ac_ext
8943LIBS=$ac_check_lib_save_LIBS
8944fi
8945echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8946echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8947if test $ac_cv_lib_vorbisfile_main = yes; then
8948  FOUND_vorbisfile=yes
8949fi
8950
8951     if test x$FOUND_vorbisfile = xyes ; then
8952       LIBS="$LIBS -lvorbisfile"
8953     else
8954        echo "------------------"
8955        echo "vorbisfile library not found."
8956        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8957        echo "------------------"
8958        exit -1
8959     fi
8960
8961#-----#
8962# GTK #
8963#-----#
8964if test x$def_gtk = xyes; then
8965        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
8966        echo "$as_me:$LINENO: checking for gtk2.0" >&5
8967echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
8968        if `$PKG_CONFIG --exists gtk+-2.0`; then
8969                echo "yes"
8970                have_gtk2=yes
8971                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8972                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8973
8974cat >>confdefs.h <<_ACEOF
8975#define HAVE_GTK2 1
8976_ACEOF
8977
8978                if test $DEBUG -ge 3; then
8979                 echo "cflags: $GTK2_CFLAGS"
8980                 echo "libs: $GTK2_LIBS"
8981                fi
8982        else
8983                echo "no"
8984        fi
8985
8986fi
8987
8988
8989
8990
8991if test x$have_gtk2 = xyes; then
8992  HAVE_GTK2_TRUE=
8993  HAVE_GTK2_FALSE='#'
8994else
8995  HAVE_GTK2_TRUE='#'
8996  HAVE_GTK2_FALSE=
8997fi
8998
8999
9000#---------#
9001# libcURL #
9002#---------#
9003if test x$def_curl = xyes; then
9004
9005
9006for ac_header in curl/curl.h
9007do
9008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9009if eval "test \"\${$as_ac_Header+set}\" = set"; then
9010  echo "$as_me:$LINENO: checking for $ac_header" >&5
9011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9012if eval "test \"\${$as_ac_Header+set}\" = set"; then
9013  echo $ECHO_N "(cached) $ECHO_C" >&6
9014fi
9015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9017else
9018  # Is the header compilable?
9019echo "$as_me:$LINENO: checking $ac_header usability" >&5
9020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9021cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h.  */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h.  */
9027$ac_includes_default
9028#include <$ac_header>
9029_ACEOF
9030rm -f conftest.$ac_objext
9031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032  (eval $ac_compile) 2>conftest.er1
9033  ac_status=$?
9034  grep -v '^ *+' conftest.er1 >conftest.err
9035  rm -f conftest.er1
9036  cat conftest.err >&5
9037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038  (exit $ac_status); } &&
9039         { ac_try='test -z "$ac_c_werror_flag"
9040                         || test ! -s conftest.err'
9041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042  (eval $ac_try) 2>&5
9043  ac_status=$?
9044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045  (exit $ac_status); }; } &&
9046         { ac_try='test -s conftest.$ac_objext'
9047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048  (eval $ac_try) 2>&5
9049  ac_status=$?
9050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051  (exit $ac_status); }; }; then
9052  ac_header_compiler=yes
9053else
9054  echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057ac_header_compiler=no
9058fi
9059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9061echo "${ECHO_T}$ac_header_compiler" >&6
9062
9063# Is the header present?
9064echo "$as_me:$LINENO: checking $ac_header presence" >&5
9065echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9066cat >conftest.$ac_ext <<_ACEOF
9067/* confdefs.h.  */
9068_ACEOF
9069cat confdefs.h >>conftest.$ac_ext
9070cat >>conftest.$ac_ext <<_ACEOF
9071/* end confdefs.h.  */
9072#include <$ac_header>
9073_ACEOF
9074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9075  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9076  ac_status=$?
9077  grep -v '^ *+' conftest.er1 >conftest.err
9078  rm -f conftest.er1
9079  cat conftest.err >&5
9080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); } >/dev/null; then
9082  if test -s conftest.err; then
9083    ac_cpp_err=$ac_c_preproc_warn_flag
9084    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9085  else
9086    ac_cpp_err=
9087  fi
9088else
9089  ac_cpp_err=yes
9090fi
9091if test -z "$ac_cpp_err"; then
9092  ac_header_preproc=yes
9093else
9094  echo "$as_me: failed program was:" >&5
9095sed 's/^/| /' conftest.$ac_ext >&5
9096
9097  ac_header_preproc=no
9098fi
9099rm -f conftest.err conftest.$ac_ext
9100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9101echo "${ECHO_T}$ac_header_preproc" >&6
9102
9103# So?  What about this header?
9104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9105  yes:no: )
9106    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9108    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9110    ac_header_preproc=yes
9111    ;;
9112  no:yes:* )
9113    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9115    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9116echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9117    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9119    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9120echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9121    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9123    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9125    (
9126      cat <<\_ASBOX
9127## ---------------------------------------------- ##
9128## Report this to orxonox-dev at mail.datacore.ch ##
9129## ---------------------------------------------- ##
9130_ASBOX
9131    ) |
9132      sed "s/^/$as_me: WARNING:     /" >&2
9133    ;;
9134esac
9135echo "$as_me:$LINENO: checking for $ac_header" >&5
9136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138  echo $ECHO_N "(cached) $ECHO_C" >&6
9139else
9140  eval "$as_ac_Header=\$ac_header_preproc"
9141fi
9142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9144
9145fi
9146if test `eval echo '${'$as_ac_Header'}'` = yes; then
9147  cat >>confdefs.h <<_ACEOF
9148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9149_ACEOF
9150 curlHeader="yes"
9151else
9152  curlHeader="no"
9153fi
9154
9155done
9156
9157 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9158echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9159if test "${ac_cv_lib_curl_main+set}" = set; then
9160  echo $ECHO_N "(cached) $ECHO_C" >&6
9161else
9162  ac_check_lib_save_LIBS=$LIBS
9163LIBS="-lcurl  $LIBS"
9164cat >conftest.$ac_ext <<_ACEOF
9165/* confdefs.h.  */
9166_ACEOF
9167cat confdefs.h >>conftest.$ac_ext
9168cat >>conftest.$ac_ext <<_ACEOF
9169/* end confdefs.h.  */
9170
9171
9172int
9173main ()
9174{
9175main ();
9176  ;
9177  return 0;
9178}
9179_ACEOF
9180rm -f conftest.$ac_objext conftest$ac_exeext
9181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182  (eval $ac_link) 2>conftest.er1
9183  ac_status=$?
9184  grep -v '^ *+' conftest.er1 >conftest.err
9185  rm -f conftest.er1
9186  cat conftest.err >&5
9187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188  (exit $ac_status); } &&
9189         { ac_try='test -z "$ac_c_werror_flag"
9190                         || test ! -s conftest.err'
9191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192  (eval $ac_try) 2>&5
9193  ac_status=$?
9194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195  (exit $ac_status); }; } &&
9196         { ac_try='test -s conftest$ac_exeext'
9197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198  (eval $ac_try) 2>&5
9199  ac_status=$?
9200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201  (exit $ac_status); }; }; then
9202  ac_cv_lib_curl_main=yes
9203else
9204  echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
9207ac_cv_lib_curl_main=no
9208fi
9209rm -f conftest.err conftest.$ac_objext \
9210      conftest$ac_exeext conftest.$ac_ext
9211LIBS=$ac_check_lib_save_LIBS
9212fi
9213echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9214echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9215if test $ac_cv_lib_curl_main = yes; then
9216  FOUND_curl=yes
9217fi
9218
9219 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
9220  have_curl=yes
9221  CURL_LIBS=`curl-config --libs`
9222  CURLCFLAGS=`curl-config --cflags`
9223
9224cat >>confdefs.h <<_ACEOF
9225#define HAVE_CURL 1
9226_ACEOF
9227
9228 else
9229  have_curl=no
9230 fi
9231
9232fi
9233
9234
9235
9236
9237if test x$have_curl = xyes; then
9238  HAVE_CURL_TRUE=
9239  HAVE_CURL_FALSE='#'
9240else
9241  HAVE_CURL_TRUE='#'
9242  HAVE_CURL_FALSE=
9243fi
9244
9245
9246#--------#
9247# efence #
9248#--------#
9249if test x$def_efence = xyes ; then
9250  echo "$as_me:$LINENO: checking for main in -lefence" >&5
9251echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9252if test "${ac_cv_lib_efence_main+set}" = set; then
9253  echo $ECHO_N "(cached) $ECHO_C" >&6
9254else
9255  ac_check_lib_save_LIBS=$LIBS
9256LIBS="-lefence  $LIBS"
9257cat >conftest.$ac_ext <<_ACEOF
9258/* confdefs.h.  */
9259_ACEOF
9260cat confdefs.h >>conftest.$ac_ext
9261cat >>conftest.$ac_ext <<_ACEOF
9262/* end confdefs.h.  */
9263
9264
9265int
9266main ()
9267{
9268main ();
9269  ;
9270  return 0;
9271}
9272_ACEOF
9273rm -f conftest.$ac_objext conftest$ac_exeext
9274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275  (eval $ac_link) 2>conftest.er1
9276  ac_status=$?
9277  grep -v '^ *+' conftest.er1 >conftest.err
9278  rm -f conftest.er1
9279  cat conftest.err >&5
9280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281  (exit $ac_status); } &&
9282         { ac_try='test -z "$ac_c_werror_flag"
9283                         || test ! -s conftest.err'
9284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285  (eval $ac_try) 2>&5
9286  ac_status=$?
9287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288  (exit $ac_status); }; } &&
9289         { ac_try='test -s conftest$ac_exeext'
9290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291  (eval $ac_try) 2>&5
9292  ac_status=$?
9293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294  (exit $ac_status); }; }; then
9295  ac_cv_lib_efence_main=yes
9296else
9297  echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300ac_cv_lib_efence_main=no
9301fi
9302rm -f conftest.err conftest.$ac_objext \
9303      conftest$ac_exeext conftest.$ac_ext
9304LIBS=$ac_check_lib_save_LIBS
9305fi
9306echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9307echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9308if test $ac_cv_lib_efence_main = yes; then
9309  FOUND_efence=yes
9310fi
9311
9312   if test x$FOUND_efence = xyes ; then
9313      LIBS="$LIBS -lefence"
9314   fi
9315
9316fi
9317
9318# FIXME: Replace `main' with a function in `-lm':
9319
9320echo "$as_me:$LINENO: checking for main in -lm" >&5
9321echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9322if test "${ac_cv_lib_m_main+set}" = set; then
9323  echo $ECHO_N "(cached) $ECHO_C" >&6
9324else
9325  ac_check_lib_save_LIBS=$LIBS
9326LIBS="-lm  $LIBS"
9327cat >conftest.$ac_ext <<_ACEOF
9328/* confdefs.h.  */
9329_ACEOF
9330cat confdefs.h >>conftest.$ac_ext
9331cat >>conftest.$ac_ext <<_ACEOF
9332/* end confdefs.h.  */
9333
9334
9335int
9336main ()
9337{
9338main ();
9339  ;
9340  return 0;
9341}
9342_ACEOF
9343rm -f conftest.$ac_objext conftest$ac_exeext
9344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345  (eval $ac_link) 2>conftest.er1
9346  ac_status=$?
9347  grep -v '^ *+' conftest.er1 >conftest.err
9348  rm -f conftest.er1
9349  cat conftest.err >&5
9350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351  (exit $ac_status); } &&
9352         { ac_try='test -z "$ac_c_werror_flag"
9353                         || test ! -s conftest.err'
9354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355  (eval $ac_try) 2>&5
9356  ac_status=$?
9357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358  (exit $ac_status); }; } &&
9359         { ac_try='test -s conftest$ac_exeext'
9360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361  (eval $ac_try) 2>&5
9362  ac_status=$?
9363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364  (exit $ac_status); }; }; then
9365  ac_cv_lib_m_main=yes
9366else
9367  echo "$as_me: failed program was:" >&5
9368sed 's/^/| /' conftest.$ac_ext >&5
9369
9370ac_cv_lib_m_main=no
9371fi
9372rm -f conftest.err conftest.$ac_objext \
9373      conftest$ac_exeext conftest.$ac_ext
9374LIBS=$ac_check_lib_save_LIBS
9375fi
9376echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9377echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9378if test $ac_cv_lib_m_main = yes; then
9379  cat >>confdefs.h <<_ACEOF
9380#define HAVE_LIBM 1
9381_ACEOF
9382
9383  LIBS="-lm $LIBS"
9384
9385fi
9386
9387
9388
9389# Checks for header files.
9390echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9391echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9392if test "${ac_cv_header_stdc+set}" = set; then
9393  echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395  cat >conftest.$ac_ext <<_ACEOF
9396/* confdefs.h.  */
9397_ACEOF
9398cat confdefs.h >>conftest.$ac_ext
9399cat >>conftest.$ac_ext <<_ACEOF
9400/* end confdefs.h.  */
9401#include <stdlib.h>
9402#include <stdarg.h>
9403#include <string.h>
9404#include <float.h>
9405
9406int
9407main ()
9408{
9409
9410  ;
9411  return 0;
9412}
9413_ACEOF
9414rm -f conftest.$ac_objext
9415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416  (eval $ac_compile) 2>conftest.er1
9417  ac_status=$?
9418  grep -v '^ *+' conftest.er1 >conftest.err
9419  rm -f conftest.er1
9420  cat conftest.err >&5
9421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422  (exit $ac_status); } &&
9423         { ac_try='test -z "$ac_c_werror_flag"
9424                         || test ! -s conftest.err'
9425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426  (eval $ac_try) 2>&5
9427  ac_status=$?
9428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429  (exit $ac_status); }; } &&
9430         { ac_try='test -s conftest.$ac_objext'
9431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432  (eval $ac_try) 2>&5
9433  ac_status=$?
9434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435  (exit $ac_status); }; }; then
9436  ac_cv_header_stdc=yes
9437else
9438  echo "$as_me: failed program was:" >&5
9439sed 's/^/| /' conftest.$ac_ext >&5
9440
9441ac_cv_header_stdc=no
9442fi
9443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9444
9445if test $ac_cv_header_stdc = yes; then
9446  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9447  cat >conftest.$ac_ext <<_ACEOF
9448/* confdefs.h.  */
9449_ACEOF
9450cat confdefs.h >>conftest.$ac_ext
9451cat >>conftest.$ac_ext <<_ACEOF
9452/* end confdefs.h.  */
9453#include <string.h>
9454
9455_ACEOF
9456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9457  $EGREP "memchr" >/dev/null 2>&1; then
9458  :
9459else
9460  ac_cv_header_stdc=no
9461fi
9462rm -f conftest*
9463
9464fi
9465
9466if test $ac_cv_header_stdc = yes; then
9467  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9468  cat >conftest.$ac_ext <<_ACEOF
9469/* confdefs.h.  */
9470_ACEOF
9471cat confdefs.h >>conftest.$ac_ext
9472cat >>conftest.$ac_ext <<_ACEOF
9473/* end confdefs.h.  */
9474#include <stdlib.h>
9475
9476_ACEOF
9477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9478  $EGREP "free" >/dev/null 2>&1; then
9479  :
9480else
9481  ac_cv_header_stdc=no
9482fi
9483rm -f conftest*
9484
9485fi
9486
9487if test $ac_cv_header_stdc = yes; then
9488  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9489  if test "$cross_compiling" = yes; then
9490  :
9491else
9492  cat >conftest.$ac_ext <<_ACEOF
9493/* confdefs.h.  */
9494_ACEOF
9495cat confdefs.h >>conftest.$ac_ext
9496cat >>conftest.$ac_ext <<_ACEOF
9497/* end confdefs.h.  */
9498#include <ctype.h>
9499#if ((' ' & 0x0FF) == 0x020)
9500# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9501# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9502#else
9503# define ISLOWER(c) \
9504                   (('a' <= (c) && (c) <= 'i') \
9505                     || ('j' <= (c) && (c) <= 'r') \
9506                     || ('s' <= (c) && (c) <= 'z'))
9507# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9508#endif
9509
9510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9511int
9512main ()
9513{
9514  int i;
9515  for (i = 0; i < 256; i++)
9516    if (XOR (islower (i), ISLOWER (i))
9517        || toupper (i) != TOUPPER (i))
9518      exit(2);
9519  exit (0);
9520}
9521_ACEOF
9522rm -f conftest$ac_exeext
9523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524  (eval $ac_link) 2>&5
9525  ac_status=$?
9526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529  (eval $ac_try) 2>&5
9530  ac_status=$?
9531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532  (exit $ac_status); }; }; then
9533  :
9534else
9535  echo "$as_me: program exited with status $ac_status" >&5
9536echo "$as_me: failed program was:" >&5
9537sed 's/^/| /' conftest.$ac_ext >&5
9538
9539( exit $ac_status )
9540ac_cv_header_stdc=no
9541fi
9542rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9543fi
9544fi
9545fi
9546echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9547echo "${ECHO_T}$ac_cv_header_stdc" >&6
9548if test $ac_cv_header_stdc = yes; then
9549
9550cat >>confdefs.h <<\_ACEOF
9551#define STDC_HEADERS 1
9552_ACEOF
9553
9554fi
9555
9556
9557
9558for ac_header in stdlib.h string.h
9559do
9560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562  echo "$as_me:$LINENO: checking for $ac_header" >&5
9563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9564if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565  echo $ECHO_N "(cached) $ECHO_C" >&6
9566fi
9567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9569else
9570  # Is the header compilable?
9571echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9573cat >conftest.$ac_ext <<_ACEOF
9574/* confdefs.h.  */
9575_ACEOF
9576cat confdefs.h >>conftest.$ac_ext
9577cat >>conftest.$ac_ext <<_ACEOF
9578/* end confdefs.h.  */
9579$ac_includes_default
9580#include <$ac_header>
9581_ACEOF
9582rm -f conftest.$ac_objext
9583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584  (eval $ac_compile) 2>conftest.er1
9585  ac_status=$?
9586  grep -v '^ *+' conftest.er1 >conftest.err
9587  rm -f conftest.er1
9588  cat conftest.err >&5
9589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590  (exit $ac_status); } &&
9591         { ac_try='test -z "$ac_c_werror_flag"
9592                         || test ! -s conftest.err'
9593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594  (eval $ac_try) 2>&5
9595  ac_status=$?
9596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597  (exit $ac_status); }; } &&
9598         { ac_try='test -s conftest.$ac_objext'
9599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600  (eval $ac_try) 2>&5
9601  ac_status=$?
9602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603  (exit $ac_status); }; }; then
9604  ac_header_compiler=yes
9605else
9606  echo "$as_me: failed program was:" >&5
9607sed 's/^/| /' conftest.$ac_ext >&5
9608
9609ac_header_compiler=no
9610fi
9611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9613echo "${ECHO_T}$ac_header_compiler" >&6
9614
9615# Is the header present?
9616echo "$as_me:$LINENO: checking $ac_header presence" >&5
9617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9618cat >conftest.$ac_ext <<_ACEOF
9619/* confdefs.h.  */
9620_ACEOF
9621cat confdefs.h >>conftest.$ac_ext
9622cat >>conftest.$ac_ext <<_ACEOF
9623/* end confdefs.h.  */
9624#include <$ac_header>
9625_ACEOF
9626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9627  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9628  ac_status=$?
9629  grep -v '^ *+' conftest.er1 >conftest.err
9630  rm -f conftest.er1
9631  cat conftest.err >&5
9632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633  (exit $ac_status); } >/dev/null; then
9634  if test -s conftest.err; then
9635    ac_cpp_err=$ac_c_preproc_warn_flag
9636    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9637  else
9638    ac_cpp_err=
9639  fi
9640else
9641  ac_cpp_err=yes
9642fi
9643if test -z "$ac_cpp_err"; then
9644  ac_header_preproc=yes
9645else
9646  echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649  ac_header_preproc=no
9650fi
9651rm -f conftest.err conftest.$ac_ext
9652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9653echo "${ECHO_T}$ac_header_preproc" >&6
9654
9655# So?  What about this header?
9656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9657  yes:no: )
9658    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9660    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9662    ac_header_preproc=yes
9663    ;;
9664  no:yes:* )
9665    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9667    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9668echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9669    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9671    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9672echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9673    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9675    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9677    (
9678      cat <<\_ASBOX
9679## ---------------------------------------------- ##
9680## Report this to orxonox-dev at mail.datacore.ch ##
9681## ---------------------------------------------- ##
9682_ASBOX
9683    ) |
9684      sed "s/^/$as_me: WARNING:     /" >&2
9685    ;;
9686esac
9687echo "$as_me:$LINENO: checking for $ac_header" >&5
9688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9689if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690  echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692  eval "$as_ac_Header=\$ac_header_preproc"
9693fi
9694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9696
9697fi
9698if test `eval echo '${'$as_ac_Header'}'` = yes; then
9699  cat >>confdefs.h <<_ACEOF
9700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9701_ACEOF
9702
9703fi
9704
9705done
9706
9707
9708# Checks for typedefs, structures, and compiler characteristics.
9709echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9710echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9711if test "${ac_cv_header_stdbool_h+set}" = set; then
9712  echo $ECHO_N "(cached) $ECHO_C" >&6
9713else
9714  cat >conftest.$ac_ext <<_ACEOF
9715/* confdefs.h.  */
9716_ACEOF
9717cat confdefs.h >>conftest.$ac_ext
9718cat >>conftest.$ac_ext <<_ACEOF
9719/* end confdefs.h.  */
9720
9721#include <stdbool.h>
9722#ifndef bool
9723# error bool is not defined
9724#endif
9725#ifndef false
9726# error false is not defined
9727#endif
9728#if false
9729# error false is not 0
9730#endif
9731#ifndef true
9732# error true is not defined
9733#endif
9734#if true != 1
9735# error true is not 1
9736#endif
9737#ifndef __bool_true_false_are_defined
9738# error __bool_true_false_are_defined is not defined
9739#endif
9740
9741        struct s { _Bool s: 1; _Bool t; } s;
9742
9743        char a[true == 1 ? 1 : -1];
9744        char b[false == 0 ? 1 : -1];
9745        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9746        char d[(bool) -0.5 == true ? 1 : -1];
9747        bool e = &s;
9748        char f[(_Bool) -0.0 == false ? 1 : -1];
9749        char g[true];
9750        char h[sizeof (_Bool)];
9751        char i[sizeof s.t];
9752
9753int
9754main ()
9755{
9756 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9757  ;
9758  return 0;
9759}
9760_ACEOF
9761rm -f conftest.$ac_objext
9762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9763  (eval $ac_compile) 2>conftest.er1
9764  ac_status=$?
9765  grep -v '^ *+' conftest.er1 >conftest.err
9766  rm -f conftest.er1
9767  cat conftest.err >&5
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); } &&
9770         { ac_try='test -z "$ac_c_werror_flag"
9771                         || test ! -s conftest.err'
9772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773  (eval $ac_try) 2>&5
9774  ac_status=$?
9775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776  (exit $ac_status); }; } &&
9777         { ac_try='test -s conftest.$ac_objext'
9778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779  (eval $ac_try) 2>&5
9780  ac_status=$?
9781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); }; }; then
9783  ac_cv_header_stdbool_h=yes
9784else
9785  echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
9788ac_cv_header_stdbool_h=no
9789fi
9790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9791fi
9792echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9793echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9794echo "$as_me:$LINENO: checking for _Bool" >&5
9795echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9796if test "${ac_cv_type__Bool+set}" = set; then
9797  echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799  cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h.  */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h.  */
9805$ac_includes_default
9806int
9807main ()
9808{
9809if ((_Bool *) 0)
9810  return 0;
9811if (sizeof (_Bool))
9812  return 0;
9813  ;
9814  return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext
9818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819  (eval $ac_compile) 2>conftest.er1
9820  ac_status=$?
9821  grep -v '^ *+' conftest.er1 >conftest.err
9822  rm -f conftest.er1
9823  cat conftest.err >&5
9824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825  (exit $ac_status); } &&
9826         { ac_try='test -z "$ac_c_werror_flag"
9827                         || test ! -s conftest.err'
9828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829  (eval $ac_try) 2>&5
9830  ac_status=$?
9831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832  (exit $ac_status); }; } &&
9833         { ac_try='test -s conftest.$ac_objext'
9834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835  (eval $ac_try) 2>&5
9836  ac_status=$?
9837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838  (exit $ac_status); }; }; then
9839  ac_cv_type__Bool=yes
9840else
9841  echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
9844ac_cv_type__Bool=no
9845fi
9846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847fi
9848echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9849echo "${ECHO_T}$ac_cv_type__Bool" >&6
9850if test $ac_cv_type__Bool = yes; then
9851
9852cat >>confdefs.h <<_ACEOF
9853#define HAVE__BOOL 1
9854_ACEOF
9855
9856
9857fi
9858
9859if test $ac_cv_header_stdbool_h = yes; then
9860
9861cat >>confdefs.h <<\_ACEOF
9862#define HAVE_STDBOOL_H 1
9863_ACEOF
9864
9865fi
9866
9867
9868# Checks for library functions.
9869
9870for ac_header in stdlib.h
9871do
9872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9873if eval "test \"\${$as_ac_Header+set}\" = set"; then
9874  echo "$as_me:$LINENO: checking for $ac_header" >&5
9875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9876if eval "test \"\${$as_ac_Header+set}\" = set"; then
9877  echo $ECHO_N "(cached) $ECHO_C" >&6
9878fi
9879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9881else
9882  # Is the header compilable?
9883echo "$as_me:$LINENO: checking $ac_header usability" >&5
9884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9885cat >conftest.$ac_ext <<_ACEOF
9886/* confdefs.h.  */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h.  */
9891$ac_includes_default
9892#include <$ac_header>
9893_ACEOF
9894rm -f conftest.$ac_objext
9895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896  (eval $ac_compile) 2>conftest.er1
9897  ac_status=$?
9898  grep -v '^ *+' conftest.er1 >conftest.err
9899  rm -f conftest.er1
9900  cat conftest.err >&5
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); } &&
9903         { ac_try='test -z "$ac_c_werror_flag"
9904                         || test ! -s conftest.err'
9905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906  (eval $ac_try) 2>&5
9907  ac_status=$?
9908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909  (exit $ac_status); }; } &&
9910         { ac_try='test -s conftest.$ac_objext'
9911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912  (eval $ac_try) 2>&5
9913  ac_status=$?
9914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915  (exit $ac_status); }; }; then
9916  ac_header_compiler=yes
9917else
9918  echo "$as_me: failed program was:" >&5
9919sed 's/^/| /' conftest.$ac_ext >&5
9920
9921ac_header_compiler=no
9922fi
9923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9925echo "${ECHO_T}$ac_header_compiler" >&6
9926
9927# Is the header present?
9928echo "$as_me:$LINENO: checking $ac_header presence" >&5
9929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9930cat >conftest.$ac_ext <<_ACEOF
9931/* confdefs.h.  */
9932_ACEOF
9933cat confdefs.h >>conftest.$ac_ext
9934cat >>conftest.$ac_ext <<_ACEOF
9935/* end confdefs.h.  */
9936#include <$ac_header>
9937_ACEOF
9938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9939  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9940  ac_status=$?
9941  grep -v '^ *+' conftest.er1 >conftest.err
9942  rm -f conftest.er1
9943  cat conftest.err >&5
9944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945  (exit $ac_status); } >/dev/null; then
9946  if test -s conftest.err; then
9947    ac_cpp_err=$ac_c_preproc_warn_flag
9948    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9949  else
9950    ac_cpp_err=
9951  fi
9952else
9953  ac_cpp_err=yes
9954fi
9955if test -z "$ac_cpp_err"; then
9956  ac_header_preproc=yes
9957else
9958  echo "$as_me: failed program was:" >&5
9959sed 's/^/| /' conftest.$ac_ext >&5
9960
9961  ac_header_preproc=no
9962fi
9963rm -f conftest.err conftest.$ac_ext
9964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9965echo "${ECHO_T}$ac_header_preproc" >&6
9966
9967# So?  What about this header?
9968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9969  yes:no: )
9970    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9972    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9974    ac_header_preproc=yes
9975    ;;
9976  no:yes:* )
9977    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9979    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9980echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9981    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9983    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9984echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9987    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9989    (
9990      cat <<\_ASBOX
9991## ---------------------------------------------- ##
9992## Report this to orxonox-dev at mail.datacore.ch ##
9993## ---------------------------------------------- ##
9994_ASBOX
9995    ) |
9996      sed "s/^/$as_me: WARNING:     /" >&2
9997    ;;
9998esac
9999echo "$as_me:$LINENO: checking for $ac_header" >&5
10000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10001if eval "test \"\${$as_ac_Header+set}\" = set"; then
10002  echo $ECHO_N "(cached) $ECHO_C" >&6
10003else
10004  eval "$as_ac_Header=\$ac_header_preproc"
10005fi
10006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10008
10009fi
10010if test `eval echo '${'$as_ac_Header'}'` = yes; then
10011  cat >>confdefs.h <<_ACEOF
10012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10013_ACEOF
10014
10015fi
10016
10017done
10018
10019echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10020echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
10021if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10022  echo $ECHO_N "(cached) $ECHO_C" >&6
10023else
10024  if test "$cross_compiling" = yes; then
10025  ac_cv_func_malloc_0_nonnull=no
10026else
10027  cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h.  */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h.  */
10033#if STDC_HEADERS || HAVE_STDLIB_H
10034# include <stdlib.h>
10035#else
10036char *malloc ();
10037#endif
10038
10039int
10040main ()
10041{
10042exit (malloc (0) ? 0 : 1);
10043  ;
10044  return 0;
10045}
10046_ACEOF
10047rm -f conftest$ac_exeext
10048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049  (eval $ac_link) 2>&5
10050  ac_status=$?
10051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054  (eval $ac_try) 2>&5
10055  ac_status=$?
10056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057  (exit $ac_status); }; }; then
10058  ac_cv_func_malloc_0_nonnull=yes
10059else
10060  echo "$as_me: program exited with status $ac_status" >&5
10061echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
10064( exit $ac_status )
10065ac_cv_func_malloc_0_nonnull=no
10066fi
10067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10068fi
10069fi
10070echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10071echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10072if test $ac_cv_func_malloc_0_nonnull = yes; then
10073
10074cat >>confdefs.h <<\_ACEOF
10075#define HAVE_MALLOC 1
10076_ACEOF
10077
10078else
10079  cat >>confdefs.h <<\_ACEOF
10080#define HAVE_MALLOC 0
10081_ACEOF
10082
10083   case $LIBOBJS in
10084    "malloc.$ac_objext"   | \
10085  *" malloc.$ac_objext"   | \
10086    "malloc.$ac_objext "* | \
10087  *" malloc.$ac_objext "* ) ;;
10088  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
10089esac
10090
10091
10092cat >>confdefs.h <<\_ACEOF
10093#define malloc rpl_malloc
10094_ACEOF
10095
10096fi
10097
10098
10099
10100
10101
10102for ac_func in bzero sqrt
10103do
10104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105echo "$as_me:$LINENO: checking for $ac_func" >&5
10106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10107if eval "test \"\${$as_ac_var+set}\" = set"; then
10108  echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110  cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h.  */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
10115/* end confdefs.h.  */
10116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10118#define $ac_func innocuous_$ac_func
10119
10120/* System header to define __stub macros and hopefully few prototypes,
10121    which can conflict with char $ac_func (); below.
10122    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123    <limits.h> exists even on freestanding compilers.  */
10124
10125#ifdef __STDC__
10126# include <limits.h>
10127#else
10128# include <assert.h>
10129#endif
10130
10131#undef $ac_func
10132
10133/* Override any gcc2 internal prototype to avoid an error.  */
10134#ifdef __cplusplus
10135extern "C"
10136{
10137#endif
10138/* We use char because int might match the return type of a gcc2
10139   builtin and then its argument prototype would still apply.  */
10140char $ac_func ();
10141/* The GNU C library defines this for functions which it implements
10142    to always fail with ENOSYS.  Some functions are actually named
10143    something starting with __ and the normal name is an alias.  */
10144#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10145choke me
10146#else
10147char (*f) () = $ac_func;
10148#endif
10149#ifdef __cplusplus
10150}
10151#endif
10152
10153int
10154main ()
10155{
10156return f != $ac_func;
10157  ;
10158  return 0;
10159}
10160_ACEOF
10161rm -f conftest.$ac_objext conftest$ac_exeext
10162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163  (eval $ac_link) 2>conftest.er1
10164  ac_status=$?
10165  grep -v '^ *+' conftest.er1 >conftest.err
10166  rm -f conftest.er1
10167  cat conftest.err >&5
10168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169  (exit $ac_status); } &&
10170         { ac_try='test -z "$ac_c_werror_flag"
10171                         || test ! -s conftest.err'
10172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173  (eval $ac_try) 2>&5
10174  ac_status=$?
10175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176  (exit $ac_status); }; } &&
10177         { ac_try='test -s conftest$ac_exeext'
10178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179  (eval $ac_try) 2>&5
10180  ac_status=$?
10181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182  (exit $ac_status); }; }; then
10183  eval "$as_ac_var=yes"
10184else
10185  echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188eval "$as_ac_var=no"
10189fi
10190rm -f conftest.err conftest.$ac_objext \
10191      conftest$ac_exeext conftest.$ac_ext
10192fi
10193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10194echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10195if test `eval echo '${'$as_ac_var'}'` = yes; then
10196  cat >>confdefs.h <<_ACEOF
10197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10198_ACEOF
10199
10200fi
10201done
10202
10203
10204######################
10205## OUTPUT CONFIGURE ##
10206######################
10207                                                                                                                                                                                              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/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
10208
10209
10210cat >confcache <<\_ACEOF
10211# This file is a shell script that caches the results of configure
10212# tests run on this system so they can be shared between configure
10213# scripts and configure runs, see configure's option --config-cache.
10214# It is not useful on other systems.  If it contains results you don't
10215# want to keep, you may remove or edit it.
10216#
10217# config.status only pays attention to the cache file if you give it
10218# the --recheck option to rerun configure.
10219#
10220# `ac_cv_env_foo' variables (set or unset) will be overridden when
10221# loading this file, other *unset* `ac_cv_foo' will be assigned the
10222# following values.
10223
10224_ACEOF
10225
10226# The following way of writing the cache mishandles newlines in values,
10227# but we know of no workaround that is simple, portable, and efficient.
10228# So, don't put newlines in cache variables' values.
10229# Ultrix sh set writes to stderr and can't be redirected directly,
10230# and sets the high bit in the cache file unless we assign to the vars.
10231{
10232  (set) 2>&1 |
10233    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10234    *ac_space=\ *)
10235      # `set' does not quote correctly, so add quotes (double-quote
10236      # substitution turns \\\\ into \\, and sed turns \\ into \).
10237      sed -n \
10238        "s/'/'\\\\''/g;
10239          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10240      ;;
10241    *)
10242      # `set' quotes correctly as required by POSIX, so do not add quotes.
10243      sed -n \
10244        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10245      ;;
10246    esac;
10247} |
10248  sed '
10249     t clear
10250     : clear
10251     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10252     t end
10253     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10254     : end' >>confcache
10255if diff $cache_file confcache >/dev/null 2>&1; then :; else
10256  if test -w $cache_file; then
10257    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10258    cat confcache >$cache_file
10259  else
10260    echo "not updating unwritable cache $cache_file"
10261  fi
10262fi
10263rm -f confcache
10264
10265test "x$prefix" = xNONE && prefix=$ac_default_prefix
10266# Let make expand exec_prefix.
10267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10268
10269# VPATH may cause trouble with some makes, so we remove $(srcdir),
10270# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10271# trailing colons and then remove the whole line if VPATH becomes empty
10272# (actually we leave an empty line to preserve line numbers).
10273if test "x$srcdir" = x.; then
10274  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10275s/:*\$(srcdir):*/:/;
10276s/:*\${srcdir}:*/:/;
10277s/:*@srcdir@:*/:/;
10278s/^\([^=]*=[     ]*\):*/\1/;
10279s/:*$//;
10280s/^[^=]*=[       ]*$//;
10281}'
10282fi
10283
10284DEFS=-DHAVE_CONFIG_H
10285
10286ac_libobjs=
10287ac_ltlibobjs=
10288for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10289  # 1. Remove the extension, and $U if already installed.
10290  ac_i=`echo "$ac_i" |
10291         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10292  # 2. Add them.
10293  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10294  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10295done
10296LIBOBJS=$ac_libobjs
10297
10298LTLIBOBJS=$ac_ltlibobjs
10299
10300
10301if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10302  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10303Usually this means the macro was only invoked conditionally." >&5
10304echo "$as_me: error: conditional \"AMDEP\" was never defined.
10305Usually this means the macro was only invoked conditionally." >&2;}
10306   { (exit 1); exit 1; }; }
10307fi
10308if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10309  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10310Usually this means the macro was only invoked conditionally." >&5
10311echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10312Usually this means the macro was only invoked conditionally." >&2;}
10313   { (exit 1); exit 1; }; }
10314fi
10315if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10316  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10317Usually this means the macro was only invoked conditionally." >&5
10318echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10319Usually this means the macro was only invoked conditionally." >&2;}
10320   { (exit 1); exit 1; }; }
10321fi
10322if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10323  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10324Usually this means the macro was only invoked conditionally." >&5
10325echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10326Usually this means the macro was only invoked conditionally." >&2;}
10327   { (exit 1); exit 1; }; }
10328fi
10329if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10330  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10331Usually this means the macro was only invoked conditionally." >&5
10332echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10333Usually this means the macro was only invoked conditionally." >&2;}
10334   { (exit 1); exit 1; }; }
10335fi
10336if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10337  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10338Usually this means the macro was only invoked conditionally." >&5
10339echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10340Usually this means the macro was only invoked conditionally." >&2;}
10341   { (exit 1); exit 1; }; }
10342fi
10343if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10344  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
10345Usually this means the macro was only invoked conditionally." >&5
10346echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
10347Usually this means the macro was only invoked conditionally." >&2;}
10348   { (exit 1); exit 1; }; }
10349fi
10350if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10351  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
10352Usually this means the macro was only invoked conditionally." >&5
10353echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
10354Usually this means the macro was only invoked conditionally." >&2;}
10355   { (exit 1); exit 1; }; }
10356fi
10357
10358: ${CONFIG_STATUS=./config.status}
10359ac_clean_files_save=$ac_clean_files
10360ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10361{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10362echo "$as_me: creating $CONFIG_STATUS" >&6;}
10363cat >$CONFIG_STATUS <<_ACEOF
10364#! $SHELL
10365# Generated by $as_me.
10366# Run this file to recreate the current configuration.
10367# Compiler output produced by configure, useful for debugging
10368# configure, is in config.log if it exists.
10369
10370debug=false
10371ac_cs_recheck=false
10372ac_cs_silent=false
10373SHELL=\${CONFIG_SHELL-$SHELL}
10374_ACEOF
10375
10376cat >>$CONFIG_STATUS <<\_ACEOF
10377## --------------------- ##
10378## M4sh Initialization.  ##
10379## --------------------- ##
10380
10381# Be Bourne compatible
10382if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10383  emulate sh
10384  NULLCMD=:
10385  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10386  # is contrary to our usage.  Disable this feature.
10387  alias -g '${1+"$@"}'='"$@"'
10388elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10389  set -o posix
10390fi
10391DUALCASE=1; export DUALCASE # for MKS sh
10392
10393# Support unset when possible.
10394if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10395  as_unset=unset
10396else
10397  as_unset=false
10398fi
10399
10400
10401# Work around bugs in pre-3.0 UWIN ksh.
10402$as_unset ENV MAIL MAILPATH
10403PS1='$ '
10404PS2='> '
10405PS4='+ '
10406
10407# NLS nuisances.
10408for as_var in \
10409  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10410  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10411  LC_TELEPHONE LC_TIME
10412do
10413  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10414    eval $as_var=C; export $as_var
10415  else
10416    $as_unset $as_var
10417  fi
10418done
10419
10420# Required to use basename.
10421if expr a : '\(a\)' >/dev/null 2>&1; then
10422  as_expr=expr
10423else
10424  as_expr=false
10425fi
10426
10427if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10428  as_basename=basename
10429else
10430  as_basename=false
10431fi
10432
10433
10434# Name of the executable.
10435as_me=`$as_basename "$0" ||
10436$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10437         X"$0" : 'X\(//\)$' \| \
10438         X"$0" : 'X\(/\)$' \| \
10439         .     : '\(.\)' 2>/dev/null ||
10440echo X/"$0" |
10441    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10442          /^X\/\(\/\/\)$/{ s//\1/; q; }
10443          /^X\/\(\/\).*/{ s//\1/; q; }
10444          s/.*/./; q'`
10445
10446
10447# PATH needs CR, and LINENO needs CR and PATH.
10448# Avoid depending upon Character Ranges.
10449as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10450as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10451as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10452as_cr_digits='0123456789'
10453as_cr_alnum=$as_cr_Letters$as_cr_digits
10454
10455# The user is always right.
10456if test "${PATH_SEPARATOR+set}" != set; then
10457  echo "#! /bin/sh" >conf$$.sh
10458  echo  "exit 0"   >>conf$$.sh
10459  chmod +x conf$$.sh
10460  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10461    PATH_SEPARATOR=';'
10462  else
10463    PATH_SEPARATOR=:
10464  fi
10465  rm -f conf$$.sh
10466fi
10467
10468
10469  as_lineno_1=$LINENO
10470  as_lineno_2=$LINENO
10471  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10472  test "x$as_lineno_1" != "x$as_lineno_2" &&
10473  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10474  # Find who we are.  Look in the path if we contain no path at all
10475  # relative or not.
10476  case $0 in
10477    *[\\/]* ) as_myself=$0 ;;
10478    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479for as_dir in $PATH
10480do
10481  IFS=$as_save_IFS
10482  test -z "$as_dir" && as_dir=.
10483  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10484done
10485
10486       ;;
10487  esac
10488  # We did not find ourselves, most probably we were run as `sh COMMAND'
10489  # in which case we are not to be found in the path.
10490  if test "x$as_myself" = x; then
10491    as_myself=$0
10492  fi
10493  if test ! -f "$as_myself"; then
10494    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10495echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10496   { (exit 1); exit 1; }; }
10497  fi
10498  case $CONFIG_SHELL in
10499  '')
10500    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10502do
10503  IFS=$as_save_IFS
10504  test -z "$as_dir" && as_dir=.
10505  for as_base in sh bash ksh sh5; do
10506         case $as_dir in
10507         /*)
10508           if ("$as_dir/$as_base" -c '
10509  as_lineno_1=$LINENO
10510  as_lineno_2=$LINENO
10511  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10512  test "x$as_lineno_1" != "x$as_lineno_2" &&
10513  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10514             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10515             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10516             CONFIG_SHELL=$as_dir/$as_base
10517             export CONFIG_SHELL
10518             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10519           fi;;
10520         esac
10521       done
10522done
10523;;
10524  esac
10525
10526  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10527  # uniformly replaced by the line number.  The first 'sed' inserts a
10528  # line-number line before each line; the second 'sed' does the real
10529  # work.  The second script uses 'N' to pair each line-number line
10530  # with the numbered line, and appends trailing '-' during
10531  # substitution so that $LINENO is not a special case at line end.
10532  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10533  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10534  sed '=' <$as_myself |
10535    sed '
10536      N
10537      s,$,-,
10538      : loop
10539      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10540      t loop
10541      s,-$,,
10542      s,^['$as_cr_digits']*\n,,
10543    ' >$as_me.lineno &&
10544  chmod +x $as_me.lineno ||
10545    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10546echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10547   { (exit 1); exit 1; }; }
10548
10549  # Don't try to exec as it changes $[0], causing all sort of problems
10550  # (the dirname of $[0] is not the place where we might find the
10551  # original and so on.  Autoconf is especially sensible to this).
10552  . ./$as_me.lineno
10553  # Exit status is that of the last command.
10554  exit
10555}
10556
10557
10558case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10559  *c*,-n*) ECHO_N= ECHO_C='
10560' ECHO_T='      ' ;;
10561  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10562  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10563esac
10564
10565if expr a : '\(a\)' >/dev/null 2>&1; then
10566  as_expr=expr
10567else
10568  as_expr=false
10569fi
10570
10571rm -f conf$$ conf$$.exe conf$$.file
10572echo >conf$$.file
10573if ln -s conf$$.file conf$$ 2>/dev/null; then
10574  # We could just check for DJGPP; but this test a) works b) is more generic
10575  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10576  if test -f conf$$.exe; then
10577    # Don't use ln at all; we don't have any links
10578    as_ln_s='cp -p'
10579  else
10580    as_ln_s='ln -s'
10581  fi
10582elif ln conf$$.file conf$$ 2>/dev/null; then
10583  as_ln_s=ln
10584else
10585  as_ln_s='cp -p'
10586fi
10587rm -f conf$$ conf$$.exe conf$$.file
10588
10589if mkdir -p . 2>/dev/null; then
10590  as_mkdir_p=:
10591else
10592  test -d ./-p && rmdir ./-p
10593  as_mkdir_p=false
10594fi
10595
10596as_executable_p="test -f"
10597
10598# Sed expression to map a string onto a valid CPP name.
10599as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10600
10601# Sed expression to map a string onto a valid variable name.
10602as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10603
10604
10605# IFS
10606# We need space, tab and new line, in precisely that order.
10607as_nl='
10608'
10609IFS="   $as_nl"
10610
10611# CDPATH.
10612$as_unset CDPATH
10613
10614exec 6>&1
10615
10616# Open the log real soon, to keep \$[0] and so on meaningful, and to
10617# report actual input values of CONFIG_FILES etc. instead of their
10618# values after options handling.  Logging --version etc. is OK.
10619exec 5>>config.log
10620{
10621  echo
10622  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10623## Running $as_me. ##
10624_ASBOX
10625} >&5
10626cat >&5 <<_CSEOF
10627
10628This file was extended by orxonox $as_me 0.3.1_alpha, which was
10629generated by GNU Autoconf 2.59.  Invocation command line was
10630
10631  CONFIG_FILES    = $CONFIG_FILES
10632  CONFIG_HEADERS  = $CONFIG_HEADERS
10633  CONFIG_LINKS    = $CONFIG_LINKS
10634  CONFIG_COMMANDS = $CONFIG_COMMANDS
10635  $ $0 $@
10636
10637_CSEOF
10638echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10639echo >&5
10640_ACEOF
10641
10642# Files that config.status was made for.
10643if test -n "$ac_config_files"; then
10644  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10645fi
10646
10647if test -n "$ac_config_headers"; then
10648  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10649fi
10650
10651if test -n "$ac_config_links"; then
10652  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10653fi
10654
10655if test -n "$ac_config_commands"; then
10656  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10657fi
10658
10659cat >>$CONFIG_STATUS <<\_ACEOF
10660
10661ac_cs_usage="\
10662\`$as_me' instantiates files from templates according to the
10663current configuration.
10664
10665Usage: $0 [OPTIONS] [FILE]...
10666
10667  -h, --help       print this help, then exit
10668  -V, --version    print version number, then exit
10669  -q, --quiet      do not print progress messages
10670  -d, --debug      don't remove temporary files
10671      --recheck    update $as_me by reconfiguring in the same conditions
10672  --file=FILE[:TEMPLATE]
10673                   instantiate the configuration file FILE
10674  --header=FILE[:TEMPLATE]
10675                   instantiate the configuration header FILE
10676
10677Configuration files:
10678$config_files
10679
10680Configuration headers:
10681$config_headers
10682
10683Configuration commands:
10684$config_commands
10685
10686Report bugs to <bug-autoconf@gnu.org>."
10687_ACEOF
10688
10689cat >>$CONFIG_STATUS <<_ACEOF
10690ac_cs_version="\\
10691orxonox config.status 0.3.1_alpha
10692configured by $0, generated by GNU Autoconf 2.59,
10693  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10694
10695Copyright (C) 2003 Free Software Foundation, Inc.
10696This config.status script is free software; the Free Software Foundation
10697gives unlimited permission to copy, distribute and modify it."
10698srcdir=$srcdir
10699INSTALL="$INSTALL"
10700_ACEOF
10701
10702cat >>$CONFIG_STATUS <<\_ACEOF
10703# If no file are specified by the user, then we need to provide default
10704# value.  By we need to know if files were specified by the user.
10705ac_need_defaults=:
10706while test $# != 0
10707do
10708  case $1 in
10709  --*=*)
10710    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10711    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10712    ac_shift=:
10713    ;;
10714  -*)
10715    ac_option=$1
10716    ac_optarg=$2
10717    ac_shift=shift
10718    ;;
10719  *) # This is not an option, so the user has probably given explicit
10720     # arguments.
10721     ac_option=$1
10722     ac_need_defaults=false;;
10723  esac
10724
10725  case $ac_option in
10726  # Handling of the options.
10727_ACEOF
10728cat >>$CONFIG_STATUS <<\_ACEOF
10729  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10730    ac_cs_recheck=: ;;
10731  --version | --vers* | -V )
10732    echo "$ac_cs_version"; exit 0 ;;
10733  --he | --h)
10734    # Conflict between --help and --header
10735    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10736Try \`$0 --help' for more information." >&5
10737echo "$as_me: error: ambiguous option: $1
10738Try \`$0 --help' for more information." >&2;}
10739   { (exit 1); exit 1; }; };;
10740  --help | --hel | -h )
10741    echo "$ac_cs_usage"; exit 0 ;;
10742  --debug | --d* | -d )
10743    debug=: ;;
10744  --file | --fil | --fi | --f )
10745    $ac_shift
10746    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10747    ac_need_defaults=false;;
10748  --header | --heade | --head | --hea )
10749    $ac_shift
10750    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10751    ac_need_defaults=false;;
10752  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10753  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10754    ac_cs_silent=: ;;
10755
10756  # This is an error.
10757  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10758Try \`$0 --help' for more information." >&5
10759echo "$as_me: error: unrecognized option: $1
10760Try \`$0 --help' for more information." >&2;}
10761   { (exit 1); exit 1; }; } ;;
10762
10763  *) ac_config_targets="$ac_config_targets $1" ;;
10764
10765  esac
10766  shift
10767done
10768
10769ac_configure_extra_args=
10770
10771if $ac_cs_silent; then
10772  exec 6>/dev/null
10773  ac_configure_extra_args="$ac_configure_extra_args --silent"
10774fi
10775
10776_ACEOF
10777cat >>$CONFIG_STATUS <<_ACEOF
10778if \$ac_cs_recheck; then
10779  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10780  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10781fi
10782
10783_ACEOF
10784
10785cat >>$CONFIG_STATUS <<_ACEOF
10786#
10787# INIT-COMMANDS section.
10788#
10789
10790AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10791
10792_ACEOF
10793
10794
10795
10796cat >>$CONFIG_STATUS <<\_ACEOF
10797for ac_config_target in $ac_config_targets
10798do
10799  case "$ac_config_target" in
10800  # Handling of arguments.
10801  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10802  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10803  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10804  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
10805  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
10806  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
10807  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
10808  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
10809  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
10810  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
10811  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
10812  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
10813  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
10814  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
10815  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10816  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
10817  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
10818  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
10819  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
10820  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10821  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10822  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10823echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10824   { (exit 1); exit 1; }; };;
10825  esac
10826done
10827
10828# If the user did not use the arguments to specify the items to instantiate,
10829# then the envvar interface is used.  Set only those that are not.
10830# We use the long form for the default assignment because of an extremely
10831# bizarre bug on SunOS 4.1.3.
10832if $ac_need_defaults; then
10833  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10834  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10835  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10836fi
10837
10838# Have a temporary directory for convenience.  Make it in the build tree
10839# simply because there is no reason to put it here, and in addition,
10840# creating and moving files from /tmp can sometimes cause problems.
10841# Create a temporary directory, and hook for its removal unless debugging.
10842$debug ||
10843{
10844  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10845  trap '{ (exit 1); exit 1; }' 1 2 13 15
10846}
10847
10848# Create a (secure) tmp directory for tmp files.
10849
10850{
10851  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10852  test -n "$tmp" && test -d "$tmp"
10853}  ||
10854{
10855  tmp=./confstat$$-$RANDOM
10856  (umask 077 && mkdir $tmp)
10857} ||
10858{
10859   echo "$me: cannot create a temporary directory in ." >&2
10860   { (exit 1); exit 1; }
10861}
10862
10863_ACEOF
10864
10865cat >>$CONFIG_STATUS <<_ACEOF
10866
10867#
10868# CONFIG_FILES section.
10869#
10870
10871# No need to generate the scripts if there are no CONFIG_FILES.
10872# This happens for instance when ./config.status config.h
10873if test -n "\$CONFIG_FILES"; then
10874  # Protect against being on the right side of a sed subst in config.status.
10875  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10876   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10877s,@SHELL@,$SHELL,;t t
10878s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10879s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10880s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10881s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10882s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10883s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10884s,@exec_prefix@,$exec_prefix,;t t
10885s,@prefix@,$prefix,;t t
10886s,@program_transform_name@,$program_transform_name,;t t
10887s,@bindir@,$bindir,;t t
10888s,@sbindir@,$sbindir,;t t
10889s,@libexecdir@,$libexecdir,;t t
10890s,@datadir@,$datadir,;t t
10891s,@sysconfdir@,$sysconfdir,;t t
10892s,@sharedstatedir@,$sharedstatedir,;t t
10893s,@localstatedir@,$localstatedir,;t t
10894s,@libdir@,$libdir,;t t
10895s,@includedir@,$includedir,;t t
10896s,@oldincludedir@,$oldincludedir,;t t
10897s,@infodir@,$infodir,;t t
10898s,@mandir@,$mandir,;t t
10899s,@build_alias@,$build_alias,;t t
10900s,@host_alias@,$host_alias,;t t
10901s,@target_alias@,$target_alias,;t t
10902s,@DEFS@,$DEFS,;t t
10903s,@ECHO_C@,$ECHO_C,;t t
10904s,@ECHO_N@,$ECHO_N,;t t
10905s,@ECHO_T@,$ECHO_T,;t t
10906s,@LIBS@,$LIBS,;t t
10907s,@build@,$build,;t t
10908s,@build_cpu@,$build_cpu,;t t
10909s,@build_vendor@,$build_vendor,;t t
10910s,@build_os@,$build_os,;t t
10911s,@host@,$host,;t t
10912s,@host_cpu@,$host_cpu,;t t
10913s,@host_vendor@,$host_vendor,;t t
10914s,@host_os@,$host_os,;t t
10915s,@target@,$target,;t t
10916s,@target_cpu@,$target_cpu,;t t
10917s,@target_vendor@,$target_vendor,;t t
10918s,@target_os@,$target_os,;t t
10919s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10920s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10921s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10922s,@CYGPATH_W@,$CYGPATH_W,;t t
10923s,@PACKAGE@,$PACKAGE,;t t
10924s,@VERSION@,$VERSION,;t t
10925s,@ACLOCAL@,$ACLOCAL,;t t
10926s,@AUTOCONF@,$AUTOCONF,;t t
10927s,@AUTOMAKE@,$AUTOMAKE,;t t
10928s,@AUTOHEADER@,$AUTOHEADER,;t t
10929s,@MAKEINFO@,$MAKEINFO,;t t
10930s,@AMTAR@,$AMTAR,;t t
10931s,@install_sh@,$install_sh,;t t
10932s,@STRIP@,$STRIP,;t t
10933s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10934s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10935s,@mkdir_p@,$mkdir_p,;t t
10936s,@AWK@,$AWK,;t t
10937s,@SET_MAKE@,$SET_MAKE,;t t
10938s,@am__leading_dot@,$am__leading_dot,;t t
10939s,@CXX@,$CXX,;t t
10940s,@CXXFLAGS@,$CXXFLAGS,;t t
10941s,@LDFLAGS@,$LDFLAGS,;t t
10942s,@CPPFLAGS@,$CPPFLAGS,;t t
10943s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10944s,@EXEEXT@,$EXEEXT,;t t
10945s,@OBJEXT@,$OBJEXT,;t t
10946s,@DEPDIR@,$DEPDIR,;t t
10947s,@am__include@,$am__include,;t t
10948s,@am__quote@,$am__quote,;t t
10949s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10950s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10951s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10952s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10953s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10954s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10955s,@RANLIB@,$RANLIB,;t t
10956s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10957s,@CC@,$CC,;t t
10958s,@CFLAGS@,$CFLAGS,;t t
10959s,@ac_ct_CC@,$ac_ct_CC,;t t
10960s,@CCDEPMODE@,$CCDEPMODE,;t t
10961s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10962s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10963s,@CPP@,$CPP,;t t
10964s,@EGREP@,$EGREP,;t t
10965s,@DEBUG@,$DEBUG,;t t
10966s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10967s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
10968s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10969s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
10970s,@DOXYGEN@,$DOXYGEN,;t t
10971s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10972s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
10973s,@GPROF@,$GPROF,;t t
10974s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10975s,@MSBITFIELDS@,$MSBITFIELDS,;t t
10976s,@GTK2_LIBS@,$GTK2_LIBS,;t t
10977s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10978s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10979s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
10980s,@CURL_LIBS@,$CURL_LIBS,;t t
10981s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10982s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10983s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
10984s,@LIBOBJS@,$LIBOBJS,;t t
10985s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10986CEOF
10987
10988_ACEOF
10989
10990  cat >>$CONFIG_STATUS <<\_ACEOF
10991  # Split the substitutions into bite-sized pieces for seds with
10992  # small command number limits, like on Digital OSF/1 and HP-UX.
10993  ac_max_sed_lines=48
10994  ac_sed_frag=1 # Number of current file.
10995  ac_beg=1 # First line for current file.
10996  ac_end=$ac_max_sed_lines # Line after last line for current file.
10997  ac_more_lines=:
10998  ac_sed_cmds=
10999  while $ac_more_lines; do
11000    if test $ac_beg -gt 1; then
11001      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11002    else
11003      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11004    fi
11005    if test ! -s $tmp/subs.frag; then
11006      ac_more_lines=false
11007    else
11008      # The purpose of the label and of the branching condition is to
11009      # speed up the sed processing (if there are no `@' at all, there
11010      # is no need to browse any of the substitutions).
11011      # These are the two extra sed commands mentioned above.
11012      (echo ':t
11013  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11014      if test -z "$ac_sed_cmds"; then
11015        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11016      else
11017        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11018      fi
11019      ac_sed_frag=`expr $ac_sed_frag + 1`
11020      ac_beg=$ac_end
11021      ac_end=`expr $ac_end + $ac_max_sed_lines`
11022    fi
11023  done
11024  if test -z "$ac_sed_cmds"; then
11025    ac_sed_cmds=cat
11026  fi
11027fi # test -n "$CONFIG_FILES"
11028
11029_ACEOF
11030cat >>$CONFIG_STATUS <<\_ACEOF
11031for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11032  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11033  case $ac_file in
11034  - | *:- | *:-:* ) # input from stdin
11035        cat >$tmp/stdin
11036        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11037        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11038  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11039        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11040  * )   ac_file_in=$ac_file.in ;;
11041  esac
11042
11043  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11044  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11045$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11046         X"$ac_file" : 'X\(//\)[^/]' \| \
11047         X"$ac_file" : 'X\(//\)$' \| \
11048         X"$ac_file" : 'X\(/\)' \| \
11049         .     : '\(.\)' 2>/dev/null ||
11050echo X"$ac_file" |
11051    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11052          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11053          /^X\(\/\/\)$/{ s//\1/; q; }
11054          /^X\(\/\).*/{ s//\1/; q; }
11055          s/.*/./; q'`
11056  { if $as_mkdir_p; then
11057    mkdir -p "$ac_dir"
11058  else
11059    as_dir="$ac_dir"
11060    as_dirs=
11061    while test ! -d "$as_dir"; do
11062      as_dirs="$as_dir $as_dirs"
11063      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11064$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11065         X"$as_dir" : 'X\(//\)[^/]' \| \
11066         X"$as_dir" : 'X\(//\)$' \| \
11067         X"$as_dir" : 'X\(/\)' \| \
11068         .     : '\(.\)' 2>/dev/null ||
11069echo X"$as_dir" |
11070    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11071          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11072          /^X\(\/\/\)$/{ s//\1/; q; }
11073          /^X\(\/\).*/{ s//\1/; q; }
11074          s/.*/./; q'`
11075    done
11076    test ! -n "$as_dirs" || mkdir $as_dirs
11077  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11078echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11079   { (exit 1); exit 1; }; }; }
11080
11081  ac_builddir=.
11082
11083if test "$ac_dir" != .; then
11084  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11085  # A "../" for each directory in $ac_dir_suffix.
11086  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11087else
11088  ac_dir_suffix= ac_top_builddir=
11089fi
11090
11091case $srcdir in
11092  .)  # No --srcdir option.  We are building in place.
11093    ac_srcdir=.
11094    if test -z "$ac_top_builddir"; then
11095       ac_top_srcdir=.
11096    else
11097       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11098    fi ;;
11099  [\\/]* | ?:[\\/]* )  # Absolute path.
11100    ac_srcdir=$srcdir$ac_dir_suffix;
11101    ac_top_srcdir=$srcdir ;;
11102  *) # Relative path.
11103    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11104    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11105esac
11106
11107# Do not use `cd foo && pwd` to compute absolute paths, because
11108# the directories may not exist.
11109case `pwd` in
11110.) ac_abs_builddir="$ac_dir";;
11111*)
11112  case "$ac_dir" in
11113  .) ac_abs_builddir=`pwd`;;
11114  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11115  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11116  esac;;
11117esac
11118case $ac_abs_builddir in
11119.) ac_abs_top_builddir=${ac_top_builddir}.;;
11120*)
11121  case ${ac_top_builddir}. in
11122  .) ac_abs_top_builddir=$ac_abs_builddir;;
11123  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11124  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11125  esac;;
11126esac
11127case $ac_abs_builddir in
11128.) ac_abs_srcdir=$ac_srcdir;;
11129*)
11130  case $ac_srcdir in
11131  .) ac_abs_srcdir=$ac_abs_builddir;;
11132  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11133  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11134  esac;;
11135esac
11136case $ac_abs_builddir in
11137.) ac_abs_top_srcdir=$ac_top_srcdir;;
11138*)
11139  case $ac_top_srcdir in
11140  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11141  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11142  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11143  esac;;
11144esac
11145
11146
11147  case $INSTALL in
11148  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11149  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11150  esac
11151
11152  if test x"$ac_file" != x-; then
11153    { echo "$as_me:$LINENO: creating $ac_file" >&5
11154echo "$as_me: creating $ac_file" >&6;}
11155    rm -f "$ac_file"
11156  fi
11157  # Let's still pretend it is `configure' which instantiates (i.e., don't
11158  # use $as_me), people would be surprised to read:
11159  #    /* config.h.  Generated by config.status.  */
11160  if test x"$ac_file" = x-; then
11161    configure_input=
11162  else
11163    configure_input="$ac_file.  "
11164  fi
11165  configure_input=$configure_input"Generated from `echo $ac_file_in |
11166                                     sed 's,.*/,,'` by configure."
11167
11168  # First look for the input files in the build tree, otherwise in the
11169  # src tree.
11170  ac_file_inputs=`IFS=:
11171    for f in $ac_file_in; do
11172      case $f in
11173      -) echo $tmp/stdin ;;
11174      [\\/$]*)
11175         # Absolute (can't be DOS-style, as IFS=:)
11176         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11177echo "$as_me: error: cannot find input file: $f" >&2;}
11178   { (exit 1); exit 1; }; }
11179         echo "$f";;
11180      *) # Relative
11181         if test -f "$f"; then
11182           # Build tree
11183           echo "$f"
11184         elif test -f "$srcdir/$f"; then
11185           # Source tree
11186           echo "$srcdir/$f"
11187         else
11188           # /dev/null tree
11189           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11190echo "$as_me: error: cannot find input file: $f" >&2;}
11191   { (exit 1); exit 1; }; }
11192         fi;;
11193      esac
11194    done` || { (exit 1); exit 1; }
11195_ACEOF
11196cat >>$CONFIG_STATUS <<_ACEOF
11197  sed "$ac_vpsub
11198$extrasub
11199_ACEOF
11200cat >>$CONFIG_STATUS <<\_ACEOF
11201:t
11202/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11203s,@configure_input@,$configure_input,;t t
11204s,@srcdir@,$ac_srcdir,;t t
11205s,@abs_srcdir@,$ac_abs_srcdir,;t t
11206s,@top_srcdir@,$ac_top_srcdir,;t t
11207s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11208s,@builddir@,$ac_builddir,;t t
11209s,@abs_builddir@,$ac_abs_builddir,;t t
11210s,@top_builddir@,$ac_top_builddir,;t t
11211s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11212s,@INSTALL@,$ac_INSTALL,;t t
11213" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11214  rm -f $tmp/stdin
11215  if test x"$ac_file" != x-; then
11216    mv $tmp/out $ac_file
11217  else
11218    cat $tmp/out
11219    rm -f $tmp/out
11220  fi
11221
11222done
11223_ACEOF
11224cat >>$CONFIG_STATUS <<\_ACEOF
11225
11226#
11227# CONFIG_HEADER section.
11228#
11229
11230# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11231# NAME is the cpp macro being defined and VALUE is the value it is being given.
11232#
11233# ac_d sets the value in "#define NAME VALUE" lines.
11234ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11235ac_dB='[         ].*$,\1#\2'
11236ac_dC=' '
11237ac_dD=',;t'
11238# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11239ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11240ac_uB='$,\1#\2define\3'
11241ac_uC=' '
11242ac_uD=',;t'
11243
11244for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11245  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11246  case $ac_file in
11247  - | *:- | *:-:* ) # input from stdin
11248        cat >$tmp/stdin
11249        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11250        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11251  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11252        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11253  * )   ac_file_in=$ac_file.in ;;
11254  esac
11255
11256  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11257echo "$as_me: creating $ac_file" >&6;}
11258
11259  # First look for the input files in the build tree, otherwise in the
11260  # src tree.
11261  ac_file_inputs=`IFS=:
11262    for f in $ac_file_in; do
11263      case $f in
11264      -) echo $tmp/stdin ;;
11265      [\\/$]*)
11266         # Absolute (can't be DOS-style, as IFS=:)
11267         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11268echo "$as_me: error: cannot find input file: $f" >&2;}
11269   { (exit 1); exit 1; }; }
11270         # Do quote $f, to prevent DOS paths from being IFS'd.
11271         echo "$f";;
11272      *) # Relative
11273         if test -f "$f"; then
11274           # Build tree
11275           echo "$f"
11276         elif test -f "$srcdir/$f"; then
11277           # Source tree
11278           echo "$srcdir/$f"
11279         else
11280           # /dev/null tree
11281           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11282echo "$as_me: error: cannot find input file: $f" >&2;}
11283   { (exit 1); exit 1; }; }
11284         fi;;
11285      esac
11286    done` || { (exit 1); exit 1; }
11287  # Remove the trailing spaces.
11288  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11289
11290_ACEOF
11291
11292# Transform confdefs.h into two sed scripts, `conftest.defines' and
11293# `conftest.undefs', that substitutes the proper values into
11294# config.h.in to produce config.h.  The first handles `#define'
11295# templates, and the second `#undef' templates.
11296# And first: Protect against being on the right side of a sed subst in
11297# config.status.  Protect against being in an unquoted here document
11298# in config.status.
11299rm -f conftest.defines conftest.undefs
11300# Using a here document instead of a string reduces the quoting nightmare.
11301# Putting comments in sed scripts is not portable.
11302#
11303# `end' is used to avoid that the second main sed command (meant for
11304# 0-ary CPP macros) applies to n-ary macro definitions.
11305# See the Autoconf documentation for `clear'.
11306cat >confdef2sed.sed <<\_ACEOF
11307s/[\\&,]/\\&/g
11308s,[\\$`],\\&,g
11309t clear
11310: clear
11311s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11312t end
11313s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11314: end
11315_ACEOF
11316# If some macros were called several times there might be several times
11317# the same #defines, which is useless.  Nevertheless, we may not want to
11318# sort them, since we want the *last* AC-DEFINE to be honored.
11319uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11320sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11321rm -f confdef2sed.sed
11322
11323# This sed command replaces #undef with comments.  This is necessary, for
11324# example, in the case of _POSIX_SOURCE, which is predefined and required
11325# on some systems where configure will not decide to define it.
11326cat >>conftest.undefs <<\_ACEOF
11327s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11328_ACEOF
11329
11330# Break up conftest.defines because some shells have a limit on the size
11331# of here documents, and old seds have small limits too (100 cmds).
11332echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11333echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11334echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11335echo '  :' >>$CONFIG_STATUS
11336rm -f conftest.tail
11337while grep . conftest.defines >/dev/null
11338do
11339  # Write a limited-size here document to $tmp/defines.sed.
11340  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11341  # Speed up: don't consider the non `#define' lines.
11342  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11343  # Work around the forget-to-reset-the-flag bug.
11344  echo 't clr' >>$CONFIG_STATUS
11345  echo ': clr' >>$CONFIG_STATUS
11346  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11347  echo 'CEOF
11348  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11349  rm -f $tmp/in
11350  mv $tmp/out $tmp/in
11351' >>$CONFIG_STATUS
11352  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11353  rm -f conftest.defines
11354  mv conftest.tail conftest.defines
11355done
11356rm -f conftest.defines
11357echo '  fi # grep' >>$CONFIG_STATUS
11358echo >>$CONFIG_STATUS
11359
11360# Break up conftest.undefs because some shells have a limit on the size
11361# of here documents, and old seds have small limits too (100 cmds).
11362echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11363rm -f conftest.tail
11364while grep . conftest.undefs >/dev/null
11365do
11366  # Write a limited-size here document to $tmp/undefs.sed.
11367  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11368  # Speed up: don't consider the non `#undef'
11369  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11370  # Work around the forget-to-reset-the-flag bug.
11371  echo 't clr' >>$CONFIG_STATUS
11372  echo ': clr' >>$CONFIG_STATUS
11373  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11374  echo 'CEOF
11375  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11376  rm -f $tmp/in
11377  mv $tmp/out $tmp/in
11378' >>$CONFIG_STATUS
11379  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11380  rm -f conftest.undefs
11381  mv conftest.tail conftest.undefs
11382done
11383rm -f conftest.undefs
11384
11385cat >>$CONFIG_STATUS <<\_ACEOF
11386  # Let's still pretend it is `configure' which instantiates (i.e., don't
11387  # use $as_me), people would be surprised to read:
11388  #    /* config.h.  Generated by config.status.  */
11389  if test x"$ac_file" = x-; then
11390    echo "/* Generated by configure.  */" >$tmp/config.h
11391  else
11392    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11393  fi
11394  cat $tmp/in >>$tmp/config.h
11395  rm -f $tmp/in
11396  if test x"$ac_file" != x-; then
11397    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11398      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11399echo "$as_me: $ac_file is unchanged" >&6;}
11400    else
11401      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11403         X"$ac_file" : 'X\(//\)[^/]' \| \
11404         X"$ac_file" : 'X\(//\)$' \| \
11405         X"$ac_file" : 'X\(/\)' \| \
11406         .     : '\(.\)' 2>/dev/null ||
11407echo X"$ac_file" |
11408    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11409          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11410          /^X\(\/\/\)$/{ s//\1/; q; }
11411          /^X\(\/\).*/{ s//\1/; q; }
11412          s/.*/./; q'`
11413      { if $as_mkdir_p; then
11414    mkdir -p "$ac_dir"
11415  else
11416    as_dir="$ac_dir"
11417    as_dirs=
11418    while test ! -d "$as_dir"; do
11419      as_dirs="$as_dir $as_dirs"
11420      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11421$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11422         X"$as_dir" : 'X\(//\)[^/]' \| \
11423         X"$as_dir" : 'X\(//\)$' \| \
11424         X"$as_dir" : 'X\(/\)' \| \
11425         .     : '\(.\)' 2>/dev/null ||
11426echo X"$as_dir" |
11427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11428          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11429          /^X\(\/\/\)$/{ s//\1/; q; }
11430          /^X\(\/\).*/{ s//\1/; q; }
11431          s/.*/./; q'`
11432    done
11433    test ! -n "$as_dirs" || mkdir $as_dirs
11434  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11435echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11436   { (exit 1); exit 1; }; }; }
11437
11438      rm -f $ac_file
11439      mv $tmp/config.h $ac_file
11440    fi
11441  else
11442    cat $tmp/config.h
11443    rm -f $tmp/config.h
11444  fi
11445# Compute $ac_file's index in $config_headers.
11446_am_stamp_count=1
11447for _am_header in $config_headers :; do
11448  case $_am_header in
11449    $ac_file | $ac_file:* )
11450      break ;;
11451    * )
11452      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11453  esac
11454done
11455echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11456$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11457         X$ac_file : 'X\(//\)[^/]' \| \
11458         X$ac_file : 'X\(//\)$' \| \
11459         X$ac_file : 'X\(/\)' \| \
11460         .     : '\(.\)' 2>/dev/null ||
11461echo X$ac_file |
11462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11463          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11464          /^X\(\/\/\)$/{ s//\1/; q; }
11465          /^X\(\/\).*/{ s//\1/; q; }
11466          s/.*/./; q'`/stamp-h$_am_stamp_count
11467done
11468_ACEOF
11469cat >>$CONFIG_STATUS <<\_ACEOF
11470
11471#
11472# CONFIG_COMMANDS section.
11473#
11474for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11475  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11476  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11477  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11478$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11479         X"$ac_dest" : 'X\(//\)[^/]' \| \
11480         X"$ac_dest" : 'X\(//\)$' \| \
11481         X"$ac_dest" : 'X\(/\)' \| \
11482         .     : '\(.\)' 2>/dev/null ||
11483echo X"$ac_dest" |
11484    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11485          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11486          /^X\(\/\/\)$/{ s//\1/; q; }
11487          /^X\(\/\).*/{ s//\1/; q; }
11488          s/.*/./; q'`
11489  { if $as_mkdir_p; then
11490    mkdir -p "$ac_dir"
11491  else
11492    as_dir="$ac_dir"
11493    as_dirs=
11494    while test ! -d "$as_dir"; do
11495      as_dirs="$as_dir $as_dirs"
11496      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11497$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11498         X"$as_dir" : 'X\(//\)[^/]' \| \
11499         X"$as_dir" : 'X\(//\)$' \| \
11500         X"$as_dir" : 'X\(/\)' \| \
11501         .     : '\(.\)' 2>/dev/null ||
11502echo X"$as_dir" |
11503    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11504          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11505          /^X\(\/\/\)$/{ s//\1/; q; }
11506          /^X\(\/\).*/{ s//\1/; q; }
11507          s/.*/./; q'`
11508    done
11509    test ! -n "$as_dirs" || mkdir $as_dirs
11510  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11511echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11512   { (exit 1); exit 1; }; }; }
11513
11514  ac_builddir=.
11515
11516if test "$ac_dir" != .; then
11517  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11518  # A "../" for each directory in $ac_dir_suffix.
11519  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11520else
11521  ac_dir_suffix= ac_top_builddir=
11522fi
11523
11524case $srcdir in
11525  .)  # No --srcdir option.  We are building in place.
11526    ac_srcdir=.
11527    if test -z "$ac_top_builddir"; then
11528       ac_top_srcdir=.
11529    else
11530       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11531    fi ;;
11532  [\\/]* | ?:[\\/]* )  # Absolute path.
11533    ac_srcdir=$srcdir$ac_dir_suffix;
11534    ac_top_srcdir=$srcdir ;;
11535  *) # Relative path.
11536    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11537    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11538esac
11539
11540# Do not use `cd foo && pwd` to compute absolute paths, because
11541# the directories may not exist.
11542case `pwd` in
11543.) ac_abs_builddir="$ac_dir";;
11544*)
11545  case "$ac_dir" in
11546  .) ac_abs_builddir=`pwd`;;
11547  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11548  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11549  esac;;
11550esac
11551case $ac_abs_builddir in
11552.) ac_abs_top_builddir=${ac_top_builddir}.;;
11553*)
11554  case ${ac_top_builddir}. in
11555  .) ac_abs_top_builddir=$ac_abs_builddir;;
11556  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11557  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11558  esac;;
11559esac
11560case $ac_abs_builddir in
11561.) ac_abs_srcdir=$ac_srcdir;;
11562*)
11563  case $ac_srcdir in
11564  .) ac_abs_srcdir=$ac_abs_builddir;;
11565  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11566  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11567  esac;;
11568esac
11569case $ac_abs_builddir in
11570.) ac_abs_top_srcdir=$ac_top_srcdir;;
11571*)
11572  case $ac_top_srcdir in
11573  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11574  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11575  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11576  esac;;
11577esac
11578
11579
11580  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11581echo "$as_me: executing $ac_dest commands" >&6;}
11582  case $ac_dest in
11583    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11584  # Strip MF so we end up with the name of the file.
11585  mf=`echo "$mf" | sed -e 's/:.*$//'`
11586  # Check whether this is an Automake generated Makefile or not.
11587  # We used to match only the files named `Makefile.in', but
11588  # some people rename them; so instead we look at the file content.
11589  # Grep'ing the first line is not enough: some people post-process
11590  # each Makefile.in and add a new line on top of each file to say so.
11591  # So let's grep whole file.
11592  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11593    dirpart=`(dirname "$mf") 2>/dev/null ||
11594$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11595         X"$mf" : 'X\(//\)[^/]' \| \
11596         X"$mf" : 'X\(//\)$' \| \
11597         X"$mf" : 'X\(/\)' \| \
11598         .     : '\(.\)' 2>/dev/null ||
11599echo X"$mf" |
11600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11601          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11602          /^X\(\/\/\)$/{ s//\1/; q; }
11603          /^X\(\/\).*/{ s//\1/; q; }
11604          s/.*/./; q'`
11605  else
11606    continue
11607  fi
11608  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11609  # Extract the definition of DEP_FILES from the Makefile without
11610  # running `make'.
11611  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11612  test -z "$DEPDIR" && continue
11613  # When using ansi2knr, U may be empty or an underscore; expand it
11614  U=`sed -n 's/^U = //p' < "$mf"`
11615  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11616  # We invoke sed twice because it is the simplest approach to
11617  # changing $(DEPDIR) to its actual value in the expansion.
11618  for file in `sed -n '
11619    /^DEP_FILES = .*\\\\$/ {
11620      s/^DEP_FILES = //
11621      :loop
11622        s/\\\\$//
11623        p
11624        n
11625        /\\\\$/ b loop
11626      p
11627    }
11628    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11629       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11630    # Make sure the directory exists.
11631    test -f "$dirpart/$file" && continue
11632    fdir=`(dirname "$file") 2>/dev/null ||
11633$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11634         X"$file" : 'X\(//\)[^/]' \| \
11635         X"$file" : 'X\(//\)$' \| \
11636         X"$file" : 'X\(/\)' \| \
11637         .     : '\(.\)' 2>/dev/null ||
11638echo X"$file" |
11639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11640          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11641          /^X\(\/\/\)$/{ s//\1/; q; }
11642          /^X\(\/\).*/{ s//\1/; q; }
11643          s/.*/./; q'`
11644    { if $as_mkdir_p; then
11645    mkdir -p $dirpart/$fdir
11646  else
11647    as_dir=$dirpart/$fdir
11648    as_dirs=
11649    while test ! -d "$as_dir"; do
11650      as_dirs="$as_dir $as_dirs"
11651      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11652$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11653         X"$as_dir" : 'X\(//\)[^/]' \| \
11654         X"$as_dir" : 'X\(//\)$' \| \
11655         X"$as_dir" : 'X\(/\)' \| \
11656         .     : '\(.\)' 2>/dev/null ||
11657echo X"$as_dir" |
11658    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11659          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11660          /^X\(\/\/\)$/{ s//\1/; q; }
11661          /^X\(\/\).*/{ s//\1/; q; }
11662          s/.*/./; q'`
11663    done
11664    test ! -n "$as_dirs" || mkdir $as_dirs
11665  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11666echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11667   { (exit 1); exit 1; }; }; }
11668
11669    # echo "creating $dirpart/$file"
11670    echo '# dummy' > "$dirpart/$file"
11671  done
11672done
11673 ;;
11674  esac
11675done
11676_ACEOF
11677
11678cat >>$CONFIG_STATUS <<\_ACEOF
11679
11680{ (exit 0); exit 0; }
11681_ACEOF
11682chmod +x $CONFIG_STATUS
11683ac_clean_files=$ac_clean_files_save
11684
11685
11686# configure is writing to config.log, and then calls config.status.
11687# config.status does its own redirection, appending to config.log.
11688# Unfortunately, on DOS this fails, as config.log is still kept open
11689# by configure, so config.status won't be able to write to it; its
11690# output is simply discarded.  So we exec the FD to /dev/null,
11691# effectively closing config.log, so it can be properly (re)opened and
11692# appended to by config.status.  When coming back to configure, we
11693# need to make the FD available again.
11694if test "$no_create" != yes; then
11695  ac_cs_success=:
11696  ac_config_status_args=
11697  test "$silent" = yes &&
11698    ac_config_status_args="$ac_config_status_args --quiet"
11699  exec 5>/dev/null
11700  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11701  exec 5>>config.log
11702  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11703  # would make configure fail if this is the last instruction.
11704  $ac_cs_success || { (exit 1); exit 1; }
11705fi
11706
Note: See TracBrowser for help on using the repository browser.