Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5276

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

orxonox/trunk: configure.ac now has a new way to check for stuff. this should proove more usefull when using osX too.

  • Property svn:executable set to *
File size: 352.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.3.1_alpha.
4#
5# Report bugs to <orxonox-dev at mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.3.1_alpha'
273PACKAGE_STRING='orxonox 0.3.1_alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.3.1_alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
871  --disable-gtk           Prevents GTK from being loaded
872  --disable-curl          Prevents libcURL from being loaded
873  --enable-profile        builds orxonox with profiling support
874  --enable-efence         builds orxonox with efence support
875  --enable-documentation  also builds the sDocumentation while make from
876                          srcdir
877
878Optional Packages:
879  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
881  --with-shared-lib-path  Tells the executable, where to look for the shared
882                          libraries.
883  --with-sub-projects     also builds the subProjects while make from srcdir
884
885Some influential environment variables:
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CC          C compiler command
893  CFLAGS      C compiler flags
894  CPP         C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899Report bugs to <orxonox-dev at mail.datacore.ch>.
900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904  # If there are subdirs, report their specific --help.
905  ac_popdir=`pwd`
906  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907    test -d $ac_dir || continue
908    ac_builddir=.
909
910if test "$ac_dir" != .; then
911  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912  # A "../" for each directory in $ac_dir_suffix.
913  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915  ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919  .)  # No --srcdir option.  We are building in place.
920    ac_srcdir=.
921    if test -z "$ac_top_builddir"; then
922       ac_top_srcdir=.
923    else
924       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925    fi ;;
926  [\\/]* | ?:[\\/]* )  # Absolute path.
927    ac_srcdir=$srcdir$ac_dir_suffix;
928    ac_top_srcdir=$srcdir ;;
929  *) # Relative path.
930    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939  case "$ac_dir" in
940  .) ac_abs_builddir=`pwd`;;
941  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942  *) ac_abs_builddir=`pwd`/"$ac_dir";;
943  esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948  case ${ac_top_builddir}. in
949  .) ac_abs_top_builddir=$ac_abs_builddir;;
950  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957  case $ac_srcdir in
958  .) ac_abs_srcdir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966  case $ac_top_srcdir in
967  .) ac_abs_top_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970  esac;;
971esac
972
973    cd $ac_dir
974    # Check for guested configure; otherwise get Cygnus style configure.
975    if test -f $ac_srcdir/configure.gnu; then
976      echo
977      $SHELL $ac_srcdir/configure.gnu  --help=recursive
978    elif test -f $ac_srcdir/configure; then
979      echo
980      $SHELL $ac_srcdir/configure  --help=recursive
981    elif test -f $ac_srcdir/configure.ac ||
982           test -f $ac_srcdir/configure.in; then
983      echo
984      $ac_configure --help
985    else
986      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987    fi
988    cd $ac_popdir
989  done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994  cat <<\_ACEOF
995orxonox configure 0.3.1_alpha
996generated by GNU Autoconf 2.59
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002  exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
1009It was created by orxonox $as_me 0.3.1_alpha, which was
1010generated by GNU Autoconf 2.59.  Invocation command line was
1011
1012  $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1029
1030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043  IFS=$as_save_IFS
1044  test -z "$as_dir" && as_dir=.
1045  echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072  for ac_arg
1073  do
1074    case $ac_arg in
1075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077    | -silent | --silent | --silen | --sile | --sil)
1078      continue ;;
1079    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081    esac
1082    case $ac_pass in
1083    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084    2)
1085      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086      if test $ac_must_keep_next = true; then
1087        ac_must_keep_next=false # Got value, back to normal.
1088      else
1089        case $ac_arg in
1090          *=* | --config-cache | -C | -disable-* | --disable-* \
1091          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093          | -with-* | --with-* | -without-* | --without-* | --x)
1094            case "$ac_configure_args0 " in
1095              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096            esac
1097            ;;
1098          -* ) ac_must_keep_next=true ;;
1099        esac
1100      fi
1101      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102      # Get rid of the leading space.
1103      ac_sep=" "
1104      ;;
1105    esac
1106  done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log.  We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117  # Save into config.log some information that might help in debugging.
1118  {
1119    echo
1120
1121    cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126    echo
1127    # The following way of writing the cache mishandles newlines in values,
1128{
1129  (set) 2>&1 |
1130    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131    *ac_space=\ *)
1132      sed -n \
1133        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135      ;;
1136    *)
1137      sed -n \
1138        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139      ;;
1140    esac;
1141}
1142    echo
1143
1144    cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149    echo
1150    for ac_var in $ac_subst_vars
1151    do
1152      eval ac_val=$`echo $ac_var`
1153      echo "$ac_var='"'"'$ac_val'"'"'"
1154    done | sort
1155    echo
1156
1157    if test -n "$ac_subst_files"; then
1158      cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163      echo
1164      for ac_var in $ac_subst_files
1165      do
1166        eval ac_val=$`echo $ac_var`
1167        echo "$ac_var='"'"'$ac_val'"'"'"
1168      done | sort
1169      echo
1170    fi
1171
1172    if test -s confdefs.h; then
1173      cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178      echo
1179      sed "/^$/d" confdefs.h | sort
1180      echo
1181    fi
1182    test "$ac_signal" != 0 &&
1183      echo "$as_me: caught signal $ac_signal"
1184    echo "$as_me: exit $exit_status"
1185  } >&5
1186  rm -f core *.core &&
1187  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188    exit $exit_status
1189     ' 0
1190for ac_signal in 1 2 13 15; do
1191  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230  if test "x$prefix" != xNONE; then
1231    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232  else
1233    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234  fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237  if test -r "$ac_site_file"; then
1238    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240    sed 's/^/| /' "$ac_site_file" >&5
1241    . "$ac_site_file"
1242  fi
1243done
1244
1245if test -r "$cache_file"; then
1246  # Some versions of bash will fail to source /dev/null (special
1247  # files actually), so we avoid doing that.
1248  if test -f "$cache_file"; then
1249    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251    case $cache_file in
1252      [\\/]* | ?:[\\/]* ) . $cache_file;;
1253      *)                      . ./$cache_file;;
1254    esac
1255  fi
1256else
1257  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259  >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268  eval ac_new_set=\$ac_env_${ac_var}_set
1269  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270  eval ac_new_val="\$ac_env_${ac_var}_value"
1271  case $ac_old_set,$ac_new_set in
1272    set,)
1273      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275      ac_cache_corrupted=: ;;
1276    ,set)
1277      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279      ac_cache_corrupted=: ;;
1280    ,);;
1281    *)
1282      if test "x$ac_old_val" != "x$ac_new_val"; then
1283        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286echo "$as_me:   former value:  $ac_old_val" >&2;}
1287        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288echo "$as_me:   current value: $ac_new_val" >&2;}
1289        ac_cache_corrupted=:
1290      fi;;
1291  esac
1292  # Pass precious variables to config.status.
1293  if test "$ac_new_set" = set; then
1294    case $ac_new_val in
1295    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297    *) ac_arg=$ac_var=$ac_new_val ;;
1298    esac
1299    case " $ac_configure_args " in
1300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1301      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302    esac
1303  fi
1304done
1305if $ac_cache_corrupted; then
1306  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346## Detect the canonical host and target build environment.
1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372# Make sure we can run config.sub.
1373$ac_config_sub sun4 >/dev/null 2>&1 ||
1374  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1375echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1376   { (exit 1); exit 1; }; }
1377
1378echo "$as_me:$LINENO: checking build system type" >&5
1379echo $ECHO_N "checking build system type... $ECHO_C" >&6
1380if test "${ac_cv_build+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_build_alias=$build_alias
1384test -z "$ac_cv_build_alias" &&
1385  ac_cv_build_alias=`$ac_config_guess`
1386test -z "$ac_cv_build_alias" &&
1387  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1389   { (exit 1); exit 1; }; }
1390ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1391  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1393   { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1397echo "${ECHO_T}$ac_cv_build" >&6
1398build=$ac_cv_build
1399build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking host system type" >&5
1405echo $ECHO_N "checking host system type... $ECHO_C" >&6
1406if test "${ac_cv_host+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  ac_cv_host_alias=$host_alias
1410test -z "$ac_cv_host_alias" &&
1411  ac_cv_host_alias=$ac_cv_build_alias
1412ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1413  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1415   { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1419echo "${ECHO_T}$ac_cv_host" >&6
1420host=$ac_cv_host
1421host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426echo "$as_me:$LINENO: checking target system type" >&5
1427echo $ECHO_N "checking target system type... $ECHO_C" >&6
1428if test "${ac_cv_target+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  ac_cv_target_alias=$target_alias
1432test "x$ac_cv_target_alias" = "x" &&
1433  ac_cv_target_alias=$ac_cv_host_alias
1434ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1435  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1436echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1437   { (exit 1); exit 1; }; }
1438
1439fi
1440echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1441echo "${ECHO_T}$ac_cv_target" >&6
1442target=$ac_cv_target
1443target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448# The aliases save the names the user supplied, while $host etc.
1449# will get canonicalized.
1450test -n "$target_alias" &&
1451  test "$program_prefix$program_suffix$program_transform_name" = \
1452    NONENONEs,x,x, &&
1453  program_prefix=${target_alias}-
1454
1455am__api_version="1.8"
1456# Find a good install program.  We prefer a C program (faster),
1457# so one script is as good as another.  But avoid the broken or
1458# incompatible versions:
1459# SysV /etc/install, /usr/sbin/install
1460# SunOS /usr/etc/install
1461# IRIX /sbin/install
1462# AIX /bin/install
1463# AmigaOS /C/install, which installs bootblocks on floppy discs
1464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467# OS/2's system install, which has a completely different semantic
1468# ./install, which can be erroneously created by make from ./install.sh.
1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471if test -z "$INSTALL"; then
1472if test "${ac_cv_path_install+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  # Account for people who put trailing slashes in PATH elements.
1481case $as_dir/ in
1482  ./ | .// | /cC/* | \
1483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485  /usr/ucb/* ) ;;
1486  *)
1487    # OSF1 and SCO ODT 3.0 have their own names for install.
1488    # Don't use installbsd from OSF since it installs stuff as root
1489    # by default.
1490    for ac_prog in ginstall scoinst install; do
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493          if test $ac_prog = install &&
1494            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # AIX install.  It has an incompatible calling convention.
1496            :
1497          elif test $ac_prog = install &&
1498            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499            # program-specific install script used by HP pwplus--don't use.
1500            :
1501          else
1502            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503            break 3
1504          fi
1505        fi
1506      done
1507    done
1508    ;;
1509esac
1510done
1511
1512
1513fi
1514  if test "${ac_cv_path_install+set}" = set; then
1515    INSTALL=$ac_cv_path_install
1516  else
1517    # As a last resort, use the slow shell script.  We don't cache a
1518    # path for INSTALL within a source directory, because that will
1519    # break other packages using the cache if that directory is
1520    # removed, or if the path is relative.
1521    INSTALL=$ac_install_sh
1522  fi
1523fi
1524echo "$as_me:$LINENO: result: $INSTALL" >&5
1525echo "${ECHO_T}$INSTALL" >&6
1526
1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528# It thinks the first close brace ends the variable substitution.
1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530
1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532
1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534
1535echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537# Just in case
1538sleep 1
1539echo timestamp > conftest.file
1540# Do `set' in a subshell so we don't clobber the current shell's
1541# arguments.  Must try -L first in case configure is actually a
1542# symlink; some systems play weird games with the mod time of symlinks
1543# (eg FreeBSD returns the mod time of the symlink's containing
1544# directory).
1545if (
1546   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547   if test "$*" = "X"; then
1548      # -L didn't work.
1549      set X `ls -t $srcdir/configure conftest.file`
1550   fi
1551   rm -f conftest.file
1552   if test "$*" != "X $srcdir/configure conftest.file" \
1553      && test "$*" != "X conftest.file $srcdir/configure"; then
1554
1555      # If neither matched, then we have a broken ls.  This can happen
1556      # if, for instance, CONFIG_SHELL is bash and it inherits a
1557      # broken ls alias from the environment.  This has actually
1558      # happened.  Such a system could not be considered "sane".
1559      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&5
1561echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&2;}
1563   { (exit 1); exit 1; }; }
1564   fi
1565
1566   test "$2" = conftest.file
1567   )
1568then
1569   # Ok.
1570   :
1571else
1572   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573Check your system clock" >&5
1574echo "$as_me: error: newly created file is older than distributed files!
1575Check your system clock" >&2;}
1576   { (exit 1); exit 1; }; }
1577fi
1578echo "$as_me:$LINENO: result: yes" >&5
1579echo "${ECHO_T}yes" >&6
1580test "$program_prefix" != NONE &&
1581  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582# Use a double $ so make ignores it.
1583test "$program_suffix" != NONE &&
1584  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585# Double any \ or $.  echo might interpret backslashes.
1586# By default was `s,x,x', remove it if useless.
1587cat <<\_ACEOF >conftest.sed
1588s/[\\$]/&&/g;s/;s,x,x,$//
1589_ACEOF
1590program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591rm conftest.sed
1592
1593# expand $ac_aux_dir to an absolute path
1594am_aux_dir=`cd $ac_aux_dir && pwd`
1595
1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597# Use eval to expand $SHELL
1598if eval "$MISSING --run true"; then
1599  am_missing_run="$MISSING --run "
1600else
1601  am_missing_run=
1602  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604fi
1605
1606if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1607  # Keeping the `.' argument allows $(mkdir_p) to be used without
1608  # argument.  Indeed, we sometimes output rules like
1609  #   $(mkdir_p) $(somedir)
1610  # where $(somedir) is conditionally defined.
1611  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1612  # expensive solution, as it forces Make to start a sub-shell.)
1613  mkdir_p='mkdir -p -- .'
1614else
1615  # On NextStep and OpenStep, the `mkdir' command does not
1616  # recognize any option.  It will interpret all options as
1617  # directories to create, and then abort because `.' already
1618  # exists.
1619  for d in ./-p ./--version;
1620  do
1621    test -d $d && rmdir $d
1622  done
1623  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1624  if test -f "$ac_aux_dir/mkinstalldirs"; then
1625    mkdir_p='$(mkinstalldirs)'
1626  else
1627    mkdir_p='$(install_sh) -d'
1628  fi
1629fi
1630
1631for ac_prog in gawk mawk nawk awk
1632do
1633  # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_AWK+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$AWK"; then
1641  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_AWK="$ac_prog"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657fi
1658fi
1659AWK=$ac_cv_prog_AWK
1660if test -n "$AWK"; then
1661  echo "$as_me:$LINENO: result: $AWK" >&5
1662echo "${ECHO_T}$AWK" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  test -n "$AWK" && break
1669done
1670
1671echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1672echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1673set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1674if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  cat >conftest.make <<\_ACEOF
1678all:
1679        @echo 'ac_maketemp="$(MAKE)"'
1680_ACEOF
1681# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683if test -n "$ac_maketemp"; then
1684  eval ac_cv_prog_make_${ac_make}_set=yes
1685else
1686  eval ac_cv_prog_make_${ac_make}_set=no
1687fi
1688rm -f conftest.make
1689fi
1690if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693  SET_MAKE=
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697  SET_MAKE="MAKE=${MAKE-make}"
1698fi
1699
1700rm -rf .tst 2>/dev/null
1701mkdir .tst 2>/dev/null
1702if test -d .tst; then
1703  am__leading_dot=.
1704else
1705  am__leading_dot=_
1706fi
1707rmdir .tst 2>/dev/null
1708
1709# test to see if srcdir already configured
1710if test "`cd $srcdir && pwd`" != "`pwd`" &&
1711   test -f $srcdir/config.status; then
1712  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716
1717# test whether we have cygpath
1718if test -z "$CYGPATH_W"; then
1719  if (cygpath --version) >/dev/null 2>/dev/null; then
1720    CYGPATH_W='cygpath -w'
1721  else
1722    CYGPATH_W=echo
1723  fi
1724fi
1725
1726
1727# Define the identity of the package.
1728 PACKAGE='orxonox'
1729 VERSION='0.3.1_alpha'
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741# Some tools Automake needs.
1742
1743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744
1745
1746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747
1748
1749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750
1751
1752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753
1754
1755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1756
1757
1758AMTAR=${AMTAR-"${am_missing_run}tar"}
1759
1760install_sh=${install_sh-"$am_aux_dir/install-sh"}
1761
1762# Installed binaries are usually stripped using `strip' when the user
1763# run `make install-strip'.  However `strip' might not be the right
1764# tool to use in cross-compilation environments, therefore Automake
1765# will honor the `STRIP' environment variable to overrule this program.
1766if test "$cross_compiling" != no; then
1767  if test -n "$ac_tool_prefix"; then
1768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}strip; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_STRIP+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$STRIP"; then
1776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794STRIP=$ac_cv_prog_STRIP
1795if test -n "$STRIP"; then
1796  echo "$as_me:$LINENO: result: $STRIP" >&5
1797echo "${ECHO_T}$STRIP" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_STRIP"; then
1805  ac_ct_STRIP=$STRIP
1806  # Extract the first word of "strip", so it can be a program name with args.
1807set dummy strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$ac_ct_STRIP"; then
1814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823    ac_cv_prog_ac_ct_STRIP="strip"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829
1830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1831fi
1832fi
1833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834if test -n "$ac_ct_STRIP"; then
1835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836echo "${ECHO_T}$ac_ct_STRIP" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842  STRIP=$ac_ct_STRIP
1843else
1844  STRIP="$ac_cv_prog_STRIP"
1845fi
1846
1847fi
1848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1849
1850# We need awk for the "check" target.  The system "awk" is bad on
1851# some platforms.
1852
1853
1854
1855
1856
1857          ac_config_headers="$ac_config_headers config.h"
1858
1859
1860#########################
1861## Checks for programs ##
1862#########################
1863ac_ext=cc
1864ac_cpp='$CXXCPP $CPPFLAGS'
1865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1868if test -n "$ac_tool_prefix"; then
1869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1870  do
1871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CXX+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$CXX"; then
1879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897CXX=$ac_cv_prog_CXX
1898if test -n "$CXX"; then
1899  echo "$as_me:$LINENO: result: $CXX" >&5
1900echo "${ECHO_T}$CXX" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906    test -n "$CXX" && break
1907  done
1908fi
1909if test -z "$CXX"; then
1910  ac_ct_CXX=$CXX
1911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912do
1913  # Extract the first word of "$ac_prog", so it can be a program name with args.
1914set dummy $ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_CXX"; then
1921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_CXX="$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1940if test -n "$ac_ct_CXX"; then
1941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1942echo "${ECHO_T}$ac_ct_CXX" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948  test -n "$ac_ct_CXX" && break
1949done
1950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1951
1952  CXX=$ac_ct_CXX
1953fi
1954
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C++ compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991ac_clean_files_save=$ac_clean_files
1992ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993# Try to create an executable without -o first, disregard a.out.
1994# It will help us diagnose broken compilers, and finding out an intuition
1995# of exeext.
1996echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1997echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1998ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000  (eval $ac_link_default) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; then
2004  # Find the output, starting from the most likely.  This scheme is
2005# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006# resort.
2007
2008# Be careful to initialize this variable, since it used to be cached.
2009# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010ac_cv_exeext=
2011# b.out is created by i960 compilers.
2012for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013do
2014  test -f "$ac_file" || continue
2015  case $ac_file in
2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2017        ;;
2018    conftest.$ac_ext )
2019        # This is the source file.
2020        ;;
2021    [ab].out )
2022        # We found the default executable, but exeext='' is most
2023        # certainly right.
2024        break;;
2025    *.* )
2026        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027        # FIXME: I believe we export ac_cv_exeext for Libtool,
2028        # but it would be cool to find out if it's true.  Does anybody
2029        # maintain Libtool? --akim.
2030        export ac_cv_exeext
2031        break;;
2032    * )
2033        break;;
2034  esac
2035done
2036else
2037  echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&2;}
2044   { (exit 77); exit 77; }; }
2045fi
2046
2047ac_exeext=$ac_cv_exeext
2048echo "$as_me:$LINENO: result: $ac_file" >&5
2049echo "${ECHO_T}$ac_file" >&6
2050
2051# Check the compiler produces executables we can run.  If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2054echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2055# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2056# If not cross compiling, check that we can run a simple program.
2057if test "$cross_compiling" != yes; then
2058  if { ac_try='./$ac_file'
2059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060  (eval $ac_try) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; }; then
2064    cross_compiling=no
2065  else
2066    if test "$cross_compiling" = maybe; then
2067        cross_compiling=yes
2068    else
2069        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: cannot run C++ compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076    fi
2077  fi
2078fi
2079echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6
2081
2082rm -f a.out a.exe conftest$ac_cv_exeext b.out
2083ac_clean_files=$ac_clean_files_save
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2087echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2088echo "$as_me:$LINENO: result: $cross_compiling" >&5
2089echo "${ECHO_T}$cross_compiling" >&6
2090
2091echo "$as_me:$LINENO: checking for suffix of executables" >&5
2092echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2094  (eval $ac_link) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2100# work properly (i.e., refer to `conftest.exe'), while it won't with
2101# `rm'.
2102for ac_file in conftest.exe conftest conftest.*; do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107          export ac_cv_exeext
2108          break;;
2109    * ) break;;
2110  esac
2111done
2112else
2113  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest$ac_cv_exeext
2121echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2122echo "${ECHO_T}$ac_cv_exeext" >&6
2123
2124rm -f conftest.$ac_ext
2125EXEEXT=$ac_cv_exeext
2126ac_exeext=$EXEEXT
2127echo "$as_me:$LINENO: checking for suffix of object files" >&5
2128echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2129if test "${ac_cv_objext+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147rm -f conftest.o conftest.obj
2148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149  (eval $ac_compile) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157       break;;
2158  esac
2159done
2160else
2161  echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2174echo "${ECHO_T}$ac_cv_objext" >&6
2175OBJEXT=$ac_cv_objext
2176ac_objext=$OBJEXT
2177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188
2189int
2190main ()
2191{
2192#ifndef __GNUC__
2193       choke me
2194#endif
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209         { ac_try='test -z "$ac_cxx_werror_flag"
2210                         || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216         { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_compiler_gnu=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_compiler_gnu=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2234echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2235GXX=`test $ac_compiler_gnu = yes && echo yes`
2236ac_test_CXXFLAGS=${CXXFLAGS+set}
2237ac_save_CXXFLAGS=$CXXFLAGS
2238CXXFLAGS="-g"
2239echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2240echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2241if test "${ac_cv_prog_cxx_g+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  ac_cv_prog_cxx_g=yes
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286ac_cv_prog_cxx_g=no
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2292if test "$ac_test_CXXFLAGS" = set; then
2293  CXXFLAGS=$ac_save_CXXFLAGS
2294elif test $ac_cv_prog_cxx_g = yes; then
2295  if test "$GXX" = yes; then
2296    CXXFLAGS="-g -O2"
2297  else
2298    CXXFLAGS="-g"
2299  fi
2300else
2301  if test "$GXX" = yes; then
2302    CXXFLAGS="-O2"
2303  else
2304    CXXFLAGS=
2305  fi
2306fi
2307for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  :
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358continue
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367$ac_declaration
2368int
2369main ()
2370{
2371exit (42);
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_cxx_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418DEPDIR="${am__leading_dot}deps"
2419
2420          ac_config_commands="$ac_config_commands depfiles"
2421
2422
2423am_make=${MAKE-make}
2424cat > confinc << 'END'
2425am__doit:
2426        @echo done
2427.PHONY: am__doit
2428END
2429# If we don't find an include directive, just comment out the code.
2430echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2431echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2432am__include="#"
2433am__quote=
2434_am_result=none
2435# First try GNU make style include.
2436echo "include confinc" > confmf
2437# We grep out `Entering directory' and `Leaving directory'
2438# messages which can occur if `w' ends up in MAKEFLAGS.
2439# In particular we don't look at `^make:' because GNU make might
2440# be invoked under some other name (usually "gmake"), in which
2441# case it prints its new name instead of `make'.
2442if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2443   am__include=include
2444   am__quote=
2445   _am_result=GNU
2446fi
2447# Now try BSD make style include.
2448if test "$am__include" = "#"; then
2449   echo '.include "confinc"' > confmf
2450   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2451      am__include=.include
2452      am__quote="\""
2453      _am_result=BSD
2454   fi
2455fi
2456
2457
2458echo "$as_me:$LINENO: result: $_am_result" >&5
2459echo "${ECHO_T}$_am_result" >&6
2460rm -f confinc confmf
2461
2462# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2463if test "${enable_dependency_tracking+set}" = set; then
2464  enableval="$enable_dependency_tracking"
2465
2466fi;
2467if test "x$enable_dependency_tracking" != xno; then
2468  am_depcomp="$ac_aux_dir/depcomp"
2469  AMDEPBACKSLASH='\'
2470fi
2471
2472
2473if test "x$enable_dependency_tracking" != xno; then
2474  AMDEP_TRUE=
2475  AMDEP_FALSE='#'
2476else
2477  AMDEP_TRUE='#'
2478  AMDEP_FALSE=
2479fi
2480
2481
2482
2483
2484depcc="$CXX"  am_compiler_list=
2485
2486echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2488if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2492  # We make a subdir and do the tests there.  Otherwise we can end up
2493  # making bogus files that we don't know about and never remove.  For
2494  # instance it was reported that on HP-UX the gcc test will end up
2495  # making a dummy file named `D' -- because `-MD' means `put the output
2496  # in D'.
2497  mkdir conftest.dir
2498  # Copy depcomp to subdir because otherwise we won't find it if we're
2499  # using a relative directory.
2500  cp "$am_depcomp" conftest.dir
2501  cd conftest.dir
2502  # We will build objects and dependencies in a subdirectory because
2503  # it helps to detect inapplicable dependency modes.  For instance
2504  # both Tru64's cc and ICC support -MD to output dependencies as a
2505  # side effect of compilation, but ICC will put the dependencies in
2506  # the current directory while Tru64 will put them in the object
2507  # directory.
2508  mkdir sub
2509
2510  am_cv_CXX_dependencies_compiler_type=none
2511  if test "$am_compiler_list" = ""; then
2512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2513  fi
2514  for depmode in $am_compiler_list; do
2515    # Setup a source with many dependencies, because some compilers
2516    # like to wrap large dependency lists on column 80 (with \), and
2517    # we should not choose a depcomp mode which is confused by this.
2518    #
2519    # We need to recreate these files for each test, as the compiler may
2520    # overwrite some of them when testing with obscure command lines.
2521    # This happens at least with the AIX C compiler.
2522    : > sub/conftest.c
2523    for i in 1 2 3 4 5 6; do
2524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2526      # Solaris 8's {/usr,}/bin/sh.
2527      touch sub/conftst$i.h
2528    done
2529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2530
2531    case $depmode in
2532    nosideeffect)
2533      # after this tag, mechanisms are not by side-effect, so they'll
2534      # only be used when explicitly requested
2535      if test "x$enable_dependency_tracking" = xyes; then
2536        continue
2537      else
2538        break
2539      fi
2540      ;;
2541    none) break ;;
2542    esac
2543    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2544    # mode.  It turns out that the SunPro C++ compiler does not properly
2545    # handle `-M -o', and we need to detect this.
2546    if depmode=$depmode \
2547       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2549       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2550         >/dev/null 2>conftest.err &&
2551       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2552       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2553       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2554      # icc doesn't choke on unknown options, it will just issue warnings
2555      # or remarks (even with -Werror).  So we grep stderr for any message
2556      # that says an option was ignored or not supported.
2557      # When given -MP, icc 7.0 and 7.1 complain thusly:
2558      #   icc: Command line warning: ignoring option '-M'; no argument required
2559      # The diagnosis changed in icc 8.0:
2560      #   icc: Command line remark: option '-MP' not supported
2561      if (grep 'ignoring option' conftest.err ||
2562          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2563        am_cv_CXX_dependencies_compiler_type=$depmode
2564        break
2565      fi
2566    fi
2567  done
2568
2569  cd ..
2570  rm -rf conftest.dir
2571else
2572  am_cv_CXX_dependencies_compiler_type=none
2573fi
2574
2575fi
2576echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2577echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2579
2580
2581
2582if
2583  test "x$enable_dependency_tracking" != xno \
2584  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2585  am__fastdepCXX_TRUE=
2586  am__fastdepCXX_FALSE='#'
2587else
2588  am__fastdepCXX_TRUE='#'
2589  am__fastdepCXX_FALSE=
2590fi
2591
2592
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_RANLIB+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$RANLIB"; then
2602  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620RANLIB=$ac_cv_prog_RANLIB
2621if test -n "$RANLIB"; then
2622  echo "$as_me:$LINENO: result: $RANLIB" >&5
2623echo "${ECHO_T}$RANLIB" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_RANLIB"; then
2631  ac_ct_RANLIB=$RANLIB
2632  # Extract the first word of "ranlib", so it can be a program name with args.
2633set dummy ranlib; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_RANLIB"; then
2640  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_RANLIB="ranlib"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2657fi
2658fi
2659ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2660if test -n "$ac_ct_RANLIB"; then
2661  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2662echo "${ECHO_T}$ac_ct_RANLIB" >&6
2663else
2664  echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666fi
2667
2668  RANLIB=$ac_ct_RANLIB
2669else
2670  RANLIB="$ac_cv_prog_RANLIB"
2671fi
2672
2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
2709else
2710  echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746echo "${ECHO_T}$ac_ct_CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752  CC=$ac_ct_CC
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757if test -z "$CC"; then
2758  if test -n "$ac_tool_prefix"; then
2759  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760set dummy ${ac_tool_prefix}cc; ac_word=$2
2761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776    ac_cv_prog_CC="${ac_tool_prefix}cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  echo "$as_me:$LINENO: result: $CC" >&5
2788echo "${ECHO_T}$CC" >&6
2789else
2790  echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792fi
2793
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796  ac_ct_CC=$CC
2797  # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_ac_ct_CC="cc"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2826echo "${ECHO_T}$ac_ct_CC" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832  CC=$ac_ct_CC
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837fi
2838if test -z "$CC"; then
2839  # Extract the first word of "cc", so it can be a program name with args.
2840set dummy cc; ac_word=$2
2841echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843if test "${ac_cv_prog_CC+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849  ac_prog_rejected=no
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858       ac_prog_rejected=yes
2859       continue
2860     fi
2861    ac_cv_prog_CC="cc"
2862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  echo "$as_me:$LINENO: result: $CC" >&5
2885echo "${ECHO_T}$CC" >&6
2886else
2887  echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$CC"; then
2893  if test -n "$ac_tool_prefix"; then
2894  for ac_prog in cl
2895  do
2896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900if test "${ac_cv_prog_CC+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
2924  echo "$as_me:$LINENO: result: $CC" >&5
2925echo "${ECHO_T}$CC" >&6
2926else
2927  echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929fi
2930
2931    test -n "$CC" && break
2932  done
2933fi
2934if test -z "$CC"; then
2935  ac_ct_CC=$CC
2936  for ac_prog in cl
2937do
2938  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939set dummy $ac_prog; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$ac_ct_CC"; then
2946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_CC="$ac_prog"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969  echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973  test -n "$ac_ct_CC" && break
2974done
2975
2976  CC=$ac_ct_CC
2977fi
2978
2979fi
2980
2981
2982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&5
2984echo "$as_me: error: no acceptable C compiler found in \$PATH
2985See \`config.log' for more details." >&2;}
2986   { (exit 1); exit 1; }; }
2987
2988# Provide some information about the compiler.
2989echo "$as_me:$LINENO:" \
2990     "checking for C compiler version" >&5
2991ac_compiler=`set X $ac_compile; echo $2`
2992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2993  (eval $ac_compiler --version </dev/null >&5) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }
2997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2998  (eval $ac_compiler -v </dev/null >&5) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }
3002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3003  (eval $ac_compiler -V </dev/null >&5) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }
3007
3008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest.$ac_objext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_compiler_gnu=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058ac_compiler_gnu=no
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
3069CFLAGS="-g"
3070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3072if test "${ac_cv_prog_cc_g+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092  (eval $ac_compile) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  ac_cv_prog_cc_g=yes
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_cv_prog_cc_g=no
3118fi
3119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3123if test "$ac_test_CFLAGS" = set; then
3124  CFLAGS=$ac_save_CFLAGS
3125elif test $ac_cv_prog_cc_g = yes; then
3126  if test "$GCC" = yes; then
3127    CFLAGS="-g -O2"
3128  else
3129    CFLAGS="-g"
3130  fi
3131else
3132  if test "$GCC" = yes; then
3133    CFLAGS="-O2"
3134  else
3135    CFLAGS=
3136  fi
3137fi
3138echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3139echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3140if test "${ac_cv_prog_cc_stdc+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_cv_prog_cc_stdc=no
3144ac_save_CC=$CC
3145cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151#include <stdarg.h>
3152#include <stdio.h>
3153#include <sys/types.h>
3154#include <sys/stat.h>
3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3156struct buf { int x; };
3157FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158static char *e (p, i)
3159     char **p;
3160     int i;
3161{
3162  return p[i];
3163}
3164static char *f (char * (*g) (char **, int), char **p, ...)
3165{
3166  char *s;
3167  va_list v;
3168  va_start (v,p);
3169  s = g (p, va_arg (v,int));
3170  va_end (v);
3171  return s;
3172}
3173
3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3175   function prototypes and stuff, but not '\xHH' hex character constants.
3176   These don't provoke an error unfortunately, instead are silently treated
3177   as 'x'.  The following induces an error, until -std1 is added to get
3178   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3179   array size at least.  It's necessary to write '\x00'==0 to get something
3180   that's true only with -std1.  */
3181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182
3183int test (int i, double x);
3184struct s1 {int (*f) (int a);};
3185struct s2 {int (*f) (double a);};
3186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187int argc;
3188char **argv;
3189int
3190main ()
3191{
3192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197# Don't try gcc -ansi; that turns off useful extensions and
3198# breaks some systems' header files.
3199# AIX                   -qlanglvl=ansi
3200# Ultrix and OSF/1      -std1
3201# HP-UX 10.20 and later -Ae
3202# HP-UX older versions  -Aa -D_HPUX_SOURCE
3203# SVR4                  -Xc -D__EXTENSIONS__
3204for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205do
3206  CC="$ac_save_CC $ac_arg"
3207  rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209  (eval $ac_compile) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest.$ac_objext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  ac_cv_prog_cc_stdc=$ac_arg
3230break
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235fi
3236rm -f conftest.err conftest.$ac_objext
3237done
3238rm -f conftest.$ac_ext conftest.$ac_objext
3239CC=$ac_save_CC
3240
3241fi
3242
3243case "x$ac_cv_prog_cc_stdc" in
3244  x|xno)
3245    echo "$as_me:$LINENO: result: none needed" >&5
3246echo "${ECHO_T}none needed" >&6 ;;
3247  *)
3248    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3250    CC="$CC $ac_cv_prog_cc_stdc" ;;
3251esac
3252
3253# Some people use a C++ compiler to compile C.  Since we use `exit',
3254# in C++ we need to declare it.  In case someone uses the same compiler
3255# for both compiling C and C++ we need to have the C++ compiler decide
3256# the declaration of exit, since it's the most demanding environment.
3257cat >conftest.$ac_ext <<_ACEOF
3258#ifndef __cplusplus
3259  choke me
3260#endif
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264  (eval $ac_compile) 2>conftest.er1
3265  ac_status=$?
3266  grep -v '^ *+' conftest.er1 >conftest.err
3267  rm -f conftest.er1
3268  cat conftest.err >&5
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); } &&
3271         { ac_try='test -z "$ac_c_werror_flag"
3272                         || test ! -s conftest.err'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; } &&
3278         { ac_try='test -s conftest.$ac_objext'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; }; then
3284  for ac_declaration in \
3285   '' \
3286   'extern "C" void std::exit (int) throw (); using std::exit;' \
3287   'extern "C" void std::exit (int); using std::exit;' \
3288   'extern "C" void exit (int) throw ();' \
3289   'extern "C" void exit (int);' \
3290   'void exit (int);'
3291do
3292  cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298$ac_declaration
3299#include <stdlib.h>
3300int
3301main ()
3302{
3303exit (42);
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310  (eval $ac_compile) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } &&
3317         { ac_try='test -z "$ac_c_werror_flag"
3318                         || test ! -s conftest.err'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324         { ac_try='test -s conftest.$ac_objext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  :
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335continue
3336fi
3337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344$ac_declaration
3345int
3346main ()
3347{
3348exit (42);
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355  (eval $ac_compile) 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } &&
3362         { ac_try='test -z "$ac_c_werror_flag"
3363                         || test ! -s conftest.err'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; } &&
3369         { ac_try='test -s conftest.$ac_objext'
3370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371  (eval $ac_try) 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }; }; then
3375  break
3376else
3377  echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380fi
3381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382done
3383rm -f conftest*
3384if test -n "$ac_declaration"; then
3385  echo '#ifdef __cplusplus' >>confdefs.h
3386  echo $ac_declaration      >>confdefs.h
3387  echo '#endif'             >>confdefs.h
3388fi
3389
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402depcc="$CC"   am_compiler_list=
3403
3404echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410  # We make a subdir and do the tests there.  Otherwise we can end up
3411  # making bogus files that we don't know about and never remove.  For
3412  # instance it was reported that on HP-UX the gcc test will end up
3413  # making a dummy file named `D' -- because `-MD' means `put the output
3414  # in D'.
3415  mkdir conftest.dir
3416  # Copy depcomp to subdir because otherwise we won't find it if we're
3417  # using a relative directory.
3418  cp "$am_depcomp" conftest.dir
3419  cd conftest.dir
3420  # We will build objects and dependencies in a subdirectory because
3421  # it helps to detect inapplicable dependency modes.  For instance
3422  # both Tru64's cc and ICC support -MD to output dependencies as a
3423  # side effect of compilation, but ICC will put the dependencies in
3424  # the current directory while Tru64 will put them in the object
3425  # directory.
3426  mkdir sub
3427
3428  am_cv_CC_dependencies_compiler_type=none
3429  if test "$am_compiler_list" = ""; then
3430     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431  fi
3432  for depmode in $am_compiler_list; do
3433    # Setup a source with many dependencies, because some compilers
3434    # like to wrap large dependency lists on column 80 (with \), and
3435    # we should not choose a depcomp mode which is confused by this.
3436    #
3437    # We need to recreate these files for each test, as the compiler may
3438    # overwrite some of them when testing with obscure command lines.
3439    # This happens at least with the AIX C compiler.
3440    : > sub/conftest.c
3441    for i in 1 2 3 4 5 6; do
3442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444      # Solaris 8's {/usr,}/bin/sh.
3445      touch sub/conftst$i.h
3446    done
3447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449    case $depmode in
3450    nosideeffect)
3451      # after this tag, mechanisms are not by side-effect, so they'll
3452      # only be used when explicitly requested
3453      if test "x$enable_dependency_tracking" = xyes; then
3454        continue
3455      else
3456        break
3457      fi
3458      ;;
3459    none) break ;;
3460    esac
3461    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462    # mode.  It turns out that the SunPro C++ compiler does not properly
3463    # handle `-M -o', and we need to detect this.
3464    if depmode=$depmode \
3465       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468         >/dev/null 2>conftest.err &&
3469       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472      # icc doesn't choke on unknown options, it will just issue warnings
3473      # or remarks (even with -Werror).  So we grep stderr for any message
3474      # that says an option was ignored or not supported.
3475      # When given -MP, icc 7.0 and 7.1 complain thusly:
3476      #   icc: Command line warning: ignoring option '-M'; no argument required
3477      # The diagnosis changed in icc 8.0:
3478      #   icc: Command line remark: option '-MP' not supported
3479      if (grep 'ignoring option' conftest.err ||
3480          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481        am_cv_CC_dependencies_compiler_type=$depmode
3482        break
3483      fi
3484    fi
3485  done
3486
3487  cd ..
3488  rm -rf conftest.dir
3489else
3490  am_cv_CC_dependencies_compiler_type=none
3491fi
3492
3493fi
3494echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498
3499
3500if
3501  test "x$enable_dependency_tracking" != xno \
3502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503  am__fastdepCC_TRUE=
3504  am__fastdepCC_FALSE='#'
3505else
3506  am__fastdepCC_TRUE='#'
3507  am__fastdepCC_FALSE=
3508fi
3509
3510
3511
3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3518echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3519# On Suns, sometimes $CPP names a directory.
3520if test -n "$CPP" && test -d "$CPP"; then
3521  CPP=
3522fi
3523if test -z "$CPP"; then
3524  if test "${ac_cv_prog_CPP+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527      # Double quotes because CPP needs to be expanded
3528    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529    do
3530      ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550                     Syntax error
3551_ACEOF
3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } >/dev/null; then
3560  if test -s conftest.err; then
3561    ac_cpp_err=$ac_c_preproc_warn_flag
3562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563  else
3564    ac_cpp_err=
3565  fi
3566else
3567  ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575  # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_ext
3579
3580  # OK, works on sane cases.  Now check whether non-existent headers
3581  # can be detected and how.
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <ac_nonexistent.h>
3589_ACEOF
3590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } >/dev/null; then
3598  if test -s conftest.err; then
3599    ac_cpp_err=$ac_c_preproc_warn_flag
3600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601  else
3602    ac_cpp_err=
3603  fi
3604else
3605  ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608  # Broken: success on invalid input.
3609continue
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614  # Passes both tests.
3615ac_preproc_ok=:
3616break
3617fi
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624  break
3625fi
3626
3627    done
3628    ac_cv_prog_CPP=$CPP
3629
3630fi
3631  CPP=$ac_cv_prog_CPP
3632else
3633  ac_cv_prog_CPP=$CPP
3634fi
3635echo "$as_me:$LINENO: result: $CPP" >&5
3636echo "${ECHO_T}$CPP" >&6
3637ac_preproc_ok=false
3638for ac_c_preproc_warn_flag in '' yes
3639do
3640  # Use a header file that comes with gcc, so configuring glibc
3641  # with a fresh cross-compiler works.
3642  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643  # <limits.h> exists even on freestanding compilers.
3644  # On the NeXT, cc -E runs the code through the compiler's parser,
3645  # not just through cpp. "Syntax error" is here to catch this case.
3646  cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#ifdef __STDC__
3653# include <limits.h>
3654#else
3655# include <assert.h>
3656#endif
3657                     Syntax error
3658_ACEOF
3659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } >/dev/null; then
3667  if test -s conftest.err; then
3668    ac_cpp_err=$ac_c_preproc_warn_flag
3669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670  else
3671    ac_cpp_err=
3672  fi
3673else
3674  ac_cpp_err=yes
3675fi
3676if test -z "$ac_cpp_err"; then
3677  :
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682  # Broken: fails on valid input.
3683continue
3684fi
3685rm -f conftest.err conftest.$ac_ext
3686
3687  # OK, works on sane cases.  Now check whether non-existent headers
3688  # can be detected and how.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <ac_nonexistent.h>
3696_ACEOF
3697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } >/dev/null; then
3705  if test -s conftest.err; then
3706    ac_cpp_err=$ac_c_preproc_warn_flag
3707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708  else
3709    ac_cpp_err=
3710  fi
3711else
3712  ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
3715  # Broken: success on invalid input.
3716continue
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721  # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731  :
3732else
3733  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737   { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747echo "$as_me:$LINENO: checking for egrep" >&5
3748echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3749if test "${ac_cv_prog_egrep+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3753    then ac_cv_prog_egrep='grep -E'
3754    else ac_cv_prog_egrep='egrep'
3755    fi
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3758echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3759 EGREP=$ac_cv_prog_egrep
3760
3761
3762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3764if test "${ac_cv_header_stdc+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773#include <stdlib.h>
3774#include <stdarg.h>
3775#include <string.h>
3776#include <float.h>
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_c_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest.$ac_objext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  ac_cv_header_stdc=yes
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_cv_header_stdc=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816
3817if test $ac_cv_header_stdc = yes; then
3818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <string.h>
3826
3827_ACEOF
3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829  $EGREP "memchr" >/dev/null 2>&1; then
3830  :
3831else
3832  ac_cv_header_stdc=no
3833fi
3834rm -f conftest*
3835
3836fi
3837
3838if test $ac_cv_header_stdc = yes; then
3839  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <stdlib.h>
3847
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850  $EGREP "free" >/dev/null 2>&1; then
3851  :
3852else
3853  ac_cv_header_stdc=no
3854fi
3855rm -f conftest*
3856
3857fi
3858
3859if test $ac_cv_header_stdc = yes; then
3860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3861  if test "$cross_compiling" = yes; then
3862  :
3863else
3864  cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h.  */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h.  */
3870#include <ctype.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876                   (('a' <= (c) && (c) <= 'i') \
3877                     || ('j' <= (c) && (c) <= 'r') \
3878                     || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886  int i;
3887  for (i = 0; i < 256; i++)
3888    if (XOR (islower (i), ISLOWER (i))
3889        || toupper (i) != TOUPPER (i))
3890      exit(2);
3891  exit (0);
3892}
3893_ACEOF
3894rm -f conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; }; then
3905  :
3906else
3907  echo "$as_me: program exited with status $ac_status" >&5
3908echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911( exit $ac_status )
3912ac_cv_header_stdc=no
3913fi
3914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915fi
3916fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919echo "${ECHO_T}$ac_cv_header_stdc" >&6
3920if test $ac_cv_header_stdc = yes; then
3921
3922cat >>confdefs.h <<\_ACEOF
3923#define STDC_HEADERS 1
3924_ACEOF
3925
3926fi
3927
3928
3929## THIS IS OUR DEFAULT-DATA-DIRECTORY
3930
3931##################################
3932## CHECKING  OPTIONAL ARGUMENTS ##
3933##################################
3934#----------------#
3935# Data-Directory #
3936#----------------#
3937DATA_DIR=$datadir
3938echo \$\{prefix\}
3939if test $DATA_DIR = \$\{prefix\}/share ; then
3940        echo "not given"
3941        DATA_DIR=/usr/share
3942else
3943        echo "given: $DATA_DIR"
3944fi
3945
3946cat >>confdefs.h <<_ACEOF
3947#define DATADIR "$DATA_DIR"
3948_ACEOF
3949
3950
3951#-----------------#
3952# shared-lib-path #
3953#-----------------#
3954SHARED_LIB_PATH=no
3955echo "$as_me:$LINENO: checking shared lib path" >&5
3956echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3957
3958# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3959if test "${with_shared_lib_path+set}" = set; then
3960  withval="$with_shared_lib_path"
3961  SHARED_LIB_PATH=$withval
3962fi;
3963if test x$SHARED_LIB_PATH != xno; then
3964        echo "set to $SHARED_LIB_PATH"
3965else
3966        echo "no"
3967fi
3968
3969
3970#-----------------#
3971# DEBUG-statement #
3972#-----------------#
3973DEBUG=no
3974echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3975echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3976# Check whether --enable-debug or --disable-debug was given.
3977if test "${enable_debug+set}" = set; then
3978  enableval="$enable_debug"
3979  DEBUG=$enableval
3980fi;
3981
3982if test x$DEBUG = xno; then
3983        echo "no"
3984        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3985        DEBUG=4
3986elif test x$DEBUG = xyes; then
3987        echo "yes"
3988        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3989        DEBUG=4
3990else
3991        echo "yes: setting debuglevel to to $DEBUG"
3992fi
3993
3994cat >>confdefs.h <<_ACEOF
3995#define DEBUG $DEBUG
3996_ACEOF
3997
3998
3999
4000#---------------#
4001# Modular Debug #
4002#---------------#
4003MODULAR_DEBUG=yes
4004echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4005echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4006# Check whether --enable-modular-debug or --disable-modular-debug was given.
4007if test "${enable_modular_debug+set}" = set; then
4008  enableval="$enable_modular_debug"
4009  MODULAR_DEBUG=$enableval
4010fi;
4011
4012if test x$MODULAR_DEBUG = xno; then
4013        echo "no"
4014elif test x$MODULAR_DEBUG = xyes; then
4015        echo "yes"
4016
4017cat >>confdefs.h <<_ACEOF
4018#define MODULAR_DEBUG 1
4019_ACEOF
4020
4021fi
4022
4023#--------------#
4024# GTK-disabled #
4025#--------------#
4026echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4027echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4028# Check whether --enable-gtk or --disable-gtk was given.
4029if test "${enable_gtk+set}" = set; then
4030  enableval="$enable_gtk"
4031  def_gtk=no
4032else
4033  def_gtk=yes
4034fi;
4035if test x$def_gtk = xyes; then
4036  echo "yes"
4037fi
4038if test x$def_gtk = xno; then
4039  echo "no"
4040fi
4041
4042#------------------#
4043# libCurl-disabled #
4044#------------------#
4045echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4046echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4047# Check whether --enable-curl or --disable-curl was given.
4048if test "${enable_curl+set}" = set; then
4049  enableval="$enable_curl"
4050  def_curl=no
4051else
4052  def_curl=yes
4053fi;
4054if test x$def_curl = xyes; then
4055  echo "yes"
4056fi
4057if test x$def_curl = xno; then
4058  echo "no"
4059fi
4060
4061#-------------------#
4062# SubProject-enable #
4063#-------------------#
4064def_sub_projects=no
4065echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4066echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4067
4068# Check whether --with-sub-projects or --without-sub-projects was given.
4069if test "${with_sub_projects+set}" = set; then
4070  withval="$with_sub_projects"
4071  def_sub_projects=yes
4072fi;
4073if test x$def_sub_projects = xyes; then
4074  echo "yes"
4075fi
4076if test x$def_sub_projects = xno; then
4077  echo "no"
4078fi
4079
4080
4081if test x$def_sub_projects = xyes; then
4082  SUB_PROJECTS_TRUE=
4083  SUB_PROJECTS_FALSE='#'
4084else
4085  SUB_PROJECTS_TRUE='#'
4086  SUB_PROJECTS_FALSE=
4087fi
4088
4089
4090#-------------------#
4091# Profiling Enabled #
4092#-------------------#
4093def_profiling=no
4094echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4095echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4096# Check whether --enable-profile or --disable-profile was given.
4097if test "${enable_profile+set}" = set; then
4098  enableval="$enable_profile"
4099  def_profiling=yes
4100fi;
4101if test x$def_profiling = xyes; then
4102  echo "yes"
4103  CXXFLAGS="$CXXFLAGS -pg"
4104fi
4105if test x$def_profiling = xno; then
4106  echo "no"
4107fi
4108
4109#----------------#
4110# efence Enabled #
4111#----------------#
4112def_efence=no
4113echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4114echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4115# Check whether --enable-efence or --disable-efence was given.
4116if test "${enable_efence+set}" = set; then
4117  enableval="$enable_efence"
4118  def_efence=yes
4119fi;
4120if test x$def_efence = xyes; then
4121  echo "yes"
4122fi
4123if test x$def_efence = xno; then
4124  echo "no"
4125fi
4126
4127#----------------------#
4128# Documentation-enable #
4129#----------------------#
4130def_documentation=no
4131echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4132echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4133# Check whether --enable-documentation or --disable-documentation was given.
4134if test "${enable_documentation+set}" = set; then
4135  enableval="$enable_documentation"
4136  def_documentation=yes
4137fi;
4138if test x$def_documentation = xyes; then
4139  echo "yes"
4140fi
4141if test x$def_documentation = xno; then
4142  echo "no"
4143fi
4144
4145
4146if test x$def_documentation = xyes; then
4147  DOCUMENTATION_TRUE=
4148  DOCUMENTATION_FALSE='#'
4149else
4150  DOCUMENTATION_TRUE='#'
4151  DOCUMENTATION_FALSE=
4152fi
4153
4154
4155#######################
4156## PROGRAMM CHECKING ##
4157## 3. party Programs ##
4158#######################
4159
4160#----------------------#
4161# checking for Doxygen #
4162#----------------------#
4163# Extract the first word of "doxygen", so it can be a program name with args.
4164set dummy doxygen; ac_word=$2
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167if test "${ac_cv_path_DOXYGEN+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  case $DOXYGEN in
4171  [\\/]* | ?:[\\/]*)
4172  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4173  ;;
4174  *)
4175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180  for ac_exec_ext in '' $ac_executable_extensions; do
4181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184    break 2
4185  fi
4186done
4187done
4188
4189  ;;
4190esac
4191fi
4192DOXYGEN=$ac_cv_path_DOXYGEN
4193
4194if test -n "$DOXYGEN"; then
4195  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4196echo "${ECHO_T}$DOXYGEN" >&6
4197else
4198  echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200fi
4201
4202
4203
4204if test $DOXYGEN; then
4205  DOXYGEN_TRUE=
4206  DOXYGEN_FALSE='#'
4207else
4208  DOXYGEN_TRUE='#'
4209  DOXYGEN_FALSE=
4210fi
4211
4212
4213#--------------------#
4214# checking for gprof #
4215#--------------------#
4216# Extract the first word of "gprof", so it can be a program name with args.
4217set dummy gprof; ac_word=$2
4218echo "$as_me:$LINENO: checking for $ac_word" >&5
4219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220if test "${ac_cv_path_GPROF+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  case $GPROF in
4224  [\\/]* | ?:[\\/]*)
4225  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4226  ;;
4227  *)
4228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233  for ac_exec_ext in '' $ac_executable_extensions; do
4234  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239done
4240done
4241
4242  ;;
4243esac
4244fi
4245GPROF=$ac_cv_path_GPROF
4246
4247if test -n "$GPROF"; then
4248  echo "$as_me:$LINENO: result: $GPROF" >&5
4249echo "${ECHO_T}$GPROF" >&6
4250else
4251  echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254
4255
4256#-------------------------#
4257# checking for pkg-config #
4258#-------------------------#
4259if test x$def_gtk = xyes; then
4260 # Extract the first word of "pkg-config", so it can be a program name with args.
4261set dummy pkg-config; ac_word=$2
4262echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  case $PKG_CONFIG in
4268  [\\/]* | ?:[\\/]*)
4269  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4270  ;;
4271  *)
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277  for ac_exec_ext in '' $ac_executable_extensions; do
4278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284done
4285
4286  ;;
4287esac
4288fi
4289PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4290
4291if test -n "$PKG_CONFIG"; then
4292  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4293echo "${ECHO_T}$PKG_CONFIG" >&6
4294else
4295  echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
4299fi
4300
4301
4302#########################
4303## CHECKING FOR SYSTEM ##
4304#########################
4305## here the system is checked, and openGL is included
4306## also checking for SDL on differen Systems
4307
4308echo "$as_me:$LINENO: checking for System" >&5
4309echo $ECHO_N "checking for System... $ECHO_C" >&6
4310## checking for openGL-environment and other sys-specific parameters
4311case "$target" in
4312
4313###########
4314#---------#
4315# WINDOWS #
4316#---------#
4317###########
4318  *-*-mingw32*)
4319echo "mingw-WINDOWS detected"
4320
4321CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4322
4323    mingw="yes"
4324    MSBITFIELDS="-mms-bitfields"
4325    MWINDOWS="-mwindows"
4326
4327#--------#
4328# MIN-GW #
4329#--------#
4330# checking for mingw32
4331    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4332echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4333if test "${ac_cv_lib_mingw32_main+set}" = set; then
4334  echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336  ac_check_lib_save_LIBS=$LIBS
4337LIBS="-lmingw32  $LIBS"
4338cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h.  */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h.  */
4344
4345
4346int
4347main ()
4348{
4349main ();
4350  ;
4351  return 0;
4352}
4353_ACEOF
4354rm -f conftest.$ac_objext conftest$ac_exeext
4355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4356  (eval $ac_link) 2>conftest.er1
4357  ac_status=$?
4358  grep -v '^ *+' conftest.er1 >conftest.err
4359  rm -f conftest.er1
4360  cat conftest.err >&5
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); } &&
4363         { ac_try='test -z "$ac_c_werror_flag"
4364                         || test ! -s conftest.err'
4365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366  (eval $ac_try) 2>&5
4367  ac_status=$?
4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369  (exit $ac_status); }; } &&
4370         { ac_try='test -s conftest$ac_exeext'
4371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372  (eval $ac_try) 2>&5
4373  ac_status=$?
4374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375  (exit $ac_status); }; }; then
4376  ac_cv_lib_mingw32_main=yes
4377else
4378  echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381ac_cv_lib_mingw32_main=no
4382fi
4383rm -f conftest.err conftest.$ac_objext \
4384      conftest$ac_exeext conftest.$ac_ext
4385LIBS=$ac_check_lib_save_LIBS
4386fi
4387echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4388echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4389if test $ac_cv_lib_mingw32_main = yes; then
4390  FOUND_mingw32=yes
4391fi
4392
4393    if test x$FOUND_mingw32 = xyes; then
4394        LIBS="$LIBS -lmingw32"
4395    fi
4396
4397#---------------#
4398# open-GL (win) #
4399#---------------#
4400# checking gl header
4401   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4412                  inttypes.h stdint.h unistd.h
4413do
4414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4415echo "$as_me:$LINENO: checking for $ac_header" >&5
4416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418  echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420  cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426$ac_includes_default
4427
4428#include <$ac_header>
4429_ACEOF
4430rm -f conftest.$ac_objext
4431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432  (eval $ac_compile) 2>conftest.er1
4433  ac_status=$?
4434  grep -v '^ *+' conftest.er1 >conftest.err
4435  rm -f conftest.er1
4436  cat conftest.err >&5
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); } &&
4439         { ac_try='test -z "$ac_c_werror_flag"
4440                         || test ! -s conftest.err'
4441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442  (eval $ac_try) 2>&5
4443  ac_status=$?
4444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); }; } &&
4446         { ac_try='test -s conftest.$ac_objext'
4447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448  (eval $ac_try) 2>&5
4449  ac_status=$?
4450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); }; }; then
4452  eval "$as_ac_Header=yes"
4453else
4454  echo "$as_me: failed program was:" >&5
4455sed 's/^/| /' conftest.$ac_ext >&5
4456
4457eval "$as_ac_Header=no"
4458fi
4459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4460fi
4461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463if test `eval echo '${'$as_ac_Header'}'` = yes; then
4464  cat >>confdefs.h <<_ACEOF
4465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4466_ACEOF
4467
4468fi
4469
4470done
4471
4472
4473
4474for ac_header in GL/gl.h
4475do
4476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4477if eval "test \"\${$as_ac_Header+set}\" = set"; then
4478  echo "$as_me:$LINENO: checking for $ac_header" >&5
4479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4480if eval "test \"\${$as_ac_Header+set}\" = set"; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482fi
4483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485else
4486  # Is the header compilable?
4487echo "$as_me:$LINENO: checking $ac_header usability" >&5
4488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4489cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h.  */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h.  */
4495$ac_includes_default
4496#include <$ac_header>
4497_ACEOF
4498rm -f conftest.$ac_objext
4499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500  (eval $ac_compile) 2>conftest.er1
4501  ac_status=$?
4502  grep -v '^ *+' conftest.er1 >conftest.err
4503  rm -f conftest.er1
4504  cat conftest.err >&5
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); } &&
4507         { ac_try='test -z "$ac_c_werror_flag"
4508                         || test ! -s conftest.err'
4509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510  (eval $ac_try) 2>&5
4511  ac_status=$?
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); }; } &&
4514         { ac_try='test -s conftest.$ac_objext'
4515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516  (eval $ac_try) 2>&5
4517  ac_status=$?
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); }; }; then
4520  ac_header_compiler=yes
4521else
4522  echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525ac_header_compiler=no
4526fi
4527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4529echo "${ECHO_T}$ac_header_compiler" >&6
4530
4531# Is the header present?
4532echo "$as_me:$LINENO: checking $ac_header presence" >&5
4533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4534cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h.  */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h.  */
4540#include <$ac_header>
4541_ACEOF
4542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4543  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4544  ac_status=$?
4545  grep -v '^ *+' conftest.er1 >conftest.err
4546  rm -f conftest.er1
4547  cat conftest.err >&5
4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); } >/dev/null; then
4550  if test -s conftest.err; then
4551    ac_cpp_err=$ac_c_preproc_warn_flag
4552    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4553  else
4554    ac_cpp_err=
4555  fi
4556else
4557  ac_cpp_err=yes
4558fi
4559if test -z "$ac_cpp_err"; then
4560  ac_header_preproc=yes
4561else
4562  echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565  ac_header_preproc=no
4566fi
4567rm -f conftest.err conftest.$ac_ext
4568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4569echo "${ECHO_T}$ac_header_preproc" >&6
4570
4571# So?  What about this header?
4572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4573  yes:no: )
4574    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4576    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4578    ac_header_preproc=yes
4579    ;;
4580  no:yes:* )
4581    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4583    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4584echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4585    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4587    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4588echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4589    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4591    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4593    (
4594      cat <<\_ASBOX
4595## ---------------------------------------------- ##
4596## Report this to orxonox-dev at mail.datacore.ch ##
4597## ---------------------------------------------- ##
4598_ASBOX
4599    ) |
4600      sed "s/^/$as_me: WARNING:     /" >&2
4601    ;;
4602esac
4603echo "$as_me:$LINENO: checking for $ac_header" >&5
4604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4605if eval "test \"\${$as_ac_Header+set}\" = set"; then
4606  echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608  eval "$as_ac_Header=\$ac_header_preproc"
4609fi
4610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4612
4613fi
4614if test `eval echo '${'$as_ac_Header'}'` = yes; then
4615  cat >>confdefs.h <<_ACEOF
4616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4617_ACEOF
4618
4619else
4620  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4621echo "$as_me: error: cannot find opengl headers" >&2;}
4622   { (exit 1); exit 1; }; }
4623fi
4624
4625done
4626
4627#   checking for Windows openGl library
4628    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4629echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4630if test "${ac_cv_lib_opengl32_main+set}" = set; then
4631  echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633  ac_check_lib_save_LIBS=$LIBS
4634LIBS="-lopengl32  $LIBS"
4635cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h.  */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h.  */
4641
4642
4643int
4644main ()
4645{
4646main ();
4647  ;
4648  return 0;
4649}
4650_ACEOF
4651rm -f conftest.$ac_objext conftest$ac_exeext
4652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4653  (eval $ac_link) 2>conftest.er1
4654  ac_status=$?
4655  grep -v '^ *+' conftest.er1 >conftest.err
4656  rm -f conftest.er1
4657  cat conftest.err >&5
4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659  (exit $ac_status); } &&
4660         { ac_try='test -z "$ac_c_werror_flag"
4661                         || test ! -s conftest.err'
4662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663  (eval $ac_try) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; } &&
4667         { ac_try='test -s conftest$ac_exeext'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; }; then
4673  ac_cv_lib_opengl32_main=yes
4674else
4675  echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678ac_cv_lib_opengl32_main=no
4679fi
4680rm -f conftest.err conftest.$ac_objext \
4681      conftest$ac_exeext conftest.$ac_ext
4682LIBS=$ac_check_lib_save_LIBS
4683fi
4684echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4685echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4686if test $ac_cv_lib_opengl32_main = yes; then
4687  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
4688fi
4689
4690    if test x$FOUND_GL != xyes ; then
4691         echo "------------------"
4692         echo "opengl not found."
4693         echo "please install the opengl package which can be found at http://www.opengl.org"
4694         echo "------------------"
4695         exit -1
4696    fi
4697
4698# cheking for GLU-header
4699
4700for ac_header in GL/glu.h
4701do
4702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4703if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704  echo "$as_me:$LINENO: checking for $ac_header" >&5
4705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4706if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707  echo $ECHO_N "(cached) $ECHO_C" >&6
4708fi
4709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4711else
4712  # Is the header compilable?
4713echo "$as_me:$LINENO: checking $ac_header usability" >&5
4714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4715cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h.  */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h.  */
4721$ac_includes_default
4722#include <$ac_header>
4723_ACEOF
4724rm -f conftest.$ac_objext
4725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726  (eval $ac_compile) 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } &&
4733         { ac_try='test -z "$ac_c_werror_flag"
4734                         || test ! -s conftest.err'
4735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736  (eval $ac_try) 2>&5
4737  ac_status=$?
4738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739  (exit $ac_status); }; } &&
4740         { ac_try='test -s conftest.$ac_objext'
4741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742  (eval $ac_try) 2>&5
4743  ac_status=$?
4744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745  (exit $ac_status); }; }; then
4746  ac_header_compiler=yes
4747else
4748  echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751ac_header_compiler=no
4752fi
4753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4755echo "${ECHO_T}$ac_header_compiler" >&6
4756
4757# Is the header present?
4758echo "$as_me:$LINENO: checking $ac_header presence" >&5
4759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4760cat >conftest.$ac_ext <<_ACEOF
4761/* confdefs.h.  */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h.  */
4766#include <$ac_header>
4767_ACEOF
4768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770  ac_status=$?
4771  grep -v '^ *+' conftest.er1 >conftest.err
4772  rm -f conftest.er1
4773  cat conftest.err >&5
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } >/dev/null; then
4776  if test -s conftest.err; then
4777    ac_cpp_err=$ac_c_preproc_warn_flag
4778    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4779  else
4780    ac_cpp_err=
4781  fi
4782else
4783  ac_cpp_err=yes
4784fi
4785if test -z "$ac_cpp_err"; then
4786  ac_header_preproc=yes
4787else
4788  echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791  ac_header_preproc=no
4792fi
4793rm -f conftest.err conftest.$ac_ext
4794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4795echo "${ECHO_T}$ac_header_preproc" >&6
4796
4797# So?  What about this header?
4798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4799  yes:no: )
4800    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4802    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4804    ac_header_preproc=yes
4805    ;;
4806  no:yes:* )
4807    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4809    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4810echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4811    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4813    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4814echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4815    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4817    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4819    (
4820      cat <<\_ASBOX
4821## ---------------------------------------------- ##
4822## Report this to orxonox-dev at mail.datacore.ch ##
4823## ---------------------------------------------- ##
4824_ASBOX
4825    ) |
4826      sed "s/^/$as_me: WARNING:     /" >&2
4827    ;;
4828esac
4829echo "$as_me:$LINENO: checking for $ac_header" >&5
4830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4831if eval "test \"\${$as_ac_Header+set}\" = set"; then
4832  echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834  eval "$as_ac_Header=\$ac_header_preproc"
4835fi
4836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4838
4839fi
4840if test `eval echo '${'$as_ac_Header'}'` = yes; then
4841  cat >>confdefs.h <<_ACEOF
4842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4843_ACEOF
4844
4845else
4846  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4847echo "$as_me: error: cannot find opengl headers" >&2;}
4848   { (exit 1); exit 1; }; }
4849fi
4850
4851done
4852
4853
4854# checking for libGLU
4855    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4856echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4857if test "${ac_cv_lib_glu32_main+set}" = set; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  ac_check_lib_save_LIBS=$LIBS
4861LIBS="-lglu32  $LIBS"
4862cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h.  */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h.  */
4868
4869
4870int
4871main ()
4872{
4873main ();
4874  ;
4875  return 0;
4876}
4877_ACEOF
4878rm -f conftest.$ac_objext conftest$ac_exeext
4879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880  (eval $ac_link) 2>conftest.er1
4881  ac_status=$?
4882  grep -v '^ *+' conftest.er1 >conftest.err
4883  rm -f conftest.er1
4884  cat conftest.err >&5
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); } &&
4887         { ac_try='test -z "$ac_c_werror_flag"
4888                         || test ! -s conftest.err'
4889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890  (eval $ac_try) 2>&5
4891  ac_status=$?
4892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); }; } &&
4894         { ac_try='test -s conftest$ac_exeext'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; }; then
4900  ac_cv_lib_glu32_main=yes
4901else
4902  echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905ac_cv_lib_glu32_main=no
4906fi
4907rm -f conftest.err conftest.$ac_objext \
4908      conftest$ac_exeext conftest.$ac_ext
4909LIBS=$ac_check_lib_save_LIBS
4910fi
4911echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4912echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4913if test $ac_cv_lib_glu32_main = yes; then
4914  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
4915fi
4916
4917    if test x$FOUND_GLU != xyes ; then
4918         echo "------------------"
4919         echo "GLU library not found."
4920         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4921         echo "------------------"
4922         exit -1
4923    fi
4924
4925# checking glew header
4926
4927for ac_header in GL/glew.h
4928do
4929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930if eval "test \"\${$as_ac_Header+set}\" = set"; then
4931  echo "$as_me:$LINENO: checking for $ac_header" >&5
4932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4933if eval "test \"\${$as_ac_Header+set}\" = set"; then
4934  echo $ECHO_N "(cached) $ECHO_C" >&6
4935fi
4936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4938else
4939  # Is the header compilable?
4940echo "$as_me:$LINENO: checking $ac_header usability" >&5
4941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4942cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h.  */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h.  */
4948$ac_includes_default
4949#include <$ac_header>
4950_ACEOF
4951rm -f conftest.$ac_objext
4952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953  (eval $ac_compile) 2>conftest.er1
4954  ac_status=$?
4955  grep -v '^ *+' conftest.er1 >conftest.err
4956  rm -f conftest.er1
4957  cat conftest.err >&5
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); } &&
4960         { ac_try='test -z "$ac_c_werror_flag"
4961                         || test ! -s conftest.err'
4962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963  (eval $ac_try) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; } &&
4967         { ac_try='test -s conftest.$ac_objext'
4968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969  (eval $ac_try) 2>&5
4970  ac_status=$?
4971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972  (exit $ac_status); }; }; then
4973  ac_header_compiler=yes
4974else
4975  echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978ac_header_compiler=no
4979fi
4980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4982echo "${ECHO_T}$ac_header_compiler" >&6
4983
4984# Is the header present?
4985echo "$as_me:$LINENO: checking $ac_header presence" >&5
4986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4987cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993#include <$ac_header>
4994_ACEOF
4995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4996  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997  ac_status=$?
4998  grep -v '^ *+' conftest.er1 >conftest.err
4999  rm -f conftest.er1
5000  cat conftest.err >&5
5001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002  (exit $ac_status); } >/dev/null; then
5003  if test -s conftest.err; then
5004    ac_cpp_err=$ac_c_preproc_warn_flag
5005    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5006  else
5007    ac_cpp_err=
5008  fi
5009else
5010  ac_cpp_err=yes
5011fi
5012if test -z "$ac_cpp_err"; then
5013  ac_header_preproc=yes
5014else
5015  echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018  ac_header_preproc=no
5019fi
5020rm -f conftest.err conftest.$ac_ext
5021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5022echo "${ECHO_T}$ac_header_preproc" >&6
5023
5024# So?  What about this header?
5025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5026  yes:no: )
5027    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5031    ac_header_preproc=yes
5032    ;;
5033  no:yes:* )
5034    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5036    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5037echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5038    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5040    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5041echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5044    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5046    (
5047      cat <<\_ASBOX
5048## ---------------------------------------------- ##
5049## Report this to orxonox-dev at mail.datacore.ch ##
5050## ---------------------------------------------- ##
5051_ASBOX
5052    ) |
5053      sed "s/^/$as_me: WARNING:     /" >&2
5054    ;;
5055esac
5056echo "$as_me:$LINENO: checking for $ac_header" >&5
5057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059  echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061  eval "$as_ac_Header=\$ac_header_preproc"
5062fi
5063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5065
5066fi
5067if test `eval echo '${'$as_ac_Header'}'` = yes; then
5068  cat >>confdefs.h <<_ACEOF
5069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5070_ACEOF
5071
5072else
5073  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5074echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
5075   { (exit 1); exit 1; }; }
5076fi
5077
5078done
5079
5080#   checking for Windows glew library
5081    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5082echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5083if test "${ac_cv_lib_glew32_main+set}" = set; then
5084  echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
5086  ac_check_lib_save_LIBS=$LIBS
5087LIBS="-lglew32  $LIBS"
5088cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h.  */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h.  */
5094
5095
5096int
5097main ()
5098{
5099main ();
5100  ;
5101  return 0;
5102}
5103_ACEOF
5104rm -f conftest.$ac_objext conftest$ac_exeext
5105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106  (eval $ac_link) 2>conftest.er1
5107  ac_status=$?
5108  grep -v '^ *+' conftest.er1 >conftest.err
5109  rm -f conftest.er1
5110  cat conftest.err >&5
5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112  (exit $ac_status); } &&
5113         { ac_try='test -z "$ac_c_werror_flag"
5114                         || test ! -s conftest.err'
5115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116  (eval $ac_try) 2>&5
5117  ac_status=$?
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); }; } &&
5120         { ac_try='test -s conftest$ac_exeext'
5121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122  (eval $ac_try) 2>&5
5123  ac_status=$?
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); }; }; then
5126  ac_cv_lib_glew32_main=yes
5127else
5128  echo "$as_me: failed program was:" >&5
5129sed 's/^/| /' conftest.$ac_ext >&5
5130
5131ac_cv_lib_glew32_main=no
5132fi
5133rm -f conftest.err conftest.$ac_objext \
5134      conftest$ac_exeext conftest.$ac_ext
5135LIBS=$ac_check_lib_save_LIBS
5136fi
5137echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5138echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5139if test $ac_cv_lib_glew32_main = yes; then
5140  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
5141fi
5142
5143    if test x$FOUND_GLEW != xyes ; then
5144         echo "------------------"
5145         echo "opengl extension wrangler not found."
5146         echo "please install the glew package which can be found at http://glew.sourceforge.net"
5147         echo "------------------"
5148         exit -1
5149    fi
5150
5151#--------#
5152# openAL #
5153#--------#
5154# checking for openAL-headers
5155
5156for ac_header in AL/al.h
5157do
5158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5159if eval "test \"\${$as_ac_Header+set}\" = set"; then
5160  echo "$as_me:$LINENO: checking for $ac_header" >&5
5161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5162if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163  echo $ECHO_N "(cached) $ECHO_C" >&6
5164fi
5165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5167else
5168  # Is the header compilable?
5169echo "$as_me:$LINENO: checking $ac_header usability" >&5
5170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h.  */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h.  */
5177$ac_includes_default
5178#include <$ac_header>
5179_ACEOF
5180rm -f conftest.$ac_objext
5181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182  (eval $ac_compile) 2>conftest.er1
5183  ac_status=$?
5184  grep -v '^ *+' conftest.er1 >conftest.err
5185  rm -f conftest.er1
5186  cat conftest.err >&5
5187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); } &&
5189         { ac_try='test -z "$ac_c_werror_flag"
5190                         || test ! -s conftest.err'
5191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192  (eval $ac_try) 2>&5
5193  ac_status=$?
5194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195  (exit $ac_status); }; } &&
5196         { ac_try='test -s conftest.$ac_objext'
5197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198  (eval $ac_try) 2>&5
5199  ac_status=$?
5200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201  (exit $ac_status); }; }; then
5202  ac_header_compiler=yes
5203else
5204  echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207ac_header_compiler=no
5208fi
5209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5210echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5211echo "${ECHO_T}$ac_header_compiler" >&6
5212
5213# Is the header present?
5214echo "$as_me:$LINENO: checking $ac_header presence" >&5
5215echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5216cat >conftest.$ac_ext <<_ACEOF
5217/* confdefs.h.  */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h.  */
5222#include <$ac_header>
5223_ACEOF
5224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5225  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5226  ac_status=$?
5227  grep -v '^ *+' conftest.er1 >conftest.err
5228  rm -f conftest.er1
5229  cat conftest.err >&5
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); } >/dev/null; then
5232  if test -s conftest.err; then
5233    ac_cpp_err=$ac_c_preproc_warn_flag
5234    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5235  else
5236    ac_cpp_err=
5237  fi
5238else
5239  ac_cpp_err=yes
5240fi
5241if test -z "$ac_cpp_err"; then
5242  ac_header_preproc=yes
5243else
5244  echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247  ac_header_preproc=no
5248fi
5249rm -f conftest.err conftest.$ac_ext
5250echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5251echo "${ECHO_T}$ac_header_preproc" >&6
5252
5253# So?  What about this header?
5254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5255  yes:no: )
5256    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5258    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5260    ac_header_preproc=yes
5261    ;;
5262  no:yes:* )
5263    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5265    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5266echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5267    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5269    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5270echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5271    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5273    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5275    (
5276      cat <<\_ASBOX
5277## ---------------------------------------------- ##
5278## Report this to orxonox-dev at mail.datacore.ch ##
5279## ---------------------------------------------- ##
5280_ASBOX
5281    ) |
5282      sed "s/^/$as_me: WARNING:     /" >&2
5283    ;;
5284esac
5285echo "$as_me:$LINENO: checking for $ac_header" >&5
5286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5287if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288  echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290  eval "$as_ac_Header=\$ac_header_preproc"
5291fi
5292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5294
5295fi
5296if test `eval echo '${'$as_ac_Header'}'` = yes; then
5297  cat >>confdefs.h <<_ACEOF
5298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5299_ACEOF
5300
5301else
5302  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5303echo "$as_me: error: cannot find openAL header." >&2;}
5304   { (exit 1); exit 1; }; }
5305fi
5306
5307done
5308
5309# checking for openAL-lib
5310  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5311echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5312if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5313  echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315  ac_check_lib_save_LIBS=$LIBS
5316LIBS="-lOpenAL32  $LIBS"
5317cat >conftest.$ac_ext <<_ACEOF
5318/* confdefs.h.  */
5319_ACEOF
5320cat confdefs.h >>conftest.$ac_ext
5321cat >>conftest.$ac_ext <<_ACEOF
5322/* end confdefs.h.  */
5323
5324
5325int
5326main ()
5327{
5328main ();
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333rm -f conftest.$ac_objext conftest$ac_exeext
5334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5335  (eval $ac_link) 2>conftest.er1
5336  ac_status=$?
5337  grep -v '^ *+' conftest.er1 >conftest.err
5338  rm -f conftest.er1
5339  cat conftest.err >&5
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); } &&
5342         { ac_try='test -z "$ac_c_werror_flag"
5343                         || test ! -s conftest.err'
5344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345  (eval $ac_try) 2>&5
5346  ac_status=$?
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); }; } &&
5349         { ac_try='test -s conftest$ac_exeext'
5350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351  (eval $ac_try) 2>&5
5352  ac_status=$?
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); }; }; then
5355  ac_cv_lib_OpenAL32_main=yes
5356else
5357  echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360ac_cv_lib_OpenAL32_main=no
5361fi
5362rm -f conftest.err conftest.$ac_objext \
5363      conftest$ac_exeext conftest.$ac_ext
5364LIBS=$ac_check_lib_save_LIBS
5365fi
5366echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5367echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5368if test $ac_cv_lib_OpenAL32_main = yes; then
5369  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
5370fi
5371
5372  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5373echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5374if test "${ac_cv_lib_ALut_main+set}" = set; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  ac_check_lib_save_LIBS=$LIBS
5378LIBS="-lALut  $LIBS"
5379cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h.  */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h.  */
5385
5386
5387int
5388main ()
5389{
5390main ();
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397  (eval $ac_link) 2>conftest.er1
5398  ac_status=$?
5399  grep -v '^ *+' conftest.er1 >conftest.err
5400  rm -f conftest.er1
5401  cat conftest.err >&5
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); } &&
5404         { ac_try='test -z "$ac_c_werror_flag"
5405                         || test ! -s conftest.err'
5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407  (eval $ac_try) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; } &&
5411         { ac_try='test -s conftest$ac_exeext'
5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413  (eval $ac_try) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; }; then
5417  ac_cv_lib_ALut_main=yes
5418else
5419  echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422ac_cv_lib_ALut_main=no
5423fi
5424rm -f conftest.err conftest.$ac_objext \
5425      conftest$ac_exeext conftest.$ac_ext
5426LIBS=$ac_check_lib_save_LIBS
5427fi
5428echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5429echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5430if test $ac_cv_lib_ALut_main = yes; then
5431  FOUND_ALUT=yes; LIBS="$LIBS -lALut"
5432fi
5433
5434     if test x$FOUND_OPENAL != xyes ; then
5435        echo "------------------"
5436        echo "openal library not found."
5437        echo "please install the openal library, which can be found at http://www.openal.org"
5438        echo "------------------"
5439        exit -1
5440     fi
5441
5442
5443#-----------#
5444# SDL(win) #
5445#-----------#
5446# checking for SDL-headers
5447
5448for ac_header in SDL/SDL.h
5449do
5450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5451if eval "test \"\${$as_ac_Header+set}\" = set"; then
5452  echo "$as_me:$LINENO: checking for $ac_header" >&5
5453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5454if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456fi
5457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5459else
5460  # Is the header compilable?
5461echo "$as_me:$LINENO: checking $ac_header usability" >&5
5462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5463cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469$ac_includes_default
5470#include <$ac_header>
5471_ACEOF
5472rm -f conftest.$ac_objext
5473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474  (eval $ac_compile) 2>conftest.er1
5475  ac_status=$?
5476  grep -v '^ *+' conftest.er1 >conftest.err
5477  rm -f conftest.er1
5478  cat conftest.err >&5
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } &&
5481         { ac_try='test -z "$ac_c_werror_flag"
5482                         || test ! -s conftest.err'
5483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484  (eval $ac_try) 2>&5
5485  ac_status=$?
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); }; } &&
5488         { ac_try='test -s conftest.$ac_objext'
5489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490  (eval $ac_try) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }; }; then
5494  ac_header_compiler=yes
5495else
5496  echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
5499ac_header_compiler=no
5500fi
5501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5503echo "${ECHO_T}$ac_header_compiler" >&6
5504
5505# Is the header present?
5506echo "$as_me:$LINENO: checking $ac_header presence" >&5
5507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5508cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h.  */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
5513/* end confdefs.h.  */
5514#include <$ac_header>
5515_ACEOF
5516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518  ac_status=$?
5519  grep -v '^ *+' conftest.er1 >conftest.err
5520  rm -f conftest.er1
5521  cat conftest.err >&5
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); } >/dev/null; then
5524  if test -s conftest.err; then
5525    ac_cpp_err=$ac_c_preproc_warn_flag
5526    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527  else
5528    ac_cpp_err=
5529  fi
5530else
5531  ac_cpp_err=yes
5532fi
5533if test -z "$ac_cpp_err"; then
5534  ac_header_preproc=yes
5535else
5536  echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
5538
5539  ac_header_preproc=no
5540fi
5541rm -f conftest.err conftest.$ac_ext
5542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5543echo "${ECHO_T}$ac_header_preproc" >&6
5544
5545# So?  What about this header?
5546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5547  yes:no: )
5548    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5550    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5552    ac_header_preproc=yes
5553    ;;
5554  no:yes:* )
5555    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5557    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5558echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5559    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5561    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5562echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5563    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5565    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5567    (
5568      cat <<\_ASBOX
5569## ---------------------------------------------- ##
5570## Report this to orxonox-dev at mail.datacore.ch ##
5571## ---------------------------------------------- ##
5572_ASBOX
5573    ) |
5574      sed "s/^/$as_me: WARNING:     /" >&2
5575    ;;
5576esac
5577echo "$as_me:$LINENO: checking for $ac_header" >&5
5578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  eval "$as_ac_Header=\$ac_header_preproc"
5583fi
5584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586
5587fi
5588if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589  cat >>confdefs.h <<_ACEOF
5590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591_ACEOF
5592
5593else
5594  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5595echo "$as_me: error: cannot find SDL headers" >&2;}
5596   { (exit 1); exit 1; }; }
5597fi
5598
5599done
5600
5601
5602#checking for libSDL
5603    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5604echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5605if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  ac_check_lib_save_LIBS=$LIBS
5609LIBS="-lsdlmain  $LIBS"
5610cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h.  */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h.  */
5616
5617
5618int
5619main ()
5620{
5621main ();
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext conftest$ac_exeext
5627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5628  (eval $ac_link) 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } &&
5635         { ac_try='test -z "$ac_c_werror_flag"
5636                         || test ! -s conftest.err'
5637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638  (eval $ac_try) 2>&5
5639  ac_status=$?
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); }; } &&
5642         { ac_try='test -s conftest$ac_exeext'
5643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644  (eval $ac_try) 2>&5
5645  ac_status=$?
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); }; }; then
5648  ac_cv_lib_sdlmain_main=yes
5649else
5650  echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653ac_cv_lib_sdlmain_main=no
5654fi
5655rm -f conftest.err conftest.$ac_objext \
5656      conftest$ac_exeext conftest.$ac_ext
5657LIBS=$ac_check_lib_save_LIBS
5658fi
5659echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5660echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5661if test $ac_cv_lib_sdlmain_main = yes; then
5662  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
5663fi
5664
5665    if test x$FOUND_sdlmain != xyes ; then
5666        echo "------------------"
5667        echo "SDL library not found."
5668        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5669        echo "------------------"
5670        exit 1
5671    fi
5672    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5673echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5674if test "${ac_cv_lib_sdl_main+set}" = set; then
5675  echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677  ac_check_lib_save_LIBS=$LIBS
5678LIBS="-lsdl  $LIBS"
5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685
5686
5687int
5688main ()
5689{
5690main ();
5691  ;
5692  return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext conftest$ac_exeext
5696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697  (eval $ac_link) 2>conftest.er1
5698  ac_status=$?
5699  grep -v '^ *+' conftest.er1 >conftest.err
5700  rm -f conftest.er1
5701  cat conftest.err >&5
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); } &&
5704         { ac_try='test -z "$ac_c_werror_flag"
5705                         || test ! -s conftest.err'
5706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707  (eval $ac_try) 2>&5
5708  ac_status=$?
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); }; } &&
5711         { ac_try='test -s conftest$ac_exeext'
5712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713  (eval $ac_try) 2>&5
5714  ac_status=$?
5715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716  (exit $ac_status); }; }; then
5717  ac_cv_lib_sdl_main=yes
5718else
5719  echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722ac_cv_lib_sdl_main=no
5723fi
5724rm -f conftest.err conftest.$ac_objext \
5725      conftest$ac_exeext conftest.$ac_ext
5726LIBS=$ac_check_lib_save_LIBS
5727fi
5728echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5729echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5730if test $ac_cv_lib_sdl_main = yes; then
5731  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
5732fi
5733
5734    if test x$FOUND_SDL != xyes ; then
5735        echo "------------------"
5736        echo "SDL library not found."
5737        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5738        echo "------------------"
5739        exit -1
5740    fi
5741
5742  ;;
5743
5744#########
5745#-------#
5746# LINUX #
5747#-------#
5748#########
5749 *-*-linux*)
5750echo "Linux detected"
5751
5752 Linux="yes"
5753
5754##CPPFLAGS="-I/usr/include $CPPFLAGS"
5755##LDFLAGS="-L/usr/lib $LDFLAGS"
5756if test x$SHARED_LIB_PATH != xno; then
5757        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5758        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5759fi
5760
5761# checking gl header
5762
5763for ac_header in GL/gl.h
5764do
5765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5766if eval "test \"\${$as_ac_Header+set}\" = set"; then
5767  echo "$as_me:$LINENO: checking for $ac_header" >&5
5768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5769if eval "test \"\${$as_ac_Header+set}\" = set"; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771fi
5772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5774else
5775  # Is the header compilable?
5776echo "$as_me:$LINENO: checking $ac_header usability" >&5
5777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5778cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h.  */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h.  */
5784$ac_includes_default
5785#include <$ac_header>
5786_ACEOF
5787rm -f conftest.$ac_objext
5788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789  (eval $ac_compile) 2>conftest.er1
5790  ac_status=$?
5791  grep -v '^ *+' conftest.er1 >conftest.err
5792  rm -f conftest.er1
5793  cat conftest.err >&5
5794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795  (exit $ac_status); } &&
5796         { ac_try='test -z "$ac_c_werror_flag"
5797                         || test ! -s conftest.err'
5798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799  (eval $ac_try) 2>&5
5800  ac_status=$?
5801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802  (exit $ac_status); }; } &&
5803         { ac_try='test -s conftest.$ac_objext'
5804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805  (eval $ac_try) 2>&5
5806  ac_status=$?
5807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808  (exit $ac_status); }; }; then
5809  ac_header_compiler=yes
5810else
5811  echo "$as_me: failed program was:" >&5
5812sed 's/^/| /' conftest.$ac_ext >&5
5813
5814ac_header_compiler=no
5815fi
5816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5817echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5818echo "${ECHO_T}$ac_header_compiler" >&6
5819
5820# Is the header present?
5821echo "$as_me:$LINENO: checking $ac_header presence" >&5
5822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5823cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h.  */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h.  */
5829#include <$ac_header>
5830_ACEOF
5831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5832  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5833  ac_status=$?
5834  grep -v '^ *+' conftest.er1 >conftest.err
5835  rm -f conftest.er1
5836  cat conftest.err >&5
5837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838  (exit $ac_status); } >/dev/null; then
5839  if test -s conftest.err; then
5840    ac_cpp_err=$ac_c_preproc_warn_flag
5841    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5842  else
5843    ac_cpp_err=
5844  fi
5845else
5846  ac_cpp_err=yes
5847fi
5848if test -z "$ac_cpp_err"; then
5849  ac_header_preproc=yes
5850else
5851  echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854  ac_header_preproc=no
5855fi
5856rm -f conftest.err conftest.$ac_ext
5857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5858echo "${ECHO_T}$ac_header_preproc" >&6
5859
5860# So?  What about this header?
5861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5862  yes:no: )
5863    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5865    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5866echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5867    ac_header_preproc=yes
5868    ;;
5869  no:yes:* )
5870    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5872    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5873echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5874    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5875echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5876    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5877echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5878    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5880    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5881echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5882    (
5883      cat <<\_ASBOX
5884## ---------------------------------------------- ##
5885## Report this to orxonox-dev at mail.datacore.ch ##
5886## ---------------------------------------------- ##
5887_ASBOX
5888    ) |
5889      sed "s/^/$as_me: WARNING:     /" >&2
5890    ;;
5891esac
5892echo "$as_me:$LINENO: checking for $ac_header" >&5
5893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5894if eval "test \"\${$as_ac_Header+set}\" = set"; then
5895  echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897  eval "$as_ac_Header=\$ac_header_preproc"
5898fi
5899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5901
5902fi
5903if test `eval echo '${'$as_ac_Header'}'` = yes; then
5904  cat >>confdefs.h <<_ACEOF
5905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5906_ACEOF
5907
5908else
5909  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5910echo "$as_me: error: cannot find opengl headers" >&2;}
5911   { (exit 1); exit 1; }; }
5912fi
5913
5914done
5915
5916
5917#  checking for Unix GL
5918   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5919echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5920if test "${ac_cv_lib_GL_main+set}" = set; then
5921  echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923  ac_check_lib_save_LIBS=$LIBS
5924LIBS="-lGL  $LIBS"
5925cat >conftest.$ac_ext <<_ACEOF
5926/* confdefs.h.  */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h.  */
5931
5932
5933int
5934main ()
5935{
5936main ();
5937  ;
5938  return 0;
5939}
5940_ACEOF
5941rm -f conftest.$ac_objext conftest$ac_exeext
5942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943  (eval $ac_link) 2>conftest.er1
5944  ac_status=$?
5945  grep -v '^ *+' conftest.er1 >conftest.err
5946  rm -f conftest.er1
5947  cat conftest.err >&5
5948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949  (exit $ac_status); } &&
5950         { ac_try='test -z "$ac_c_werror_flag"
5951                         || test ! -s conftest.err'
5952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953  (eval $ac_try) 2>&5
5954  ac_status=$?
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); }; } &&
5957         { ac_try='test -s conftest$ac_exeext'
5958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959  (eval $ac_try) 2>&5
5960  ac_status=$?
5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962  (exit $ac_status); }; }; then
5963  ac_cv_lib_GL_main=yes
5964else
5965  echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968ac_cv_lib_GL_main=no
5969fi
5970rm -f conftest.err conftest.$ac_objext \
5971      conftest$ac_exeext conftest.$ac_ext
5972LIBS=$ac_check_lib_save_LIBS
5973fi
5974echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5975echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5976if test $ac_cv_lib_GL_main = yes; then
5977  FOUND_GL=yes; LIBS="$LIBS -lGL"
5978fi
5979
5980   if test x$FOUND_GL != xyes ; then
5981         echo "------------------"
5982         echo "opengl not found."
5983         echo "please install the opengl package which can be found at http://www.opengl.org"
5984         echo "------------------"
5985         exit -1
5986   fi
5987
5988# cheking for GLU-header
5989
5990for ac_header in GL/glu.h
5991do
5992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5993if eval "test \"\${$as_ac_Header+set}\" = set"; then
5994  echo "$as_me:$LINENO: checking for $ac_header" >&5
5995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997  echo $ECHO_N "(cached) $ECHO_C" >&6
5998fi
5999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6001else
6002  # Is the header compilable?
6003echo "$as_me:$LINENO: checking $ac_header usability" >&5
6004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6005cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h.  */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h.  */
6011$ac_includes_default
6012#include <$ac_header>
6013_ACEOF
6014rm -f conftest.$ac_objext
6015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016  (eval $ac_compile) 2>conftest.er1
6017  ac_status=$?
6018  grep -v '^ *+' conftest.er1 >conftest.err
6019  rm -f conftest.er1
6020  cat conftest.err >&5
6021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022  (exit $ac_status); } &&
6023         { ac_try='test -z "$ac_c_werror_flag"
6024                         || test ! -s conftest.err'
6025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026  (eval $ac_try) 2>&5
6027  ac_status=$?
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); }; } &&
6030         { ac_try='test -s conftest.$ac_objext'
6031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032  (eval $ac_try) 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }; }; then
6036  ac_header_compiler=yes
6037else
6038  echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041ac_header_compiler=no
6042fi
6043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6045echo "${ECHO_T}$ac_header_compiler" >&6
6046
6047# Is the header present?
6048echo "$as_me:$LINENO: checking $ac_header presence" >&5
6049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6050cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h.  */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h.  */
6056#include <$ac_header>
6057_ACEOF
6058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6060  ac_status=$?
6061  grep -v '^ *+' conftest.er1 >conftest.err
6062  rm -f conftest.er1
6063  cat conftest.err >&5
6064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065  (exit $ac_status); } >/dev/null; then
6066  if test -s conftest.err; then
6067    ac_cpp_err=$ac_c_preproc_warn_flag
6068    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6069  else
6070    ac_cpp_err=
6071  fi
6072else
6073  ac_cpp_err=yes
6074fi
6075if test -z "$ac_cpp_err"; then
6076  ac_header_preproc=yes
6077else
6078  echo "$as_me: failed program was:" >&5
6079sed 's/^/| /' conftest.$ac_ext >&5
6080
6081  ac_header_preproc=no
6082fi
6083rm -f conftest.err conftest.$ac_ext
6084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6085echo "${ECHO_T}$ac_header_preproc" >&6
6086
6087# So?  What about this header?
6088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6089  yes:no: )
6090    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6094    ac_header_preproc=yes
6095    ;;
6096  no:yes:* )
6097    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6099    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6100echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6101    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6103    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6104echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6107    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6109    (
6110      cat <<\_ASBOX
6111## ---------------------------------------------- ##
6112## Report this to orxonox-dev at mail.datacore.ch ##
6113## ---------------------------------------------- ##
6114_ASBOX
6115    ) |
6116      sed "s/^/$as_me: WARNING:     /" >&2
6117    ;;
6118esac
6119echo "$as_me:$LINENO: checking for $ac_header" >&5
6120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6121if eval "test \"\${$as_ac_Header+set}\" = set"; then
6122  echo $ECHO_N "(cached) $ECHO_C" >&6
6123else
6124  eval "$as_ac_Header=\$ac_header_preproc"
6125fi
6126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6128
6129fi
6130if test `eval echo '${'$as_ac_Header'}'` = yes; then
6131  cat >>confdefs.h <<_ACEOF
6132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6133_ACEOF
6134
6135else
6136  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6137echo "$as_me: error: cannot find opengl headers" >&2;}
6138   { (exit 1); exit 1; }; }
6139fi
6140
6141done
6142
6143### FIXME ###
6144#    AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"])
6145#    if test x$FOUND_GLU != xyes ; then
6146      FOUND_GLU=yes
6147      LIBS="$LIBS -lGLU"
6148#    else
6149#         echo "------------------"
6150#         echo "GLU library not found."
6151#         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6152#         echo "------------------"
6153#         exit -1
6154#    fi
6155
6156# checking for GLEW-headers
6157
6158for ac_header in GL/glew.h
6159do
6160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6161if eval "test \"\${$as_ac_Header+set}\" = set"; then
6162  echo "$as_me:$LINENO: checking for $ac_header" >&5
6163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6164if eval "test \"\${$as_ac_Header+set}\" = set"; then
6165  echo $ECHO_N "(cached) $ECHO_C" >&6
6166fi
6167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6169else
6170  # Is the header compilable?
6171echo "$as_me:$LINENO: checking $ac_header usability" >&5
6172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6173cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h.  */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h.  */
6179$ac_includes_default
6180#include <$ac_header>
6181_ACEOF
6182rm -f conftest.$ac_objext
6183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184  (eval $ac_compile) 2>conftest.er1
6185  ac_status=$?
6186  grep -v '^ *+' conftest.er1 >conftest.err
6187  rm -f conftest.er1
6188  cat conftest.err >&5
6189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190  (exit $ac_status); } &&
6191         { ac_try='test -z "$ac_c_werror_flag"
6192                         || test ! -s conftest.err'
6193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194  (eval $ac_try) 2>&5
6195  ac_status=$?
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); }; } &&
6198         { ac_try='test -s conftest.$ac_objext'
6199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200  (eval $ac_try) 2>&5
6201  ac_status=$?
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); }; }; then
6204  ac_header_compiler=yes
6205else
6206  echo "$as_me: failed program was:" >&5
6207sed 's/^/| /' conftest.$ac_ext >&5
6208
6209ac_header_compiler=no
6210fi
6211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6213echo "${ECHO_T}$ac_header_compiler" >&6
6214
6215# Is the header present?
6216echo "$as_me:$LINENO: checking $ac_header presence" >&5
6217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6218cat >conftest.$ac_ext <<_ACEOF
6219/* confdefs.h.  */
6220_ACEOF
6221cat confdefs.h >>conftest.$ac_ext
6222cat >>conftest.$ac_ext <<_ACEOF
6223/* end confdefs.h.  */
6224#include <$ac_header>
6225_ACEOF
6226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6227  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6228  ac_status=$?
6229  grep -v '^ *+' conftest.er1 >conftest.err
6230  rm -f conftest.er1
6231  cat conftest.err >&5
6232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); } >/dev/null; then
6234  if test -s conftest.err; then
6235    ac_cpp_err=$ac_c_preproc_warn_flag
6236    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6237  else
6238    ac_cpp_err=
6239  fi
6240else
6241  ac_cpp_err=yes
6242fi
6243if test -z "$ac_cpp_err"; then
6244  ac_header_preproc=yes
6245else
6246  echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249  ac_header_preproc=no
6250fi
6251rm -f conftest.err conftest.$ac_ext
6252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6253echo "${ECHO_T}$ac_header_preproc" >&6
6254
6255# So?  What about this header?
6256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6257  yes:no: )
6258    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6260    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6262    ac_header_preproc=yes
6263    ;;
6264  no:yes:* )
6265    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6267    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6268echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6269    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6271    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6272echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6273    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6275    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6277    (
6278      cat <<\_ASBOX
6279## ---------------------------------------------- ##
6280## Report this to orxonox-dev at mail.datacore.ch ##
6281## ---------------------------------------------- ##
6282_ASBOX
6283    ) |
6284      sed "s/^/$as_me: WARNING:     /" >&2
6285    ;;
6286esac
6287echo "$as_me:$LINENO: checking for $ac_header" >&5
6288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6289if eval "test \"\${$as_ac_Header+set}\" = set"; then
6290  echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292  eval "$as_ac_Header=\$ac_header_preproc"
6293fi
6294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6296
6297fi
6298if test `eval echo '${'$as_ac_Header'}'` = yes; then
6299  cat >>confdefs.h <<_ACEOF
6300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6301_ACEOF
6302
6303else
6304  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6305echo "$as_me: error: cannot find glew headers" >&2;}
6306   { (exit 1); exit 1; }; }
6307fi
6308
6309done
6310
6311# checking for GLEW-lib
6312  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6313echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6314if test "${ac_cv_lib_GLEW_main+set}" = set; then
6315  echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317  ac_check_lib_save_LIBS=$LIBS
6318LIBS="-lGLEW  $LIBS"
6319cat >conftest.$ac_ext <<_ACEOF
6320/* confdefs.h.  */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h.  */
6325
6326
6327int
6328main ()
6329{
6330main ();
6331  ;
6332  return 0;
6333}
6334_ACEOF
6335rm -f conftest.$ac_objext conftest$ac_exeext
6336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6337  (eval $ac_link) 2>conftest.er1
6338  ac_status=$?
6339  grep -v '^ *+' conftest.er1 >conftest.err
6340  rm -f conftest.er1
6341  cat conftest.err >&5
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } &&
6344         { ac_try='test -z "$ac_c_werror_flag"
6345                         || test ! -s conftest.err'
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); }; } &&
6351         { ac_try='test -s conftest$ac_exeext'
6352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353  (eval $ac_try) 2>&5
6354  ac_status=$?
6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356  (exit $ac_status); }; }; then
6357  ac_cv_lib_GLEW_main=yes
6358else
6359  echo "$as_me: failed program was:" >&5
6360sed 's/^/| /' conftest.$ac_ext >&5
6361
6362ac_cv_lib_GLEW_main=no
6363fi
6364rm -f conftest.err conftest.$ac_objext \
6365      conftest$ac_exeext conftest.$ac_ext
6366LIBS=$ac_check_lib_save_LIBS
6367fi
6368echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6369echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6370if test $ac_cv_lib_GLEW_main = yes; then
6371  FOUND_GLEW=yes
6372fi
6373
6374   if test x$FOUND_GLEW = xyes ; then
6375     LIBS="$LIBS -lGLEW"
6376   else
6377         echo "------------------"
6378         echo "glew not found."
6379         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6380         echo "------------------"
6381         exit -1
6382   fi
6383
6384#--------#
6385# openAL #
6386#--------#
6387# checking for openAL-headers
6388
6389for ac_header in AL/al.h
6390do
6391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6392if eval "test \"\${$as_ac_Header+set}\" = set"; then
6393  echo "$as_me:$LINENO: checking for $ac_header" >&5
6394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396  echo $ECHO_N "(cached) $ECHO_C" >&6
6397fi
6398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400else
6401  # Is the header compilable?
6402echo "$as_me:$LINENO: checking $ac_header usability" >&5
6403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6404cat >conftest.$ac_ext <<_ACEOF
6405/* confdefs.h.  */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h.  */
6410$ac_includes_default
6411#include <$ac_header>
6412_ACEOF
6413rm -f conftest.$ac_objext
6414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415  (eval $ac_compile) 2>conftest.er1
6416  ac_status=$?
6417  grep -v '^ *+' conftest.er1 >conftest.err
6418  rm -f conftest.er1
6419  cat conftest.err >&5
6420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421  (exit $ac_status); } &&
6422         { ac_try='test -z "$ac_c_werror_flag"
6423                         || test ! -s conftest.err'
6424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425  (eval $ac_try) 2>&5
6426  ac_status=$?
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); }; } &&
6429         { ac_try='test -s conftest.$ac_objext'
6430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431  (eval $ac_try) 2>&5
6432  ac_status=$?
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); }; }; then
6435  ac_header_compiler=yes
6436else
6437  echo "$as_me: failed program was:" >&5
6438sed 's/^/| /' conftest.$ac_ext >&5
6439
6440ac_header_compiler=no
6441fi
6442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6444echo "${ECHO_T}$ac_header_compiler" >&6
6445
6446# Is the header present?
6447echo "$as_me:$LINENO: checking $ac_header presence" >&5
6448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6449cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h.  */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h.  */
6455#include <$ac_header>
6456_ACEOF
6457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6459  ac_status=$?
6460  grep -v '^ *+' conftest.er1 >conftest.err
6461  rm -f conftest.er1
6462  cat conftest.err >&5
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); } >/dev/null; then
6465  if test -s conftest.err; then
6466    ac_cpp_err=$ac_c_preproc_warn_flag
6467    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6468  else
6469    ac_cpp_err=
6470  fi
6471else
6472  ac_cpp_err=yes
6473fi
6474if test -z "$ac_cpp_err"; then
6475  ac_header_preproc=yes
6476else
6477  echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480  ac_header_preproc=no
6481fi
6482rm -f conftest.err conftest.$ac_ext
6483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6484echo "${ECHO_T}$ac_header_preproc" >&6
6485
6486# So?  What about this header?
6487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6488  yes:no: )
6489    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6491    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6493    ac_header_preproc=yes
6494    ;;
6495  no:yes:* )
6496    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6498    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6499echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6500    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6502    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6503echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6506    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6508    (
6509      cat <<\_ASBOX
6510## ---------------------------------------------- ##
6511## Report this to orxonox-dev at mail.datacore.ch ##
6512## ---------------------------------------------- ##
6513_ASBOX
6514    ) |
6515      sed "s/^/$as_me: WARNING:     /" >&2
6516    ;;
6517esac
6518echo "$as_me:$LINENO: checking for $ac_header" >&5
6519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6520if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521  echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523  eval "$as_ac_Header=\$ac_header_preproc"
6524fi
6525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527
6528fi
6529if test `eval echo '${'$as_ac_Header'}'` = yes; then
6530  cat >>confdefs.h <<_ACEOF
6531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6532_ACEOF
6533
6534else
6535  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6536echo "$as_me: error: cannot find openAL header." >&2;}
6537   { (exit 1); exit 1; }; }
6538fi
6539
6540done
6541
6542# checking for openAL-lib
6543  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6544echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6545if test "${ac_cv_lib_openal_main+set}" = set; then
6546  echo $ECHO_N "(cached) $ECHO_C" >&6
6547else
6548  ac_check_lib_save_LIBS=$LIBS
6549LIBS="-lopenal  $LIBS"
6550cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h.  */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h.  */
6556
6557
6558int
6559main ()
6560{
6561main ();
6562  ;
6563  return 0;
6564}
6565_ACEOF
6566rm -f conftest.$ac_objext conftest$ac_exeext
6567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6568  (eval $ac_link) 2>conftest.er1
6569  ac_status=$?
6570  grep -v '^ *+' conftest.er1 >conftest.err
6571  rm -f conftest.er1
6572  cat conftest.err >&5
6573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574  (exit $ac_status); } &&
6575         { ac_try='test -z "$ac_c_werror_flag"
6576                         || test ! -s conftest.err'
6577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578  (eval $ac_try) 2>&5
6579  ac_status=$?
6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581  (exit $ac_status); }; } &&
6582         { ac_try='test -s conftest$ac_exeext'
6583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584  (eval $ac_try) 2>&5
6585  ac_status=$?
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); }; }; then
6588  ac_cv_lib_openal_main=yes
6589else
6590  echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593ac_cv_lib_openal_main=no
6594fi
6595rm -f conftest.err conftest.$ac_objext \
6596      conftest$ac_exeext conftest.$ac_ext
6597LIBS=$ac_check_lib_save_LIBS
6598fi
6599echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6600echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6601if test $ac_cv_lib_openal_main = yes; then
6602  FOUND_OPENAL=yes
6603fi
6604
6605     if test x$FOUND_OPENAL = xyes ; then
6606       LIBS="$LIBS -lopenal"
6607     else
6608        echo "------------------"
6609        echo "openal library not found."
6610        echo "please install the openal library, which can be found at http://www.openal.org"
6611        echo "------------------"
6612        exit -1
6613     fi
6614# checking for alut
6615
6616for ac_header in AL/alut.h
6617do
6618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619if eval "test \"\${$as_ac_Header+set}\" = set"; then
6620  echo "$as_me:$LINENO: checking for $ac_header" >&5
6621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6622if eval "test \"\${$as_ac_Header+set}\" = set"; then
6623  echo $ECHO_N "(cached) $ECHO_C" >&6
6624fi
6625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6627else
6628  # Is the header compilable?
6629echo "$as_me:$LINENO: checking $ac_header usability" >&5
6630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6631cat >conftest.$ac_ext <<_ACEOF
6632/* confdefs.h.  */
6633_ACEOF
6634cat confdefs.h >>conftest.$ac_ext
6635cat >>conftest.$ac_ext <<_ACEOF
6636/* end confdefs.h.  */
6637$ac_includes_default
6638#include <$ac_header>
6639_ACEOF
6640rm -f conftest.$ac_objext
6641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642  (eval $ac_compile) 2>conftest.er1
6643  ac_status=$?
6644  grep -v '^ *+' conftest.er1 >conftest.err
6645  rm -f conftest.er1
6646  cat conftest.err >&5
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); } &&
6649         { ac_try='test -z "$ac_c_werror_flag"
6650                         || test ! -s conftest.err'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; } &&
6656         { ac_try='test -s conftest.$ac_objext'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; }; then
6662  ac_header_compiler=yes
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667ac_header_compiler=no
6668fi
6669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6671echo "${ECHO_T}$ac_header_compiler" >&6
6672
6673# Is the header present?
6674echo "$as_me:$LINENO: checking $ac_header presence" >&5
6675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6676cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h.  */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h.  */
6682#include <$ac_header>
6683_ACEOF
6684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6685  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6686  ac_status=$?
6687  grep -v '^ *+' conftest.er1 >conftest.err
6688  rm -f conftest.er1
6689  cat conftest.err >&5
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); } >/dev/null; then
6692  if test -s conftest.err; then
6693    ac_cpp_err=$ac_c_preproc_warn_flag
6694    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6695  else
6696    ac_cpp_err=
6697  fi
6698else
6699  ac_cpp_err=yes
6700fi
6701if test -z "$ac_cpp_err"; then
6702  ac_header_preproc=yes
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707  ac_header_preproc=no
6708fi
6709rm -f conftest.err conftest.$ac_ext
6710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6711echo "${ECHO_T}$ac_header_preproc" >&6
6712
6713# So?  What about this header?
6714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6715  yes:no: )
6716    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6718    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6719echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6720    ac_header_preproc=yes
6721    ;;
6722  no:yes:* )
6723    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6725    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6726echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6727    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6728echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6729    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6730echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6731    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6733    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6734echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6735    (
6736      cat <<\_ASBOX
6737## ---------------------------------------------- ##
6738## Report this to orxonox-dev at mail.datacore.ch ##
6739## ---------------------------------------------- ##
6740_ASBOX
6741    ) |
6742      sed "s/^/$as_me: WARNING:     /" >&2
6743    ;;
6744esac
6745echo "$as_me:$LINENO: checking for $ac_header" >&5
6746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748  echo $ECHO_N "(cached) $ECHO_C" >&6
6749else
6750  eval "$as_ac_Header=\$ac_header_preproc"
6751fi
6752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6754
6755fi
6756if test `eval echo '${'$as_ac_Header'}'` = yes; then
6757  cat >>confdefs.h <<_ACEOF
6758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6759_ACEOF
6760
6761else
6762  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6763echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6764   { (exit 1); exit 1; }; }
6765fi
6766
6767done
6768
6769  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6770echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6771if test "${ac_cv_lib_alut_main+set}" = set; then
6772  echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774  ac_check_lib_save_LIBS=$LIBS
6775LIBS="-lalut  $LIBS"
6776cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h.  */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h.  */
6782
6783
6784int
6785main ()
6786{
6787main ();
6788  ;
6789  return 0;
6790}
6791_ACEOF
6792rm -f conftest.$ac_objext conftest$ac_exeext
6793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6794  (eval $ac_link) 2>conftest.er1
6795  ac_status=$?
6796  grep -v '^ *+' conftest.er1 >conftest.err
6797  rm -f conftest.er1
6798  cat conftest.err >&5
6799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800  (exit $ac_status); } &&
6801         { ac_try='test -z "$ac_c_werror_flag"
6802                         || test ! -s conftest.err'
6803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804  (eval $ac_try) 2>&5
6805  ac_status=$?
6806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807  (exit $ac_status); }; } &&
6808         { ac_try='test -s conftest$ac_exeext'
6809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810  (eval $ac_try) 2>&5
6811  ac_status=$?
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); }; }; then
6814  ac_cv_lib_alut_main=yes
6815else
6816  echo "$as_me: failed program was:" >&5
6817sed 's/^/| /' conftest.$ac_ext >&5
6818
6819ac_cv_lib_alut_main=no
6820fi
6821rm -f conftest.err conftest.$ac_objext \
6822      conftest$ac_exeext conftest.$ac_ext
6823LIBS=$ac_check_lib_save_LIBS
6824fi
6825echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6826echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6827if test $ac_cv_lib_alut_main = yes; then
6828  FOUND_ALUT=yes
6829fi
6830
6831     if test x$FOUND_alut = xyes ; then
6832       LIBS="-lalut $LIBS"
6833     fi
6834#-----#
6835# SDL #
6836#-----#
6837# checking for SDL
6838  echo "$as_me:$LINENO: checking for SDL-version" >&5
6839echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6840  SDL_VERSION=`sdl-config --version`
6841  echo $SDL_VERSION
6842
6843   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6844
6845for ac_header in SDL.h
6846do
6847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849  echo "$as_me:$LINENO: checking for $ac_header" >&5
6850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852  echo $ECHO_N "(cached) $ECHO_C" >&6
6853fi
6854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6856else
6857  # Is the header compilable?
6858echo "$as_me:$LINENO: checking $ac_header usability" >&5
6859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6860cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h.  */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h.  */
6866$ac_includes_default
6867#include <$ac_header>
6868_ACEOF
6869rm -f conftest.$ac_objext
6870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871  (eval $ac_compile) 2>conftest.er1
6872  ac_status=$?
6873  grep -v '^ *+' conftest.er1 >conftest.err
6874  rm -f conftest.er1
6875  cat conftest.err >&5
6876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877  (exit $ac_status); } &&
6878         { ac_try='test -z "$ac_c_werror_flag"
6879                         || test ! -s conftest.err'
6880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881  (eval $ac_try) 2>&5
6882  ac_status=$?
6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); }; } &&
6885         { ac_try='test -s conftest.$ac_objext'
6886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887  (eval $ac_try) 2>&5
6888  ac_status=$?
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); }; }; then
6891  ac_header_compiler=yes
6892else
6893  echo "$as_me: failed program was:" >&5
6894sed 's/^/| /' conftest.$ac_ext >&5
6895
6896ac_header_compiler=no
6897fi
6898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6900echo "${ECHO_T}$ac_header_compiler" >&6
6901
6902# Is the header present?
6903echo "$as_me:$LINENO: checking $ac_header presence" >&5
6904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6905cat >conftest.$ac_ext <<_ACEOF
6906/* confdefs.h.  */
6907_ACEOF
6908cat confdefs.h >>conftest.$ac_ext
6909cat >>conftest.$ac_ext <<_ACEOF
6910/* end confdefs.h.  */
6911#include <$ac_header>
6912_ACEOF
6913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6914  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6915  ac_status=$?
6916  grep -v '^ *+' conftest.er1 >conftest.err
6917  rm -f conftest.er1
6918  cat conftest.err >&5
6919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920  (exit $ac_status); } >/dev/null; then
6921  if test -s conftest.err; then
6922    ac_cpp_err=$ac_c_preproc_warn_flag
6923    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6924  else
6925    ac_cpp_err=
6926  fi
6927else
6928  ac_cpp_err=yes
6929fi
6930if test -z "$ac_cpp_err"; then
6931  ac_header_preproc=yes
6932else
6933  echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936  ac_header_preproc=no
6937fi
6938rm -f conftest.err conftest.$ac_ext
6939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6940echo "${ECHO_T}$ac_header_preproc" >&6
6941
6942# So?  What about this header?
6943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6944  yes:no: )
6945    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6947    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6949    ac_header_preproc=yes
6950    ;;
6951  no:yes:* )
6952    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6954    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6955echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6956    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6958    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6959echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6960    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6962    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6964    (
6965      cat <<\_ASBOX
6966## ---------------------------------------------- ##
6967## Report this to orxonox-dev at mail.datacore.ch ##
6968## ---------------------------------------------- ##
6969_ASBOX
6970    ) |
6971      sed "s/^/$as_me: WARNING:     /" >&2
6972    ;;
6973esac
6974echo "$as_me:$LINENO: checking for $ac_header" >&5
6975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6976if eval "test \"\${$as_ac_Header+set}\" = set"; then
6977  echo $ECHO_N "(cached) $ECHO_C" >&6
6978else
6979  eval "$as_ac_Header=\$ac_header_preproc"
6980fi
6981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6983
6984fi
6985if test `eval echo '${'$as_ac_Header'}'` = yes; then
6986  cat >>confdefs.h <<_ACEOF
6987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988_ACEOF
6989
6990else
6991
6992for ac_header in SDL/SDL.h
6993do
6994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996  echo "$as_me:$LINENO: checking for $ac_header" >&5
6997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6998if eval "test \"\${$as_ac_Header+set}\" = set"; then
6999  echo $ECHO_N "(cached) $ECHO_C" >&6
7000fi
7001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7003else
7004  # Is the header compilable?
7005echo "$as_me:$LINENO: checking $ac_header usability" >&5
7006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7007cat >conftest.$ac_ext <<_ACEOF
7008/* confdefs.h.  */
7009_ACEOF
7010cat confdefs.h >>conftest.$ac_ext
7011cat >>conftest.$ac_ext <<_ACEOF
7012/* end confdefs.h.  */
7013$ac_includes_default
7014#include <$ac_header>
7015_ACEOF
7016rm -f conftest.$ac_objext
7017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018  (eval $ac_compile) 2>conftest.er1
7019  ac_status=$?
7020  grep -v '^ *+' conftest.er1 >conftest.err
7021  rm -f conftest.er1
7022  cat conftest.err >&5
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); } &&
7025         { ac_try='test -z "$ac_c_werror_flag"
7026                         || test ! -s conftest.err'
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); }; } &&
7032         { ac_try='test -s conftest.$ac_objext'
7033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034  (eval $ac_try) 2>&5
7035  ac_status=$?
7036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037  (exit $ac_status); }; }; then
7038  ac_header_compiler=yes
7039else
7040  echo "$as_me: failed program was:" >&5
7041sed 's/^/| /' conftest.$ac_ext >&5
7042
7043ac_header_compiler=no
7044fi
7045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7047echo "${ECHO_T}$ac_header_compiler" >&6
7048
7049# Is the header present?
7050echo "$as_me:$LINENO: checking $ac_header presence" >&5
7051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7052cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h.  */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h.  */
7058#include <$ac_header>
7059_ACEOF
7060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7061  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7062  ac_status=$?
7063  grep -v '^ *+' conftest.er1 >conftest.err
7064  rm -f conftest.er1
7065  cat conftest.err >&5
7066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067  (exit $ac_status); } >/dev/null; then
7068  if test -s conftest.err; then
7069    ac_cpp_err=$ac_c_preproc_warn_flag
7070    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7071  else
7072    ac_cpp_err=
7073  fi
7074else
7075  ac_cpp_err=yes
7076fi
7077if test -z "$ac_cpp_err"; then
7078  ac_header_preproc=yes
7079else
7080  echo "$as_me: failed program was:" >&5
7081sed 's/^/| /' conftest.$ac_ext >&5
7082
7083  ac_header_preproc=no
7084fi
7085rm -f conftest.err conftest.$ac_ext
7086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7087echo "${ECHO_T}$ac_header_preproc" >&6
7088
7089# So?  What about this header?
7090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7091  yes:no: )
7092    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7094    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7096    ac_header_preproc=yes
7097    ;;
7098  no:yes:* )
7099    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7101    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7102echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7103    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7105    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7106echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7107    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7109    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7111    (
7112      cat <<\_ASBOX
7113## ---------------------------------------------- ##
7114## Report this to orxonox-dev at mail.datacore.ch ##
7115## ---------------------------------------------- ##
7116_ASBOX
7117    ) |
7118      sed "s/^/$as_me: WARNING:     /" >&2
7119    ;;
7120esac
7121echo "$as_me:$LINENO: checking for $ac_header" >&5
7122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7123if eval "test \"\${$as_ac_Header+set}\" = set"; then
7124  echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126  eval "$as_ac_Header=\$ac_header_preproc"
7127fi
7128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7130
7131fi
7132if test `eval echo '${'$as_ac_Header'}'` = yes; then
7133  cat >>confdefs.h <<_ACEOF
7134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7135_ACEOF
7136
7137else
7138  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7139echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
7140   { (exit 1); exit 1; }; }
7141fi
7142
7143done
7144
7145fi
7146
7147done
7148
7149   LIBS="`sdl-config --libs` $LIBS"
7150   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7151echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7152if test "${ac_cv_lib_SDL_main+set}" = set; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155  ac_check_lib_save_LIBS=$LIBS
7156LIBS="-lSDL  $LIBS"
7157cat >conftest.$ac_ext <<_ACEOF
7158/* confdefs.h.  */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h.  */
7163
7164
7165int
7166main ()
7167{
7168main ();
7169  ;
7170  return 0;
7171}
7172_ACEOF
7173rm -f conftest.$ac_objext conftest$ac_exeext
7174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175  (eval $ac_link) 2>conftest.er1
7176  ac_status=$?
7177  grep -v '^ *+' conftest.er1 >conftest.err
7178  rm -f conftest.er1
7179  cat conftest.err >&5
7180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181  (exit $ac_status); } &&
7182         { ac_try='test -z "$ac_c_werror_flag"
7183                         || test ! -s conftest.err'
7184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185  (eval $ac_try) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; } &&
7189         { ac_try='test -s conftest$ac_exeext'
7190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191  (eval $ac_try) 2>&5
7192  ac_status=$?
7193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194  (exit $ac_status); }; }; then
7195  ac_cv_lib_SDL_main=yes
7196else
7197  echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200ac_cv_lib_SDL_main=no
7201fi
7202rm -f conftest.err conftest.$ac_objext \
7203      conftest$ac_exeext conftest.$ac_ext
7204LIBS=$ac_check_lib_save_LIBS
7205fi
7206echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7207echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7208if test $ac_cv_lib_SDL_main = yes; then
7209  FOUND_SDL=yes
7210fi
7211
7212    if test x$FOUND_SDL != xyes ; then
7213        echo "------------------"
7214        echo "SDL library not found."
7215        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7216        echo "------------------"
7217        exit -1
7218     fi
7219
7220    ;;
7221
7222#############
7223#-----------#
7224# MAC -OS X #
7225#-----------#
7226#############
7227 *darwin*)
7228 echo "OS X detected"
7229
7230 osX="yes"
7231
7232 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7233# checking gl header
7234
7235for ac_header in OpenGL/gl.h
7236do
7237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239  echo "$as_me:$LINENO: checking for $ac_header" >&5
7240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7241if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242  echo $ECHO_N "(cached) $ECHO_C" >&6
7243fi
7244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7246else
7247  # Is the header compilable?
7248echo "$as_me:$LINENO: checking $ac_header usability" >&5
7249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7250cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h.  */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h.  */
7256$ac_includes_default
7257#include <$ac_header>
7258_ACEOF
7259rm -f conftest.$ac_objext
7260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261  (eval $ac_compile) 2>conftest.er1
7262  ac_status=$?
7263  grep -v '^ *+' conftest.er1 >conftest.err
7264  rm -f conftest.er1
7265  cat conftest.err >&5
7266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); } &&
7268         { ac_try='test -z "$ac_c_werror_flag"
7269                         || test ! -s conftest.err'
7270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271  (eval $ac_try) 2>&5
7272  ac_status=$?
7273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274  (exit $ac_status); }; } &&
7275         { ac_try='test -s conftest.$ac_objext'
7276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277  (eval $ac_try) 2>&5
7278  ac_status=$?
7279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280  (exit $ac_status); }; }; then
7281  ac_header_compiler=yes
7282else
7283  echo "$as_me: failed program was:" >&5
7284sed 's/^/| /' conftest.$ac_ext >&5
7285
7286ac_header_compiler=no
7287fi
7288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7290echo "${ECHO_T}$ac_header_compiler" >&6
7291
7292# Is the header present?
7293echo "$as_me:$LINENO: checking $ac_header presence" >&5
7294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7295cat >conftest.$ac_ext <<_ACEOF
7296/* confdefs.h.  */
7297_ACEOF
7298cat confdefs.h >>conftest.$ac_ext
7299cat >>conftest.$ac_ext <<_ACEOF
7300/* end confdefs.h.  */
7301#include <$ac_header>
7302_ACEOF
7303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7304  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7305  ac_status=$?
7306  grep -v '^ *+' conftest.er1 >conftest.err
7307  rm -f conftest.er1
7308  cat conftest.err >&5
7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310  (exit $ac_status); } >/dev/null; then
7311  if test -s conftest.err; then
7312    ac_cpp_err=$ac_c_preproc_warn_flag
7313    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7314  else
7315    ac_cpp_err=
7316  fi
7317else
7318  ac_cpp_err=yes
7319fi
7320if test -z "$ac_cpp_err"; then
7321  ac_header_preproc=yes
7322else
7323  echo "$as_me: failed program was:" >&5
7324sed 's/^/| /' conftest.$ac_ext >&5
7325
7326  ac_header_preproc=no
7327fi
7328rm -f conftest.err conftest.$ac_ext
7329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7330echo "${ECHO_T}$ac_header_preproc" >&6
7331
7332# So?  What about this header?
7333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7334  yes:no: )
7335    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7337    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7339    ac_header_preproc=yes
7340    ;;
7341  no:yes:* )
7342    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7344    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7345echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7346    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7348    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7349echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7350    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7352    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7354    (
7355      cat <<\_ASBOX
7356## ---------------------------------------------- ##
7357## Report this to orxonox-dev at mail.datacore.ch ##
7358## ---------------------------------------------- ##
7359_ASBOX
7360    ) |
7361      sed "s/^/$as_me: WARNING:     /" >&2
7362    ;;
7363esac
7364echo "$as_me:$LINENO: checking for $ac_header" >&5
7365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7366if eval "test \"\${$as_ac_Header+set}\" = set"; then
7367  echo $ECHO_N "(cached) $ECHO_C" >&6
7368else
7369  eval "$as_ac_Header=\$ac_header_preproc"
7370fi
7371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7373
7374fi
7375if test `eval echo '${'$as_ac_Header'}'` = yes; then
7376  cat >>confdefs.h <<_ACEOF
7377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7378_ACEOF
7379
7380else
7381  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7382echo "$as_me: error: cannot find opengl headers" >&2;}
7383   { (exit 1); exit 1; }; }
7384fi
7385
7386done
7387
7388# cheking for GLU-header
7389
7390for ac_header in OpenGL/glu.h
7391do
7392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7393if eval "test \"\${$as_ac_Header+set}\" = set"; then
7394  echo "$as_me:$LINENO: checking for $ac_header" >&5
7395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7396if eval "test \"\${$as_ac_Header+set}\" = set"; then
7397  echo $ECHO_N "(cached) $ECHO_C" >&6
7398fi
7399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401else
7402  # Is the header compilable?
7403echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7405cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h.  */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h.  */
7411$ac_includes_default
7412#include <$ac_header>
7413_ACEOF
7414rm -f conftest.$ac_objext
7415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416  (eval $ac_compile) 2>conftest.er1
7417  ac_status=$?
7418  grep -v '^ *+' conftest.er1 >conftest.err
7419  rm -f conftest.er1
7420  cat conftest.err >&5
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); } &&
7423         { ac_try='test -z "$ac_c_werror_flag"
7424                         || test ! -s conftest.err'
7425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426  (eval $ac_try) 2>&5
7427  ac_status=$?
7428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429  (exit $ac_status); }; } &&
7430         { ac_try='test -s conftest.$ac_objext'
7431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432  (eval $ac_try) 2>&5
7433  ac_status=$?
7434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435  (exit $ac_status); }; }; then
7436  ac_header_compiler=yes
7437else
7438  echo "$as_me: failed program was:" >&5
7439sed 's/^/| /' conftest.$ac_ext >&5
7440
7441ac_header_compiler=no
7442fi
7443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445echo "${ECHO_T}$ac_header_compiler" >&6
7446
7447# Is the header present?
7448echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7450cat >conftest.$ac_ext <<_ACEOF
7451/* confdefs.h.  */
7452_ACEOF
7453cat confdefs.h >>conftest.$ac_ext
7454cat >>conftest.$ac_ext <<_ACEOF
7455/* end confdefs.h.  */
7456#include <$ac_header>
7457_ACEOF
7458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7460  ac_status=$?
7461  grep -v '^ *+' conftest.er1 >conftest.err
7462  rm -f conftest.er1
7463  cat conftest.err >&5
7464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465  (exit $ac_status); } >/dev/null; then
7466  if test -s conftest.err; then
7467    ac_cpp_err=$ac_c_preproc_warn_flag
7468    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7469  else
7470    ac_cpp_err=
7471  fi
7472else
7473  ac_cpp_err=yes
7474fi
7475if test -z "$ac_cpp_err"; then
7476  ac_header_preproc=yes
7477else
7478  echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
7481  ac_header_preproc=no
7482fi
7483rm -f conftest.err conftest.$ac_ext
7484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7485echo "${ECHO_T}$ac_header_preproc" >&6
7486
7487# So?  What about this header?
7488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489  yes:no: )
7490    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7494    ac_header_preproc=yes
7495    ;;
7496  no:yes:* )
7497    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7499    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7500echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7501    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7503    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7504echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7505    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7507    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7509    (
7510      cat <<\_ASBOX
7511## ---------------------------------------------- ##
7512## Report this to orxonox-dev at mail.datacore.ch ##
7513## ---------------------------------------------- ##
7514_ASBOX
7515    ) |
7516      sed "s/^/$as_me: WARNING:     /" >&2
7517    ;;
7518esac
7519echo "$as_me:$LINENO: checking for $ac_header" >&5
7520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7521if eval "test \"\${$as_ac_Header+set}\" = set"; then
7522  echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524  eval "$as_ac_Header=\$ac_header_preproc"
7525fi
7526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7528
7529fi
7530if test `eval echo '${'$as_ac_Header'}'` = yes; then
7531  cat >>confdefs.h <<_ACEOF
7532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7533_ACEOF
7534
7535else
7536  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7537echo "$as_me: error: cannot find opengl headers" >&2;}
7538   { (exit 1); exit 1; }; }
7539fi
7540
7541done
7542
7543
7544   LIBS="$LIBS -framework OpenGL"
7545
7546
7547## SDL-check
7548       SDL_CFLAGS=`sdl-config --cflags`
7549       SDL_LIBS=`sdl-config --libs`
7550       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7551       LIBS="$LIBS $SDL_LIBS"
7552
7553
7554# checking for SDL-headers
7555#    AC_CHECK_HEADERS(SDL/SDL.h ,,
7556#      [AC_MSG_ERROR([cannot find SDL headers]) ])
7557
7558## checking for SDL
7559#    SDL_VERSION=1.2.7
7560#    AM_PATH_SDL($SDL_VERSION,
7561#      :,
7562#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
7563#      )
7564
7565
7566    ;;
7567
7568  *)
7569    ;;
7570esac
7571
7572
7573
7574###################################
7575## CHECKING FOR HEADERS AND LIBS ##
7576###################################
7577
7578#---------#
7579# SDL_ttf #
7580#---------#
7581# checking for SDL_ttf-headers
7582
7583for ac_header in SDL_ttf.h
7584do
7585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7586if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587  echo "$as_me:$LINENO: checking for $ac_header" >&5
7588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7589if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590  echo $ECHO_N "(cached) $ECHO_C" >&6
7591fi
7592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7594else
7595  # Is the header compilable?
7596echo "$as_me:$LINENO: checking $ac_header usability" >&5
7597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7598cat >conftest.$ac_ext <<_ACEOF
7599/* confdefs.h.  */
7600_ACEOF
7601cat confdefs.h >>conftest.$ac_ext
7602cat >>conftest.$ac_ext <<_ACEOF
7603/* end confdefs.h.  */
7604$ac_includes_default
7605#include <$ac_header>
7606_ACEOF
7607rm -f conftest.$ac_objext
7608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609  (eval $ac_compile) 2>conftest.er1
7610  ac_status=$?
7611  grep -v '^ *+' conftest.er1 >conftest.err
7612  rm -f conftest.er1
7613  cat conftest.err >&5
7614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615  (exit $ac_status); } &&
7616         { ac_try='test -z "$ac_c_werror_flag"
7617                         || test ! -s conftest.err'
7618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619  (eval $ac_try) 2>&5
7620  ac_status=$?
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); }; } &&
7623         { ac_try='test -s conftest.$ac_objext'
7624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625  (eval $ac_try) 2>&5
7626  ac_status=$?
7627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628  (exit $ac_status); }; }; then
7629  ac_header_compiler=yes
7630else
7631  echo "$as_me: failed program was:" >&5
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634ac_header_compiler=no
7635fi
7636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7638echo "${ECHO_T}$ac_header_compiler" >&6
7639
7640# Is the header present?
7641echo "$as_me:$LINENO: checking $ac_header presence" >&5
7642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7643cat >conftest.$ac_ext <<_ACEOF
7644/* confdefs.h.  */
7645_ACEOF
7646cat confdefs.h >>conftest.$ac_ext
7647cat >>conftest.$ac_ext <<_ACEOF
7648/* end confdefs.h.  */
7649#include <$ac_header>
7650_ACEOF
7651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7652  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7653  ac_status=$?
7654  grep -v '^ *+' conftest.er1 >conftest.err
7655  rm -f conftest.er1
7656  cat conftest.err >&5
7657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658  (exit $ac_status); } >/dev/null; then
7659  if test -s conftest.err; then
7660    ac_cpp_err=$ac_c_preproc_warn_flag
7661    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7662  else
7663    ac_cpp_err=
7664  fi
7665else
7666  ac_cpp_err=yes
7667fi
7668if test -z "$ac_cpp_err"; then
7669  ac_header_preproc=yes
7670else
7671  echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
7674  ac_header_preproc=no
7675fi
7676rm -f conftest.err conftest.$ac_ext
7677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7678echo "${ECHO_T}$ac_header_preproc" >&6
7679
7680# So?  What about this header?
7681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7682  yes:no: )
7683    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7685    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7687    ac_header_preproc=yes
7688    ;;
7689  no:yes:* )
7690    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7692    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7693echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7694    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7696    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7697echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7698    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7700    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7702    (
7703      cat <<\_ASBOX
7704## ---------------------------------------------- ##
7705## Report this to orxonox-dev at mail.datacore.ch ##
7706## ---------------------------------------------- ##
7707_ASBOX
7708    ) |
7709      sed "s/^/$as_me: WARNING:     /" >&2
7710    ;;
7711esac
7712echo "$as_me:$LINENO: checking for $ac_header" >&5
7713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7714if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  eval "$as_ac_Header=\$ac_header_preproc"
7718fi
7719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7721
7722fi
7723if test `eval echo '${'$as_ac_Header'}'` = yes; then
7724  cat >>confdefs.h <<_ACEOF
7725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7726_ACEOF
7727
7728else
7729
7730for ac_header in SDL/SDL_ttf.h
7731do
7732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7733if eval "test \"\${$as_ac_Header+set}\" = set"; then
7734  echo "$as_me:$LINENO: checking for $ac_header" >&5
7735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7736if eval "test \"\${$as_ac_Header+set}\" = set"; then
7737  echo $ECHO_N "(cached) $ECHO_C" >&6
7738fi
7739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7741else
7742  # Is the header compilable?
7743echo "$as_me:$LINENO: checking $ac_header usability" >&5
7744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7745cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h.  */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
7750/* end confdefs.h.  */
7751$ac_includes_default
7752#include <$ac_header>
7753_ACEOF
7754rm -f conftest.$ac_objext
7755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7756  (eval $ac_compile) 2>conftest.er1
7757  ac_status=$?
7758  grep -v '^ *+' conftest.er1 >conftest.err
7759  rm -f conftest.er1
7760  cat conftest.err >&5
7761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762  (exit $ac_status); } &&
7763         { ac_try='test -z "$ac_c_werror_flag"
7764                         || test ! -s conftest.err'
7765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766  (eval $ac_try) 2>&5
7767  ac_status=$?
7768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769  (exit $ac_status); }; } &&
7770         { ac_try='test -s conftest.$ac_objext'
7771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772  (eval $ac_try) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); }; }; then
7776  ac_header_compiler=yes
7777else
7778  echo "$as_me: failed program was:" >&5
7779sed 's/^/| /' conftest.$ac_ext >&5
7780
7781ac_header_compiler=no
7782fi
7783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7785echo "${ECHO_T}$ac_header_compiler" >&6
7786
7787# Is the header present?
7788echo "$as_me:$LINENO: checking $ac_header presence" >&5
7789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7790cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h.  */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h.  */
7796#include <$ac_header>
7797_ACEOF
7798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7799  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7800  ac_status=$?
7801  grep -v '^ *+' conftest.er1 >conftest.err
7802  rm -f conftest.er1
7803  cat conftest.err >&5
7804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805  (exit $ac_status); } >/dev/null; then
7806  if test -s conftest.err; then
7807    ac_cpp_err=$ac_c_preproc_warn_flag
7808    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7809  else
7810    ac_cpp_err=
7811  fi
7812else
7813  ac_cpp_err=yes
7814fi
7815if test -z "$ac_cpp_err"; then
7816  ac_header_preproc=yes
7817else
7818  echo "$as_me: failed program was:" >&5
7819sed 's/^/| /' conftest.$ac_ext >&5
7820
7821  ac_header_preproc=no
7822fi
7823rm -f conftest.err conftest.$ac_ext
7824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7825echo "${ECHO_T}$ac_header_preproc" >&6
7826
7827# So?  What about this header?
7828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7829  yes:no: )
7830    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7832    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7834    ac_header_preproc=yes
7835    ;;
7836  no:yes:* )
7837    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7839    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7840echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7841    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7843    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7844echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7845    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7847    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7849    (
7850      cat <<\_ASBOX
7851## ---------------------------------------------- ##
7852## Report this to orxonox-dev at mail.datacore.ch ##
7853## ---------------------------------------------- ##
7854_ASBOX
7855    ) |
7856      sed "s/^/$as_me: WARNING:     /" >&2
7857    ;;
7858esac
7859echo "$as_me:$LINENO: checking for $ac_header" >&5
7860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7861if eval "test \"\${$as_ac_Header+set}\" = set"; then
7862  echo $ECHO_N "(cached) $ECHO_C" >&6
7863else
7864  eval "$as_ac_Header=\$ac_header_preproc"
7865fi
7866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868
7869fi
7870if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871  cat >>confdefs.h <<_ACEOF
7872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7873_ACEOF
7874
7875else
7876  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7877echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7878   { (exit 1); exit 1; }; }
7879fi
7880
7881done
7882
7883fi
7884
7885done
7886
7887# checking for SDL_ttf-lib
7888  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7889echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7890if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7891  echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893  ac_check_lib_save_LIBS=$LIBS
7894LIBS="-lSDL_ttf  $LIBS"
7895cat >conftest.$ac_ext <<_ACEOF
7896/* confdefs.h.  */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
7900/* end confdefs.h.  */
7901
7902/* Override any gcc2 internal prototype to avoid an error.  */
7903#ifdef __cplusplus
7904extern "C"
7905#endif
7906/* We use char because int might match the return type of a gcc2
7907   builtin and then its argument prototype would still apply.  */
7908char TTF_OpenFont ();
7909int
7910main ()
7911{
7912TTF_OpenFont ();
7913  ;
7914  return 0;
7915}
7916_ACEOF
7917rm -f conftest.$ac_objext conftest$ac_exeext
7918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919  (eval $ac_link) 2>conftest.er1
7920  ac_status=$?
7921  grep -v '^ *+' conftest.er1 >conftest.err
7922  rm -f conftest.er1
7923  cat conftest.err >&5
7924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925  (exit $ac_status); } &&
7926         { ac_try='test -z "$ac_c_werror_flag"
7927                         || test ! -s conftest.err'
7928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929  (eval $ac_try) 2>&5
7930  ac_status=$?
7931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932  (exit $ac_status); }; } &&
7933         { ac_try='test -s conftest$ac_exeext'
7934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935  (eval $ac_try) 2>&5
7936  ac_status=$?
7937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938  (exit $ac_status); }; }; then
7939  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7940else
7941  echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7945fi
7946rm -f conftest.err conftest.$ac_objext \
7947      conftest$ac_exeext conftest.$ac_ext
7948LIBS=$ac_check_lib_save_LIBS
7949fi
7950echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7951echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7952if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7953  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
7954fi
7955
7956     if test x$FOUND_SDL_ttf != xyes ; then
7957        echo "------------------"
7958        echo "SDL_ttf library not found."
7959        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7960        echo "------------------"
7961        exit -1
7962     fi
7963
7964#-----------#
7965# SDL_Image #
7966#-----------#
7967# checking for SDL_image-headers
7968
7969for ac_header in SDL_image.h
7970do
7971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7972if eval "test \"\${$as_ac_Header+set}\" = set"; then
7973  echo "$as_me:$LINENO: checking for $ac_header" >&5
7974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7975if eval "test \"\${$as_ac_Header+set}\" = set"; then
7976  echo $ECHO_N "(cached) $ECHO_C" >&6
7977fi
7978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7980else
7981  # Is the header compilable?
7982echo "$as_me:$LINENO: checking $ac_header usability" >&5
7983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7984cat >conftest.$ac_ext <<_ACEOF
7985/* confdefs.h.  */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h.  */
7990$ac_includes_default
7991#include <$ac_header>
7992_ACEOF
7993rm -f conftest.$ac_objext
7994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7995  (eval $ac_compile) 2>conftest.er1
7996  ac_status=$?
7997  grep -v '^ *+' conftest.er1 >conftest.err
7998  rm -f conftest.er1
7999  cat conftest.err >&5
8000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001  (exit $ac_status); } &&
8002         { ac_try='test -z "$ac_c_werror_flag"
8003                         || test ! -s conftest.err'
8004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005  (eval $ac_try) 2>&5
8006  ac_status=$?
8007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008  (exit $ac_status); }; } &&
8009         { ac_try='test -s conftest.$ac_objext'
8010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011  (eval $ac_try) 2>&5
8012  ac_status=$?
8013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014  (exit $ac_status); }; }; then
8015  ac_header_compiler=yes
8016else
8017  echo "$as_me: failed program was:" >&5
8018sed 's/^/| /' conftest.$ac_ext >&5
8019
8020ac_header_compiler=no
8021fi
8022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8024echo "${ECHO_T}$ac_header_compiler" >&6
8025
8026# Is the header present?
8027echo "$as_me:$LINENO: checking $ac_header presence" >&5
8028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8029cat >conftest.$ac_ext <<_ACEOF
8030/* confdefs.h.  */
8031_ACEOF
8032cat confdefs.h >>conftest.$ac_ext
8033cat >>conftest.$ac_ext <<_ACEOF
8034/* end confdefs.h.  */
8035#include <$ac_header>
8036_ACEOF
8037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8038  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8039  ac_status=$?
8040  grep -v '^ *+' conftest.er1 >conftest.err
8041  rm -f conftest.er1
8042  cat conftest.err >&5
8043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044  (exit $ac_status); } >/dev/null; then
8045  if test -s conftest.err; then
8046    ac_cpp_err=$ac_c_preproc_warn_flag
8047    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8048  else
8049    ac_cpp_err=
8050  fi
8051else
8052  ac_cpp_err=yes
8053fi
8054if test -z "$ac_cpp_err"; then
8055  ac_header_preproc=yes
8056else
8057  echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
8060  ac_header_preproc=no
8061fi
8062rm -f conftest.err conftest.$ac_ext
8063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8064echo "${ECHO_T}$ac_header_preproc" >&6
8065
8066# So?  What about this header?
8067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8068  yes:no: )
8069    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8071    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8073    ac_header_preproc=yes
8074    ;;
8075  no:yes:* )
8076    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8078    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8079echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8080    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8082    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8083echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8084    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8086    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8088    (
8089      cat <<\_ASBOX
8090## ---------------------------------------------- ##
8091## Report this to orxonox-dev at mail.datacore.ch ##
8092## ---------------------------------------------- ##
8093_ASBOX
8094    ) |
8095      sed "s/^/$as_me: WARNING:     /" >&2
8096    ;;
8097esac
8098echo "$as_me:$LINENO: checking for $ac_header" >&5
8099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8100if eval "test \"\${$as_ac_Header+set}\" = set"; then
8101  echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
8103  eval "$as_ac_Header=\$ac_header_preproc"
8104fi
8105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8107
8108fi
8109if test `eval echo '${'$as_ac_Header'}'` = yes; then
8110  cat >>confdefs.h <<_ACEOF
8111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8112_ACEOF
8113
8114else
8115
8116for ac_header in SDL/SDL_image.h
8117do
8118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8119if eval "test \"\${$as_ac_Header+set}\" = set"; then
8120  echo "$as_me:$LINENO: checking for $ac_header" >&5
8121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8122if eval "test \"\${$as_ac_Header+set}\" = set"; then
8123  echo $ECHO_N "(cached) $ECHO_C" >&6
8124fi
8125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8127else
8128  # Is the header compilable?
8129echo "$as_me:$LINENO: checking $ac_header usability" >&5
8130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8131cat >conftest.$ac_ext <<_ACEOF
8132/* confdefs.h.  */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h.  */
8137$ac_includes_default
8138#include <$ac_header>
8139_ACEOF
8140rm -f conftest.$ac_objext
8141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142  (eval $ac_compile) 2>conftest.er1
8143  ac_status=$?
8144  grep -v '^ *+' conftest.er1 >conftest.err
8145  rm -f conftest.er1
8146  cat conftest.err >&5
8147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148  (exit $ac_status); } &&
8149         { ac_try='test -z "$ac_c_werror_flag"
8150                         || test ! -s conftest.err'
8151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152  (eval $ac_try) 2>&5
8153  ac_status=$?
8154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155  (exit $ac_status); }; } &&
8156         { ac_try='test -s conftest.$ac_objext'
8157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158  (eval $ac_try) 2>&5
8159  ac_status=$?
8160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161  (exit $ac_status); }; }; then
8162  ac_header_compiler=yes
8163else
8164  echo "$as_me: failed program was:" >&5
8165sed 's/^/| /' conftest.$ac_ext >&5
8166
8167ac_header_compiler=no
8168fi
8169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8171echo "${ECHO_T}$ac_header_compiler" >&6
8172
8173# Is the header present?
8174echo "$as_me:$LINENO: checking $ac_header presence" >&5
8175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8176cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h.  */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h.  */
8182#include <$ac_header>
8183_ACEOF
8184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8185  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8186  ac_status=$?
8187  grep -v '^ *+' conftest.er1 >conftest.err
8188  rm -f conftest.er1
8189  cat conftest.err >&5
8190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191  (exit $ac_status); } >/dev/null; then
8192  if test -s conftest.err; then
8193    ac_cpp_err=$ac_c_preproc_warn_flag
8194    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8195  else
8196    ac_cpp_err=
8197  fi
8198else
8199  ac_cpp_err=yes
8200fi
8201if test -z "$ac_cpp_err"; then
8202  ac_header_preproc=yes
8203else
8204  echo "$as_me: failed program was:" >&5
8205sed 's/^/| /' conftest.$ac_ext >&5
8206
8207  ac_header_preproc=no
8208fi
8209rm -f conftest.err conftest.$ac_ext
8210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8211echo "${ECHO_T}$ac_header_preproc" >&6
8212
8213# So?  What about this header?
8214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8215  yes:no: )
8216    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8220    ac_header_preproc=yes
8221    ;;
8222  no:yes:* )
8223    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8225    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8226echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8227    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8229    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8230echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8231    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8233    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8235    (
8236      cat <<\_ASBOX
8237## ---------------------------------------------- ##
8238## Report this to orxonox-dev at mail.datacore.ch ##
8239## ---------------------------------------------- ##
8240_ASBOX
8241    ) |
8242      sed "s/^/$as_me: WARNING:     /" >&2
8243    ;;
8244esac
8245echo "$as_me:$LINENO: checking for $ac_header" >&5
8246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8247if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248  echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250  eval "$as_ac_Header=\$ac_header_preproc"
8251fi
8252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8254
8255fi
8256if test `eval echo '${'$as_ac_Header'}'` = yes; then
8257  cat >>confdefs.h <<_ACEOF
8258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8259_ACEOF
8260
8261else
8262  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8263echo "$as_me: error: SDL_image header not found." >&2;}
8264   { (exit 1); exit 1; }; }
8265fi
8266
8267done
8268
8269fi
8270
8271done
8272
8273# checking for SDL_image-lib
8274echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8275echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8276if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8277  echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279  ac_check_lib_save_LIBS=$LIBS
8280LIBS="-lSDL_image  $LIBS"
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
8288
8289int
8290main ()
8291{
8292main ();
8293  ;
8294  return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
8298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299  (eval $ac_link) 2>conftest.er1
8300  ac_status=$?
8301  grep -v '^ *+' conftest.er1 >conftest.err
8302  rm -f conftest.er1
8303  cat conftest.err >&5
8304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); } &&
8306         { ac_try='test -z "$ac_c_werror_flag"
8307                         || test ! -s conftest.err'
8308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309  (eval $ac_try) 2>&5
8310  ac_status=$?
8311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312  (exit $ac_status); }; } &&
8313         { ac_try='test -s conftest$ac_exeext'
8314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315  (eval $ac_try) 2>&5
8316  ac_status=$?
8317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318  (exit $ac_status); }; }; then
8319  ac_cv_lib_SDL_image_main=yes
8320else
8321  echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
8324ac_cv_lib_SDL_image_main=no
8325fi
8326rm -f conftest.err conftest.$ac_objext \
8327      conftest$ac_exeext conftest.$ac_ext
8328LIBS=$ac_check_lib_save_LIBS
8329fi
8330echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8331echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8332if test $ac_cv_lib_SDL_image_main = yes; then
8333  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
8334fi
8335
8336   if test x$FOUND_SDL_image != xyes ; then
8337      echo "------------------"
8338      echo "SDL_image library not found."
8339      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
8340      echo "------------------"
8341      exit -1
8342   fi
8343
8344#-----#
8345# ogg #
8346#-----#
8347# checking for ogg-headers
8348
8349for ac_header in ogg/ogg.h
8350do
8351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8352if eval "test \"\${$as_ac_Header+set}\" = set"; then
8353  echo "$as_me:$LINENO: checking for $ac_header" >&5
8354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8355if eval "test \"\${$as_ac_Header+set}\" = set"; then
8356  echo $ECHO_N "(cached) $ECHO_C" >&6
8357fi
8358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360else
8361  # Is the header compilable?
8362echo "$as_me:$LINENO: checking $ac_header usability" >&5
8363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8364cat >conftest.$ac_ext <<_ACEOF
8365/* confdefs.h.  */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h.  */
8370$ac_includes_default
8371#include <$ac_header>
8372_ACEOF
8373rm -f conftest.$ac_objext
8374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8375  (eval $ac_compile) 2>conftest.er1
8376  ac_status=$?
8377  grep -v '^ *+' conftest.er1 >conftest.err
8378  rm -f conftest.er1
8379  cat conftest.err >&5
8380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381  (exit $ac_status); } &&
8382         { ac_try='test -z "$ac_c_werror_flag"
8383                         || test ! -s conftest.err'
8384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385  (eval $ac_try) 2>&5
8386  ac_status=$?
8387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388  (exit $ac_status); }; } &&
8389         { ac_try='test -s conftest.$ac_objext'
8390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391  (eval $ac_try) 2>&5
8392  ac_status=$?
8393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394  (exit $ac_status); }; }; then
8395  ac_header_compiler=yes
8396else
8397  echo "$as_me: failed program was:" >&5
8398sed 's/^/| /' conftest.$ac_ext >&5
8399
8400ac_header_compiler=no
8401fi
8402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8404echo "${ECHO_T}$ac_header_compiler" >&6
8405
8406# Is the header present?
8407echo "$as_me:$LINENO: checking $ac_header presence" >&5
8408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8409cat >conftest.$ac_ext <<_ACEOF
8410/* confdefs.h.  */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h.  */
8415#include <$ac_header>
8416_ACEOF
8417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8418  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8419  ac_status=$?
8420  grep -v '^ *+' conftest.er1 >conftest.err
8421  rm -f conftest.er1
8422  cat conftest.err >&5
8423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424  (exit $ac_status); } >/dev/null; then
8425  if test -s conftest.err; then
8426    ac_cpp_err=$ac_c_preproc_warn_flag
8427    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8428  else
8429    ac_cpp_err=
8430  fi
8431else
8432  ac_cpp_err=yes
8433fi
8434if test -z "$ac_cpp_err"; then
8435  ac_header_preproc=yes
8436else
8437  echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
8440  ac_header_preproc=no
8441fi
8442rm -f conftest.err conftest.$ac_ext
8443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8444echo "${ECHO_T}$ac_header_preproc" >&6
8445
8446# So?  What about this header?
8447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8448  yes:no: )
8449    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8451    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8453    ac_header_preproc=yes
8454    ;;
8455  no:yes:* )
8456    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8458    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8459echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8460    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8462    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8463echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8464    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8466    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8468    (
8469      cat <<\_ASBOX
8470## ---------------------------------------------- ##
8471## Report this to orxonox-dev at mail.datacore.ch ##
8472## ---------------------------------------------- ##
8473_ASBOX
8474    ) |
8475      sed "s/^/$as_me: WARNING:     /" >&2
8476    ;;
8477esac
8478echo "$as_me:$LINENO: checking for $ac_header" >&5
8479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8480if eval "test \"\${$as_ac_Header+set}\" = set"; then
8481  echo $ECHO_N "(cached) $ECHO_C" >&6
8482else
8483  eval "$as_ac_Header=\$ac_header_preproc"
8484fi
8485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8487
8488fi
8489if test `eval echo '${'$as_ac_Header'}'` = yes; then
8490  cat >>confdefs.h <<_ACEOF
8491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8492_ACEOF
8493
8494else
8495  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
8496echo "$as_me: error: cannot find ogg header." >&2;}
8497   { (exit 1); exit 1; }; }
8498fi
8499
8500done
8501
8502# checking for ogg-lib
8503  echo "$as_me:$LINENO: checking for main in -logg" >&5
8504echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
8505if test "${ac_cv_lib_ogg_main+set}" = set; then
8506  echo $ECHO_N "(cached) $ECHO_C" >&6
8507else
8508  ac_check_lib_save_LIBS=$LIBS
8509LIBS="-logg  $LIBS"
8510cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h.  */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h.  */
8516
8517
8518int
8519main ()
8520{
8521main ();
8522  ;
8523  return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext conftest$ac_exeext
8527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528  (eval $ac_link) 2>conftest.er1
8529  ac_status=$?
8530  grep -v '^ *+' conftest.er1 >conftest.err
8531  rm -f conftest.er1
8532  cat conftest.err >&5
8533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534  (exit $ac_status); } &&
8535         { ac_try='test -z "$ac_c_werror_flag"
8536                         || test ! -s conftest.err'
8537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538  (eval $ac_try) 2>&5
8539  ac_status=$?
8540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541  (exit $ac_status); }; } &&
8542         { ac_try='test -s conftest$ac_exeext'
8543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544  (eval $ac_try) 2>&5
8545  ac_status=$?
8546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547  (exit $ac_status); }; }; then
8548  ac_cv_lib_ogg_main=yes
8549else
8550  echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553ac_cv_lib_ogg_main=no
8554fi
8555rm -f conftest.err conftest.$ac_objext \
8556      conftest$ac_exeext conftest.$ac_ext
8557LIBS=$ac_check_lib_save_LIBS
8558fi
8559echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
8560echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
8561if test $ac_cv_lib_ogg_main = yes; then
8562  FOUND_ogg=yes; LIBS="$LIBS -logg"
8563fi
8564
8565     if test x$FOUND_ogg != xyes ; then
8566        echo "------------------"
8567        echo "ogg library not found."
8568        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8569        echo "------------------"
8570        exit -1
8571     fi
8572
8573#--------#
8574# vorbis #
8575#--------#
8576# checking for vorbis-lib
8577  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
8578echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
8579if test "${ac_cv_lib_vorbis_main+set}" = set; then
8580  echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582  ac_check_lib_save_LIBS=$LIBS
8583LIBS="-lvorbis  $LIBS"
8584cat >conftest.$ac_ext <<_ACEOF
8585/* confdefs.h.  */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h.  */
8590
8591
8592int
8593main ()
8594{
8595main ();
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_vorbis_main=yes
8623else
8624  echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627ac_cv_lib_vorbis_main=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_vorbis_main" >&5
8634echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
8635if test $ac_cv_lib_vorbis_main = yes; then
8636  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
8637fi
8638
8639     if test x$FOUND_vorbis != xyes ; then
8640        echo "------------------"
8641        echo "vorbis library not found."
8642        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8643        echo "------------------"
8644        exit -1
8645     fi
8646
8647#------------#
8648# vorbisfile #
8649#------------#
8650# checking for vorbis-headers
8651
8652for ac_header in vorbis/vorbisfile.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  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8799echo "$as_me: error: cannot find vorbisfile header." >&2;}
8800   { (exit 1); exit 1; }; }
8801fi
8802
8803done
8804
8805# checking for vorbisfile-lib
8806  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8807echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8808if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8809  echo $ECHO_N "(cached) $ECHO_C" >&6
8810else
8811  ac_check_lib_save_LIBS=$LIBS
8812LIBS="-lvorbisfile  $LIBS"
8813cat >conftest.$ac_ext <<_ACEOF
8814/* confdefs.h.  */
8815_ACEOF
8816cat confdefs.h >>conftest.$ac_ext
8817cat >>conftest.$ac_ext <<_ACEOF
8818/* end confdefs.h.  */
8819
8820
8821int
8822main ()
8823{
8824main ();
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829rm -f conftest.$ac_objext conftest$ac_exeext
8830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831  (eval $ac_link) 2>conftest.er1
8832  ac_status=$?
8833  grep -v '^ *+' conftest.er1 >conftest.err
8834  rm -f conftest.er1
8835  cat conftest.err >&5
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); } &&
8838         { ac_try='test -z "$ac_c_werror_flag"
8839                         || test ! -s conftest.err'
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); }; } &&
8845         { ac_try='test -s conftest$ac_exeext'
8846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847  (eval $ac_try) 2>&5
8848  ac_status=$?
8849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850  (exit $ac_status); }; }; then
8851  ac_cv_lib_vorbisfile_main=yes
8852else
8853  echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856ac_cv_lib_vorbisfile_main=no
8857fi
8858rm -f conftest.err conftest.$ac_objext \
8859      conftest$ac_exeext conftest.$ac_ext
8860LIBS=$ac_check_lib_save_LIBS
8861fi
8862echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8863echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8864if test $ac_cv_lib_vorbisfile_main = yes; then
8865  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
8866fi
8867
8868     if test x$FOUND_vorbisfile != xyes ; then
8869        echo "------------------"
8870        echo "vorbisfile library not found."
8871        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8872        echo "------------------"
8873        exit -1
8874     fi
8875
8876
8877#---------#
8878# libcURL #
8879#---------#
8880if test x$def_curl = xyes; then
8881
8882for ac_header in curl/curl.h
8883do
8884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8885if eval "test \"\${$as_ac_Header+set}\" = set"; then
8886  echo "$as_me:$LINENO: checking for $ac_header" >&5
8887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889  echo $ECHO_N "(cached) $ECHO_C" >&6
8890fi
8891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8893else
8894  # Is the header compilable?
8895echo "$as_me:$LINENO: checking $ac_header usability" >&5
8896echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8897cat >conftest.$ac_ext <<_ACEOF
8898/* confdefs.h.  */
8899_ACEOF
8900cat confdefs.h >>conftest.$ac_ext
8901cat >>conftest.$ac_ext <<_ACEOF
8902/* end confdefs.h.  */
8903$ac_includes_default
8904#include <$ac_header>
8905_ACEOF
8906rm -f conftest.$ac_objext
8907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908  (eval $ac_compile) 2>conftest.er1
8909  ac_status=$?
8910  grep -v '^ *+' conftest.er1 >conftest.err
8911  rm -f conftest.er1
8912  cat conftest.err >&5
8913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914  (exit $ac_status); } &&
8915         { ac_try='test -z "$ac_c_werror_flag"
8916                         || test ! -s conftest.err'
8917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918  (eval $ac_try) 2>&5
8919  ac_status=$?
8920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921  (exit $ac_status); }; } &&
8922         { ac_try='test -s conftest.$ac_objext'
8923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924  (eval $ac_try) 2>&5
8925  ac_status=$?
8926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927  (exit $ac_status); }; }; then
8928  ac_header_compiler=yes
8929else
8930  echo "$as_me: failed program was:" >&5
8931sed 's/^/| /' conftest.$ac_ext >&5
8932
8933ac_header_compiler=no
8934fi
8935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8936echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8937echo "${ECHO_T}$ac_header_compiler" >&6
8938
8939# Is the header present?
8940echo "$as_me:$LINENO: checking $ac_header presence" >&5
8941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8942cat >conftest.$ac_ext <<_ACEOF
8943/* confdefs.h.  */
8944_ACEOF
8945cat confdefs.h >>conftest.$ac_ext
8946cat >>conftest.$ac_ext <<_ACEOF
8947/* end confdefs.h.  */
8948#include <$ac_header>
8949_ACEOF
8950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8951  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8952  ac_status=$?
8953  grep -v '^ *+' conftest.er1 >conftest.err
8954  rm -f conftest.er1
8955  cat conftest.err >&5
8956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957  (exit $ac_status); } >/dev/null; then
8958  if test -s conftest.err; then
8959    ac_cpp_err=$ac_c_preproc_warn_flag
8960    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8961  else
8962    ac_cpp_err=
8963  fi
8964else
8965  ac_cpp_err=yes
8966fi
8967if test -z "$ac_cpp_err"; then
8968  ac_header_preproc=yes
8969else
8970  echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973  ac_header_preproc=no
8974fi
8975rm -f conftest.err conftest.$ac_ext
8976echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8977echo "${ECHO_T}$ac_header_preproc" >&6
8978
8979# So?  What about this header?
8980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8981  yes:no: )
8982    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8983echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8984    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8985echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8986    ac_header_preproc=yes
8987    ;;
8988  no:yes:* )
8989    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8990echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8991    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8992echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8993    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8994echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8995    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8996echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8997    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8999    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9000echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9001    (
9002      cat <<\_ASBOX
9003## ---------------------------------------------- ##
9004## Report this to orxonox-dev at mail.datacore.ch ##
9005## ---------------------------------------------- ##
9006_ASBOX
9007    ) |
9008      sed "s/^/$as_me: WARNING:     /" >&2
9009    ;;
9010esac
9011echo "$as_me:$LINENO: checking for $ac_header" >&5
9012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9013if eval "test \"\${$as_ac_Header+set}\" = set"; then
9014  echo $ECHO_N "(cached) $ECHO_C" >&6
9015else
9016  eval "$as_ac_Header=\$ac_header_preproc"
9017fi
9018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9020
9021fi
9022if test `eval echo '${'$as_ac_Header'}'` = yes; then
9023  cat >>confdefs.h <<_ACEOF
9024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9025_ACEOF
9026 curlHeader=yes
9027else
9028  curlHeader=no
9029fi
9030
9031done
9032
9033 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9034echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9035if test "${ac_cv_lib_curl_main+set}" = set; then
9036  echo $ECHO_N "(cached) $ECHO_C" >&6
9037else
9038  ac_check_lib_save_LIBS=$LIBS
9039LIBS="-lcurl  $LIBS"
9040cat >conftest.$ac_ext <<_ACEOF
9041/* confdefs.h.  */
9042_ACEOF
9043cat confdefs.h >>conftest.$ac_ext
9044cat >>conftest.$ac_ext <<_ACEOF
9045/* end confdefs.h.  */
9046
9047
9048int
9049main ()
9050{
9051main ();
9052  ;
9053  return 0;
9054}
9055_ACEOF
9056rm -f conftest.$ac_objext conftest$ac_exeext
9057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058  (eval $ac_link) 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_exeext'
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_cv_lib_curl_main=yes
9079else
9080  echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
9083ac_cv_lib_curl_main=no
9084fi
9085rm -f conftest.err conftest.$ac_objext \
9086      conftest$ac_exeext conftest.$ac_ext
9087LIBS=$ac_check_lib_save_LIBS
9088fi
9089echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9090echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9091if test $ac_cv_lib_curl_main = yes; then
9092  FOUND_curl=yes
9093fi
9094
9095 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
9096  have_curl=yes
9097  CURL_LIBS=`curl-config --libs`
9098  CURLCFLAGS=`curl-config --cflags`
9099
9100cat >>confdefs.h <<_ACEOF
9101#define HAVE_CURL 1
9102_ACEOF
9103
9104 else
9105  have_curl=no
9106 fi
9107
9108fi
9109
9110
9111
9112
9113if test x$have_curl = xyes; then
9114  HAVE_CURL_TRUE=
9115  HAVE_CURL_FALSE='#'
9116else
9117  HAVE_CURL_TRUE='#'
9118  HAVE_CURL_FALSE=
9119fi
9120
9121
9122#--------#
9123# efence #
9124#--------#
9125if test x$def_efence = xyes ; then
9126  echo "$as_me:$LINENO: checking for main in -lefence" >&5
9127echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9128if test "${ac_cv_lib_efence_main+set}" = set; then
9129  echo $ECHO_N "(cached) $ECHO_C" >&6
9130else
9131  ac_check_lib_save_LIBS=$LIBS
9132LIBS="-lefence  $LIBS"
9133cat >conftest.$ac_ext <<_ACEOF
9134/* confdefs.h.  */
9135_ACEOF
9136cat confdefs.h >>conftest.$ac_ext
9137cat >>conftest.$ac_ext <<_ACEOF
9138/* end confdefs.h.  */
9139
9140
9141int
9142main ()
9143{
9144main ();
9145  ;
9146  return 0;
9147}
9148_ACEOF
9149rm -f conftest.$ac_objext conftest$ac_exeext
9150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151  (eval $ac_link) 2>conftest.er1
9152  ac_status=$?
9153  grep -v '^ *+' conftest.er1 >conftest.err
9154  rm -f conftest.er1
9155  cat conftest.err >&5
9156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); } &&
9158         { ac_try='test -z "$ac_c_werror_flag"
9159                         || test ! -s conftest.err'
9160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161  (eval $ac_try) 2>&5
9162  ac_status=$?
9163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164  (exit $ac_status); }; } &&
9165         { ac_try='test -s conftest$ac_exeext'
9166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167  (eval $ac_try) 2>&5
9168  ac_status=$?
9169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170  (exit $ac_status); }; }; then
9171  ac_cv_lib_efence_main=yes
9172else
9173  echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
9175
9176ac_cv_lib_efence_main=no
9177fi
9178rm -f conftest.err conftest.$ac_objext \
9179      conftest$ac_exeext conftest.$ac_ext
9180LIBS=$ac_check_lib_save_LIBS
9181fi
9182echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9183echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9184if test $ac_cv_lib_efence_main = yes; then
9185  FOUND_efence=yes; LIBS="$LIBS -lefence"
9186fi
9187
9188   if test x$FOUND_efence != xyes ; then
9189     echo "efence was requested, but is not installed!! going on"
9190   fi
9191
9192fi
9193
9194#-----#
9195# GTK #
9196#-----#
9197if test x$def_gtk = xyes; then
9198#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
9199        echo "$as_me:$LINENO: checking for gtk2.0" >&5
9200echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
9201        if `$PKG_CONFIG --exists gtk+-2.0`; then
9202                echo "yes"
9203                have_gtk2=yes
9204                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9205                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9206
9207cat >>confdefs.h <<_ACEOF
9208#define HAVE_GTK2 1
9209_ACEOF
9210
9211                if test $DEBUG -ge 3; then
9212                 echo "cflags: $GTK2_CFLAGS"
9213                 echo "libs: $GTK2_LIBS"
9214                fi
9215        else
9216                echo "no"
9217        fi
9218
9219fi
9220
9221
9222
9223
9224if test x$have_gtk2 = xyes; then
9225  HAVE_GTK2_TRUE=
9226  HAVE_GTK2_FALSE='#'
9227else
9228  HAVE_GTK2_TRUE='#'
9229  HAVE_GTK2_FALSE=
9230fi
9231
9232
9233
9234# FIXME: Replace `main' with a function in `-lm':
9235
9236echo "$as_me:$LINENO: checking for main in -lm" >&5
9237echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9238if test "${ac_cv_lib_m_main+set}" = set; then
9239  echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241  ac_check_lib_save_LIBS=$LIBS
9242LIBS="-lm  $LIBS"
9243cat >conftest.$ac_ext <<_ACEOF
9244/* confdefs.h.  */
9245_ACEOF
9246cat confdefs.h >>conftest.$ac_ext
9247cat >>conftest.$ac_ext <<_ACEOF
9248/* end confdefs.h.  */
9249
9250
9251int
9252main ()
9253{
9254main ();
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259rm -f conftest.$ac_objext conftest$ac_exeext
9260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261  (eval $ac_link) 2>conftest.er1
9262  ac_status=$?
9263  grep -v '^ *+' conftest.er1 >conftest.err
9264  rm -f conftest.er1
9265  cat conftest.err >&5
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); } &&
9268         { ac_try='test -z "$ac_c_werror_flag"
9269                         || test ! -s conftest.err'
9270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271  (eval $ac_try) 2>&5
9272  ac_status=$?
9273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274  (exit $ac_status); }; } &&
9275         { ac_try='test -s conftest$ac_exeext'
9276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277  (eval $ac_try) 2>&5
9278  ac_status=$?
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); }; }; then
9281  ac_cv_lib_m_main=yes
9282else
9283  echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286ac_cv_lib_m_main=no
9287fi
9288rm -f conftest.err conftest.$ac_objext \
9289      conftest$ac_exeext conftest.$ac_ext
9290LIBS=$ac_check_lib_save_LIBS
9291fi
9292echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9293echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9294if test $ac_cv_lib_m_main = yes; then
9295  cat >>confdefs.h <<_ACEOF
9296#define HAVE_LIBM 1
9297_ACEOF
9298
9299  LIBS="-lm $LIBS"
9300
9301fi
9302
9303
9304
9305# Checks for header files.
9306echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9307echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9308if test "${ac_cv_header_stdc+set}" = set; then
9309  echo $ECHO_N "(cached) $ECHO_C" >&6
9310else
9311  cat >conftest.$ac_ext <<_ACEOF
9312/* confdefs.h.  */
9313_ACEOF
9314cat confdefs.h >>conftest.$ac_ext
9315cat >>conftest.$ac_ext <<_ACEOF
9316/* end confdefs.h.  */
9317#include <stdlib.h>
9318#include <stdarg.h>
9319#include <string.h>
9320#include <float.h>
9321
9322int
9323main ()
9324{
9325
9326  ;
9327  return 0;
9328}
9329_ACEOF
9330rm -f conftest.$ac_objext
9331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9332  (eval $ac_compile) 2>conftest.er1
9333  ac_status=$?
9334  grep -v '^ *+' conftest.er1 >conftest.err
9335  rm -f conftest.er1
9336  cat conftest.err >&5
9337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338  (exit $ac_status); } &&
9339         { ac_try='test -z "$ac_c_werror_flag"
9340                         || test ! -s conftest.err'
9341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342  (eval $ac_try) 2>&5
9343  ac_status=$?
9344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345  (exit $ac_status); }; } &&
9346         { ac_try='test -s conftest.$ac_objext'
9347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348  (eval $ac_try) 2>&5
9349  ac_status=$?
9350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351  (exit $ac_status); }; }; then
9352  ac_cv_header_stdc=yes
9353else
9354  echo "$as_me: failed program was:" >&5
9355sed 's/^/| /' conftest.$ac_ext >&5
9356
9357ac_cv_header_stdc=no
9358fi
9359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9360
9361if test $ac_cv_header_stdc = yes; then
9362  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9363  cat >conftest.$ac_ext <<_ACEOF
9364/* confdefs.h.  */
9365_ACEOF
9366cat confdefs.h >>conftest.$ac_ext
9367cat >>conftest.$ac_ext <<_ACEOF
9368/* end confdefs.h.  */
9369#include <string.h>
9370
9371_ACEOF
9372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9373  $EGREP "memchr" >/dev/null 2>&1; then
9374  :
9375else
9376  ac_cv_header_stdc=no
9377fi
9378rm -f conftest*
9379
9380fi
9381
9382if test $ac_cv_header_stdc = yes; then
9383  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9384  cat >conftest.$ac_ext <<_ACEOF
9385/* confdefs.h.  */
9386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext
9388cat >>conftest.$ac_ext <<_ACEOF
9389/* end confdefs.h.  */
9390#include <stdlib.h>
9391
9392_ACEOF
9393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9394  $EGREP "free" >/dev/null 2>&1; then
9395  :
9396else
9397  ac_cv_header_stdc=no
9398fi
9399rm -f conftest*
9400
9401fi
9402
9403if test $ac_cv_header_stdc = yes; then
9404  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9405  if test "$cross_compiling" = yes; then
9406  :
9407else
9408  cat >conftest.$ac_ext <<_ACEOF
9409/* confdefs.h.  */
9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h.  */
9414#include <ctype.h>
9415#if ((' ' & 0x0FF) == 0x020)
9416# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9417# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9418#else
9419# define ISLOWER(c) \
9420                   (('a' <= (c) && (c) <= 'i') \
9421                     || ('j' <= (c) && (c) <= 'r') \
9422                     || ('s' <= (c) && (c) <= 'z'))
9423# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9424#endif
9425
9426#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9427int
9428main ()
9429{
9430  int i;
9431  for (i = 0; i < 256; i++)
9432    if (XOR (islower (i), ISLOWER (i))
9433        || toupper (i) != TOUPPER (i))
9434      exit(2);
9435  exit (0);
9436}
9437_ACEOF
9438rm -f conftest$ac_exeext
9439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440  (eval $ac_link) 2>&5
9441  ac_status=$?
9442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445  (eval $ac_try) 2>&5
9446  ac_status=$?
9447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448  (exit $ac_status); }; }; then
9449  :
9450else
9451  echo "$as_me: program exited with status $ac_status" >&5
9452echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455( exit $ac_status )
9456ac_cv_header_stdc=no
9457fi
9458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9459fi
9460fi
9461fi
9462echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9463echo "${ECHO_T}$ac_cv_header_stdc" >&6
9464if test $ac_cv_header_stdc = yes; then
9465
9466cat >>confdefs.h <<\_ACEOF
9467#define STDC_HEADERS 1
9468_ACEOF
9469
9470fi
9471
9472
9473
9474for ac_header in stdlib.h string.h
9475do
9476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9477if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478  echo "$as_me:$LINENO: checking for $ac_header" >&5
9479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9480if eval "test \"\${$as_ac_Header+set}\" = set"; then
9481  echo $ECHO_N "(cached) $ECHO_C" >&6
9482fi
9483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9485else
9486  # Is the header compilable?
9487echo "$as_me:$LINENO: checking $ac_header usability" >&5
9488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9489cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h.  */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h.  */
9495$ac_includes_default
9496#include <$ac_header>
9497_ACEOF
9498rm -f conftest.$ac_objext
9499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500  (eval $ac_compile) 2>conftest.er1
9501  ac_status=$?
9502  grep -v '^ *+' conftest.er1 >conftest.err
9503  rm -f conftest.er1
9504  cat conftest.err >&5
9505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506  (exit $ac_status); } &&
9507         { ac_try='test -z "$ac_c_werror_flag"
9508                         || test ! -s conftest.err'
9509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510  (eval $ac_try) 2>&5
9511  ac_status=$?
9512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513  (exit $ac_status); }; } &&
9514         { ac_try='test -s conftest.$ac_objext'
9515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516  (eval $ac_try) 2>&5
9517  ac_status=$?
9518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519  (exit $ac_status); }; }; then
9520  ac_header_compiler=yes
9521else
9522  echo "$as_me: failed program was:" >&5
9523sed 's/^/| /' conftest.$ac_ext >&5
9524
9525ac_header_compiler=no
9526fi
9527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9529echo "${ECHO_T}$ac_header_compiler" >&6
9530
9531# Is the header present?
9532echo "$as_me:$LINENO: checking $ac_header presence" >&5
9533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9534cat >conftest.$ac_ext <<_ACEOF
9535/* confdefs.h.  */
9536_ACEOF
9537cat confdefs.h >>conftest.$ac_ext
9538cat >>conftest.$ac_ext <<_ACEOF
9539/* end confdefs.h.  */
9540#include <$ac_header>
9541_ACEOF
9542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9543  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9544  ac_status=$?
9545  grep -v '^ *+' conftest.er1 >conftest.err
9546  rm -f conftest.er1
9547  cat conftest.err >&5
9548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549  (exit $ac_status); } >/dev/null; then
9550  if test -s conftest.err; then
9551    ac_cpp_err=$ac_c_preproc_warn_flag
9552    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9553  else
9554    ac_cpp_err=
9555  fi
9556else
9557  ac_cpp_err=yes
9558fi
9559if test -z "$ac_cpp_err"; then
9560  ac_header_preproc=yes
9561else
9562  echo "$as_me: failed program was:" >&5
9563sed 's/^/| /' conftest.$ac_ext >&5
9564
9565  ac_header_preproc=no
9566fi
9567rm -f conftest.err conftest.$ac_ext
9568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9569echo "${ECHO_T}$ac_header_preproc" >&6
9570
9571# So?  What about this header?
9572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9573  yes:no: )
9574    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9576    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9578    ac_header_preproc=yes
9579    ;;
9580  no:yes:* )
9581    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9583    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9584echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9585    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9587    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9588echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9589    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9591    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9593    (
9594      cat <<\_ASBOX
9595## ---------------------------------------------- ##
9596## Report this to orxonox-dev at mail.datacore.ch ##
9597## ---------------------------------------------- ##
9598_ASBOX
9599    ) |
9600      sed "s/^/$as_me: WARNING:     /" >&2
9601    ;;
9602esac
9603echo "$as_me:$LINENO: checking for $ac_header" >&5
9604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9605if eval "test \"\${$as_ac_Header+set}\" = set"; then
9606  echo $ECHO_N "(cached) $ECHO_C" >&6
9607else
9608  eval "$as_ac_Header=\$ac_header_preproc"
9609fi
9610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9612
9613fi
9614if test `eval echo '${'$as_ac_Header'}'` = yes; then
9615  cat >>confdefs.h <<_ACEOF
9616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9617_ACEOF
9618
9619fi
9620
9621done
9622
9623
9624# Checks for typedefs, structures, and compiler characteristics.
9625echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9626echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9627if test "${ac_cv_header_stdbool_h+set}" = set; then
9628  echo $ECHO_N "(cached) $ECHO_C" >&6
9629else
9630  cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h.  */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h.  */
9636
9637#include <stdbool.h>
9638#ifndef bool
9639# error bool is not defined
9640#endif
9641#ifndef false
9642# error false is not defined
9643#endif
9644#if false
9645# error false is not 0
9646#endif
9647#ifndef true
9648# error true is not defined
9649#endif
9650#if true != 1
9651# error true is not 1
9652#endif
9653#ifndef __bool_true_false_are_defined
9654# error __bool_true_false_are_defined is not defined
9655#endif
9656
9657        struct s { _Bool s: 1; _Bool t; } s;
9658
9659        char a[true == 1 ? 1 : -1];
9660        char b[false == 0 ? 1 : -1];
9661        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9662        char d[(bool) -0.5 == true ? 1 : -1];
9663        bool e = &s;
9664        char f[(_Bool) -0.0 == false ? 1 : -1];
9665        char g[true];
9666        char h[sizeof (_Bool)];
9667        char i[sizeof s.t];
9668
9669int
9670main ()
9671{
9672 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9673  ;
9674  return 0;
9675}
9676_ACEOF
9677rm -f conftest.$ac_objext
9678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679  (eval $ac_compile) 2>conftest.er1
9680  ac_status=$?
9681  grep -v '^ *+' conftest.er1 >conftest.err
9682  rm -f conftest.er1
9683  cat conftest.err >&5
9684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685  (exit $ac_status); } &&
9686         { ac_try='test -z "$ac_c_werror_flag"
9687                         || test ! -s conftest.err'
9688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689  (eval $ac_try) 2>&5
9690  ac_status=$?
9691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692  (exit $ac_status); }; } &&
9693         { ac_try='test -s conftest.$ac_objext'
9694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695  (eval $ac_try) 2>&5
9696  ac_status=$?
9697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698  (exit $ac_status); }; }; then
9699  ac_cv_header_stdbool_h=yes
9700else
9701  echo "$as_me: failed program was:" >&5
9702sed 's/^/| /' conftest.$ac_ext >&5
9703
9704ac_cv_header_stdbool_h=no
9705fi
9706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9707fi
9708echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9709echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9710echo "$as_me:$LINENO: checking for _Bool" >&5
9711echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9712if test "${ac_cv_type__Bool+set}" = set; then
9713  echo $ECHO_N "(cached) $ECHO_C" >&6
9714else
9715  cat >conftest.$ac_ext <<_ACEOF
9716/* confdefs.h.  */
9717_ACEOF
9718cat confdefs.h >>conftest.$ac_ext
9719cat >>conftest.$ac_ext <<_ACEOF
9720/* end confdefs.h.  */
9721$ac_includes_default
9722int
9723main ()
9724{
9725if ((_Bool *) 0)
9726  return 0;
9727if (sizeof (_Bool))
9728  return 0;
9729  ;
9730  return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext
9734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735  (eval $ac_compile) 2>conftest.er1
9736  ac_status=$?
9737  grep -v '^ *+' conftest.er1 >conftest.err
9738  rm -f conftest.er1
9739  cat conftest.err >&5
9740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741  (exit $ac_status); } &&
9742         { ac_try='test -z "$ac_c_werror_flag"
9743                         || test ! -s conftest.err'
9744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745  (eval $ac_try) 2>&5
9746  ac_status=$?
9747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748  (exit $ac_status); }; } &&
9749         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9755  ac_cv_type__Bool=yes
9756else
9757  echo "$as_me: failed program was:" >&5
9758sed 's/^/| /' conftest.$ac_ext >&5
9759
9760ac_cv_type__Bool=no
9761fi
9762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9763fi
9764echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9765echo "${ECHO_T}$ac_cv_type__Bool" >&6
9766if test $ac_cv_type__Bool = yes; then
9767
9768cat >>confdefs.h <<_ACEOF
9769#define HAVE__BOOL 1
9770_ACEOF
9771
9772
9773fi
9774
9775if test $ac_cv_header_stdbool_h = yes; then
9776
9777cat >>confdefs.h <<\_ACEOF
9778#define HAVE_STDBOOL_H 1
9779_ACEOF
9780
9781fi
9782
9783
9784# Checks for library functions.
9785
9786for ac_header in stdlib.h
9787do
9788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9789if eval "test \"\${$as_ac_Header+set}\" = set"; then
9790  echo "$as_me:$LINENO: checking for $ac_header" >&5
9791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9792if eval "test \"\${$as_ac_Header+set}\" = set"; then
9793  echo $ECHO_N "(cached) $ECHO_C" >&6
9794fi
9795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9797else
9798  # Is the header compilable?
9799echo "$as_me:$LINENO: checking $ac_header usability" >&5
9800echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9801cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h.  */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h.  */
9807$ac_includes_default
9808#include <$ac_header>
9809_ACEOF
9810rm -f conftest.$ac_objext
9811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812  (eval $ac_compile) 2>conftest.er1
9813  ac_status=$?
9814  grep -v '^ *+' conftest.er1 >conftest.err
9815  rm -f conftest.er1
9816  cat conftest.err >&5
9817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818  (exit $ac_status); } &&
9819         { ac_try='test -z "$ac_c_werror_flag"
9820                         || test ! -s conftest.err'
9821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822  (eval $ac_try) 2>&5
9823  ac_status=$?
9824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825  (exit $ac_status); }; } &&
9826         { ac_try='test -s conftest.$ac_objext'
9827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828  (eval $ac_try) 2>&5
9829  ac_status=$?
9830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831  (exit $ac_status); }; }; then
9832  ac_header_compiler=yes
9833else
9834  echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837ac_header_compiler=no
9838fi
9839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9840echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9841echo "${ECHO_T}$ac_header_compiler" >&6
9842
9843# Is the header present?
9844echo "$as_me:$LINENO: checking $ac_header presence" >&5
9845echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9846cat >conftest.$ac_ext <<_ACEOF
9847/* confdefs.h.  */
9848_ACEOF
9849cat confdefs.h >>conftest.$ac_ext
9850cat >>conftest.$ac_ext <<_ACEOF
9851/* end confdefs.h.  */
9852#include <$ac_header>
9853_ACEOF
9854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9855  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9856  ac_status=$?
9857  grep -v '^ *+' conftest.er1 >conftest.err
9858  rm -f conftest.er1
9859  cat conftest.err >&5
9860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861  (exit $ac_status); } >/dev/null; then
9862  if test -s conftest.err; then
9863    ac_cpp_err=$ac_c_preproc_warn_flag
9864    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9865  else
9866    ac_cpp_err=
9867  fi
9868else
9869  ac_cpp_err=yes
9870fi
9871if test -z "$ac_cpp_err"; then
9872  ac_header_preproc=yes
9873else
9874  echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877  ac_header_preproc=no
9878fi
9879rm -f conftest.err conftest.$ac_ext
9880echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9881echo "${ECHO_T}$ac_header_preproc" >&6
9882
9883# So?  What about this header?
9884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9885  yes:no: )
9886    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9887echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9888    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9889echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9890    ac_header_preproc=yes
9891    ;;
9892  no:yes:* )
9893    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9895    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9896echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9897    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9898echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9899    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9900echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9903    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9904echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9905    (
9906      cat <<\_ASBOX
9907## ---------------------------------------------- ##
9908## Report this to orxonox-dev at mail.datacore.ch ##
9909## ---------------------------------------------- ##
9910_ASBOX
9911    ) |
9912      sed "s/^/$as_me: WARNING:     /" >&2
9913    ;;
9914esac
9915echo "$as_me:$LINENO: checking for $ac_header" >&5
9916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9917if eval "test \"\${$as_ac_Header+set}\" = set"; then
9918  echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920  eval "$as_ac_Header=\$ac_header_preproc"
9921fi
9922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9924
9925fi
9926if test `eval echo '${'$as_ac_Header'}'` = yes; then
9927  cat >>confdefs.h <<_ACEOF
9928#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9929_ACEOF
9930
9931fi
9932
9933done
9934
9935echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9936echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9937if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9938  echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940  if test "$cross_compiling" = yes; then
9941  ac_cv_func_malloc_0_nonnull=no
9942else
9943  cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h.  */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h.  */
9949#if STDC_HEADERS || HAVE_STDLIB_H
9950# include <stdlib.h>
9951#else
9952char *malloc ();
9953#endif
9954
9955int
9956main ()
9957{
9958exit (malloc (0) ? 0 : 1);
9959  ;
9960  return 0;
9961}
9962_ACEOF
9963rm -f conftest$ac_exeext
9964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965  (eval $ac_link) 2>&5
9966  ac_status=$?
9967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970  (eval $ac_try) 2>&5
9971  ac_status=$?
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); }; }; then
9974  ac_cv_func_malloc_0_nonnull=yes
9975else
9976  echo "$as_me: program exited with status $ac_status" >&5
9977echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
9979
9980( exit $ac_status )
9981ac_cv_func_malloc_0_nonnull=no
9982fi
9983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9984fi
9985fi
9986echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9987echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9988if test $ac_cv_func_malloc_0_nonnull = yes; then
9989
9990cat >>confdefs.h <<\_ACEOF
9991#define HAVE_MALLOC 1
9992_ACEOF
9993
9994else
9995  cat >>confdefs.h <<\_ACEOF
9996#define HAVE_MALLOC 0
9997_ACEOF
9998
9999   case $LIBOBJS in
10000    "malloc.$ac_objext"   | \
10001  *" malloc.$ac_objext"   | \
10002    "malloc.$ac_objext "* | \
10003  *" malloc.$ac_objext "* ) ;;
10004  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
10005esac
10006
10007
10008cat >>confdefs.h <<\_ACEOF
10009#define malloc rpl_malloc
10010_ACEOF
10011
10012fi
10013
10014
10015
10016
10017
10018for ac_func in bzero sqrt
10019do
10020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10021echo "$as_me:$LINENO: checking for $ac_func" >&5
10022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10023if eval "test \"\${$as_ac_var+set}\" = set"; then
10024  echo $ECHO_N "(cached) $ECHO_C" >&6
10025else
10026  cat >conftest.$ac_ext <<_ACEOF
10027/* confdefs.h.  */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h.  */
10032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10033   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10034#define $ac_func innocuous_$ac_func
10035
10036/* System header to define __stub macros and hopefully few prototypes,
10037    which can conflict with char $ac_func (); below.
10038    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10039    <limits.h> exists even on freestanding compilers.  */
10040
10041#ifdef __STDC__
10042# include <limits.h>
10043#else
10044# include <assert.h>
10045#endif
10046
10047#undef $ac_func
10048
10049/* Override any gcc2 internal prototype to avoid an error.  */
10050#ifdef __cplusplus
10051extern "C"
10052{
10053#endif
10054/* We use char because int might match the return type of a gcc2
10055   builtin and then its argument prototype would still apply.  */
10056char $ac_func ();
10057/* The GNU C library defines this for functions which it implements
10058    to always fail with ENOSYS.  Some functions are actually named
10059    something starting with __ and the normal name is an alias.  */
10060#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10061choke me
10062#else
10063char (*f) () = $ac_func;
10064#endif
10065#ifdef __cplusplus
10066}
10067#endif
10068
10069int
10070main ()
10071{
10072return f != $ac_func;
10073  ;
10074  return 0;
10075}
10076_ACEOF
10077rm -f conftest.$ac_objext conftest$ac_exeext
10078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079  (eval $ac_link) 2>conftest.er1
10080  ac_status=$?
10081  grep -v '^ *+' conftest.er1 >conftest.err
10082  rm -f conftest.er1
10083  cat conftest.err >&5
10084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085  (exit $ac_status); } &&
10086         { ac_try='test -z "$ac_c_werror_flag"
10087                         || test ! -s conftest.err'
10088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089  (eval $ac_try) 2>&5
10090  ac_status=$?
10091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092  (exit $ac_status); }; } &&
10093         { ac_try='test -s conftest$ac_exeext'
10094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095  (eval $ac_try) 2>&5
10096  ac_status=$?
10097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098  (exit $ac_status); }; }; then
10099  eval "$as_ac_var=yes"
10100else
10101  echo "$as_me: failed program was:" >&5
10102sed 's/^/| /' conftest.$ac_ext >&5
10103
10104eval "$as_ac_var=no"
10105fi
10106rm -f conftest.err conftest.$ac_objext \
10107      conftest$ac_exeext conftest.$ac_ext
10108fi
10109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10111if test `eval echo '${'$as_ac_var'}'` = yes; then
10112  cat >>confdefs.h <<_ACEOF
10113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10114_ACEOF
10115
10116fi
10117done
10118
10119
10120######################
10121## OUTPUT CONFIGURE ##
10122######################
10123                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
10124
10125
10126cat >confcache <<\_ACEOF
10127# This file is a shell script that caches the results of configure
10128# tests run on this system so they can be shared between configure
10129# scripts and configure runs, see configure's option --config-cache.
10130# It is not useful on other systems.  If it contains results you don't
10131# want to keep, you may remove or edit it.
10132#
10133# config.status only pays attention to the cache file if you give it
10134# the --recheck option to rerun configure.
10135#
10136# `ac_cv_env_foo' variables (set or unset) will be overridden when
10137# loading this file, other *unset* `ac_cv_foo' will be assigned the
10138# following values.
10139
10140_ACEOF
10141
10142# The following way of writing the cache mishandles newlines in values,
10143# but we know of no workaround that is simple, portable, and efficient.
10144# So, don't put newlines in cache variables' values.
10145# Ultrix sh set writes to stderr and can't be redirected directly,
10146# and sets the high bit in the cache file unless we assign to the vars.
10147{
10148  (set) 2>&1 |
10149    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10150    *ac_space=\ *)
10151      # `set' does not quote correctly, so add quotes (double-quote
10152      # substitution turns \\\\ into \\, and sed turns \\ into \).
10153      sed -n \
10154        "s/'/'\\\\''/g;
10155          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10156      ;;
10157    *)
10158      # `set' quotes correctly as required by POSIX, so do not add quotes.
10159      sed -n \
10160        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10161      ;;
10162    esac;
10163} |
10164  sed '
10165     t clear
10166     : clear
10167     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10168     t end
10169     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10170     : end' >>confcache
10171if diff $cache_file confcache >/dev/null 2>&1; then :; else
10172  if test -w $cache_file; then
10173    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10174    cat confcache >$cache_file
10175  else
10176    echo "not updating unwritable cache $cache_file"
10177  fi
10178fi
10179rm -f confcache
10180
10181test "x$prefix" = xNONE && prefix=$ac_default_prefix
10182# Let make expand exec_prefix.
10183test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10184
10185# VPATH may cause trouble with some makes, so we remove $(srcdir),
10186# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10187# trailing colons and then remove the whole line if VPATH becomes empty
10188# (actually we leave an empty line to preserve line numbers).
10189if test "x$srcdir" = x.; then
10190  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10191s/:*\$(srcdir):*/:/;
10192s/:*\${srcdir}:*/:/;
10193s/:*@srcdir@:*/:/;
10194s/^\([^=]*=[     ]*\):*/\1/;
10195s/:*$//;
10196s/^[^=]*=[       ]*$//;
10197}'
10198fi
10199
10200DEFS=-DHAVE_CONFIG_H
10201
10202ac_libobjs=
10203ac_ltlibobjs=
10204for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10205  # 1. Remove the extension, and $U if already installed.
10206  ac_i=`echo "$ac_i" |
10207         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10208  # 2. Add them.
10209  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10210  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10211done
10212LIBOBJS=$ac_libobjs
10213
10214LTLIBOBJS=$ac_ltlibobjs
10215
10216
10217if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10218  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10219Usually this means the macro was only invoked conditionally." >&5
10220echo "$as_me: error: conditional \"AMDEP\" was never defined.
10221Usually this means the macro was only invoked conditionally." >&2;}
10222   { (exit 1); exit 1; }; }
10223fi
10224if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10225  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10226Usually this means the macro was only invoked conditionally." >&5
10227echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10228Usually this means the macro was only invoked conditionally." >&2;}
10229   { (exit 1); exit 1; }; }
10230fi
10231if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10232  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10233Usually this means the macro was only invoked conditionally." >&5
10234echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10235Usually this means the macro was only invoked conditionally." >&2;}
10236   { (exit 1); exit 1; }; }
10237fi
10238if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10239  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10240Usually this means the macro was only invoked conditionally." >&5
10241echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10242Usually this means the macro was only invoked conditionally." >&2;}
10243   { (exit 1); exit 1; }; }
10244fi
10245if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10246  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10247Usually this means the macro was only invoked conditionally." >&5
10248echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10249Usually this means the macro was only invoked conditionally." >&2;}
10250   { (exit 1); exit 1; }; }
10251fi
10252if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10253  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10254Usually this means the macro was only invoked conditionally." >&5
10255echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10256Usually this means the macro was only invoked conditionally." >&2;}
10257   { (exit 1); exit 1; }; }
10258fi
10259if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10260  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
10261Usually this means the macro was only invoked conditionally." >&5
10262echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
10263Usually this means the macro was only invoked conditionally." >&2;}
10264   { (exit 1); exit 1; }; }
10265fi
10266if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10267  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
10268Usually this means the macro was only invoked conditionally." >&5
10269echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
10270Usually this means the macro was only invoked conditionally." >&2;}
10271   { (exit 1); exit 1; }; }
10272fi
10273
10274: ${CONFIG_STATUS=./config.status}
10275ac_clean_files_save=$ac_clean_files
10276ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10277{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10278echo "$as_me: creating $CONFIG_STATUS" >&6;}
10279cat >$CONFIG_STATUS <<_ACEOF
10280#! $SHELL
10281# Generated by $as_me.
10282# Run this file to recreate the current configuration.
10283# Compiler output produced by configure, useful for debugging
10284# configure, is in config.log if it exists.
10285
10286debug=false
10287ac_cs_recheck=false
10288ac_cs_silent=false
10289SHELL=\${CONFIG_SHELL-$SHELL}
10290_ACEOF
10291
10292cat >>$CONFIG_STATUS <<\_ACEOF
10293## --------------------- ##
10294## M4sh Initialization.  ##
10295## --------------------- ##
10296
10297# Be Bourne compatible
10298if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10299  emulate sh
10300  NULLCMD=:
10301  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10302  # is contrary to our usage.  Disable this feature.
10303  alias -g '${1+"$@"}'='"$@"'
10304elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10305  set -o posix
10306fi
10307DUALCASE=1; export DUALCASE # for MKS sh
10308
10309# Support unset when possible.
10310if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10311  as_unset=unset
10312else
10313  as_unset=false
10314fi
10315
10316
10317# Work around bugs in pre-3.0 UWIN ksh.
10318$as_unset ENV MAIL MAILPATH
10319PS1='$ '
10320PS2='> '
10321PS4='+ '
10322
10323# NLS nuisances.
10324for as_var in \
10325  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10326  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10327  LC_TELEPHONE LC_TIME
10328do
10329  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10330    eval $as_var=C; export $as_var
10331  else
10332    $as_unset $as_var
10333  fi
10334done
10335
10336# Required to use basename.
10337if expr a : '\(a\)' >/dev/null 2>&1; then
10338  as_expr=expr
10339else
10340  as_expr=false
10341fi
10342
10343if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10344  as_basename=basename
10345else
10346  as_basename=false
10347fi
10348
10349
10350# Name of the executable.
10351as_me=`$as_basename "$0" ||
10352$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10353         X"$0" : 'X\(//\)$' \| \
10354         X"$0" : 'X\(/\)$' \| \
10355         .     : '\(.\)' 2>/dev/null ||
10356echo X/"$0" |
10357    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10358          /^X\/\(\/\/\)$/{ s//\1/; q; }
10359          /^X\/\(\/\).*/{ s//\1/; q; }
10360          s/.*/./; q'`
10361
10362
10363# PATH needs CR, and LINENO needs CR and PATH.
10364# Avoid depending upon Character Ranges.
10365as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10366as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10367as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10368as_cr_digits='0123456789'
10369as_cr_alnum=$as_cr_Letters$as_cr_digits
10370
10371# The user is always right.
10372if test "${PATH_SEPARATOR+set}" != set; then
10373  echo "#! /bin/sh" >conf$$.sh
10374  echo  "exit 0"   >>conf$$.sh
10375  chmod +x conf$$.sh
10376  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10377    PATH_SEPARATOR=';'
10378  else
10379    PATH_SEPARATOR=:
10380  fi
10381  rm -f conf$$.sh
10382fi
10383
10384
10385  as_lineno_1=$LINENO
10386  as_lineno_2=$LINENO
10387  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10388  test "x$as_lineno_1" != "x$as_lineno_2" &&
10389  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10390  # Find who we are.  Look in the path if we contain no path at all
10391  # relative or not.
10392  case $0 in
10393    *[\\/]* ) as_myself=$0 ;;
10394    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395for as_dir in $PATH
10396do
10397  IFS=$as_save_IFS
10398  test -z "$as_dir" && as_dir=.
10399  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10400done
10401
10402       ;;
10403  esac
10404  # We did not find ourselves, most probably we were run as `sh COMMAND'
10405  # in which case we are not to be found in the path.
10406  if test "x$as_myself" = x; then
10407    as_myself=$0
10408  fi
10409  if test ! -f "$as_myself"; then
10410    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10411echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10412   { (exit 1); exit 1; }; }
10413  fi
10414  case $CONFIG_SHELL in
10415  '')
10416    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10418do
10419  IFS=$as_save_IFS
10420  test -z "$as_dir" && as_dir=.
10421  for as_base in sh bash ksh sh5; do
10422         case $as_dir in
10423         /*)
10424           if ("$as_dir/$as_base" -c '
10425  as_lineno_1=$LINENO
10426  as_lineno_2=$LINENO
10427  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10428  test "x$as_lineno_1" != "x$as_lineno_2" &&
10429  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10430             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10431             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10432             CONFIG_SHELL=$as_dir/$as_base
10433             export CONFIG_SHELL
10434             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10435           fi;;
10436         esac
10437       done
10438done
10439;;
10440  esac
10441
10442  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10443  # uniformly replaced by the line number.  The first 'sed' inserts a
10444  # line-number line before each line; the second 'sed' does the real
10445  # work.  The second script uses 'N' to pair each line-number line
10446  # with the numbered line, and appends trailing '-' during
10447  # substitution so that $LINENO is not a special case at line end.
10448  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10449  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10450  sed '=' <$as_myself |
10451    sed '
10452      N
10453      s,$,-,
10454      : loop
10455      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10456      t loop
10457      s,-$,,
10458      s,^['$as_cr_digits']*\n,,
10459    ' >$as_me.lineno &&
10460  chmod +x $as_me.lineno ||
10461    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10462echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10463   { (exit 1); exit 1; }; }
10464
10465  # Don't try to exec as it changes $[0], causing all sort of problems
10466  # (the dirname of $[0] is not the place where we might find the
10467  # original and so on.  Autoconf is especially sensible to this).
10468  . ./$as_me.lineno
10469  # Exit status is that of the last command.
10470  exit
10471}
10472
10473
10474case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10475  *c*,-n*) ECHO_N= ECHO_C='
10476' ECHO_T='      ' ;;
10477  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10478  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10479esac
10480
10481if expr a : '\(a\)' >/dev/null 2>&1; then
10482  as_expr=expr
10483else
10484  as_expr=false
10485fi
10486
10487rm -f conf$$ conf$$.exe conf$$.file
10488echo >conf$$.file
10489if ln -s conf$$.file conf$$ 2>/dev/null; then
10490  # We could just check for DJGPP; but this test a) works b) is more generic
10491  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10492  if test -f conf$$.exe; then
10493    # Don't use ln at all; we don't have any links
10494    as_ln_s='cp -p'
10495  else
10496    as_ln_s='ln -s'
10497  fi
10498elif ln conf$$.file conf$$ 2>/dev/null; then
10499  as_ln_s=ln
10500else
10501  as_ln_s='cp -p'
10502fi
10503rm -f conf$$ conf$$.exe conf$$.file
10504
10505if mkdir -p . 2>/dev/null; then
10506  as_mkdir_p=:
10507else
10508  test -d ./-p && rmdir ./-p
10509  as_mkdir_p=false
10510fi
10511
10512as_executable_p="test -f"
10513
10514# Sed expression to map a string onto a valid CPP name.
10515as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10516
10517# Sed expression to map a string onto a valid variable name.
10518as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10519
10520
10521# IFS
10522# We need space, tab and new line, in precisely that order.
10523as_nl='
10524'
10525IFS="   $as_nl"
10526
10527# CDPATH.
10528$as_unset CDPATH
10529
10530exec 6>&1
10531
10532# Open the log real soon, to keep \$[0] and so on meaningful, and to
10533# report actual input values of CONFIG_FILES etc. instead of their
10534# values after options handling.  Logging --version etc. is OK.
10535exec 5>>config.log
10536{
10537  echo
10538  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10539## Running $as_me. ##
10540_ASBOX
10541} >&5
10542cat >&5 <<_CSEOF
10543
10544This file was extended by orxonox $as_me 0.3.1_alpha, which was
10545generated by GNU Autoconf 2.59.  Invocation command line was
10546
10547  CONFIG_FILES    = $CONFIG_FILES
10548  CONFIG_HEADERS  = $CONFIG_HEADERS
10549  CONFIG_LINKS    = $CONFIG_LINKS
10550  CONFIG_COMMANDS = $CONFIG_COMMANDS
10551  $ $0 $@
10552
10553_CSEOF
10554echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10555echo >&5
10556_ACEOF
10557
10558# Files that config.status was made for.
10559if test -n "$ac_config_files"; then
10560  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10561fi
10562
10563if test -n "$ac_config_headers"; then
10564  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10565fi
10566
10567if test -n "$ac_config_links"; then
10568  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10569fi
10570
10571if test -n "$ac_config_commands"; then
10572  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10573fi
10574
10575cat >>$CONFIG_STATUS <<\_ACEOF
10576
10577ac_cs_usage="\
10578\`$as_me' instantiates files from templates according to the
10579current configuration.
10580
10581Usage: $0 [OPTIONS] [FILE]...
10582
10583  -h, --help       print this help, then exit
10584  -V, --version    print version number, then exit
10585  -q, --quiet      do not print progress messages
10586  -d, --debug      don't remove temporary files
10587      --recheck    update $as_me by reconfiguring in the same conditions
10588  --file=FILE[:TEMPLATE]
10589                   instantiate the configuration file FILE
10590  --header=FILE[:TEMPLATE]
10591                   instantiate the configuration header FILE
10592
10593Configuration files:
10594$config_files
10595
10596Configuration headers:
10597$config_headers
10598
10599Configuration commands:
10600$config_commands
10601
10602Report bugs to <bug-autoconf@gnu.org>."
10603_ACEOF
10604
10605cat >>$CONFIG_STATUS <<_ACEOF
10606ac_cs_version="\\
10607orxonox config.status 0.3.1_alpha
10608configured by $0, generated by GNU Autoconf 2.59,
10609  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10610
10611Copyright (C) 2003 Free Software Foundation, Inc.
10612This config.status script is free software; the Free Software Foundation
10613gives unlimited permission to copy, distribute and modify it."
10614srcdir=$srcdir
10615INSTALL="$INSTALL"
10616_ACEOF
10617
10618cat >>$CONFIG_STATUS <<\_ACEOF
10619# If no file are specified by the user, then we need to provide default
10620# value.  By we need to know if files were specified by the user.
10621ac_need_defaults=:
10622while test $# != 0
10623do
10624  case $1 in
10625  --*=*)
10626    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10627    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10628    ac_shift=:
10629    ;;
10630  -*)
10631    ac_option=$1
10632    ac_optarg=$2
10633    ac_shift=shift
10634    ;;
10635  *) # This is not an option, so the user has probably given explicit
10636     # arguments.
10637     ac_option=$1
10638     ac_need_defaults=false;;
10639  esac
10640
10641  case $ac_option in
10642  # Handling of the options.
10643_ACEOF
10644cat >>$CONFIG_STATUS <<\_ACEOF
10645  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10646    ac_cs_recheck=: ;;
10647  --version | --vers* | -V )
10648    echo "$ac_cs_version"; exit 0 ;;
10649  --he | --h)
10650    # Conflict between --help and --header
10651    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10652Try \`$0 --help' for more information." >&5
10653echo "$as_me: error: ambiguous option: $1
10654Try \`$0 --help' for more information." >&2;}
10655   { (exit 1); exit 1; }; };;
10656  --help | --hel | -h )
10657    echo "$ac_cs_usage"; exit 0 ;;
10658  --debug | --d* | -d )
10659    debug=: ;;
10660  --file | --fil | --fi | --f )
10661    $ac_shift
10662    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10663    ac_need_defaults=false;;
10664  --header | --heade | --head | --hea )
10665    $ac_shift
10666    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10667    ac_need_defaults=false;;
10668  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10669  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10670    ac_cs_silent=: ;;
10671
10672  # This is an error.
10673  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10674Try \`$0 --help' for more information." >&5
10675echo "$as_me: error: unrecognized option: $1
10676Try \`$0 --help' for more information." >&2;}
10677   { (exit 1); exit 1; }; } ;;
10678
10679  *) ac_config_targets="$ac_config_targets $1" ;;
10680
10681  esac
10682  shift
10683done
10684
10685ac_configure_extra_args=
10686
10687if $ac_cs_silent; then
10688  exec 6>/dev/null
10689  ac_configure_extra_args="$ac_configure_extra_args --silent"
10690fi
10691
10692_ACEOF
10693cat >>$CONFIG_STATUS <<_ACEOF
10694if \$ac_cs_recheck; then
10695  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10696  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10697fi
10698
10699_ACEOF
10700
10701cat >>$CONFIG_STATUS <<_ACEOF
10702#
10703# INIT-COMMANDS section.
10704#
10705
10706AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10707
10708_ACEOF
10709
10710
10711
10712cat >>$CONFIG_STATUS <<\_ACEOF
10713for ac_config_target in $ac_config_targets
10714do
10715  case "$ac_config_target" in
10716  # Handling of arguments.
10717  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10718  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10719  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10720  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
10721  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
10722  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
10723  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
10724  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
10725  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
10726  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
10727  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
10728  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
10729  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
10730  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
10731  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10732  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
10733  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
10734  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
10735  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
10736  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10737  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10738  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10739echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10740   { (exit 1); exit 1; }; };;
10741  esac
10742done
10743
10744# If the user did not use the arguments to specify the items to instantiate,
10745# then the envvar interface is used.  Set only those that are not.
10746# We use the long form for the default assignment because of an extremely
10747# bizarre bug on SunOS 4.1.3.
10748if $ac_need_defaults; then
10749  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10750  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10751  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10752fi
10753
10754# Have a temporary directory for convenience.  Make it in the build tree
10755# simply because there is no reason to put it here, and in addition,
10756# creating and moving files from /tmp can sometimes cause problems.
10757# Create a temporary directory, and hook for its removal unless debugging.
10758$debug ||
10759{
10760  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10761  trap '{ (exit 1); exit 1; }' 1 2 13 15
10762}
10763
10764# Create a (secure) tmp directory for tmp files.
10765
10766{
10767  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10768  test -n "$tmp" && test -d "$tmp"
10769}  ||
10770{
10771  tmp=./confstat$$-$RANDOM
10772  (umask 077 && mkdir $tmp)
10773} ||
10774{
10775   echo "$me: cannot create a temporary directory in ." >&2
10776   { (exit 1); exit 1; }
10777}
10778
10779_ACEOF
10780
10781cat >>$CONFIG_STATUS <<_ACEOF
10782
10783#
10784# CONFIG_FILES section.
10785#
10786
10787# No need to generate the scripts if there are no CONFIG_FILES.
10788# This happens for instance when ./config.status config.h
10789if test -n "\$CONFIG_FILES"; then
10790  # Protect against being on the right side of a sed subst in config.status.
10791  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10792   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10793s,@SHELL@,$SHELL,;t t
10794s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10795s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10796s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10797s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10798s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10799s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10800s,@exec_prefix@,$exec_prefix,;t t
10801s,@prefix@,$prefix,;t t
10802s,@program_transform_name@,$program_transform_name,;t t
10803s,@bindir@,$bindir,;t t
10804s,@sbindir@,$sbindir,;t t
10805s,@libexecdir@,$libexecdir,;t t
10806s,@datadir@,$datadir,;t t
10807s,@sysconfdir@,$sysconfdir,;t t
10808s,@sharedstatedir@,$sharedstatedir,;t t
10809s,@localstatedir@,$localstatedir,;t t
10810s,@libdir@,$libdir,;t t
10811s,@includedir@,$includedir,;t t
10812s,@oldincludedir@,$oldincludedir,;t t
10813s,@infodir@,$infodir,;t t
10814s,@mandir@,$mandir,;t t
10815s,@build_alias@,$build_alias,;t t
10816s,@host_alias@,$host_alias,;t t
10817s,@target_alias@,$target_alias,;t t
10818s,@DEFS@,$DEFS,;t t
10819s,@ECHO_C@,$ECHO_C,;t t
10820s,@ECHO_N@,$ECHO_N,;t t
10821s,@ECHO_T@,$ECHO_T,;t t
10822s,@LIBS@,$LIBS,;t t
10823s,@build@,$build,;t t
10824s,@build_cpu@,$build_cpu,;t t
10825s,@build_vendor@,$build_vendor,;t t
10826s,@build_os@,$build_os,;t t
10827s,@host@,$host,;t t
10828s,@host_cpu@,$host_cpu,;t t
10829s,@host_vendor@,$host_vendor,;t t
10830s,@host_os@,$host_os,;t t
10831s,@target@,$target,;t t
10832s,@target_cpu@,$target_cpu,;t t
10833s,@target_vendor@,$target_vendor,;t t
10834s,@target_os@,$target_os,;t t
10835s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10836s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10837s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10838s,@CYGPATH_W@,$CYGPATH_W,;t t
10839s,@PACKAGE@,$PACKAGE,;t t
10840s,@VERSION@,$VERSION,;t t
10841s,@ACLOCAL@,$ACLOCAL,;t t
10842s,@AUTOCONF@,$AUTOCONF,;t t
10843s,@AUTOMAKE@,$AUTOMAKE,;t t
10844s,@AUTOHEADER@,$AUTOHEADER,;t t
10845s,@MAKEINFO@,$MAKEINFO,;t t
10846s,@AMTAR@,$AMTAR,;t t
10847s,@install_sh@,$install_sh,;t t
10848s,@STRIP@,$STRIP,;t t
10849s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10850s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10851s,@mkdir_p@,$mkdir_p,;t t
10852s,@AWK@,$AWK,;t t
10853s,@SET_MAKE@,$SET_MAKE,;t t
10854s,@am__leading_dot@,$am__leading_dot,;t t
10855s,@CXX@,$CXX,;t t
10856s,@CXXFLAGS@,$CXXFLAGS,;t t
10857s,@LDFLAGS@,$LDFLAGS,;t t
10858s,@CPPFLAGS@,$CPPFLAGS,;t t
10859s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10860s,@EXEEXT@,$EXEEXT,;t t
10861s,@OBJEXT@,$OBJEXT,;t t
10862s,@DEPDIR@,$DEPDIR,;t t
10863s,@am__include@,$am__include,;t t
10864s,@am__quote@,$am__quote,;t t
10865s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10866s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10867s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10868s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10869s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10870s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10871s,@RANLIB@,$RANLIB,;t t
10872s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10873s,@CC@,$CC,;t t
10874s,@CFLAGS@,$CFLAGS,;t t
10875s,@ac_ct_CC@,$ac_ct_CC,;t t
10876s,@CCDEPMODE@,$CCDEPMODE,;t t
10877s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10878s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10879s,@CPP@,$CPP,;t t
10880s,@EGREP@,$EGREP,;t t
10881s,@DEBUG@,$DEBUG,;t t
10882s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10883s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
10884s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10885s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
10886s,@DOXYGEN@,$DOXYGEN,;t t
10887s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10888s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
10889s,@GPROF@,$GPROF,;t t
10890s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10891s,@MSBITFIELDS@,$MSBITFIELDS,;t t
10892s,@CURL_LIBS@,$CURL_LIBS,;t t
10893s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10894s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10895s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
10896s,@GTK2_LIBS@,$GTK2_LIBS,;t t
10897s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10898s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10899s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
10900s,@LIBOBJS@,$LIBOBJS,;t t
10901s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10902CEOF
10903
10904_ACEOF
10905
10906  cat >>$CONFIG_STATUS <<\_ACEOF
10907  # Split the substitutions into bite-sized pieces for seds with
10908  # small command number limits, like on Digital OSF/1 and HP-UX.
10909  ac_max_sed_lines=48
10910  ac_sed_frag=1 # Number of current file.
10911  ac_beg=1 # First line for current file.
10912  ac_end=$ac_max_sed_lines # Line after last line for current file.
10913  ac_more_lines=:
10914  ac_sed_cmds=
10915  while $ac_more_lines; do
10916    if test $ac_beg -gt 1; then
10917      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10918    else
10919      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10920    fi
10921    if test ! -s $tmp/subs.frag; then
10922      ac_more_lines=false
10923    else
10924      # The purpose of the label and of the branching condition is to
10925      # speed up the sed processing (if there are no `@' at all, there
10926      # is no need to browse any of the substitutions).
10927      # These are the two extra sed commands mentioned above.
10928      (echo ':t
10929  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10930      if test -z "$ac_sed_cmds"; then
10931        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10932      else
10933        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10934      fi
10935      ac_sed_frag=`expr $ac_sed_frag + 1`
10936      ac_beg=$ac_end
10937      ac_end=`expr $ac_end + $ac_max_sed_lines`
10938    fi
10939  done
10940  if test -z "$ac_sed_cmds"; then
10941    ac_sed_cmds=cat
10942  fi
10943fi # test -n "$CONFIG_FILES"
10944
10945_ACEOF
10946cat >>$CONFIG_STATUS <<\_ACEOF
10947for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10948  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10949  case $ac_file in
10950  - | *:- | *:-:* ) # input from stdin
10951        cat >$tmp/stdin
10952        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10953        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10954  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10955        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10956  * )   ac_file_in=$ac_file.in ;;
10957  esac
10958
10959  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10960  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10962         X"$ac_file" : 'X\(//\)[^/]' \| \
10963         X"$ac_file" : 'X\(//\)$' \| \
10964         X"$ac_file" : 'X\(/\)' \| \
10965         .     : '\(.\)' 2>/dev/null ||
10966echo X"$ac_file" |
10967    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10968          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10969          /^X\(\/\/\)$/{ s//\1/; q; }
10970          /^X\(\/\).*/{ s//\1/; q; }
10971          s/.*/./; q'`
10972  { if $as_mkdir_p; then
10973    mkdir -p "$ac_dir"
10974  else
10975    as_dir="$ac_dir"
10976    as_dirs=
10977    while test ! -d "$as_dir"; do
10978      as_dirs="$as_dir $as_dirs"
10979      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10980$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10981         X"$as_dir" : 'X\(//\)[^/]' \| \
10982         X"$as_dir" : 'X\(//\)$' \| \
10983         X"$as_dir" : 'X\(/\)' \| \
10984         .     : '\(.\)' 2>/dev/null ||
10985echo X"$as_dir" |
10986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10987          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10988          /^X\(\/\/\)$/{ s//\1/; q; }
10989          /^X\(\/\).*/{ s//\1/; q; }
10990          s/.*/./; q'`
10991    done
10992    test ! -n "$as_dirs" || mkdir $as_dirs
10993  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10994echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10995   { (exit 1); exit 1; }; }; }
10996
10997  ac_builddir=.
10998
10999if test "$ac_dir" != .; then
11000  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11001  # A "../" for each directory in $ac_dir_suffix.
11002  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11003else
11004  ac_dir_suffix= ac_top_builddir=
11005fi
11006
11007case $srcdir in
11008  .)  # No --srcdir option.  We are building in place.
11009    ac_srcdir=.
11010    if test -z "$ac_top_builddir"; then
11011       ac_top_srcdir=.
11012    else
11013       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11014    fi ;;
11015  [\\/]* | ?:[\\/]* )  # Absolute path.
11016    ac_srcdir=$srcdir$ac_dir_suffix;
11017    ac_top_srcdir=$srcdir ;;
11018  *) # Relative path.
11019    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11020    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11021esac
11022
11023# Do not use `cd foo && pwd` to compute absolute paths, because
11024# the directories may not exist.
11025case `pwd` in
11026.) ac_abs_builddir="$ac_dir";;
11027*)
11028  case "$ac_dir" in
11029  .) ac_abs_builddir=`pwd`;;
11030  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11031  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11032  esac;;
11033esac
11034case $ac_abs_builddir in
11035.) ac_abs_top_builddir=${ac_top_builddir}.;;
11036*)
11037  case ${ac_top_builddir}. in
11038  .) ac_abs_top_builddir=$ac_abs_builddir;;
11039  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11040  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11041  esac;;
11042esac
11043case $ac_abs_builddir in
11044.) ac_abs_srcdir=$ac_srcdir;;
11045*)
11046  case $ac_srcdir in
11047  .) ac_abs_srcdir=$ac_abs_builddir;;
11048  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11049  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11050  esac;;
11051esac
11052case $ac_abs_builddir in
11053.) ac_abs_top_srcdir=$ac_top_srcdir;;
11054*)
11055  case $ac_top_srcdir in
11056  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11057  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11058  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11059  esac;;
11060esac
11061
11062
11063  case $INSTALL in
11064  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11065  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11066  esac
11067
11068  if test x"$ac_file" != x-; then
11069    { echo "$as_me:$LINENO: creating $ac_file" >&5
11070echo "$as_me: creating $ac_file" >&6;}
11071    rm -f "$ac_file"
11072  fi
11073  # Let's still pretend it is `configure' which instantiates (i.e., don't
11074  # use $as_me), people would be surprised to read:
11075  #    /* config.h.  Generated by config.status.  */
11076  if test x"$ac_file" = x-; then
11077    configure_input=
11078  else
11079    configure_input="$ac_file.  "
11080  fi
11081  configure_input=$configure_input"Generated from `echo $ac_file_in |
11082                                     sed 's,.*/,,'` by configure."
11083
11084  # First look for the input files in the build tree, otherwise in the
11085  # src tree.
11086  ac_file_inputs=`IFS=:
11087    for f in $ac_file_in; do
11088      case $f in
11089      -) echo $tmp/stdin ;;
11090      [\\/$]*)
11091         # Absolute (can't be DOS-style, as IFS=:)
11092         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11093echo "$as_me: error: cannot find input file: $f" >&2;}
11094   { (exit 1); exit 1; }; }
11095         echo "$f";;
11096      *) # Relative
11097         if test -f "$f"; then
11098           # Build tree
11099           echo "$f"
11100         elif test -f "$srcdir/$f"; then
11101           # Source tree
11102           echo "$srcdir/$f"
11103         else
11104           # /dev/null tree
11105           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11106echo "$as_me: error: cannot find input file: $f" >&2;}
11107   { (exit 1); exit 1; }; }
11108         fi;;
11109      esac
11110    done` || { (exit 1); exit 1; }
11111_ACEOF
11112cat >>$CONFIG_STATUS <<_ACEOF
11113  sed "$ac_vpsub
11114$extrasub
11115_ACEOF
11116cat >>$CONFIG_STATUS <<\_ACEOF
11117:t
11118/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11119s,@configure_input@,$configure_input,;t t
11120s,@srcdir@,$ac_srcdir,;t t
11121s,@abs_srcdir@,$ac_abs_srcdir,;t t
11122s,@top_srcdir@,$ac_top_srcdir,;t t
11123s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11124s,@builddir@,$ac_builddir,;t t
11125s,@abs_builddir@,$ac_abs_builddir,;t t
11126s,@top_builddir@,$ac_top_builddir,;t t
11127s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11128s,@INSTALL@,$ac_INSTALL,;t t
11129" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11130  rm -f $tmp/stdin
11131  if test x"$ac_file" != x-; then
11132    mv $tmp/out $ac_file
11133  else
11134    cat $tmp/out
11135    rm -f $tmp/out
11136  fi
11137
11138done
11139_ACEOF
11140cat >>$CONFIG_STATUS <<\_ACEOF
11141
11142#
11143# CONFIG_HEADER section.
11144#
11145
11146# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11147# NAME is the cpp macro being defined and VALUE is the value it is being given.
11148#
11149# ac_d sets the value in "#define NAME VALUE" lines.
11150ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11151ac_dB='[         ].*$,\1#\2'
11152ac_dC=' '
11153ac_dD=',;t'
11154# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11155ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11156ac_uB='$,\1#\2define\3'
11157ac_uC=' '
11158ac_uD=',;t'
11159
11160for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11161  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11162  case $ac_file in
11163  - | *:- | *:-:* ) # input from stdin
11164        cat >$tmp/stdin
11165        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11166        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11167  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11168        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11169  * )   ac_file_in=$ac_file.in ;;
11170  esac
11171
11172  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11173echo "$as_me: creating $ac_file" >&6;}
11174
11175  # First look for the input files in the build tree, otherwise in the
11176  # src tree.
11177  ac_file_inputs=`IFS=:
11178    for f in $ac_file_in; do
11179      case $f in
11180      -) echo $tmp/stdin ;;
11181      [\\/$]*)
11182         # Absolute (can't be DOS-style, as IFS=:)
11183         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11184echo "$as_me: error: cannot find input file: $f" >&2;}
11185   { (exit 1); exit 1; }; }
11186         # Do quote $f, to prevent DOS paths from being IFS'd.
11187         echo "$f";;
11188      *) # Relative
11189         if test -f "$f"; then
11190           # Build tree
11191           echo "$f"
11192         elif test -f "$srcdir/$f"; then
11193           # Source tree
11194           echo "$srcdir/$f"
11195         else
11196           # /dev/null tree
11197           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11198echo "$as_me: error: cannot find input file: $f" >&2;}
11199   { (exit 1); exit 1; }; }
11200         fi;;
11201      esac
11202    done` || { (exit 1); exit 1; }
11203  # Remove the trailing spaces.
11204  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11205
11206_ACEOF
11207
11208# Transform confdefs.h into two sed scripts, `conftest.defines' and
11209# `conftest.undefs', that substitutes the proper values into
11210# config.h.in to produce config.h.  The first handles `#define'
11211# templates, and the second `#undef' templates.
11212# And first: Protect against being on the right side of a sed subst in
11213# config.status.  Protect against being in an unquoted here document
11214# in config.status.
11215rm -f conftest.defines conftest.undefs
11216# Using a here document instead of a string reduces the quoting nightmare.
11217# Putting comments in sed scripts is not portable.
11218#
11219# `end' is used to avoid that the second main sed command (meant for
11220# 0-ary CPP macros) applies to n-ary macro definitions.
11221# See the Autoconf documentation for `clear'.
11222cat >confdef2sed.sed <<\_ACEOF
11223s/[\\&,]/\\&/g
11224s,[\\$`],\\&,g
11225t clear
11226: clear
11227s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11228t end
11229s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11230: end
11231_ACEOF
11232# If some macros were called several times there might be several times
11233# the same #defines, which is useless.  Nevertheless, we may not want to
11234# sort them, since we want the *last* AC-DEFINE to be honored.
11235uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11236sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11237rm -f confdef2sed.sed
11238
11239# This sed command replaces #undef with comments.  This is necessary, for
11240# example, in the case of _POSIX_SOURCE, which is predefined and required
11241# on some systems where configure will not decide to define it.
11242cat >>conftest.undefs <<\_ACEOF
11243s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11244_ACEOF
11245
11246# Break up conftest.defines because some shells have a limit on the size
11247# of here documents, and old seds have small limits too (100 cmds).
11248echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11249echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11250echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11251echo '  :' >>$CONFIG_STATUS
11252rm -f conftest.tail
11253while grep . conftest.defines >/dev/null
11254do
11255  # Write a limited-size here document to $tmp/defines.sed.
11256  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11257  # Speed up: don't consider the non `#define' lines.
11258  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11259  # Work around the forget-to-reset-the-flag bug.
11260  echo 't clr' >>$CONFIG_STATUS
11261  echo ': clr' >>$CONFIG_STATUS
11262  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11263  echo 'CEOF
11264  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11265  rm -f $tmp/in
11266  mv $tmp/out $tmp/in
11267' >>$CONFIG_STATUS
11268  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11269  rm -f conftest.defines
11270  mv conftest.tail conftest.defines
11271done
11272rm -f conftest.defines
11273echo '  fi # grep' >>$CONFIG_STATUS
11274echo >>$CONFIG_STATUS
11275
11276# Break up conftest.undefs because some shells have a limit on the size
11277# of here documents, and old seds have small limits too (100 cmds).
11278echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11279rm -f conftest.tail
11280while grep . conftest.undefs >/dev/null
11281do
11282  # Write a limited-size here document to $tmp/undefs.sed.
11283  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11284  # Speed up: don't consider the non `#undef'
11285  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11286  # Work around the forget-to-reset-the-flag bug.
11287  echo 't clr' >>$CONFIG_STATUS
11288  echo ': clr' >>$CONFIG_STATUS
11289  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11290  echo 'CEOF
11291  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11292  rm -f $tmp/in
11293  mv $tmp/out $tmp/in
11294' >>$CONFIG_STATUS
11295  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11296  rm -f conftest.undefs
11297  mv conftest.tail conftest.undefs
11298done
11299rm -f conftest.undefs
11300
11301cat >>$CONFIG_STATUS <<\_ACEOF
11302  # Let's still pretend it is `configure' which instantiates (i.e., don't
11303  # use $as_me), people would be surprised to read:
11304  #    /* config.h.  Generated by config.status.  */
11305  if test x"$ac_file" = x-; then
11306    echo "/* Generated by configure.  */" >$tmp/config.h
11307  else
11308    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11309  fi
11310  cat $tmp/in >>$tmp/config.h
11311  rm -f $tmp/in
11312  if test x"$ac_file" != x-; then
11313    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11314      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11315echo "$as_me: $ac_file is unchanged" >&6;}
11316    else
11317      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11319         X"$ac_file" : 'X\(//\)[^/]' \| \
11320         X"$ac_file" : 'X\(//\)$' \| \
11321         X"$ac_file" : 'X\(/\)' \| \
11322         .     : '\(.\)' 2>/dev/null ||
11323echo X"$ac_file" |
11324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11325          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11326          /^X\(\/\/\)$/{ s//\1/; q; }
11327          /^X\(\/\).*/{ s//\1/; q; }
11328          s/.*/./; q'`
11329      { if $as_mkdir_p; then
11330    mkdir -p "$ac_dir"
11331  else
11332    as_dir="$ac_dir"
11333    as_dirs=
11334    while test ! -d "$as_dir"; do
11335      as_dirs="$as_dir $as_dirs"
11336      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11338         X"$as_dir" : 'X\(//\)[^/]' \| \
11339         X"$as_dir" : 'X\(//\)$' \| \
11340         X"$as_dir" : 'X\(/\)' \| \
11341         .     : '\(.\)' 2>/dev/null ||
11342echo X"$as_dir" |
11343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11344          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11345          /^X\(\/\/\)$/{ s//\1/; q; }
11346          /^X\(\/\).*/{ s//\1/; q; }
11347          s/.*/./; q'`
11348    done
11349    test ! -n "$as_dirs" || mkdir $as_dirs
11350  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11351echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11352   { (exit 1); exit 1; }; }; }
11353
11354      rm -f $ac_file
11355      mv $tmp/config.h $ac_file
11356    fi
11357  else
11358    cat $tmp/config.h
11359    rm -f $tmp/config.h
11360  fi
11361# Compute $ac_file's index in $config_headers.
11362_am_stamp_count=1
11363for _am_header in $config_headers :; do
11364  case $_am_header in
11365    $ac_file | $ac_file:* )
11366      break ;;
11367    * )
11368      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11369  esac
11370done
11371echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11372$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11373         X$ac_file : 'X\(//\)[^/]' \| \
11374         X$ac_file : 'X\(//\)$' \| \
11375         X$ac_file : 'X\(/\)' \| \
11376         .     : '\(.\)' 2>/dev/null ||
11377echo X$ac_file |
11378    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11379          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11380          /^X\(\/\/\)$/{ s//\1/; q; }
11381          /^X\(\/\).*/{ s//\1/; q; }
11382          s/.*/./; q'`/stamp-h$_am_stamp_count
11383done
11384_ACEOF
11385cat >>$CONFIG_STATUS <<\_ACEOF
11386
11387#
11388# CONFIG_COMMANDS section.
11389#
11390for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11391  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11392  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11393  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11394$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11395         X"$ac_dest" : 'X\(//\)[^/]' \| \
11396         X"$ac_dest" : 'X\(//\)$' \| \
11397         X"$ac_dest" : 'X\(/\)' \| \
11398         .     : '\(.\)' 2>/dev/null ||
11399echo X"$ac_dest" |
11400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11401          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11402          /^X\(\/\/\)$/{ s//\1/; q; }
11403          /^X\(\/\).*/{ s//\1/; q; }
11404          s/.*/./; q'`
11405  { if $as_mkdir_p; then
11406    mkdir -p "$ac_dir"
11407  else
11408    as_dir="$ac_dir"
11409    as_dirs=
11410    while test ! -d "$as_dir"; do
11411      as_dirs="$as_dir $as_dirs"
11412      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11414         X"$as_dir" : 'X\(//\)[^/]' \| \
11415         X"$as_dir" : 'X\(//\)$' \| \
11416         X"$as_dir" : 'X\(/\)' \| \
11417         .     : '\(.\)' 2>/dev/null ||
11418echo X"$as_dir" |
11419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11420          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11421          /^X\(\/\/\)$/{ s//\1/; q; }
11422          /^X\(\/\).*/{ s//\1/; q; }
11423          s/.*/./; q'`
11424    done
11425    test ! -n "$as_dirs" || mkdir $as_dirs
11426  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11427echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11428   { (exit 1); exit 1; }; }; }
11429
11430  ac_builddir=.
11431
11432if test "$ac_dir" != .; then
11433  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11434  # A "../" for each directory in $ac_dir_suffix.
11435  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11436else
11437  ac_dir_suffix= ac_top_builddir=
11438fi
11439
11440case $srcdir in
11441  .)  # No --srcdir option.  We are building in place.
11442    ac_srcdir=.
11443    if test -z "$ac_top_builddir"; then
11444       ac_top_srcdir=.
11445    else
11446       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11447    fi ;;
11448  [\\/]* | ?:[\\/]* )  # Absolute path.
11449    ac_srcdir=$srcdir$ac_dir_suffix;
11450    ac_top_srcdir=$srcdir ;;
11451  *) # Relative path.
11452    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11453    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11454esac
11455
11456# Do not use `cd foo && pwd` to compute absolute paths, because
11457# the directories may not exist.
11458case `pwd` in
11459.) ac_abs_builddir="$ac_dir";;
11460*)
11461  case "$ac_dir" in
11462  .) ac_abs_builddir=`pwd`;;
11463  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11464  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11465  esac;;
11466esac
11467case $ac_abs_builddir in
11468.) ac_abs_top_builddir=${ac_top_builddir}.;;
11469*)
11470  case ${ac_top_builddir}. in
11471  .) ac_abs_top_builddir=$ac_abs_builddir;;
11472  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11473  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11474  esac;;
11475esac
11476case $ac_abs_builddir in
11477.) ac_abs_srcdir=$ac_srcdir;;
11478*)
11479  case $ac_srcdir in
11480  .) ac_abs_srcdir=$ac_abs_builddir;;
11481  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11482  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11483  esac;;
11484esac
11485case $ac_abs_builddir in
11486.) ac_abs_top_srcdir=$ac_top_srcdir;;
11487*)
11488  case $ac_top_srcdir in
11489  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11490  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11491  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11492  esac;;
11493esac
11494
11495
11496  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11497echo "$as_me: executing $ac_dest commands" >&6;}
11498  case $ac_dest in
11499    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11500  # Strip MF so we end up with the name of the file.
11501  mf=`echo "$mf" | sed -e 's/:.*$//'`
11502  # Check whether this is an Automake generated Makefile or not.
11503  # We used to match only the files named `Makefile.in', but
11504  # some people rename them; so instead we look at the file content.
11505  # Grep'ing the first line is not enough: some people post-process
11506  # each Makefile.in and add a new line on top of each file to say so.
11507  # So let's grep whole file.
11508  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11509    dirpart=`(dirname "$mf") 2>/dev/null ||
11510$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11511         X"$mf" : 'X\(//\)[^/]' \| \
11512         X"$mf" : 'X\(//\)$' \| \
11513         X"$mf" : 'X\(/\)' \| \
11514         .     : '\(.\)' 2>/dev/null ||
11515echo X"$mf" |
11516    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11517          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11518          /^X\(\/\/\)$/{ s//\1/; q; }
11519          /^X\(\/\).*/{ s//\1/; q; }
11520          s/.*/./; q'`
11521  else
11522    continue
11523  fi
11524  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11525  # Extract the definition of DEP_FILES from the Makefile without
11526  # running `make'.
11527  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11528  test -z "$DEPDIR" && continue
11529  # When using ansi2knr, U may be empty or an underscore; expand it
11530  U=`sed -n 's/^U = //p' < "$mf"`
11531  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11532  # We invoke sed twice because it is the simplest approach to
11533  # changing $(DEPDIR) to its actual value in the expansion.
11534  for file in `sed -n '
11535    /^DEP_FILES = .*\\\\$/ {
11536      s/^DEP_FILES = //
11537      :loop
11538        s/\\\\$//
11539        p
11540        n
11541        /\\\\$/ b loop
11542      p
11543    }
11544    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11545       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11546    # Make sure the directory exists.
11547    test -f "$dirpart/$file" && continue
11548    fdir=`(dirname "$file") 2>/dev/null ||
11549$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11550         X"$file" : 'X\(//\)[^/]' \| \
11551         X"$file" : 'X\(//\)$' \| \
11552         X"$file" : 'X\(/\)' \| \
11553         .     : '\(.\)' 2>/dev/null ||
11554echo X"$file" |
11555    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11556          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11557          /^X\(\/\/\)$/{ s//\1/; q; }
11558          /^X\(\/\).*/{ s//\1/; q; }
11559          s/.*/./; q'`
11560    { if $as_mkdir_p; then
11561    mkdir -p $dirpart/$fdir
11562  else
11563    as_dir=$dirpart/$fdir
11564    as_dirs=
11565    while test ! -d "$as_dir"; do
11566      as_dirs="$as_dir $as_dirs"
11567      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11569         X"$as_dir" : 'X\(//\)[^/]' \| \
11570         X"$as_dir" : 'X\(//\)$' \| \
11571         X"$as_dir" : 'X\(/\)' \| \
11572         .     : '\(.\)' 2>/dev/null ||
11573echo X"$as_dir" |
11574    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11575          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11576          /^X\(\/\/\)$/{ s//\1/; q; }
11577          /^X\(\/\).*/{ s//\1/; q; }
11578          s/.*/./; q'`
11579    done
11580    test ! -n "$as_dirs" || mkdir $as_dirs
11581  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11582echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11583   { (exit 1); exit 1; }; }; }
11584
11585    # echo "creating $dirpart/$file"
11586    echo '# dummy' > "$dirpart/$file"
11587  done
11588done
11589 ;;
11590  esac
11591done
11592_ACEOF
11593
11594cat >>$CONFIG_STATUS <<\_ACEOF
11595
11596{ (exit 0); exit 0; }
11597_ACEOF
11598chmod +x $CONFIG_STATUS
11599ac_clean_files=$ac_clean_files_save
11600
11601
11602# configure is writing to config.log, and then calls config.status.
11603# config.status does its own redirection, appending to config.log.
11604# Unfortunately, on DOS this fails, as config.log is still kept open
11605# by configure, so config.status won't be able to write to it; its
11606# output is simply discarded.  So we exec the FD to /dev/null,
11607# effectively closing config.log, so it can be properly (re)opened and
11608# appended to by config.status.  When coming back to configure, we
11609# need to make the FD available again.
11610if test "$no_create" != yes; then
11611  ac_cs_success=:
11612  ac_config_status_args=
11613  test "$silent" = yes &&
11614    ac_config_status_args="$ac_config_status_args --quiet"
11615  exec 5>/dev/null
11616  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11617  exec 5>>config.log
11618  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11619  # would make configure fail if this is the last instruction.
11620  $ac_cs_success || { (exit 1); exit 1; }
11621fi
11622
Note: See TracBrowser for help on using the repository browser.