Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5558

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

orxonox/trunk: changed to orxonox-0.3.2_alpha, because of many new features:
CollisionDetection
Valgrinded Code
Graphical Biscuits

  • Property svn:executable set to *
File size: 374.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.3.2_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.2_alpha'
273PACKAGE_STRING='orxonox 0.3.2_alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.3.2_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.2_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
870that logs differently on the many modules of orxonox.mode
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
882  --with-sub-projects     also builds the subProjects while make from srcdir
883  --with-tardis           sets all the necesary environment flags for
884                          linux-TARDIS boxes at the ETH Zurich
885
886Some influential environment variables:
887  CXX         C++ compiler command
888  CXXFLAGS    C++ compiler flags
889  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
890              nonstandard directory <lib dir>
891  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
892              headers in a nonstandard directory <include dir>
893  CC          C compiler command
894  CFLAGS      C compiler flags
895  CPP         C preprocessor
896
897Use these variables to override the choices made by `configure' or to help
898it to find libraries and programs with nonstandard names/locations.
899
900Report bugs to <orxonox-dev at mail.datacore.ch>.
901_ACEOF
902fi
903
904if test "$ac_init_help" = "recursive"; then
905  # If there are subdirs, report their specific --help.
906  ac_popdir=`pwd`
907  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908    test -d $ac_dir || continue
909    ac_builddir=.
910
911if test "$ac_dir" != .; then
912  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913  # A "../" for each directory in $ac_dir_suffix.
914  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915else
916  ac_dir_suffix= ac_top_builddir=
917fi
918
919case $srcdir in
920  .)  # No --srcdir option.  We are building in place.
921    ac_srcdir=.
922    if test -z "$ac_top_builddir"; then
923       ac_top_srcdir=.
924    else
925       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926    fi ;;
927  [\\/]* | ?:[\\/]* )  # Absolute path.
928    ac_srcdir=$srcdir$ac_dir_suffix;
929    ac_top_srcdir=$srcdir ;;
930  *) # Relative path.
931    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932    ac_top_srcdir=$ac_top_builddir$srcdir ;;
933esac
934
935# Do not use `cd foo && pwd` to compute absolute paths, because
936# the directories may not exist.
937case `pwd` in
938.) ac_abs_builddir="$ac_dir";;
939*)
940  case "$ac_dir" in
941  .) ac_abs_builddir=`pwd`;;
942  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944  esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_top_builddir=${ac_top_builddir}.;;
948*)
949  case ${ac_top_builddir}. in
950  .) ac_abs_top_builddir=$ac_abs_builddir;;
951  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953  esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_srcdir=$ac_srcdir;;
957*)
958  case $ac_srcdir in
959  .) ac_abs_srcdir=$ac_abs_builddir;;
960  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962  esac;;
963esac
964case $ac_abs_builddir in
965.) ac_abs_top_srcdir=$ac_top_srcdir;;
966*)
967  case $ac_top_srcdir in
968  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971  esac;;
972esac
973
974    cd $ac_dir
975    # Check for guested configure; otherwise get Cygnus style configure.
976    if test -f $ac_srcdir/configure.gnu; then
977      echo
978      $SHELL $ac_srcdir/configure.gnu  --help=recursive
979    elif test -f $ac_srcdir/configure; then
980      echo
981      $SHELL $ac_srcdir/configure  --help=recursive
982    elif test -f $ac_srcdir/configure.ac ||
983           test -f $ac_srcdir/configure.in; then
984      echo
985      $ac_configure --help
986    else
987      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988    fi
989    cd $ac_popdir
990  done
991fi
992
993test -n "$ac_init_help" && exit 0
994if $ac_init_version; then
995  cat <<\_ACEOF
996orxonox configure 0.3.2_alpha
997generated by GNU Autoconf 2.59
998
999Copyright (C) 2003 Free Software Foundation, Inc.
1000This configure script is free software; the Free Software Foundation
1001gives unlimited permission to copy, distribute and modify it.
1002_ACEOF
1003  exit 0
1004fi
1005exec 5>config.log
1006cat >&5 <<_ACEOF
1007This file contains any messages produced by compilers while
1008running configure, to aid debugging if configure makes a mistake.
1009
1010It was created by orxonox $as_me 0.3.2_alpha, which was
1011generated by GNU Autoconf 2.59.  Invocation command line was
1012
1013  $ $0 $@
1014
1015_ACEOF
1016{
1017cat <<_ASUNAME
1018## --------- ##
1019## Platform. ##
1020## --------- ##
1021
1022hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1030
1031/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1032/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1033/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1035/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1036/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1038
1039_ASUNAME
1040
1041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042for as_dir in $PATH
1043do
1044  IFS=$as_save_IFS
1045  test -z "$as_dir" && as_dir=.
1046  echo "PATH: $as_dir"
1047done
1048
1049} >&5
1050
1051cat >&5 <<_ACEOF
1052
1053
1054## ----------- ##
1055## Core tests. ##
1056## ----------- ##
1057
1058_ACEOF
1059
1060
1061# Keep a trace of the command line.
1062# Strip out --no-create and --no-recursion so they do not pile up.
1063# Strip out --silent because we don't want to record it for future runs.
1064# Also quote any args containing shell meta-characters.
1065# Make two passes to allow for proper duplicate-argument suppression.
1066ac_configure_args=
1067ac_configure_args0=
1068ac_configure_args1=
1069ac_sep=
1070ac_must_keep_next=false
1071for ac_pass in 1 2
1072do
1073  for ac_arg
1074  do
1075    case $ac_arg in
1076    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078    | -silent | --silent | --silen | --sile | --sil)
1079      continue ;;
1080    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082    esac
1083    case $ac_pass in
1084    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085    2)
1086      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087      if test $ac_must_keep_next = true; then
1088        ac_must_keep_next=false # Got value, back to normal.
1089      else
1090        case $ac_arg in
1091          *=* | --config-cache | -C | -disable-* | --disable-* \
1092          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094          | -with-* | --with-* | -without-* | --without-* | --x)
1095            case "$ac_configure_args0 " in
1096              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097            esac
1098            ;;
1099          -* ) ac_must_keep_next=true ;;
1100        esac
1101      fi
1102      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103      # Get rid of the leading space.
1104      ac_sep=" "
1105      ;;
1106    esac
1107  done
1108done
1109$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112# When interrupted or exit'd, cleanup temporary files, and complete
1113# config.log.  We remove comments because anyway the quotes in there
1114# would cause problems or look ugly.
1115# WARNING: Be sure not to use single quotes in there, as some shells,
1116# such as our DU 5.0 friend, will then `close' the trap.
1117trap 'exit_status=$?
1118  # Save into config.log some information that might help in debugging.
1119  {
1120    echo
1121
1122    cat <<\_ASBOX
1123## ---------------- ##
1124## Cache variables. ##
1125## ---------------- ##
1126_ASBOX
1127    echo
1128    # The following way of writing the cache mishandles newlines in values,
1129{
1130  (set) 2>&1 |
1131    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132    *ac_space=\ *)
1133      sed -n \
1134        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136      ;;
1137    *)
1138      sed -n \
1139        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140      ;;
1141    esac;
1142}
1143    echo
1144
1145    cat <<\_ASBOX
1146## ----------------- ##
1147## Output variables. ##
1148## ----------------- ##
1149_ASBOX
1150    echo
1151    for ac_var in $ac_subst_vars
1152    do
1153      eval ac_val=$`echo $ac_var`
1154      echo "$ac_var='"'"'$ac_val'"'"'"
1155    done | sort
1156    echo
1157
1158    if test -n "$ac_subst_files"; then
1159      cat <<\_ASBOX
1160## ------------- ##
1161## Output files. ##
1162## ------------- ##
1163_ASBOX
1164      echo
1165      for ac_var in $ac_subst_files
1166      do
1167        eval ac_val=$`echo $ac_var`
1168        echo "$ac_var='"'"'$ac_val'"'"'"
1169      done | sort
1170      echo
1171    fi
1172
1173    if test -s confdefs.h; then
1174      cat <<\_ASBOX
1175## ----------- ##
1176## confdefs.h. ##
1177## ----------- ##
1178_ASBOX
1179      echo
1180      sed "/^$/d" confdefs.h | sort
1181      echo
1182    fi
1183    test "$ac_signal" != 0 &&
1184      echo "$as_me: caught signal $ac_signal"
1185    echo "$as_me: exit $exit_status"
1186  } >&5
1187  rm -f core *.core &&
1188  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189    exit $exit_status
1190     ' 0
1191for ac_signal in 1 2 13 15; do
1192  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193done
1194ac_signal=0
1195
1196# confdefs.h avoids OS command line length limits that DEFS can exceed.
1197rm -rf conftest* confdefs.h
1198# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199echo >confdefs.h
1200
1201# Predefined preprocessor variables.
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_NAME "$PACKAGE_NAME"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_VERSION "$PACKAGE_VERSION"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_STRING "$PACKAGE_STRING"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225_ACEOF
1226
1227
1228# Let the site file select an alternate cache file if it wants to.
1229# Prefer explicitly selected file to automatically selected ones.
1230if test -z "$CONFIG_SITE"; then
1231  if test "x$prefix" != xNONE; then
1232    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233  else
1234    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235  fi
1236fi
1237for ac_site_file in $CONFIG_SITE; do
1238  if test -r "$ac_site_file"; then
1239    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240echo "$as_me: loading site script $ac_site_file" >&6;}
1241    sed 's/^/| /' "$ac_site_file" >&5
1242    . "$ac_site_file"
1243  fi
1244done
1245
1246if test -r "$cache_file"; then
1247  # Some versions of bash will fail to source /dev/null (special
1248  # files actually), so we avoid doing that.
1249  if test -f "$cache_file"; then
1250    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251echo "$as_me: loading cache $cache_file" >&6;}
1252    case $cache_file in
1253      [\\/]* | ?:[\\/]* ) . $cache_file;;
1254      *)                      . ./$cache_file;;
1255    esac
1256  fi
1257else
1258  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259echo "$as_me: creating cache $cache_file" >&6;}
1260  >$cache_file
1261fi
1262
1263# Check that the precious variables saved in the cache have kept the same
1264# value.
1265ac_cache_corrupted=false
1266for ac_var in `(set) 2>&1 |
1267               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269  eval ac_new_set=\$ac_env_${ac_var}_set
1270  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271  eval ac_new_val="\$ac_env_${ac_var}_value"
1272  case $ac_old_set,$ac_new_set in
1273    set,)
1274      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276      ac_cache_corrupted=: ;;
1277    ,set)
1278      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280      ac_cache_corrupted=: ;;
1281    ,);;
1282    *)
1283      if test "x$ac_old_val" != "x$ac_new_val"; then
1284        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287echo "$as_me:   former value:  $ac_old_val" >&2;}
1288        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289echo "$as_me:   current value: $ac_new_val" >&2;}
1290        ac_cache_corrupted=:
1291      fi;;
1292  esac
1293  # Pass precious variables to config.status.
1294  if test "$ac_new_set" = set; then
1295    case $ac_new_val in
1296    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298    *) ac_arg=$ac_var=$ac_new_val ;;
1299    esac
1300    case " $ac_configure_args " in
1301      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1302      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303    esac
1304  fi
1305done
1306if $ac_cache_corrupted; then
1307  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311   { (exit 1); exit 1; }; }
1312fi
1313
1314ac_ext=c
1315ac_cpp='$CPP $CPPFLAGS'
1316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1347## Detect the canonical host and target build environment.
1348ac_aux_dir=
1349for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1350  if test -f $ac_dir/install-sh; then
1351    ac_aux_dir=$ac_dir
1352    ac_install_sh="$ac_aux_dir/install-sh -c"
1353    break
1354  elif test -f $ac_dir/install.sh; then
1355    ac_aux_dir=$ac_dir
1356    ac_install_sh="$ac_aux_dir/install.sh -c"
1357    break
1358  elif test -f $ac_dir/shtool; then
1359    ac_aux_dir=$ac_dir
1360    ac_install_sh="$ac_aux_dir/shtool install -c"
1361    break
1362  fi
1363done
1364if test -z "$ac_aux_dir"; then
1365  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1366echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1367   { (exit 1); exit 1; }; }
1368fi
1369ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1372
1373# Make sure we can run config.sub.
1374$ac_config_sub sun4 >/dev/null 2>&1 ||
1375  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377   { (exit 1); exit 1; }; }
1378
1379echo "$as_me:$LINENO: checking build system type" >&5
1380echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381if test "${ac_cv_build+set}" = set; then
1382  echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384  ac_cv_build_alias=$build_alias
1385test -z "$ac_cv_build_alias" &&
1386  ac_cv_build_alias=`$ac_config_guess`
1387test -z "$ac_cv_build_alias" &&
1388  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390   { (exit 1); exit 1; }; }
1391ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394   { (exit 1); exit 1; }; }
1395
1396fi
1397echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398echo "${ECHO_T}$ac_cv_build" >&6
1399build=$ac_cv_build
1400build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405echo "$as_me:$LINENO: checking host system type" >&5
1406echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407if test "${ac_cv_host+set}" = set; then
1408  echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410  ac_cv_host_alias=$host_alias
1411test -z "$ac_cv_host_alias" &&
1412  ac_cv_host_alias=$ac_cv_build_alias
1413ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416   { (exit 1); exit 1; }; }
1417
1418fi
1419echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420echo "${ECHO_T}$ac_cv_host" >&6
1421host=$ac_cv_host
1422host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427echo "$as_me:$LINENO: checking target system type" >&5
1428echo $ECHO_N "checking target system type... $ECHO_C" >&6
1429if test "${ac_cv_target+set}" = set; then
1430  echo $ECHO_N "(cached) $ECHO_C" >&6
1431else
1432  ac_cv_target_alias=$target_alias
1433test "x$ac_cv_target_alias" = "x" &&
1434  ac_cv_target_alias=$ac_cv_host_alias
1435ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1436  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1437echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1438   { (exit 1); exit 1; }; }
1439
1440fi
1441echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1442echo "${ECHO_T}$ac_cv_target" >&6
1443target=$ac_cv_target
1444target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447
1448
1449# The aliases save the names the user supplied, while $host etc.
1450# will get canonicalized.
1451test -n "$target_alias" &&
1452  test "$program_prefix$program_suffix$program_transform_name" = \
1453    NONENONEs,x,x, &&
1454  program_prefix=${target_alias}-
1455
1456am__api_version="1.9"
1457# Find a good install program.  We prefer a C program (faster),
1458# so one script is as good as another.  But avoid the broken or
1459# incompatible versions:
1460# SysV /etc/install, /usr/sbin/install
1461# SunOS /usr/etc/install
1462# IRIX /sbin/install
1463# AIX /bin/install
1464# AmigaOS /C/install, which installs bootblocks on floppy discs
1465# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1466# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1467# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1468# OS/2's system install, which has a completely different semantic
1469# ./install, which can be erroneously created by make from ./install.sh.
1470echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1471echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1472if test -z "$INSTALL"; then
1473if test "${ac_cv_path_install+set}" = set; then
1474  echo $ECHO_N "(cached) $ECHO_C" >&6
1475else
1476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479  IFS=$as_save_IFS
1480  test -z "$as_dir" && as_dir=.
1481  # Account for people who put trailing slashes in PATH elements.
1482case $as_dir/ in
1483  ./ | .// | /cC/* | \
1484  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1485  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1486  /usr/ucb/* ) ;;
1487  *)
1488    # OSF1 and SCO ODT 3.0 have their own names for install.
1489    # Don't use installbsd from OSF since it installs stuff as root
1490    # by default.
1491    for ac_prog in ginstall scoinst install; do
1492      for ac_exec_ext in '' $ac_executable_extensions; do
1493        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1494          if test $ac_prog = install &&
1495            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1496            # AIX install.  It has an incompatible calling convention.
1497            :
1498          elif test $ac_prog = install &&
1499            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1500            # program-specific install script used by HP pwplus--don't use.
1501            :
1502          else
1503            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1504            break 3
1505          fi
1506        fi
1507      done
1508    done
1509    ;;
1510esac
1511done
1512
1513
1514fi
1515  if test "${ac_cv_path_install+set}" = set; then
1516    INSTALL=$ac_cv_path_install
1517  else
1518    # As a last resort, use the slow shell script.  We don't cache a
1519    # path for INSTALL within a source directory, because that will
1520    # break other packages using the cache if that directory is
1521    # removed, or if the path is relative.
1522    INSTALL=$ac_install_sh
1523  fi
1524fi
1525echo "$as_me:$LINENO: result: $INSTALL" >&5
1526echo "${ECHO_T}$INSTALL" >&6
1527
1528# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1529# It thinks the first close brace ends the variable substitution.
1530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1531
1532test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1533
1534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1535
1536echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1537echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1538# Just in case
1539sleep 1
1540echo timestamp > conftest.file
1541# Do `set' in a subshell so we don't clobber the current shell's
1542# arguments.  Must try -L first in case configure is actually a
1543# symlink; some systems play weird games with the mod time of symlinks
1544# (eg FreeBSD returns the mod time of the symlink's containing
1545# directory).
1546if (
1547   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1548   if test "$*" = "X"; then
1549      # -L didn't work.
1550      set X `ls -t $srcdir/configure conftest.file`
1551   fi
1552   rm -f conftest.file
1553   if test "$*" != "X $srcdir/configure conftest.file" \
1554      && test "$*" != "X conftest.file $srcdir/configure"; then
1555
1556      # If neither matched, then we have a broken ls.  This can happen
1557      # if, for instance, CONFIG_SHELL is bash and it inherits a
1558      # broken ls alias from the environment.  This has actually
1559      # happened.  Such a system could not be considered "sane".
1560      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1561alias in your environment" >&5
1562echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1563alias in your environment" >&2;}
1564   { (exit 1); exit 1; }; }
1565   fi
1566
1567   test "$2" = conftest.file
1568   )
1569then
1570   # Ok.
1571   :
1572else
1573   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1574Check your system clock" >&5
1575echo "$as_me: error: newly created file is older than distributed files!
1576Check your system clock" >&2;}
1577   { (exit 1); exit 1; }; }
1578fi
1579echo "$as_me:$LINENO: result: yes" >&5
1580echo "${ECHO_T}yes" >&6
1581test "$program_prefix" != NONE &&
1582  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1583# Use a double $ so make ignores it.
1584test "$program_suffix" != NONE &&
1585  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1586# Double any \ or $.  echo might interpret backslashes.
1587# By default was `s,x,x', remove it if useless.
1588cat <<\_ACEOF >conftest.sed
1589s/[\\$]/&&/g;s/;s,x,x,$//
1590_ACEOF
1591program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1592rm conftest.sed
1593
1594# expand $ac_aux_dir to an absolute path
1595am_aux_dir=`cd $ac_aux_dir && pwd`
1596
1597test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1598# Use eval to expand $SHELL
1599if eval "$MISSING --run true"; then
1600  am_missing_run="$MISSING --run "
1601else
1602  am_missing_run=
1603  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1604echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605fi
1606
1607if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1608  # We used to keeping the `.' as first argument, in order to
1609  # allow $(mkdir_p) to be used without argument.  As in
1610  #   $(mkdir_p) $(somedir)
1611  # where $(somedir) is conditionally defined.  However this is wrong
1612  # for two reasons:
1613  #  1. if the package is installed by a user who cannot write `.'
1614  #     make install will fail,
1615  #  2. the above comment should most certainly read
1616  #     $(mkdir_p) $(DESTDIR)$(somedir)
1617  #     so it does not work when $(somedir) is undefined and
1618  #     $(DESTDIR) is not.
1619  #  To support the latter case, we have to write
1620  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1621  #  so the `.' trick is pointless.
1622  mkdir_p='mkdir -p --'
1623else
1624  # On NextStep and OpenStep, the `mkdir' command does not
1625  # recognize any option.  It will interpret all options as
1626  # directories to create, and then abort because `.' already
1627  # exists.
1628  for d in ./-p ./--version;
1629  do
1630    test -d $d && rmdir $d
1631  done
1632  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1633  if test -f "$ac_aux_dir/mkinstalldirs"; then
1634    mkdir_p='$(mkinstalldirs)'
1635  else
1636    mkdir_p='$(install_sh) -d'
1637  fi
1638fi
1639
1640for ac_prog in gawk mawk nawk awk
1641do
1642  # Extract the first word of "$ac_prog", so it can be a program name with args.
1643set dummy $ac_prog; ac_word=$2
1644echo "$as_me:$LINENO: checking for $ac_word" >&5
1645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646if test "${ac_cv_prog_AWK+set}" = set; then
1647  echo $ECHO_N "(cached) $ECHO_C" >&6
1648else
1649  if test -n "$AWK"; then
1650  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1651else
1652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653for as_dir in $PATH
1654do
1655  IFS=$as_save_IFS
1656  test -z "$as_dir" && as_dir=.
1657  for ac_exec_ext in '' $ac_executable_extensions; do
1658  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659    ac_cv_prog_AWK="$ac_prog"
1660    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661    break 2
1662  fi
1663done
1664done
1665
1666fi
1667fi
1668AWK=$ac_cv_prog_AWK
1669if test -n "$AWK"; then
1670  echo "$as_me:$LINENO: result: $AWK" >&5
1671echo "${ECHO_T}$AWK" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  test -n "$AWK" && break
1678done
1679
1680echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1681echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1682set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1683if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1684  echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686  cat >conftest.make <<\_ACEOF
1687all:
1688        @echo 'ac_maketemp="$(MAKE)"'
1689_ACEOF
1690# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1691eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1692if test -n "$ac_maketemp"; then
1693  eval ac_cv_prog_make_${ac_make}_set=yes
1694else
1695  eval ac_cv_prog_make_${ac_make}_set=no
1696fi
1697rm -f conftest.make
1698fi
1699if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1700  echo "$as_me:$LINENO: result: yes" >&5
1701echo "${ECHO_T}yes" >&6
1702  SET_MAKE=
1703else
1704  echo "$as_me:$LINENO: result: no" >&5
1705echo "${ECHO_T}no" >&6
1706  SET_MAKE="MAKE=${MAKE-make}"
1707fi
1708
1709rm -rf .tst 2>/dev/null
1710mkdir .tst 2>/dev/null
1711if test -d .tst; then
1712  am__leading_dot=.
1713else
1714  am__leading_dot=_
1715fi
1716rmdir .tst 2>/dev/null
1717
1718# test to see if srcdir already configured
1719if test "`cd $srcdir && pwd`" != "`pwd`" &&
1720   test -f $srcdir/config.status; then
1721  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1722echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1723   { (exit 1); exit 1; }; }
1724fi
1725
1726# test whether we have cygpath
1727if test -z "$CYGPATH_W"; then
1728  if (cygpath --version) >/dev/null 2>/dev/null; then
1729    CYGPATH_W='cygpath -w'
1730  else
1731    CYGPATH_W=echo
1732  fi
1733fi
1734
1735
1736# Define the identity of the package.
1737 PACKAGE='orxonox'
1738 VERSION='0.3.2_alpha'
1739
1740
1741cat >>confdefs.h <<_ACEOF
1742#define PACKAGE "$PACKAGE"
1743_ACEOF
1744
1745
1746cat >>confdefs.h <<_ACEOF
1747#define VERSION "$VERSION"
1748_ACEOF
1749
1750# Some tools Automake needs.
1751
1752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753
1754
1755AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1756
1757
1758AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759
1760
1761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1762
1763
1764MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1765
1766install_sh=${install_sh-"$am_aux_dir/install-sh"}
1767
1768# Installed binaries are usually stripped using `strip' when the user
1769# run `make install-strip'.  However `strip' might not be the right
1770# tool to use in cross-compilation environments, therefore Automake
1771# will honor the `STRIP' environment variable to overrule this program.
1772if test "$cross_compiling" != no; then
1773  if test -n "$ac_tool_prefix"; then
1774  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1775set dummy ${ac_tool_prefix}strip; ac_word=$2
1776echo "$as_me:$LINENO: checking for $ac_word" >&5
1777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778if test "${ac_cv_prog_STRIP+set}" = set; then
1779  echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781  if test -n "$STRIP"; then
1782  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1783else
1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785for as_dir in $PATH
1786do
1787  IFS=$as_save_IFS
1788  test -z "$as_dir" && as_dir=.
1789  for ac_exec_ext in '' $ac_executable_extensions; do
1790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793    break 2
1794  fi
1795done
1796done
1797
1798fi
1799fi
1800STRIP=$ac_cv_prog_STRIP
1801if test -n "$STRIP"; then
1802  echo "$as_me:$LINENO: result: $STRIP" >&5
1803echo "${ECHO_T}$STRIP" >&6
1804else
1805  echo "$as_me:$LINENO: result: no" >&5
1806echo "${ECHO_T}no" >&6
1807fi
1808
1809fi
1810if test -z "$ac_cv_prog_STRIP"; then
1811  ac_ct_STRIP=$STRIP
1812  # Extract the first word of "strip", so it can be a program name with args.
1813set dummy strip; ac_word=$2
1814echo "$as_me:$LINENO: checking for $ac_word" >&5
1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1817  echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819  if test -n "$ac_ct_STRIP"; then
1820  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1821else
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825  IFS=$as_save_IFS
1826  test -z "$as_dir" && as_dir=.
1827  for ac_exec_ext in '' $ac_executable_extensions; do
1828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829    ac_cv_prog_ac_ct_STRIP="strip"
1830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831    break 2
1832  fi
1833done
1834done
1835
1836  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837fi
1838fi
1839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1840if test -n "$ac_ct_STRIP"; then
1841  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1842echo "${ECHO_T}$ac_ct_STRIP" >&6
1843else
1844  echo "$as_me:$LINENO: result: no" >&5
1845echo "${ECHO_T}no" >&6
1846fi
1847
1848  STRIP=$ac_ct_STRIP
1849else
1850  STRIP="$ac_cv_prog_STRIP"
1851fi
1852
1853fi
1854INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1855
1856# We need awk for the "check" target.  The system "awk" is bad on
1857# some platforms.
1858# Always define AMTAR for backward compatibility.
1859
1860AMTAR=${AMTAR-"${am_missing_run}tar"}
1861
1862am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1863
1864
1865
1866
1867
1868
1869
1870          ac_config_headers="$ac_config_headers config.h"
1871
1872
1873#########################
1874## Checks for programs ##
1875#########################
1876ac_ext=cc
1877ac_cpp='$CXXCPP $CPPFLAGS'
1878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1881if test -n "$ac_tool_prefix"; then
1882  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1883  do
1884    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1886echo "$as_me:$LINENO: checking for $ac_word" >&5
1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888if test "${ac_cv_prog_CXX+set}" = set; then
1889  echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891  if test -n "$CXX"; then
1892  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1893else
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897  IFS=$as_save_IFS
1898  test -z "$as_dir" && as_dir=.
1899  for ac_exec_ext in '' $ac_executable_extensions; do
1900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907
1908fi
1909fi
1910CXX=$ac_cv_prog_CXX
1911if test -n "$CXX"; then
1912  echo "$as_me:$LINENO: result: $CXX" >&5
1913echo "${ECHO_T}$CXX" >&6
1914else
1915  echo "$as_me:$LINENO: result: no" >&5
1916echo "${ECHO_T}no" >&6
1917fi
1918
1919    test -n "$CXX" && break
1920  done
1921fi
1922if test -z "$CXX"; then
1923  ac_ct_CXX=$CXX
1924  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1925do
1926  # Extract the first word of "$ac_prog", so it can be a program name with args.
1927set dummy $ac_prog; ac_word=$2
1928echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1931  echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933  if test -n "$ac_ct_CXX"; then
1934  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1935else
1936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937for as_dir in $PATH
1938do
1939  IFS=$as_save_IFS
1940  test -z "$as_dir" && as_dir=.
1941  for ac_exec_ext in '' $ac_executable_extensions; do
1942  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943    ac_cv_prog_ac_ct_CXX="$ac_prog"
1944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945    break 2
1946  fi
1947done
1948done
1949
1950fi
1951fi
1952ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1953if test -n "$ac_ct_CXX"; then
1954  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1955echo "${ECHO_T}$ac_ct_CXX" >&6
1956else
1957  echo "$as_me:$LINENO: result: no" >&5
1958echo "${ECHO_T}no" >&6
1959fi
1960
1961  test -n "$ac_ct_CXX" && break
1962done
1963test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1964
1965  CXX=$ac_ct_CXX
1966fi
1967
1968
1969# Provide some information about the compiler.
1970echo "$as_me:$LINENO:" \
1971     "checking for C++ compiler version" >&5
1972ac_compiler=`set X $ac_compile; echo $2`
1973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1974  (eval $ac_compiler --version </dev/null >&5) 2>&5
1975  ac_status=$?
1976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977  (exit $ac_status); }
1978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1979  (eval $ac_compiler -v </dev/null >&5) 2>&5
1980  ac_status=$?
1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982  (exit $ac_status); }
1983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1984  (eval $ac_compiler -V </dev/null >&5) 2>&5
1985  ac_status=$?
1986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987  (exit $ac_status); }
1988
1989cat >conftest.$ac_ext <<_ACEOF
1990/* confdefs.h.  */
1991_ACEOF
1992cat confdefs.h >>conftest.$ac_ext
1993cat >>conftest.$ac_ext <<_ACEOF
1994/* end confdefs.h.  */
1995
1996int
1997main ()
1998{
1999
2000  ;
2001  return 0;
2002}
2003_ACEOF
2004ac_clean_files_save=$ac_clean_files
2005ac_clean_files="$ac_clean_files a.out a.exe b.out"
2006# Try to create an executable without -o first, disregard a.out.
2007# It will help us diagnose broken compilers, and finding out an intuition
2008# of exeext.
2009echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2010echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2011ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2012if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2013  (eval $ac_link_default) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }; then
2017  # Find the output, starting from the most likely.  This scheme is
2018# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2019# resort.
2020
2021# Be careful to initialize this variable, since it used to be cached.
2022# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023ac_cv_exeext=
2024# b.out is created by i960 compilers.
2025for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2026do
2027  test -f "$ac_file" || continue
2028  case $ac_file in
2029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2030        ;;
2031    conftest.$ac_ext )
2032        # This is the source file.
2033        ;;
2034    [ab].out )
2035        # We found the default executable, but exeext='' is most
2036        # certainly right.
2037        break;;
2038    *.* )
2039        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040        # FIXME: I believe we export ac_cv_exeext for Libtool,
2041        # but it would be cool to find out if it's true.  Does anybody
2042        # maintain Libtool? --akim.
2043        export ac_cv_exeext
2044        break;;
2045    * )
2046        break;;
2047  esac
2048done
2049else
2050  echo "$as_me: failed program was:" >&5
2051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2054See \`config.log' for more details." >&5
2055echo "$as_me: error: C++ compiler cannot create executables
2056See \`config.log' for more details." >&2;}
2057   { (exit 77); exit 77; }; }
2058fi
2059
2060ac_exeext=$ac_cv_exeext
2061echo "$as_me:$LINENO: result: $ac_file" >&5
2062echo "${ECHO_T}$ac_file" >&6
2063
2064# Check the compiler produces executables we can run.  If not, either
2065# the compiler is broken, or we cross compile.
2066echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2067echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2068# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2069# If not cross compiling, check that we can run a simple program.
2070if test "$cross_compiling" != yes; then
2071  if { ac_try='./$ac_file'
2072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073  (eval $ac_try) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }; }; then
2077    cross_compiling=no
2078  else
2079    if test "$cross_compiling" = maybe; then
2080        cross_compiling=yes
2081    else
2082        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2083If you meant to cross compile, use \`--host'.
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: cannot run C++ compiled programs.
2086If you meant to cross compile, use \`--host'.
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089    fi
2090  fi
2091fi
2092echo "$as_me:$LINENO: result: yes" >&5
2093echo "${ECHO_T}yes" >&6
2094
2095rm -f a.out a.exe conftest$ac_cv_exeext b.out
2096ac_clean_files=$ac_clean_files_save
2097# Check the compiler produces executables we can run.  If not, either
2098# the compiler is broken, or we cross compile.
2099echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2100echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2101echo "$as_me:$LINENO: result: $cross_compiling" >&5
2102echo "${ECHO_T}$cross_compiling" >&6
2103
2104echo "$as_me:$LINENO: checking for suffix of executables" >&5
2105echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107  (eval $ac_link) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; then
2111  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2112# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2113# work properly (i.e., refer to `conftest.exe'), while it won't with
2114# `rm'.
2115for ac_file in conftest.exe conftest conftest.*; do
2116  test -f "$ac_file" || continue
2117  case $ac_file in
2118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2119    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120          export ac_cv_exeext
2121          break;;
2122    * ) break;;
2123  esac
2124done
2125else
2126  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&5
2128echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2129See \`config.log' for more details." >&2;}
2130   { (exit 1); exit 1; }; }
2131fi
2132
2133rm -f conftest$ac_cv_exeext
2134echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2135echo "${ECHO_T}$ac_cv_exeext" >&6
2136
2137rm -f conftest.$ac_ext
2138EXEEXT=$ac_cv_exeext
2139ac_exeext=$EXEEXT
2140echo "$as_me:$LINENO: checking for suffix of object files" >&5
2141echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2142if test "${ac_cv_objext+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h.  */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h.  */
2151
2152int
2153main ()
2154{
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160rm -f conftest.o conftest.obj
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162  (eval $ac_compile) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; then
2166  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2167  case $ac_file in
2168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2169    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2170       break;;
2171  esac
2172done
2173else
2174  echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: cannot compute suffix of object files: cannot compile
2180See \`config.log' for more details." >&2;}
2181   { (exit 1); exit 1; }; }
2182fi
2183
2184rm -f conftest.$ac_cv_objext conftest.$ac_ext
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2187echo "${ECHO_T}$ac_cv_objext" >&6
2188OBJEXT=$ac_cv_objext
2189ac_objext=$OBJEXT
2190echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2191echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2192if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2193  echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195  cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205#ifndef __GNUC__
2206       choke me
2207#endif
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215  (eval $ac_compile) 2>conftest.er1
2216  ac_status=$?
2217  grep -v '^ *+' conftest.er1 >conftest.err
2218  rm -f conftest.er1
2219  cat conftest.err >&5
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); } &&
2222         { ac_try='test -z "$ac_cxx_werror_flag"
2223                         || test ! -s conftest.err'
2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; } &&
2229         { ac_try='test -s conftest.$ac_objext'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235  ac_compiler_gnu=yes
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240ac_compiler_gnu=no
2241fi
2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2244
2245fi
2246echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2247echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2248GXX=`test $ac_compiler_gnu = yes && echo yes`
2249ac_test_CXXFLAGS=${CXXFLAGS+set}
2250ac_save_CXXFLAGS=$CXXFLAGS
2251CXXFLAGS="-g"
2252echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2253echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2254if test "${ac_cv_prog_cxx_g+set}" = set; then
2255  echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257  cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h.  */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h.  */
2263
2264int
2265main ()
2266{
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274  (eval $ac_compile) 2>conftest.er1
2275  ac_status=$?
2276  grep -v '^ *+' conftest.er1 >conftest.err
2277  rm -f conftest.er1
2278  cat conftest.err >&5
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); } &&
2281         { ac_try='test -z "$ac_cxx_werror_flag"
2282                         || test ! -s conftest.err'
2283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284  (eval $ac_try) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; } &&
2288         { ac_try='test -s conftest.$ac_objext'
2289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290  (eval $ac_try) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }; }; then
2294  ac_cv_prog_cxx_g=yes
2295else
2296  echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299ac_cv_prog_cxx_g=no
2300fi
2301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2304echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2305if test "$ac_test_CXXFLAGS" = set; then
2306  CXXFLAGS=$ac_save_CXXFLAGS
2307elif test $ac_cv_prog_cxx_g = yes; then
2308  if test "$GXX" = yes; then
2309    CXXFLAGS="-g -O2"
2310  else
2311    CXXFLAGS="-g"
2312  fi
2313else
2314  if test "$GXX" = yes; then
2315    CXXFLAGS="-O2"
2316  else
2317    CXXFLAGS=
2318  fi
2319fi
2320for ac_declaration in \
2321   '' \
2322   'extern "C" void std::exit (int) throw (); using std::exit;' \
2323   'extern "C" void std::exit (int); using std::exit;' \
2324   'extern "C" void exit (int) throw ();' \
2325   'extern "C" void exit (int);' \
2326   'void exit (int);'
2327do
2328  cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h.  */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h.  */
2334$ac_declaration
2335#include <stdlib.h>
2336int
2337main ()
2338{
2339exit (42);
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346  (eval $ac_compile) 2>conftest.er1
2347  ac_status=$?
2348  grep -v '^ *+' conftest.er1 >conftest.err
2349  rm -f conftest.er1
2350  cat conftest.err >&5
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); } &&
2353         { ac_try='test -z "$ac_cxx_werror_flag"
2354                         || test ! -s conftest.err'
2355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356  (eval $ac_try) 2>&5
2357  ac_status=$?
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); }; } &&
2360         { ac_try='test -s conftest.$ac_objext'
2361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362  (eval $ac_try) 2>&5
2363  ac_status=$?
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); }; }; then
2366  :
2367else
2368  echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371continue
2372fi
2373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374  cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h.  */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h.  */
2380$ac_declaration
2381int
2382main ()
2383{
2384exit (42);
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398         { ac_try='test -z "$ac_cxx_werror_flag"
2399                         || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  break
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416fi
2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418done
2419rm -f conftest*
2420if test -n "$ac_declaration"; then
2421  echo '#ifdef __cplusplus' >>confdefs.h
2422  echo $ac_declaration      >>confdefs.h
2423  echo '#endif'             >>confdefs.h
2424fi
2425
2426ac_ext=c
2427ac_cpp='$CPP $CPPFLAGS'
2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431DEPDIR="${am__leading_dot}deps"
2432
2433          ac_config_commands="$ac_config_commands depfiles"
2434
2435
2436am_make=${MAKE-make}
2437cat > confinc << 'END'
2438am__doit:
2439        @echo done
2440.PHONY: am__doit
2441END
2442# If we don't find an include directive, just comment out the code.
2443echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2444echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2445am__include="#"
2446am__quote=
2447_am_result=none
2448# First try GNU make style include.
2449echo "include confinc" > confmf
2450# We grep out `Entering directory' and `Leaving directory'
2451# messages which can occur if `w' ends up in MAKEFLAGS.
2452# In particular we don't look at `^make:' because GNU make might
2453# be invoked under some other name (usually "gmake"), in which
2454# case it prints its new name instead of `make'.
2455if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2456   am__include=include
2457   am__quote=
2458   _am_result=GNU
2459fi
2460# Now try BSD make style include.
2461if test "$am__include" = "#"; then
2462   echo '.include "confinc"' > confmf
2463   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2464      am__include=.include
2465      am__quote="\""
2466      _am_result=BSD
2467   fi
2468fi
2469
2470
2471echo "$as_me:$LINENO: result: $_am_result" >&5
2472echo "${ECHO_T}$_am_result" >&6
2473rm -f confinc confmf
2474
2475# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2476if test "${enable_dependency_tracking+set}" = set; then
2477  enableval="$enable_dependency_tracking"
2478
2479fi;
2480if test "x$enable_dependency_tracking" != xno; then
2481  am_depcomp="$ac_aux_dir/depcomp"
2482  AMDEPBACKSLASH='\'
2483fi
2484
2485
2486if test "x$enable_dependency_tracking" != xno; then
2487  AMDEP_TRUE=
2488  AMDEP_FALSE='#'
2489else
2490  AMDEP_TRUE='#'
2491  AMDEP_FALSE=
2492fi
2493
2494
2495
2496
2497depcc="$CXX"  am_compiler_list=
2498
2499echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2500echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2501if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2502  echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2505  # We make a subdir and do the tests there.  Otherwise we can end up
2506  # making bogus files that we don't know about and never remove.  For
2507  # instance it was reported that on HP-UX the gcc test will end up
2508  # making a dummy file named `D' -- because `-MD' means `put the output
2509  # in D'.
2510  mkdir conftest.dir
2511  # Copy depcomp to subdir because otherwise we won't find it if we're
2512  # using a relative directory.
2513  cp "$am_depcomp" conftest.dir
2514  cd conftest.dir
2515  # We will build objects and dependencies in a subdirectory because
2516  # it helps to detect inapplicable dependency modes.  For instance
2517  # both Tru64's cc and ICC support -MD to output dependencies as a
2518  # side effect of compilation, but ICC will put the dependencies in
2519  # the current directory while Tru64 will put them in the object
2520  # directory.
2521  mkdir sub
2522
2523  am_cv_CXX_dependencies_compiler_type=none
2524  if test "$am_compiler_list" = ""; then
2525     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2526  fi
2527  for depmode in $am_compiler_list; do
2528    # Setup a source with many dependencies, because some compilers
2529    # like to wrap large dependency lists on column 80 (with \), and
2530    # we should not choose a depcomp mode which is confused by this.
2531    #
2532    # We need to recreate these files for each test, as the compiler may
2533    # overwrite some of them when testing with obscure command lines.
2534    # This happens at least with the AIX C compiler.
2535    : > sub/conftest.c
2536    for i in 1 2 3 4 5 6; do
2537      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2538      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2539      # Solaris 8's {/usr,}/bin/sh.
2540      touch sub/conftst$i.h
2541    done
2542    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2543
2544    case $depmode in
2545    nosideeffect)
2546      # after this tag, mechanisms are not by side-effect, so they'll
2547      # only be used when explicitly requested
2548      if test "x$enable_dependency_tracking" = xyes; then
2549        continue
2550      else
2551        break
2552      fi
2553      ;;
2554    none) break ;;
2555    esac
2556    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2557    # mode.  It turns out that the SunPro C++ compiler does not properly
2558    # handle `-M -o', and we need to detect this.
2559    if depmode=$depmode \
2560       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2561       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2562       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2563         >/dev/null 2>conftest.err &&
2564       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2565       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2566       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2567      # icc doesn't choke on unknown options, it will just issue warnings
2568      # or remarks (even with -Werror).  So we grep stderr for any message
2569      # that says an option was ignored or not supported.
2570      # When given -MP, icc 7.0 and 7.1 complain thusly:
2571      #   icc: Command line warning: ignoring option '-M'; no argument required
2572      # The diagnosis changed in icc 8.0:
2573      #   icc: Command line remark: option '-MP' not supported
2574      if (grep 'ignoring option' conftest.err ||
2575          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2576        am_cv_CXX_dependencies_compiler_type=$depmode
2577        break
2578      fi
2579    fi
2580  done
2581
2582  cd ..
2583  rm -rf conftest.dir
2584else
2585  am_cv_CXX_dependencies_compiler_type=none
2586fi
2587
2588fi
2589echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2590echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2591CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2592
2593
2594
2595if
2596  test "x$enable_dependency_tracking" != xno \
2597  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2598  am__fastdepCXX_TRUE=
2599  am__fastdepCXX_FALSE='#'
2600else
2601  am__fastdepCXX_TRUE='#'
2602  am__fastdepCXX_FALSE=
2603fi
2604
2605
2606if test -n "$ac_tool_prefix"; then
2607  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2608set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2609echo "$as_me:$LINENO: checking for $ac_word" >&5
2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2611if test "${ac_cv_prog_RANLIB+set}" = set; then
2612  echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614  if test -n "$RANLIB"; then
2615  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620  IFS=$as_save_IFS
2621  test -z "$as_dir" && as_dir=.
2622  for ac_exec_ext in '' $ac_executable_extensions; do
2623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626    break 2
2627  fi
2628done
2629done
2630
2631fi
2632fi
2633RANLIB=$ac_cv_prog_RANLIB
2634if test -n "$RANLIB"; then
2635  echo "$as_me:$LINENO: result: $RANLIB" >&5
2636echo "${ECHO_T}$RANLIB" >&6
2637else
2638  echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6
2640fi
2641
2642fi
2643if test -z "$ac_cv_prog_RANLIB"; then
2644  ac_ct_RANLIB=$RANLIB
2645  # Extract the first word of "ranlib", so it can be a program name with args.
2646set dummy ranlib; ac_word=$2
2647echo "$as_me:$LINENO: checking for $ac_word" >&5
2648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2649if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2650  echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
2652  if test -n "$ac_ct_RANLIB"; then
2653  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660  for ac_exec_ext in '' $ac_executable_extensions; do
2661  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662    ac_cv_prog_ac_ct_RANLIB="ranlib"
2663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667done
2668
2669  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2670fi
2671fi
2672ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2673if test -n "$ac_ct_RANLIB"; then
2674  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2675echo "${ECHO_T}$ac_ct_RANLIB" >&6
2676else
2677  echo "$as_me:$LINENO: result: no" >&5
2678echo "${ECHO_T}no" >&6
2679fi
2680
2681  RANLIB=$ac_ct_RANLIB
2682else
2683  RANLIB="$ac_cv_prog_RANLIB"
2684fi
2685
2686ac_ext=c
2687ac_cpp='$CPP $CPPFLAGS'
2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691if test -n "$ac_tool_prefix"; then
2692  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2693set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694echo "$as_me:$LINENO: checking for $ac_word" >&5
2695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696if test "${ac_cv_prog_CC+set}" = set; then
2697  echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699  if test -n "$CC"; then
2700  ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707  for ac_exec_ext in '' $ac_executable_extensions; do
2708  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714done
2715
2716fi
2717fi
2718CC=$ac_cv_prog_CC
2719if test -n "$CC"; then
2720  echo "$as_me:$LINENO: result: $CC" >&5
2721echo "${ECHO_T}$CC" >&6
2722else
2723  echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6
2725fi
2726
2727fi
2728if test -z "$ac_cv_prog_CC"; then
2729  ac_ct_CC=$CC
2730  # Extract the first word of "gcc", so it can be a program name with args.
2731set dummy gcc; ac_word=$2
2732echo "$as_me:$LINENO: checking for $ac_word" >&5
2733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735  echo $ECHO_N "(cached) $ECHO_C" >&6
2736else
2737  if test -n "$ac_ct_CC"; then
2738  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743  IFS=$as_save_IFS
2744  test -z "$as_dir" && as_dir=.
2745  for ac_exec_ext in '' $ac_executable_extensions; do
2746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747    ac_cv_prog_ac_ct_CC="gcc"
2748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749    break 2
2750  fi
2751done
2752done
2753
2754fi
2755fi
2756ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757if test -n "$ac_ct_CC"; then
2758  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2759echo "${ECHO_T}$ac_ct_CC" >&6
2760else
2761  echo "$as_me:$LINENO: result: no" >&5
2762echo "${ECHO_T}no" >&6
2763fi
2764
2765  CC=$ac_ct_CC
2766else
2767  CC="$ac_cv_prog_CC"
2768fi
2769
2770if test -z "$CC"; then
2771  if test -n "$ac_tool_prefix"; then
2772  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2773set dummy ${ac_tool_prefix}cc; ac_word=$2
2774echo "$as_me:$LINENO: checking for $ac_word" >&5
2775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776if test "${ac_cv_prog_CC+set}" = set; then
2777  echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779  if test -n "$CC"; then
2780  ac_cv_prog_CC="$CC" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785  IFS=$as_save_IFS
2786  test -z "$as_dir" && as_dir=.
2787  for ac_exec_ext in '' $ac_executable_extensions; do
2788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789    ac_cv_prog_CC="${ac_tool_prefix}cc"
2790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794done
2795
2796fi
2797fi
2798CC=$ac_cv_prog_CC
2799if test -n "$CC"; then
2800  echo "$as_me:$LINENO: result: $CC" >&5
2801echo "${ECHO_T}$CC" >&6
2802else
2803  echo "$as_me:$LINENO: result: no" >&5
2804echo "${ECHO_T}no" >&6
2805fi
2806
2807fi
2808if test -z "$ac_cv_prog_CC"; then
2809  ac_ct_CC=$CC
2810  # Extract the first word of "cc", so it can be a program name with args.
2811set dummy cc; ac_word=$2
2812echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815  echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817  if test -n "$ac_ct_CC"; then
2818  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825  for ac_exec_ext in '' $ac_executable_extensions; do
2826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827    ac_cv_prog_ac_ct_CC="cc"
2828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832done
2833
2834fi
2835fi
2836ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837if test -n "$ac_ct_CC"; then
2838  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2839echo "${ECHO_T}$ac_ct_CC" >&6
2840else
2841  echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6
2843fi
2844
2845  CC=$ac_ct_CC
2846else
2847  CC="$ac_cv_prog_CC"
2848fi
2849
2850fi
2851if test -z "$CC"; then
2852  # Extract the first word of "cc", so it can be a program name with args.
2853set dummy cc; ac_word=$2
2854echo "$as_me:$LINENO: checking for $ac_word" >&5
2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856if test "${ac_cv_prog_CC+set}" = set; then
2857  echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859  if test -n "$CC"; then
2860  ac_cv_prog_CC="$CC" # Let the user override the test.
2861else
2862  ac_prog_rejected=no
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  test -z "$as_dir" && as_dir=.
2868  for ac_exec_ext in '' $ac_executable_extensions; do
2869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871       ac_prog_rejected=yes
2872       continue
2873     fi
2874    ac_cv_prog_CC="cc"
2875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876    break 2
2877  fi
2878done
2879done
2880
2881if test $ac_prog_rejected = yes; then
2882  # We found a bogon in the path, so make sure we never use it.
2883  set dummy $ac_cv_prog_CC
2884  shift
2885  if test $# != 0; then
2886    # We chose a different compiler from the bogus one.
2887    # However, it has the same basename, so the bogon will be chosen
2888    # first if we set CC to just the basename; use the full file name.
2889    shift
2890    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891  fi
2892fi
2893fi
2894fi
2895CC=$ac_cv_prog_CC
2896if test -n "$CC"; then
2897  echo "$as_me:$LINENO: result: $CC" >&5
2898echo "${ECHO_T}$CC" >&6
2899else
2900  echo "$as_me:$LINENO: result: no" >&5
2901echo "${ECHO_T}no" >&6
2902fi
2903
2904fi
2905if test -z "$CC"; then
2906  if test -n "$ac_tool_prefix"; then
2907  for ac_prog in cl
2908  do
2909    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911echo "$as_me:$LINENO: checking for $ac_word" >&5
2912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913if test "${ac_cv_prog_CC+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915else
2916  if test -n "$CC"; then
2917  ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924  for ac_exec_ext in '' $ac_executable_extensions; do
2925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931done
2932
2933fi
2934fi
2935CC=$ac_cv_prog_CC
2936if test -n "$CC"; then
2937  echo "$as_me:$LINENO: result: $CC" >&5
2938echo "${ECHO_T}$CC" >&6
2939else
2940  echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942fi
2943
2944    test -n "$CC" && break
2945  done
2946fi
2947if test -z "$CC"; then
2948  ac_ct_CC=$CC
2949  for ac_prog in cl
2950do
2951  # Extract the first word of "$ac_prog", so it can be a program name with args.
2952set dummy $ac_prog; ac_word=$2
2953echo "$as_me:$LINENO: checking for $ac_word" >&5
2954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2955if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956  echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958  if test -n "$ac_ct_CC"; then
2959  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  test -z "$as_dir" && as_dir=.
2966  for ac_exec_ext in '' $ac_executable_extensions; do
2967  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968    ac_cv_prog_ac_ct_CC="$ac_prog"
2969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970    break 2
2971  fi
2972done
2973done
2974
2975fi
2976fi
2977ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978if test -n "$ac_ct_CC"; then
2979  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2980echo "${ECHO_T}$ac_ct_CC" >&6
2981else
2982  echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984fi
2985
2986  test -n "$ac_ct_CC" && break
2987done
2988
2989  CC=$ac_ct_CC
2990fi
2991
2992fi
2993
2994
2995test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2996See \`config.log' for more details." >&5
2997echo "$as_me: error: no acceptable C compiler found in \$PATH
2998See \`config.log' for more details." >&2;}
2999   { (exit 1); exit 1; }; }
3000
3001# Provide some information about the compiler.
3002echo "$as_me:$LINENO:" \
3003     "checking for C compiler version" >&5
3004ac_compiler=`set X $ac_compile; echo $2`
3005{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3006  (eval $ac_compiler --version </dev/null >&5) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }
3010{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3011  (eval $ac_compiler -v </dev/null >&5) 2>&5
3012  ac_status=$?
3013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); }
3015{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3016  (eval $ac_compiler -V </dev/null >&5) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }
3020
3021echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3023if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024  echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026  cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h.  */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036#ifndef __GNUC__
3037       choke me
3038#endif
3039
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext
3045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046  (eval $ac_compile) 2>conftest.er1
3047  ac_status=$?
3048  grep -v '^ *+' conftest.er1 >conftest.err
3049  rm -f conftest.er1
3050  cat conftest.err >&5
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); } &&
3053         { ac_try='test -z "$ac_c_werror_flag"
3054                         || test ! -s conftest.err'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; } &&
3060         { ac_try='test -s conftest.$ac_objext'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; }; then
3066  ac_compiler_gnu=yes
3067else
3068  echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071ac_compiler_gnu=no
3072fi
3073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074ac_cv_c_compiler_gnu=$ac_compiler_gnu
3075
3076fi
3077echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3078echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3079GCC=`test $ac_compiler_gnu = yes && echo yes`
3080ac_test_CFLAGS=${CFLAGS+set}
3081ac_save_CFLAGS=$CFLAGS
3082CFLAGS="-g"
3083echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3084echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3085if test "${ac_cv_prog_cc_g+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext
3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105  (eval $ac_compile) 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112         { ac_try='test -z "$ac_c_werror_flag"
3113                         || test ! -s conftest.err'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; } &&
3119         { ac_try='test -s conftest.$ac_objext'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; }; then
3125  ac_cv_prog_cc_g=yes
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130ac_cv_prog_cc_g=no
3131fi
3132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133fi
3134echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3135echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3136if test "$ac_test_CFLAGS" = set; then
3137  CFLAGS=$ac_save_CFLAGS
3138elif test $ac_cv_prog_cc_g = yes; then
3139  if test "$GCC" = yes; then
3140    CFLAGS="-g -O2"
3141  else
3142    CFLAGS="-g"
3143  fi
3144else
3145  if test "$GCC" = yes; then
3146    CFLAGS="-O2"
3147  else
3148    CFLAGS=
3149  fi
3150fi
3151echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3152echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3153if test "${ac_cv_prog_cc_stdc+set}" = set; then
3154  echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156  ac_cv_prog_cc_stdc=no
3157ac_save_CC=$CC
3158cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164#include <stdarg.h>
3165#include <stdio.h>
3166#include <sys/types.h>
3167#include <sys/stat.h>
3168/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3169struct buf { int x; };
3170FILE * (*rcsopen) (struct buf *, struct stat *, int);
3171static char *e (p, i)
3172     char **p;
3173     int i;
3174{
3175  return p[i];
3176}
3177static char *f (char * (*g) (char **, int), char **p, ...)
3178{
3179  char *s;
3180  va_list v;
3181  va_start (v,p);
3182  s = g (p, va_arg (v,int));
3183  va_end (v);
3184  return s;
3185}
3186
3187/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3188   function prototypes and stuff, but not '\xHH' hex character constants.
3189   These don't provoke an error unfortunately, instead are silently treated
3190   as 'x'.  The following induces an error, until -std1 is added to get
3191   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3192   array size at least.  It's necessary to write '\x00'==0 to get something
3193   that's true only with -std1.  */
3194int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3195
3196int test (int i, double x);
3197struct s1 {int (*f) (int a);};
3198struct s2 {int (*f) (double a);};
3199int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3200int argc;
3201char **argv;
3202int
3203main ()
3204{
3205return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210# Don't try gcc -ansi; that turns off useful extensions and
3211# breaks some systems' header files.
3212# AIX                   -qlanglvl=ansi
3213# Ultrix and OSF/1      -std1
3214# HP-UX 10.20 and later -Ae
3215# HP-UX older versions  -Aa -D_HPUX_SOURCE
3216# SVR4                  -Xc -D__EXTENSIONS__
3217for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3218do
3219  CC="$ac_save_CC $ac_arg"
3220  rm -f conftest.$ac_objext
3221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222  (eval $ac_compile) 2>conftest.er1
3223  ac_status=$?
3224  grep -v '^ *+' conftest.er1 >conftest.err
3225  rm -f conftest.er1
3226  cat conftest.err >&5
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); } &&
3229         { ac_try='test -z "$ac_c_werror_flag"
3230                         || test ! -s conftest.err'
3231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232  (eval $ac_try) 2>&5
3233  ac_status=$?
3234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235  (exit $ac_status); }; } &&
3236         { ac_try='test -s conftest.$ac_objext'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; }; then
3242  ac_cv_prog_cc_stdc=$ac_arg
3243break
3244else
3245  echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248fi
3249rm -f conftest.err conftest.$ac_objext
3250done
3251rm -f conftest.$ac_ext conftest.$ac_objext
3252CC=$ac_save_CC
3253
3254fi
3255
3256case "x$ac_cv_prog_cc_stdc" in
3257  x|xno)
3258    echo "$as_me:$LINENO: result: none needed" >&5
3259echo "${ECHO_T}none needed" >&6 ;;
3260  *)
3261    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3262echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3263    CC="$CC $ac_cv_prog_cc_stdc" ;;
3264esac
3265
3266# Some people use a C++ compiler to compile C.  Since we use `exit',
3267# in C++ we need to declare it.  In case someone uses the same compiler
3268# for both compiling C and C++ we need to have the C++ compiler decide
3269# the declaration of exit, since it's the most demanding environment.
3270cat >conftest.$ac_ext <<_ACEOF
3271#ifndef __cplusplus
3272  choke me
3273#endif
3274_ACEOF
3275rm -f conftest.$ac_objext
3276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3277  (eval $ac_compile) 2>conftest.er1
3278  ac_status=$?
3279  grep -v '^ *+' conftest.er1 >conftest.err
3280  rm -f conftest.er1
3281  cat conftest.err >&5
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); } &&
3284         { ac_try='test -z "$ac_c_werror_flag"
3285                         || test ! -s conftest.err'
3286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287  (eval $ac_try) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }; } &&
3291         { ac_try='test -s conftest.$ac_objext'
3292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293  (eval $ac_try) 2>&5
3294  ac_status=$?
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); }; }; then
3297  for ac_declaration in \
3298   '' \
3299   'extern "C" void std::exit (int) throw (); using std::exit;' \
3300   'extern "C" void std::exit (int); using std::exit;' \
3301   'extern "C" void exit (int) throw ();' \
3302   'extern "C" void exit (int);' \
3303   'void exit (int);'
3304do
3305  cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h.  */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h.  */
3311$ac_declaration
3312#include <stdlib.h>
3313int
3314main ()
3315{
3316exit (42);
3317  ;
3318  return 0;
3319}
3320_ACEOF
3321rm -f conftest.$ac_objext
3322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323  (eval $ac_compile) 2>conftest.er1
3324  ac_status=$?
3325  grep -v '^ *+' conftest.er1 >conftest.err
3326  rm -f conftest.er1
3327  cat conftest.err >&5
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); } &&
3330         { ac_try='test -z "$ac_c_werror_flag"
3331                         || test ! -s conftest.err'
3332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333  (eval $ac_try) 2>&5
3334  ac_status=$?
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); }; } &&
3337         { ac_try='test -s conftest.$ac_objext'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; }; then
3343  :
3344else
3345  echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348continue
3349fi
3350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3351  cat >conftest.$ac_ext <<_ACEOF
3352/* confdefs.h.  */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
3356/* end confdefs.h.  */
3357$ac_declaration
3358int
3359main ()
3360{
3361exit (42);
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext
3367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368  (eval $ac_compile) 2>conftest.er1
3369  ac_status=$?
3370  grep -v '^ *+' conftest.er1 >conftest.err
3371  rm -f conftest.er1
3372  cat conftest.err >&5
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); } &&
3375         { ac_try='test -z "$ac_c_werror_flag"
3376                         || test ! -s conftest.err'
3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378  (eval $ac_try) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; } &&
3382         { ac_try='test -s conftest.$ac_objext'
3383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384  (eval $ac_try) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }; }; then
3388  break
3389else
3390  echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393fi
3394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3395done
3396rm -f conftest*
3397if test -n "$ac_declaration"; then
3398  echo '#ifdef __cplusplus' >>confdefs.h
3399  echo $ac_declaration      >>confdefs.h
3400  echo '#endif'             >>confdefs.h
3401fi
3402
3403else
3404  echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407fi
3408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409ac_ext=c
3410ac_cpp='$CPP $CPPFLAGS'
3411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414
3415depcc="$CC"   am_compiler_list=
3416
3417echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3418echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3419if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3423  # We make a subdir and do the tests there.  Otherwise we can end up
3424  # making bogus files that we don't know about and never remove.  For
3425  # instance it was reported that on HP-UX the gcc test will end up
3426  # making a dummy file named `D' -- because `-MD' means `put the output
3427  # in D'.
3428  mkdir conftest.dir
3429  # Copy depcomp to subdir because otherwise we won't find it if we're
3430  # using a relative directory.
3431  cp "$am_depcomp" conftest.dir
3432  cd conftest.dir
3433  # We will build objects and dependencies in a subdirectory because
3434  # it helps to detect inapplicable dependency modes.  For instance
3435  # both Tru64's cc and ICC support -MD to output dependencies as a
3436  # side effect of compilation, but ICC will put the dependencies in
3437  # the current directory while Tru64 will put them in the object
3438  # directory.
3439  mkdir sub
3440
3441  am_cv_CC_dependencies_compiler_type=none
3442  if test "$am_compiler_list" = ""; then
3443     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3444  fi
3445  for depmode in $am_compiler_list; do
3446    # Setup a source with many dependencies, because some compilers
3447    # like to wrap large dependency lists on column 80 (with \), and
3448    # we should not choose a depcomp mode which is confused by this.
3449    #
3450    # We need to recreate these files for each test, as the compiler may
3451    # overwrite some of them when testing with obscure command lines.
3452    # This happens at least with the AIX C compiler.
3453    : > sub/conftest.c
3454    for i in 1 2 3 4 5 6; do
3455      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3456      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3457      # Solaris 8's {/usr,}/bin/sh.
3458      touch sub/conftst$i.h
3459    done
3460    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3461
3462    case $depmode in
3463    nosideeffect)
3464      # after this tag, mechanisms are not by side-effect, so they'll
3465      # only be used when explicitly requested
3466      if test "x$enable_dependency_tracking" = xyes; then
3467        continue
3468      else
3469        break
3470      fi
3471      ;;
3472    none) break ;;
3473    esac
3474    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3475    # mode.  It turns out that the SunPro C++ compiler does not properly
3476    # handle `-M -o', and we need to detect this.
3477    if depmode=$depmode \
3478       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3479       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3480       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3481         >/dev/null 2>conftest.err &&
3482       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3483       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3484       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3485      # icc doesn't choke on unknown options, it will just issue warnings
3486      # or remarks (even with -Werror).  So we grep stderr for any message
3487      # that says an option was ignored or not supported.
3488      # When given -MP, icc 7.0 and 7.1 complain thusly:
3489      #   icc: Command line warning: ignoring option '-M'; no argument required
3490      # The diagnosis changed in icc 8.0:
3491      #   icc: Command line remark: option '-MP' not supported
3492      if (grep 'ignoring option' conftest.err ||
3493          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3494        am_cv_CC_dependencies_compiler_type=$depmode
3495        break
3496      fi
3497    fi
3498  done
3499
3500  cd ..
3501  rm -rf conftest.dir
3502else
3503  am_cv_CC_dependencies_compiler_type=none
3504fi
3505
3506fi
3507echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3508echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3509CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3510
3511
3512
3513if
3514  test "x$enable_dependency_tracking" != xno \
3515  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3516  am__fastdepCC_TRUE=
3517  am__fastdepCC_FALSE='#'
3518else
3519  am__fastdepCC_TRUE='#'
3520  am__fastdepCC_FALSE=
3521fi
3522
3523
3524
3525ac_ext=c
3526ac_cpp='$CPP $CPPFLAGS'
3527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3532# On Suns, sometimes $CPP names a directory.
3533if test -n "$CPP" && test -d "$CPP"; then
3534  CPP=
3535fi
3536if test -z "$CPP"; then
3537  if test "${ac_cv_prog_CPP+set}" = set; then
3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540      # Double quotes because CPP needs to be expanded
3541    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542    do
3543      ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546  # Use a header file that comes with gcc, so configuring glibc
3547  # with a fresh cross-compiler works.
3548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549  # <limits.h> exists even on freestanding compilers.
3550  # On the NeXT, cc -E runs the code through the compiler's parser,
3551  # not just through cpp. "Syntax error" is here to catch this case.
3552  cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563                     Syntax error
3564_ACEOF
3565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } >/dev/null; then
3573  if test -s conftest.err; then
3574    ac_cpp_err=$ac_c_preproc_warn_flag
3575    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576  else
3577    ac_cpp_err=
3578  fi
3579else
3580  ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
3583  :
3584else
3585  echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588  # Broken: fails on valid input.
3589continue
3590fi
3591rm -f conftest.err conftest.$ac_ext
3592
3593  # OK, works on sane cases.  Now check whether non-existent headers
3594  # can be detected and how.
3595  cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h.  */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h.  */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } >/dev/null; then
3611  if test -s conftest.err; then
3612    ac_cpp_err=$ac_c_preproc_warn_flag
3613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614  else
3615    ac_cpp_err=
3616  fi
3617else
3618  ac_cpp_err=yes
3619fi
3620if test -z "$ac_cpp_err"; then
3621  # Broken: success on invalid input.
3622continue
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627  # Passes both tests.
3628ac_preproc_ok=:
3629break
3630fi
3631rm -f conftest.err conftest.$ac_ext
3632
3633done
3634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635rm -f conftest.err conftest.$ac_ext
3636if $ac_preproc_ok; then
3637  break
3638fi
3639
3640    done
3641    ac_cv_prog_CPP=$CPP
3642
3643fi
3644  CPP=$ac_cv_prog_CPP
3645else
3646  ac_cv_prog_CPP=$CPP
3647fi
3648echo "$as_me:$LINENO: result: $CPP" >&5
3649echo "${ECHO_T}$CPP" >&6
3650ac_preproc_ok=false
3651for ac_c_preproc_warn_flag in '' yes
3652do
3653  # Use a header file that comes with gcc, so configuring glibc
3654  # with a fresh cross-compiler works.
3655  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3656  # <limits.h> exists even on freestanding compilers.
3657  # On the NeXT, cc -E runs the code through the compiler's parser,
3658  # not just through cpp. "Syntax error" is here to catch this case.
3659  cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h.  */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h.  */
3665#ifdef __STDC__
3666# include <limits.h>
3667#else
3668# include <assert.h>
3669#endif
3670                     Syntax error
3671_ACEOF
3672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3673  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3674  ac_status=$?
3675  grep -v '^ *+' conftest.er1 >conftest.err
3676  rm -f conftest.er1
3677  cat conftest.err >&5
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); } >/dev/null; then
3680  if test -s conftest.err; then
3681    ac_cpp_err=$ac_c_preproc_warn_flag
3682    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3683  else
3684    ac_cpp_err=
3685  fi
3686else
3687  ac_cpp_err=yes
3688fi
3689if test -z "$ac_cpp_err"; then
3690  :
3691else
3692  echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695  # Broken: fails on valid input.
3696continue
3697fi
3698rm -f conftest.err conftest.$ac_ext
3699
3700  # OK, works on sane cases.  Now check whether non-existent headers
3701  # can be detected and how.
3702  cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h.  */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h.  */
3708#include <ac_nonexistent.h>
3709_ACEOF
3710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712  ac_status=$?
3713  grep -v '^ *+' conftest.er1 >conftest.err
3714  rm -f conftest.er1
3715  cat conftest.err >&5
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); } >/dev/null; then
3718  if test -s conftest.err; then
3719    ac_cpp_err=$ac_c_preproc_warn_flag
3720    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3721  else
3722    ac_cpp_err=
3723  fi
3724else
3725  ac_cpp_err=yes
3726fi
3727if test -z "$ac_cpp_err"; then
3728  # Broken: success on invalid input.
3729continue
3730else
3731  echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734  # Passes both tests.
3735ac_preproc_ok=:
3736break
3737fi
3738rm -f conftest.err conftest.$ac_ext
3739
3740done
3741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742rm -f conftest.err conftest.$ac_ext
3743if $ac_preproc_ok; then
3744  :
3745else
3746  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747See \`config.log' for more details." >&5
3748echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749See \`config.log' for more details." >&2;}
3750   { (exit 1); exit 1; }; }
3751fi
3752
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759
3760echo "$as_me:$LINENO: checking for egrep" >&5
3761echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3762if test "${ac_cv_prog_egrep+set}" = set; then
3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3766    then ac_cv_prog_egrep='grep -E'
3767    else ac_cv_prog_egrep='egrep'
3768    fi
3769fi
3770echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3771echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3772 EGREP=$ac_cv_prog_egrep
3773
3774
3775echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3776echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3777if test "${ac_cv_header_stdc+set}" = set; then
3778  echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780  cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h.  */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h.  */
3786#include <stdlib.h>
3787#include <stdarg.h>
3788#include <string.h>
3789#include <float.h>
3790
3791int
3792main ()
3793{
3794
3795  ;
3796  return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext
3800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801  (eval $ac_compile) 2>conftest.er1
3802  ac_status=$?
3803  grep -v '^ *+' conftest.er1 >conftest.err
3804  rm -f conftest.er1
3805  cat conftest.err >&5
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); } &&
3808         { ac_try='test -z "$ac_c_werror_flag"
3809                         || test ! -s conftest.err'
3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; } &&
3815         { ac_try='test -s conftest.$ac_objext'
3816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817  (eval $ac_try) 2>&5
3818  ac_status=$?
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); }; }; then
3821  ac_cv_header_stdc=yes
3822else
3823  echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826ac_cv_header_stdc=no
3827fi
3828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829
3830if test $ac_cv_header_stdc = yes; then
3831  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3832  cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h.  */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h.  */
3838#include <string.h>
3839
3840_ACEOF
3841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842  $EGREP "memchr" >/dev/null 2>&1; then
3843  :
3844else
3845  ac_cv_header_stdc=no
3846fi
3847rm -f conftest*
3848
3849fi
3850
3851if test $ac_cv_header_stdc = yes; then
3852  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3853  cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h.  */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h.  */
3859#include <stdlib.h>
3860
3861_ACEOF
3862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863  $EGREP "free" >/dev/null 2>&1; then
3864  :
3865else
3866  ac_cv_header_stdc=no
3867fi
3868rm -f conftest*
3869
3870fi
3871
3872if test $ac_cv_header_stdc = yes; then
3873  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3874  if test "$cross_compiling" = yes; then
3875  :
3876else
3877  cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h.  */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
3882/* end confdefs.h.  */
3883#include <ctype.h>
3884#if ((' ' & 0x0FF) == 0x020)
3885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3887#else
3888# define ISLOWER(c) \
3889                   (('a' <= (c) && (c) <= 'i') \
3890                     || ('j' <= (c) && (c) <= 'r') \
3891                     || ('s' <= (c) && (c) <= 'z'))
3892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3893#endif
3894
3895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3896int
3897main ()
3898{
3899  int i;
3900  for (i = 0; i < 256; i++)
3901    if (XOR (islower (i), ISLOWER (i))
3902        || toupper (i) != TOUPPER (i))
3903      exit(2);
3904  exit (0);
3905}
3906_ACEOF
3907rm -f conftest$ac_exeext
3908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909  (eval $ac_link) 2>&5
3910  ac_status=$?
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914  (eval $ac_try) 2>&5
3915  ac_status=$?
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); }; }; then
3918  :
3919else
3920  echo "$as_me: program exited with status $ac_status" >&5
3921echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924( exit $ac_status )
3925ac_cv_header_stdc=no
3926fi
3927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3928fi
3929fi
3930fi
3931echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3932echo "${ECHO_T}$ac_cv_header_stdc" >&6
3933if test $ac_cv_header_stdc = yes; then
3934
3935cat >>confdefs.h <<\_ACEOF
3936#define STDC_HEADERS 1
3937_ACEOF
3938
3939fi
3940
3941
3942## THIS IS OUR DEFAULT-DATA-DIRECTORY
3943
3944##################################
3945## CHECKING  OPTIONAL ARGUMENTS ##
3946##################################
3947#----------------#
3948# Data-Directory #
3949#----------------#
3950DATA_DIR=$datadir
3951echo \$\{prefix\}
3952if test $DATA_DIR = \$\{prefix\}/share ; then
3953        echo "not given"
3954        DATA_DIR=/usr/share
3955else
3956        echo "given: $DATA_DIR"
3957fi
3958
3959cat >>confdefs.h <<_ACEOF
3960#define DATADIR "$DATA_DIR"
3961_ACEOF
3962
3963
3964#-----------------#
3965# shared-lib-path #
3966#-----------------#
3967SHARED_LIB_PATH=no
3968echo "$as_me:$LINENO: checking shared lib path" >&5
3969echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3970
3971# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3972if test "${with_shared_lib_path+set}" = set; then
3973  withval="$with_shared_lib_path"
3974  SHARED_LIB_PATH=$withval
3975fi;
3976if test x$SHARED_LIB_PATH != xno; then
3977        echo "set to $SHARED_LIB_PATH"
3978else
3979        echo "no"
3980fi
3981
3982
3983#-----------------#
3984# DEBUG-statement #
3985#-----------------#
3986DEBUG=no
3987echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3988echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3989# Check whether --enable-debug or --disable-debug was given.
3990if test "${enable_debug+set}" = set; then
3991  enableval="$enable_debug"
3992  DEBUG=$enableval
3993fi;
3994
3995if test x$DEBUG = xno; then
3996        echo "no"
3997        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3998        DEBUG=4
3999elif test x$DEBUG = xyes; then
4000        echo "yes"
4001        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
4002        DEBUG=4
4003else
4004        echo "yes: setting debuglevel to to $DEBUG"
4005fi
4006
4007cat >>confdefs.h <<_ACEOF
4008#define DEBUG $DEBUG
4009_ACEOF
4010
4011
4012
4013#---------------#
4014# Modular Debug #
4015#---------------#
4016MODULAR_DEBUG=yes
4017echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4018echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4019# Check whether --enable-modular-debug or --disable-modular-debug was given.
4020if test "${enable_modular_debug+set}" = set; then
4021  enableval="$enable_modular_debug"
4022  MODULAR_DEBUG=$enableval
4023fi;
4024
4025if test x$MODULAR_DEBUG = xno; then
4026        echo "no"
4027elif test x$MODULAR_DEBUG = xyes; then
4028        echo "yes"
4029
4030cat >>confdefs.h <<_ACEOF
4031#define MODULAR_DEBUG 1
4032_ACEOF
4033
4034fi
4035
4036#--------------#
4037# GTK-disabled #
4038#--------------#
4039echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4040echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4041# Check whether --enable-gtk or --disable-gtk was given.
4042if test "${enable_gtk+set}" = set; then
4043  enableval="$enable_gtk"
4044  def_gtk=no
4045else
4046  def_gtk=yes
4047fi;
4048if test x$def_gtk = xyes; then
4049  echo "yes"
4050fi
4051if test x$def_gtk = xno; then
4052  echo "no"
4053fi
4054
4055#------------------#
4056# libCurl-disabled #
4057#------------------#
4058echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4059echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4060# Check whether --enable-curl or --disable-curl was given.
4061if test "${enable_curl+set}" = set; then
4062  enableval="$enable_curl"
4063  def_curl=no
4064else
4065  def_curl=yes
4066fi;
4067if test x$def_curl = xyes; then
4068  echo "yes"
4069fi
4070if test x$def_curl = xno; then
4071  echo "no"
4072fi
4073
4074#-------------------#
4075# SubProject-enable #
4076#-------------------#
4077def_sub_projects=no
4078echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4079echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4080
4081# Check whether --with-sub-projects or --without-sub-projects was given.
4082if test "${with_sub_projects+set}" = set; then
4083  withval="$with_sub_projects"
4084  def_sub_projects=yes
4085fi;
4086if test x$def_sub_projects = xyes; then
4087  echo "yes"
4088fi
4089if test x$def_sub_projects = xno; then
4090  echo "no"
4091fi
4092
4093
4094if test x$def_sub_projects = xyes; then
4095  SUB_PROJECTS_TRUE=
4096  SUB_PROJECTS_FALSE='#'
4097else
4098  SUB_PROJECTS_TRUE='#'
4099  SUB_PROJECTS_FALSE=
4100fi
4101
4102
4103#-------------------#
4104# Profiling Enabled #
4105#-------------------#
4106def_profiling=no
4107echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4108echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4109# Check whether --enable-profile or --disable-profile was given.
4110if test "${enable_profile+set}" = set; then
4111  enableval="$enable_profile"
4112  def_profiling=yes
4113fi;
4114if test x$def_profiling = xyes; then
4115  echo "yes"
4116  CXXFLAGS="$CXXFLAGS -pg"
4117fi
4118if test x$def_profiling = xno; then
4119  echo "no"
4120fi
4121
4122#----------------#
4123# efence Enabled #
4124#----------------#
4125def_efence=no
4126echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4127echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4128# Check whether --enable-efence or --disable-efence was given.
4129if test "${enable_efence+set}" = set; then
4130  enableval="$enable_efence"
4131  def_efence=yes
4132fi;
4133if test x$def_efence = xyes; then
4134  echo "yes"
4135fi
4136if test x$def_efence = xno; then
4137  echo "no"
4138fi
4139
4140#----------------------#
4141# Documentation-enable #
4142#----------------------#
4143def_documentation=no
4144echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4145echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4146# Check whether --enable-documentation or --disable-documentation was given.
4147if test "${enable_documentation+set}" = set; then
4148  enableval="$enable_documentation"
4149  def_documentation=yes
4150fi;
4151if test x$def_documentation = xyes; then
4152  echo "yes"
4153fi
4154if test x$def_documentation = xno; then
4155  echo "no"
4156fi
4157
4158
4159if test x$def_documentation = xyes; then
4160  DOCUMENTATION_TRUE=
4161  DOCUMENTATION_FALSE='#'
4162else
4163  DOCUMENTATION_TRUE='#'
4164  DOCUMENTATION_FALSE=
4165fi
4166
4167
4168
4169
4170#---------------------------#
4171# WITH TARDIS (convenience) #
4172#---------------------------#
4173def_tardis=no
4174GTKPATH=""
4175echo "$as_me:$LINENO: checking convenience flag for working at the taris in the ETH zurich" >&5
4176echo $ECHO_N "checking convenience flag for working at the taris in the ETH zurich... $ECHO_C" >&6
4177
4178# Check whether --with-tardis or --without-tardis was given.
4179if test "${with_tardis+set}" = set; then
4180  withval="$with_tardis"
4181  def_tardis=yes
4182fi;
4183if test x$def_tardis = xyes; then
4184  ARCH=i686-debian-linux3.1
4185   ## GAMELIBS
4186  PREFIX=/usr/pack/gamelibs-1.0-to
4187  CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
4188  LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib"
4189  ## GTK
4190  GTKPREFIX=/usr/pack/gtk-2.8.3-mo
4191  GTKPATH=${GTKPREFIX}/${ARCH}/bin
4192  CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include"
4193  LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib"
4194  echo "yes"
4195fi
4196if test x$def_tardis = xno; then
4197  echo "no"
4198fi
4199
4200#######################
4201## PROGRAMM CHECKING ##
4202## 3. party Programs ##
4203#######################
4204
4205#----------------------#
4206# checking for Doxygen #
4207#----------------------#
4208# Extract the first word of "doxygen", so it can be a program name with args.
4209set dummy doxygen; ac_word=$2
4210echo "$as_me:$LINENO: checking for $ac_word" >&5
4211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212if test "${ac_cv_path_DOXYGEN+set}" = set; then
4213  echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215  case $DOXYGEN in
4216  [\\/]* | ?:[\\/]*)
4217  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4218  ;;
4219  *)
4220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225  for ac_exec_ext in '' $ac_executable_extensions; do
4226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232done
4233
4234  ;;
4235esac
4236fi
4237DOXYGEN=$ac_cv_path_DOXYGEN
4238
4239if test -n "$DOXYGEN"; then
4240  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4241echo "${ECHO_T}$DOXYGEN" >&6
4242else
4243  echo "$as_me:$LINENO: result: no" >&5
4244echo "${ECHO_T}no" >&6
4245fi
4246
4247
4248
4249if test $DOXYGEN; then
4250  DOXYGEN_TRUE=
4251  DOXYGEN_FALSE='#'
4252else
4253  DOXYGEN_TRUE='#'
4254  DOXYGEN_FALSE=
4255fi
4256
4257
4258#--------------------#
4259# checking for gprof #
4260#--------------------#
4261# Extract the first word of "gprof", so it can be a program name with args.
4262set dummy gprof; ac_word=$2
4263echo "$as_me:$LINENO: checking for $ac_word" >&5
4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265if test "${ac_cv_path_GPROF+set}" = set; then
4266  echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268  case $GPROF in
4269  [\\/]* | ?:[\\/]*)
4270  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4271  ;;
4272  *)
4273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278  for ac_exec_ext in '' $ac_executable_extensions; do
4279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282    break 2
4283  fi
4284done
4285done
4286
4287  ;;
4288esac
4289fi
4290GPROF=$ac_cv_path_GPROF
4291
4292if test -n "$GPROF"; then
4293  echo "$as_me:$LINENO: result: $GPROF" >&5
4294echo "${ECHO_T}$GPROF" >&6
4295else
4296  echo "$as_me:$LINENO: result: no" >&5
4297echo "${ECHO_T}no" >&6
4298fi
4299
4300
4301#-------------------------#
4302# checking for pkg-config #
4303#-------------------------#
4304if test x$def_gtk = xyes; then
4305 if test x${GTKPATH} != x; then
4306   # Extract the first word of "pkg-config", so it can be a program name with args.
4307set dummy pkg-config; ac_word=$2
4308echo "$as_me:$LINENO: checking for $ac_word" >&5
4309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4310if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4311  echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313  case $PKG_CONFIG in
4314  [\\/]* | ?:[\\/]*)
4315  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4316  ;;
4317  *)
4318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $GTKPATH
4320do
4321  IFS=$as_save_IFS
4322  test -z "$as_dir" && as_dir=.
4323  for ac_exec_ext in '' $ac_executable_extensions; do
4324  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327    break 2
4328  fi
4329done
4330done
4331
4332  ;;
4333esac
4334fi
4335PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4336
4337if test -n "$PKG_CONFIG"; then
4338  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4339echo "${ECHO_T}$PKG_CONFIG" >&6
4340else
4341  echo "$as_me:$LINENO: result: no" >&5
4342echo "${ECHO_T}no" >&6
4343fi
4344
4345 else
4346   # Extract the first word of "pkg-config ", so it can be a program name with args.
4347set dummy pkg-config ; ac_word=$2
4348echo "$as_me:$LINENO: checking for $ac_word" >&5
4349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  case $PKG_CONFIG in
4354  [\\/]* | ?:[\\/]*)
4355  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4356  ;;
4357  *)
4358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  test -z "$as_dir" && as_dir=.
4363  for ac_exec_ext in '' $ac_executable_extensions; do
4364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367    break 2
4368  fi
4369done
4370done
4371
4372  ;;
4373esac
4374fi
4375PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4376
4377if test -n "$PKG_CONFIG"; then
4378  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4379echo "${ECHO_T}$PKG_CONFIG" >&6
4380else
4381  echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383fi
4384
4385 fi
4386fi
4387
4388
4389#########################
4390## CHECKING FOR SYSTEM ##
4391#########################
4392## here the system is checked, and openGL is included
4393## also checking for SDL on differen Systems
4394
4395echo "$as_me:$LINENO: checking for System" >&5
4396echo $ECHO_N "checking for System... $ECHO_C" >&6
4397## checking for openGL-environment and other sys-specific parameters
4398case "$target" in
4399
4400###########
4401#---------#
4402# WINDOWS #
4403#---------#
4404###########
4405  *-*-mingw32*)
4406echo "mingw-WINDOWS detected"
4407
4408CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4409
4410    mingw="yes"
4411    MSBITFIELDS="-mms-bitfields"
4412    MWINDOWS="-mwindows"
4413
4414#--------#
4415# MIN-GW #
4416#--------#
4417# checking for mingw32
4418    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4419echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4420if test "${ac_cv_lib_mingw32_main+set}" = set; then
4421  echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423  ac_check_lib_save_LIBS=$LIBS
4424LIBS="-lmingw32  $LIBS"
4425cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h.  */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h.  */
4431
4432
4433int
4434main ()
4435{
4436main ();
4437  ;
4438  return 0;
4439}
4440_ACEOF
4441rm -f conftest.$ac_objext conftest$ac_exeext
4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443  (eval $ac_link) 2>conftest.er1
4444  ac_status=$?
4445  grep -v '^ *+' conftest.er1 >conftest.err
4446  rm -f conftest.er1
4447  cat conftest.err >&5
4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); } &&
4450         { ac_try='test -z "$ac_c_werror_flag"
4451                         || test ! -s conftest.err'
4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453  (eval $ac_try) 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); }; } &&
4457         { ac_try='test -s conftest$ac_exeext'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  ac_cv_lib_mingw32_main=yes
4464else
4465  echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468ac_cv_lib_mingw32_main=no
4469fi
4470rm -f conftest.err conftest.$ac_objext \
4471      conftest$ac_exeext conftest.$ac_ext
4472LIBS=$ac_check_lib_save_LIBS
4473fi
4474echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4475echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4476if test $ac_cv_lib_mingw32_main = yes; then
4477  FOUND_mingw32=yes
4478fi
4479
4480    if test x$FOUND_mingw32 = xyes; then
4481        LIBS="$LIBS -lmingw32"
4482    fi
4483
4484#---------------#
4485# open-GL (win) #
4486#---------------#
4487# checking gl header
4488   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4499                  inttypes.h stdint.h unistd.h
4500do
4501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4502echo "$as_me:$LINENO: checking for $ac_header" >&5
4503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4504if eval "test \"\${$as_ac_Header+set}\" = set"; then
4505  echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507  cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h.  */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h.  */
4513$ac_includes_default
4514
4515#include <$ac_header>
4516_ACEOF
4517rm -f conftest.$ac_objext
4518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519  (eval $ac_compile) 2>conftest.er1
4520  ac_status=$?
4521  grep -v '^ *+' conftest.er1 >conftest.err
4522  rm -f conftest.er1
4523  cat conftest.err >&5
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); } &&
4526         { ac_try='test -z "$ac_c_werror_flag"
4527                         || test ! -s conftest.err'
4528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529  (eval $ac_try) 2>&5
4530  ac_status=$?
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; } &&
4533         { ac_try='test -s conftest.$ac_objext'
4534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535  (eval $ac_try) 2>&5
4536  ac_status=$?
4537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538  (exit $ac_status); }; }; then
4539  eval "$as_ac_Header=yes"
4540else
4541  echo "$as_me: failed program was:" >&5
4542sed 's/^/| /' conftest.$ac_ext >&5
4543
4544eval "$as_ac_Header=no"
4545fi
4546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547fi
4548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4550if test `eval echo '${'$as_ac_Header'}'` = yes; then
4551  cat >>confdefs.h <<_ACEOF
4552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4553_ACEOF
4554
4555fi
4556
4557done
4558
4559
4560
4561for ac_header in GL/gl.h
4562do
4563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4564if eval "test \"\${$as_ac_Header+set}\" = set"; then
4565  echo "$as_me:$LINENO: checking for $ac_header" >&5
4566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4567if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568  echo $ECHO_N "(cached) $ECHO_C" >&6
4569fi
4570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4572else
4573  # Is the header compilable?
4574echo "$as_me:$LINENO: checking $ac_header usability" >&5
4575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4576cat >conftest.$ac_ext <<_ACEOF
4577/* confdefs.h.  */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h.  */
4582$ac_includes_default
4583#include <$ac_header>
4584_ACEOF
4585rm -f conftest.$ac_objext
4586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587  (eval $ac_compile) 2>conftest.er1
4588  ac_status=$?
4589  grep -v '^ *+' conftest.er1 >conftest.err
4590  rm -f conftest.er1
4591  cat conftest.err >&5
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } &&
4594         { ac_try='test -z "$ac_c_werror_flag"
4595                         || test ! -s conftest.err'
4596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597  (eval $ac_try) 2>&5
4598  ac_status=$?
4599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600  (exit $ac_status); }; } &&
4601         { ac_try='test -s conftest.$ac_objext'
4602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603  (eval $ac_try) 2>&5
4604  ac_status=$?
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); }; }; then
4607  ac_header_compiler=yes
4608else
4609  echo "$as_me: failed program was:" >&5
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612ac_header_compiler=no
4613fi
4614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4616echo "${ECHO_T}$ac_header_compiler" >&6
4617
4618# Is the header present?
4619echo "$as_me:$LINENO: checking $ac_header presence" >&5
4620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4621cat >conftest.$ac_ext <<_ACEOF
4622/* confdefs.h.  */
4623_ACEOF
4624cat confdefs.h >>conftest.$ac_ext
4625cat >>conftest.$ac_ext <<_ACEOF
4626/* end confdefs.h.  */
4627#include <$ac_header>
4628_ACEOF
4629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4631  ac_status=$?
4632  grep -v '^ *+' conftest.er1 >conftest.err
4633  rm -f conftest.er1
4634  cat conftest.err >&5
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); } >/dev/null; then
4637  if test -s conftest.err; then
4638    ac_cpp_err=$ac_c_preproc_warn_flag
4639    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4640  else
4641    ac_cpp_err=
4642  fi
4643else
4644  ac_cpp_err=yes
4645fi
4646if test -z "$ac_cpp_err"; then
4647  ac_header_preproc=yes
4648else
4649  echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652  ac_header_preproc=no
4653fi
4654rm -f conftest.err conftest.$ac_ext
4655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4656echo "${ECHO_T}$ac_header_preproc" >&6
4657
4658# So?  What about this header?
4659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4660  yes:no: )
4661    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4663    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4665    ac_header_preproc=yes
4666    ;;
4667  no:yes:* )
4668    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4670    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4671echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4672    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4674    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4675echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4676    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4678    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4680    (
4681      cat <<\_ASBOX
4682## ---------------------------------------------- ##
4683## Report this to orxonox-dev at mail.datacore.ch ##
4684## ---------------------------------------------- ##
4685_ASBOX
4686    ) |
4687      sed "s/^/$as_me: WARNING:     /" >&2
4688    ;;
4689esac
4690echo "$as_me:$LINENO: checking for $ac_header" >&5
4691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4692if eval "test \"\${$as_ac_Header+set}\" = set"; then
4693  echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695  eval "$as_ac_Header=\$ac_header_preproc"
4696fi
4697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4699
4700fi
4701if test `eval echo '${'$as_ac_Header'}'` = yes; then
4702  cat >>confdefs.h <<_ACEOF
4703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704_ACEOF
4705
4706else
4707  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4708echo "$as_me: error: cannot find opengl headers" >&2;}
4709   { (exit 1); exit 1; }; }
4710fi
4711
4712done
4713
4714#   checking for Windows openGl library
4715    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4716echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4717if test "${ac_cv_lib_opengl32_main+set}" = set; then
4718  echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720  ac_check_lib_save_LIBS=$LIBS
4721LIBS="-lopengl32  $LIBS"
4722cat >conftest.$ac_ext <<_ACEOF
4723/* confdefs.h.  */
4724_ACEOF
4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h.  */
4728
4729
4730int
4731main ()
4732{
4733main ();
4734  ;
4735  return 0;
4736}
4737_ACEOF
4738rm -f conftest.$ac_objext conftest$ac_exeext
4739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740  (eval $ac_link) 2>conftest.er1
4741  ac_status=$?
4742  grep -v '^ *+' conftest.er1 >conftest.err
4743  rm -f conftest.er1
4744  cat conftest.err >&5
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); } &&
4747         { ac_try='test -z "$ac_c_werror_flag"
4748                         || test ! -s conftest.err'
4749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750  (eval $ac_try) 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); }; } &&
4754         { ac_try='test -s conftest$ac_exeext'
4755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756  (eval $ac_try) 2>&5
4757  ac_status=$?
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); }; }; then
4760  ac_cv_lib_opengl32_main=yes
4761else
4762  echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765ac_cv_lib_opengl32_main=no
4766fi
4767rm -f conftest.err conftest.$ac_objext \
4768      conftest$ac_exeext conftest.$ac_ext
4769LIBS=$ac_check_lib_save_LIBS
4770fi
4771echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4772echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4773if test $ac_cv_lib_opengl32_main = yes; then
4774  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
4775fi
4776
4777    if test x$FOUND_GL != xyes ; then
4778         echo "------------------"
4779         echo "opengl not found."
4780         echo "please install the opengl package which can be found at http://www.opengl.org"
4781         echo "------------------"
4782         exit -1
4783    fi
4784
4785# cheking for GLU-header
4786
4787for ac_header in GL/glu.h
4788do
4789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791  echo "$as_me:$LINENO: checking for $ac_header" >&5
4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795fi
4796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4798else
4799  # Is the header compilable?
4800echo "$as_me:$LINENO: checking $ac_header usability" >&5
4801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4802cat >conftest.$ac_ext <<_ACEOF
4803/* confdefs.h.  */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h.  */
4808$ac_includes_default
4809#include <$ac_header>
4810_ACEOF
4811rm -f conftest.$ac_objext
4812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813  (eval $ac_compile) 2>conftest.er1
4814  ac_status=$?
4815  grep -v '^ *+' conftest.er1 >conftest.err
4816  rm -f conftest.er1
4817  cat conftest.err >&5
4818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819  (exit $ac_status); } &&
4820         { ac_try='test -z "$ac_c_werror_flag"
4821                         || test ! -s conftest.err'
4822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823  (eval $ac_try) 2>&5
4824  ac_status=$?
4825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826  (exit $ac_status); }; } &&
4827         { ac_try='test -s conftest.$ac_objext'
4828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829  (eval $ac_try) 2>&5
4830  ac_status=$?
4831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832  (exit $ac_status); }; }; then
4833  ac_header_compiler=yes
4834else
4835  echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838ac_header_compiler=no
4839fi
4840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4842echo "${ECHO_T}$ac_header_compiler" >&6
4843
4844# Is the header present?
4845echo "$as_me:$LINENO: checking $ac_header presence" >&5
4846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4847cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h.  */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h.  */
4853#include <$ac_header>
4854_ACEOF
4855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4856  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4857  ac_status=$?
4858  grep -v '^ *+' conftest.er1 >conftest.err
4859  rm -f conftest.er1
4860  cat conftest.err >&5
4861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862  (exit $ac_status); } >/dev/null; then
4863  if test -s conftest.err; then
4864    ac_cpp_err=$ac_c_preproc_warn_flag
4865    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4866  else
4867    ac_cpp_err=
4868  fi
4869else
4870  ac_cpp_err=yes
4871fi
4872if test -z "$ac_cpp_err"; then
4873  ac_header_preproc=yes
4874else
4875  echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878  ac_header_preproc=no
4879fi
4880rm -f conftest.err conftest.$ac_ext
4881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4882echo "${ECHO_T}$ac_header_preproc" >&6
4883
4884# So?  What about this header?
4885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4886  yes:no: )
4887    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4889    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4891    ac_header_preproc=yes
4892    ;;
4893  no:yes:* )
4894    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4896    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4897echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4898    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4900    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4901echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4904    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4906    (
4907      cat <<\_ASBOX
4908## ---------------------------------------------- ##
4909## Report this to orxonox-dev at mail.datacore.ch ##
4910## ---------------------------------------------- ##
4911_ASBOX
4912    ) |
4913      sed "s/^/$as_me: WARNING:     /" >&2
4914    ;;
4915esac
4916echo "$as_me:$LINENO: checking for $ac_header" >&5
4917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4918if eval "test \"\${$as_ac_Header+set}\" = set"; then
4919  echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921  eval "$as_ac_Header=\$ac_header_preproc"
4922fi
4923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4925
4926fi
4927if test `eval echo '${'$as_ac_Header'}'` = yes; then
4928  cat >>confdefs.h <<_ACEOF
4929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4930_ACEOF
4931
4932else
4933  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4934echo "$as_me: error: cannot find opengl headers" >&2;}
4935   { (exit 1); exit 1; }; }
4936fi
4937
4938done
4939
4940
4941# checking for libGLU
4942    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4943echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4944if test "${ac_cv_lib_glu32_main+set}" = set; then
4945  echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947  ac_check_lib_save_LIBS=$LIBS
4948LIBS="-lglu32  $LIBS"
4949cat >conftest.$ac_ext <<_ACEOF
4950/* confdefs.h.  */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h.  */
4955
4956
4957int
4958main ()
4959{
4960main ();
4961  ;
4962  return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext conftest$ac_exeext
4966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967  (eval $ac_link) 2>conftest.er1
4968  ac_status=$?
4969  grep -v '^ *+' conftest.er1 >conftest.err
4970  rm -f conftest.er1
4971  cat conftest.err >&5
4972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973  (exit $ac_status); } &&
4974         { ac_try='test -z "$ac_c_werror_flag"
4975                         || test ! -s conftest.err'
4976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977  (eval $ac_try) 2>&5
4978  ac_status=$?
4979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980  (exit $ac_status); }; } &&
4981         { ac_try='test -s conftest$ac_exeext'
4982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983  (eval $ac_try) 2>&5
4984  ac_status=$?
4985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986  (exit $ac_status); }; }; then
4987  ac_cv_lib_glu32_main=yes
4988else
4989  echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992ac_cv_lib_glu32_main=no
4993fi
4994rm -f conftest.err conftest.$ac_objext \
4995      conftest$ac_exeext conftest.$ac_ext
4996LIBS=$ac_check_lib_save_LIBS
4997fi
4998echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4999echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5000if test $ac_cv_lib_glu32_main = yes; then
5001  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
5002fi
5003
5004    if test x$FOUND_GLU != xyes ; then
5005         echo "------------------"
5006         echo "GLU library not found."
5007         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5008         echo "------------------"
5009         exit -1
5010    fi
5011
5012# checking glew header
5013
5014for ac_header in GL/glew.h
5015do
5016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017if eval "test \"\${$as_ac_Header+set}\" = set"; then
5018  echo "$as_me:$LINENO: checking for $ac_header" >&5
5019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5020if eval "test \"\${$as_ac_Header+set}\" = set"; then
5021  echo $ECHO_N "(cached) $ECHO_C" >&6
5022fi
5023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5025else
5026  # Is the header compilable?
5027echo "$as_me:$LINENO: checking $ac_header usability" >&5
5028echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5029cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h.  */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h.  */
5035$ac_includes_default
5036#include <$ac_header>
5037_ACEOF
5038rm -f conftest.$ac_objext
5039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040  (eval $ac_compile) 2>conftest.er1
5041  ac_status=$?
5042  grep -v '^ *+' conftest.er1 >conftest.err
5043  rm -f conftest.er1
5044  cat conftest.err >&5
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); } &&
5047         { ac_try='test -z "$ac_c_werror_flag"
5048                         || test ! -s conftest.err'
5049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050  (eval $ac_try) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; } &&
5054         { ac_try='test -s conftest.$ac_objext'
5055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056  (eval $ac_try) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; }; then
5060  ac_header_compiler=yes
5061else
5062  echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065ac_header_compiler=no
5066fi
5067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5069echo "${ECHO_T}$ac_header_compiler" >&6
5070
5071# Is the header present?
5072echo "$as_me:$LINENO: checking $ac_header presence" >&5
5073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5074cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h.  */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h.  */
5080#include <$ac_header>
5081_ACEOF
5082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5083  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5084  ac_status=$?
5085  grep -v '^ *+' conftest.er1 >conftest.err
5086  rm -f conftest.er1
5087  cat conftest.err >&5
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } >/dev/null; then
5090  if test -s conftest.err; then
5091    ac_cpp_err=$ac_c_preproc_warn_flag
5092    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5093  else
5094    ac_cpp_err=
5095  fi
5096else
5097  ac_cpp_err=yes
5098fi
5099if test -z "$ac_cpp_err"; then
5100  ac_header_preproc=yes
5101else
5102  echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105  ac_header_preproc=no
5106fi
5107rm -f conftest.err conftest.$ac_ext
5108echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5109echo "${ECHO_T}$ac_header_preproc" >&6
5110
5111# So?  What about this header?
5112case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5113  yes:no: )
5114    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5115echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5116    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5117echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5118    ac_header_preproc=yes
5119    ;;
5120  no:yes:* )
5121    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5122echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5123    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5124echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5125    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5126echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5127    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5128echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5129    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5130echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5131    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5132echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5133    (
5134      cat <<\_ASBOX
5135## ---------------------------------------------- ##
5136## Report this to orxonox-dev at mail.datacore.ch ##
5137## ---------------------------------------------- ##
5138_ASBOX
5139    ) |
5140      sed "s/^/$as_me: WARNING:     /" >&2
5141    ;;
5142esac
5143echo "$as_me:$LINENO: checking for $ac_header" >&5
5144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5145if eval "test \"\${$as_ac_Header+set}\" = set"; then
5146  echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148  eval "$as_ac_Header=\$ac_header_preproc"
5149fi
5150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5152
5153fi
5154if test `eval echo '${'$as_ac_Header'}'` = yes; then
5155  cat >>confdefs.h <<_ACEOF
5156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157_ACEOF
5158
5159else
5160  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5161echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
5162   { (exit 1); exit 1; }; }
5163fi
5164
5165done
5166
5167#   checking for Windows glew library
5168    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5169echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5170if test "${ac_cv_lib_glew32_main+set}" = set; then
5171  echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173  ac_check_lib_save_LIBS=$LIBS
5174LIBS="-lglew32  $LIBS"
5175cat >conftest.$ac_ext <<_ACEOF
5176/* confdefs.h.  */
5177_ACEOF
5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h.  */
5181
5182
5183int
5184main ()
5185{
5186main ();
5187  ;
5188  return 0;
5189}
5190_ACEOF
5191rm -f conftest.$ac_objext conftest$ac_exeext
5192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193  (eval $ac_link) 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } &&
5200         { ac_try='test -z "$ac_c_werror_flag"
5201                         || test ! -s conftest.err'
5202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203  (eval $ac_try) 2>&5
5204  ac_status=$?
5205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206  (exit $ac_status); }; } &&
5207         { ac_try='test -s conftest$ac_exeext'
5208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209  (eval $ac_try) 2>&5
5210  ac_status=$?
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); }; }; then
5213  ac_cv_lib_glew32_main=yes
5214else
5215  echo "$as_me: failed program was:" >&5
5216sed 's/^/| /' conftest.$ac_ext >&5
5217
5218ac_cv_lib_glew32_main=no
5219fi
5220rm -f conftest.err conftest.$ac_objext \
5221      conftest$ac_exeext conftest.$ac_ext
5222LIBS=$ac_check_lib_save_LIBS
5223fi
5224echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5225echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5226if test $ac_cv_lib_glew32_main = yes; then
5227  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
5228fi
5229
5230    if test x$FOUND_GLEW != xyes ; then
5231         echo "------------------"
5232         echo "opengl extension wrangler not found."
5233         echo "please install the glew package which can be found at http://glew.sourceforge.net"
5234         echo "------------------"
5235         exit -1
5236    fi
5237
5238#--------#
5239# openAL #
5240#--------#
5241# checking for openAL-headers
5242
5243for ac_header in AL/al.h
5244do
5245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5246if eval "test \"\${$as_ac_Header+set}\" = set"; then
5247  echo "$as_me:$LINENO: checking for $ac_header" >&5
5248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5249if eval "test \"\${$as_ac_Header+set}\" = set"; then
5250  echo $ECHO_N "(cached) $ECHO_C" >&6
5251fi
5252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5254else
5255  # Is the header compilable?
5256echo "$as_me:$LINENO: checking $ac_header usability" >&5
5257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5258cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h.  */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h.  */
5264$ac_includes_default
5265#include <$ac_header>
5266_ACEOF
5267rm -f conftest.$ac_objext
5268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269  (eval $ac_compile) 2>conftest.er1
5270  ac_status=$?
5271  grep -v '^ *+' conftest.er1 >conftest.err
5272  rm -f conftest.er1
5273  cat conftest.err >&5
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); } &&
5276         { ac_try='test -z "$ac_c_werror_flag"
5277                         || test ! -s conftest.err'
5278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279  (eval $ac_try) 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); }; } &&
5283         { ac_try='test -s conftest.$ac_objext'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; }; then
5289  ac_header_compiler=yes
5290else
5291  echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
5294ac_header_compiler=no
5295fi
5296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5298echo "${ECHO_T}$ac_header_compiler" >&6
5299
5300# Is the header present?
5301echo "$as_me:$LINENO: checking $ac_header presence" >&5
5302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5303cat >conftest.$ac_ext <<_ACEOF
5304/* confdefs.h.  */
5305_ACEOF
5306cat confdefs.h >>conftest.$ac_ext
5307cat >>conftest.$ac_ext <<_ACEOF
5308/* end confdefs.h.  */
5309#include <$ac_header>
5310_ACEOF
5311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5312  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5313  ac_status=$?
5314  grep -v '^ *+' conftest.er1 >conftest.err
5315  rm -f conftest.er1
5316  cat conftest.err >&5
5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318  (exit $ac_status); } >/dev/null; then
5319  if test -s conftest.err; then
5320    ac_cpp_err=$ac_c_preproc_warn_flag
5321    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5322  else
5323    ac_cpp_err=
5324  fi
5325else
5326  ac_cpp_err=yes
5327fi
5328if test -z "$ac_cpp_err"; then
5329  ac_header_preproc=yes
5330else
5331  echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334  ac_header_preproc=no
5335fi
5336rm -f conftest.err conftest.$ac_ext
5337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5338echo "${ECHO_T}$ac_header_preproc" >&6
5339
5340# So?  What about this header?
5341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5342  yes:no: )
5343    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5347    ac_header_preproc=yes
5348    ;;
5349  no:yes:* )
5350    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5352    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5353echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5354    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5356    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5357echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5360    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5362    (
5363      cat <<\_ASBOX
5364## ---------------------------------------------- ##
5365## Report this to orxonox-dev at mail.datacore.ch ##
5366## ---------------------------------------------- ##
5367_ASBOX
5368    ) |
5369      sed "s/^/$as_me: WARNING:     /" >&2
5370    ;;
5371esac
5372echo "$as_me:$LINENO: checking for $ac_header" >&5
5373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  eval "$as_ac_Header=\$ac_header_preproc"
5378fi
5379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5381
5382fi
5383if test `eval echo '${'$as_ac_Header'}'` = yes; then
5384  cat >>confdefs.h <<_ACEOF
5385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5386_ACEOF
5387
5388else
5389  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5390echo "$as_me: error: cannot find openAL header." >&2;}
5391   { (exit 1); exit 1; }; }
5392fi
5393
5394done
5395
5396# checking for openAL-lib
5397  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5398echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5399if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5400  echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402  ac_check_lib_save_LIBS=$LIBS
5403LIBS="-lOpenAL32  $LIBS"
5404cat >conftest.$ac_ext <<_ACEOF
5405/* confdefs.h.  */
5406_ACEOF
5407cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h.  */
5410
5411
5412int
5413main ()
5414{
5415main ();
5416  ;
5417  return 0;
5418}
5419_ACEOF
5420rm -f conftest.$ac_objext conftest$ac_exeext
5421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422  (eval $ac_link) 2>conftest.er1
5423  ac_status=$?
5424  grep -v '^ *+' conftest.er1 >conftest.err
5425  rm -f conftest.er1
5426  cat conftest.err >&5
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); } &&
5429         { ac_try='test -z "$ac_c_werror_flag"
5430                         || test ! -s conftest.err'
5431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432  (eval $ac_try) 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); }; } &&
5436         { ac_try='test -s conftest$ac_exeext'
5437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438  (eval $ac_try) 2>&5
5439  ac_status=$?
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); }; }; then
5442  ac_cv_lib_OpenAL32_main=yes
5443else
5444  echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447ac_cv_lib_OpenAL32_main=no
5448fi
5449rm -f conftest.err conftest.$ac_objext \
5450      conftest$ac_exeext conftest.$ac_ext
5451LIBS=$ac_check_lib_save_LIBS
5452fi
5453echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5454echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5455if test $ac_cv_lib_OpenAL32_main = yes; then
5456  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
5457fi
5458
5459  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5460echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5461if test "${ac_cv_lib_ALut_main+set}" = set; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464  ac_check_lib_save_LIBS=$LIBS
5465LIBS="-lALut  $LIBS"
5466cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h.  */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h.  */
5472
5473
5474int
5475main ()
5476{
5477main ();
5478  ;
5479  return 0;
5480}
5481_ACEOF
5482rm -f conftest.$ac_objext conftest$ac_exeext
5483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484  (eval $ac_link) 2>conftest.er1
5485  ac_status=$?
5486  grep -v '^ *+' conftest.er1 >conftest.err
5487  rm -f conftest.er1
5488  cat conftest.err >&5
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); } &&
5491         { ac_try='test -z "$ac_c_werror_flag"
5492                         || test ! -s conftest.err'
5493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494  (eval $ac_try) 2>&5
5495  ac_status=$?
5496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497  (exit $ac_status); }; } &&
5498         { ac_try='test -s conftest$ac_exeext'
5499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500  (eval $ac_try) 2>&5
5501  ac_status=$?
5502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); }; }; then
5504  ac_cv_lib_ALut_main=yes
5505else
5506  echo "$as_me: failed program was:" >&5
5507sed 's/^/| /' conftest.$ac_ext >&5
5508
5509ac_cv_lib_ALut_main=no
5510fi
5511rm -f conftest.err conftest.$ac_objext \
5512      conftest$ac_exeext conftest.$ac_ext
5513LIBS=$ac_check_lib_save_LIBS
5514fi
5515echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5516echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5517if test $ac_cv_lib_ALut_main = yes; then
5518  FOUND_ALUT=yes; LIBS="-lALut $LIBS"
5519fi
5520
5521     if test x$FOUND_OPENAL != xyes ; then
5522        echo "------------------"
5523        echo "openal library not found."
5524        echo "please install the openal library, which can be found at http://www.openal.org"
5525        echo "------------------"
5526        exit -1
5527     fi
5528
5529
5530#-----------#
5531# SDL(win) #
5532#-----------#
5533# checking for SDL-headers
5534
5535for ac_header in SDL/SDL.h
5536do
5537as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539  echo "$as_me:$LINENO: checking for $ac_header" >&5
5540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542  echo $ECHO_N "(cached) $ECHO_C" >&6
5543fi
5544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5546else
5547  # Is the header compilable?
5548echo "$as_me:$LINENO: checking $ac_header usability" >&5
5549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5550cat >conftest.$ac_ext <<_ACEOF
5551/* confdefs.h.  */
5552_ACEOF
5553cat confdefs.h >>conftest.$ac_ext
5554cat >>conftest.$ac_ext <<_ACEOF
5555/* end confdefs.h.  */
5556$ac_includes_default
5557#include <$ac_header>
5558_ACEOF
5559rm -f conftest.$ac_objext
5560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561  (eval $ac_compile) 2>conftest.er1
5562  ac_status=$?
5563  grep -v '^ *+' conftest.er1 >conftest.err
5564  rm -f conftest.er1
5565  cat conftest.err >&5
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); } &&
5568         { ac_try='test -z "$ac_c_werror_flag"
5569                         || test ! -s conftest.err'
5570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571  (eval $ac_try) 2>&5
5572  ac_status=$?
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); }; } &&
5575         { ac_try='test -s conftest.$ac_objext'
5576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577  (eval $ac_try) 2>&5
5578  ac_status=$?
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); }; }; then
5581  ac_header_compiler=yes
5582else
5583  echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586ac_header_compiler=no
5587fi
5588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5590echo "${ECHO_T}$ac_header_compiler" >&6
5591
5592# Is the header present?
5593echo "$as_me:$LINENO: checking $ac_header presence" >&5
5594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5595cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h.  */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h.  */
5601#include <$ac_header>
5602_ACEOF
5603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5605  ac_status=$?
5606  grep -v '^ *+' conftest.er1 >conftest.err
5607  rm -f conftest.er1
5608  cat conftest.err >&5
5609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610  (exit $ac_status); } >/dev/null; then
5611  if test -s conftest.err; then
5612    ac_cpp_err=$ac_c_preproc_warn_flag
5613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5614  else
5615    ac_cpp_err=
5616  fi
5617else
5618  ac_cpp_err=yes
5619fi
5620if test -z "$ac_cpp_err"; then
5621  ac_header_preproc=yes
5622else
5623  echo "$as_me: failed program was:" >&5
5624sed 's/^/| /' conftest.$ac_ext >&5
5625
5626  ac_header_preproc=no
5627fi
5628rm -f conftest.err conftest.$ac_ext
5629echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5630echo "${ECHO_T}$ac_header_preproc" >&6
5631
5632# So?  What about this header?
5633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5634  yes:no: )
5635    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5636echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5637    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5638echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5639    ac_header_preproc=yes
5640    ;;
5641  no:yes:* )
5642    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5643echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5644    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5645echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5646    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5647echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5648    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5649echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5650    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5652    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5653echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5654    (
5655      cat <<\_ASBOX
5656## ---------------------------------------------- ##
5657## Report this to orxonox-dev at mail.datacore.ch ##
5658## ---------------------------------------------- ##
5659_ASBOX
5660    ) |
5661      sed "s/^/$as_me: WARNING:     /" >&2
5662    ;;
5663esac
5664echo "$as_me:$LINENO: checking for $ac_header" >&5
5665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5666if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667  echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669  eval "$as_ac_Header=\$ac_header_preproc"
5670fi
5671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5673
5674fi
5675if test `eval echo '${'$as_ac_Header'}'` = yes; then
5676  cat >>confdefs.h <<_ACEOF
5677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678_ACEOF
5679
5680else
5681  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5682echo "$as_me: error: cannot find SDL headers" >&2;}
5683   { (exit 1); exit 1; }; }
5684fi
5685
5686done
5687
5688
5689#checking for libSDL
5690    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5691echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5692if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5693  echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695  ac_check_lib_save_LIBS=$LIBS
5696LIBS="-lsdlmain  $LIBS"
5697cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h.  */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h.  */
5703
5704
5705int
5706main ()
5707{
5708main ();
5709  ;
5710  return 0;
5711}
5712_ACEOF
5713rm -f conftest.$ac_objext conftest$ac_exeext
5714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5715  (eval $ac_link) 2>conftest.er1
5716  ac_status=$?
5717  grep -v '^ *+' conftest.er1 >conftest.err
5718  rm -f conftest.er1
5719  cat conftest.err >&5
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); } &&
5722         { ac_try='test -z "$ac_c_werror_flag"
5723                         || test ! -s conftest.err'
5724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725  (eval $ac_try) 2>&5
5726  ac_status=$?
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); }; } &&
5729         { ac_try='test -s conftest$ac_exeext'
5730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731  (eval $ac_try) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }; }; then
5735  ac_cv_lib_sdlmain_main=yes
5736else
5737  echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
5740ac_cv_lib_sdlmain_main=no
5741fi
5742rm -f conftest.err conftest.$ac_objext \
5743      conftest$ac_exeext conftest.$ac_ext
5744LIBS=$ac_check_lib_save_LIBS
5745fi
5746echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5747echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5748if test $ac_cv_lib_sdlmain_main = yes; then
5749  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
5750fi
5751
5752    if test x$FOUND_sdlmain != xyes ; then
5753        echo "------------------"
5754        echo "SDL library not found."
5755        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5756        echo "------------------"
5757        exit 1
5758    fi
5759    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5760echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5761if test "${ac_cv_lib_sdl_main+set}" = set; then
5762  echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764  ac_check_lib_save_LIBS=$LIBS
5765LIBS="-lsdl  $LIBS"
5766cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h.  */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h.  */
5772
5773
5774int
5775main ()
5776{
5777main ();
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext conftest$ac_exeext
5783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784  (eval $ac_link) 2>conftest.er1
5785  ac_status=$?
5786  grep -v '^ *+' conftest.er1 >conftest.err
5787  rm -f conftest.er1
5788  cat conftest.err >&5
5789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790  (exit $ac_status); } &&
5791         { ac_try='test -z "$ac_c_werror_flag"
5792                         || test ! -s conftest.err'
5793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794  (eval $ac_try) 2>&5
5795  ac_status=$?
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); }; } &&
5798         { ac_try='test -s conftest$ac_exeext'
5799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800  (eval $ac_try) 2>&5
5801  ac_status=$?
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); }; }; then
5804  ac_cv_lib_sdl_main=yes
5805else
5806  echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_cv_lib_sdl_main=no
5810fi
5811rm -f conftest.err conftest.$ac_objext \
5812      conftest$ac_exeext conftest.$ac_ext
5813LIBS=$ac_check_lib_save_LIBS
5814fi
5815echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5816echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5817if test $ac_cv_lib_sdl_main = yes; then
5818  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
5819fi
5820
5821    if test x$FOUND_SDL != xyes ; then
5822        echo "------------------"
5823        echo "SDL library not found."
5824        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5825        echo "------------------"
5826        exit -1
5827    fi
5828
5829  ;;
5830
5831#########
5832#-------#
5833# LINUX #
5834#-------#
5835#########
5836 *-*-linux*)
5837echo "Linux detected"
5838
5839 Linux="yes"
5840
5841##CPPFLAGS="-I/usr/include $CPPFLAGS"
5842##LDFLAGS="-L/usr/lib $LDFLAGS"
5843if test x$SHARED_LIB_PATH != xno; then
5844        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5845        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5846fi
5847
5848#--------#
5849# openGL #
5850#--------#
5851# checking gl header
5852
5853for ac_header in GL/gl.h
5854do
5855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5856if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857  echo "$as_me:$LINENO: checking for $ac_header" >&5
5858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5859if eval "test \"\${$as_ac_Header+set}\" = set"; then
5860  echo $ECHO_N "(cached) $ECHO_C" >&6
5861fi
5862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5864else
5865  # Is the header compilable?
5866echo "$as_me:$LINENO: checking $ac_header usability" >&5
5867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5868cat >conftest.$ac_ext <<_ACEOF
5869/* confdefs.h.  */
5870_ACEOF
5871cat confdefs.h >>conftest.$ac_ext
5872cat >>conftest.$ac_ext <<_ACEOF
5873/* end confdefs.h.  */
5874$ac_includes_default
5875#include <$ac_header>
5876_ACEOF
5877rm -f conftest.$ac_objext
5878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879  (eval $ac_compile) 2>conftest.er1
5880  ac_status=$?
5881  grep -v '^ *+' conftest.er1 >conftest.err
5882  rm -f conftest.er1
5883  cat conftest.err >&5
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); } &&
5886         { ac_try='test -z "$ac_c_werror_flag"
5887                         || test ! -s conftest.err'
5888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889  (eval $ac_try) 2>&5
5890  ac_status=$?
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); }; } &&
5893         { ac_try='test -s conftest.$ac_objext'
5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895  (eval $ac_try) 2>&5
5896  ac_status=$?
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); }; }; then
5899  ac_header_compiler=yes
5900else
5901  echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904ac_header_compiler=no
5905fi
5906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5908echo "${ECHO_T}$ac_header_compiler" >&6
5909
5910# Is the header present?
5911echo "$as_me:$LINENO: checking $ac_header presence" >&5
5912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5913cat >conftest.$ac_ext <<_ACEOF
5914/* confdefs.h.  */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h.  */
5919#include <$ac_header>
5920_ACEOF
5921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5922  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5923  ac_status=$?
5924  grep -v '^ *+' conftest.er1 >conftest.err
5925  rm -f conftest.er1
5926  cat conftest.err >&5
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); } >/dev/null; then
5929  if test -s conftest.err; then
5930    ac_cpp_err=$ac_c_preproc_warn_flag
5931    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5932  else
5933    ac_cpp_err=
5934  fi
5935else
5936  ac_cpp_err=yes
5937fi
5938if test -z "$ac_cpp_err"; then
5939  ac_header_preproc=yes
5940else
5941  echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944  ac_header_preproc=no
5945fi
5946rm -f conftest.err conftest.$ac_ext
5947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5948echo "${ECHO_T}$ac_header_preproc" >&6
5949
5950# So?  What about this header?
5951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5952  yes:no: )
5953    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5957    ac_header_preproc=yes
5958    ;;
5959  no:yes:* )
5960    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5962    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5963echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5964    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5966    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5967echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5968    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5970    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5972    (
5973      cat <<\_ASBOX
5974## ---------------------------------------------- ##
5975## Report this to orxonox-dev at mail.datacore.ch ##
5976## ---------------------------------------------- ##
5977_ASBOX
5978    ) |
5979      sed "s/^/$as_me: WARNING:     /" >&2
5980    ;;
5981esac
5982echo "$as_me:$LINENO: checking for $ac_header" >&5
5983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5984if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985  echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987  eval "$as_ac_Header=\$ac_header_preproc"
5988fi
5989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5991
5992fi
5993if test `eval echo '${'$as_ac_Header'}'` = yes; then
5994  cat >>confdefs.h <<_ACEOF
5995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996_ACEOF
5997
5998else
5999  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6000echo "$as_me: error: cannot find opengl headers" >&2;}
6001   { (exit 1); exit 1; }; }
6002fi
6003
6004done
6005
6006
6007#  checking for Unix GL
6008   echo "$as_me:$LINENO: checking for main in -lGL" >&5
6009echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6010if test "${ac_cv_lib_GL_main+set}" = set; then
6011  echo $ECHO_N "(cached) $ECHO_C" >&6
6012else
6013  ac_check_lib_save_LIBS=$LIBS
6014LIBS="-lGL  $LIBS"
6015cat >conftest.$ac_ext <<_ACEOF
6016/* confdefs.h.  */
6017_ACEOF
6018cat confdefs.h >>conftest.$ac_ext
6019cat >>conftest.$ac_ext <<_ACEOF
6020/* end confdefs.h.  */
6021
6022
6023int
6024main ()
6025{
6026main ();
6027  ;
6028  return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext conftest$ac_exeext
6032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6033  (eval $ac_link) 2>conftest.er1
6034  ac_status=$?
6035  grep -v '^ *+' conftest.er1 >conftest.err
6036  rm -f conftest.er1
6037  cat conftest.err >&5
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); } &&
6040         { ac_try='test -z "$ac_c_werror_flag"
6041                         || test ! -s conftest.err'
6042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043  (eval $ac_try) 2>&5
6044  ac_status=$?
6045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046  (exit $ac_status); }; } &&
6047         { ac_try='test -s conftest$ac_exeext'
6048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049  (eval $ac_try) 2>&5
6050  ac_status=$?
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); }; }; then
6053  ac_cv_lib_GL_main=yes
6054else
6055  echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058ac_cv_lib_GL_main=no
6059fi
6060rm -f conftest.err conftest.$ac_objext \
6061      conftest$ac_exeext conftest.$ac_ext
6062LIBS=$ac_check_lib_save_LIBS
6063fi
6064echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6065echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6066if test $ac_cv_lib_GL_main = yes; then
6067  FOUND_GL=yes; LIBS="$LIBS -lGL"
6068fi
6069
6070   if test x$FOUND_GL != xyes ; then
6071         echo "------------------"
6072         echo "opengl not found."
6073         echo "please install the opengl package which can be found at http://www.opengl.org"
6074         echo "------------------"
6075         exit -1
6076   fi
6077
6078# cheking for GLU-header
6079
6080for ac_header in GL/glu.h
6081do
6082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6083if eval "test \"\${$as_ac_Header+set}\" = set"; then
6084  echo "$as_me:$LINENO: checking for $ac_header" >&5
6085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6086if eval "test \"\${$as_ac_Header+set}\" = set"; then
6087  echo $ECHO_N "(cached) $ECHO_C" >&6
6088fi
6089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6091else
6092  # Is the header compilable?
6093echo "$as_me:$LINENO: checking $ac_header usability" >&5
6094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6095cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h.  */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h.  */
6101$ac_includes_default
6102#include <$ac_header>
6103_ACEOF
6104rm -f conftest.$ac_objext
6105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106  (eval $ac_compile) 2>conftest.er1
6107  ac_status=$?
6108  grep -v '^ *+' conftest.er1 >conftest.err
6109  rm -f conftest.er1
6110  cat conftest.err >&5
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); } &&
6113         { ac_try='test -z "$ac_c_werror_flag"
6114                         || test ! -s conftest.err'
6115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116  (eval $ac_try) 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; } &&
6120         { ac_try='test -s conftest.$ac_objext'
6121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122  (eval $ac_try) 2>&5
6123  ac_status=$?
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); }; }; then
6126  ac_header_compiler=yes
6127else
6128  echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131ac_header_compiler=no
6132fi
6133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6135echo "${ECHO_T}$ac_header_compiler" >&6
6136
6137# Is the header present?
6138echo "$as_me:$LINENO: checking $ac_header presence" >&5
6139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6140cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h.  */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h.  */
6146#include <$ac_header>
6147_ACEOF
6148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150  ac_status=$?
6151  grep -v '^ *+' conftest.er1 >conftest.err
6152  rm -f conftest.er1
6153  cat conftest.err >&5
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); } >/dev/null; then
6156  if test -s conftest.err; then
6157    ac_cpp_err=$ac_c_preproc_warn_flag
6158    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6159  else
6160    ac_cpp_err=
6161  fi
6162else
6163  ac_cpp_err=yes
6164fi
6165if test -z "$ac_cpp_err"; then
6166  ac_header_preproc=yes
6167else
6168  echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171  ac_header_preproc=no
6172fi
6173rm -f conftest.err conftest.$ac_ext
6174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6175echo "${ECHO_T}$ac_header_preproc" >&6
6176
6177# So?  What about this header?
6178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6179  yes:no: )
6180    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6184    ac_header_preproc=yes
6185    ;;
6186  no:yes:* )
6187    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6189    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6190echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6191    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6193    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6194echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6195    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6197    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6199    (
6200      cat <<\_ASBOX
6201## ---------------------------------------------- ##
6202## Report this to orxonox-dev at mail.datacore.ch ##
6203## ---------------------------------------------- ##
6204_ASBOX
6205    ) |
6206      sed "s/^/$as_me: WARNING:     /" >&2
6207    ;;
6208esac
6209echo "$as_me:$LINENO: checking for $ac_header" >&5
6210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6211if eval "test \"\${$as_ac_Header+set}\" = set"; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  eval "$as_ac_Header=\$ac_header_preproc"
6215fi
6216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6218
6219fi
6220if test `eval echo '${'$as_ac_Header'}'` = yes; then
6221  cat >>confdefs.h <<_ACEOF
6222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6223_ACEOF
6224
6225else
6226  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6227echo "$as_me: error: cannot find opengl headers" >&2;}
6228   { (exit 1); exit 1; }; }
6229fi
6230
6231done
6232
6233    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
6234echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
6235if test "${ac_cv_lib_GLU_main+set}" = set; then
6236  echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238  ac_check_lib_save_LIBS=$LIBS
6239LIBS="-lGLU  $LIBS"
6240cat >conftest.$ac_ext <<_ACEOF
6241/* confdefs.h.  */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h.  */
6246
6247
6248int
6249main ()
6250{
6251main ();
6252  ;
6253  return 0;
6254}
6255_ACEOF
6256rm -f conftest.$ac_objext conftest$ac_exeext
6257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258  (eval $ac_link) 2>conftest.er1
6259  ac_status=$?
6260  grep -v '^ *+' conftest.er1 >conftest.err
6261  rm -f conftest.er1
6262  cat conftest.err >&5
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); } &&
6265         { ac_try='test -z "$ac_c_werror_flag"
6266                         || test ! -s conftest.err'
6267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268  (eval $ac_try) 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); }; } &&
6272         { ac_try='test -s conftest$ac_exeext'
6273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274  (eval $ac_try) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }; }; then
6278  ac_cv_lib_GLU_main=yes
6279else
6280  echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283ac_cv_lib_GLU_main=no
6284fi
6285rm -f conftest.err conftest.$ac_objext \
6286      conftest$ac_exeext conftest.$ac_ext
6287LIBS=$ac_check_lib_save_LIBS
6288fi
6289echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
6290echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
6291if test $ac_cv_lib_GLU_main = yes; then
6292  FOUND_GLU=yes; LIBS="$LIBS -lGLU"
6293fi
6294
6295    if test x$FOUND_GLU != xyes ; then
6296         echo "------------------"
6297         echo "GLU library not found."
6298         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6299         echo "------------------"
6300         exit -1
6301    fi
6302
6303# checking for GLEW-headers
6304
6305for ac_header in GL/glew.h
6306do
6307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6308if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309  echo "$as_me:$LINENO: checking for $ac_header" >&5
6310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6311if eval "test \"\${$as_ac_Header+set}\" = set"; then
6312  echo $ECHO_N "(cached) $ECHO_C" >&6
6313fi
6314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6316else
6317  # Is the header compilable?
6318echo "$as_me:$LINENO: checking $ac_header usability" >&5
6319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6320cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h.  */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h.  */
6326$ac_includes_default
6327#include <$ac_header>
6328_ACEOF
6329rm -f conftest.$ac_objext
6330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331  (eval $ac_compile) 2>conftest.er1
6332  ac_status=$?
6333  grep -v '^ *+' conftest.er1 >conftest.err
6334  rm -f conftest.er1
6335  cat conftest.err >&5
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); } &&
6338         { ac_try='test -z "$ac_c_werror_flag"
6339                         || test ! -s conftest.err'
6340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341  (eval $ac_try) 2>&5
6342  ac_status=$?
6343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344  (exit $ac_status); }; } &&
6345         { ac_try='test -s conftest.$ac_objext'
6346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347  (eval $ac_try) 2>&5
6348  ac_status=$?
6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); }; }; then
6351  ac_header_compiler=yes
6352else
6353  echo "$as_me: failed program was:" >&5
6354sed 's/^/| /' conftest.$ac_ext >&5
6355
6356ac_header_compiler=no
6357fi
6358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6360echo "${ECHO_T}$ac_header_compiler" >&6
6361
6362# Is the header present?
6363echo "$as_me:$LINENO: checking $ac_header presence" >&5
6364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6365cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h.  */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h.  */
6371#include <$ac_header>
6372_ACEOF
6373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6374  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6375  ac_status=$?
6376  grep -v '^ *+' conftest.er1 >conftest.err
6377  rm -f conftest.er1
6378  cat conftest.err >&5
6379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380  (exit $ac_status); } >/dev/null; then
6381  if test -s conftest.err; then
6382    ac_cpp_err=$ac_c_preproc_warn_flag
6383    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6384  else
6385    ac_cpp_err=
6386  fi
6387else
6388  ac_cpp_err=yes
6389fi
6390if test -z "$ac_cpp_err"; then
6391  ac_header_preproc=yes
6392else
6393  echo "$as_me: failed program was:" >&5
6394sed 's/^/| /' conftest.$ac_ext >&5
6395
6396  ac_header_preproc=no
6397fi
6398rm -f conftest.err conftest.$ac_ext
6399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6400echo "${ECHO_T}$ac_header_preproc" >&6
6401
6402# So?  What about this header?
6403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6404  yes:no: )
6405    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6407    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6409    ac_header_preproc=yes
6410    ;;
6411  no:yes:* )
6412    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6414    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6415echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6416    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6418    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6419echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6422    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6424    (
6425      cat <<\_ASBOX
6426## ---------------------------------------------- ##
6427## Report this to orxonox-dev at mail.datacore.ch ##
6428## ---------------------------------------------- ##
6429_ASBOX
6430    ) |
6431      sed "s/^/$as_me: WARNING:     /" >&2
6432    ;;
6433esac
6434echo "$as_me:$LINENO: checking for $ac_header" >&5
6435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6436if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437  echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439  eval "$as_ac_Header=\$ac_header_preproc"
6440fi
6441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6443
6444fi
6445if test `eval echo '${'$as_ac_Header'}'` = yes; then
6446  cat >>confdefs.h <<_ACEOF
6447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6448_ACEOF
6449
6450else
6451  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6452echo "$as_me: error: cannot find glew headers" >&2;}
6453   { (exit 1); exit 1; }; }
6454fi
6455
6456done
6457
6458# checking for GLEW-lib
6459  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6460echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6461if test "${ac_cv_lib_GLEW_main+set}" = set; then
6462  echo $ECHO_N "(cached) $ECHO_C" >&6
6463else
6464  ac_check_lib_save_LIBS=$LIBS
6465LIBS="-lGLEW  $LIBS"
6466cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h.  */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h.  */
6472
6473
6474int
6475main ()
6476{
6477main ();
6478  ;
6479  return 0;
6480}
6481_ACEOF
6482rm -f conftest.$ac_objext conftest$ac_exeext
6483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484  (eval $ac_link) 2>conftest.er1
6485  ac_status=$?
6486  grep -v '^ *+' conftest.er1 >conftest.err
6487  rm -f conftest.er1
6488  cat conftest.err >&5
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); } &&
6491         { ac_try='test -z "$ac_c_werror_flag"
6492                         || test ! -s conftest.err'
6493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494  (eval $ac_try) 2>&5
6495  ac_status=$?
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); }; } &&
6498         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6504  ac_cv_lib_GLEW_main=yes
6505else
6506  echo "$as_me: failed program was:" >&5
6507sed 's/^/| /' conftest.$ac_ext >&5
6508
6509ac_cv_lib_GLEW_main=no
6510fi
6511rm -f conftest.err conftest.$ac_objext \
6512      conftest$ac_exeext conftest.$ac_ext
6513LIBS=$ac_check_lib_save_LIBS
6514fi
6515echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6516echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6517if test $ac_cv_lib_GLEW_main = yes; then
6518  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
6519fi
6520
6521   if test x$FOUND_GLEW != xyes ; then
6522         echo "------------------"
6523         echo "glew not found."
6524         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6525         echo "------------------"
6526         exit -1
6527   fi
6528
6529#--------#
6530# openAL #
6531#--------#
6532# checking for openAL-headers
6533
6534for ac_header in AL/al.h
6535do
6536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6537if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538  echo "$as_me:$LINENO: checking for $ac_header" >&5
6539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6540if eval "test \"\${$as_ac_Header+set}\" = set"; then
6541  echo $ECHO_N "(cached) $ECHO_C" >&6
6542fi
6543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6545else
6546  # Is the header compilable?
6547echo "$as_me:$LINENO: checking $ac_header usability" >&5
6548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6549cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h.  */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
6554/* end confdefs.h.  */
6555$ac_includes_default
6556#include <$ac_header>
6557_ACEOF
6558rm -f conftest.$ac_objext
6559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560  (eval $ac_compile) 2>conftest.er1
6561  ac_status=$?
6562  grep -v '^ *+' conftest.er1 >conftest.err
6563  rm -f conftest.er1
6564  cat conftest.err >&5
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); } &&
6567         { ac_try='test -z "$ac_c_werror_flag"
6568                         || test ! -s conftest.err'
6569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570  (eval $ac_try) 2>&5
6571  ac_status=$?
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); }; } &&
6574         { ac_try='test -s conftest.$ac_objext'
6575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576  (eval $ac_try) 2>&5
6577  ac_status=$?
6578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); }; }; then
6580  ac_header_compiler=yes
6581else
6582  echo "$as_me: failed program was:" >&5
6583sed 's/^/| /' conftest.$ac_ext >&5
6584
6585ac_header_compiler=no
6586fi
6587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6589echo "${ECHO_T}$ac_header_compiler" >&6
6590
6591# Is the header present?
6592echo "$as_me:$LINENO: checking $ac_header presence" >&5
6593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6594cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h.  */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h.  */
6600#include <$ac_header>
6601_ACEOF
6602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6603  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6604  ac_status=$?
6605  grep -v '^ *+' conftest.er1 >conftest.err
6606  rm -f conftest.er1
6607  cat conftest.err >&5
6608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609  (exit $ac_status); } >/dev/null; then
6610  if test -s conftest.err; then
6611    ac_cpp_err=$ac_c_preproc_warn_flag
6612    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6613  else
6614    ac_cpp_err=
6615  fi
6616else
6617  ac_cpp_err=yes
6618fi
6619if test -z "$ac_cpp_err"; then
6620  ac_header_preproc=yes
6621else
6622  echo "$as_me: failed program was:" >&5
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
6625  ac_header_preproc=no
6626fi
6627rm -f conftest.err conftest.$ac_ext
6628echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6629echo "${ECHO_T}$ac_header_preproc" >&6
6630
6631# So?  What about this header?
6632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6633  yes:no: )
6634    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6636    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6638    ac_header_preproc=yes
6639    ;;
6640  no:yes:* )
6641    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6643    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6644echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6645    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6647    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6648echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6649    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6651    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6653    (
6654      cat <<\_ASBOX
6655## ---------------------------------------------- ##
6656## Report this to orxonox-dev at mail.datacore.ch ##
6657## ---------------------------------------------- ##
6658_ASBOX
6659    ) |
6660      sed "s/^/$as_me: WARNING:     /" >&2
6661    ;;
6662esac
6663echo "$as_me:$LINENO: checking for $ac_header" >&5
6664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6665if eval "test \"\${$as_ac_Header+set}\" = set"; then
6666  echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668  eval "$as_ac_Header=\$ac_header_preproc"
6669fi
6670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6672
6673fi
6674if test `eval echo '${'$as_ac_Header'}'` = yes; then
6675  cat >>confdefs.h <<_ACEOF
6676#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6677_ACEOF
6678
6679else
6680  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6681echo "$as_me: error: cannot find openAL header." >&2;}
6682   { (exit 1); exit 1; }; }
6683fi
6684
6685done
6686
6687# checking for openAL-lib
6688  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6689echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6690if test "${ac_cv_lib_openal_main+set}" = set; then
6691  echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693  ac_check_lib_save_LIBS=$LIBS
6694LIBS="-lopenal  $LIBS"
6695cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h.  */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h.  */
6701
6702
6703int
6704main ()
6705{
6706main ();
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711rm -f conftest.$ac_objext conftest$ac_exeext
6712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713  (eval $ac_link) 2>conftest.er1
6714  ac_status=$?
6715  grep -v '^ *+' conftest.er1 >conftest.err
6716  rm -f conftest.er1
6717  cat conftest.err >&5
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); } &&
6720         { ac_try='test -z "$ac_c_werror_flag"
6721                         || test ! -s conftest.err'
6722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723  (eval $ac_try) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; } &&
6727         { ac_try='test -s conftest$ac_exeext'
6728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729  (eval $ac_try) 2>&5
6730  ac_status=$?
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); }; }; then
6733  ac_cv_lib_openal_main=yes
6734else
6735  echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
6738ac_cv_lib_openal_main=no
6739fi
6740rm -f conftest.err conftest.$ac_objext \
6741      conftest$ac_exeext conftest.$ac_ext
6742LIBS=$ac_check_lib_save_LIBS
6743fi
6744echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6745echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6746if test $ac_cv_lib_openal_main = yes; then
6747  FOUND_OPENAL=yes; LIBS="$LIBS -lopenal"
6748fi
6749
6750     if test x$FOUND_OPENAL != xyes ; then
6751        echo "------------------"
6752        echo "openal library not found."
6753        echo "please install the openal library, which can be found at http://www.openal.org"
6754        echo "------------------"
6755        exit -1
6756     fi
6757# checking for alut
6758
6759for ac_header in AL/alut.h
6760do
6761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6762if eval "test \"\${$as_ac_Header+set}\" = set"; then
6763  echo "$as_me:$LINENO: checking for $ac_header" >&5
6764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6765if eval "test \"\${$as_ac_Header+set}\" = set"; then
6766  echo $ECHO_N "(cached) $ECHO_C" >&6
6767fi
6768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6770else
6771  # Is the header compilable?
6772echo "$as_me:$LINENO: checking $ac_header usability" >&5
6773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6774cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h.  */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h.  */
6780$ac_includes_default
6781#include <$ac_header>
6782_ACEOF
6783rm -f conftest.$ac_objext
6784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6785  (eval $ac_compile) 2>conftest.er1
6786  ac_status=$?
6787  grep -v '^ *+' conftest.er1 >conftest.err
6788  rm -f conftest.er1
6789  cat conftest.err >&5
6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); } &&
6792         { ac_try='test -z "$ac_c_werror_flag"
6793                         || test ! -s conftest.err'
6794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795  (eval $ac_try) 2>&5
6796  ac_status=$?
6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798  (exit $ac_status); }; } &&
6799         { ac_try='test -s conftest.$ac_objext'
6800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801  (eval $ac_try) 2>&5
6802  ac_status=$?
6803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804  (exit $ac_status); }; }; then
6805  ac_header_compiler=yes
6806else
6807  echo "$as_me: failed program was:" >&5
6808sed 's/^/| /' conftest.$ac_ext >&5
6809
6810ac_header_compiler=no
6811fi
6812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6814echo "${ECHO_T}$ac_header_compiler" >&6
6815
6816# Is the header present?
6817echo "$as_me:$LINENO: checking $ac_header presence" >&5
6818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6819cat >conftest.$ac_ext <<_ACEOF
6820/* confdefs.h.  */
6821_ACEOF
6822cat confdefs.h >>conftest.$ac_ext
6823cat >>conftest.$ac_ext <<_ACEOF
6824/* end confdefs.h.  */
6825#include <$ac_header>
6826_ACEOF
6827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6829  ac_status=$?
6830  grep -v '^ *+' conftest.er1 >conftest.err
6831  rm -f conftest.er1
6832  cat conftest.err >&5
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); } >/dev/null; then
6835  if test -s conftest.err; then
6836    ac_cpp_err=$ac_c_preproc_warn_flag
6837    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6838  else
6839    ac_cpp_err=
6840  fi
6841else
6842  ac_cpp_err=yes
6843fi
6844if test -z "$ac_cpp_err"; then
6845  ac_header_preproc=yes
6846else
6847  echo "$as_me: failed program was:" >&5
6848sed 's/^/| /' conftest.$ac_ext >&5
6849
6850  ac_header_preproc=no
6851fi
6852rm -f conftest.err conftest.$ac_ext
6853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6854echo "${ECHO_T}$ac_header_preproc" >&6
6855
6856# So?  What about this header?
6857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6858  yes:no: )
6859    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6861    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6863    ac_header_preproc=yes
6864    ;;
6865  no:yes:* )
6866    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6868    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6869echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6870    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6872    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6873echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6876    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6878    (
6879      cat <<\_ASBOX
6880## ---------------------------------------------- ##
6881## Report this to orxonox-dev at mail.datacore.ch ##
6882## ---------------------------------------------- ##
6883_ASBOX
6884    ) |
6885      sed "s/^/$as_me: WARNING:     /" >&2
6886    ;;
6887esac
6888echo "$as_me:$LINENO: checking for $ac_header" >&5
6889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6890if eval "test \"\${$as_ac_Header+set}\" = set"; then
6891  echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893  eval "$as_ac_Header=\$ac_header_preproc"
6894fi
6895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6897
6898fi
6899if test `eval echo '${'$as_ac_Header'}'` = yes; then
6900  cat >>confdefs.h <<_ACEOF
6901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902_ACEOF
6903
6904else
6905  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6906echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6907   { (exit 1); exit 1; }; }
6908fi
6909
6910done
6911
6912  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6913echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6914if test "${ac_cv_lib_alut_main+set}" = set; then
6915  echo $ECHO_N "(cached) $ECHO_C" >&6
6916else
6917  ac_check_lib_save_LIBS=$LIBS
6918LIBS="-lalut  $LIBS"
6919cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h.  */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h.  */
6925
6926
6927int
6928main ()
6929{
6930main ();
6931  ;
6932  return 0;
6933}
6934_ACEOF
6935rm -f conftest.$ac_objext conftest$ac_exeext
6936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937  (eval $ac_link) 2>conftest.er1
6938  ac_status=$?
6939  grep -v '^ *+' conftest.er1 >conftest.err
6940  rm -f conftest.er1
6941  cat conftest.err >&5
6942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943  (exit $ac_status); } &&
6944         { ac_try='test -z "$ac_c_werror_flag"
6945                         || test ! -s conftest.err'
6946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947  (eval $ac_try) 2>&5
6948  ac_status=$?
6949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950  (exit $ac_status); }; } &&
6951         { ac_try='test -s conftest$ac_exeext'
6952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953  (eval $ac_try) 2>&5
6954  ac_status=$?
6955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956  (exit $ac_status); }; }; then
6957  ac_cv_lib_alut_main=yes
6958else
6959  echo "$as_me: failed program was:" >&5
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
6962ac_cv_lib_alut_main=no
6963fi
6964rm -f conftest.err conftest.$ac_objext \
6965      conftest$ac_exeext conftest.$ac_ext
6966LIBS=$ac_check_lib_save_LIBS
6967fi
6968echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6969echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6970if test $ac_cv_lib_alut_main = yes; then
6971  FOUND_ALUT=yes; LIBS="-lalut $LIBS"
6972fi
6973
6974
6975#-----#
6976# SDL #
6977#-----#
6978# checking for SDL
6979  echo "$as_me:$LINENO: checking for SDL-version" >&5
6980echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6981  SDL_VERSION=`sdl-config --version`
6982  echo $SDL_VERSION
6983
6984   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6985
6986for ac_header in SDL.h
6987do
6988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989if eval "test \"\${$as_ac_Header+set}\" = set"; then
6990  echo "$as_me:$LINENO: checking for $ac_header" >&5
6991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6992if eval "test \"\${$as_ac_Header+set}\" = set"; then
6993  echo $ECHO_N "(cached) $ECHO_C" >&6
6994fi
6995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6997else
6998  # Is the header compilable?
6999echo "$as_me:$LINENO: checking $ac_header usability" >&5
7000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7001cat >conftest.$ac_ext <<_ACEOF
7002/* confdefs.h.  */
7003_ACEOF
7004cat confdefs.h >>conftest.$ac_ext
7005cat >>conftest.$ac_ext <<_ACEOF
7006/* end confdefs.h.  */
7007$ac_includes_default
7008#include <$ac_header>
7009_ACEOF
7010rm -f conftest.$ac_objext
7011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012  (eval $ac_compile) 2>conftest.er1
7013  ac_status=$?
7014  grep -v '^ *+' conftest.er1 >conftest.err
7015  rm -f conftest.er1
7016  cat conftest.err >&5
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); } &&
7019         { ac_try='test -z "$ac_c_werror_flag"
7020                         || test ! -s conftest.err'
7021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022  (eval $ac_try) 2>&5
7023  ac_status=$?
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); }; } &&
7026         { ac_try='test -s conftest.$ac_objext'
7027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028  (eval $ac_try) 2>&5
7029  ac_status=$?
7030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031  (exit $ac_status); }; }; then
7032  ac_header_compiler=yes
7033else
7034  echo "$as_me: failed program was:" >&5
7035sed 's/^/| /' conftest.$ac_ext >&5
7036
7037ac_header_compiler=no
7038fi
7039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7041echo "${ECHO_T}$ac_header_compiler" >&6
7042
7043# Is the header present?
7044echo "$as_me:$LINENO: checking $ac_header presence" >&5
7045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7046cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h.  */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h.  */
7052#include <$ac_header>
7053_ACEOF
7054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7055  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7056  ac_status=$?
7057  grep -v '^ *+' conftest.er1 >conftest.err
7058  rm -f conftest.er1
7059  cat conftest.err >&5
7060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061  (exit $ac_status); } >/dev/null; then
7062  if test -s conftest.err; then
7063    ac_cpp_err=$ac_c_preproc_warn_flag
7064    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7065  else
7066    ac_cpp_err=
7067  fi
7068else
7069  ac_cpp_err=yes
7070fi
7071if test -z "$ac_cpp_err"; then
7072  ac_header_preproc=yes
7073else
7074  echo "$as_me: failed program was:" >&5
7075sed 's/^/| /' conftest.$ac_ext >&5
7076
7077  ac_header_preproc=no
7078fi
7079rm -f conftest.err conftest.$ac_ext
7080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7081echo "${ECHO_T}$ac_header_preproc" >&6
7082
7083# So?  What about this header?
7084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7085  yes:no: )
7086    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7090    ac_header_preproc=yes
7091    ;;
7092  no:yes:* )
7093    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7095    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7096echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7097    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7099    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7100echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7101    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7103    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7105    (
7106      cat <<\_ASBOX
7107## ---------------------------------------------- ##
7108## Report this to orxonox-dev at mail.datacore.ch ##
7109## ---------------------------------------------- ##
7110_ASBOX
7111    ) |
7112      sed "s/^/$as_me: WARNING:     /" >&2
7113    ;;
7114esac
7115echo "$as_me:$LINENO: checking for $ac_header" >&5
7116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7117if eval "test \"\${$as_ac_Header+set}\" = set"; then
7118  echo $ECHO_N "(cached) $ECHO_C" >&6
7119else
7120  eval "$as_ac_Header=\$ac_header_preproc"
7121fi
7122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7124
7125fi
7126if test `eval echo '${'$as_ac_Header'}'` = yes; then
7127  cat >>confdefs.h <<_ACEOF
7128#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7129_ACEOF
7130
7131else
7132
7133for ac_header in SDL/SDL.h
7134do
7135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7136if eval "test \"\${$as_ac_Header+set}\" = set"; then
7137  echo "$as_me:$LINENO: checking for $ac_header" >&5
7138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7139if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140  echo $ECHO_N "(cached) $ECHO_C" >&6
7141fi
7142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7144else
7145  # Is the header compilable?
7146echo "$as_me:$LINENO: checking $ac_header usability" >&5
7147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7148cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h.  */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h.  */
7154$ac_includes_default
7155#include <$ac_header>
7156_ACEOF
7157rm -f conftest.$ac_objext
7158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159  (eval $ac_compile) 2>conftest.er1
7160  ac_status=$?
7161  grep -v '^ *+' conftest.er1 >conftest.err
7162  rm -f conftest.er1
7163  cat conftest.err >&5
7164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165  (exit $ac_status); } &&
7166         { ac_try='test -z "$ac_c_werror_flag"
7167                         || test ! -s conftest.err'
7168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169  (eval $ac_try) 2>&5
7170  ac_status=$?
7171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172  (exit $ac_status); }; } &&
7173         { ac_try='test -s conftest.$ac_objext'
7174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175  (eval $ac_try) 2>&5
7176  ac_status=$?
7177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178  (exit $ac_status); }; }; then
7179  ac_header_compiler=yes
7180else
7181  echo "$as_me: failed program was:" >&5
7182sed 's/^/| /' conftest.$ac_ext >&5
7183
7184ac_header_compiler=no
7185fi
7186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7188echo "${ECHO_T}$ac_header_compiler" >&6
7189
7190# Is the header present?
7191echo "$as_me:$LINENO: checking $ac_header presence" >&5
7192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7193cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h.  */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h.  */
7199#include <$ac_header>
7200_ACEOF
7201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7202  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7203  ac_status=$?
7204  grep -v '^ *+' conftest.er1 >conftest.err
7205  rm -f conftest.er1
7206  cat conftest.err >&5
7207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208  (exit $ac_status); } >/dev/null; then
7209  if test -s conftest.err; then
7210    ac_cpp_err=$ac_c_preproc_warn_flag
7211    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7212  else
7213    ac_cpp_err=
7214  fi
7215else
7216  ac_cpp_err=yes
7217fi
7218if test -z "$ac_cpp_err"; then
7219  ac_header_preproc=yes
7220else
7221  echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224  ac_header_preproc=no
7225fi
7226rm -f conftest.err conftest.$ac_ext
7227echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7228echo "${ECHO_T}$ac_header_preproc" >&6
7229
7230# So?  What about this header?
7231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7232  yes:no: )
7233    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7235    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7236echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7237    ac_header_preproc=yes
7238    ;;
7239  no:yes:* )
7240    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7241echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7242    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7243echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7244    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7245echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7246    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7247echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7248    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7250    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7251echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7252    (
7253      cat <<\_ASBOX
7254## ---------------------------------------------- ##
7255## Report this to orxonox-dev at mail.datacore.ch ##
7256## ---------------------------------------------- ##
7257_ASBOX
7258    ) |
7259      sed "s/^/$as_me: WARNING:     /" >&2
7260    ;;
7261esac
7262echo "$as_me:$LINENO: checking for $ac_header" >&5
7263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7264if eval "test \"\${$as_ac_Header+set}\" = set"; then
7265  echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267  eval "$as_ac_Header=\$ac_header_preproc"
7268fi
7269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7271
7272fi
7273if test `eval echo '${'$as_ac_Header'}'` = yes; then
7274  cat >>confdefs.h <<_ACEOF
7275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276_ACEOF
7277
7278else
7279  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7280echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
7281   { (exit 1); exit 1; }; }
7282fi
7283
7284done
7285
7286fi
7287
7288done
7289
7290   LIBS="`sdl-config --libs` $LIBS"
7291   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7292echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7293if test "${ac_cv_lib_SDL_main+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  ac_check_lib_save_LIBS=$LIBS
7297LIBS="-lSDL  $LIBS"
7298cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h.  */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
7303/* end confdefs.h.  */
7304
7305
7306int
7307main ()
7308{
7309main ();
7310  ;
7311  return 0;
7312}
7313_ACEOF
7314rm -f conftest.$ac_objext conftest$ac_exeext
7315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316  (eval $ac_link) 2>conftest.er1
7317  ac_status=$?
7318  grep -v '^ *+' conftest.er1 >conftest.err
7319  rm -f conftest.er1
7320  cat conftest.err >&5
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); } &&
7323         { ac_try='test -z "$ac_c_werror_flag"
7324                         || test ! -s conftest.err'
7325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326  (eval $ac_try) 2>&5
7327  ac_status=$?
7328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329  (exit $ac_status); }; } &&
7330         { ac_try='test -s conftest$ac_exeext'
7331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332  (eval $ac_try) 2>&5
7333  ac_status=$?
7334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335  (exit $ac_status); }; }; then
7336  ac_cv_lib_SDL_main=yes
7337else
7338  echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341ac_cv_lib_SDL_main=no
7342fi
7343rm -f conftest.err conftest.$ac_objext \
7344      conftest$ac_exeext conftest.$ac_ext
7345LIBS=$ac_check_lib_save_LIBS
7346fi
7347echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7348echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7349if test $ac_cv_lib_SDL_main = yes; then
7350  FOUND_SDL=yes
7351fi
7352
7353    if test x$FOUND_SDL != xyes ; then
7354        echo "------------------"
7355        echo "SDL library not found."
7356        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7357        echo "------------------"
7358        exit -1
7359     fi
7360
7361    ;;
7362
7363#############
7364#-----------#
7365# MAC -OS X #
7366#-----------#
7367#############
7368 *darwin*)
7369 echo "OS X detected"
7370
7371 osX="yes"
7372
7373 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7374 LDFLAGS="$LDFLAGS -L/sw/lib"
7375# checking gl header
7376
7377for ac_header in OpenGL/gl.h
7378do
7379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381  echo "$as_me:$LINENO: checking for $ac_header" >&5
7382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385fi
7386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388else
7389  # Is the header compilable?
7390echo "$as_me:$LINENO: checking $ac_header usability" >&5
7391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7392cat >conftest.$ac_ext <<_ACEOF
7393/* confdefs.h.  */
7394_ACEOF
7395cat confdefs.h >>conftest.$ac_ext
7396cat >>conftest.$ac_ext <<_ACEOF
7397/* end confdefs.h.  */
7398$ac_includes_default
7399#include <$ac_header>
7400_ACEOF
7401rm -f conftest.$ac_objext
7402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403  (eval $ac_compile) 2>conftest.er1
7404  ac_status=$?
7405  grep -v '^ *+' conftest.er1 >conftest.err
7406  rm -f conftest.er1
7407  cat conftest.err >&5
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); } &&
7410         { ac_try='test -z "$ac_c_werror_flag"
7411                         || test ! -s conftest.err'
7412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413  (eval $ac_try) 2>&5
7414  ac_status=$?
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); }; } &&
7417         { ac_try='test -s conftest.$ac_objext'
7418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419  (eval $ac_try) 2>&5
7420  ac_status=$?
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); }; }; then
7423  ac_header_compiler=yes
7424else
7425  echo "$as_me: failed program was:" >&5
7426sed 's/^/| /' conftest.$ac_ext >&5
7427
7428ac_header_compiler=no
7429fi
7430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432echo "${ECHO_T}$ac_header_compiler" >&6
7433
7434# Is the header present?
7435echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7437cat >conftest.$ac_ext <<_ACEOF
7438/* confdefs.h.  */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h.  */
7443#include <$ac_header>
7444_ACEOF
7445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7446  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7447  ac_status=$?
7448  grep -v '^ *+' conftest.er1 >conftest.err
7449  rm -f conftest.er1
7450  cat conftest.err >&5
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); } >/dev/null; then
7453  if test -s conftest.err; then
7454    ac_cpp_err=$ac_c_preproc_warn_flag
7455    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7456  else
7457    ac_cpp_err=
7458  fi
7459else
7460  ac_cpp_err=yes
7461fi
7462if test -z "$ac_cpp_err"; then
7463  ac_header_preproc=yes
7464else
7465  echo "$as_me: failed program was:" >&5
7466sed 's/^/| /' conftest.$ac_ext >&5
7467
7468  ac_header_preproc=no
7469fi
7470rm -f conftest.err conftest.$ac_ext
7471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7472echo "${ECHO_T}$ac_header_preproc" >&6
7473
7474# So?  What about this header?
7475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7476  yes:no: )
7477    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7479    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7481    ac_header_preproc=yes
7482    ;;
7483  no:yes:* )
7484    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7486    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7487echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7488    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7490    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7491echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7494    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7496    (
7497      cat <<\_ASBOX
7498## ---------------------------------------------- ##
7499## Report this to orxonox-dev at mail.datacore.ch ##
7500## ---------------------------------------------- ##
7501_ASBOX
7502    ) |
7503      sed "s/^/$as_me: WARNING:     /" >&2
7504    ;;
7505esac
7506echo "$as_me:$LINENO: checking for $ac_header" >&5
7507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  eval "$as_ac_Header=\$ac_header_preproc"
7512fi
7513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7515
7516fi
7517if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518  cat >>confdefs.h <<_ACEOF
7519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520_ACEOF
7521
7522else
7523  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7524echo "$as_me: error: cannot find opengl headers" >&2;}
7525   { (exit 1); exit 1; }; }
7526fi
7527
7528done
7529
7530# cheking for GLU-header
7531
7532for ac_header in OpenGL/glu.h
7533do
7534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535if eval "test \"\${$as_ac_Header+set}\" = set"; then
7536  echo "$as_me:$LINENO: checking for $ac_header" >&5
7537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7538if eval "test \"\${$as_ac_Header+set}\" = set"; then
7539  echo $ECHO_N "(cached) $ECHO_C" >&6
7540fi
7541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7543else
7544  # Is the header compilable?
7545echo "$as_me:$LINENO: checking $ac_header usability" >&5
7546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7547cat >conftest.$ac_ext <<_ACEOF
7548/* confdefs.h.  */
7549_ACEOF
7550cat confdefs.h >>conftest.$ac_ext
7551cat >>conftest.$ac_ext <<_ACEOF
7552/* end confdefs.h.  */
7553$ac_includes_default
7554#include <$ac_header>
7555_ACEOF
7556rm -f conftest.$ac_objext
7557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558  (eval $ac_compile) 2>conftest.er1
7559  ac_status=$?
7560  grep -v '^ *+' conftest.er1 >conftest.err
7561  rm -f conftest.er1
7562  cat conftest.err >&5
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); } &&
7565         { ac_try='test -z "$ac_c_werror_flag"
7566                         || test ! -s conftest.err'
7567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568  (eval $ac_try) 2>&5
7569  ac_status=$?
7570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571  (exit $ac_status); }; } &&
7572         { ac_try='test -s conftest.$ac_objext'
7573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574  (eval $ac_try) 2>&5
7575  ac_status=$?
7576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577  (exit $ac_status); }; }; then
7578  ac_header_compiler=yes
7579else
7580  echo "$as_me: failed program was:" >&5
7581sed 's/^/| /' conftest.$ac_ext >&5
7582
7583ac_header_compiler=no
7584fi
7585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7587echo "${ECHO_T}$ac_header_compiler" >&6
7588
7589# Is the header present?
7590echo "$as_me:$LINENO: checking $ac_header presence" >&5
7591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7592cat >conftest.$ac_ext <<_ACEOF
7593/* confdefs.h.  */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h.  */
7598#include <$ac_header>
7599_ACEOF
7600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7601  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7602  ac_status=$?
7603  grep -v '^ *+' conftest.er1 >conftest.err
7604  rm -f conftest.er1
7605  cat conftest.err >&5
7606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607  (exit $ac_status); } >/dev/null; then
7608  if test -s conftest.err; then
7609    ac_cpp_err=$ac_c_preproc_warn_flag
7610    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7611  else
7612    ac_cpp_err=
7613  fi
7614else
7615  ac_cpp_err=yes
7616fi
7617if test -z "$ac_cpp_err"; then
7618  ac_header_preproc=yes
7619else
7620  echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623  ac_header_preproc=no
7624fi
7625rm -f conftest.err conftest.$ac_ext
7626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7627echo "${ECHO_T}$ac_header_preproc" >&6
7628
7629# So?  What about this header?
7630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7631  yes:no: )
7632    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7633echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7634    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7635echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7636    ac_header_preproc=yes
7637    ;;
7638  no:yes:* )
7639    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7641    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7642echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7643    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7644echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7645    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7646echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7647    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7649    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7650echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7651    (
7652      cat <<\_ASBOX
7653## ---------------------------------------------- ##
7654## Report this to orxonox-dev at mail.datacore.ch ##
7655## ---------------------------------------------- ##
7656_ASBOX
7657    ) |
7658      sed "s/^/$as_me: WARNING:     /" >&2
7659    ;;
7660esac
7661echo "$as_me:$LINENO: checking for $ac_header" >&5
7662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7663if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  eval "$as_ac_Header=\$ac_header_preproc"
7667fi
7668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7670
7671fi
7672if test `eval echo '${'$as_ac_Header'}'` = yes; then
7673  cat >>confdefs.h <<_ACEOF
7674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675_ACEOF
7676
7677else
7678  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7679echo "$as_me: error: cannot find opengl headers" >&2;}
7680   { (exit 1); exit 1; }; }
7681fi
7682
7683done
7684
7685
7686   LIBS="$LIBS -framework OpenGL"
7687
7688
7689
7690# checking for GLEW-headers
7691
7692for ac_header in GL/glew.h
7693do
7694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696  echo "$as_me:$LINENO: checking for $ac_header" >&5
7697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7698if eval "test \"\${$as_ac_Header+set}\" = set"; then
7699  echo $ECHO_N "(cached) $ECHO_C" >&6
7700fi
7701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7703else
7704  # Is the header compilable?
7705echo "$as_me:$LINENO: checking $ac_header usability" >&5
7706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7707cat >conftest.$ac_ext <<_ACEOF
7708/* confdefs.h.  */
7709_ACEOF
7710cat confdefs.h >>conftest.$ac_ext
7711cat >>conftest.$ac_ext <<_ACEOF
7712/* end confdefs.h.  */
7713$ac_includes_default
7714#include <$ac_header>
7715_ACEOF
7716rm -f conftest.$ac_objext
7717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718  (eval $ac_compile) 2>conftest.er1
7719  ac_status=$?
7720  grep -v '^ *+' conftest.er1 >conftest.err
7721  rm -f conftest.er1
7722  cat conftest.err >&5
7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); } &&
7725         { ac_try='test -z "$ac_c_werror_flag"
7726                         || test ! -s conftest.err'
7727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728  (eval $ac_try) 2>&5
7729  ac_status=$?
7730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731  (exit $ac_status); }; } &&
7732         { ac_try='test -s conftest.$ac_objext'
7733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734  (eval $ac_try) 2>&5
7735  ac_status=$?
7736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737  (exit $ac_status); }; }; then
7738  ac_header_compiler=yes
7739else
7740  echo "$as_me: failed program was:" >&5
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
7743ac_header_compiler=no
7744fi
7745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7747echo "${ECHO_T}$ac_header_compiler" >&6
7748
7749# Is the header present?
7750echo "$as_me:$LINENO: checking $ac_header presence" >&5
7751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7752cat >conftest.$ac_ext <<_ACEOF
7753/* confdefs.h.  */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h.  */
7758#include <$ac_header>
7759_ACEOF
7760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7762  ac_status=$?
7763  grep -v '^ *+' conftest.er1 >conftest.err
7764  rm -f conftest.er1
7765  cat conftest.err >&5
7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767  (exit $ac_status); } >/dev/null; then
7768  if test -s conftest.err; then
7769    ac_cpp_err=$ac_c_preproc_warn_flag
7770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7771  else
7772    ac_cpp_err=
7773  fi
7774else
7775  ac_cpp_err=yes
7776fi
7777if test -z "$ac_cpp_err"; then
7778  ac_header_preproc=yes
7779else
7780  echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783  ac_header_preproc=no
7784fi
7785rm -f conftest.err conftest.$ac_ext
7786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787echo "${ECHO_T}$ac_header_preproc" >&6
7788
7789# So?  What about this header?
7790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7791  yes:no: )
7792    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7796    ac_header_preproc=yes
7797    ;;
7798  no:yes:* )
7799    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7801    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7802echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7803    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7805    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7806echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7807    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7809    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7811    (
7812      cat <<\_ASBOX
7813## ---------------------------------------------- ##
7814## Report this to orxonox-dev at mail.datacore.ch ##
7815## ---------------------------------------------- ##
7816_ASBOX
7817    ) |
7818      sed "s/^/$as_me: WARNING:     /" >&2
7819    ;;
7820esac
7821echo "$as_me:$LINENO: checking for $ac_header" >&5
7822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7823if eval "test \"\${$as_ac_Header+set}\" = set"; then
7824  echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826  eval "$as_ac_Header=\$ac_header_preproc"
7827fi
7828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7830
7831fi
7832if test `eval echo '${'$as_ac_Header'}'` = yes; then
7833  cat >>confdefs.h <<_ACEOF
7834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7835_ACEOF
7836
7837else
7838  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
7839echo "$as_me: error: cannot find glew headers" >&2;}
7840   { (exit 1); exit 1; }; }
7841fi
7842
7843done
7844
7845# checking for GLEW-lib
7846  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
7847echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
7848if test "${ac_cv_lib_GLEW_main+set}" = set; then
7849  echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851  ac_check_lib_save_LIBS=$LIBS
7852LIBS="-lGLEW  $LIBS"
7853cat >conftest.$ac_ext <<_ACEOF
7854/* confdefs.h.  */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h.  */
7859
7860
7861int
7862main ()
7863{
7864main ();
7865  ;
7866  return 0;
7867}
7868_ACEOF
7869rm -f conftest.$ac_objext conftest$ac_exeext
7870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7871  (eval $ac_link) 2>conftest.er1
7872  ac_status=$?
7873  grep -v '^ *+' conftest.er1 >conftest.err
7874  rm -f conftest.er1
7875  cat conftest.err >&5
7876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877  (exit $ac_status); } &&
7878         { ac_try='test -z "$ac_c_werror_flag"
7879                         || test ! -s conftest.err'
7880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881  (eval $ac_try) 2>&5
7882  ac_status=$?
7883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884  (exit $ac_status); }; } &&
7885         { ac_try='test -s conftest$ac_exeext'
7886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887  (eval $ac_try) 2>&5
7888  ac_status=$?
7889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890  (exit $ac_status); }; }; then
7891  ac_cv_lib_GLEW_main=yes
7892else
7893  echo "$as_me: failed program was:" >&5
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896ac_cv_lib_GLEW_main=no
7897fi
7898rm -f conftest.err conftest.$ac_objext \
7899      conftest$ac_exeext conftest.$ac_ext
7900LIBS=$ac_check_lib_save_LIBS
7901fi
7902echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
7903echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
7904if test $ac_cv_lib_GLEW_main = yes; then
7905  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
7906fi
7907
7908   if test x$FOUND_GLEW != xyes ; then
7909         echo "------------------"
7910         echo "glew not found."
7911         echo "please install the glew package which can be found at http://glew.sourceforge.net"
7912         echo "------------------"
7913         exit -1
7914   fi
7915
7916
7917
7918for ac_header in OpenAL/al.h
7919do
7920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922  echo "$as_me:$LINENO: checking for $ac_header" >&5
7923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7924if eval "test \"\${$as_ac_Header+set}\" = set"; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926fi
7927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929else
7930  # Is the header compilable?
7931echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7933cat >conftest.$ac_ext <<_ACEOF
7934/* confdefs.h.  */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h.  */
7939$ac_includes_default
7940#include <$ac_header>
7941_ACEOF
7942rm -f conftest.$ac_objext
7943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944  (eval $ac_compile) 2>conftest.er1
7945  ac_status=$?
7946  grep -v '^ *+' conftest.er1 >conftest.err
7947  rm -f conftest.er1
7948  cat conftest.err >&5
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); } &&
7951         { ac_try='test -z "$ac_c_werror_flag"
7952                         || test ! -s conftest.err'
7953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954  (eval $ac_try) 2>&5
7955  ac_status=$?
7956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957  (exit $ac_status); }; } &&
7958         { ac_try='test -s conftest.$ac_objext'
7959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960  (eval $ac_try) 2>&5
7961  ac_status=$?
7962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963  (exit $ac_status); }; }; then
7964  ac_header_compiler=yes
7965else
7966  echo "$as_me: failed program was:" >&5
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969ac_header_compiler=no
7970fi
7971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7973echo "${ECHO_T}$ac_header_compiler" >&6
7974
7975# Is the header present?
7976echo "$as_me:$LINENO: checking $ac_header presence" >&5
7977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7978cat >conftest.$ac_ext <<_ACEOF
7979/* confdefs.h.  */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h.  */
7984#include <$ac_header>
7985_ACEOF
7986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7987  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7988  ac_status=$?
7989  grep -v '^ *+' conftest.er1 >conftest.err
7990  rm -f conftest.er1
7991  cat conftest.err >&5
7992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993  (exit $ac_status); } >/dev/null; then
7994  if test -s conftest.err; then
7995    ac_cpp_err=$ac_c_preproc_warn_flag
7996    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7997  else
7998    ac_cpp_err=
7999  fi
8000else
8001  ac_cpp_err=yes
8002fi
8003if test -z "$ac_cpp_err"; then
8004  ac_header_preproc=yes
8005else
8006  echo "$as_me: failed program was:" >&5
8007sed 's/^/| /' conftest.$ac_ext >&5
8008
8009  ac_header_preproc=no
8010fi
8011rm -f conftest.err conftest.$ac_ext
8012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8013echo "${ECHO_T}$ac_header_preproc" >&6
8014
8015# So?  What about this header?
8016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8017  yes:no: )
8018    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8020    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8022    ac_header_preproc=yes
8023    ;;
8024  no:yes:* )
8025    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8027    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8028echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8029    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8031    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8032echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8035    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8037    (
8038      cat <<\_ASBOX
8039## ---------------------------------------------- ##
8040## Report this to orxonox-dev at mail.datacore.ch ##
8041## ---------------------------------------------- ##
8042_ASBOX
8043    ) |
8044      sed "s/^/$as_me: WARNING:     /" >&2
8045    ;;
8046esac
8047echo "$as_me:$LINENO: checking for $ac_header" >&5
8048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8049if eval "test \"\${$as_ac_Header+set}\" = set"; then
8050  echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052  eval "$as_ac_Header=\$ac_header_preproc"
8053fi
8054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8056
8057fi
8058if test `eval echo '${'$as_ac_Header'}'` = yes; then
8059  cat >>confdefs.h <<_ACEOF
8060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8061_ACEOF
8062
8063else
8064  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
8065echo "$as_me: error: cannot find opengl headers" >&2;}
8066   { (exit 1); exit 1; }; }
8067fi
8068
8069done
8070
8071  HAVE_OPENAL=yes
8072  LIBS="$LIBS -framework OpenAL"
8073
8074
8075## SDL-check
8076       SDL_CFLAGS=`sdl-config --cflags`
8077       SDL_LIBS=`sdl-config --libs`
8078       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8079       LIBS="$LIBS $SDL_LIBS"
8080
8081for ac_header in SDL/SDL.h
8082do
8083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8084if eval "test \"\${$as_ac_Header+set}\" = set"; then
8085  echo "$as_me:$LINENO: checking for $ac_header" >&5
8086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8087if eval "test \"\${$as_ac_Header+set}\" = set"; then
8088  echo $ECHO_N "(cached) $ECHO_C" >&6
8089fi
8090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8092else
8093  # Is the header compilable?
8094echo "$as_me:$LINENO: checking $ac_header usability" >&5
8095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8096cat >conftest.$ac_ext <<_ACEOF
8097/* confdefs.h.  */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
8101/* end confdefs.h.  */
8102$ac_includes_default
8103#include <$ac_header>
8104_ACEOF
8105rm -f conftest.$ac_objext
8106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8107  (eval $ac_compile) 2>conftest.er1
8108  ac_status=$?
8109  grep -v '^ *+' conftest.er1 >conftest.err
8110  rm -f conftest.er1
8111  cat conftest.err >&5
8112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113  (exit $ac_status); } &&
8114         { ac_try='test -z "$ac_c_werror_flag"
8115                         || test ! -s conftest.err'
8116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117  (eval $ac_try) 2>&5
8118  ac_status=$?
8119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120  (exit $ac_status); }; } &&
8121         { ac_try='test -s conftest.$ac_objext'
8122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123  (eval $ac_try) 2>&5
8124  ac_status=$?
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); }; }; then
8127  ac_header_compiler=yes
8128else
8129  echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132ac_header_compiler=no
8133fi
8134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8136echo "${ECHO_T}$ac_header_compiler" >&6
8137
8138# Is the header present?
8139echo "$as_me:$LINENO: checking $ac_header presence" >&5
8140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8141cat >conftest.$ac_ext <<_ACEOF
8142/* confdefs.h.  */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h.  */
8147#include <$ac_header>
8148_ACEOF
8149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8150  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8151  ac_status=$?
8152  grep -v '^ *+' conftest.er1 >conftest.err
8153  rm -f conftest.er1
8154  cat conftest.err >&5
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); } >/dev/null; then
8157  if test -s conftest.err; then
8158    ac_cpp_err=$ac_c_preproc_warn_flag
8159    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8160  else
8161    ac_cpp_err=
8162  fi
8163else
8164  ac_cpp_err=yes
8165fi
8166if test -z "$ac_cpp_err"; then
8167  ac_header_preproc=yes
8168else
8169  echo "$as_me: failed program was:" >&5
8170sed 's/^/| /' conftest.$ac_ext >&5
8171
8172  ac_header_preproc=no
8173fi
8174rm -f conftest.err conftest.$ac_ext
8175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8176echo "${ECHO_T}$ac_header_preproc" >&6
8177
8178# So?  What about this header?
8179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8180  yes:no: )
8181    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8183    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8185    ac_header_preproc=yes
8186    ;;
8187  no:yes:* )
8188    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8190    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8191echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8192    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8194    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8195echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8196    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8198    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8200    (
8201      cat <<\_ASBOX
8202## ---------------------------------------------- ##
8203## Report this to orxonox-dev at mail.datacore.ch ##
8204## ---------------------------------------------- ##
8205_ASBOX
8206    ) |
8207      sed "s/^/$as_me: WARNING:     /" >&2
8208    ;;
8209esac
8210echo "$as_me:$LINENO: checking for $ac_header" >&5
8211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8212if eval "test \"\${$as_ac_Header+set}\" = set"; then
8213  echo $ECHO_N "(cached) $ECHO_C" >&6
8214else
8215  eval "$as_ac_Header=\$ac_header_preproc"
8216fi
8217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8219
8220fi
8221if test `eval echo '${'$as_ac_Header'}'` = yes; then
8222  cat >>confdefs.h <<_ACEOF
8223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8224_ACEOF
8225
8226else
8227  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
8228echo "$as_me: error: cannot find SDL headers" >&2;}
8229   { (exit 1); exit 1; }; }
8230fi
8231
8232done
8233
8234   HAVE_SDL=yes
8235#   LIBS="$LIBS -framework SDL"
8236
8237# checking for SDL-headers
8238#    AC_CHECK_HEADERS(SDL/SDL.h ,,
8239#      [AC_MSG_ERROR([cannot find SDL headers]) ])
8240
8241## checking for SDL
8242#    SDL_VERSION=1.2.7
8243#    AM_PATH_SDL($SDL_VERSION,
8244#      :,
8245#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
8246#      )
8247
8248
8249    ;;
8250
8251  *)
8252    ;;
8253esac
8254
8255
8256
8257###################################
8258## CHECKING FOR HEADERS AND LIBS ##
8259###################################
8260
8261#---------#
8262# SDL_ttf #
8263#---------#
8264# checking for SDL_ttf-headers
8265
8266for ac_header in SDL_ttf.h
8267do
8268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269if eval "test \"\${$as_ac_Header+set}\" = set"; then
8270  echo "$as_me:$LINENO: checking for $ac_header" >&5
8271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8272if eval "test \"\${$as_ac_Header+set}\" = set"; then
8273  echo $ECHO_N "(cached) $ECHO_C" >&6
8274fi
8275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8277else
8278  # Is the header compilable?
8279echo "$as_me:$LINENO: checking $ac_header usability" >&5
8280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8281cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h.  */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h.  */
8287$ac_includes_default
8288#include <$ac_header>
8289_ACEOF
8290rm -f conftest.$ac_objext
8291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292  (eval $ac_compile) 2>conftest.er1
8293  ac_status=$?
8294  grep -v '^ *+' conftest.er1 >conftest.err
8295  rm -f conftest.er1
8296  cat conftest.err >&5
8297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298  (exit $ac_status); } &&
8299         { ac_try='test -z "$ac_c_werror_flag"
8300                         || test ! -s conftest.err'
8301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302  (eval $ac_try) 2>&5
8303  ac_status=$?
8304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); }; } &&
8306         { ac_try='test -s conftest.$ac_objext'
8307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308  (eval $ac_try) 2>&5
8309  ac_status=$?
8310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311  (exit $ac_status); }; }; then
8312  ac_header_compiler=yes
8313else
8314  echo "$as_me: failed program was:" >&5
8315sed 's/^/| /' conftest.$ac_ext >&5
8316
8317ac_header_compiler=no
8318fi
8319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8321echo "${ECHO_T}$ac_header_compiler" >&6
8322
8323# Is the header present?
8324echo "$as_me:$LINENO: checking $ac_header presence" >&5
8325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8326cat >conftest.$ac_ext <<_ACEOF
8327/* confdefs.h.  */
8328_ACEOF
8329cat confdefs.h >>conftest.$ac_ext
8330cat >>conftest.$ac_ext <<_ACEOF
8331/* end confdefs.h.  */
8332#include <$ac_header>
8333_ACEOF
8334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8335  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8336  ac_status=$?
8337  grep -v '^ *+' conftest.er1 >conftest.err
8338  rm -f conftest.er1
8339  cat conftest.err >&5
8340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341  (exit $ac_status); } >/dev/null; then
8342  if test -s conftest.err; then
8343    ac_cpp_err=$ac_c_preproc_warn_flag
8344    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8345  else
8346    ac_cpp_err=
8347  fi
8348else
8349  ac_cpp_err=yes
8350fi
8351if test -z "$ac_cpp_err"; then
8352  ac_header_preproc=yes
8353else
8354  echo "$as_me: failed program was:" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5
8356
8357  ac_header_preproc=no
8358fi
8359rm -f conftest.err conftest.$ac_ext
8360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8361echo "${ECHO_T}$ac_header_preproc" >&6
8362
8363# So?  What about this header?
8364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8365  yes:no: )
8366    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8368    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8370    ac_header_preproc=yes
8371    ;;
8372  no:yes:* )
8373    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8375    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8376echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8377    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8379    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8380echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8381    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8383    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8385    (
8386      cat <<\_ASBOX
8387## ---------------------------------------------- ##
8388## Report this to orxonox-dev at mail.datacore.ch ##
8389## ---------------------------------------------- ##
8390_ASBOX
8391    ) |
8392      sed "s/^/$as_me: WARNING:     /" >&2
8393    ;;
8394esac
8395echo "$as_me:$LINENO: checking for $ac_header" >&5
8396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8397if eval "test \"\${$as_ac_Header+set}\" = set"; then
8398  echo $ECHO_N "(cached) $ECHO_C" >&6
8399else
8400  eval "$as_ac_Header=\$ac_header_preproc"
8401fi
8402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8404
8405fi
8406if test `eval echo '${'$as_ac_Header'}'` = yes; then
8407  cat >>confdefs.h <<_ACEOF
8408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409_ACEOF
8410
8411else
8412
8413for ac_header in SDL/SDL_ttf.h
8414do
8415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8416if eval "test \"\${$as_ac_Header+set}\" = set"; then
8417  echo "$as_me:$LINENO: checking for $ac_header" >&5
8418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8419if eval "test \"\${$as_ac_Header+set}\" = set"; then
8420  echo $ECHO_N "(cached) $ECHO_C" >&6
8421fi
8422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424else
8425  # Is the header compilable?
8426echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8428cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h.  */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h.  */
8434$ac_includes_default
8435#include <$ac_header>
8436_ACEOF
8437rm -f conftest.$ac_objext
8438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439  (eval $ac_compile) 2>conftest.er1
8440  ac_status=$?
8441  grep -v '^ *+' conftest.er1 >conftest.err
8442  rm -f conftest.er1
8443  cat conftest.err >&5
8444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445  (exit $ac_status); } &&
8446         { ac_try='test -z "$ac_c_werror_flag"
8447                         || test ! -s conftest.err'
8448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449  (eval $ac_try) 2>&5
8450  ac_status=$?
8451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452  (exit $ac_status); }; } &&
8453         { ac_try='test -s conftest.$ac_objext'
8454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455  (eval $ac_try) 2>&5
8456  ac_status=$?
8457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458  (exit $ac_status); }; }; then
8459  ac_header_compiler=yes
8460else
8461  echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464ac_header_compiler=no
8465fi
8466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8468echo "${ECHO_T}$ac_header_compiler" >&6
8469
8470# Is the header present?
8471echo "$as_me:$LINENO: checking $ac_header presence" >&5
8472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8473cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h.  */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h.  */
8479#include <$ac_header>
8480_ACEOF
8481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8482  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8483  ac_status=$?
8484  grep -v '^ *+' conftest.er1 >conftest.err
8485  rm -f conftest.er1
8486  cat conftest.err >&5
8487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488  (exit $ac_status); } >/dev/null; then
8489  if test -s conftest.err; then
8490    ac_cpp_err=$ac_c_preproc_warn_flag
8491    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8492  else
8493    ac_cpp_err=
8494  fi
8495else
8496  ac_cpp_err=yes
8497fi
8498if test -z "$ac_cpp_err"; then
8499  ac_header_preproc=yes
8500else
8501  echo "$as_me: failed program was:" >&5
8502sed 's/^/| /' conftest.$ac_ext >&5
8503
8504  ac_header_preproc=no
8505fi
8506rm -f conftest.err conftest.$ac_ext
8507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8508echo "${ECHO_T}$ac_header_preproc" >&6
8509
8510# So?  What about this header?
8511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8512  yes:no: )
8513    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8515    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8517    ac_header_preproc=yes
8518    ;;
8519  no:yes:* )
8520    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8522    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8523echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8524    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8526    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8527echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8528    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8530    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532    (
8533      cat <<\_ASBOX
8534## ---------------------------------------------- ##
8535## Report this to orxonox-dev at mail.datacore.ch ##
8536## ---------------------------------------------- ##
8537_ASBOX
8538    ) |
8539      sed "s/^/$as_me: WARNING:     /" >&2
8540    ;;
8541esac
8542echo "$as_me:$LINENO: checking for $ac_header" >&5
8543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8544if eval "test \"\${$as_ac_Header+set}\" = set"; then
8545  echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547  eval "$as_ac_Header=\$ac_header_preproc"
8548fi
8549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8551
8552fi
8553if test `eval echo '${'$as_ac_Header'}'` = yes; then
8554  cat >>confdefs.h <<_ACEOF
8555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8556_ACEOF
8557
8558else
8559  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
8560echo "$as_me: error: cannot find SDL_ttf header." >&2;}
8561   { (exit 1); exit 1; }; }
8562fi
8563
8564done
8565
8566fi
8567
8568done
8569
8570# checking for SDL_ttf-lib
8571  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
8572echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
8573if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
8574  echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576  ac_check_lib_save_LIBS=$LIBS
8577LIBS="-lSDL_ttf  $LIBS"
8578cat >conftest.$ac_ext <<_ACEOF
8579/* confdefs.h.  */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h.  */
8584
8585/* Override any gcc2 internal prototype to avoid an error.  */
8586#ifdef __cplusplus
8587extern "C"
8588#endif
8589/* We use char because int might match the return type of a gcc2
8590   builtin and then its argument prototype would still apply.  */
8591char TTF_OpenFont ();
8592int
8593main ()
8594{
8595TTF_OpenFont ();
8596  ;
8597  return 0;
8598}
8599_ACEOF
8600rm -f conftest.$ac_objext conftest$ac_exeext
8601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602  (eval $ac_link) 2>conftest.er1
8603  ac_status=$?
8604  grep -v '^ *+' conftest.er1 >conftest.err
8605  rm -f conftest.er1
8606  cat conftest.err >&5
8607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608  (exit $ac_status); } &&
8609         { ac_try='test -z "$ac_c_werror_flag"
8610                         || test ! -s conftest.err'
8611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612  (eval $ac_try) 2>&5
8613  ac_status=$?
8614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615  (exit $ac_status); }; } &&
8616         { ac_try='test -s conftest$ac_exeext'
8617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618  (eval $ac_try) 2>&5
8619  ac_status=$?
8620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621  (exit $ac_status); }; }; then
8622  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
8623else
8624  echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627ac_cv_lib_SDL_ttf_TTF_OpenFont=no
8628fi
8629rm -f conftest.err conftest.$ac_objext \
8630      conftest$ac_exeext conftest.$ac_ext
8631LIBS=$ac_check_lib_save_LIBS
8632fi
8633echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
8634echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
8635if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
8636  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
8637fi
8638
8639     if test x$FOUND_SDL_ttf != xyes ; then
8640        echo "------------------"
8641        echo "SDL_ttf library not found."
8642        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
8643        echo "------------------"
8644        exit -1
8645     fi
8646
8647#-----------#
8648# SDL_Image #
8649#-----------#
8650# checking for SDL_image-headers
8651
8652for ac_header in SDL_image.h
8653do
8654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8655if eval "test \"\${$as_ac_Header+set}\" = set"; then
8656  echo "$as_me:$LINENO: checking for $ac_header" >&5
8657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8658if eval "test \"\${$as_ac_Header+set}\" = set"; then
8659  echo $ECHO_N "(cached) $ECHO_C" >&6
8660fi
8661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8663else
8664  # Is the header compilable?
8665echo "$as_me:$LINENO: checking $ac_header usability" >&5
8666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8667cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h.  */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h.  */
8673$ac_includes_default
8674#include <$ac_header>
8675_ACEOF
8676rm -f conftest.$ac_objext
8677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8678  (eval $ac_compile) 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } &&
8685         { ac_try='test -z "$ac_c_werror_flag"
8686                         || test ! -s conftest.err'
8687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688  (eval $ac_try) 2>&5
8689  ac_status=$?
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; } &&
8692         { ac_try='test -s conftest.$ac_objext'
8693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694  (eval $ac_try) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; }; then
8698  ac_header_compiler=yes
8699else
8700  echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703ac_header_compiler=no
8704fi
8705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8707echo "${ECHO_T}$ac_header_compiler" >&6
8708
8709# Is the header present?
8710echo "$as_me:$LINENO: checking $ac_header presence" >&5
8711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8712cat >conftest.$ac_ext <<_ACEOF
8713/* confdefs.h.  */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h.  */
8718#include <$ac_header>
8719_ACEOF
8720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8722  ac_status=$?
8723  grep -v '^ *+' conftest.er1 >conftest.err
8724  rm -f conftest.er1
8725  cat conftest.err >&5
8726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727  (exit $ac_status); } >/dev/null; then
8728  if test -s conftest.err; then
8729    ac_cpp_err=$ac_c_preproc_warn_flag
8730    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8731  else
8732    ac_cpp_err=
8733  fi
8734else
8735  ac_cpp_err=yes
8736fi
8737if test -z "$ac_cpp_err"; then
8738  ac_header_preproc=yes
8739else
8740  echo "$as_me: failed program was:" >&5
8741sed 's/^/| /' conftest.$ac_ext >&5
8742
8743  ac_header_preproc=no
8744fi
8745rm -f conftest.err conftest.$ac_ext
8746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8747echo "${ECHO_T}$ac_header_preproc" >&6
8748
8749# So?  What about this header?
8750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8751  yes:no: )
8752    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8756    ac_header_preproc=yes
8757    ;;
8758  no:yes:* )
8759    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8761    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8762echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8763    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8765    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8766echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8769    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8771    (
8772      cat <<\_ASBOX
8773## ---------------------------------------------- ##
8774## Report this to orxonox-dev at mail.datacore.ch ##
8775## ---------------------------------------------- ##
8776_ASBOX
8777    ) |
8778      sed "s/^/$as_me: WARNING:     /" >&2
8779    ;;
8780esac
8781echo "$as_me:$LINENO: checking for $ac_header" >&5
8782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8783if eval "test \"\${$as_ac_Header+set}\" = set"; then
8784  echo $ECHO_N "(cached) $ECHO_C" >&6
8785else
8786  eval "$as_ac_Header=\$ac_header_preproc"
8787fi
8788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8790
8791fi
8792if test `eval echo '${'$as_ac_Header'}'` = yes; then
8793  cat >>confdefs.h <<_ACEOF
8794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8795_ACEOF
8796
8797else
8798
8799for ac_header in SDL/SDL_image.h
8800do
8801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8802if eval "test \"\${$as_ac_Header+set}\" = set"; then
8803  echo "$as_me:$LINENO: checking for $ac_header" >&5
8804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8805if eval "test \"\${$as_ac_Header+set}\" = set"; then
8806  echo $ECHO_N "(cached) $ECHO_C" >&6
8807fi
8808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8810else
8811  # Is the header compilable?
8812echo "$as_me:$LINENO: checking $ac_header usability" >&5
8813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8814cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h.  */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h.  */
8820$ac_includes_default
8821#include <$ac_header>
8822_ACEOF
8823rm -f conftest.$ac_objext
8824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8825  (eval $ac_compile) 2>conftest.er1
8826  ac_status=$?
8827  grep -v '^ *+' conftest.er1 >conftest.err
8828  rm -f conftest.er1
8829  cat conftest.err >&5
8830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831  (exit $ac_status); } &&
8832         { ac_try='test -z "$ac_c_werror_flag"
8833                         || test ! -s conftest.err'
8834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835  (eval $ac_try) 2>&5
8836  ac_status=$?
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); }; } &&
8839         { ac_try='test -s conftest.$ac_objext'
8840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841  (eval $ac_try) 2>&5
8842  ac_status=$?
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); }; }; then
8845  ac_header_compiler=yes
8846else
8847  echo "$as_me: failed program was:" >&5
8848sed 's/^/| /' conftest.$ac_ext >&5
8849
8850ac_header_compiler=no
8851fi
8852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8854echo "${ECHO_T}$ac_header_compiler" >&6
8855
8856# Is the header present?
8857echo "$as_me:$LINENO: checking $ac_header presence" >&5
8858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8859cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h.  */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h.  */
8865#include <$ac_header>
8866_ACEOF
8867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8868  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8869  ac_status=$?
8870  grep -v '^ *+' conftest.er1 >conftest.err
8871  rm -f conftest.er1
8872  cat conftest.err >&5
8873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874  (exit $ac_status); } >/dev/null; then
8875  if test -s conftest.err; then
8876    ac_cpp_err=$ac_c_preproc_warn_flag
8877    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8878  else
8879    ac_cpp_err=
8880  fi
8881else
8882  ac_cpp_err=yes
8883fi
8884if test -z "$ac_cpp_err"; then
8885  ac_header_preproc=yes
8886else
8887  echo "$as_me: failed program was:" >&5
8888sed 's/^/| /' conftest.$ac_ext >&5
8889
8890  ac_header_preproc=no
8891fi
8892rm -f conftest.err conftest.$ac_ext
8893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8894echo "${ECHO_T}$ac_header_preproc" >&6
8895
8896# So?  What about this header?
8897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8898  yes:no: )
8899    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8903    ac_header_preproc=yes
8904    ;;
8905  no:yes:* )
8906    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8908    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8909echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8910    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8912    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8913echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8914    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8916    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8918    (
8919      cat <<\_ASBOX
8920## ---------------------------------------------- ##
8921## Report this to orxonox-dev at mail.datacore.ch ##
8922## ---------------------------------------------- ##
8923_ASBOX
8924    ) |
8925      sed "s/^/$as_me: WARNING:     /" >&2
8926    ;;
8927esac
8928echo "$as_me:$LINENO: checking for $ac_header" >&5
8929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931  echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933  eval "$as_ac_Header=\$ac_header_preproc"
8934fi
8935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8937
8938fi
8939if test `eval echo '${'$as_ac_Header'}'` = yes; then
8940  cat >>confdefs.h <<_ACEOF
8941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8942_ACEOF
8943
8944else
8945  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8946echo "$as_me: error: SDL_image header not found." >&2;}
8947   { (exit 1); exit 1; }; }
8948fi
8949
8950done
8951
8952fi
8953
8954done
8955
8956# checking for SDL_image-lib
8957echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8958echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8959if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8960  echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962  ac_check_lib_save_LIBS=$LIBS
8963LIBS="-lSDL_image  $LIBS"
8964cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h.  */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h.  */
8970
8971
8972int
8973main ()
8974{
8975main ();
8976  ;
8977  return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext conftest$ac_exeext
8981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982  (eval $ac_link) 2>conftest.er1
8983  ac_status=$?
8984  grep -v '^ *+' conftest.er1 >conftest.err
8985  rm -f conftest.er1
8986  cat conftest.err >&5
8987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988  (exit $ac_status); } &&
8989         { ac_try='test -z "$ac_c_werror_flag"
8990                         || test ! -s conftest.err'
8991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992  (eval $ac_try) 2>&5
8993  ac_status=$?
8994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995  (exit $ac_status); }; } &&
8996         { ac_try='test -s conftest$ac_exeext'
8997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998  (eval $ac_try) 2>&5
8999  ac_status=$?
9000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001  (exit $ac_status); }; }; then
9002  ac_cv_lib_SDL_image_main=yes
9003else
9004  echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
9007ac_cv_lib_SDL_image_main=no
9008fi
9009rm -f conftest.err conftest.$ac_objext \
9010      conftest$ac_exeext conftest.$ac_ext
9011LIBS=$ac_check_lib_save_LIBS
9012fi
9013echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
9014echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
9015if test $ac_cv_lib_SDL_image_main = yes; then
9016  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
9017fi
9018
9019   if test x$FOUND_SDL_image != xyes ; then
9020      echo "------------------"
9021      echo "SDL_image library not found."
9022      echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/"
9023      echo "------------------"
9024      exit -1
9025   fi
9026
9027#-----#
9028# ogg #
9029#-----#
9030# checking for ogg-headers
9031
9032for ac_header in ogg/ogg.h
9033do
9034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9035if eval "test \"\${$as_ac_Header+set}\" = set"; then
9036  echo "$as_me:$LINENO: checking for $ac_header" >&5
9037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9038if eval "test \"\${$as_ac_Header+set}\" = set"; then
9039  echo $ECHO_N "(cached) $ECHO_C" >&6
9040fi
9041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9043else
9044  # Is the header compilable?
9045echo "$as_me:$LINENO: checking $ac_header usability" >&5
9046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9047cat >conftest.$ac_ext <<_ACEOF
9048/* confdefs.h.  */
9049_ACEOF
9050cat confdefs.h >>conftest.$ac_ext
9051cat >>conftest.$ac_ext <<_ACEOF
9052/* end confdefs.h.  */
9053$ac_includes_default
9054#include <$ac_header>
9055_ACEOF
9056rm -f conftest.$ac_objext
9057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058  (eval $ac_compile) 2>conftest.er1
9059  ac_status=$?
9060  grep -v '^ *+' conftest.er1 >conftest.err
9061  rm -f conftest.er1
9062  cat conftest.err >&5
9063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064  (exit $ac_status); } &&
9065         { ac_try='test -z "$ac_c_werror_flag"
9066                         || test ! -s conftest.err'
9067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068  (eval $ac_try) 2>&5
9069  ac_status=$?
9070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071  (exit $ac_status); }; } &&
9072         { ac_try='test -s conftest.$ac_objext'
9073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074  (eval $ac_try) 2>&5
9075  ac_status=$?
9076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077  (exit $ac_status); }; }; then
9078  ac_header_compiler=yes
9079else
9080  echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
9083ac_header_compiler=no
9084fi
9085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9087echo "${ECHO_T}$ac_header_compiler" >&6
9088
9089# Is the header present?
9090echo "$as_me:$LINENO: checking $ac_header presence" >&5
9091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9092cat >conftest.$ac_ext <<_ACEOF
9093/* confdefs.h.  */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
9097/* end confdefs.h.  */
9098#include <$ac_header>
9099_ACEOF
9100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9101  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9102  ac_status=$?
9103  grep -v '^ *+' conftest.er1 >conftest.err
9104  rm -f conftest.er1
9105  cat conftest.err >&5
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); } >/dev/null; then
9108  if test -s conftest.err; then
9109    ac_cpp_err=$ac_c_preproc_warn_flag
9110    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9111  else
9112    ac_cpp_err=
9113  fi
9114else
9115  ac_cpp_err=yes
9116fi
9117if test -z "$ac_cpp_err"; then
9118  ac_header_preproc=yes
9119else
9120  echo "$as_me: failed program was:" >&5
9121sed 's/^/| /' conftest.$ac_ext >&5
9122
9123  ac_header_preproc=no
9124fi
9125rm -f conftest.err conftest.$ac_ext
9126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9127echo "${ECHO_T}$ac_header_preproc" >&6
9128
9129# So?  What about this header?
9130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9131  yes:no: )
9132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9136    ac_header_preproc=yes
9137    ;;
9138  no:yes:* )
9139    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9141    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9142echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9143    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9145    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9146echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9149    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9151    (
9152      cat <<\_ASBOX
9153## ---------------------------------------------- ##
9154## Report this to orxonox-dev at mail.datacore.ch ##
9155## ---------------------------------------------- ##
9156_ASBOX
9157    ) |
9158      sed "s/^/$as_me: WARNING:     /" >&2
9159    ;;
9160esac
9161echo "$as_me:$LINENO: checking for $ac_header" >&5
9162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9163if eval "test \"\${$as_ac_Header+set}\" = set"; then
9164  echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166  eval "$as_ac_Header=\$ac_header_preproc"
9167fi
9168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9170
9171fi
9172if test `eval echo '${'$as_ac_Header'}'` = yes; then
9173  cat >>confdefs.h <<_ACEOF
9174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9175_ACEOF
9176
9177else
9178  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
9179echo "$as_me: error: cannot find ogg header." >&2;}
9180   { (exit 1); exit 1; }; }
9181fi
9182
9183done
9184
9185# checking for ogg-lib
9186  echo "$as_me:$LINENO: checking for main in -logg" >&5
9187echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
9188if test "${ac_cv_lib_ogg_main+set}" = set; then
9189  echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
9191  ac_check_lib_save_LIBS=$LIBS
9192LIBS="-logg  $LIBS"
9193cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h.  */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h.  */
9199
9200
9201int
9202main ()
9203{
9204main ();
9205  ;
9206  return 0;
9207}
9208_ACEOF
9209rm -f conftest.$ac_objext conftest$ac_exeext
9210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211  (eval $ac_link) 2>conftest.er1
9212  ac_status=$?
9213  grep -v '^ *+' conftest.er1 >conftest.err
9214  rm -f conftest.er1
9215  cat conftest.err >&5
9216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217  (exit $ac_status); } &&
9218         { ac_try='test -z "$ac_c_werror_flag"
9219                         || test ! -s conftest.err'
9220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221  (eval $ac_try) 2>&5
9222  ac_status=$?
9223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224  (exit $ac_status); }; } &&
9225         { ac_try='test -s conftest$ac_exeext'
9226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227  (eval $ac_try) 2>&5
9228  ac_status=$?
9229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230  (exit $ac_status); }; }; then
9231  ac_cv_lib_ogg_main=yes
9232else
9233  echo "$as_me: failed program was:" >&5
9234sed 's/^/| /' conftest.$ac_ext >&5
9235
9236ac_cv_lib_ogg_main=no
9237fi
9238rm -f conftest.err conftest.$ac_objext \
9239      conftest$ac_exeext conftest.$ac_ext
9240LIBS=$ac_check_lib_save_LIBS
9241fi
9242echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
9243echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
9244if test $ac_cv_lib_ogg_main = yes; then
9245  FOUND_ogg=yes; LIBS="$LIBS -logg"
9246fi
9247
9248     if test x$FOUND_ogg != xyes ; then
9249        echo "------------------"
9250        echo "ogg library not found."
9251        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9252        echo "------------------"
9253        exit -1
9254     fi
9255
9256#--------#
9257# vorbis #
9258#--------#
9259# checking for vorbis-lib
9260  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
9261echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
9262if test "${ac_cv_lib_vorbis_main+set}" = set; then
9263  echo $ECHO_N "(cached) $ECHO_C" >&6
9264else
9265  ac_check_lib_save_LIBS=$LIBS
9266LIBS="-lvorbis  $LIBS"
9267cat >conftest.$ac_ext <<_ACEOF
9268/* confdefs.h.  */
9269_ACEOF
9270cat confdefs.h >>conftest.$ac_ext
9271cat >>conftest.$ac_ext <<_ACEOF
9272/* end confdefs.h.  */
9273
9274
9275int
9276main ()
9277{
9278main ();
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283rm -f conftest.$ac_objext conftest$ac_exeext
9284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285  (eval $ac_link) 2>conftest.er1
9286  ac_status=$?
9287  grep -v '^ *+' conftest.er1 >conftest.err
9288  rm -f conftest.er1
9289  cat conftest.err >&5
9290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291  (exit $ac_status); } &&
9292         { ac_try='test -z "$ac_c_werror_flag"
9293                         || test ! -s conftest.err'
9294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295  (eval $ac_try) 2>&5
9296  ac_status=$?
9297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298  (exit $ac_status); }; } &&
9299         { ac_try='test -s conftest$ac_exeext'
9300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301  (eval $ac_try) 2>&5
9302  ac_status=$?
9303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304  (exit $ac_status); }; }; then
9305  ac_cv_lib_vorbis_main=yes
9306else
9307  echo "$as_me: failed program was:" >&5
9308sed 's/^/| /' conftest.$ac_ext >&5
9309
9310ac_cv_lib_vorbis_main=no
9311fi
9312rm -f conftest.err conftest.$ac_objext \
9313      conftest$ac_exeext conftest.$ac_ext
9314LIBS=$ac_check_lib_save_LIBS
9315fi
9316echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
9317echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
9318if test $ac_cv_lib_vorbis_main = yes; then
9319  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
9320fi
9321
9322     if test x$FOUND_vorbis != xyes ; then
9323        echo "------------------"
9324        echo "vorbis library not found."
9325        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9326        echo "------------------"
9327        exit -1
9328     fi
9329
9330#------------#
9331# vorbisfile #
9332#------------#
9333# checking for vorbis-headers
9334
9335for ac_header in vorbis/vorbisfile.h
9336do
9337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9338if eval "test \"\${$as_ac_Header+set}\" = set"; then
9339  echo "$as_me:$LINENO: checking for $ac_header" >&5
9340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9341if eval "test \"\${$as_ac_Header+set}\" = set"; then
9342  echo $ECHO_N "(cached) $ECHO_C" >&6
9343fi
9344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9346else
9347  # Is the header compilable?
9348echo "$as_me:$LINENO: checking $ac_header usability" >&5
9349echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9350cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h.  */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h.  */
9356$ac_includes_default
9357#include <$ac_header>
9358_ACEOF
9359rm -f conftest.$ac_objext
9360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361  (eval $ac_compile) 2>conftest.er1
9362  ac_status=$?
9363  grep -v '^ *+' conftest.er1 >conftest.err
9364  rm -f conftest.er1
9365  cat conftest.err >&5
9366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367  (exit $ac_status); } &&
9368         { ac_try='test -z "$ac_c_werror_flag"
9369                         || test ! -s conftest.err'
9370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371  (eval $ac_try) 2>&5
9372  ac_status=$?
9373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374  (exit $ac_status); }; } &&
9375         { ac_try='test -s conftest.$ac_objext'
9376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377  (eval $ac_try) 2>&5
9378  ac_status=$?
9379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380  (exit $ac_status); }; }; then
9381  ac_header_compiler=yes
9382else
9383  echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386ac_header_compiler=no
9387fi
9388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9390echo "${ECHO_T}$ac_header_compiler" >&6
9391
9392# Is the header present?
9393echo "$as_me:$LINENO: checking $ac_header presence" >&5
9394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9395cat >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 <$ac_header>
9402_ACEOF
9403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9404  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9405  ac_status=$?
9406  grep -v '^ *+' conftest.er1 >conftest.err
9407  rm -f conftest.er1
9408  cat conftest.err >&5
9409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410  (exit $ac_status); } >/dev/null; then
9411  if test -s conftest.err; then
9412    ac_cpp_err=$ac_c_preproc_warn_flag
9413    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9414  else
9415    ac_cpp_err=
9416  fi
9417else
9418  ac_cpp_err=yes
9419fi
9420if test -z "$ac_cpp_err"; then
9421  ac_header_preproc=yes
9422else
9423  echo "$as_me: failed program was:" >&5
9424sed 's/^/| /' conftest.$ac_ext >&5
9425
9426  ac_header_preproc=no
9427fi
9428rm -f conftest.err conftest.$ac_ext
9429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9430echo "${ECHO_T}$ac_header_preproc" >&6
9431
9432# So?  What about this header?
9433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9434  yes:no: )
9435    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9437    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9439    ac_header_preproc=yes
9440    ;;
9441  no:yes:* )
9442    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9444    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9445echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9446    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9448    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9449echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9450    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9452    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9454    (
9455      cat <<\_ASBOX
9456## ---------------------------------------------- ##
9457## Report this to orxonox-dev at mail.datacore.ch ##
9458## ---------------------------------------------- ##
9459_ASBOX
9460    ) |
9461      sed "s/^/$as_me: WARNING:     /" >&2
9462    ;;
9463esac
9464echo "$as_me:$LINENO: checking for $ac_header" >&5
9465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9466if eval "test \"\${$as_ac_Header+set}\" = set"; then
9467  echo $ECHO_N "(cached) $ECHO_C" >&6
9468else
9469  eval "$as_ac_Header=\$ac_header_preproc"
9470fi
9471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473
9474fi
9475if test `eval echo '${'$as_ac_Header'}'` = yes; then
9476  cat >>confdefs.h <<_ACEOF
9477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9478_ACEOF
9479
9480else
9481  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
9482echo "$as_me: error: cannot find vorbisfile header." >&2;}
9483   { (exit 1); exit 1; }; }
9484fi
9485
9486done
9487
9488# checking for vorbisfile-lib
9489  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
9490echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
9491if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
9492  echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494  ac_check_lib_save_LIBS=$LIBS
9495LIBS="-lvorbisfile  $LIBS"
9496cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h.  */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h.  */
9502
9503
9504int
9505main ()
9506{
9507main ();
9508  ;
9509  return 0;
9510}
9511_ACEOF
9512rm -f conftest.$ac_objext conftest$ac_exeext
9513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514  (eval $ac_link) 2>conftest.er1
9515  ac_status=$?
9516  grep -v '^ *+' conftest.er1 >conftest.err
9517  rm -f conftest.er1
9518  cat conftest.err >&5
9519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520  (exit $ac_status); } &&
9521         { ac_try='test -z "$ac_c_werror_flag"
9522                         || test ! -s conftest.err'
9523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524  (eval $ac_try) 2>&5
9525  ac_status=$?
9526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527  (exit $ac_status); }; } &&
9528         { ac_try='test -s conftest$ac_exeext'
9529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530  (eval $ac_try) 2>&5
9531  ac_status=$?
9532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533  (exit $ac_status); }; }; then
9534  ac_cv_lib_vorbisfile_main=yes
9535else
9536  echo "$as_me: failed program was:" >&5
9537sed 's/^/| /' conftest.$ac_ext >&5
9538
9539ac_cv_lib_vorbisfile_main=no
9540fi
9541rm -f conftest.err conftest.$ac_objext \
9542      conftest$ac_exeext conftest.$ac_ext
9543LIBS=$ac_check_lib_save_LIBS
9544fi
9545echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
9546echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
9547if test $ac_cv_lib_vorbisfile_main = yes; then
9548  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
9549fi
9550
9551     if test x$FOUND_vorbisfile != xyes ; then
9552        echo "------------------"
9553        echo "vorbisfile library not found."
9554        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9555        echo "------------------"
9556        exit -1
9557     fi
9558
9559
9560#---------#
9561# libcURL #
9562#---------#
9563if test x$def_curl = xyes; then
9564
9565for ac_header in curl/curl.h
9566do
9567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9568if eval "test \"\${$as_ac_Header+set}\" = set"; then
9569  echo "$as_me:$LINENO: checking for $ac_header" >&5
9570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9571if eval "test \"\${$as_ac_Header+set}\" = set"; then
9572  echo $ECHO_N "(cached) $ECHO_C" >&6
9573fi
9574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9576else
9577  # Is the header compilable?
9578echo "$as_me:$LINENO: checking $ac_header usability" >&5
9579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9580cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h.  */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h.  */
9586$ac_includes_default
9587#include <$ac_header>
9588_ACEOF
9589rm -f conftest.$ac_objext
9590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591  (eval $ac_compile) 2>conftest.er1
9592  ac_status=$?
9593  grep -v '^ *+' conftest.er1 >conftest.err
9594  rm -f conftest.er1
9595  cat conftest.err >&5
9596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597  (exit $ac_status); } &&
9598         { ac_try='test -z "$ac_c_werror_flag"
9599                         || test ! -s conftest.err'
9600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601  (eval $ac_try) 2>&5
9602  ac_status=$?
9603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604  (exit $ac_status); }; } &&
9605         { ac_try='test -s conftest.$ac_objext'
9606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607  (eval $ac_try) 2>&5
9608  ac_status=$?
9609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610  (exit $ac_status); }; }; then
9611  ac_header_compiler=yes
9612else
9613  echo "$as_me: failed program was:" >&5
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
9616ac_header_compiler=no
9617fi
9618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9619echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620echo "${ECHO_T}$ac_header_compiler" >&6
9621
9622# Is the header present?
9623echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9625cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h.  */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h.  */
9631#include <$ac_header>
9632_ACEOF
9633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9634  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9635  ac_status=$?
9636  grep -v '^ *+' conftest.er1 >conftest.err
9637  rm -f conftest.er1
9638  cat conftest.err >&5
9639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640  (exit $ac_status); } >/dev/null; then
9641  if test -s conftest.err; then
9642    ac_cpp_err=$ac_c_preproc_warn_flag
9643    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9644  else
9645    ac_cpp_err=
9646  fi
9647else
9648  ac_cpp_err=yes
9649fi
9650if test -z "$ac_cpp_err"; then
9651  ac_header_preproc=yes
9652else
9653  echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
9656  ac_header_preproc=no
9657fi
9658rm -f conftest.err conftest.$ac_ext
9659echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9660echo "${ECHO_T}$ac_header_preproc" >&6
9661
9662# So?  What about this header?
9663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9664  yes:no: )
9665    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9666echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9667    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9668echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9669    ac_header_preproc=yes
9670    ;;
9671  no:yes:* )
9672    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9674    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9675echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9676    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9677echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9678    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9679echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9680    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9682    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9683echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9684    (
9685      cat <<\_ASBOX
9686## ---------------------------------------------- ##
9687## Report this to orxonox-dev at mail.datacore.ch ##
9688## ---------------------------------------------- ##
9689_ASBOX
9690    ) |
9691      sed "s/^/$as_me: WARNING:     /" >&2
9692    ;;
9693esac
9694echo "$as_me:$LINENO: checking for $ac_header" >&5
9695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9696if eval "test \"\${$as_ac_Header+set}\" = set"; then
9697  echo $ECHO_N "(cached) $ECHO_C" >&6
9698else
9699  eval "$as_ac_Header=\$ac_header_preproc"
9700fi
9701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9703
9704fi
9705if test `eval echo '${'$as_ac_Header'}'` = yes; then
9706  cat >>confdefs.h <<_ACEOF
9707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9708_ACEOF
9709 curlHeader=yes
9710else
9711  curlHeader=no
9712fi
9713
9714done
9715
9716 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9717echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9718if test "${ac_cv_lib_curl_main+set}" = set; then
9719  echo $ECHO_N "(cached) $ECHO_C" >&6
9720else
9721  ac_check_lib_save_LIBS=$LIBS
9722LIBS="-lcurl  $LIBS"
9723cat >conftest.$ac_ext <<_ACEOF
9724/* confdefs.h.  */
9725_ACEOF
9726cat confdefs.h >>conftest.$ac_ext
9727cat >>conftest.$ac_ext <<_ACEOF
9728/* end confdefs.h.  */
9729
9730
9731int
9732main ()
9733{
9734main ();
9735  ;
9736  return 0;
9737}
9738_ACEOF
9739rm -f conftest.$ac_objext conftest$ac_exeext
9740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741  (eval $ac_link) 2>conftest.er1
9742  ac_status=$?
9743  grep -v '^ *+' conftest.er1 >conftest.err
9744  rm -f conftest.er1
9745  cat conftest.err >&5
9746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747  (exit $ac_status); } &&
9748         { ac_try='test -z "$ac_c_werror_flag"
9749                         || test ! -s conftest.err'
9750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751  (eval $ac_try) 2>&5
9752  ac_status=$?
9753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754  (exit $ac_status); }; } &&
9755         { ac_try='test -s conftest$ac_exeext'
9756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757  (eval $ac_try) 2>&5
9758  ac_status=$?
9759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760  (exit $ac_status); }; }; then
9761  ac_cv_lib_curl_main=yes
9762else
9763  echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766ac_cv_lib_curl_main=no
9767fi
9768rm -f conftest.err conftest.$ac_objext \
9769      conftest$ac_exeext conftest.$ac_ext
9770LIBS=$ac_check_lib_save_LIBS
9771fi
9772echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9773echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9774if test $ac_cv_lib_curl_main = yes; then
9775  FOUND_curl=yes
9776fi
9777
9778 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
9779  have_curl=yes
9780  CURL_LIBS=`curl-config --libs`
9781  CURLCFLAGS=`curl-config --cflags`
9782
9783cat >>confdefs.h <<_ACEOF
9784#define HAVE_CURL 1
9785_ACEOF
9786
9787 else
9788  have_curl=no
9789 fi
9790
9791fi
9792
9793
9794
9795
9796if test x$have_curl = xyes; then
9797  HAVE_CURL_TRUE=
9798  HAVE_CURL_FALSE='#'
9799else
9800  HAVE_CURL_TRUE='#'
9801  HAVE_CURL_FALSE=
9802fi
9803
9804
9805#--------#
9806# efence #
9807#--------#
9808if test x$def_efence = xyes ; then
9809  echo "$as_me:$LINENO: checking for main in -lefence" >&5
9810echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9811if test "${ac_cv_lib_efence_main+set}" = set; then
9812  echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814  ac_check_lib_save_LIBS=$LIBS
9815LIBS="-lefence  $LIBS"
9816cat >conftest.$ac_ext <<_ACEOF
9817/* confdefs.h.  */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h.  */
9822
9823
9824int
9825main ()
9826{
9827main ();
9828  ;
9829  return 0;
9830}
9831_ACEOF
9832rm -f conftest.$ac_objext conftest$ac_exeext
9833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834  (eval $ac_link) 2>conftest.er1
9835  ac_status=$?
9836  grep -v '^ *+' conftest.er1 >conftest.err
9837  rm -f conftest.er1
9838  cat conftest.err >&5
9839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840  (exit $ac_status); } &&
9841         { ac_try='test -z "$ac_c_werror_flag"
9842                         || test ! -s conftest.err'
9843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844  (eval $ac_try) 2>&5
9845  ac_status=$?
9846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847  (exit $ac_status); }; } &&
9848         { ac_try='test -s conftest$ac_exeext'
9849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850  (eval $ac_try) 2>&5
9851  ac_status=$?
9852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853  (exit $ac_status); }; }; then
9854  ac_cv_lib_efence_main=yes
9855else
9856  echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
9859ac_cv_lib_efence_main=no
9860fi
9861rm -f conftest.err conftest.$ac_objext \
9862      conftest$ac_exeext conftest.$ac_ext
9863LIBS=$ac_check_lib_save_LIBS
9864fi
9865echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9866echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9867if test $ac_cv_lib_efence_main = yes; then
9868  FOUND_efence=yes; LIBS="$LIBS -lefence"
9869fi
9870
9871   if test x$FOUND_efence != xyes ; then
9872     echo "efence was requested, but is not installed!! going on"
9873   fi
9874
9875fi
9876
9877#-----#
9878# GTK #
9879#-----#
9880if test x$def_gtk = xyes; then
9881#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
9882        echo "$as_me:$LINENO: checking for gtk2.0" >&5
9883echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
9884        if `$PKG_CONFIG --exists gtk+-2.0`; then
9885                echo "yes"
9886                have_gtk2=yes
9887                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9888                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9889
9890cat >>confdefs.h <<_ACEOF
9891#define HAVE_GTK2 1
9892_ACEOF
9893
9894                if test $DEBUG -ge 3; then
9895                 echo "cflags: $GTK2_CFLAGS"
9896                 echo "libs: $GTK2_LIBS"
9897                fi
9898        else
9899                echo "no"
9900        fi
9901
9902fi
9903
9904
9905
9906
9907if test x$have_gtk2 = xyes; then
9908  HAVE_GTK2_TRUE=
9909  HAVE_GTK2_FALSE='#'
9910else
9911  HAVE_GTK2_TRUE='#'
9912  HAVE_GTK2_FALSE=
9913fi
9914
9915
9916
9917# FIXME: Replace `main' with a function in `-lm':
9918
9919echo "$as_me:$LINENO: checking for main in -lm" >&5
9920echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9921if test "${ac_cv_lib_m_main+set}" = set; then
9922  echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924  ac_check_lib_save_LIBS=$LIBS
9925LIBS="-lm  $LIBS"
9926cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h.  */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h.  */
9932
9933
9934int
9935main ()
9936{
9937main ();
9938  ;
9939  return 0;
9940}
9941_ACEOF
9942rm -f conftest.$ac_objext conftest$ac_exeext
9943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944  (eval $ac_link) 2>conftest.er1
9945  ac_status=$?
9946  grep -v '^ *+' conftest.er1 >conftest.err
9947  rm -f conftest.er1
9948  cat conftest.err >&5
9949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950  (exit $ac_status); } &&
9951         { ac_try='test -z "$ac_c_werror_flag"
9952                         || test ! -s conftest.err'
9953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954  (eval $ac_try) 2>&5
9955  ac_status=$?
9956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); }; } &&
9958         { ac_try='test -s conftest$ac_exeext'
9959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960  (eval $ac_try) 2>&5
9961  ac_status=$?
9962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963  (exit $ac_status); }; }; then
9964  ac_cv_lib_m_main=yes
9965else
9966  echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969ac_cv_lib_m_main=no
9970fi
9971rm -f conftest.err conftest.$ac_objext \
9972      conftest$ac_exeext conftest.$ac_ext
9973LIBS=$ac_check_lib_save_LIBS
9974fi
9975echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9976echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9977if test $ac_cv_lib_m_main = yes; then
9978  cat >>confdefs.h <<_ACEOF
9979#define HAVE_LIBM 1
9980_ACEOF
9981
9982  LIBS="-lm $LIBS"
9983
9984fi
9985
9986
9987
9988# Checks for header files.
9989echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9990echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9991if test "${ac_cv_header_stdc+set}" = set; then
9992  echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994  cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h.  */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h.  */
10000#include <stdlib.h>
10001#include <stdarg.h>
10002#include <string.h>
10003#include <float.h>
10004
10005int
10006main ()
10007{
10008
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext
10014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10015  (eval $ac_compile) 2>conftest.er1
10016  ac_status=$?
10017  grep -v '^ *+' conftest.er1 >conftest.err
10018  rm -f conftest.er1
10019  cat conftest.err >&5
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); } &&
10022         { ac_try='test -z "$ac_c_werror_flag"
10023                         || test ! -s conftest.err'
10024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025  (eval $ac_try) 2>&5
10026  ac_status=$?
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); }; } &&
10029         { ac_try='test -s conftest.$ac_objext'
10030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031  (eval $ac_try) 2>&5
10032  ac_status=$?
10033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); }; }; then
10035  ac_cv_header_stdc=yes
10036else
10037  echo "$as_me: failed program was:" >&5
10038sed 's/^/| /' conftest.$ac_ext >&5
10039
10040ac_cv_header_stdc=no
10041fi
10042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10043
10044if test $ac_cv_header_stdc = yes; then
10045  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10046  cat >conftest.$ac_ext <<_ACEOF
10047/* confdefs.h.  */
10048_ACEOF
10049cat confdefs.h >>conftest.$ac_ext
10050cat >>conftest.$ac_ext <<_ACEOF
10051/* end confdefs.h.  */
10052#include <string.h>
10053
10054_ACEOF
10055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10056  $EGREP "memchr" >/dev/null 2>&1; then
10057  :
10058else
10059  ac_cv_header_stdc=no
10060fi
10061rm -f conftest*
10062
10063fi
10064
10065if test $ac_cv_header_stdc = yes; then
10066  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10067  cat >conftest.$ac_ext <<_ACEOF
10068/* confdefs.h.  */
10069_ACEOF
10070cat confdefs.h >>conftest.$ac_ext
10071cat >>conftest.$ac_ext <<_ACEOF
10072/* end confdefs.h.  */
10073#include <stdlib.h>
10074
10075_ACEOF
10076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10077  $EGREP "free" >/dev/null 2>&1; then
10078  :
10079else
10080  ac_cv_header_stdc=no
10081fi
10082rm -f conftest*
10083
10084fi
10085
10086if test $ac_cv_header_stdc = yes; then
10087  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10088  if test "$cross_compiling" = yes; then
10089  :
10090else
10091  cat >conftest.$ac_ext <<_ACEOF
10092/* confdefs.h.  */
10093_ACEOF
10094cat confdefs.h >>conftest.$ac_ext
10095cat >>conftest.$ac_ext <<_ACEOF
10096/* end confdefs.h.  */
10097#include <ctype.h>
10098#if ((' ' & 0x0FF) == 0x020)
10099# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10100# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10101#else
10102# define ISLOWER(c) \
10103                   (('a' <= (c) && (c) <= 'i') \
10104                     || ('j' <= (c) && (c) <= 'r') \
10105                     || ('s' <= (c) && (c) <= 'z'))
10106# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10107#endif
10108
10109#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10110int
10111main ()
10112{
10113  int i;
10114  for (i = 0; i < 256; i++)
10115    if (XOR (islower (i), ISLOWER (i))
10116        || toupper (i) != TOUPPER (i))
10117      exit(2);
10118  exit (0);
10119}
10120_ACEOF
10121rm -f conftest$ac_exeext
10122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123  (eval $ac_link) 2>&5
10124  ac_status=$?
10125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128  (eval $ac_try) 2>&5
10129  ac_status=$?
10130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); }; }; then
10132  :
10133else
10134  echo "$as_me: program exited with status $ac_status" >&5
10135echo "$as_me: failed program was:" >&5
10136sed 's/^/| /' conftest.$ac_ext >&5
10137
10138( exit $ac_status )
10139ac_cv_header_stdc=no
10140fi
10141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10142fi
10143fi
10144fi
10145echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10146echo "${ECHO_T}$ac_cv_header_stdc" >&6
10147if test $ac_cv_header_stdc = yes; then
10148
10149cat >>confdefs.h <<\_ACEOF
10150#define STDC_HEADERS 1
10151_ACEOF
10152
10153fi
10154
10155
10156
10157for ac_header in stdlib.h string.h
10158do
10159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10160if eval "test \"\${$as_ac_Header+set}\" = set"; then
10161  echo "$as_me:$LINENO: checking for $ac_header" >&5
10162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10163if eval "test \"\${$as_ac_Header+set}\" = set"; then
10164  echo $ECHO_N "(cached) $ECHO_C" >&6
10165fi
10166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10167echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10168else
10169  # Is the header compilable?
10170echo "$as_me:$LINENO: checking $ac_header usability" >&5
10171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10172cat >conftest.$ac_ext <<_ACEOF
10173/* confdefs.h.  */
10174_ACEOF
10175cat confdefs.h >>conftest.$ac_ext
10176cat >>conftest.$ac_ext <<_ACEOF
10177/* end confdefs.h.  */
10178$ac_includes_default
10179#include <$ac_header>
10180_ACEOF
10181rm -f conftest.$ac_objext
10182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183  (eval $ac_compile) 2>conftest.er1
10184  ac_status=$?
10185  grep -v '^ *+' conftest.er1 >conftest.err
10186  rm -f conftest.er1
10187  cat conftest.err >&5
10188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189  (exit $ac_status); } &&
10190         { ac_try='test -z "$ac_c_werror_flag"
10191                         || test ! -s conftest.err'
10192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193  (eval $ac_try) 2>&5
10194  ac_status=$?
10195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196  (exit $ac_status); }; } &&
10197         { ac_try='test -s conftest.$ac_objext'
10198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199  (eval $ac_try) 2>&5
10200  ac_status=$?
10201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202  (exit $ac_status); }; }; then
10203  ac_header_compiler=yes
10204else
10205  echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208ac_header_compiler=no
10209fi
10210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10211echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10212echo "${ECHO_T}$ac_header_compiler" >&6
10213
10214# Is the header present?
10215echo "$as_me:$LINENO: checking $ac_header presence" >&5
10216echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10217cat >conftest.$ac_ext <<_ACEOF
10218/* confdefs.h.  */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
10222/* end confdefs.h.  */
10223#include <$ac_header>
10224_ACEOF
10225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10226  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10227  ac_status=$?
10228  grep -v '^ *+' conftest.er1 >conftest.err
10229  rm -f conftest.er1
10230  cat conftest.err >&5
10231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232  (exit $ac_status); } >/dev/null; then
10233  if test -s conftest.err; then
10234    ac_cpp_err=$ac_c_preproc_warn_flag
10235    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10236  else
10237    ac_cpp_err=
10238  fi
10239else
10240  ac_cpp_err=yes
10241fi
10242if test -z "$ac_cpp_err"; then
10243  ac_header_preproc=yes
10244else
10245  echo "$as_me: failed program was:" >&5
10246sed 's/^/| /' conftest.$ac_ext >&5
10247
10248  ac_header_preproc=no
10249fi
10250rm -f conftest.err conftest.$ac_ext
10251echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10252echo "${ECHO_T}$ac_header_preproc" >&6
10253
10254# So?  What about this header?
10255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10256  yes:no: )
10257    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10258echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10259    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10260echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10261    ac_header_preproc=yes
10262    ;;
10263  no:yes:* )
10264    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10265echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10266    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10267echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10268    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10269echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10270    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10271echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10272    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10274    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10275echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10276    (
10277      cat <<\_ASBOX
10278## ---------------------------------------------- ##
10279## Report this to orxonox-dev at mail.datacore.ch ##
10280## ---------------------------------------------- ##
10281_ASBOX
10282    ) |
10283      sed "s/^/$as_me: WARNING:     /" >&2
10284    ;;
10285esac
10286echo "$as_me:$LINENO: checking for $ac_header" >&5
10287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10288if eval "test \"\${$as_ac_Header+set}\" = set"; then
10289  echo $ECHO_N "(cached) $ECHO_C" >&6
10290else
10291  eval "$as_ac_Header=\$ac_header_preproc"
10292fi
10293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10295
10296fi
10297if test `eval echo '${'$as_ac_Header'}'` = yes; then
10298  cat >>confdefs.h <<_ACEOF
10299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10300_ACEOF
10301
10302fi
10303
10304done
10305
10306
10307# Checks for typedefs, structures, and compiler characteristics.
10308echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10309echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10310if test "${ac_cv_header_stdbool_h+set}" = set; then
10311  echo $ECHO_N "(cached) $ECHO_C" >&6
10312else
10313  cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h.  */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h.  */
10319
10320#include <stdbool.h>
10321#ifndef bool
10322# error bool is not defined
10323#endif
10324#ifndef false
10325# error false is not defined
10326#endif
10327#if false
10328# error false is not 0
10329#endif
10330#ifndef true
10331# error true is not defined
10332#endif
10333#if true != 1
10334# error true is not 1
10335#endif
10336#ifndef __bool_true_false_are_defined
10337# error __bool_true_false_are_defined is not defined
10338#endif
10339
10340        struct s { _Bool s: 1; _Bool t; } s;
10341
10342        char a[true == 1 ? 1 : -1];
10343        char b[false == 0 ? 1 : -1];
10344        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10345        char d[(bool) -0.5 == true ? 1 : -1];
10346        bool e = &s;
10347        char f[(_Bool) -0.0 == false ? 1 : -1];
10348        char g[true];
10349        char h[sizeof (_Bool)];
10350        char i[sizeof s.t];
10351
10352int
10353main ()
10354{
10355 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10356  ;
10357  return 0;
10358}
10359_ACEOF
10360rm -f conftest.$ac_objext
10361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10362  (eval $ac_compile) 2>conftest.er1
10363  ac_status=$?
10364  grep -v '^ *+' conftest.er1 >conftest.err
10365  rm -f conftest.er1
10366  cat conftest.err >&5
10367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); } &&
10369         { ac_try='test -z "$ac_c_werror_flag"
10370                         || test ! -s conftest.err'
10371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372  (eval $ac_try) 2>&5
10373  ac_status=$?
10374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375  (exit $ac_status); }; } &&
10376         { ac_try='test -s conftest.$ac_objext'
10377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378  (eval $ac_try) 2>&5
10379  ac_status=$?
10380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381  (exit $ac_status); }; }; then
10382  ac_cv_header_stdbool_h=yes
10383else
10384  echo "$as_me: failed program was:" >&5
10385sed 's/^/| /' conftest.$ac_ext >&5
10386
10387ac_cv_header_stdbool_h=no
10388fi
10389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10390fi
10391echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10392echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10393echo "$as_me:$LINENO: checking for _Bool" >&5
10394echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10395if test "${ac_cv_type__Bool+set}" = set; then
10396  echo $ECHO_N "(cached) $ECHO_C" >&6
10397else
10398  cat >conftest.$ac_ext <<_ACEOF
10399/* confdefs.h.  */
10400_ACEOF
10401cat confdefs.h >>conftest.$ac_ext
10402cat >>conftest.$ac_ext <<_ACEOF
10403/* end confdefs.h.  */
10404$ac_includes_default
10405int
10406main ()
10407{
10408if ((_Bool *) 0)
10409  return 0;
10410if (sizeof (_Bool))
10411  return 0;
10412  ;
10413  return 0;
10414}
10415_ACEOF
10416rm -f conftest.$ac_objext
10417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418  (eval $ac_compile) 2>conftest.er1
10419  ac_status=$?
10420  grep -v '^ *+' conftest.er1 >conftest.err
10421  rm -f conftest.er1
10422  cat conftest.err >&5
10423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424  (exit $ac_status); } &&
10425         { ac_try='test -z "$ac_c_werror_flag"
10426                         || test ! -s conftest.err'
10427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428  (eval $ac_try) 2>&5
10429  ac_status=$?
10430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431  (exit $ac_status); }; } &&
10432         { ac_try='test -s conftest.$ac_objext'
10433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434  (eval $ac_try) 2>&5
10435  ac_status=$?
10436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437  (exit $ac_status); }; }; then
10438  ac_cv_type__Bool=yes
10439else
10440  echo "$as_me: failed program was:" >&5
10441sed 's/^/| /' conftest.$ac_ext >&5
10442
10443ac_cv_type__Bool=no
10444fi
10445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446fi
10447echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10448echo "${ECHO_T}$ac_cv_type__Bool" >&6
10449if test $ac_cv_type__Bool = yes; then
10450
10451cat >>confdefs.h <<_ACEOF
10452#define HAVE__BOOL 1
10453_ACEOF
10454
10455
10456fi
10457
10458if test $ac_cv_header_stdbool_h = yes; then
10459
10460cat >>confdefs.h <<\_ACEOF
10461#define HAVE_STDBOOL_H 1
10462_ACEOF
10463
10464fi
10465
10466
10467# Checks for library functions.
10468
10469for ac_header in stdlib.h
10470do
10471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10472if eval "test \"\${$as_ac_Header+set}\" = set"; then
10473  echo "$as_me:$LINENO: checking for $ac_header" >&5
10474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10475if eval "test \"\${$as_ac_Header+set}\" = set"; then
10476  echo $ECHO_N "(cached) $ECHO_C" >&6
10477fi
10478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10480else
10481  # Is the header compilable?
10482echo "$as_me:$LINENO: checking $ac_header usability" >&5
10483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10484cat >conftest.$ac_ext <<_ACEOF
10485/* confdefs.h.  */
10486_ACEOF
10487cat confdefs.h >>conftest.$ac_ext
10488cat >>conftest.$ac_ext <<_ACEOF
10489/* end confdefs.h.  */
10490$ac_includes_default
10491#include <$ac_header>
10492_ACEOF
10493rm -f conftest.$ac_objext
10494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495  (eval $ac_compile) 2>conftest.er1
10496  ac_status=$?
10497  grep -v '^ *+' conftest.er1 >conftest.err
10498  rm -f conftest.er1
10499  cat conftest.err >&5
10500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501  (exit $ac_status); } &&
10502         { ac_try='test -z "$ac_c_werror_flag"
10503                         || test ! -s conftest.err'
10504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505  (eval $ac_try) 2>&5
10506  ac_status=$?
10507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508  (exit $ac_status); }; } &&
10509         { ac_try='test -s conftest.$ac_objext'
10510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511  (eval $ac_try) 2>&5
10512  ac_status=$?
10513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514  (exit $ac_status); }; }; then
10515  ac_header_compiler=yes
10516else
10517  echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520ac_header_compiler=no
10521fi
10522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10523echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10524echo "${ECHO_T}$ac_header_compiler" >&6
10525
10526# Is the header present?
10527echo "$as_me:$LINENO: checking $ac_header presence" >&5
10528echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10529cat >conftest.$ac_ext <<_ACEOF
10530/* confdefs.h.  */
10531_ACEOF
10532cat confdefs.h >>conftest.$ac_ext
10533cat >>conftest.$ac_ext <<_ACEOF
10534/* end confdefs.h.  */
10535#include <$ac_header>
10536_ACEOF
10537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10539  ac_status=$?
10540  grep -v '^ *+' conftest.er1 >conftest.err
10541  rm -f conftest.er1
10542  cat conftest.err >&5
10543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544  (exit $ac_status); } >/dev/null; then
10545  if test -s conftest.err; then
10546    ac_cpp_err=$ac_c_preproc_warn_flag
10547    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10548  else
10549    ac_cpp_err=
10550  fi
10551else
10552  ac_cpp_err=yes
10553fi
10554if test -z "$ac_cpp_err"; then
10555  ac_header_preproc=yes
10556else
10557  echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
10559
10560  ac_header_preproc=no
10561fi
10562rm -f conftest.err conftest.$ac_ext
10563echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10564echo "${ECHO_T}$ac_header_preproc" >&6
10565
10566# So?  What about this header?
10567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10568  yes:no: )
10569    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10571    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10573    ac_header_preproc=yes
10574    ;;
10575  no:yes:* )
10576    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10578    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10579echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10580    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10582    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10583echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10584    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10586    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10588    (
10589      cat <<\_ASBOX
10590## ---------------------------------------------- ##
10591## Report this to orxonox-dev at mail.datacore.ch ##
10592## ---------------------------------------------- ##
10593_ASBOX
10594    ) |
10595      sed "s/^/$as_me: WARNING:     /" >&2
10596    ;;
10597esac
10598echo "$as_me:$LINENO: checking for $ac_header" >&5
10599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10600if eval "test \"\${$as_ac_Header+set}\" = set"; then
10601  echo $ECHO_N "(cached) $ECHO_C" >&6
10602else
10603  eval "$as_ac_Header=\$ac_header_preproc"
10604fi
10605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10607
10608fi
10609if test `eval echo '${'$as_ac_Header'}'` = yes; then
10610  cat >>confdefs.h <<_ACEOF
10611#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10612_ACEOF
10613
10614fi
10615
10616done
10617
10618echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10619echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
10620if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10621  echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623  if test "$cross_compiling" = yes; then
10624  ac_cv_func_malloc_0_nonnull=no
10625else
10626  cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h.  */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h.  */
10632#if STDC_HEADERS || HAVE_STDLIB_H
10633# include <stdlib.h>
10634#else
10635char *malloc ();
10636#endif
10637
10638int
10639main ()
10640{
10641exit (malloc (0) ? 0 : 1);
10642  ;
10643  return 0;
10644}
10645_ACEOF
10646rm -f conftest$ac_exeext
10647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648  (eval $ac_link) 2>&5
10649  ac_status=$?
10650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653  (eval $ac_try) 2>&5
10654  ac_status=$?
10655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656  (exit $ac_status); }; }; then
10657  ac_cv_func_malloc_0_nonnull=yes
10658else
10659  echo "$as_me: program exited with status $ac_status" >&5
10660echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663( exit $ac_status )
10664ac_cv_func_malloc_0_nonnull=no
10665fi
10666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10667fi
10668fi
10669echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10670echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10671if test $ac_cv_func_malloc_0_nonnull = yes; then
10672
10673cat >>confdefs.h <<\_ACEOF
10674#define HAVE_MALLOC 1
10675_ACEOF
10676
10677else
10678  cat >>confdefs.h <<\_ACEOF
10679#define HAVE_MALLOC 0
10680_ACEOF
10681
10682   case $LIBOBJS in
10683    "malloc.$ac_objext"   | \
10684  *" malloc.$ac_objext"   | \
10685    "malloc.$ac_objext "* | \
10686  *" malloc.$ac_objext "* ) ;;
10687  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
10688esac
10689
10690
10691cat >>confdefs.h <<\_ACEOF
10692#define malloc rpl_malloc
10693_ACEOF
10694
10695fi
10696
10697
10698
10699
10700
10701for ac_func in bzero sqrt
10702do
10703as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10704echo "$as_me:$LINENO: checking for $ac_func" >&5
10705echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10706if eval "test \"\${$as_ac_var+set}\" = set"; then
10707  echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709  cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h.  */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h.  */
10715/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10716   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10717#define $ac_func innocuous_$ac_func
10718
10719/* System header to define __stub macros and hopefully few prototypes,
10720    which can conflict with char $ac_func (); below.
10721    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10722    <limits.h> exists even on freestanding compilers.  */
10723
10724#ifdef __STDC__
10725# include <limits.h>
10726#else
10727# include <assert.h>
10728#endif
10729
10730#undef $ac_func
10731
10732/* Override any gcc2 internal prototype to avoid an error.  */
10733#ifdef __cplusplus
10734extern "C"
10735{
10736#endif
10737/* We use char because int might match the return type of a gcc2
10738   builtin and then its argument prototype would still apply.  */
10739char $ac_func ();
10740/* The GNU C library defines this for functions which it implements
10741    to always fail with ENOSYS.  Some functions are actually named
10742    something starting with __ and the normal name is an alias.  */
10743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10744choke me
10745#else
10746char (*f) () = $ac_func;
10747#endif
10748#ifdef __cplusplus
10749}
10750#endif
10751
10752int
10753main ()
10754{
10755return f != $ac_func;
10756  ;
10757  return 0;
10758}
10759_ACEOF
10760rm -f conftest.$ac_objext conftest$ac_exeext
10761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762  (eval $ac_link) 2>conftest.er1
10763  ac_status=$?
10764  grep -v '^ *+' conftest.er1 >conftest.err
10765  rm -f conftest.er1
10766  cat conftest.err >&5
10767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768  (exit $ac_status); } &&
10769         { ac_try='test -z "$ac_c_werror_flag"
10770                         || test ! -s conftest.err'
10771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772  (eval $ac_try) 2>&5
10773  ac_status=$?
10774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775  (exit $ac_status); }; } &&
10776         { ac_try='test -s conftest$ac_exeext'
10777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778  (eval $ac_try) 2>&5
10779  ac_status=$?
10780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781  (exit $ac_status); }; }; then
10782  eval "$as_ac_var=yes"
10783else
10784  echo "$as_me: failed program was:" >&5
10785sed 's/^/| /' conftest.$ac_ext >&5
10786
10787eval "$as_ac_var=no"
10788fi
10789rm -f conftest.err conftest.$ac_objext \
10790      conftest$ac_exeext conftest.$ac_ext
10791fi
10792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10794if test `eval echo '${'$as_ac_var'}'` = yes; then
10795  cat >>confdefs.h <<_ACEOF
10796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10797_ACEOF
10798
10799fi
10800done
10801
10802
10803######################
10804## OUTPUT CONFIGURE ##
10805######################
10806                                                                                                                                                                                                                            ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/gui/gtk_gui/Makefile src/lib/gui/gl_gui/Makefile src/lib/tinyxml/Makefile src/util/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
10807
10808
10809cat >confcache <<\_ACEOF
10810# This file is a shell script that caches the results of configure
10811# tests run on this system so they can be shared between configure
10812# scripts and configure runs, see configure's option --config-cache.
10813# It is not useful on other systems.  If it contains results you don't
10814# want to keep, you may remove or edit it.
10815#
10816# config.status only pays attention to the cache file if you give it
10817# the --recheck option to rerun configure.
10818#
10819# `ac_cv_env_foo' variables (set or unset) will be overridden when
10820# loading this file, other *unset* `ac_cv_foo' will be assigned the
10821# following values.
10822
10823_ACEOF
10824
10825# The following way of writing the cache mishandles newlines in values,
10826# but we know of no workaround that is simple, portable, and efficient.
10827# So, don't put newlines in cache variables' values.
10828# Ultrix sh set writes to stderr and can't be redirected directly,
10829# and sets the high bit in the cache file unless we assign to the vars.
10830{
10831  (set) 2>&1 |
10832    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10833    *ac_space=\ *)
10834      # `set' does not quote correctly, so add quotes (double-quote
10835      # substitution turns \\\\ into \\, and sed turns \\ into \).
10836      sed -n \
10837        "s/'/'\\\\''/g;
10838          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10839      ;;
10840    *)
10841      # `set' quotes correctly as required by POSIX, so do not add quotes.
10842      sed -n \
10843        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10844      ;;
10845    esac;
10846} |
10847  sed '
10848     t clear
10849     : clear
10850     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10851     t end
10852     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10853     : end' >>confcache
10854if diff $cache_file confcache >/dev/null 2>&1; then :; else
10855  if test -w $cache_file; then
10856    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10857    cat confcache >$cache_file
10858  else
10859    echo "not updating unwritable cache $cache_file"
10860  fi
10861fi
10862rm -f confcache
10863
10864test "x$prefix" = xNONE && prefix=$ac_default_prefix
10865# Let make expand exec_prefix.
10866test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10867
10868# VPATH may cause trouble with some makes, so we remove $(srcdir),
10869# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10870# trailing colons and then remove the whole line if VPATH becomes empty
10871# (actually we leave an empty line to preserve line numbers).
10872if test "x$srcdir" = x.; then
10873  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10874s/:*\$(srcdir):*/:/;
10875s/:*\${srcdir}:*/:/;
10876s/:*@srcdir@:*/:/;
10877s/^\([^=]*=[     ]*\):*/\1/;
10878s/:*$//;
10879s/^[^=]*=[       ]*$//;
10880}'
10881fi
10882
10883DEFS=-DHAVE_CONFIG_H
10884
10885ac_libobjs=
10886ac_ltlibobjs=
10887for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10888  # 1. Remove the extension, and $U if already installed.
10889  ac_i=`echo "$ac_i" |
10890         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10891  # 2. Add them.
10892  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10893  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10894done
10895LIBOBJS=$ac_libobjs
10896
10897LTLIBOBJS=$ac_ltlibobjs
10898
10899
10900if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10901  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10902Usually this means the macro was only invoked conditionally." >&5
10903echo "$as_me: error: conditional \"AMDEP\" was never defined.
10904Usually this means the macro was only invoked conditionally." >&2;}
10905   { (exit 1); exit 1; }; }
10906fi
10907if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10908  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10909Usually this means the macro was only invoked conditionally." >&5
10910echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10911Usually this means the macro was only invoked conditionally." >&2;}
10912   { (exit 1); exit 1; }; }
10913fi
10914if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10915  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10916Usually this means the macro was only invoked conditionally." >&5
10917echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10918Usually this means the macro was only invoked conditionally." >&2;}
10919   { (exit 1); exit 1; }; }
10920fi
10921if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10922  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10923Usually this means the macro was only invoked conditionally." >&5
10924echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10925Usually this means the macro was only invoked conditionally." >&2;}
10926   { (exit 1); exit 1; }; }
10927fi
10928if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10929  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10930Usually this means the macro was only invoked conditionally." >&5
10931echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10932Usually this means the macro was only invoked conditionally." >&2;}
10933   { (exit 1); exit 1; }; }
10934fi
10935if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10936  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10937Usually this means the macro was only invoked conditionally." >&5
10938echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10939Usually this means the macro was only invoked conditionally." >&2;}
10940   { (exit 1); exit 1; }; }
10941fi
10942if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10943  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
10944Usually this means the macro was only invoked conditionally." >&5
10945echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
10946Usually this means the macro was only invoked conditionally." >&2;}
10947   { (exit 1); exit 1; }; }
10948fi
10949if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10950  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
10951Usually this means the macro was only invoked conditionally." >&5
10952echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
10953Usually this means the macro was only invoked conditionally." >&2;}
10954   { (exit 1); exit 1; }; }
10955fi
10956
10957: ${CONFIG_STATUS=./config.status}
10958ac_clean_files_save=$ac_clean_files
10959ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10960{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10961echo "$as_me: creating $CONFIG_STATUS" >&6;}
10962cat >$CONFIG_STATUS <<_ACEOF
10963#! $SHELL
10964# Generated by $as_me.
10965# Run this file to recreate the current configuration.
10966# Compiler output produced by configure, useful for debugging
10967# configure, is in config.log if it exists.
10968
10969debug=false
10970ac_cs_recheck=false
10971ac_cs_silent=false
10972SHELL=\${CONFIG_SHELL-$SHELL}
10973_ACEOF
10974
10975cat >>$CONFIG_STATUS <<\_ACEOF
10976## --------------------- ##
10977## M4sh Initialization.  ##
10978## --------------------- ##
10979
10980# Be Bourne compatible
10981if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10982  emulate sh
10983  NULLCMD=:
10984  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10985  # is contrary to our usage.  Disable this feature.
10986  alias -g '${1+"$@"}'='"$@"'
10987elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10988  set -o posix
10989fi
10990DUALCASE=1; export DUALCASE # for MKS sh
10991
10992# Support unset when possible.
10993if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10994  as_unset=unset
10995else
10996  as_unset=false
10997fi
10998
10999
11000# Work around bugs in pre-3.0 UWIN ksh.
11001$as_unset ENV MAIL MAILPATH
11002PS1='$ '
11003PS2='> '
11004PS4='+ '
11005
11006# NLS nuisances.
11007for as_var in \
11008  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11009  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11010  LC_TELEPHONE LC_TIME
11011do
11012  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11013    eval $as_var=C; export $as_var
11014  else
11015    $as_unset $as_var
11016  fi
11017done
11018
11019# Required to use basename.
11020if expr a : '\(a\)' >/dev/null 2>&1; then
11021  as_expr=expr
11022else
11023  as_expr=false
11024fi
11025
11026if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11027  as_basename=basename
11028else
11029  as_basename=false
11030fi
11031
11032
11033# Name of the executable.
11034as_me=`$as_basename "$0" ||
11035$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11036         X"$0" : 'X\(//\)$' \| \
11037         X"$0" : 'X\(/\)$' \| \
11038         .     : '\(.\)' 2>/dev/null ||
11039echo X/"$0" |
11040    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11041          /^X\/\(\/\/\)$/{ s//\1/; q; }
11042          /^X\/\(\/\).*/{ s//\1/; q; }
11043          s/.*/./; q'`
11044
11045
11046# PATH needs CR, and LINENO needs CR and PATH.
11047# Avoid depending upon Character Ranges.
11048as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11049as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11050as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11051as_cr_digits='0123456789'
11052as_cr_alnum=$as_cr_Letters$as_cr_digits
11053
11054# The user is always right.
11055if test "${PATH_SEPARATOR+set}" != set; then
11056  echo "#! /bin/sh" >conf$$.sh
11057  echo  "exit 0"   >>conf$$.sh
11058  chmod +x conf$$.sh
11059  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11060    PATH_SEPARATOR=';'
11061  else
11062    PATH_SEPARATOR=:
11063  fi
11064  rm -f conf$$.sh
11065fi
11066
11067
11068  as_lineno_1=$LINENO
11069  as_lineno_2=$LINENO
11070  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11071  test "x$as_lineno_1" != "x$as_lineno_2" &&
11072  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11073  # Find who we are.  Look in the path if we contain no path at all
11074  # relative or not.
11075  case $0 in
11076    *[\\/]* ) as_myself=$0 ;;
11077    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078for as_dir in $PATH
11079do
11080  IFS=$as_save_IFS
11081  test -z "$as_dir" && as_dir=.
11082  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11083done
11084
11085       ;;
11086  esac
11087  # We did not find ourselves, most probably we were run as `sh COMMAND'
11088  # in which case we are not to be found in the path.
11089  if test "x$as_myself" = x; then
11090    as_myself=$0
11091  fi
11092  if test ! -f "$as_myself"; then
11093    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11094echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11095   { (exit 1); exit 1; }; }
11096  fi
11097  case $CONFIG_SHELL in
11098  '')
11099    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11101do
11102  IFS=$as_save_IFS
11103  test -z "$as_dir" && as_dir=.
11104  for as_base in sh bash ksh sh5; do
11105         case $as_dir in
11106         /*)
11107           if ("$as_dir/$as_base" -c '
11108  as_lineno_1=$LINENO
11109  as_lineno_2=$LINENO
11110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11111  test "x$as_lineno_1" != "x$as_lineno_2" &&
11112  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11113             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11114             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11115             CONFIG_SHELL=$as_dir/$as_base
11116             export CONFIG_SHELL
11117             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11118           fi;;
11119         esac
11120       done
11121done
11122;;
11123  esac
11124
11125  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11126  # uniformly replaced by the line number.  The first 'sed' inserts a
11127  # line-number line before each line; the second 'sed' does the real
11128  # work.  The second script uses 'N' to pair each line-number line
11129  # with the numbered line, and appends trailing '-' during
11130  # substitution so that $LINENO is not a special case at line end.
11131  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11132  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11133  sed '=' <$as_myself |
11134    sed '
11135      N
11136      s,$,-,
11137      : loop
11138      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11139      t loop
11140      s,-$,,
11141      s,^['$as_cr_digits']*\n,,
11142    ' >$as_me.lineno &&
11143  chmod +x $as_me.lineno ||
11144    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11145echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11146   { (exit 1); exit 1; }; }
11147
11148  # Don't try to exec as it changes $[0], causing all sort of problems
11149  # (the dirname of $[0] is not the place where we might find the
11150  # original and so on.  Autoconf is especially sensible to this).
11151  . ./$as_me.lineno
11152  # Exit status is that of the last command.
11153  exit
11154}
11155
11156
11157case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11158  *c*,-n*) ECHO_N= ECHO_C='
11159' ECHO_T='      ' ;;
11160  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11161  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11162esac
11163
11164if expr a : '\(a\)' >/dev/null 2>&1; then
11165  as_expr=expr
11166else
11167  as_expr=false
11168fi
11169
11170rm -f conf$$ conf$$.exe conf$$.file
11171echo >conf$$.file
11172if ln -s conf$$.file conf$$ 2>/dev/null; then
11173  # We could just check for DJGPP; but this test a) works b) is more generic
11174  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11175  if test -f conf$$.exe; then
11176    # Don't use ln at all; we don't have any links
11177    as_ln_s='cp -p'
11178  else
11179    as_ln_s='ln -s'
11180  fi
11181elif ln conf$$.file conf$$ 2>/dev/null; then
11182  as_ln_s=ln
11183else
11184  as_ln_s='cp -p'
11185fi
11186rm -f conf$$ conf$$.exe conf$$.file
11187
11188if mkdir -p . 2>/dev/null; then
11189  as_mkdir_p=:
11190else
11191  test -d ./-p && rmdir ./-p
11192  as_mkdir_p=false
11193fi
11194
11195as_executable_p="test -f"
11196
11197# Sed expression to map a string onto a valid CPP name.
11198as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11199
11200# Sed expression to map a string onto a valid variable name.
11201as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11202
11203
11204# IFS
11205# We need space, tab and new line, in precisely that order.
11206as_nl='
11207'
11208IFS="   $as_nl"
11209
11210# CDPATH.
11211$as_unset CDPATH
11212
11213exec 6>&1
11214
11215# Open the log real soon, to keep \$[0] and so on meaningful, and to
11216# report actual input values of CONFIG_FILES etc. instead of their
11217# values after options handling.  Logging --version etc. is OK.
11218exec 5>>config.log
11219{
11220  echo
11221  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11222## Running $as_me. ##
11223_ASBOX
11224} >&5
11225cat >&5 <<_CSEOF
11226
11227This file was extended by orxonox $as_me 0.3.2_alpha, which was
11228generated by GNU Autoconf 2.59.  Invocation command line was
11229
11230  CONFIG_FILES    = $CONFIG_FILES
11231  CONFIG_HEADERS  = $CONFIG_HEADERS
11232  CONFIG_LINKS    = $CONFIG_LINKS
11233  CONFIG_COMMANDS = $CONFIG_COMMANDS
11234  $ $0 $@
11235
11236_CSEOF
11237echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11238echo >&5
11239_ACEOF
11240
11241# Files that config.status was made for.
11242if test -n "$ac_config_files"; then
11243  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11244fi
11245
11246if test -n "$ac_config_headers"; then
11247  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11248fi
11249
11250if test -n "$ac_config_links"; then
11251  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11252fi
11253
11254if test -n "$ac_config_commands"; then
11255  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11256fi
11257
11258cat >>$CONFIG_STATUS <<\_ACEOF
11259
11260ac_cs_usage="\
11261\`$as_me' instantiates files from templates according to the
11262current configuration.
11263
11264Usage: $0 [OPTIONS] [FILE]...
11265
11266  -h, --help       print this help, then exit
11267  -V, --version    print version number, then exit
11268  -q, --quiet      do not print progress messages
11269  -d, --debug      don't remove temporary files
11270      --recheck    update $as_me by reconfiguring in the same conditions
11271  --file=FILE[:TEMPLATE]
11272                   instantiate the configuration file FILE
11273  --header=FILE[:TEMPLATE]
11274                   instantiate the configuration header FILE
11275
11276Configuration files:
11277$config_files
11278
11279Configuration headers:
11280$config_headers
11281
11282Configuration commands:
11283$config_commands
11284
11285Report bugs to <bug-autoconf@gnu.org>."
11286_ACEOF
11287
11288cat >>$CONFIG_STATUS <<_ACEOF
11289ac_cs_version="\\
11290orxonox config.status 0.3.2_alpha
11291configured by $0, generated by GNU Autoconf 2.59,
11292  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11293
11294Copyright (C) 2003 Free Software Foundation, Inc.
11295This config.status script is free software; the Free Software Foundation
11296gives unlimited permission to copy, distribute and modify it."
11297srcdir=$srcdir
11298INSTALL="$INSTALL"
11299_ACEOF
11300
11301cat >>$CONFIG_STATUS <<\_ACEOF
11302# If no file are specified by the user, then we need to provide default
11303# value.  By we need to know if files were specified by the user.
11304ac_need_defaults=:
11305while test $# != 0
11306do
11307  case $1 in
11308  --*=*)
11309    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11310    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11311    ac_shift=:
11312    ;;
11313  -*)
11314    ac_option=$1
11315    ac_optarg=$2
11316    ac_shift=shift
11317    ;;
11318  *) # This is not an option, so the user has probably given explicit
11319     # arguments.
11320     ac_option=$1
11321     ac_need_defaults=false;;
11322  esac
11323
11324  case $ac_option in
11325  # Handling of the options.
11326_ACEOF
11327cat >>$CONFIG_STATUS <<\_ACEOF
11328  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11329    ac_cs_recheck=: ;;
11330  --version | --vers* | -V )
11331    echo "$ac_cs_version"; exit 0 ;;
11332  --he | --h)
11333    # Conflict between --help and --header
11334    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11335Try \`$0 --help' for more information." >&5
11336echo "$as_me: error: ambiguous option: $1
11337Try \`$0 --help' for more information." >&2;}
11338   { (exit 1); exit 1; }; };;
11339  --help | --hel | -h )
11340    echo "$ac_cs_usage"; exit 0 ;;
11341  --debug | --d* | -d )
11342    debug=: ;;
11343  --file | --fil | --fi | --f )
11344    $ac_shift
11345    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11346    ac_need_defaults=false;;
11347  --header | --heade | --head | --hea )
11348    $ac_shift
11349    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11350    ac_need_defaults=false;;
11351  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11352  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11353    ac_cs_silent=: ;;
11354
11355  # This is an error.
11356  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11357Try \`$0 --help' for more information." >&5
11358echo "$as_me: error: unrecognized option: $1
11359Try \`$0 --help' for more information." >&2;}
11360   { (exit 1); exit 1; }; } ;;
11361
11362  *) ac_config_targets="$ac_config_targets $1" ;;
11363
11364  esac
11365  shift
11366done
11367
11368ac_configure_extra_args=
11369
11370if $ac_cs_silent; then
11371  exec 6>/dev/null
11372  ac_configure_extra_args="$ac_configure_extra_args --silent"
11373fi
11374
11375_ACEOF
11376cat >>$CONFIG_STATUS <<_ACEOF
11377if \$ac_cs_recheck; then
11378  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11379  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11380fi
11381
11382_ACEOF
11383
11384cat >>$CONFIG_STATUS <<_ACEOF
11385#
11386# INIT-COMMANDS section.
11387#
11388
11389AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11390
11391_ACEOF
11392
11393
11394
11395cat >>$CONFIG_STATUS <<\_ACEOF
11396for ac_config_target in $ac_config_targets
11397do
11398  case "$ac_config_target" in
11399  # Handling of arguments.
11400  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11401  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11402  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11403  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
11404  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
11405  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
11406  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
11407  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
11408  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
11409  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
11410  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
11411  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
11412  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
11413  "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;;
11414  "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;;
11415  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
11416  "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
11417  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
11418  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
11419  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
11420  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
11421  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
11422  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11423  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11424  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11425echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11426   { (exit 1); exit 1; }; };;
11427  esac
11428done
11429
11430# If the user did not use the arguments to specify the items to instantiate,
11431# then the envvar interface is used.  Set only those that are not.
11432# We use the long form for the default assignment because of an extremely
11433# bizarre bug on SunOS 4.1.3.
11434if $ac_need_defaults; then
11435  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11436  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11437  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11438fi
11439
11440# Have a temporary directory for convenience.  Make it in the build tree
11441# simply because there is no reason to put it here, and in addition,
11442# creating and moving files from /tmp can sometimes cause problems.
11443# Create a temporary directory, and hook for its removal unless debugging.
11444$debug ||
11445{
11446  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11447  trap '{ (exit 1); exit 1; }' 1 2 13 15
11448}
11449
11450# Create a (secure) tmp directory for tmp files.
11451
11452{
11453  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11454  test -n "$tmp" && test -d "$tmp"
11455}  ||
11456{
11457  tmp=./confstat$$-$RANDOM
11458  (umask 077 && mkdir $tmp)
11459} ||
11460{
11461   echo "$me: cannot create a temporary directory in ." >&2
11462   { (exit 1); exit 1; }
11463}
11464
11465_ACEOF
11466
11467cat >>$CONFIG_STATUS <<_ACEOF
11468
11469#
11470# CONFIG_FILES section.
11471#
11472
11473# No need to generate the scripts if there are no CONFIG_FILES.
11474# This happens for instance when ./config.status config.h
11475if test -n "\$CONFIG_FILES"; then
11476  # Protect against being on the right side of a sed subst in config.status.
11477  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11478   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11479s,@SHELL@,$SHELL,;t t
11480s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11481s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11482s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11483s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11484s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11485s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11486s,@exec_prefix@,$exec_prefix,;t t
11487s,@prefix@,$prefix,;t t
11488s,@program_transform_name@,$program_transform_name,;t t
11489s,@bindir@,$bindir,;t t
11490s,@sbindir@,$sbindir,;t t
11491s,@libexecdir@,$libexecdir,;t t
11492s,@datadir@,$datadir,;t t
11493s,@sysconfdir@,$sysconfdir,;t t
11494s,@sharedstatedir@,$sharedstatedir,;t t
11495s,@localstatedir@,$localstatedir,;t t
11496s,@libdir@,$libdir,;t t
11497s,@includedir@,$includedir,;t t
11498s,@oldincludedir@,$oldincludedir,;t t
11499s,@infodir@,$infodir,;t t
11500s,@mandir@,$mandir,;t t
11501s,@build_alias@,$build_alias,;t t
11502s,@host_alias@,$host_alias,;t t
11503s,@target_alias@,$target_alias,;t t
11504s,@DEFS@,$DEFS,;t t
11505s,@ECHO_C@,$ECHO_C,;t t
11506s,@ECHO_N@,$ECHO_N,;t t
11507s,@ECHO_T@,$ECHO_T,;t t
11508s,@LIBS@,$LIBS,;t t
11509s,@build@,$build,;t t
11510s,@build_cpu@,$build_cpu,;t t
11511s,@build_vendor@,$build_vendor,;t t
11512s,@build_os@,$build_os,;t t
11513s,@host@,$host,;t t
11514s,@host_cpu@,$host_cpu,;t t
11515s,@host_vendor@,$host_vendor,;t t
11516s,@host_os@,$host_os,;t t
11517s,@target@,$target,;t t
11518s,@target_cpu@,$target_cpu,;t t
11519s,@target_vendor@,$target_vendor,;t t
11520s,@target_os@,$target_os,;t t
11521s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11522s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11523s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11524s,@CYGPATH_W@,$CYGPATH_W,;t t
11525s,@PACKAGE@,$PACKAGE,;t t
11526s,@VERSION@,$VERSION,;t t
11527s,@ACLOCAL@,$ACLOCAL,;t t
11528s,@AUTOCONF@,$AUTOCONF,;t t
11529s,@AUTOMAKE@,$AUTOMAKE,;t t
11530s,@AUTOHEADER@,$AUTOHEADER,;t t
11531s,@MAKEINFO@,$MAKEINFO,;t t
11532s,@install_sh@,$install_sh,;t t
11533s,@STRIP@,$STRIP,;t t
11534s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11535s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11536s,@mkdir_p@,$mkdir_p,;t t
11537s,@AWK@,$AWK,;t t
11538s,@SET_MAKE@,$SET_MAKE,;t t
11539s,@am__leading_dot@,$am__leading_dot,;t t
11540s,@AMTAR@,$AMTAR,;t t
11541s,@am__tar@,$am__tar,;t t
11542s,@am__untar@,$am__untar,;t t
11543s,@CXX@,$CXX,;t t
11544s,@CXXFLAGS@,$CXXFLAGS,;t t
11545s,@LDFLAGS@,$LDFLAGS,;t t
11546s,@CPPFLAGS@,$CPPFLAGS,;t t
11547s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11548s,@EXEEXT@,$EXEEXT,;t t
11549s,@OBJEXT@,$OBJEXT,;t t
11550s,@DEPDIR@,$DEPDIR,;t t
11551s,@am__include@,$am__include,;t t
11552s,@am__quote@,$am__quote,;t t
11553s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11554s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11555s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11556s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11557s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11558s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11559s,@RANLIB@,$RANLIB,;t t
11560s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11561s,@CC@,$CC,;t t
11562s,@CFLAGS@,$CFLAGS,;t t
11563s,@ac_ct_CC@,$ac_ct_CC,;t t
11564s,@CCDEPMODE@,$CCDEPMODE,;t t
11565s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11566s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11567s,@CPP@,$CPP,;t t
11568s,@EGREP@,$EGREP,;t t
11569s,@DEBUG@,$DEBUG,;t t
11570s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
11571s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
11572s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
11573s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
11574s,@DOXYGEN@,$DOXYGEN,;t t
11575s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
11576s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
11577s,@GPROF@,$GPROF,;t t
11578s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11579s,@MSBITFIELDS@,$MSBITFIELDS,;t t
11580s,@CURL_LIBS@,$CURL_LIBS,;t t
11581s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
11582s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
11583s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
11584s,@GTK2_LIBS@,$GTK2_LIBS,;t t
11585s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
11586s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
11587s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
11588s,@LIBOBJS@,$LIBOBJS,;t t
11589s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11590CEOF
11591
11592_ACEOF
11593
11594  cat >>$CONFIG_STATUS <<\_ACEOF
11595  # Split the substitutions into bite-sized pieces for seds with
11596  # small command number limits, like on Digital OSF/1 and HP-UX.
11597  ac_max_sed_lines=48
11598  ac_sed_frag=1 # Number of current file.
11599  ac_beg=1 # First line for current file.
11600  ac_end=$ac_max_sed_lines # Line after last line for current file.
11601  ac_more_lines=:
11602  ac_sed_cmds=
11603  while $ac_more_lines; do
11604    if test $ac_beg -gt 1; then
11605      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11606    else
11607      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11608    fi
11609    if test ! -s $tmp/subs.frag; then
11610      ac_more_lines=false
11611    else
11612      # The purpose of the label and of the branching condition is to
11613      # speed up the sed processing (if there are no `@' at all, there
11614      # is no need to browse any of the substitutions).
11615      # These are the two extra sed commands mentioned above.
11616      (echo ':t
11617  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11618      if test -z "$ac_sed_cmds"; then
11619        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11620      else
11621        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11622      fi
11623      ac_sed_frag=`expr $ac_sed_frag + 1`
11624      ac_beg=$ac_end
11625      ac_end=`expr $ac_end + $ac_max_sed_lines`
11626    fi
11627  done
11628  if test -z "$ac_sed_cmds"; then
11629    ac_sed_cmds=cat
11630  fi
11631fi # test -n "$CONFIG_FILES"
11632
11633_ACEOF
11634cat >>$CONFIG_STATUS <<\_ACEOF
11635for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11636  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11637  case $ac_file in
11638  - | *:- | *:-:* ) # input from stdin
11639        cat >$tmp/stdin
11640        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11641        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11642  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11643        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11644  * )   ac_file_in=$ac_file.in ;;
11645  esac
11646
11647  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11648  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11649$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11650         X"$ac_file" : 'X\(//\)[^/]' \| \
11651         X"$ac_file" : 'X\(//\)$' \| \
11652         X"$ac_file" : 'X\(/\)' \| \
11653         .     : '\(.\)' 2>/dev/null ||
11654echo X"$ac_file" |
11655    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11656          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11657          /^X\(\/\/\)$/{ s//\1/; q; }
11658          /^X\(\/\).*/{ s//\1/; q; }
11659          s/.*/./; q'`
11660  { if $as_mkdir_p; then
11661    mkdir -p "$ac_dir"
11662  else
11663    as_dir="$ac_dir"
11664    as_dirs=
11665    while test ! -d "$as_dir"; do
11666      as_dirs="$as_dir $as_dirs"
11667      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11669         X"$as_dir" : 'X\(//\)[^/]' \| \
11670         X"$as_dir" : 'X\(//\)$' \| \
11671         X"$as_dir" : 'X\(/\)' \| \
11672         .     : '\(.\)' 2>/dev/null ||
11673echo X"$as_dir" |
11674    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11675          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11676          /^X\(\/\/\)$/{ s//\1/; q; }
11677          /^X\(\/\).*/{ s//\1/; q; }
11678          s/.*/./; q'`
11679    done
11680    test ! -n "$as_dirs" || mkdir $as_dirs
11681  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11682echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11683   { (exit 1); exit 1; }; }; }
11684
11685  ac_builddir=.
11686
11687if test "$ac_dir" != .; then
11688  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11689  # A "../" for each directory in $ac_dir_suffix.
11690  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11691else
11692  ac_dir_suffix= ac_top_builddir=
11693fi
11694
11695case $srcdir in
11696  .)  # No --srcdir option.  We are building in place.
11697    ac_srcdir=.
11698    if test -z "$ac_top_builddir"; then
11699       ac_top_srcdir=.
11700    else
11701       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11702    fi ;;
11703  [\\/]* | ?:[\\/]* )  # Absolute path.
11704    ac_srcdir=$srcdir$ac_dir_suffix;
11705    ac_top_srcdir=$srcdir ;;
11706  *) # Relative path.
11707    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11708    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11709esac
11710
11711# Do not use `cd foo && pwd` to compute absolute paths, because
11712# the directories may not exist.
11713case `pwd` in
11714.) ac_abs_builddir="$ac_dir";;
11715*)
11716  case "$ac_dir" in
11717  .) ac_abs_builddir=`pwd`;;
11718  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11719  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11720  esac;;
11721esac
11722case $ac_abs_builddir in
11723.) ac_abs_top_builddir=${ac_top_builddir}.;;
11724*)
11725  case ${ac_top_builddir}. in
11726  .) ac_abs_top_builddir=$ac_abs_builddir;;
11727  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11728  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11729  esac;;
11730esac
11731case $ac_abs_builddir in
11732.) ac_abs_srcdir=$ac_srcdir;;
11733*)
11734  case $ac_srcdir in
11735  .) ac_abs_srcdir=$ac_abs_builddir;;
11736  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11737  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11738  esac;;
11739esac
11740case $ac_abs_builddir in
11741.) ac_abs_top_srcdir=$ac_top_srcdir;;
11742*)
11743  case $ac_top_srcdir in
11744  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11745  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11746  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11747  esac;;
11748esac
11749
11750
11751  case $INSTALL in
11752  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11753  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11754  esac
11755
11756  if test x"$ac_file" != x-; then
11757    { echo "$as_me:$LINENO: creating $ac_file" >&5
11758echo "$as_me: creating $ac_file" >&6;}
11759    rm -f "$ac_file"
11760  fi
11761  # Let's still pretend it is `configure' which instantiates (i.e., don't
11762  # use $as_me), people would be surprised to read:
11763  #    /* config.h.  Generated by config.status.  */
11764  if test x"$ac_file" = x-; then
11765    configure_input=
11766  else
11767    configure_input="$ac_file.  "
11768  fi
11769  configure_input=$configure_input"Generated from `echo $ac_file_in |
11770                                     sed 's,.*/,,'` by configure."
11771
11772  # First look for the input files in the build tree, otherwise in the
11773  # src tree.
11774  ac_file_inputs=`IFS=:
11775    for f in $ac_file_in; do
11776      case $f in
11777      -) echo $tmp/stdin ;;
11778      [\\/$]*)
11779         # Absolute (can't be DOS-style, as IFS=:)
11780         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11781echo "$as_me: error: cannot find input file: $f" >&2;}
11782   { (exit 1); exit 1; }; }
11783         echo "$f";;
11784      *) # Relative
11785         if test -f "$f"; then
11786           # Build tree
11787           echo "$f"
11788         elif test -f "$srcdir/$f"; then
11789           # Source tree
11790           echo "$srcdir/$f"
11791         else
11792           # /dev/null tree
11793           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11794echo "$as_me: error: cannot find input file: $f" >&2;}
11795   { (exit 1); exit 1; }; }
11796         fi;;
11797      esac
11798    done` || { (exit 1); exit 1; }
11799_ACEOF
11800cat >>$CONFIG_STATUS <<_ACEOF
11801  sed "$ac_vpsub
11802$extrasub
11803_ACEOF
11804cat >>$CONFIG_STATUS <<\_ACEOF
11805:t
11806/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11807s,@configure_input@,$configure_input,;t t
11808s,@srcdir@,$ac_srcdir,;t t
11809s,@abs_srcdir@,$ac_abs_srcdir,;t t
11810s,@top_srcdir@,$ac_top_srcdir,;t t
11811s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11812s,@builddir@,$ac_builddir,;t t
11813s,@abs_builddir@,$ac_abs_builddir,;t t
11814s,@top_builddir@,$ac_top_builddir,;t t
11815s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11816s,@INSTALL@,$ac_INSTALL,;t t
11817" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11818  rm -f $tmp/stdin
11819  if test x"$ac_file" != x-; then
11820    mv $tmp/out $ac_file
11821  else
11822    cat $tmp/out
11823    rm -f $tmp/out
11824  fi
11825
11826done
11827_ACEOF
11828cat >>$CONFIG_STATUS <<\_ACEOF
11829
11830#
11831# CONFIG_HEADER section.
11832#
11833
11834# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11835# NAME is the cpp macro being defined and VALUE is the value it is being given.
11836#
11837# ac_d sets the value in "#define NAME VALUE" lines.
11838ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11839ac_dB='[         ].*$,\1#\2'
11840ac_dC=' '
11841ac_dD=',;t'
11842# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11843ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11844ac_uB='$,\1#\2define\3'
11845ac_uC=' '
11846ac_uD=',;t'
11847
11848for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11849  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11850  case $ac_file in
11851  - | *:- | *:-:* ) # input from stdin
11852        cat >$tmp/stdin
11853        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11854        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11855  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11856        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11857  * )   ac_file_in=$ac_file.in ;;
11858  esac
11859
11860  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11861echo "$as_me: creating $ac_file" >&6;}
11862
11863  # First look for the input files in the build tree, otherwise in the
11864  # src tree.
11865  ac_file_inputs=`IFS=:
11866    for f in $ac_file_in; do
11867      case $f in
11868      -) echo $tmp/stdin ;;
11869      [\\/$]*)
11870         # Absolute (can't be DOS-style, as IFS=:)
11871         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11872echo "$as_me: error: cannot find input file: $f" >&2;}
11873   { (exit 1); exit 1; }; }
11874         # Do quote $f, to prevent DOS paths from being IFS'd.
11875         echo "$f";;
11876      *) # Relative
11877         if test -f "$f"; then
11878           # Build tree
11879           echo "$f"
11880         elif test -f "$srcdir/$f"; then
11881           # Source tree
11882           echo "$srcdir/$f"
11883         else
11884           # /dev/null tree
11885           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11886echo "$as_me: error: cannot find input file: $f" >&2;}
11887   { (exit 1); exit 1; }; }
11888         fi;;
11889      esac
11890    done` || { (exit 1); exit 1; }
11891  # Remove the trailing spaces.
11892  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11893
11894_ACEOF
11895
11896# Transform confdefs.h into two sed scripts, `conftest.defines' and
11897# `conftest.undefs', that substitutes the proper values into
11898# config.h.in to produce config.h.  The first handles `#define'
11899# templates, and the second `#undef' templates.
11900# And first: Protect against being on the right side of a sed subst in
11901# config.status.  Protect against being in an unquoted here document
11902# in config.status.
11903rm -f conftest.defines conftest.undefs
11904# Using a here document instead of a string reduces the quoting nightmare.
11905# Putting comments in sed scripts is not portable.
11906#
11907# `end' is used to avoid that the second main sed command (meant for
11908# 0-ary CPP macros) applies to n-ary macro definitions.
11909# See the Autoconf documentation for `clear'.
11910cat >confdef2sed.sed <<\_ACEOF
11911s/[\\&,]/\\&/g
11912s,[\\$`],\\&,g
11913t clear
11914: clear
11915s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11916t end
11917s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11918: end
11919_ACEOF
11920# If some macros were called several times there might be several times
11921# the same #defines, which is useless.  Nevertheless, we may not want to
11922# sort them, since we want the *last* AC-DEFINE to be honored.
11923uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11924sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11925rm -f confdef2sed.sed
11926
11927# This sed command replaces #undef with comments.  This is necessary, for
11928# example, in the case of _POSIX_SOURCE, which is predefined and required
11929# on some systems where configure will not decide to define it.
11930cat >>conftest.undefs <<\_ACEOF
11931s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11932_ACEOF
11933
11934# Break up conftest.defines because some shells have a limit on the size
11935# of here documents, and old seds have small limits too (100 cmds).
11936echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11937echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11938echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11939echo '  :' >>$CONFIG_STATUS
11940rm -f conftest.tail
11941while grep . conftest.defines >/dev/null
11942do
11943  # Write a limited-size here document to $tmp/defines.sed.
11944  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11945  # Speed up: don't consider the non `#define' lines.
11946  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11947  # Work around the forget-to-reset-the-flag bug.
11948  echo 't clr' >>$CONFIG_STATUS
11949  echo ': clr' >>$CONFIG_STATUS
11950  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11951  echo 'CEOF
11952  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11953  rm -f $tmp/in
11954  mv $tmp/out $tmp/in
11955' >>$CONFIG_STATUS
11956  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11957  rm -f conftest.defines
11958  mv conftest.tail conftest.defines
11959done
11960rm -f conftest.defines
11961echo '  fi # grep' >>$CONFIG_STATUS
11962echo >>$CONFIG_STATUS
11963
11964# Break up conftest.undefs because some shells have a limit on the size
11965# of here documents, and old seds have small limits too (100 cmds).
11966echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11967rm -f conftest.tail
11968while grep . conftest.undefs >/dev/null
11969do
11970  # Write a limited-size here document to $tmp/undefs.sed.
11971  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11972  # Speed up: don't consider the non `#undef'
11973  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11974  # Work around the forget-to-reset-the-flag bug.
11975  echo 't clr' >>$CONFIG_STATUS
11976  echo ': clr' >>$CONFIG_STATUS
11977  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11978  echo 'CEOF
11979  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11980  rm -f $tmp/in
11981  mv $tmp/out $tmp/in
11982' >>$CONFIG_STATUS
11983  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11984  rm -f conftest.undefs
11985  mv conftest.tail conftest.undefs
11986done
11987rm -f conftest.undefs
11988
11989cat >>$CONFIG_STATUS <<\_ACEOF
11990  # Let's still pretend it is `configure' which instantiates (i.e., don't
11991  # use $as_me), people would be surprised to read:
11992  #    /* config.h.  Generated by config.status.  */
11993  if test x"$ac_file" = x-; then
11994    echo "/* Generated by configure.  */" >$tmp/config.h
11995  else
11996    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11997  fi
11998  cat $tmp/in >>$tmp/config.h
11999  rm -f $tmp/in
12000  if test x"$ac_file" != x-; then
12001    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12002      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12003echo "$as_me: $ac_file is unchanged" >&6;}
12004    else
12005      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12006$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007         X"$ac_file" : 'X\(//\)[^/]' \| \
12008         X"$ac_file" : 'X\(//\)$' \| \
12009         X"$ac_file" : 'X\(/\)' \| \
12010         .     : '\(.\)' 2>/dev/null ||
12011echo X"$ac_file" |
12012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12013          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12014          /^X\(\/\/\)$/{ s//\1/; q; }
12015          /^X\(\/\).*/{ s//\1/; q; }
12016          s/.*/./; q'`
12017      { if $as_mkdir_p; then
12018    mkdir -p "$ac_dir"
12019  else
12020    as_dir="$ac_dir"
12021    as_dirs=
12022    while test ! -d "$as_dir"; do
12023      as_dirs="$as_dir $as_dirs"
12024      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12025$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12026         X"$as_dir" : 'X\(//\)[^/]' \| \
12027         X"$as_dir" : 'X\(//\)$' \| \
12028         X"$as_dir" : 'X\(/\)' \| \
12029         .     : '\(.\)' 2>/dev/null ||
12030echo X"$as_dir" |
12031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12032          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12033          /^X\(\/\/\)$/{ s//\1/; q; }
12034          /^X\(\/\).*/{ s//\1/; q; }
12035          s/.*/./; q'`
12036    done
12037    test ! -n "$as_dirs" || mkdir $as_dirs
12038  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12039echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12040   { (exit 1); exit 1; }; }; }
12041
12042      rm -f $ac_file
12043      mv $tmp/config.h $ac_file
12044    fi
12045  else
12046    cat $tmp/config.h
12047    rm -f $tmp/config.h
12048  fi
12049# Compute $ac_file's index in $config_headers.
12050_am_stamp_count=1
12051for _am_header in $config_headers :; do
12052  case $_am_header in
12053    $ac_file | $ac_file:* )
12054      break ;;
12055    * )
12056      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12057  esac
12058done
12059echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12060$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061         X$ac_file : 'X\(//\)[^/]' \| \
12062         X$ac_file : 'X\(//\)$' \| \
12063         X$ac_file : 'X\(/\)' \| \
12064         .     : '\(.\)' 2>/dev/null ||
12065echo X$ac_file |
12066    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12067          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12068          /^X\(\/\/\)$/{ s//\1/; q; }
12069          /^X\(\/\).*/{ s//\1/; q; }
12070          s/.*/./; q'`/stamp-h$_am_stamp_count
12071done
12072_ACEOF
12073cat >>$CONFIG_STATUS <<\_ACEOF
12074
12075#
12076# CONFIG_COMMANDS section.
12077#
12078for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12079  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12080  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12081  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12082$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12083         X"$ac_dest" : 'X\(//\)[^/]' \| \
12084         X"$ac_dest" : 'X\(//\)$' \| \
12085         X"$ac_dest" : 'X\(/\)' \| \
12086         .     : '\(.\)' 2>/dev/null ||
12087echo X"$ac_dest" |
12088    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12089          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12090          /^X\(\/\/\)$/{ s//\1/; q; }
12091          /^X\(\/\).*/{ s//\1/; q; }
12092          s/.*/./; q'`
12093  { if $as_mkdir_p; then
12094    mkdir -p "$ac_dir"
12095  else
12096    as_dir="$ac_dir"
12097    as_dirs=
12098    while test ! -d "$as_dir"; do
12099      as_dirs="$as_dir $as_dirs"
12100      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12101$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102         X"$as_dir" : 'X\(//\)[^/]' \| \
12103         X"$as_dir" : 'X\(//\)$' \| \
12104         X"$as_dir" : 'X\(/\)' \| \
12105         .     : '\(.\)' 2>/dev/null ||
12106echo X"$as_dir" |
12107    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12108          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12109          /^X\(\/\/\)$/{ s//\1/; q; }
12110          /^X\(\/\).*/{ s//\1/; q; }
12111          s/.*/./; q'`
12112    done
12113    test ! -n "$as_dirs" || mkdir $as_dirs
12114  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12115echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12116   { (exit 1); exit 1; }; }; }
12117
12118  ac_builddir=.
12119
12120if test "$ac_dir" != .; then
12121  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12122  # A "../" for each directory in $ac_dir_suffix.
12123  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12124else
12125  ac_dir_suffix= ac_top_builddir=
12126fi
12127
12128case $srcdir in
12129  .)  # No --srcdir option.  We are building in place.
12130    ac_srcdir=.
12131    if test -z "$ac_top_builddir"; then
12132       ac_top_srcdir=.
12133    else
12134       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12135    fi ;;
12136  [\\/]* | ?:[\\/]* )  # Absolute path.
12137    ac_srcdir=$srcdir$ac_dir_suffix;
12138    ac_top_srcdir=$srcdir ;;
12139  *) # Relative path.
12140    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12141    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12142esac
12143
12144# Do not use `cd foo && pwd` to compute absolute paths, because
12145# the directories may not exist.
12146case `pwd` in
12147.) ac_abs_builddir="$ac_dir";;
12148*)
12149  case "$ac_dir" in
12150  .) ac_abs_builddir=`pwd`;;
12151  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12152  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12153  esac;;
12154esac
12155case $ac_abs_builddir in
12156.) ac_abs_top_builddir=${ac_top_builddir}.;;
12157*)
12158  case ${ac_top_builddir}. in
12159  .) ac_abs_top_builddir=$ac_abs_builddir;;
12160  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12161  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12162  esac;;
12163esac
12164case $ac_abs_builddir in
12165.) ac_abs_srcdir=$ac_srcdir;;
12166*)
12167  case $ac_srcdir in
12168  .) ac_abs_srcdir=$ac_abs_builddir;;
12169  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12170  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12171  esac;;
12172esac
12173case $ac_abs_builddir in
12174.) ac_abs_top_srcdir=$ac_top_srcdir;;
12175*)
12176  case $ac_top_srcdir in
12177  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12178  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12179  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12180  esac;;
12181esac
12182
12183
12184  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12185echo "$as_me: executing $ac_dest commands" >&6;}
12186  case $ac_dest in
12187    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12188  # Strip MF so we end up with the name of the file.
12189  mf=`echo "$mf" | sed -e 's/:.*$//'`
12190  # Check whether this is an Automake generated Makefile or not.
12191  # We used to match only the files named `Makefile.in', but
12192  # some people rename them; so instead we look at the file content.
12193  # Grep'ing the first line is not enough: some people post-process
12194  # each Makefile.in and add a new line on top of each file to say so.
12195  # So let's grep whole file.
12196  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12197    dirpart=`(dirname "$mf") 2>/dev/null ||
12198$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12199         X"$mf" : 'X\(//\)[^/]' \| \
12200         X"$mf" : 'X\(//\)$' \| \
12201         X"$mf" : 'X\(/\)' \| \
12202         .     : '\(.\)' 2>/dev/null ||
12203echo X"$mf" |
12204    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12205          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12206          /^X\(\/\/\)$/{ s//\1/; q; }
12207          /^X\(\/\).*/{ s//\1/; q; }
12208          s/.*/./; q'`
12209  else
12210    continue
12211  fi
12212  # Extract the definition of DEPDIR, am__include, and am__quote
12213  # from the Makefile without running `make'.
12214  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12215  test -z "$DEPDIR" && continue
12216  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12217  test -z "am__include" && continue
12218  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12219  # When using ansi2knr, U may be empty or an underscore; expand it
12220  U=`sed -n 's/^U = //p' < "$mf"`
12221  # Find all dependency output files, they are included files with
12222  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12223  # simplest approach to changing $(DEPDIR) to its actual value in the
12224  # expansion.
12225  for file in `sed -n "
12226    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12227       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12228    # Make sure the directory exists.
12229    test -f "$dirpart/$file" && continue
12230    fdir=`(dirname "$file") 2>/dev/null ||
12231$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12232         X"$file" : 'X\(//\)[^/]' \| \
12233         X"$file" : 'X\(//\)$' \| \
12234         X"$file" : 'X\(/\)' \| \
12235         .     : '\(.\)' 2>/dev/null ||
12236echo X"$file" |
12237    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12238          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12239          /^X\(\/\/\)$/{ s//\1/; q; }
12240          /^X\(\/\).*/{ s//\1/; q; }
12241          s/.*/./; q'`
12242    { if $as_mkdir_p; then
12243    mkdir -p $dirpart/$fdir
12244  else
12245    as_dir=$dirpart/$fdir
12246    as_dirs=
12247    while test ! -d "$as_dir"; do
12248      as_dirs="$as_dir $as_dirs"
12249      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12251         X"$as_dir" : 'X\(//\)[^/]' \| \
12252         X"$as_dir" : 'X\(//\)$' \| \
12253         X"$as_dir" : 'X\(/\)' \| \
12254         .     : '\(.\)' 2>/dev/null ||
12255echo X"$as_dir" |
12256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12257          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12258          /^X\(\/\/\)$/{ s//\1/; q; }
12259          /^X\(\/\).*/{ s//\1/; q; }
12260          s/.*/./; q'`
12261    done
12262    test ! -n "$as_dirs" || mkdir $as_dirs
12263  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12264echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12265   { (exit 1); exit 1; }; }; }
12266
12267    # echo "creating $dirpart/$file"
12268    echo '# dummy' > "$dirpart/$file"
12269  done
12270done
12271 ;;
12272  esac
12273done
12274_ACEOF
12275
12276cat >>$CONFIG_STATUS <<\_ACEOF
12277
12278{ (exit 0); exit 0; }
12279_ACEOF
12280chmod +x $CONFIG_STATUS
12281ac_clean_files=$ac_clean_files_save
12282
12283
12284# configure is writing to config.log, and then calls config.status.
12285# config.status does its own redirection, appending to config.log.
12286# Unfortunately, on DOS this fails, as config.log is still kept open
12287# by configure, so config.status won't be able to write to it; its
12288# output is simply discarded.  So we exec the FD to /dev/null,
12289# effectively closing config.log, so it can be properly (re)opened and
12290# appended to by config.status.  When coming back to configure, we
12291# need to make the FD available again.
12292if test "$no_create" != yes; then
12293  ac_cs_success=:
12294  ac_config_status_args=
12295  test "$silent" = yes &&
12296    ac_config_status_args="$ac_config_status_args --quiet"
12297  exec 5>/dev/null
12298  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12299  exec 5>>config.log
12300  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12301  # would make configure fail if this is the last instruction.
12302  $ac_cs_success || { (exit 1); exit 1; }
12303fi
12304
Note: See TracBrowser for help on using the repository browser.