Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/configure @ 4697

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

orxonox/trunk: compiling again on Windows (this was pain)

  • Property svn:executable set to *
File size: 313.8 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.2.3-pre-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.2.3-pre-alpha'
273PACKAGE_STRING='orxonox 0.2.3-pre-alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.2.3-pre-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.2.3-pre-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  --enable-sub-projects   also builds the subProjects while make from srcdir
872  --enable-profile        builds orxonox with profiling support
873  --enable-efence         builds orxonox with efence support
874  --enable-documentation  also builds the sDocumentation while make from
875                          srcdir
876
877Optional Packages:
878  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880  --without-gtk           Prevents GTK from being loaded
881  --without-curl          Prevents libcURL from being loaded
882
883Some influential environment variables:
884  CXX         C++ compiler command
885  CXXFLAGS    C++ compiler flags
886  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887              nonstandard directory <lib dir>
888  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889              headers in a nonstandard directory <include dir>
890  CC          C compiler command
891  CFLAGS      C compiler flags
892  CPP         C preprocessor
893
894Use these variables to override the choices made by `configure' or to help
895it to find libraries and programs with nonstandard names/locations.
896
897Report bugs to <orxonox-dev at mail.datacore.ch>.
898_ACEOF
899fi
900
901if test "$ac_init_help" = "recursive"; then
902  # If there are subdirs, report their specific --help.
903  ac_popdir=`pwd`
904  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905    test -d $ac_dir || continue
906    ac_builddir=.
907
908if test "$ac_dir" != .; then
909  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910  # A "../" for each directory in $ac_dir_suffix.
911  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912else
913  ac_dir_suffix= ac_top_builddir=
914fi
915
916case $srcdir in
917  .)  # No --srcdir option.  We are building in place.
918    ac_srcdir=.
919    if test -z "$ac_top_builddir"; then
920       ac_top_srcdir=.
921    else
922       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923    fi ;;
924  [\\/]* | ?:[\\/]* )  # Absolute path.
925    ac_srcdir=$srcdir$ac_dir_suffix;
926    ac_top_srcdir=$srcdir ;;
927  *) # Relative path.
928    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929    ac_top_srcdir=$ac_top_builddir$srcdir ;;
930esac
931
932# Do not use `cd foo && pwd` to compute absolute paths, because
933# the directories may not exist.
934case `pwd` in
935.) ac_abs_builddir="$ac_dir";;
936*)
937  case "$ac_dir" in
938  .) ac_abs_builddir=`pwd`;;
939  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
940  *) ac_abs_builddir=`pwd`/"$ac_dir";;
941  esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_builddir=${ac_top_builddir}.;;
945*)
946  case ${ac_top_builddir}. in
947  .) ac_abs_top_builddir=$ac_abs_builddir;;
948  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
949  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950  esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_srcdir=$ac_srcdir;;
954*)
955  case $ac_srcdir in
956  .) ac_abs_srcdir=$ac_abs_builddir;;
957  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
958  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959  esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_srcdir=$ac_top_srcdir;;
963*)
964  case $ac_top_srcdir in
965  .) ac_abs_top_srcdir=$ac_abs_builddir;;
966  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
967  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968  esac;;
969esac
970
971    cd $ac_dir
972    # Check for guested configure; otherwise get Cygnus style configure.
973    if test -f $ac_srcdir/configure.gnu; then
974      echo
975      $SHELL $ac_srcdir/configure.gnu  --help=recursive
976    elif test -f $ac_srcdir/configure; then
977      echo
978      $SHELL $ac_srcdir/configure  --help=recursive
979    elif test -f $ac_srcdir/configure.ac ||
980           test -f $ac_srcdir/configure.in; then
981      echo
982      $ac_configure --help
983    else
984      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985    fi
986    cd $ac_popdir
987  done
988fi
989
990test -n "$ac_init_help" && exit 0
991if $ac_init_version; then
992  cat <<\_ACEOF
993orxonox configure 0.2.3-pre-alpha
994generated by GNU Autoconf 2.59
995
996Copyright (C) 2003 Free Software Foundation, Inc.
997This configure script is free software; the Free Software Foundation
998gives unlimited permission to copy, distribute and modify it.
999_ACEOF
1000  exit 0
1001fi
1002exec 5>config.log
1003cat >&5 <<_ACEOF
1004This file contains any messages produced by compilers while
1005running configure, to aid debugging if configure makes a mistake.
1006
1007It was created by orxonox $as_me 0.2.3-pre-alpha, which was
1008generated by GNU Autoconf 2.59.  Invocation command line was
1009
1010  $ $0 $@
1011
1012_ACEOF
1013{
1014cat <<_ASUNAME
1015## --------- ##
1016## Platform. ##
1017## --------- ##
1018
1019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1027
1028/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1029/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1032/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1033/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1034/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1035
1036_ASUNAME
1037
1038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039for as_dir in $PATH
1040do
1041  IFS=$as_save_IFS
1042  test -z "$as_dir" && as_dir=.
1043  echo "PATH: $as_dir"
1044done
1045
1046} >&5
1047
1048cat >&5 <<_ACEOF
1049
1050
1051## ----------- ##
1052## Core tests. ##
1053## ----------- ##
1054
1055_ACEOF
1056
1057
1058# Keep a trace of the command line.
1059# Strip out --no-create and --no-recursion so they do not pile up.
1060# Strip out --silent because we don't want to record it for future runs.
1061# Also quote any args containing shell meta-characters.
1062# Make two passes to allow for proper duplicate-argument suppression.
1063ac_configure_args=
1064ac_configure_args0=
1065ac_configure_args1=
1066ac_sep=
1067ac_must_keep_next=false
1068for ac_pass in 1 2
1069do
1070  for ac_arg
1071  do
1072    case $ac_arg in
1073    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075    | -silent | --silent | --silen | --sile | --sil)
1076      continue ;;
1077    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079    esac
1080    case $ac_pass in
1081    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082    2)
1083      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084      if test $ac_must_keep_next = true; then
1085        ac_must_keep_next=false # Got value, back to normal.
1086      else
1087        case $ac_arg in
1088          *=* | --config-cache | -C | -disable-* | --disable-* \
1089          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091          | -with-* | --with-* | -without-* | --without-* | --x)
1092            case "$ac_configure_args0 " in
1093              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094            esac
1095            ;;
1096          -* ) ac_must_keep_next=true ;;
1097        esac
1098      fi
1099      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100      # Get rid of the leading space.
1101      ac_sep=" "
1102      ;;
1103    esac
1104  done
1105done
1106$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109# When interrupted or exit'd, cleanup temporary files, and complete
1110# config.log.  We remove comments because anyway the quotes in there
1111# would cause problems or look ugly.
1112# WARNING: Be sure not to use single quotes in there, as some shells,
1113# such as our DU 5.0 friend, will then `close' the trap.
1114trap 'exit_status=$?
1115  # Save into config.log some information that might help in debugging.
1116  {
1117    echo
1118
1119    cat <<\_ASBOX
1120## ---------------- ##
1121## Cache variables. ##
1122## ---------------- ##
1123_ASBOX
1124    echo
1125    # The following way of writing the cache mishandles newlines in values,
1126{
1127  (set) 2>&1 |
1128    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129    *ac_space=\ *)
1130      sed -n \
1131        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133      ;;
1134    *)
1135      sed -n \
1136        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137      ;;
1138    esac;
1139}
1140    echo
1141
1142    cat <<\_ASBOX
1143## ----------------- ##
1144## Output variables. ##
1145## ----------------- ##
1146_ASBOX
1147    echo
1148    for ac_var in $ac_subst_vars
1149    do
1150      eval ac_val=$`echo $ac_var`
1151      echo "$ac_var='"'"'$ac_val'"'"'"
1152    done | sort
1153    echo
1154
1155    if test -n "$ac_subst_files"; then
1156      cat <<\_ASBOX
1157## ------------- ##
1158## Output files. ##
1159## ------------- ##
1160_ASBOX
1161      echo
1162      for ac_var in $ac_subst_files
1163      do
1164        eval ac_val=$`echo $ac_var`
1165        echo "$ac_var='"'"'$ac_val'"'"'"
1166      done | sort
1167      echo
1168    fi
1169
1170    if test -s confdefs.h; then
1171      cat <<\_ASBOX
1172## ----------- ##
1173## confdefs.h. ##
1174## ----------- ##
1175_ASBOX
1176      echo
1177      sed "/^$/d" confdefs.h | sort
1178      echo
1179    fi
1180    test "$ac_signal" != 0 &&
1181      echo "$as_me: caught signal $ac_signal"
1182    echo "$as_me: exit $exit_status"
1183  } >&5
1184  rm -f core *.core &&
1185  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186    exit $exit_status
1187     ' 0
1188for ac_signal in 1 2 13 15; do
1189  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190done
1191ac_signal=0
1192
1193# confdefs.h avoids OS command line length limits that DEFS can exceed.
1194rm -rf conftest* confdefs.h
1195# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196echo >confdefs.h
1197
1198# Predefined preprocessor variables.
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_NAME "$PACKAGE_NAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_VERSION "$PACKAGE_VERSION"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_STRING "$PACKAGE_STRING"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222_ACEOF
1223
1224
1225# Let the site file select an alternate cache file if it wants to.
1226# Prefer explicitly selected file to automatically selected ones.
1227if test -z "$CONFIG_SITE"; then
1228  if test "x$prefix" != xNONE; then
1229    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230  else
1231    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232  fi
1233fi
1234for ac_site_file in $CONFIG_SITE; do
1235  if test -r "$ac_site_file"; then
1236    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237echo "$as_me: loading site script $ac_site_file" >&6;}
1238    sed 's/^/| /' "$ac_site_file" >&5
1239    . "$ac_site_file"
1240  fi
1241done
1242
1243if test -r "$cache_file"; then
1244  # Some versions of bash will fail to source /dev/null (special
1245  # files actually), so we avoid doing that.
1246  if test -f "$cache_file"; then
1247    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248echo "$as_me: loading cache $cache_file" >&6;}
1249    case $cache_file in
1250      [\\/]* | ?:[\\/]* ) . $cache_file;;
1251      *)                      . ./$cache_file;;
1252    esac
1253  fi
1254else
1255  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256echo "$as_me: creating cache $cache_file" >&6;}
1257  >$cache_file
1258fi
1259
1260# Check that the precious variables saved in the cache have kept the same
1261# value.
1262ac_cache_corrupted=false
1263for ac_var in `(set) 2>&1 |
1264               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266  eval ac_new_set=\$ac_env_${ac_var}_set
1267  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268  eval ac_new_val="\$ac_env_${ac_var}_value"
1269  case $ac_old_set,$ac_new_set in
1270    set,)
1271      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273      ac_cache_corrupted=: ;;
1274    ,set)
1275      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277      ac_cache_corrupted=: ;;
1278    ,);;
1279    *)
1280      if test "x$ac_old_val" != "x$ac_new_val"; then
1281        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1284echo "$as_me:   former value:  $ac_old_val" >&2;}
1285        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1286echo "$as_me:   current value: $ac_new_val" >&2;}
1287        ac_cache_corrupted=:
1288      fi;;
1289  esac
1290  # Pass precious variables to config.status.
1291  if test "$ac_new_set" = set; then
1292    case $ac_new_val in
1293    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295    *) ac_arg=$ac_var=$ac_new_val ;;
1296    esac
1297    case " $ac_configure_args " in
1298      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1299      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300    esac
1301  fi
1302done
1303if $ac_cache_corrupted; then
1304  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308   { (exit 1); exit 1; }; }
1309fi
1310
1311ac_ext=c
1312ac_cpp='$CPP $CPPFLAGS'
1313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
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## Detect the canonical host and target build environment.
1345ac_aux_dir=
1346for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1347  if test -f $ac_dir/install-sh; then
1348    ac_aux_dir=$ac_dir
1349    ac_install_sh="$ac_aux_dir/install-sh -c"
1350    break
1351  elif test -f $ac_dir/install.sh; then
1352    ac_aux_dir=$ac_dir
1353    ac_install_sh="$ac_aux_dir/install.sh -c"
1354    break
1355  elif test -f $ac_dir/shtool; then
1356    ac_aux_dir=$ac_dir
1357    ac_install_sh="$ac_aux_dir/shtool install -c"
1358    break
1359  fi
1360done
1361if test -z "$ac_aux_dir"; then
1362  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1363echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1367ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1368ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369
1370# Make sure we can run config.sub.
1371$ac_config_sub sun4 >/dev/null 2>&1 ||
1372  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1373echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1374   { (exit 1); exit 1; }; }
1375
1376echo "$as_me:$LINENO: checking build system type" >&5
1377echo $ECHO_N "checking build system type... $ECHO_C" >&6
1378if test "${ac_cv_build+set}" = set; then
1379  echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381  ac_cv_build_alias=$build_alias
1382test -z "$ac_cv_build_alias" &&
1383  ac_cv_build_alias=`$ac_config_guess`
1384test -z "$ac_cv_build_alias" &&
1385  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1386echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1387   { (exit 1); exit 1; }; }
1388ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1389  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1390echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1391   { (exit 1); exit 1; }; }
1392
1393fi
1394echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1395echo "${ECHO_T}$ac_cv_build" >&6
1396build=$ac_cv_build
1397build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402echo "$as_me:$LINENO: checking host system type" >&5
1403echo $ECHO_N "checking host system type... $ECHO_C" >&6
1404if test "${ac_cv_host+set}" = set; then
1405  echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407  ac_cv_host_alias=$host_alias
1408test -z "$ac_cv_host_alias" &&
1409  ac_cv_host_alias=$ac_cv_build_alias
1410ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1411  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1412echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1413   { (exit 1); exit 1; }; }
1414
1415fi
1416echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1417echo "${ECHO_T}$ac_cv_host" >&6
1418host=$ac_cv_host
1419host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424echo "$as_me:$LINENO: checking target system type" >&5
1425echo $ECHO_N "checking target system type... $ECHO_C" >&6
1426if test "${ac_cv_target+set}" = set; then
1427  echo $ECHO_N "(cached) $ECHO_C" >&6
1428else
1429  ac_cv_target_alias=$target_alias
1430test "x$ac_cv_target_alias" = "x" &&
1431  ac_cv_target_alias=$ac_cv_host_alias
1432ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1433  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1434echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1435   { (exit 1); exit 1; }; }
1436
1437fi
1438echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1439echo "${ECHO_T}$ac_cv_target" >&6
1440target=$ac_cv_target
1441target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444
1445
1446# The aliases save the names the user supplied, while $host etc.
1447# will get canonicalized.
1448test -n "$target_alias" &&
1449  test "$program_prefix$program_suffix$program_transform_name" = \
1450    NONENONEs,x,x, &&
1451  program_prefix=${target_alias}-
1452
1453am__api_version="1.8"
1454# Find a good install program.  We prefer a C program (faster),
1455# so one script is as good as another.  But avoid the broken or
1456# incompatible versions:
1457# SysV /etc/install, /usr/sbin/install
1458# SunOS /usr/etc/install
1459# IRIX /sbin/install
1460# AIX /bin/install
1461# AmigaOS /C/install, which installs bootblocks on floppy discs
1462# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1463# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465# OS/2's system install, which has a completely different semantic
1466# ./install, which can be erroneously created by make from ./install.sh.
1467echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469if test -z "$INSTALL"; then
1470if test "${ac_cv_path_install+set}" = set; then
1471  echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474for as_dir in $PATH
1475do
1476  IFS=$as_save_IFS
1477  test -z "$as_dir" && as_dir=.
1478  # Account for people who put trailing slashes in PATH elements.
1479case $as_dir/ in
1480  ./ | .// | /cC/* | \
1481  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1482  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1483  /usr/ucb/* ) ;;
1484  *)
1485    # OSF1 and SCO ODT 3.0 have their own names for install.
1486    # Don't use installbsd from OSF since it installs stuff as root
1487    # by default.
1488    for ac_prog in ginstall scoinst install; do
1489      for ac_exec_ext in '' $ac_executable_extensions; do
1490        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491          if test $ac_prog = install &&
1492            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1493            # AIX install.  It has an incompatible calling convention.
1494            :
1495          elif test $ac_prog = install &&
1496            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497            # program-specific install script used by HP pwplus--don't use.
1498            :
1499          else
1500            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1501            break 3
1502          fi
1503        fi
1504      done
1505    done
1506    ;;
1507esac
1508done
1509
1510
1511fi
1512  if test "${ac_cv_path_install+set}" = set; then
1513    INSTALL=$ac_cv_path_install
1514  else
1515    # As a last resort, use the slow shell script.  We don't cache a
1516    # path for INSTALL within a source directory, because that will
1517    # break other packages using the cache if that directory is
1518    # removed, or if the path is relative.
1519    INSTALL=$ac_install_sh
1520  fi
1521fi
1522echo "$as_me:$LINENO: result: $INSTALL" >&5
1523echo "${ECHO_T}$INSTALL" >&6
1524
1525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526# It thinks the first close brace ends the variable substitution.
1527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1528
1529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530
1531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1532
1533echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1535# Just in case
1536sleep 1
1537echo timestamp > conftest.file
1538# Do `set' in a subshell so we don't clobber the current shell's
1539# arguments.  Must try -L first in case configure is actually a
1540# symlink; some systems play weird games with the mod time of symlinks
1541# (eg FreeBSD returns the mod time of the symlink's containing
1542# directory).
1543if (
1544   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545   if test "$*" = "X"; then
1546      # -L didn't work.
1547      set X `ls -t $srcdir/configure conftest.file`
1548   fi
1549   rm -f conftest.file
1550   if test "$*" != "X $srcdir/configure conftest.file" \
1551      && test "$*" != "X conftest.file $srcdir/configure"; then
1552
1553      # If neither matched, then we have a broken ls.  This can happen
1554      # if, for instance, CONFIG_SHELL is bash and it inherits a
1555      # broken ls alias from the environment.  This has actually
1556      # happened.  Such a system could not be considered "sane".
1557      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1558alias in your environment" >&5
1559echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&2;}
1561   { (exit 1); exit 1; }; }
1562   fi
1563
1564   test "$2" = conftest.file
1565   )
1566then
1567   # Ok.
1568   :
1569else
1570   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571Check your system clock" >&5
1572echo "$as_me: error: newly created file is older than distributed files!
1573Check your system clock" >&2;}
1574   { (exit 1); exit 1; }; }
1575fi
1576echo "$as_me:$LINENO: result: yes" >&5
1577echo "${ECHO_T}yes" >&6
1578test "$program_prefix" != NONE &&
1579  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1580# Use a double $ so make ignores it.
1581test "$program_suffix" != NONE &&
1582  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1583# Double any \ or $.  echo might interpret backslashes.
1584# By default was `s,x,x', remove it if useless.
1585cat <<\_ACEOF >conftest.sed
1586s/[\\$]/&&/g;s/;s,x,x,$//
1587_ACEOF
1588program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1589rm conftest.sed
1590
1591# expand $ac_aux_dir to an absolute path
1592am_aux_dir=`cd $ac_aux_dir && pwd`
1593
1594test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1595# Use eval to expand $SHELL
1596if eval "$MISSING --run true"; then
1597  am_missing_run="$MISSING --run "
1598else
1599  am_missing_run=
1600  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1602fi
1603
1604if mkdir -p -- . 2>/dev/null; then
1605  # Keeping the `.' argument allows $(mkdir_p) to be used without
1606  # argument.  Indeed, we sometimes output rules like
1607  #   $(mkdir_p) $(somedir)
1608  # where $(somedir) is conditionally defined.
1609  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1610  # expensive solution, as it forces Make to start a sub-shell.)
1611  mkdir_p='mkdir -p -- .'
1612else
1613  # On NextStep and OpenStep, the `mkdir' command does not
1614  # recognize any option.  It will interpret all options as
1615  # directories to create, and then abort because `.' already
1616  # exists.
1617  for d in ./-p ./--;
1618  do
1619    test -d $d && rmdir $d
1620  done
1621  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1622  if test -f "$ac_aux_dir/mkinstalldirs"; then
1623    mkdir_p='$(mkinstalldirs)'
1624  else
1625    mkdir_p='$(install_sh) -d'
1626  fi
1627fi
1628
1629for ac_prog in gawk mawk nawk awk
1630do
1631  # Extract the first word of "$ac_prog", so it can be a program name with args.
1632set dummy $ac_prog; ac_word=$2
1633echo "$as_me:$LINENO: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_AWK+set}" = set; then
1636  echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638  if test -n "$AWK"; then
1639  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1640else
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644  IFS=$as_save_IFS
1645  test -z "$as_dir" && as_dir=.
1646  for ac_exec_ext in '' $ac_executable_extensions; do
1647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648    ac_cv_prog_AWK="$ac_prog"
1649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650    break 2
1651  fi
1652done
1653done
1654
1655fi
1656fi
1657AWK=$ac_cv_prog_AWK
1658if test -n "$AWK"; then
1659  echo "$as_me:$LINENO: result: $AWK" >&5
1660echo "${ECHO_T}$AWK" >&6
1661else
1662  echo "$as_me:$LINENO: result: no" >&5
1663echo "${ECHO_T}no" >&6
1664fi
1665
1666  test -n "$AWK" && break
1667done
1668
1669echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1670echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1671set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1672if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673  echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675  cat >conftest.make <<\_ACEOF
1676all:
1677        @echo 'ac_maketemp="$(MAKE)"'
1678_ACEOF
1679# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681if test -n "$ac_maketemp"; then
1682  eval ac_cv_prog_make_${ac_make}_set=yes
1683else
1684  eval ac_cv_prog_make_${ac_make}_set=no
1685fi
1686rm -f conftest.make
1687fi
1688if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689  echo "$as_me:$LINENO: result: yes" >&5
1690echo "${ECHO_T}yes" >&6
1691  SET_MAKE=
1692else
1693  echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695  SET_MAKE="MAKE=${MAKE-make}"
1696fi
1697
1698rm -rf .tst 2>/dev/null
1699mkdir .tst 2>/dev/null
1700if test -d .tst; then
1701  am__leading_dot=.
1702else
1703  am__leading_dot=_
1704fi
1705rmdir .tst 2>/dev/null
1706
1707# test to see if srcdir already configured
1708if test "`cd $srcdir && pwd`" != "`pwd`" &&
1709   test -f $srcdir/config.status; then
1710  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1711echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1712   { (exit 1); exit 1; }; }
1713fi
1714
1715# test whether we have cygpath
1716if test -z "$CYGPATH_W"; then
1717  if (cygpath --version) >/dev/null 2>/dev/null; then
1718    CYGPATH_W='cygpath -w'
1719  else
1720    CYGPATH_W=echo
1721  fi
1722fi
1723
1724
1725# Define the identity of the package.
1726 PACKAGE='orxonox'
1727 VERSION='0.2.3-pre-alpha'
1728
1729
1730cat >>confdefs.h <<_ACEOF
1731#define PACKAGE "$PACKAGE"
1732_ACEOF
1733
1734
1735cat >>confdefs.h <<_ACEOF
1736#define VERSION "$VERSION"
1737_ACEOF
1738
1739# Some tools Automake needs.
1740
1741ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1742
1743
1744AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1745
1746
1747AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1748
1749
1750AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1751
1752
1753MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1754
1755
1756AMTAR=${AMTAR-"${am_missing_run}tar"}
1757
1758install_sh=${install_sh-"$am_aux_dir/install-sh"}
1759
1760# Installed binaries are usually stripped using `strip' when the user
1761# run `make install-strip'.  However `strip' might not be the right
1762# tool to use in cross-compilation environments, therefore Automake
1763# will honor the `STRIP' environment variable to overrule this program.
1764if test "$cross_compiling" != no; then
1765  if test -n "$ac_tool_prefix"; then
1766  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1767set dummy ${ac_tool_prefix}strip; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_STRIP+set}" = set; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  if test -n "$STRIP"; then
1774  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1775else
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779  IFS=$as_save_IFS
1780  test -z "$as_dir" && as_dir=.
1781  for ac_exec_ext in '' $ac_executable_extensions; do
1782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785    break 2
1786  fi
1787done
1788done
1789
1790fi
1791fi
1792STRIP=$ac_cv_prog_STRIP
1793if test -n "$STRIP"; then
1794  echo "$as_me:$LINENO: result: $STRIP" >&5
1795echo "${ECHO_T}$STRIP" >&6
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801fi
1802if test -z "$ac_cv_prog_STRIP"; then
1803  ac_ct_STRIP=$STRIP
1804  # Extract the first word of "strip", so it can be a program name with args.
1805set dummy strip; ac_word=$2
1806echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1809  echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811  if test -n "$ac_ct_STRIP"; then
1812  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817  IFS=$as_save_IFS
1818  test -z "$as_dir" && as_dir=.
1819  for ac_exec_ext in '' $ac_executable_extensions; do
1820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821    ac_cv_prog_ac_ct_STRIP="strip"
1822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823    break 2
1824  fi
1825done
1826done
1827
1828  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1829fi
1830fi
1831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1832if test -n "$ac_ct_STRIP"; then
1833  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1834echo "${ECHO_T}$ac_ct_STRIP" >&6
1835else
1836  echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840  STRIP=$ac_ct_STRIP
1841else
1842  STRIP="$ac_cv_prog_STRIP"
1843fi
1844
1845fi
1846INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1847
1848# We need awk for the "check" target.  The system "awk" is bad on
1849# some platforms.
1850
1851
1852
1853
1854
1855          ac_config_headers="$ac_config_headers config.h"
1856
1857
1858#########################
1859## Checks for programs ##
1860#########################
1861ac_ext=cc
1862ac_cpp='$CXXCPP $CPPFLAGS'
1863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1866if test -n "$ac_tool_prefix"; then
1867  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1868  do
1869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1871echo "$as_me:$LINENO: checking for $ac_word" >&5
1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873if test "${ac_cv_prog_CXX+set}" = set; then
1874  echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876  if test -n "$CXX"; then
1877  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1878else
1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880for as_dir in $PATH
1881do
1882  IFS=$as_save_IFS
1883  test -z "$as_dir" && as_dir=.
1884  for ac_exec_ext in '' $ac_executable_extensions; do
1885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888    break 2
1889  fi
1890done
1891done
1892
1893fi
1894fi
1895CXX=$ac_cv_prog_CXX
1896if test -n "$CXX"; then
1897  echo "$as_me:$LINENO: result: $CXX" >&5
1898echo "${ECHO_T}$CXX" >&6
1899else
1900  echo "$as_me:$LINENO: result: no" >&5
1901echo "${ECHO_T}no" >&6
1902fi
1903
1904    test -n "$CXX" && break
1905  done
1906fi
1907if test -z "$CXX"; then
1908  ac_ct_CXX=$CXX
1909  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1910do
1911  # Extract the first word of "$ac_prog", so it can be a program name with args.
1912set dummy $ac_prog; ac_word=$2
1913echo "$as_me:$LINENO: checking for $ac_word" >&5
1914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1916  echo $ECHO_N "(cached) $ECHO_C" >&6
1917else
1918  if test -n "$ac_ct_CXX"; then
1919  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1920else
1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922for as_dir in $PATH
1923do
1924  IFS=$as_save_IFS
1925  test -z "$as_dir" && as_dir=.
1926  for ac_exec_ext in '' $ac_executable_extensions; do
1927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928    ac_cv_prog_ac_ct_CXX="$ac_prog"
1929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930    break 2
1931  fi
1932done
1933done
1934
1935fi
1936fi
1937ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1938if test -n "$ac_ct_CXX"; then
1939  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1940echo "${ECHO_T}$ac_ct_CXX" >&6
1941else
1942  echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6
1944fi
1945
1946  test -n "$ac_ct_CXX" && break
1947done
1948test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1949
1950  CXX=$ac_ct_CXX
1951fi
1952
1953
1954# Provide some information about the compiler.
1955echo "$as_me:$LINENO:" \
1956     "checking for C++ compiler version" >&5
1957ac_compiler=`set X $ac_compile; echo $2`
1958{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1959  (eval $ac_compiler --version </dev/null >&5) 2>&5
1960  ac_status=$?
1961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962  (exit $ac_status); }
1963{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1964  (eval $ac_compiler -v </dev/null >&5) 2>&5
1965  ac_status=$?
1966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967  (exit $ac_status); }
1968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1969  (eval $ac_compiler -V </dev/null >&5) 2>&5
1970  ac_status=$?
1971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972  (exit $ac_status); }
1973
1974cat >conftest.$ac_ext <<_ACEOF
1975/* confdefs.h.  */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h.  */
1980
1981int
1982main ()
1983{
1984
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989ac_clean_files_save=$ac_clean_files
1990ac_clean_files="$ac_clean_files a.out a.exe b.out"
1991# Try to create an executable without -o first, disregard a.out.
1992# It will help us diagnose broken compilers, and finding out an intuition
1993# of exeext.
1994echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1995echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1996ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1997if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1998  (eval $ac_link_default) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }; then
2002  # Find the output, starting from the most likely.  This scheme is
2003# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2004# resort.
2005
2006# Be careful to initialize this variable, since it used to be cached.
2007# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008ac_cv_exeext=
2009# b.out is created by i960 compilers.
2010for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2011do
2012  test -f "$ac_file" || continue
2013  case $ac_file in
2014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2015        ;;
2016    conftest.$ac_ext )
2017        # This is the source file.
2018        ;;
2019    [ab].out )
2020        # We found the default executable, but exeext='' is most
2021        # certainly right.
2022        break;;
2023    *.* )
2024        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2025        # FIXME: I believe we export ac_cv_exeext for Libtool,
2026        # but it would be cool to find out if it's true.  Does anybody
2027        # maintain Libtool? --akim.
2028        export ac_cv_exeext
2029        break;;
2030    * )
2031        break;;
2032  esac
2033done
2034else
2035  echo "$as_me: failed program was:" >&5
2036sed 's/^/| /' conftest.$ac_ext >&5
2037
2038{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&2;}
2042   { (exit 77); exit 77; }; }
2043fi
2044
2045ac_exeext=$ac_cv_exeext
2046echo "$as_me:$LINENO: result: $ac_file" >&5
2047echo "${ECHO_T}$ac_file" >&6
2048
2049# Check the compiler produces executables we can run.  If not, either
2050# the compiler is broken, or we cross compile.
2051echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2052echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2053# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2054# If not cross compiling, check that we can run a simple program.
2055if test "$cross_compiling" != yes; then
2056  if { ac_try='./$ac_file'
2057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058  (eval $ac_try) 2>&5
2059  ac_status=$?
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); }; }; then
2062    cross_compiling=no
2063  else
2064    if test "$cross_compiling" = maybe; then
2065        cross_compiling=yes
2066    else
2067        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2068If you meant to cross compile, use \`--host'.
2069See \`config.log' for more details." >&5
2070echo "$as_me: error: cannot run C++ compiled programs.
2071If you meant to cross compile, use \`--host'.
2072See \`config.log' for more details." >&2;}
2073   { (exit 1); exit 1; }; }
2074    fi
2075  fi
2076fi
2077echo "$as_me:$LINENO: result: yes" >&5
2078echo "${ECHO_T}yes" >&6
2079
2080rm -f a.out a.exe conftest$ac_cv_exeext b.out
2081ac_clean_files=$ac_clean_files_save
2082# Check the compiler produces executables we can run.  If not, either
2083# the compiler is broken, or we cross compile.
2084echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2085echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2086echo "$as_me:$LINENO: result: $cross_compiling" >&5
2087echo "${ECHO_T}$cross_compiling" >&6
2088
2089echo "$as_me:$LINENO: checking for suffix of executables" >&5
2090echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2092  (eval $ac_link) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; then
2096  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2097# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2098# work properly (i.e., refer to `conftest.exe'), while it won't with
2099# `rm'.
2100for ac_file in conftest.exe conftest conftest.*; do
2101  test -f "$ac_file" || continue
2102  case $ac_file in
2103    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2104    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105          export ac_cv_exeext
2106          break;;
2107    * ) break;;
2108  esac
2109done
2110else
2111  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2112See \`config.log' for more details." >&5
2113echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&2;}
2115   { (exit 1); exit 1; }; }
2116fi
2117
2118rm -f conftest$ac_cv_exeext
2119echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2120echo "${ECHO_T}$ac_cv_exeext" >&6
2121
2122rm -f conftest.$ac_ext
2123EXEEXT=$ac_cv_exeext
2124ac_exeext=$EXEEXT
2125echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127if test "${ac_cv_objext+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  cat >conftest.$ac_ext <<_ACEOF
2131/* confdefs.h.  */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h.  */
2136
2137int
2138main ()
2139{
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145rm -f conftest.o conftest.obj
2146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147  (eval $ac_compile) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }; then
2151  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152  case $ac_file in
2153    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2155       break;;
2156  esac
2157done
2158else
2159  echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163See \`config.log' for more details." >&5
2164echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&2;}
2166   { (exit 1); exit 1; }; }
2167fi
2168
2169rm -f conftest.$ac_cv_objext conftest.$ac_ext
2170fi
2171echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172echo "${ECHO_T}$ac_cv_objext" >&6
2173OBJEXT=$ac_cv_objext
2174ac_objext=$OBJEXT
2175echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2176echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2177if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  cat >conftest.$ac_ext <<_ACEOF
2181/* confdefs.h.  */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h.  */
2186
2187int
2188main ()
2189{
2190#ifndef __GNUC__
2191       choke me
2192#endif
2193
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198rm -f conftest.$ac_objext
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200  (eval $ac_compile) 2>conftest.er1
2201  ac_status=$?
2202  grep -v '^ *+' conftest.er1 >conftest.err
2203  rm -f conftest.er1
2204  cat conftest.err >&5
2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206  (exit $ac_status); } &&
2207         { ac_try='test -z "$ac_cxx_werror_flag"
2208                         || test ! -s conftest.err'
2209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210  (eval $ac_try) 2>&5
2211  ac_status=$?
2212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213  (exit $ac_status); }; } &&
2214         { ac_try='test -s conftest.$ac_objext'
2215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216  (eval $ac_try) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }; }; then
2220  ac_compiler_gnu=yes
2221else
2222  echo "$as_me: failed program was:" >&5
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
2225ac_compiler_gnu=no
2226fi
2227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2229
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2232echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2233GXX=`test $ac_compiler_gnu = yes && echo yes`
2234ac_test_CXXFLAGS=${CXXFLAGS+set}
2235ac_save_CXXFLAGS=$CXXFLAGS
2236CXXFLAGS="-g"
2237echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2238echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2239if test "${ac_cv_prog_cxx_g+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  cat >conftest.$ac_ext <<_ACEOF
2243/* confdefs.h.  */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h.  */
2248
2249int
2250main ()
2251{
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259  (eval $ac_compile) 2>conftest.er1
2260  ac_status=$?
2261  grep -v '^ *+' conftest.er1 >conftest.err
2262  rm -f conftest.er1
2263  cat conftest.err >&5
2264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265  (exit $ac_status); } &&
2266         { ac_try='test -z "$ac_cxx_werror_flag"
2267                         || test ! -s conftest.err'
2268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269  (eval $ac_try) 2>&5
2270  ac_status=$?
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); }; } &&
2273         { ac_try='test -s conftest.$ac_objext'
2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275  (eval $ac_try) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; }; then
2279  ac_cv_prog_cxx_g=yes
2280else
2281  echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284ac_cv_prog_cxx_g=no
2285fi
2286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2289echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2290if test "$ac_test_CXXFLAGS" = set; then
2291  CXXFLAGS=$ac_save_CXXFLAGS
2292elif test $ac_cv_prog_cxx_g = yes; then
2293  if test "$GXX" = yes; then
2294    CXXFLAGS="-g -O2"
2295  else
2296    CXXFLAGS="-g"
2297  fi
2298else
2299  if test "$GXX" = yes; then
2300    CXXFLAGS="-O2"
2301  else
2302    CXXFLAGS=
2303  fi
2304fi
2305for ac_declaration in \
2306   '' \
2307   'extern "C" void std::exit (int) throw (); using std::exit;' \
2308   'extern "C" void std::exit (int); using std::exit;' \
2309   'extern "C" void exit (int) throw ();' \
2310   'extern "C" void exit (int);' \
2311   'void exit (int);'
2312do
2313  cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h.  */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h.  */
2319$ac_declaration
2320#include <stdlib.h>
2321int
2322main ()
2323{
2324exit (42);
2325  ;
2326  return 0;
2327}
2328_ACEOF
2329rm -f conftest.$ac_objext
2330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331  (eval $ac_compile) 2>conftest.er1
2332  ac_status=$?
2333  grep -v '^ *+' conftest.er1 >conftest.err
2334  rm -f conftest.er1
2335  cat conftest.err >&5
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); } &&
2338         { ac_try='test -z "$ac_cxx_werror_flag"
2339                         || test ! -s conftest.err'
2340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341  (eval $ac_try) 2>&5
2342  ac_status=$?
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); }; } &&
2345         { ac_try='test -s conftest.$ac_objext'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; }; then
2351  :
2352else
2353  echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356continue
2357fi
2358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359  cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365$ac_declaration
2366int
2367main ()
2368{
2369exit (42);
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376  (eval $ac_compile) 2>conftest.er1
2377  ac_status=$?
2378  grep -v '^ *+' conftest.er1 >conftest.err
2379  rm -f conftest.er1
2380  cat conftest.err >&5
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); } &&
2383         { ac_try='test -z "$ac_cxx_werror_flag"
2384                         || test ! -s conftest.err'
2385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386  (eval $ac_try) 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }; } &&
2390         { ac_try='test -s conftest.$ac_objext'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; }; then
2396  break
2397else
2398  echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403done
2404rm -f conftest*
2405if test -n "$ac_declaration"; then
2406  echo '#ifdef __cplusplus' >>confdefs.h
2407  echo $ac_declaration      >>confdefs.h
2408  echo '#endif'             >>confdefs.h
2409fi
2410
2411ac_ext=c
2412ac_cpp='$CPP $CPPFLAGS'
2413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416DEPDIR="${am__leading_dot}deps"
2417
2418          ac_config_commands="$ac_config_commands depfiles"
2419
2420
2421am_make=${MAKE-make}
2422cat > confinc << 'END'
2423am__doit:
2424        @echo done
2425.PHONY: am__doit
2426END
2427# If we don't find an include directive, just comment out the code.
2428echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2429echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2430am__include="#"
2431am__quote=
2432_am_result=none
2433# First try GNU make style include.
2434echo "include confinc" > confmf
2435# We grep out `Entering directory' and `Leaving directory'
2436# messages which can occur if `w' ends up in MAKEFLAGS.
2437# In particular we don't look at `^make:' because GNU make might
2438# be invoked under some other name (usually "gmake"), in which
2439# case it prints its new name instead of `make'.
2440if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2441   am__include=include
2442   am__quote=
2443   _am_result=GNU
2444fi
2445# Now try BSD make style include.
2446if test "$am__include" = "#"; then
2447   echo '.include "confinc"' > confmf
2448   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2449      am__include=.include
2450      am__quote="\""
2451      _am_result=BSD
2452   fi
2453fi
2454
2455
2456echo "$as_me:$LINENO: result: $_am_result" >&5
2457echo "${ECHO_T}$_am_result" >&6
2458rm -f confinc confmf
2459
2460# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2461if test "${enable_dependency_tracking+set}" = set; then
2462  enableval="$enable_dependency_tracking"
2463
2464fi;
2465if test "x$enable_dependency_tracking" != xno; then
2466  am_depcomp="$ac_aux_dir/depcomp"
2467  AMDEPBACKSLASH='\'
2468fi
2469
2470
2471if test "x$enable_dependency_tracking" != xno; then
2472  AMDEP_TRUE=
2473  AMDEP_FALSE='#'
2474else
2475  AMDEP_TRUE='#'
2476  AMDEP_FALSE=
2477fi
2478
2479
2480
2481
2482depcc="$CXX"  am_compiler_list=
2483
2484echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2485echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2486if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2490  # We make a subdir and do the tests there.  Otherwise we can end up
2491  # making bogus files that we don't know about and never remove.  For
2492  # instance it was reported that on HP-UX the gcc test will end up
2493  # making a dummy file named `D' -- because `-MD' means `put the output
2494  # in D'.
2495  mkdir conftest.dir
2496  # Copy depcomp to subdir because otherwise we won't find it if we're
2497  # using a relative directory.
2498  cp "$am_depcomp" conftest.dir
2499  cd conftest.dir
2500  # We will build objects and dependencies in a subdirectory because
2501  # it helps to detect inapplicable dependency modes.  For instance
2502  # both Tru64's cc and ICC support -MD to output dependencies as a
2503  # side effect of compilation, but ICC will put the dependencies in
2504  # the current directory while Tru64 will put them in the object
2505  # directory.
2506  mkdir sub
2507
2508  am_cv_CXX_dependencies_compiler_type=none
2509  if test "$am_compiler_list" = ""; then
2510     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2511  fi
2512  for depmode in $am_compiler_list; do
2513    # Setup a source with many dependencies, because some compilers
2514    # like to wrap large dependency lists on column 80 (with \), and
2515    # we should not choose a depcomp mode which is confused by this.
2516    #
2517    # We need to recreate these files for each test, as the compiler may
2518    # overwrite some of them when testing with obscure command lines.
2519    # This happens at least with the AIX C compiler.
2520    : > sub/conftest.c
2521    for i in 1 2 3 4 5 6; do
2522      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2523      : > sub/conftst$i.h
2524    done
2525    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2526
2527    case $depmode in
2528    nosideeffect)
2529      # after this tag, mechanisms are not by side-effect, so they'll
2530      # only be used when explicitly requested
2531      if test "x$enable_dependency_tracking" = xyes; then
2532        continue
2533      else
2534        break
2535      fi
2536      ;;
2537    none) break ;;
2538    esac
2539    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2540    # mode.  It turns out that the SunPro C++ compiler does not properly
2541    # handle `-M -o', and we need to detect this.
2542    if depmode=$depmode \
2543       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2544       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2545       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2546         >/dev/null 2>conftest.err &&
2547       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2548       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2549       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2550      # icc doesn't choke on unknown options, it will just issue warnings
2551      # (even with -Werror).  So we grep stderr for any message
2552      # that says an option was ignored.
2553      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2554        am_cv_CXX_dependencies_compiler_type=$depmode
2555        break
2556      fi
2557    fi
2558  done
2559
2560  cd ..
2561  rm -rf conftest.dir
2562else
2563  am_cv_CXX_dependencies_compiler_type=none
2564fi
2565
2566fi
2567echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2568echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2569CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2570
2571
2572
2573if
2574  test "x$enable_dependency_tracking" != xno \
2575  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2576  am__fastdepCXX_TRUE=
2577  am__fastdepCXX_FALSE='#'
2578else
2579  am__fastdepCXX_TRUE='#'
2580  am__fastdepCXX_FALSE=
2581fi
2582
2583
2584if test -n "$ac_tool_prefix"; then
2585  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2586set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2587echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589if test "${ac_cv_prog_RANLIB+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  if test -n "$RANLIB"; then
2593  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600  for ac_exec_ext in '' $ac_executable_extensions; do
2601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604    break 2
2605  fi
2606done
2607done
2608
2609fi
2610fi
2611RANLIB=$ac_cv_prog_RANLIB
2612if test -n "$RANLIB"; then
2613  echo "$as_me:$LINENO: result: $RANLIB" >&5
2614echo "${ECHO_T}$RANLIB" >&6
2615else
2616  echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6
2618fi
2619
2620fi
2621if test -z "$ac_cv_prog_RANLIB"; then
2622  ac_ct_RANLIB=$RANLIB
2623  # Extract the first word of "ranlib", so it can be a program name with args.
2624set dummy ranlib; ac_word=$2
2625echo "$as_me:$LINENO: checking for $ac_word" >&5
2626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2627if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2628  echo $ECHO_N "(cached) $ECHO_C" >&6
2629else
2630  if test -n "$ac_ct_RANLIB"; then
2631  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638  for ac_exec_ext in '' $ac_executable_extensions; do
2639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640    ac_cv_prog_ac_ct_RANLIB="ranlib"
2641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642    break 2
2643  fi
2644done
2645done
2646
2647  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2648fi
2649fi
2650ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2651if test -n "$ac_ct_RANLIB"; then
2652  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2653echo "${ECHO_T}$ac_ct_RANLIB" >&6
2654else
2655  echo "$as_me:$LINENO: result: no" >&5
2656echo "${ECHO_T}no" >&6
2657fi
2658
2659  RANLIB=$ac_ct_RANLIB
2660else
2661  RANLIB="$ac_cv_prog_RANLIB"
2662fi
2663
2664ac_ext=c
2665ac_cpp='$CPP $CPPFLAGS'
2666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669if test -n "$ac_tool_prefix"; then
2670  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2671set dummy ${ac_tool_prefix}gcc; ac_word=$2
2672echo "$as_me:$LINENO: checking for $ac_word" >&5
2673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674if test "${ac_cv_prog_CC+set}" = set; then
2675  echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677  if test -n "$CC"; then
2678  ac_cv_prog_CC="$CC" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683  IFS=$as_save_IFS
2684  test -z "$as_dir" && as_dir=.
2685  for ac_exec_ext in '' $ac_executable_extensions; do
2686  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689    break 2
2690  fi
2691done
2692done
2693
2694fi
2695fi
2696CC=$ac_cv_prog_CC
2697if test -n "$CC"; then
2698  echo "$as_me:$LINENO: result: $CC" >&5
2699echo "${ECHO_T}$CC" >&6
2700else
2701  echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6
2703fi
2704
2705fi
2706if test -z "$ac_cv_prog_CC"; then
2707  ac_ct_CC=$CC
2708  # Extract the first word of "gcc", so it can be a program name with args.
2709set dummy gcc; ac_word=$2
2710echo "$as_me:$LINENO: checking for $ac_word" >&5
2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2713  echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715  if test -n "$ac_ct_CC"; then
2716  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723  for ac_exec_ext in '' $ac_executable_extensions; do
2724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725    ac_cv_prog_ac_ct_CC="gcc"
2726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727    break 2
2728  fi
2729done
2730done
2731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
2736  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737echo "${ECHO_T}$ac_ct_CC" >&6
2738else
2739  echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
2741fi
2742
2743  CC=$ac_ct_CC
2744else
2745  CC="$ac_cv_prog_CC"
2746fi
2747
2748if test -z "$CC"; then
2749  if test -n "$ac_tool_prefix"; then
2750  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2751set dummy ${ac_tool_prefix}cc; ac_word=$2
2752echo "$as_me:$LINENO: checking for $ac_word" >&5
2753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754if test "${ac_cv_prog_CC+set}" = set; then
2755  echo $ECHO_N "(cached) $ECHO_C" >&6
2756else
2757  if test -n "$CC"; then
2758  ac_cv_prog_CC="$CC" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763  IFS=$as_save_IFS
2764  test -z "$as_dir" && as_dir=.
2765  for ac_exec_ext in '' $ac_executable_extensions; do
2766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767    ac_cv_prog_CC="${ac_tool_prefix}cc"
2768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769    break 2
2770  fi
2771done
2772done
2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
2778  echo "$as_me:$LINENO: result: $CC" >&5
2779echo "${ECHO_T}$CC" >&6
2780else
2781  echo "$as_me:$LINENO: result: no" >&5
2782echo "${ECHO_T}no" >&6
2783fi
2784
2785fi
2786if test -z "$ac_cv_prog_CC"; then
2787  ac_ct_CC=$CC
2788  # Extract the first word of "cc", so it can be a program name with args.
2789set dummy cc; ac_word=$2
2790echo "$as_me:$LINENO: checking for $ac_word" >&5
2791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2793  echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795  if test -n "$ac_ct_CC"; then
2796  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803  for ac_exec_ext in '' $ac_executable_extensions; do
2804  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805    ac_cv_prog_ac_ct_CC="cc"
2806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810done
2811
2812fi
2813fi
2814ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815if test -n "$ac_ct_CC"; then
2816  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2817echo "${ECHO_T}$ac_ct_CC" >&6
2818else
2819  echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6
2821fi
2822
2823  CC=$ac_ct_CC
2824else
2825  CC="$ac_cv_prog_CC"
2826fi
2827
2828fi
2829if test -z "$CC"; then
2830  # Extract the first word of "cc", so it can be a program name with args.
2831set dummy cc; ac_word=$2
2832echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834if test "${ac_cv_prog_CC+set}" = set; then
2835  echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837  if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840  ac_prog_rejected=no
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846  for ac_exec_ext in '' $ac_executable_extensions; do
2847  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2849       ac_prog_rejected=yes
2850       continue
2851     fi
2852    ac_cv_prog_CC="cc"
2853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857done
2858
2859if test $ac_prog_rejected = yes; then
2860  # We found a bogon in the path, so make sure we never use it.
2861  set dummy $ac_cv_prog_CC
2862  shift
2863  if test $# != 0; then
2864    # We chose a different compiler from the bogus one.
2865    # However, it has the same basename, so the bogon will be chosen
2866    # first if we set CC to just the basename; use the full file name.
2867    shift
2868    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2869  fi
2870fi
2871fi
2872fi
2873CC=$ac_cv_prog_CC
2874if test -n "$CC"; then
2875  echo "$as_me:$LINENO: result: $CC" >&5
2876echo "${ECHO_T}$CC" >&6
2877else
2878  echo "$as_me:$LINENO: result: no" >&5
2879echo "${ECHO_T}no" >&6
2880fi
2881
2882fi
2883if test -z "$CC"; then
2884  if test -n "$ac_tool_prefix"; then
2885  for ac_prog in cl
2886  do
2887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2889echo "$as_me:$LINENO: checking for $ac_word" >&5
2890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891if test "${ac_cv_prog_CC+set}" = set; then
2892  echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894  if test -n "$CC"; then
2895  ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902  for ac_exec_ext in '' $ac_executable_extensions; do
2903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906    break 2
2907  fi
2908done
2909done
2910
2911fi
2912fi
2913CC=$ac_cv_prog_CC
2914if test -n "$CC"; then
2915  echo "$as_me:$LINENO: result: $CC" >&5
2916echo "${ECHO_T}$CC" >&6
2917else
2918  echo "$as_me:$LINENO: result: no" >&5
2919echo "${ECHO_T}no" >&6
2920fi
2921
2922    test -n "$CC" && break
2923  done
2924fi
2925if test -z "$CC"; then
2926  ac_ct_CC=$CC
2927  for ac_prog in cl
2928do
2929  # Extract the first word of "$ac_prog", so it can be a program name with args.
2930set dummy $ac_prog; ac_word=$2
2931echo "$as_me:$LINENO: checking for $ac_word" >&5
2932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2934  echo $ECHO_N "(cached) $ECHO_C" >&6
2935else
2936  if test -n "$ac_ct_CC"; then
2937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944  for ac_exec_ext in '' $ac_executable_extensions; do
2945  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    ac_cv_prog_ac_ct_CC="$ac_prog"
2947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951done
2952
2953fi
2954fi
2955ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956if test -n "$ac_ct_CC"; then
2957  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2958echo "${ECHO_T}$ac_ct_CC" >&6
2959else
2960  echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
2962fi
2963
2964  test -n "$ac_ct_CC" && break
2965done
2966
2967  CC=$ac_ct_CC
2968fi
2969
2970fi
2971
2972
2973test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2974See \`config.log' for more details." >&5
2975echo "$as_me: error: no acceptable C compiler found in \$PATH
2976See \`config.log' for more details." >&2;}
2977   { (exit 1); exit 1; }; }
2978
2979# Provide some information about the compiler.
2980echo "$as_me:$LINENO:" \
2981     "checking for C compiler version" >&5
2982ac_compiler=`set X $ac_compile; echo $2`
2983{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2984  (eval $ac_compiler --version </dev/null >&5) 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); }
2988{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2989  (eval $ac_compiler -v </dev/null >&5) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }
2993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2994  (eval $ac_compiler -V </dev/null >&5) 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }
2998
2999echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3000echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3001if test "${ac_cv_c_compiler_gnu+set}" = set; then
3002  echo $ECHO_N "(cached) $ECHO_C" >&6
3003else
3004  cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014#ifndef __GNUC__
3015       choke me
3016#endif
3017
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024  (eval $ac_compile) 2>conftest.er1
3025  ac_status=$?
3026  grep -v '^ *+' conftest.er1 >conftest.err
3027  rm -f conftest.er1
3028  cat conftest.err >&5
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); } &&
3031         { ac_try='test -z "$ac_c_werror_flag"
3032                         || test ! -s conftest.err'
3033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034  (eval $ac_try) 2>&5
3035  ac_status=$?
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); }; } &&
3038         { ac_try='test -s conftest.$ac_objext'
3039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040  (eval $ac_try) 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; }; then
3044  ac_compiler_gnu=yes
3045else
3046  echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049ac_compiler_gnu=no
3050fi
3051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052ac_cv_c_compiler_gnu=$ac_compiler_gnu
3053
3054fi
3055echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3057GCC=`test $ac_compiler_gnu = yes && echo yes`
3058ac_test_CFLAGS=${CFLAGS+set}
3059ac_save_CFLAGS=$CFLAGS
3060CFLAGS="-g"
3061echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3062echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3063if test "${ac_cv_prog_cc_g+set}" = set; then
3064  echo $ECHO_N "(cached) $ECHO_C" >&6
3065else
3066  cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h.  */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083  (eval $ac_compile) 2>conftest.er1
3084  ac_status=$?
3085  grep -v '^ *+' conftest.er1 >conftest.err
3086  rm -f conftest.er1
3087  cat conftest.err >&5
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); } &&
3090         { ac_try='test -z "$ac_c_werror_flag"
3091                         || test ! -s conftest.err'
3092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093  (eval $ac_try) 2>&5
3094  ac_status=$?
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; } &&
3097         { ac_try='test -s conftest.$ac_objext'
3098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099  (eval $ac_try) 2>&5
3100  ac_status=$?
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; }; then
3103  ac_cv_prog_cc_g=yes
3104else
3105  echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108ac_cv_prog_cc_g=no
3109fi
3110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3111fi
3112echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3114if test "$ac_test_CFLAGS" = set; then
3115  CFLAGS=$ac_save_CFLAGS
3116elif test $ac_cv_prog_cc_g = yes; then
3117  if test "$GCC" = yes; then
3118    CFLAGS="-g -O2"
3119  else
3120    CFLAGS="-g"
3121  fi
3122else
3123  if test "$GCC" = yes; then
3124    CFLAGS="-O2"
3125  else
3126    CFLAGS=
3127  fi
3128fi
3129echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3130echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3131if test "${ac_cv_prog_cc_stdc+set}" = set; then
3132  echo $ECHO_N "(cached) $ECHO_C" >&6
3133else
3134  ac_cv_prog_cc_stdc=no
3135ac_save_CC=$CC
3136cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h.  */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h.  */
3142#include <stdarg.h>
3143#include <stdio.h>
3144#include <sys/types.h>
3145#include <sys/stat.h>
3146/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3147struct buf { int x; };
3148FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149static char *e (p, i)
3150     char **p;
3151     int i;
3152{
3153  return p[i];
3154}
3155static char *f (char * (*g) (char **, int), char **p, ...)
3156{
3157  char *s;
3158  va_list v;
3159  va_start (v,p);
3160  s = g (p, va_arg (v,int));
3161  va_end (v);
3162  return s;
3163}
3164
3165/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3166   function prototypes and stuff, but not '\xHH' hex character constants.
3167   These don't provoke an error unfortunately, instead are silently treated
3168   as 'x'.  The following induces an error, until -std1 is added to get
3169   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3170   array size at least.  It's necessary to write '\x00'==0 to get something
3171   that's true only with -std1.  */
3172int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173
3174int test (int i, double x);
3175struct s1 {int (*f) (int a);};
3176struct s2 {int (*f) (double a);};
3177int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3178int argc;
3179char **argv;
3180int
3181main ()
3182{
3183return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188# Don't try gcc -ansi; that turns off useful extensions and
3189# breaks some systems' header files.
3190# AIX                   -qlanglvl=ansi
3191# Ultrix and OSF/1      -std1
3192# HP-UX 10.20 and later -Ae
3193# HP-UX older versions  -Aa -D_HPUX_SOURCE
3194# SVR4                  -Xc -D__EXTENSIONS__
3195for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196do
3197  CC="$ac_save_CC $ac_arg"
3198  rm -f conftest.$ac_objext
3199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200  (eval $ac_compile) 2>conftest.er1
3201  ac_status=$?
3202  grep -v '^ *+' conftest.er1 >conftest.err
3203  rm -f conftest.er1
3204  cat conftest.err >&5
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); } &&
3207         { ac_try='test -z "$ac_c_werror_flag"
3208                         || test ! -s conftest.err'
3209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210  (eval $ac_try) 2>&5
3211  ac_status=$?
3212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213  (exit $ac_status); }; } &&
3214         { ac_try='test -s conftest.$ac_objext'
3215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216  (eval $ac_try) 2>&5
3217  ac_status=$?
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); }; }; then
3220  ac_cv_prog_cc_stdc=$ac_arg
3221break
3222else
3223  echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226fi
3227rm -f conftest.err conftest.$ac_objext
3228done
3229rm -f conftest.$ac_ext conftest.$ac_objext
3230CC=$ac_save_CC
3231
3232fi
3233
3234case "x$ac_cv_prog_cc_stdc" in
3235  x|xno)
3236    echo "$as_me:$LINENO: result: none needed" >&5
3237echo "${ECHO_T}none needed" >&6 ;;
3238  *)
3239    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3240echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3241    CC="$CC $ac_cv_prog_cc_stdc" ;;
3242esac
3243
3244# Some people use a C++ compiler to compile C.  Since we use `exit',
3245# in C++ we need to declare it.  In case someone uses the same compiler
3246# for both compiling C and C++ we need to have the C++ compiler decide
3247# the declaration of exit, since it's the most demanding environment.
3248cat >conftest.$ac_ext <<_ACEOF
3249#ifndef __cplusplus
3250  choke me
3251#endif
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255  (eval $ac_compile) 2>conftest.er1
3256  ac_status=$?
3257  grep -v '^ *+' conftest.er1 >conftest.err
3258  rm -f conftest.er1
3259  cat conftest.err >&5
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); } &&
3262         { ac_try='test -z "$ac_c_werror_flag"
3263                         || test ! -s conftest.err'
3264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265  (eval $ac_try) 2>&5
3266  ac_status=$?
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); }; } &&
3269         { ac_try='test -s conftest.$ac_objext'
3270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271  (eval $ac_try) 2>&5
3272  ac_status=$?
3273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); }; }; then
3275  for ac_declaration in \
3276   '' \
3277   'extern "C" void std::exit (int) throw (); using std::exit;' \
3278   'extern "C" void std::exit (int); using std::exit;' \
3279   'extern "C" void exit (int) throw ();' \
3280   'extern "C" void exit (int);' \
3281   'void exit (int);'
3282do
3283  cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289$ac_declaration
3290#include <stdlib.h>
3291int
3292main ()
3293{
3294exit (42);
3295  ;
3296  return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext
3300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301  (eval $ac_compile) 2>conftest.er1
3302  ac_status=$?
3303  grep -v '^ *+' conftest.er1 >conftest.err
3304  rm -f conftest.er1
3305  cat conftest.err >&5
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); } &&
3308         { ac_try='test -z "$ac_c_werror_flag"
3309                         || test ! -s conftest.err'
3310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311  (eval $ac_try) 2>&5
3312  ac_status=$?
3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314  (exit $ac_status); }; } &&
3315         { ac_try='test -s conftest.$ac_objext'
3316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317  (eval $ac_try) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }; }; then
3321  :
3322else
3323  echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326continue
3327fi
3328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3329  cat >conftest.$ac_ext <<_ACEOF
3330/* confdefs.h.  */
3331_ACEOF
3332cat confdefs.h >>conftest.$ac_ext
3333cat >>conftest.$ac_ext <<_ACEOF
3334/* end confdefs.h.  */
3335$ac_declaration
3336int
3337main ()
3338{
3339exit (42);
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344rm -f conftest.$ac_objext
3345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346  (eval $ac_compile) 2>conftest.er1
3347  ac_status=$?
3348  grep -v '^ *+' conftest.er1 >conftest.err
3349  rm -f conftest.er1
3350  cat conftest.err >&5
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); } &&
3353         { ac_try='test -z "$ac_c_werror_flag"
3354                         || test ! -s conftest.err'
3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356  (eval $ac_try) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; } &&
3360         { ac_try='test -s conftest.$ac_objext'
3361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362  (eval $ac_try) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; }; then
3366  break
3367else
3368  echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371fi
3372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373done
3374rm -f conftest*
3375if test -n "$ac_declaration"; then
3376  echo '#ifdef __cplusplus' >>confdefs.h
3377  echo $ac_declaration      >>confdefs.h
3378  echo '#endif'             >>confdefs.h
3379fi
3380
3381else
3382  echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
3385fi
3386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392
3393depcc="$CC"   am_compiler_list=
3394
3395echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3396echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3397if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3398  echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3401  # We make a subdir and do the tests there.  Otherwise we can end up
3402  # making bogus files that we don't know about and never remove.  For
3403  # instance it was reported that on HP-UX the gcc test will end up
3404  # making a dummy file named `D' -- because `-MD' means `put the output
3405  # in D'.
3406  mkdir conftest.dir
3407  # Copy depcomp to subdir because otherwise we won't find it if we're
3408  # using a relative directory.
3409  cp "$am_depcomp" conftest.dir
3410  cd conftest.dir
3411  # We will build objects and dependencies in a subdirectory because
3412  # it helps to detect inapplicable dependency modes.  For instance
3413  # both Tru64's cc and ICC support -MD to output dependencies as a
3414  # side effect of compilation, but ICC will put the dependencies in
3415  # the current directory while Tru64 will put them in the object
3416  # directory.
3417  mkdir sub
3418
3419  am_cv_CC_dependencies_compiler_type=none
3420  if test "$am_compiler_list" = ""; then
3421     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3422  fi
3423  for depmode in $am_compiler_list; do
3424    # Setup a source with many dependencies, because some compilers
3425    # like to wrap large dependency lists on column 80 (with \), and
3426    # we should not choose a depcomp mode which is confused by this.
3427    #
3428    # We need to recreate these files for each test, as the compiler may
3429    # overwrite some of them when testing with obscure command lines.
3430    # This happens at least with the AIX C compiler.
3431    : > sub/conftest.c
3432    for i in 1 2 3 4 5 6; do
3433      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3434      : > sub/conftst$i.h
3435    done
3436    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3437
3438    case $depmode in
3439    nosideeffect)
3440      # after this tag, mechanisms are not by side-effect, so they'll
3441      # only be used when explicitly requested
3442      if test "x$enable_dependency_tracking" = xyes; then
3443        continue
3444      else
3445        break
3446      fi
3447      ;;
3448    none) break ;;
3449    esac
3450    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3451    # mode.  It turns out that the SunPro C++ compiler does not properly
3452    # handle `-M -o', and we need to detect this.
3453    if depmode=$depmode \
3454       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3455       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3456       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3457         >/dev/null 2>conftest.err &&
3458       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3459       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3460       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3461      # icc doesn't choke on unknown options, it will just issue warnings
3462      # (even with -Werror).  So we grep stderr for any message
3463      # that says an option was ignored.
3464      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3465        am_cv_CC_dependencies_compiler_type=$depmode
3466        break
3467      fi
3468    fi
3469  done
3470
3471  cd ..
3472  rm -rf conftest.dir
3473else
3474  am_cv_CC_dependencies_compiler_type=none
3475fi
3476
3477fi
3478echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3479echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3480CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3481
3482
3483
3484if
3485  test "x$enable_dependency_tracking" != xno \
3486  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3487  am__fastdepCC_TRUE=
3488  am__fastdepCC_FALSE='#'
3489else
3490  am__fastdepCC_TRUE='#'
3491  am__fastdepCC_FALSE=
3492fi
3493
3494
3495
3496ac_ext=c
3497ac_cpp='$CPP $CPPFLAGS'
3498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3502echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3503# On Suns, sometimes $CPP names a directory.
3504if test -n "$CPP" && test -d "$CPP"; then
3505  CPP=
3506fi
3507if test -z "$CPP"; then
3508  if test "${ac_cv_prog_CPP+set}" = set; then
3509  echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511      # Double quotes because CPP needs to be expanded
3512    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3513    do
3514      ac_preproc_ok=false
3515for ac_c_preproc_warn_flag in '' yes
3516do
3517  # Use a header file that comes with gcc, so configuring glibc
3518  # with a fresh cross-compiler works.
3519  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520  # <limits.h> exists even on freestanding compilers.
3521  # On the NeXT, cc -E runs the code through the compiler's parser,
3522  # not just through cpp. "Syntax error" is here to catch this case.
3523  cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h.  */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h.  */
3529#ifdef __STDC__
3530# include <limits.h>
3531#else
3532# include <assert.h>
3533#endif
3534                     Syntax error
3535_ACEOF
3536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3538  ac_status=$?
3539  grep -v '^ *+' conftest.er1 >conftest.err
3540  rm -f conftest.er1
3541  cat conftest.err >&5
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); } >/dev/null; then
3544  if test -s conftest.err; then
3545    ac_cpp_err=$ac_c_preproc_warn_flag
3546    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3547  else
3548    ac_cpp_err=
3549  fi
3550else
3551  ac_cpp_err=yes
3552fi
3553if test -z "$ac_cpp_err"; then
3554  :
3555else
3556  echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559  # Broken: fails on valid input.
3560continue
3561fi
3562rm -f conftest.err conftest.$ac_ext
3563
3564  # OK, works on sane cases.  Now check whether non-existent headers
3565  # can be detected and how.
3566  cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h.  */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h.  */
3572#include <ac_nonexistent.h>
3573_ACEOF
3574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3576  ac_status=$?
3577  grep -v '^ *+' conftest.er1 >conftest.err
3578  rm -f conftest.er1
3579  cat conftest.err >&5
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); } >/dev/null; then
3582  if test -s conftest.err; then
3583    ac_cpp_err=$ac_c_preproc_warn_flag
3584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585  else
3586    ac_cpp_err=
3587  fi
3588else
3589  ac_cpp_err=yes
3590fi
3591if test -z "$ac_cpp_err"; then
3592  # Broken: success on invalid input.
3593continue
3594else
3595  echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598  # Passes both tests.
3599ac_preproc_ok=:
3600break
3601fi
3602rm -f conftest.err conftest.$ac_ext
3603
3604done
3605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606rm -f conftest.err conftest.$ac_ext
3607if $ac_preproc_ok; then
3608  break
3609fi
3610
3611    done
3612    ac_cv_prog_CPP=$CPP
3613
3614fi
3615  CPP=$ac_cv_prog_CPP
3616else
3617  ac_cv_prog_CPP=$CPP
3618fi
3619echo "$as_me:$LINENO: result: $CPP" >&5
3620echo "${ECHO_T}$CPP" >&6
3621ac_preproc_ok=false
3622for ac_c_preproc_warn_flag in '' yes
3623do
3624  # Use a header file that comes with gcc, so configuring glibc
3625  # with a fresh cross-compiler works.
3626  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3627  # <limits.h> exists even on freestanding compilers.
3628  # On the NeXT, cc -E runs the code through the compiler's parser,
3629  # not just through cpp. "Syntax error" is here to catch this case.
3630  cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h.  */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h.  */
3636#ifdef __STDC__
3637# include <limits.h>
3638#else
3639# include <assert.h>
3640#endif
3641                     Syntax error
3642_ACEOF
3643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3644  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3645  ac_status=$?
3646  grep -v '^ *+' conftest.er1 >conftest.err
3647  rm -f conftest.er1
3648  cat conftest.err >&5
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); } >/dev/null; then
3651  if test -s conftest.err; then
3652    ac_cpp_err=$ac_c_preproc_warn_flag
3653    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654  else
3655    ac_cpp_err=
3656  fi
3657else
3658  ac_cpp_err=yes
3659fi
3660if test -z "$ac_cpp_err"; then
3661  :
3662else
3663  echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666  # Broken: fails on valid input.
3667continue
3668fi
3669rm -f conftest.err conftest.$ac_ext
3670
3671  # OK, works on sane cases.  Now check whether non-existent headers
3672  # can be detected and how.
3673  cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h.  */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h.  */
3679#include <ac_nonexistent.h>
3680_ACEOF
3681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3682  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3683  ac_status=$?
3684  grep -v '^ *+' conftest.er1 >conftest.err
3685  rm -f conftest.er1
3686  cat conftest.err >&5
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); } >/dev/null; then
3689  if test -s conftest.err; then
3690    ac_cpp_err=$ac_c_preproc_warn_flag
3691    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3692  else
3693    ac_cpp_err=
3694  fi
3695else
3696  ac_cpp_err=yes
3697fi
3698if test -z "$ac_cpp_err"; then
3699  # Broken: success on invalid input.
3700continue
3701else
3702  echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705  # Passes both tests.
3706ac_preproc_ok=:
3707break
3708fi
3709rm -f conftest.err conftest.$ac_ext
3710
3711done
3712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3713rm -f conftest.err conftest.$ac_ext
3714if $ac_preproc_ok; then
3715  :
3716else
3717  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3718See \`config.log' for more details." >&5
3719echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3720See \`config.log' for more details." >&2;}
3721   { (exit 1); exit 1; }; }
3722fi
3723
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
3730
3731echo "$as_me:$LINENO: checking for egrep" >&5
3732echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3733if test "${ac_cv_prog_egrep+set}" = set; then
3734  echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3737    then ac_cv_prog_egrep='grep -E'
3738    else ac_cv_prog_egrep='egrep'
3739    fi
3740fi
3741echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3742echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3743 EGREP=$ac_cv_prog_egrep
3744
3745
3746echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3748if test "${ac_cv_header_stdc+set}" = set; then
3749  echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751  cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757#include <stdlib.h>
3758#include <stdarg.h>
3759#include <string.h>
3760#include <float.h>
3761
3762int
3763main ()
3764{
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770rm -f conftest.$ac_objext
3771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772  (eval $ac_compile) 2>conftest.er1
3773  ac_status=$?
3774  grep -v '^ *+' conftest.er1 >conftest.err
3775  rm -f conftest.er1
3776  cat conftest.err >&5
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); } &&
3779         { ac_try='test -z "$ac_c_werror_flag"
3780                         || test ! -s conftest.err'
3781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782  (eval $ac_try) 2>&5
3783  ac_status=$?
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); }; } &&
3786         { ac_try='test -s conftest.$ac_objext'
3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788  (eval $ac_try) 2>&5
3789  ac_status=$?
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); }; }; then
3792  ac_cv_header_stdc=yes
3793else
3794  echo "$as_me: failed program was:" >&5
3795sed 's/^/| /' conftest.$ac_ext >&5
3796
3797ac_cv_header_stdc=no
3798fi
3799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800
3801if test $ac_cv_header_stdc = yes; then
3802  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3803  cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h.  */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h.  */
3809#include <string.h>
3810
3811_ACEOF
3812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813  $EGREP "memchr" >/dev/null 2>&1; then
3814  :
3815else
3816  ac_cv_header_stdc=no
3817fi
3818rm -f conftest*
3819
3820fi
3821
3822if test $ac_cv_header_stdc = yes; then
3823  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3824  cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h.  */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h.  */
3830#include <stdlib.h>
3831
3832_ACEOF
3833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834  $EGREP "free" >/dev/null 2>&1; then
3835  :
3836else
3837  ac_cv_header_stdc=no
3838fi
3839rm -f conftest*
3840
3841fi
3842
3843if test $ac_cv_header_stdc = yes; then
3844  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3845  if test "$cross_compiling" = yes; then
3846  :
3847else
3848  cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h.  */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h.  */
3854#include <ctype.h>
3855#if ((' ' & 0x0FF) == 0x020)
3856# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3857# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3858#else
3859# define ISLOWER(c) \
3860                   (('a' <= (c) && (c) <= 'i') \
3861                     || ('j' <= (c) && (c) <= 'r') \
3862                     || ('s' <= (c) && (c) <= 'z'))
3863# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3864#endif
3865
3866#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3867int
3868main ()
3869{
3870  int i;
3871  for (i = 0; i < 256; i++)
3872    if (XOR (islower (i), ISLOWER (i))
3873        || toupper (i) != TOUPPER (i))
3874      exit(2);
3875  exit (0);
3876}
3877_ACEOF
3878rm -f conftest$ac_exeext
3879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880  (eval $ac_link) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885  (eval $ac_try) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; }; then
3889  :
3890else
3891  echo "$as_me: program exited with status $ac_status" >&5
3892echo "$as_me: failed program was:" >&5
3893sed 's/^/| /' conftest.$ac_ext >&5
3894
3895( exit $ac_status )
3896ac_cv_header_stdc=no
3897fi
3898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3899fi
3900fi
3901fi
3902echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3903echo "${ECHO_T}$ac_cv_header_stdc" >&6
3904if test $ac_cv_header_stdc = yes; then
3905
3906cat >>confdefs.h <<\_ACEOF
3907#define STDC_HEADERS 1
3908_ACEOF
3909
3910fi
3911
3912
3913##################################
3914## CHECKING  OPTIONAL ARGUMENTS ##
3915##################################
3916
3917#-----------------#
3918# DEBUG-statement #
3919#-----------------#
3920DEBUG=no
3921echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3922echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3923# Check whether --enable-debug or --disable-debug was given.
3924if test "${enable_debug+set}" = set; then
3925  enableval="$enable_debug"
3926  DEBUG=$enableval
3927fi;
3928
3929if test x$DEBUG = xno; then
3930        echo "no"
3931        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3932        DEBUG=4
3933elif test x$DEBUG = xyes; then
3934        echo "yes"
3935        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3936        DEBUG=4
3937else
3938        echo "yes: setting debuglevel to to $DEBUG"
3939fi
3940
3941cat >>confdefs.h <<_ACEOF
3942#define DEBUG $DEBUG
3943_ACEOF
3944
3945
3946
3947
3948#---------------#
3949# Modular Debug #
3950#---------------#
3951MODULAR_DEBUG=yes
3952echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
3953echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
3954# Check whether --enable-modular-debug or --disable-modular-debug was given.
3955if test "${enable_modular_debug+set}" = set; then
3956  enableval="$enable_modular_debug"
3957  MODULAR_DEBUG=$enableval
3958fi;
3959
3960if test x$MODULAR_DEBUG = xno; then
3961        echo "no"
3962elif test x$MODULAR_DEBUG = xyes; then
3963        echo "yes"
3964
3965cat >>confdefs.h <<_ACEOF
3966#define MODULAR_DEBUG 1
3967_ACEOF
3968
3969fi
3970
3971#--------------#
3972# GTK-disabled #
3973#--------------#
3974echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3975echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3976
3977# Check whether --with-gtk or --without-gtk was given.
3978if test "${with_gtk+set}" = set; then
3979  withval="$with_gtk"
3980  def_gtk=no
3981else
3982  def_gtk=yes
3983fi;
3984if test x$def_gtk = xyes; then
3985  echo "yes"
3986fi
3987if test x$def_gtk = xno; then
3988  echo "no"
3989fi
3990
3991#------------------#
3992# libCurl-disabled #
3993#------------------#
3994echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
3995echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
3996
3997# Check whether --with-curl or --without-curl was given.
3998if test "${with_curl+set}" = set; then
3999  withval="$with_curl"
4000  def_curl=no
4001else
4002  def_curl=yes
4003fi;
4004if test x$def_curl = xyes; then
4005  echo "yes"
4006fi
4007if test x$def_curl = xno; then
4008  echo "no"
4009fi
4010
4011#-------------------#
4012# SubProject-enable #
4013#-------------------#
4014def_sub_projects=no
4015echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4016echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4017# Check whether --enable-sub-projects or --disable-sub-projects was given.
4018if test "${enable_sub_projects+set}" = set; then
4019  enableval="$enable_sub_projects"
4020  def_sub_projects=yes
4021fi;
4022if test x$def_sub_projects = xyes; then
4023  echo "yes"
4024fi
4025if test x$def_sub_projects = xno; then
4026  echo "no"
4027fi
4028
4029
4030if test x$def_sub_projects = xyes; then
4031  SUB_PROJECTS_TRUE=
4032  SUB_PROJECTS_FALSE='#'
4033else
4034  SUB_PROJECTS_TRUE='#'
4035  SUB_PROJECTS_FALSE=
4036fi
4037
4038
4039#-------------------#
4040# Profiling Enabled #
4041#-------------------#
4042def_profiling=no
4043echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4044echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4045# Check whether --enable-profile or --disable-profile was given.
4046if test "${enable_profile+set}" = set; then
4047  enableval="$enable_profile"
4048  def_profiling=yes
4049fi;
4050if test x$def_profiling = xyes; then
4051  echo "yes"
4052  CXXFLAGS="$CXXFLAGS -pg"
4053fi
4054if test x$def_profiling = xno; then
4055  echo "no"
4056fi
4057
4058#----------------#
4059# efence Enabled #
4060#----------------#
4061def_efence=no
4062echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4063echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4064# Check whether --enable-efence or --disable-efence was given.
4065if test "${enable_efence+set}" = set; then
4066  enableval="$enable_efence"
4067  def_efence=yes
4068fi;
4069if test x$def_efence = xyes; then
4070  echo "yes"
4071fi
4072if test x$def_efence = xno; then
4073  echo "no"
4074fi
4075
4076#----------------------#
4077# Documentation-enable #
4078#----------------------#
4079def_documentation=no
4080echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4081echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4082# Check whether --enable-documentation or --disable-documentation was given.
4083if test "${enable_documentation+set}" = set; then
4084  enableval="$enable_documentation"
4085  def_documentation=yes
4086fi;
4087if test x$def_documentation = xyes; then
4088  echo "yes"
4089fi
4090if test x$def_documentation = xno; then
4091  echo "no"
4092fi
4093
4094
4095if test x$def_documentation = xyes; then
4096  DOCUMENTATION_TRUE=
4097  DOCUMENTATION_FALSE='#'
4098else
4099  DOCUMENTATION_TRUE='#'
4100  DOCUMENTATION_FALSE=
4101fi
4102
4103#######################
4104## PROGRAMM CHECKING ##
4105## 3. party Programs ##
4106#######################
4107
4108#----------------------#
4109# checking for Doxygen #
4110#----------------------#
4111# Extract the first word of "doxygen", so it can be a program name with args.
4112set dummy doxygen; ac_word=$2
4113echo "$as_me:$LINENO: checking for $ac_word" >&5
4114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115if test "${ac_cv_path_DOXYGEN+set}" = set; then
4116  echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118  case $DOXYGEN in
4119  [\\/]* | ?:[\\/]*)
4120  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4121  ;;
4122  *)
4123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH
4125do
4126  IFS=$as_save_IFS
4127  test -z "$as_dir" && as_dir=.
4128  for ac_exec_ext in '' $ac_executable_extensions; do
4129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132    break 2
4133  fi
4134done
4135done
4136
4137  ;;
4138esac
4139fi
4140DOXYGEN=$ac_cv_path_DOXYGEN
4141
4142if test -n "$DOXYGEN"; then
4143  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4144echo "${ECHO_T}$DOXYGEN" >&6
4145else
4146  echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
4148fi
4149
4150
4151
4152if test $DOXYGEN; then
4153  DOXYGEN_TRUE=
4154  DOXYGEN_FALSE='#'
4155else
4156  DOXYGEN_TRUE='#'
4157  DOXYGEN_FALSE=
4158fi
4159
4160
4161#--------------------#
4162# checking for gprof #
4163#--------------------#
4164# Extract the first word of "gprof", so it can be a program name with args.
4165set dummy gprof; ac_word=$2
4166echo "$as_me:$LINENO: checking for $ac_word" >&5
4167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168if test "${ac_cv_path_GPROF+set}" = set; then
4169  echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171  case $GPROF in
4172  [\\/]* | ?:[\\/]*)
4173  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4174  ;;
4175  *)
4176  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179  IFS=$as_save_IFS
4180  test -z "$as_dir" && as_dir=.
4181  for ac_exec_ext in '' $ac_executable_extensions; do
4182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185    break 2
4186  fi
4187done
4188done
4189
4190  ;;
4191esac
4192fi
4193GPROF=$ac_cv_path_GPROF
4194
4195if test -n "$GPROF"; then
4196  echo "$as_me:$LINENO: result: $GPROF" >&5
4197echo "${ECHO_T}$GPROF" >&6
4198else
4199  echo "$as_me:$LINENO: result: no" >&5
4200echo "${ECHO_T}no" >&6
4201fi
4202
4203
4204#-------------------------#
4205# checking for pkg-config #
4206#-------------------------#
4207if test x$def_gtk = xyes; then
4208 # Extract the first word of "pkg-config", so it can be a program name with args.
4209set dummy pkg-config; ac_word=$2
4210echo "$as_me:$LINENO: checking for $ac_word" >&5
4211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4213  echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215  case $PKG_CONFIG in
4216  [\\/]* | ?:[\\/]*)
4217  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4218  ;;
4219  *)
4220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225  for ac_exec_ext in '' $ac_executable_extensions; do
4226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232done
4233
4234  ;;
4235esac
4236fi
4237PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4238
4239if test -n "$PKG_CONFIG"; then
4240  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4241echo "${ECHO_T}$PKG_CONFIG" >&6
4242else
4243  echo "$as_me:$LINENO: result: no" >&5
4244echo "${ECHO_T}no" >&6
4245fi
4246
4247fi
4248
4249
4250#########################
4251## CHECKING FOR SYSTEM ##
4252#########################
4253## here the system is checked, and openGL is included
4254## also checking for SDL on differen Systems
4255
4256echo "$as_me:$LINENO: checking for System" >&5
4257echo $ECHO_N "checking for System... $ECHO_C" >&6
4258## checking for openGL-environment and other sys-specific parameters
4259case "$target" in
4260#---------#
4261# WINDOWS #
4262#---------#
4263  *-*-mingw32*)
4264echo "mingw-WINDOWS detected"
4265
4266CPPFLAGS="-I/usr/include -I/mingw/include"
4267
4268    mingw="yes"
4269    MSBITFIELDS="-mms-bitfields"
4270    MWINDOWS="-mwindows"
4271
4272
4273
4274# checking for mingw32
4275    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4276echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4277if test "${ac_cv_lib_mingw32_main+set}" = set; then
4278  echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280  ac_check_lib_save_LIBS=$LIBS
4281LIBS="-lmingw32  $LIBS"
4282cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h.  */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h.  */
4288
4289
4290int
4291main ()
4292{
4293main ();
4294  ;
4295  return 0;
4296}
4297_ACEOF
4298rm -f conftest.$ac_objext conftest$ac_exeext
4299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4300  (eval $ac_link) 2>conftest.er1
4301  ac_status=$?
4302  grep -v '^ *+' conftest.er1 >conftest.err
4303  rm -f conftest.er1
4304  cat conftest.err >&5
4305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306  (exit $ac_status); } &&
4307         { ac_try='test -z "$ac_c_werror_flag"
4308                         || test ! -s conftest.err'
4309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310  (eval $ac_try) 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); }; } &&
4314         { ac_try='test -s conftest$ac_exeext'
4315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316  (eval $ac_try) 2>&5
4317  ac_status=$?
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); }; }; then
4320  ac_cv_lib_mingw32_main=yes
4321else
4322  echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325ac_cv_lib_mingw32_main=no
4326fi
4327rm -f conftest.err conftest.$ac_objext \
4328      conftest$ac_exeext conftest.$ac_ext
4329LIBS=$ac_check_lib_save_LIBS
4330fi
4331echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4332echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4333if test $ac_cv_lib_mingw32_main = yes; then
4334  FOUND_mingw32=yes
4335fi
4336
4337    if test x$FOUND_mingw32 = xyes; then
4338        LIBS="$LIBS -lmingw32"
4339    fi
4340
4341#-----------#
4342# SDL (win) #
4343#-----------#
4344# checking for SDL-headers
4345    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4356                  inttypes.h stdint.h unistd.h
4357do
4358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4359echo "$as_me:$LINENO: checking for $ac_header" >&5
4360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4361if eval "test \"\${$as_ac_Header+set}\" = set"; then
4362  echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364  cat >conftest.$ac_ext <<_ACEOF
4365/* confdefs.h.  */
4366_ACEOF
4367cat confdefs.h >>conftest.$ac_ext
4368cat >>conftest.$ac_ext <<_ACEOF
4369/* end confdefs.h.  */
4370$ac_includes_default
4371
4372#include <$ac_header>
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376  (eval $ac_compile) 2>conftest.er1
4377  ac_status=$?
4378  grep -v '^ *+' conftest.er1 >conftest.err
4379  rm -f conftest.er1
4380  cat conftest.err >&5
4381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382  (exit $ac_status); } &&
4383         { ac_try='test -z "$ac_c_werror_flag"
4384                         || test ! -s conftest.err'
4385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386  (eval $ac_try) 2>&5
4387  ac_status=$?
4388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389  (exit $ac_status); }; } &&
4390         { ac_try='test -s conftest.$ac_objext'
4391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392  (eval $ac_try) 2>&5
4393  ac_status=$?
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); }; }; then
4396  eval "$as_ac_Header=yes"
4397else
4398  echo "$as_me: failed program was:" >&5
4399sed 's/^/| /' conftest.$ac_ext >&5
4400
4401eval "$as_ac_Header=no"
4402fi
4403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404fi
4405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4407if test `eval echo '${'$as_ac_Header'}'` = yes; then
4408  cat >>confdefs.h <<_ACEOF
4409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4410_ACEOF
4411
4412fi
4413
4414done
4415
4416
4417
4418for ac_header in SDL/SDL.h
4419do
4420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4421if eval "test \"\${$as_ac_Header+set}\" = set"; then
4422  echo "$as_me:$LINENO: checking for $ac_header" >&5
4423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4424if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425  echo $ECHO_N "(cached) $ECHO_C" >&6
4426fi
4427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4429else
4430  # Is the header compilable?
4431echo "$as_me:$LINENO: checking $ac_header usability" >&5
4432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4433cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h.  */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h.  */
4439$ac_includes_default
4440#include <$ac_header>
4441_ACEOF
4442rm -f conftest.$ac_objext
4443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444  (eval $ac_compile) 2>conftest.er1
4445  ac_status=$?
4446  grep -v '^ *+' conftest.er1 >conftest.err
4447  rm -f conftest.er1
4448  cat conftest.err >&5
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); } &&
4451         { ac_try='test -z "$ac_c_werror_flag"
4452                         || test ! -s conftest.err'
4453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454  (eval $ac_try) 2>&5
4455  ac_status=$?
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); }; } &&
4458         { ac_try='test -s conftest.$ac_objext'
4459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460  (eval $ac_try) 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); }; }; then
4464  ac_header_compiler=yes
4465else
4466  echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469ac_header_compiler=no
4470fi
4471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4473echo "${ECHO_T}$ac_header_compiler" >&6
4474
4475# Is the header present?
4476echo "$as_me:$LINENO: checking $ac_header presence" >&5
4477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4478cat >conftest.$ac_ext <<_ACEOF
4479/* confdefs.h.  */
4480_ACEOF
4481cat confdefs.h >>conftest.$ac_ext
4482cat >>conftest.$ac_ext <<_ACEOF
4483/* end confdefs.h.  */
4484#include <$ac_header>
4485_ACEOF
4486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4487  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4488  ac_status=$?
4489  grep -v '^ *+' conftest.er1 >conftest.err
4490  rm -f conftest.er1
4491  cat conftest.err >&5
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); } >/dev/null; then
4494  if test -s conftest.err; then
4495    ac_cpp_err=$ac_c_preproc_warn_flag
4496    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4497  else
4498    ac_cpp_err=
4499  fi
4500else
4501  ac_cpp_err=yes
4502fi
4503if test -z "$ac_cpp_err"; then
4504  ac_header_preproc=yes
4505else
4506  echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
4509  ac_header_preproc=no
4510fi
4511rm -f conftest.err conftest.$ac_ext
4512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4513echo "${ECHO_T}$ac_header_preproc" >&6
4514
4515# So?  What about this header?
4516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4517  yes:no: )
4518    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4520    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4522    ac_header_preproc=yes
4523    ;;
4524  no:yes:* )
4525    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4527    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4528echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4529    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4531    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4532echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4533    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4535    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4537    (
4538      cat <<\_ASBOX
4539## ---------------------------------------------- ##
4540## Report this to orxonox-dev at mail.datacore.ch ##
4541## ---------------------------------------------- ##
4542_ASBOX
4543    ) |
4544      sed "s/^/$as_me: WARNING:     /" >&2
4545    ;;
4546esac
4547echo "$as_me:$LINENO: checking for $ac_header" >&5
4548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4549if eval "test \"\${$as_ac_Header+set}\" = set"; then
4550  echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552  eval "$as_ac_Header=\$ac_header_preproc"
4553fi
4554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4556
4557fi
4558if test `eval echo '${'$as_ac_Header'}'` = yes; then
4559  cat >>confdefs.h <<_ACEOF
4560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561_ACEOF
4562
4563else
4564  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4565echo "$as_me: error: cannot find SDL headers" >&2;}
4566   { (exit 1); exit 1; }; }
4567fi
4568
4569done
4570
4571
4572#checking for libSDL
4573    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4574echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4575if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4576  echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578  ac_check_lib_save_LIBS=$LIBS
4579LIBS="-lsdlmain  $LIBS"
4580cat >conftest.$ac_ext <<_ACEOF
4581/* confdefs.h.  */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
4585/* end confdefs.h.  */
4586
4587
4588int
4589main ()
4590{
4591main ();
4592  ;
4593  return 0;
4594}
4595_ACEOF
4596rm -f conftest.$ac_objext conftest$ac_exeext
4597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598  (eval $ac_link) 2>conftest.er1
4599  ac_status=$?
4600  grep -v '^ *+' conftest.er1 >conftest.err
4601  rm -f conftest.er1
4602  cat conftest.err >&5
4603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604  (exit $ac_status); } &&
4605         { ac_try='test -z "$ac_c_werror_flag"
4606                         || test ! -s conftest.err'
4607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608  (eval $ac_try) 2>&5
4609  ac_status=$?
4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); }; } &&
4612         { ac_try='test -s conftest$ac_exeext'
4613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614  (eval $ac_try) 2>&5
4615  ac_status=$?
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); }; }; then
4618  ac_cv_lib_sdlmain_main=yes
4619else
4620  echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623ac_cv_lib_sdlmain_main=no
4624fi
4625rm -f conftest.err conftest.$ac_objext \
4626      conftest$ac_exeext conftest.$ac_ext
4627LIBS=$ac_check_lib_save_LIBS
4628fi
4629echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4630echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4631if test $ac_cv_lib_sdlmain_main = yes; then
4632  FOUND_sdlmain=yes
4633fi
4634
4635    if test x$FOUND_sdlmain = xyes ; then
4636       LIBS="$LIBS -lsdlmain"
4637    else
4638        echo "------------------"
4639        echo "SDL library not found."
4640        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4641        echo "------------------"
4642        exit 1
4643    fi
4644    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4645echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4646if test "${ac_cv_lib_sdl_main+set}" = set; then
4647  echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649  ac_check_lib_save_LIBS=$LIBS
4650LIBS="-lsdl  $LIBS"
4651cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h.  */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h.  */
4657
4658
4659int
4660main ()
4661{
4662main ();
4663  ;
4664  return 0;
4665}
4666_ACEOF
4667rm -f conftest.$ac_objext conftest$ac_exeext
4668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4669  (eval $ac_link) 2>conftest.er1
4670  ac_status=$?
4671  grep -v '^ *+' conftest.er1 >conftest.err
4672  rm -f conftest.er1
4673  cat conftest.err >&5
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); } &&
4676         { ac_try='test -z "$ac_c_werror_flag"
4677                         || test ! -s conftest.err'
4678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679  (eval $ac_try) 2>&5
4680  ac_status=$?
4681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682  (exit $ac_status); }; } &&
4683         { ac_try='test -s conftest$ac_exeext'
4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685  (eval $ac_try) 2>&5
4686  ac_status=$?
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); }; }; then
4689  ac_cv_lib_sdl_main=yes
4690else
4691  echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694ac_cv_lib_sdl_main=no
4695fi
4696rm -f conftest.err conftest.$ac_objext \
4697      conftest$ac_exeext conftest.$ac_ext
4698LIBS=$ac_check_lib_save_LIBS
4699fi
4700echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4701echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4702if test $ac_cv_lib_sdl_main = yes; then
4703  FOUND_sdl=yes
4704fi
4705
4706    if test x$FOUND_sdl = xyes ; then
4707       LIBS="$LIBS -lsdl"
4708    else
4709        echo "------------------"
4710        echo "SDL library not found."
4711        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4712        echo "------------------"
4713        exit -1
4714    fi
4715
4716#---------------#
4717# open-GL (win) #
4718#---------------#
4719# checking gl header
4720
4721for ac_header in GL/gl.h
4722do
4723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724if eval "test \"\${$as_ac_Header+set}\" = set"; then
4725  echo "$as_me:$LINENO: checking for $ac_header" >&5
4726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4727if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728  echo $ECHO_N "(cached) $ECHO_C" >&6
4729fi
4730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4732else
4733  # Is the header compilable?
4734echo "$as_me:$LINENO: checking $ac_header usability" >&5
4735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4736cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h.  */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h.  */
4742$ac_includes_default
4743#include <$ac_header>
4744_ACEOF
4745rm -f conftest.$ac_objext
4746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747  (eval $ac_compile) 2>conftest.er1
4748  ac_status=$?
4749  grep -v '^ *+' conftest.er1 >conftest.err
4750  rm -f conftest.er1
4751  cat conftest.err >&5
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); } &&
4754         { ac_try='test -z "$ac_c_werror_flag"
4755                         || test ! -s conftest.err'
4756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757  (eval $ac_try) 2>&5
4758  ac_status=$?
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); }; } &&
4761         { ac_try='test -s conftest.$ac_objext'
4762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763  (eval $ac_try) 2>&5
4764  ac_status=$?
4765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766  (exit $ac_status); }; }; then
4767  ac_header_compiler=yes
4768else
4769  echo "$as_me: failed program was:" >&5
4770sed 's/^/| /' conftest.$ac_ext >&5
4771
4772ac_header_compiler=no
4773fi
4774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776echo "${ECHO_T}$ac_header_compiler" >&6
4777
4778# Is the header present?
4779echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4781cat >conftest.$ac_ext <<_ACEOF
4782/* confdefs.h.  */
4783_ACEOF
4784cat confdefs.h >>conftest.$ac_ext
4785cat >>conftest.$ac_ext <<_ACEOF
4786/* end confdefs.h.  */
4787#include <$ac_header>
4788_ACEOF
4789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4790  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4791  ac_status=$?
4792  grep -v '^ *+' conftest.er1 >conftest.err
4793  rm -f conftest.er1
4794  cat conftest.err >&5
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); } >/dev/null; then
4797  if test -s conftest.err; then
4798    ac_cpp_err=$ac_c_preproc_warn_flag
4799    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4800  else
4801    ac_cpp_err=
4802  fi
4803else
4804  ac_cpp_err=yes
4805fi
4806if test -z "$ac_cpp_err"; then
4807  ac_header_preproc=yes
4808else
4809  echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812  ac_header_preproc=no
4813fi
4814rm -f conftest.err conftest.$ac_ext
4815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816echo "${ECHO_T}$ac_header_preproc" >&6
4817
4818# So?  What about this header?
4819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4820  yes:no: )
4821    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4825    ac_header_preproc=yes
4826    ;;
4827  no:yes:* )
4828    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4830    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4831echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4832    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4834    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4835echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4836    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4838    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4840    (
4841      cat <<\_ASBOX
4842## ---------------------------------------------- ##
4843## Report this to orxonox-dev at mail.datacore.ch ##
4844## ---------------------------------------------- ##
4845_ASBOX
4846    ) |
4847      sed "s/^/$as_me: WARNING:     /" >&2
4848    ;;
4849esac
4850echo "$as_me:$LINENO: checking for $ac_header" >&5
4851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853  echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855  eval "$as_ac_Header=\$ac_header_preproc"
4856fi
4857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4859
4860fi
4861if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862  cat >>confdefs.h <<_ACEOF
4863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864_ACEOF
4865
4866else
4867  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4868echo "$as_me: error: cannot find opengl headers" >&2;}
4869   { (exit 1); exit 1; }; }
4870fi
4871
4872done
4873
4874#   checking for Windows openGl library
4875    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4876echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4877if test "${ac_cv_lib_opengl32_main+set}" = set; then
4878  echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
4880  ac_check_lib_save_LIBS=$LIBS
4881LIBS="-lopengl32  $LIBS"
4882cat >conftest.$ac_ext <<_ACEOF
4883/* confdefs.h.  */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h.  */
4888
4889
4890int
4891main ()
4892{
4893main ();
4894  ;
4895  return 0;
4896}
4897_ACEOF
4898rm -f conftest.$ac_objext conftest$ac_exeext
4899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4900  (eval $ac_link) 2>conftest.er1
4901  ac_status=$?
4902  grep -v '^ *+' conftest.er1 >conftest.err
4903  rm -f conftest.er1
4904  cat conftest.err >&5
4905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906  (exit $ac_status); } &&
4907         { ac_try='test -z "$ac_c_werror_flag"
4908                         || test ! -s conftest.err'
4909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910  (eval $ac_try) 2>&5
4911  ac_status=$?
4912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913  (exit $ac_status); }; } &&
4914         { ac_try='test -s conftest$ac_exeext'
4915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916  (eval $ac_try) 2>&5
4917  ac_status=$?
4918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); }; }; then
4920  ac_cv_lib_opengl32_main=yes
4921else
4922  echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925ac_cv_lib_opengl32_main=no
4926fi
4927rm -f conftest.err conftest.$ac_objext \
4928      conftest$ac_exeext conftest.$ac_ext
4929LIBS=$ac_check_lib_save_LIBS
4930fi
4931echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4932echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4933if test $ac_cv_lib_opengl32_main = yes; then
4934  FOUND_opengl32=yes
4935else
4936  "gl/gl.h"
4937fi
4938
4939    if test x$FOUND_opengl32 = xyes ; then
4940        LIBS="$LIBS -lopengl32"
4941    else
4942         echo "------------------"
4943         echo "opengl not found."
4944         echo "please install the opengl package which can be found at http://www.opengl.org"
4945         echo "------------------"
4946         exit -1
4947    fi
4948
4949# cheking for GLU-header
4950
4951for ac_header in GL/glu.h
4952do
4953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4954if eval "test \"\${$as_ac_Header+set}\" = set"; then
4955  echo "$as_me:$LINENO: checking for $ac_header" >&5
4956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4957if eval "test \"\${$as_ac_Header+set}\" = set"; then
4958  echo $ECHO_N "(cached) $ECHO_C" >&6
4959fi
4960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4962else
4963  # Is the header compilable?
4964echo "$as_me:$LINENO: checking $ac_header usability" >&5
4965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4966cat >conftest.$ac_ext <<_ACEOF
4967/* confdefs.h.  */
4968_ACEOF
4969cat confdefs.h >>conftest.$ac_ext
4970cat >>conftest.$ac_ext <<_ACEOF
4971/* end confdefs.h.  */
4972$ac_includes_default
4973#include <$ac_header>
4974_ACEOF
4975rm -f conftest.$ac_objext
4976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977  (eval $ac_compile) 2>conftest.er1
4978  ac_status=$?
4979  grep -v '^ *+' conftest.er1 >conftest.err
4980  rm -f conftest.er1
4981  cat conftest.err >&5
4982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983  (exit $ac_status); } &&
4984         { ac_try='test -z "$ac_c_werror_flag"
4985                         || test ! -s conftest.err'
4986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987  (eval $ac_try) 2>&5
4988  ac_status=$?
4989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990  (exit $ac_status); }; } &&
4991         { ac_try='test -s conftest.$ac_objext'
4992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993  (eval $ac_try) 2>&5
4994  ac_status=$?
4995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996  (exit $ac_status); }; }; then
4997  ac_header_compiler=yes
4998else
4999  echo "$as_me: failed program was:" >&5
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
5002ac_header_compiler=no
5003fi
5004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5006echo "${ECHO_T}$ac_header_compiler" >&6
5007
5008# Is the header present?
5009echo "$as_me:$LINENO: checking $ac_header presence" >&5
5010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5011cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h.  */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h.  */
5017#include <$ac_header>
5018_ACEOF
5019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021  ac_status=$?
5022  grep -v '^ *+' conftest.er1 >conftest.err
5023  rm -f conftest.er1
5024  cat conftest.err >&5
5025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); } >/dev/null; then
5027  if test -s conftest.err; then
5028    ac_cpp_err=$ac_c_preproc_warn_flag
5029    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5030  else
5031    ac_cpp_err=
5032  fi
5033else
5034  ac_cpp_err=yes
5035fi
5036if test -z "$ac_cpp_err"; then
5037  ac_header_preproc=yes
5038else
5039  echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
5042  ac_header_preproc=no
5043fi
5044rm -f conftest.err conftest.$ac_ext
5045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5046echo "${ECHO_T}$ac_header_preproc" >&6
5047
5048# So?  What about this header?
5049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5050  yes:no: )
5051    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5053    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5055    ac_header_preproc=yes
5056    ;;
5057  no:yes:* )
5058    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5060    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5061echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5062    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5064    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5065echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5066    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5068    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5070    (
5071      cat <<\_ASBOX
5072## ---------------------------------------------- ##
5073## Report this to orxonox-dev at mail.datacore.ch ##
5074## ---------------------------------------------- ##
5075_ASBOX
5076    ) |
5077      sed "s/^/$as_me: WARNING:     /" >&2
5078    ;;
5079esac
5080echo "$as_me:$LINENO: checking for $ac_header" >&5
5081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5082if eval "test \"\${$as_ac_Header+set}\" = set"; then
5083  echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085  eval "$as_ac_Header=\$ac_header_preproc"
5086fi
5087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5089
5090fi
5091if test `eval echo '${'$as_ac_Header'}'` = yes; then
5092  cat >>confdefs.h <<_ACEOF
5093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5094_ACEOF
5095
5096else
5097  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5098echo "$as_me: error: cannot find opengl headers" >&2;}
5099   { (exit 1); exit 1; }; }
5100fi
5101
5102done
5103
5104
5105# checking for libGLU
5106    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
5107echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
5108if test "${ac_cv_lib_glu32_main+set}" = set; then
5109  echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111  ac_check_lib_save_LIBS=$LIBS
5112LIBS="-lglu32  $LIBS"
5113cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h.  */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h.  */
5119
5120
5121int
5122main ()
5123{
5124main ();
5125  ;
5126  return 0;
5127}
5128_ACEOF
5129rm -f conftest.$ac_objext conftest$ac_exeext
5130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131  (eval $ac_link) 2>conftest.er1
5132  ac_status=$?
5133  grep -v '^ *+' conftest.er1 >conftest.err
5134  rm -f conftest.er1
5135  cat conftest.err >&5
5136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137  (exit $ac_status); } &&
5138         { ac_try='test -z "$ac_c_werror_flag"
5139                         || test ! -s conftest.err'
5140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141  (eval $ac_try) 2>&5
5142  ac_status=$?
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); }; } &&
5145         { ac_try='test -s conftest$ac_exeext'
5146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147  (eval $ac_try) 2>&5
5148  ac_status=$?
5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); }; }; then
5151  ac_cv_lib_glu32_main=yes
5152else
5153  echo "$as_me: failed program was:" >&5
5154sed 's/^/| /' conftest.$ac_ext >&5
5155
5156ac_cv_lib_glu32_main=no
5157fi
5158rm -f conftest.err conftest.$ac_objext \
5159      conftest$ac_exeext conftest.$ac_ext
5160LIBS=$ac_check_lib_save_LIBS
5161fi
5162echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
5163echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5164if test $ac_cv_lib_glu32_main = yes; then
5165  FOUND_glu32=yes
5166fi
5167
5168    if test x$FOUND_glu32 = xyes ; then
5169        LIBS="$LIBS -lGLU32"
5170    else
5171         echo "------------------"
5172         echo "GLU library not found."
5173         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5174         echo "------------------"
5175         exit -1
5176    fi
5177
5178#--------#
5179# openAL #
5180#--------#
5181# checking for openAL-headers
5182
5183for ac_header in AL/al.h
5184do
5185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5186if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187  echo "$as_me:$LINENO: checking for $ac_header" >&5
5188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5189if eval "test \"\${$as_ac_Header+set}\" = set"; then
5190  echo $ECHO_N "(cached) $ECHO_C" >&6
5191fi
5192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5194else
5195  # Is the header compilable?
5196echo "$as_me:$LINENO: checking $ac_header usability" >&5
5197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5198cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h.  */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h.  */
5204$ac_includes_default
5205#include <$ac_header>
5206_ACEOF
5207rm -f conftest.$ac_objext
5208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5209  (eval $ac_compile) 2>conftest.er1
5210  ac_status=$?
5211  grep -v '^ *+' conftest.er1 >conftest.err
5212  rm -f conftest.er1
5213  cat conftest.err >&5
5214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215  (exit $ac_status); } &&
5216         { ac_try='test -z "$ac_c_werror_flag"
5217                         || test ! -s conftest.err'
5218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219  (eval $ac_try) 2>&5
5220  ac_status=$?
5221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222  (exit $ac_status); }; } &&
5223         { ac_try='test -s conftest.$ac_objext'
5224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225  (eval $ac_try) 2>&5
5226  ac_status=$?
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); }; }; then
5229  ac_header_compiler=yes
5230else
5231  echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
5234ac_header_compiler=no
5235fi
5236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5237echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238echo "${ECHO_T}$ac_header_compiler" >&6
5239
5240# Is the header present?
5241echo "$as_me:$LINENO: checking $ac_header presence" >&5
5242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5243cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h.  */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h.  */
5249#include <$ac_header>
5250_ACEOF
5251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5252  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5253  ac_status=$?
5254  grep -v '^ *+' conftest.er1 >conftest.err
5255  rm -f conftest.er1
5256  cat conftest.err >&5
5257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258  (exit $ac_status); } >/dev/null; then
5259  if test -s conftest.err; then
5260    ac_cpp_err=$ac_c_preproc_warn_flag
5261    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5262  else
5263    ac_cpp_err=
5264  fi
5265else
5266  ac_cpp_err=yes
5267fi
5268if test -z "$ac_cpp_err"; then
5269  ac_header_preproc=yes
5270else
5271  echo "$as_me: failed program was:" >&5
5272sed 's/^/| /' conftest.$ac_ext >&5
5273
5274  ac_header_preproc=no
5275fi
5276rm -f conftest.err conftest.$ac_ext
5277echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278echo "${ECHO_T}$ac_header_preproc" >&6
5279
5280# So?  What about this header?
5281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5282  yes:no: )
5283    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5285    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5286echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5287    ac_header_preproc=yes
5288    ;;
5289  no:yes:* )
5290    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5292    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5293echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5294    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5295echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5296    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5297echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5298    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5300    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5301echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5302    (
5303      cat <<\_ASBOX
5304## ---------------------------------------------- ##
5305## Report this to orxonox-dev at mail.datacore.ch ##
5306## ---------------------------------------------- ##
5307_ASBOX
5308    ) |
5309      sed "s/^/$as_me: WARNING:     /" >&2
5310    ;;
5311esac
5312echo "$as_me:$LINENO: checking for $ac_header" >&5
5313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5314if eval "test \"\${$as_ac_Header+set}\" = set"; then
5315  echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317  eval "$as_ac_Header=\$ac_header_preproc"
5318fi
5319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5321
5322fi
5323if test `eval echo '${'$as_ac_Header'}'` = yes; then
5324  cat >>confdefs.h <<_ACEOF
5325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5326_ACEOF
5327
5328else
5329  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5330echo "$as_me: error: cannot find openAL header." >&2;}
5331   { (exit 1); exit 1; }; }
5332fi
5333
5334done
5335
5336# checking for openAL-lib
5337  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5338echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5339if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5340  echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342  ac_check_lib_save_LIBS=$LIBS
5343LIBS="-lOpenAL32  $LIBS"
5344cat >conftest.$ac_ext <<_ACEOF
5345/* confdefs.h.  */
5346_ACEOF
5347cat confdefs.h >>conftest.$ac_ext
5348cat >>conftest.$ac_ext <<_ACEOF
5349/* end confdefs.h.  */
5350
5351
5352int
5353main ()
5354{
5355main ();
5356  ;
5357  return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext conftest$ac_exeext
5361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5362  (eval $ac_link) 2>conftest.er1
5363  ac_status=$?
5364  grep -v '^ *+' conftest.er1 >conftest.err
5365  rm -f conftest.er1
5366  cat conftest.err >&5
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); } &&
5369         { ac_try='test -z "$ac_c_werror_flag"
5370                         || test ! -s conftest.err'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; } &&
5376         { ac_try='test -s conftest$ac_exeext'
5377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378  (eval $ac_try) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }; }; then
5382  ac_cv_lib_OpenAL32_main=yes
5383else
5384  echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387ac_cv_lib_OpenAL32_main=no
5388fi
5389rm -f conftest.err conftest.$ac_objext \
5390      conftest$ac_exeext conftest.$ac_ext
5391LIBS=$ac_check_lib_save_LIBS
5392fi
5393echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5394echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5395if test $ac_cv_lib_OpenAL32_main = yes; then
5396  FOUND_openal=yes
5397fi
5398
5399  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5400echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5401if test "${ac_cv_lib_ALut_main+set}" = set; then
5402  echo $ECHO_N "(cached) $ECHO_C" >&6
5403else
5404  ac_check_lib_save_LIBS=$LIBS
5405LIBS="-lALut  $LIBS"
5406cat >conftest.$ac_ext <<_ACEOF
5407/* confdefs.h.  */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h.  */
5412
5413
5414int
5415main ()
5416{
5417main ();
5418  ;
5419  return 0;
5420}
5421_ACEOF
5422rm -f conftest.$ac_objext conftest$ac_exeext
5423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424  (eval $ac_link) 2>conftest.er1
5425  ac_status=$?
5426  grep -v '^ *+' conftest.er1 >conftest.err
5427  rm -f conftest.er1
5428  cat conftest.err >&5
5429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430  (exit $ac_status); } &&
5431         { ac_try='test -z "$ac_c_werror_flag"
5432                         || test ! -s conftest.err'
5433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434  (eval $ac_try) 2>&5
5435  ac_status=$?
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); }; } &&
5438         { ac_try='test -s conftest$ac_exeext'
5439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440  (eval $ac_try) 2>&5
5441  ac_status=$?
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); }; }; then
5444  ac_cv_lib_ALut_main=yes
5445else
5446  echo "$as_me: failed program was:" >&5
5447sed 's/^/| /' conftest.$ac_ext >&5
5448
5449ac_cv_lib_ALut_main=no
5450fi
5451rm -f conftest.err conftest.$ac_objext \
5452      conftest$ac_exeext conftest.$ac_ext
5453LIBS=$ac_check_lib_save_LIBS
5454fi
5455echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5456echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5457if test $ac_cv_lib_ALut_main = yes; then
5458  FOUND_ALut=yes
5459fi
5460
5461     if test x$FOUND_openal = xyes ; then
5462      if test x$FOUND_ALut = xyes ; then
5463       LIBS="$LIBS -lALut -lOpenAL32"
5464     else
5465        echo "------------------"
5466        echo "openal library not found."
5467        echo "please install the openal library, which can be found at http://www.openal.org"
5468        echo "------------------"
5469        exit -1
5470      fi
5471     fi
5472    ;;
5473#-------#
5474# LINUX #
5475#-------#
5476 *-*-linux*)
5477echo "Linux detected"
5478
5479 Linux="yes"
5480
5481CPPFLAGS="-I/usr/X11R6/include -I/usr/include"
5482LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
5483# checking gl header
5484
5485for ac_header in GL/gl.h
5486do
5487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5488if eval "test \"\${$as_ac_Header+set}\" = set"; then
5489  echo "$as_me:$LINENO: checking for $ac_header" >&5
5490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5491if eval "test \"\${$as_ac_Header+set}\" = set"; then
5492  echo $ECHO_N "(cached) $ECHO_C" >&6
5493fi
5494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5496else
5497  # Is the header compilable?
5498echo "$as_me:$LINENO: checking $ac_header usability" >&5
5499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5500cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h.  */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h.  */
5506$ac_includes_default
5507#include <$ac_header>
5508_ACEOF
5509rm -f conftest.$ac_objext
5510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511  (eval $ac_compile) 2>conftest.er1
5512  ac_status=$?
5513  grep -v '^ *+' conftest.er1 >conftest.err
5514  rm -f conftest.er1
5515  cat conftest.err >&5
5516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517  (exit $ac_status); } &&
5518         { ac_try='test -z "$ac_c_werror_flag"
5519                         || test ! -s conftest.err'
5520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521  (eval $ac_try) 2>&5
5522  ac_status=$?
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); }; } &&
5525         { ac_try='test -s conftest.$ac_objext'
5526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527  (eval $ac_try) 2>&5
5528  ac_status=$?
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); }; }; then
5531  ac_header_compiler=yes
5532else
5533  echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536ac_header_compiler=no
5537fi
5538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5540echo "${ECHO_T}$ac_header_compiler" >&6
5541
5542# Is the header present?
5543echo "$as_me:$LINENO: checking $ac_header presence" >&5
5544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5545cat >conftest.$ac_ext <<_ACEOF
5546/* confdefs.h.  */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h.  */
5551#include <$ac_header>
5552_ACEOF
5553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5554  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5555  ac_status=$?
5556  grep -v '^ *+' conftest.er1 >conftest.err
5557  rm -f conftest.er1
5558  cat conftest.err >&5
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); } >/dev/null; then
5561  if test -s conftest.err; then
5562    ac_cpp_err=$ac_c_preproc_warn_flag
5563    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5564  else
5565    ac_cpp_err=
5566  fi
5567else
5568  ac_cpp_err=yes
5569fi
5570if test -z "$ac_cpp_err"; then
5571  ac_header_preproc=yes
5572else
5573  echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576  ac_header_preproc=no
5577fi
5578rm -f conftest.err conftest.$ac_ext
5579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5580echo "${ECHO_T}$ac_header_preproc" >&6
5581
5582# So?  What about this header?
5583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5584  yes:no: )
5585    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5587    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5589    ac_header_preproc=yes
5590    ;;
5591  no:yes:* )
5592    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5594    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5595echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5596    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5598    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5599echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5600    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5602    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5604    (
5605      cat <<\_ASBOX
5606## ---------------------------------------------- ##
5607## Report this to orxonox-dev at mail.datacore.ch ##
5608## ---------------------------------------------- ##
5609_ASBOX
5610    ) |
5611      sed "s/^/$as_me: WARNING:     /" >&2
5612    ;;
5613esac
5614echo "$as_me:$LINENO: checking for $ac_header" >&5
5615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5616if eval "test \"\${$as_ac_Header+set}\" = set"; then
5617  echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619  eval "$as_ac_Header=\$ac_header_preproc"
5620fi
5621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5623
5624fi
5625if test `eval echo '${'$as_ac_Header'}'` = yes; then
5626  cat >>confdefs.h <<_ACEOF
5627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5628_ACEOF
5629
5630else
5631  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5632echo "$as_me: error: cannot find opengl headers" >&2;}
5633   { (exit 1); exit 1; }; }
5634fi
5635
5636done
5637
5638
5639#  checking for Unix GL
5640   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5641echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5642if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5643  echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645  ac_check_lib_save_LIBS=$LIBS
5646LIBS="-lGL  $LIBS"
5647cat >conftest.$ac_ext <<_ACEOF
5648/* confdefs.h.  */
5649_ACEOF
5650cat confdefs.h >>conftest.$ac_ext
5651cat >>conftest.$ac_ext <<_ACEOF
5652/* end confdefs.h.  */
5653
5654/* Override any gcc2 internal prototype to avoid an error.  */
5655#ifdef __cplusplus
5656extern "C"
5657#endif
5658/* We use char because int might match the return type of a gcc2
5659   builtin and then its argument prototype would still apply.  */
5660char glLoadIdentity ();
5661int
5662main ()
5663{
5664glLoadIdentity ();
5665  ;
5666  return 0;
5667}
5668_ACEOF
5669rm -f conftest.$ac_objext conftest$ac_exeext
5670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5671  (eval $ac_link) 2>conftest.er1
5672  ac_status=$?
5673  grep -v '^ *+' conftest.er1 >conftest.err
5674  rm -f conftest.er1
5675  cat conftest.err >&5
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); } &&
5678         { ac_try='test -z "$ac_c_werror_flag"
5679                         || test ! -s conftest.err'
5680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681  (eval $ac_try) 2>&5
5682  ac_status=$?
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); }; } &&
5685         { ac_try='test -s conftest$ac_exeext'
5686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687  (eval $ac_try) 2>&5
5688  ac_status=$?
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); }; }; then
5691  ac_cv_lib_GL_glLoadIdentity=yes
5692else
5693  echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696ac_cv_lib_GL_glLoadIdentity=no
5697fi
5698rm -f conftest.err conftest.$ac_objext \
5699      conftest$ac_exeext conftest.$ac_ext
5700LIBS=$ac_check_lib_save_LIBS
5701fi
5702echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5703echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5704if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5705  FOUND_GL=yes
5706fi
5707
5708   if test x$FOUND_GL = xyes ; then
5709     LIBS="$LIBS -lGL"
5710   else
5711         echo "------------------"
5712         echo "opengl not found."
5713         echo "please install the opengl package which can be found at http://www.opengl.org"
5714         echo "------------------"
5715         exit -1
5716   fi
5717
5718# cheking for GLU-header
5719
5720for ac_header in GL/glu.h
5721do
5722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5723if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724  echo "$as_me:$LINENO: checking for $ac_header" >&5
5725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5726if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727  echo $ECHO_N "(cached) $ECHO_C" >&6
5728fi
5729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5731else
5732  # Is the header compilable?
5733echo "$as_me:$LINENO: checking $ac_header usability" >&5
5734echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5735cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h.  */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h.  */
5741$ac_includes_default
5742#include <$ac_header>
5743_ACEOF
5744rm -f conftest.$ac_objext
5745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746  (eval $ac_compile) 2>conftest.er1
5747  ac_status=$?
5748  grep -v '^ *+' conftest.er1 >conftest.err
5749  rm -f conftest.er1
5750  cat conftest.err >&5
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); } &&
5753         { ac_try='test -z "$ac_c_werror_flag"
5754                         || test ! -s conftest.err'
5755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756  (eval $ac_try) 2>&5
5757  ac_status=$?
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); }; } &&
5760         { ac_try='test -s conftest.$ac_objext'
5761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762  (eval $ac_try) 2>&5
5763  ac_status=$?
5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  (exit $ac_status); }; }; then
5766  ac_header_compiler=yes
5767else
5768  echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
5770
5771ac_header_compiler=no
5772fi
5773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5775echo "${ECHO_T}$ac_header_compiler" >&6
5776
5777# Is the header present?
5778echo "$as_me:$LINENO: checking $ac_header presence" >&5
5779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5780cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h.  */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h.  */
5786#include <$ac_header>
5787_ACEOF
5788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5789  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5796  if test -s conftest.err; then
5797    ac_cpp_err=$ac_c_preproc_warn_flag
5798    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5799  else
5800    ac_cpp_err=
5801  fi
5802else
5803  ac_cpp_err=yes
5804fi
5805if test -z "$ac_cpp_err"; then
5806  ac_header_preproc=yes
5807else
5808  echo "$as_me: failed program was:" >&5
5809sed 's/^/| /' conftest.$ac_ext >&5
5810
5811  ac_header_preproc=no
5812fi
5813rm -f conftest.err conftest.$ac_ext
5814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5815echo "${ECHO_T}$ac_header_preproc" >&6
5816
5817# So?  What about this header?
5818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5819  yes:no: )
5820    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5822    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5824    ac_header_preproc=yes
5825    ;;
5826  no:yes:* )
5827    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5829    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5830echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5831    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5833    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5834echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5835    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5837    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5839    (
5840      cat <<\_ASBOX
5841## ---------------------------------------------- ##
5842## Report this to orxonox-dev at mail.datacore.ch ##
5843## ---------------------------------------------- ##
5844_ASBOX
5845    ) |
5846      sed "s/^/$as_me: WARNING:     /" >&2
5847    ;;
5848esac
5849echo "$as_me:$LINENO: checking for $ac_header" >&5
5850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852  echo $ECHO_N "(cached) $ECHO_C" >&6
5853else
5854  eval "$as_ac_Header=\$ac_header_preproc"
5855fi
5856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5858
5859fi
5860if test `eval echo '${'$as_ac_Header'}'` = yes; then
5861  cat >>confdefs.h <<_ACEOF
5862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5863_ACEOF
5864
5865else
5866  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5867echo "$as_me: error: cannot find opengl headers" >&2;}
5868   { (exit 1); exit 1; }; }
5869fi
5870
5871done
5872
5873
5874    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5875echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5876if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5877  echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879  ac_check_lib_save_LIBS=$LIBS
5880LIBS="-lGLU  $LIBS"
5881cat >conftest.$ac_ext <<_ACEOF
5882/* confdefs.h.  */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h.  */
5887
5888/* Override any gcc2 internal prototype to avoid an error.  */
5889#ifdef __cplusplus
5890extern "C"
5891#endif
5892/* We use char because int might match the return type of a gcc2
5893   builtin and then its argument prototype would still apply.  */
5894char gluProject ();
5895int
5896main ()
5897{
5898gluProject ();
5899  ;
5900  return 0;
5901}
5902_ACEOF
5903rm -f conftest.$ac_objext conftest$ac_exeext
5904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905  (eval $ac_link) 2>conftest.er1
5906  ac_status=$?
5907  grep -v '^ *+' conftest.er1 >conftest.err
5908  rm -f conftest.er1
5909  cat conftest.err >&5
5910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911  (exit $ac_status); } &&
5912         { ac_try='test -z "$ac_c_werror_flag"
5913                         || test ! -s conftest.err'
5914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915  (eval $ac_try) 2>&5
5916  ac_status=$?
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); }; } &&
5919         { ac_try='test -s conftest$ac_exeext'
5920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921  (eval $ac_try) 2>&5
5922  ac_status=$?
5923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924  (exit $ac_status); }; }; then
5925  ac_cv_lib_GLU_gluProject=yes
5926else
5927  echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930ac_cv_lib_GLU_gluProject=no
5931fi
5932rm -f conftest.err conftest.$ac_objext \
5933      conftest$ac_exeext conftest.$ac_ext
5934LIBS=$ac_check_lib_save_LIBS
5935fi
5936echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5937echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5938if test $ac_cv_lib_GLU_gluProject = yes; then
5939  FOUND_GLU=yes
5940fi
5941
5942    if test x$FOUND_GLU = xyes ; then
5943      LIBS="$LIBS -lGLU"
5944    else
5945         echo "------------------"
5946         echo "GLU library not found."
5947         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5948         echo "------------------"
5949         exit -1
5950    fi
5951
5952#--------#
5953# openAL #
5954#--------#
5955# checking for openAL-headers
5956
5957for ac_header in AL/al.h
5958do
5959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5960if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961  echo "$as_me:$LINENO: checking for $ac_header" >&5
5962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5963if eval "test \"\${$as_ac_Header+set}\" = set"; then
5964  echo $ECHO_N "(cached) $ECHO_C" >&6
5965fi
5966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5968else
5969  # Is the header compilable?
5970echo "$as_me:$LINENO: checking $ac_header usability" >&5
5971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5972cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h.  */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h.  */
5978$ac_includes_default
5979#include <$ac_header>
5980_ACEOF
5981rm -f conftest.$ac_objext
5982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983  (eval $ac_compile) 2>conftest.er1
5984  ac_status=$?
5985  grep -v '^ *+' conftest.er1 >conftest.err
5986  rm -f conftest.er1
5987  cat conftest.err >&5
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); } &&
5990         { ac_try='test -z "$ac_c_werror_flag"
5991                         || test ! -s conftest.err'
5992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993  (eval $ac_try) 2>&5
5994  ac_status=$?
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); }; } &&
5997         { ac_try='test -s conftest.$ac_objext'
5998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999  (eval $ac_try) 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); }; }; then
6003  ac_header_compiler=yes
6004else
6005  echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008ac_header_compiler=no
6009fi
6010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6012echo "${ECHO_T}$ac_header_compiler" >&6
6013
6014# Is the header present?
6015echo "$as_me:$LINENO: checking $ac_header presence" >&5
6016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6017cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h.  */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h.  */
6023#include <$ac_header>
6024_ACEOF
6025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6027  ac_status=$?
6028  grep -v '^ *+' conftest.er1 >conftest.err
6029  rm -f conftest.er1
6030  cat conftest.err >&5
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); } >/dev/null; then
6033  if test -s conftest.err; then
6034    ac_cpp_err=$ac_c_preproc_warn_flag
6035    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6036  else
6037    ac_cpp_err=
6038  fi
6039else
6040  ac_cpp_err=yes
6041fi
6042if test -z "$ac_cpp_err"; then
6043  ac_header_preproc=yes
6044else
6045  echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048  ac_header_preproc=no
6049fi
6050rm -f conftest.err conftest.$ac_ext
6051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6052echo "${ECHO_T}$ac_header_preproc" >&6
6053
6054# So?  What about this header?
6055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6056  yes:no: )
6057    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6061    ac_header_preproc=yes
6062    ;;
6063  no:yes:* )
6064    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6066    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6067echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6068    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6070    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6071echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6074    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6076    (
6077      cat <<\_ASBOX
6078## ---------------------------------------------- ##
6079## Report this to orxonox-dev at mail.datacore.ch ##
6080## ---------------------------------------------- ##
6081_ASBOX
6082    ) |
6083      sed "s/^/$as_me: WARNING:     /" >&2
6084    ;;
6085esac
6086echo "$as_me:$LINENO: checking for $ac_header" >&5
6087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6088if eval "test \"\${$as_ac_Header+set}\" = set"; then
6089  echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091  eval "$as_ac_Header=\$ac_header_preproc"
6092fi
6093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6095
6096fi
6097if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098  cat >>confdefs.h <<_ACEOF
6099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100_ACEOF
6101
6102else
6103  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6104echo "$as_me: error: cannot find openAL header." >&2;}
6105   { (exit 1); exit 1; }; }
6106fi
6107
6108done
6109
6110# checking for openAL-lib
6111  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6112echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6113if test "${ac_cv_lib_openal_main+set}" = set; then
6114  echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116  ac_check_lib_save_LIBS=$LIBS
6117LIBS="-lopenal  $LIBS"
6118cat >conftest.$ac_ext <<_ACEOF
6119/* confdefs.h.  */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h.  */
6124
6125
6126int
6127main ()
6128{
6129main ();
6130  ;
6131  return 0;
6132}
6133_ACEOF
6134rm -f conftest.$ac_objext conftest$ac_exeext
6135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6136  (eval $ac_link) 2>conftest.er1
6137  ac_status=$?
6138  grep -v '^ *+' conftest.er1 >conftest.err
6139  rm -f conftest.er1
6140  cat conftest.err >&5
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); } &&
6143         { ac_try='test -z "$ac_c_werror_flag"
6144                         || test ! -s conftest.err'
6145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146  (eval $ac_try) 2>&5
6147  ac_status=$?
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); }; } &&
6150         { ac_try='test -s conftest$ac_exeext'
6151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152  (eval $ac_try) 2>&5
6153  ac_status=$?
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); }; }; then
6156  ac_cv_lib_openal_main=yes
6157else
6158  echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161ac_cv_lib_openal_main=no
6162fi
6163rm -f conftest.err conftest.$ac_objext \
6164      conftest$ac_exeext conftest.$ac_ext
6165LIBS=$ac_check_lib_save_LIBS
6166fi
6167echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6168echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6169if test $ac_cv_lib_openal_main = yes; then
6170  FOUND_openal=yes
6171fi
6172
6173     if test x$FOUND_openal = xyes ; then
6174       LIBS="$LIBS -lopenal"
6175     else
6176        echo "------------------"
6177        echo "openal library not found."
6178        echo "please install the openal library, which can be found at http://www.openal.org"
6179        echo "------------------"
6180        exit -1
6181     fi
6182
6183# checking for SDL
6184  echo "$as_me:$LINENO: checking for SDL-version" >&5
6185echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6186  SDL_VERSION=`sdl-config --version`
6187  echo $SDL_VERSION
6188
6189   CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
6190
6191for ac_header in SDL.h
6192do
6193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6194if eval "test \"\${$as_ac_Header+set}\" = set"; then
6195  echo "$as_me:$LINENO: checking for $ac_header" >&5
6196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6197if eval "test \"\${$as_ac_Header+set}\" = set"; then
6198  echo $ECHO_N "(cached) $ECHO_C" >&6
6199fi
6200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6202else
6203  # Is the header compilable?
6204echo "$as_me:$LINENO: checking $ac_header usability" >&5
6205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6206cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h.  */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h.  */
6212$ac_includes_default
6213#include <$ac_header>
6214_ACEOF
6215rm -f conftest.$ac_objext
6216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6217  (eval $ac_compile) 2>conftest.er1
6218  ac_status=$?
6219  grep -v '^ *+' conftest.er1 >conftest.err
6220  rm -f conftest.er1
6221  cat conftest.err >&5
6222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223  (exit $ac_status); } &&
6224         { ac_try='test -z "$ac_c_werror_flag"
6225                         || test ! -s conftest.err'
6226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227  (eval $ac_try) 2>&5
6228  ac_status=$?
6229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230  (exit $ac_status); }; } &&
6231         { ac_try='test -s conftest.$ac_objext'
6232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233  (eval $ac_try) 2>&5
6234  ac_status=$?
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); }; }; then
6237  ac_header_compiler=yes
6238else
6239  echo "$as_me: failed program was:" >&5
6240sed 's/^/| /' conftest.$ac_ext >&5
6241
6242ac_header_compiler=no
6243fi
6244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6246echo "${ECHO_T}$ac_header_compiler" >&6
6247
6248# Is the header present?
6249echo "$as_me:$LINENO: checking $ac_header presence" >&5
6250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6251cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h.  */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h.  */
6257#include <$ac_header>
6258_ACEOF
6259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6261  ac_status=$?
6262  grep -v '^ *+' conftest.er1 >conftest.err
6263  rm -f conftest.er1
6264  cat conftest.err >&5
6265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266  (exit $ac_status); } >/dev/null; then
6267  if test -s conftest.err; then
6268    ac_cpp_err=$ac_c_preproc_warn_flag
6269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6270  else
6271    ac_cpp_err=
6272  fi
6273else
6274  ac_cpp_err=yes
6275fi
6276if test -z "$ac_cpp_err"; then
6277  ac_header_preproc=yes
6278else
6279  echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282  ac_header_preproc=no
6283fi
6284rm -f conftest.err conftest.$ac_ext
6285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6286echo "${ECHO_T}$ac_header_preproc" >&6
6287
6288# So?  What about this header?
6289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6290  yes:no: )
6291    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6293    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6295    ac_header_preproc=yes
6296    ;;
6297  no:yes:* )
6298    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6300    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6301echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6302    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6304    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6305echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6306    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6308    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6310    (
6311      cat <<\_ASBOX
6312## ---------------------------------------------- ##
6313## Report this to orxonox-dev at mail.datacore.ch ##
6314## ---------------------------------------------- ##
6315_ASBOX
6316    ) |
6317      sed "s/^/$as_me: WARNING:     /" >&2
6318    ;;
6319esac
6320echo "$as_me:$LINENO: checking for $ac_header" >&5
6321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6322if eval "test \"\${$as_ac_Header+set}\" = set"; then
6323  echo $ECHO_N "(cached) $ECHO_C" >&6
6324else
6325  eval "$as_ac_Header=\$ac_header_preproc"
6326fi
6327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6329
6330fi
6331if test `eval echo '${'$as_ac_Header'}'` = yes; then
6332  cat >>confdefs.h <<_ACEOF
6333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6334_ACEOF
6335
6336else
6337
6338for ac_header in SDL/SDL.h
6339do
6340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6341if eval "test \"\${$as_ac_Header+set}\" = set"; then
6342  echo "$as_me:$LINENO: checking for $ac_header" >&5
6343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6344if eval "test \"\${$as_ac_Header+set}\" = set"; then
6345  echo $ECHO_N "(cached) $ECHO_C" >&6
6346fi
6347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6349else
6350  # Is the header compilable?
6351echo "$as_me:$LINENO: checking $ac_header usability" >&5
6352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6353cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h.  */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
6358/* end confdefs.h.  */
6359$ac_includes_default
6360#include <$ac_header>
6361_ACEOF
6362rm -f conftest.$ac_objext
6363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364  (eval $ac_compile) 2>conftest.er1
6365  ac_status=$?
6366  grep -v '^ *+' conftest.er1 >conftest.err
6367  rm -f conftest.er1
6368  cat conftest.err >&5
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); } &&
6371         { ac_try='test -z "$ac_c_werror_flag"
6372                         || test ! -s conftest.err'
6373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374  (eval $ac_try) 2>&5
6375  ac_status=$?
6376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377  (exit $ac_status); }; } &&
6378         { ac_try='test -s conftest.$ac_objext'
6379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380  (eval $ac_try) 2>&5
6381  ac_status=$?
6382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383  (exit $ac_status); }; }; then
6384  ac_header_compiler=yes
6385else
6386  echo "$as_me: failed program was:" >&5
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389ac_header_compiler=no
6390fi
6391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6393echo "${ECHO_T}$ac_header_compiler" >&6
6394
6395# Is the header present?
6396echo "$as_me:$LINENO: checking $ac_header presence" >&5
6397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6398cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h.  */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h.  */
6404#include <$ac_header>
6405_ACEOF
6406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6407  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } >/dev/null; then
6414  if test -s conftest.err; then
6415    ac_cpp_err=$ac_c_preproc_warn_flag
6416    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6417  else
6418    ac_cpp_err=
6419  fi
6420else
6421  ac_cpp_err=yes
6422fi
6423if test -z "$ac_cpp_err"; then
6424  ac_header_preproc=yes
6425else
6426  echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429  ac_header_preproc=no
6430fi
6431rm -f conftest.err conftest.$ac_ext
6432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6433echo "${ECHO_T}$ac_header_preproc" >&6
6434
6435# So?  What about this header?
6436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6437  yes:no: )
6438    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6440    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6442    ac_header_preproc=yes
6443    ;;
6444  no:yes:* )
6445    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6447    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6448echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6449    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6451    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6452echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6455    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6457    (
6458      cat <<\_ASBOX
6459## ---------------------------------------------- ##
6460## Report this to orxonox-dev at mail.datacore.ch ##
6461## ---------------------------------------------- ##
6462_ASBOX
6463    ) |
6464      sed "s/^/$as_me: WARNING:     /" >&2
6465    ;;
6466esac
6467echo "$as_me:$LINENO: checking for $ac_header" >&5
6468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6469if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  eval "$as_ac_Header=\$ac_header_preproc"
6473fi
6474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6476
6477fi
6478if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479  cat >>confdefs.h <<_ACEOF
6480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481_ACEOF
6482
6483else
6484  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
6485echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
6486   { (exit 1); exit 1; }; }
6487fi
6488
6489done
6490
6491fi
6492
6493done
6494
6495
6496   LIBS="`sdl-config --libs` $LIBS"
6497    ;;
6498
6499#-----------#
6500# MAC -OS X #
6501#-----------#
6502 *darwin*)
6503 echo "OS X detected"
6504
6505 osX="yes"
6506
6507 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
6508# checking gl header
6509
6510for ac_header in OpenGL/gl.h
6511do
6512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514  echo "$as_me:$LINENO: checking for $ac_header" >&5
6515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6516if eval "test \"\${$as_ac_Header+set}\" = set"; then
6517  echo $ECHO_N "(cached) $ECHO_C" >&6
6518fi
6519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6521else
6522  # Is the header compilable?
6523echo "$as_me:$LINENO: checking $ac_header usability" >&5
6524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6525cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h.  */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h.  */
6531$ac_includes_default
6532#include <$ac_header>
6533_ACEOF
6534rm -f conftest.$ac_objext
6535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536  (eval $ac_compile) 2>conftest.er1
6537  ac_status=$?
6538  grep -v '^ *+' conftest.er1 >conftest.err
6539  rm -f conftest.er1
6540  cat conftest.err >&5
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); } &&
6543         { ac_try='test -z "$ac_c_werror_flag"
6544                         || test ! -s conftest.err'
6545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546  (eval $ac_try) 2>&5
6547  ac_status=$?
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); }; } &&
6550         { ac_try='test -s conftest.$ac_objext'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; }; then
6556  ac_header_compiler=yes
6557else
6558  echo "$as_me: failed program was:" >&5
6559sed 's/^/| /' conftest.$ac_ext >&5
6560
6561ac_header_compiler=no
6562fi
6563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565echo "${ECHO_T}$ac_header_compiler" >&6
6566
6567# Is the header present?
6568echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6570cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h.  */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h.  */
6576#include <$ac_header>
6577_ACEOF
6578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6579  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6580  ac_status=$?
6581  grep -v '^ *+' conftest.er1 >conftest.err
6582  rm -f conftest.er1
6583  cat conftest.err >&5
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); } >/dev/null; then
6586  if test -s conftest.err; then
6587    ac_cpp_err=$ac_c_preproc_warn_flag
6588    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6589  else
6590    ac_cpp_err=
6591  fi
6592else
6593  ac_cpp_err=yes
6594fi
6595if test -z "$ac_cpp_err"; then
6596  ac_header_preproc=yes
6597else
6598  echo "$as_me: failed program was:" >&5
6599sed 's/^/| /' conftest.$ac_ext >&5
6600
6601  ac_header_preproc=no
6602fi
6603rm -f conftest.err conftest.$ac_ext
6604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605echo "${ECHO_T}$ac_header_preproc" >&6
6606
6607# So?  What about this header?
6608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609  yes:no: )
6610    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614    ac_header_preproc=yes
6615    ;;
6616  no:yes:* )
6617    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6620echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6621    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6624echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6625    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6629    (
6630      cat <<\_ASBOX
6631## ---------------------------------------------- ##
6632## Report this to orxonox-dev at mail.datacore.ch ##
6633## ---------------------------------------------- ##
6634_ASBOX
6635    ) |
6636      sed "s/^/$as_me: WARNING:     /" >&2
6637    ;;
6638esac
6639echo "$as_me:$LINENO: checking for $ac_header" >&5
6640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6641if eval "test \"\${$as_ac_Header+set}\" = set"; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  eval "$as_ac_Header=\$ac_header_preproc"
6645fi
6646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6648
6649fi
6650if test `eval echo '${'$as_ac_Header'}'` = yes; then
6651  cat >>confdefs.h <<_ACEOF
6652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6653_ACEOF
6654
6655else
6656  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6657echo "$as_me: error: cannot find opengl headers" >&2;}
6658   { (exit 1); exit 1; }; }
6659fi
6660
6661done
6662
6663# cheking for GLU-header
6664
6665for ac_header in OpenGL/glu.h
6666do
6667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6668if eval "test \"\${$as_ac_Header+set}\" = set"; then
6669  echo "$as_me:$LINENO: checking for $ac_header" >&5
6670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6671if eval "test \"\${$as_ac_Header+set}\" = set"; then
6672  echo $ECHO_N "(cached) $ECHO_C" >&6
6673fi
6674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6676else
6677  # Is the header compilable?
6678echo "$as_me:$LINENO: checking $ac_header usability" >&5
6679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6680cat >conftest.$ac_ext <<_ACEOF
6681/* confdefs.h.  */
6682_ACEOF
6683cat confdefs.h >>conftest.$ac_ext
6684cat >>conftest.$ac_ext <<_ACEOF
6685/* end confdefs.h.  */
6686$ac_includes_default
6687#include <$ac_header>
6688_ACEOF
6689rm -f conftest.$ac_objext
6690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691  (eval $ac_compile) 2>conftest.er1
6692  ac_status=$?
6693  grep -v '^ *+' conftest.er1 >conftest.err
6694  rm -f conftest.er1
6695  cat conftest.err >&5
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); } &&
6698         { ac_try='test -z "$ac_c_werror_flag"
6699                         || test ! -s conftest.err'
6700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701  (eval $ac_try) 2>&5
6702  ac_status=$?
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); }; } &&
6705         { ac_try='test -s conftest.$ac_objext'
6706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707  (eval $ac_try) 2>&5
6708  ac_status=$?
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); }; }; then
6711  ac_header_compiler=yes
6712else
6713  echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716ac_header_compiler=no
6717fi
6718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6720echo "${ECHO_T}$ac_header_compiler" >&6
6721
6722# Is the header present?
6723echo "$as_me:$LINENO: checking $ac_header presence" >&5
6724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6725cat >conftest.$ac_ext <<_ACEOF
6726/* confdefs.h.  */
6727_ACEOF
6728cat confdefs.h >>conftest.$ac_ext
6729cat >>conftest.$ac_ext <<_ACEOF
6730/* end confdefs.h.  */
6731#include <$ac_header>
6732_ACEOF
6733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6734  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6735  ac_status=$?
6736  grep -v '^ *+' conftest.er1 >conftest.err
6737  rm -f conftest.er1
6738  cat conftest.err >&5
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); } >/dev/null; then
6741  if test -s conftest.err; then
6742    ac_cpp_err=$ac_c_preproc_warn_flag
6743    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6744  else
6745    ac_cpp_err=
6746  fi
6747else
6748  ac_cpp_err=yes
6749fi
6750if test -z "$ac_cpp_err"; then
6751  ac_header_preproc=yes
6752else
6753  echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756  ac_header_preproc=no
6757fi
6758rm -f conftest.err conftest.$ac_ext
6759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6760echo "${ECHO_T}$ac_header_preproc" >&6
6761
6762# So?  What about this header?
6763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6764  yes:no: )
6765    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6769    ac_header_preproc=yes
6770    ;;
6771  no:yes:* )
6772    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6774    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6775echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6776    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6778    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6779echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6780    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6782    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6784    (
6785      cat <<\_ASBOX
6786## ---------------------------------------------- ##
6787## Report this to orxonox-dev at mail.datacore.ch ##
6788## ---------------------------------------------- ##
6789_ASBOX
6790    ) |
6791      sed "s/^/$as_me: WARNING:     /" >&2
6792    ;;
6793esac
6794echo "$as_me:$LINENO: checking for $ac_header" >&5
6795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6796if eval "test \"\${$as_ac_Header+set}\" = set"; then
6797  echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799  eval "$as_ac_Header=\$ac_header_preproc"
6800fi
6801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6803
6804fi
6805if test `eval echo '${'$as_ac_Header'}'` = yes; then
6806  cat >>confdefs.h <<_ACEOF
6807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808_ACEOF
6809
6810else
6811  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6812echo "$as_me: error: cannot find opengl headers" >&2;}
6813   { (exit 1); exit 1; }; }
6814fi
6815
6816done
6817
6818
6819   LIBS="$LIBS -framework OpenGL"
6820
6821
6822## SDL-check
6823       SDL_CFLAGS=`sdl-config --cflags`
6824       SDL_LIBS=`sdl-config --libs`
6825       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6826       LIBS="$LIBS $SDL_LIBS"
6827
6828
6829# checking for SDL-headers
6830#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6831#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6832
6833## checking for SDL
6834#    SDL_VERSION=1.2.7
6835#    AM_PATH_SDL($SDL_VERSION,
6836#      :,
6837#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6838#      )
6839
6840
6841    ;;
6842
6843  *)
6844    ;;
6845esac
6846
6847
6848
6849###################################
6850## CHECKING FOR HEADERS AND LIBS ##
6851###################################
6852
6853#---------#
6854# SDL_ttf #
6855#---------#
6856# checking for SDL_ttf-headers
6857
6858for ac_header in SDL_ttf.h
6859do
6860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6861if eval "test \"\${$as_ac_Header+set}\" = set"; then
6862  echo "$as_me:$LINENO: checking for $ac_header" >&5
6863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865  echo $ECHO_N "(cached) $ECHO_C" >&6
6866fi
6867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6869else
6870  # Is the header compilable?
6871echo "$as_me:$LINENO: checking $ac_header usability" >&5
6872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6873cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h.  */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h.  */
6879$ac_includes_default
6880#include <$ac_header>
6881_ACEOF
6882rm -f conftest.$ac_objext
6883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884  (eval $ac_compile) 2>conftest.er1
6885  ac_status=$?
6886  grep -v '^ *+' conftest.er1 >conftest.err
6887  rm -f conftest.er1
6888  cat conftest.err >&5
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); } &&
6891         { ac_try='test -z "$ac_c_werror_flag"
6892                         || test ! -s conftest.err'
6893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894  (eval $ac_try) 2>&5
6895  ac_status=$?
6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); }; } &&
6898         { ac_try='test -s conftest.$ac_objext'
6899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900  (eval $ac_try) 2>&5
6901  ac_status=$?
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); }; }; then
6904  ac_header_compiler=yes
6905else
6906  echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909ac_header_compiler=no
6910fi
6911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6913echo "${ECHO_T}$ac_header_compiler" >&6
6914
6915# Is the header present?
6916echo "$as_me:$LINENO: checking $ac_header presence" >&5
6917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6918cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h.  */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h.  */
6924#include <$ac_header>
6925_ACEOF
6926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6927  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6928  ac_status=$?
6929  grep -v '^ *+' conftest.er1 >conftest.err
6930  rm -f conftest.er1
6931  cat conftest.err >&5
6932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933  (exit $ac_status); } >/dev/null; then
6934  if test -s conftest.err; then
6935    ac_cpp_err=$ac_c_preproc_warn_flag
6936    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6937  else
6938    ac_cpp_err=
6939  fi
6940else
6941  ac_cpp_err=yes
6942fi
6943if test -z "$ac_cpp_err"; then
6944  ac_header_preproc=yes
6945else
6946  echo "$as_me: failed program was:" >&5
6947sed 's/^/| /' conftest.$ac_ext >&5
6948
6949  ac_header_preproc=no
6950fi
6951rm -f conftest.err conftest.$ac_ext
6952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6953echo "${ECHO_T}$ac_header_preproc" >&6
6954
6955# So?  What about this header?
6956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6957  yes:no: )
6958    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6960    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6962    ac_header_preproc=yes
6963    ;;
6964  no:yes:* )
6965    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6967    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6968echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6969    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6971    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6972echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6973    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6975    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6977    (
6978      cat <<\_ASBOX
6979## ---------------------------------------------- ##
6980## Report this to orxonox-dev at mail.datacore.ch ##
6981## ---------------------------------------------- ##
6982_ASBOX
6983    ) |
6984      sed "s/^/$as_me: WARNING:     /" >&2
6985    ;;
6986esac
6987echo "$as_me:$LINENO: checking for $ac_header" >&5
6988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6989if eval "test \"\${$as_ac_Header+set}\" = set"; then
6990  echo $ECHO_N "(cached) $ECHO_C" >&6
6991else
6992  eval "$as_ac_Header=\$ac_header_preproc"
6993fi
6994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6996
6997fi
6998if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999  cat >>confdefs.h <<_ACEOF
7000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001_ACEOF
7002
7003else
7004
7005for ac_header in SDL/SDL_ttf.h
7006do
7007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7008if eval "test \"\${$as_ac_Header+set}\" = set"; then
7009  echo "$as_me:$LINENO: checking for $ac_header" >&5
7010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7011if eval "test \"\${$as_ac_Header+set}\" = set"; then
7012  echo $ECHO_N "(cached) $ECHO_C" >&6
7013fi
7014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7016else
7017  # Is the header compilable?
7018echo "$as_me:$LINENO: checking $ac_header usability" >&5
7019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7020cat >conftest.$ac_ext <<_ACEOF
7021/* confdefs.h.  */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
7025/* end confdefs.h.  */
7026$ac_includes_default
7027#include <$ac_header>
7028_ACEOF
7029rm -f conftest.$ac_objext
7030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031  (eval $ac_compile) 2>conftest.er1
7032  ac_status=$?
7033  grep -v '^ *+' conftest.er1 >conftest.err
7034  rm -f conftest.er1
7035  cat conftest.err >&5
7036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037  (exit $ac_status); } &&
7038         { ac_try='test -z "$ac_c_werror_flag"
7039                         || test ! -s conftest.err'
7040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041  (eval $ac_try) 2>&5
7042  ac_status=$?
7043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044  (exit $ac_status); }; } &&
7045         { ac_try='test -s conftest.$ac_objext'
7046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047  (eval $ac_try) 2>&5
7048  ac_status=$?
7049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050  (exit $ac_status); }; }; then
7051  ac_header_compiler=yes
7052else
7053  echo "$as_me: failed program was:" >&5
7054sed 's/^/| /' conftest.$ac_ext >&5
7055
7056ac_header_compiler=no
7057fi
7058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7059echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7060echo "${ECHO_T}$ac_header_compiler" >&6
7061
7062# Is the header present?
7063echo "$as_me:$LINENO: checking $ac_header presence" >&5
7064echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7065cat >conftest.$ac_ext <<_ACEOF
7066/* confdefs.h.  */
7067_ACEOF
7068cat confdefs.h >>conftest.$ac_ext
7069cat >>conftest.$ac_ext <<_ACEOF
7070/* end confdefs.h.  */
7071#include <$ac_header>
7072_ACEOF
7073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7074  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7075  ac_status=$?
7076  grep -v '^ *+' conftest.er1 >conftest.err
7077  rm -f conftest.er1
7078  cat conftest.err >&5
7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080  (exit $ac_status); } >/dev/null; then
7081  if test -s conftest.err; then
7082    ac_cpp_err=$ac_c_preproc_warn_flag
7083    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7084  else
7085    ac_cpp_err=
7086  fi
7087else
7088  ac_cpp_err=yes
7089fi
7090if test -z "$ac_cpp_err"; then
7091  ac_header_preproc=yes
7092else
7093  echo "$as_me: failed program was:" >&5
7094sed 's/^/| /' conftest.$ac_ext >&5
7095
7096  ac_header_preproc=no
7097fi
7098rm -f conftest.err conftest.$ac_ext
7099echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7100echo "${ECHO_T}$ac_header_preproc" >&6
7101
7102# So?  What about this header?
7103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7104  yes:no: )
7105    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7107    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7109    ac_header_preproc=yes
7110    ;;
7111  no:yes:* )
7112    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7114    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7115echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7116    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7118    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7119echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7120    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7122    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7124    (
7125      cat <<\_ASBOX
7126## ---------------------------------------------- ##
7127## Report this to orxonox-dev at mail.datacore.ch ##
7128## ---------------------------------------------- ##
7129_ASBOX
7130    ) |
7131      sed "s/^/$as_me: WARNING:     /" >&2
7132    ;;
7133esac
7134echo "$as_me:$LINENO: checking for $ac_header" >&5
7135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7136if eval "test \"\${$as_ac_Header+set}\" = set"; then
7137  echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139  eval "$as_ac_Header=\$ac_header_preproc"
7140fi
7141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7143
7144fi
7145if test `eval echo '${'$as_ac_Header'}'` = yes; then
7146  cat >>confdefs.h <<_ACEOF
7147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7148_ACEOF
7149
7150else
7151  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7152echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7153   { (exit 1); exit 1; }; }
7154fi
7155
7156done
7157
7158fi
7159
7160done
7161
7162# checking for SDL_ttf-lib
7163  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7164echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7165if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  ac_check_lib_save_LIBS=$LIBS
7169LIBS="-lSDL_ttf  $LIBS"
7170cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h.  */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h.  */
7176
7177/* Override any gcc2 internal prototype to avoid an error.  */
7178#ifdef __cplusplus
7179extern "C"
7180#endif
7181/* We use char because int might match the return type of a gcc2
7182   builtin and then its argument prototype would still apply.  */
7183char TTF_OpenFont ();
7184int
7185main ()
7186{
7187TTF_OpenFont ();
7188  ;
7189  return 0;
7190}
7191_ACEOF
7192rm -f conftest.$ac_objext conftest$ac_exeext
7193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194  (eval $ac_link) 2>conftest.er1
7195  ac_status=$?
7196  grep -v '^ *+' conftest.er1 >conftest.err
7197  rm -f conftest.er1
7198  cat conftest.err >&5
7199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200  (exit $ac_status); } &&
7201         { ac_try='test -z "$ac_c_werror_flag"
7202                         || test ! -s conftest.err'
7203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204  (eval $ac_try) 2>&5
7205  ac_status=$?
7206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207  (exit $ac_status); }; } &&
7208         { ac_try='test -s conftest$ac_exeext'
7209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210  (eval $ac_try) 2>&5
7211  ac_status=$?
7212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213  (exit $ac_status); }; }; then
7214  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7215else
7216  echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7220fi
7221rm -f conftest.err conftest.$ac_objext \
7222      conftest$ac_exeext conftest.$ac_ext
7223LIBS=$ac_check_lib_save_LIBS
7224fi
7225echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7226echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7227if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7228  FOUND_SDL_ttf=yes
7229fi
7230
7231     if test x$FOUND_SDL_ttf = xyes ; then
7232       LIBS="$LIBS -lSDL_ttf"
7233     else
7234        echo "------------------"
7235        echo "SDL_ttf library not found."
7236        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7237        echo "------------------"
7238        exit -1
7239     fi
7240
7241
7242#-----------#
7243# SDL_Image #
7244#-----------#
7245# checking for SDL_image-headers
7246
7247for ac_header in SDL_image.h
7248do
7249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7250if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251  echo "$as_me:$LINENO: checking for $ac_header" >&5
7252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7253if eval "test \"\${$as_ac_Header+set}\" = set"; then
7254  echo $ECHO_N "(cached) $ECHO_C" >&6
7255fi
7256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7258else
7259  # Is the header compilable?
7260echo "$as_me:$LINENO: checking $ac_header usability" >&5
7261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7262cat >conftest.$ac_ext <<_ACEOF
7263/* confdefs.h.  */
7264_ACEOF
7265cat confdefs.h >>conftest.$ac_ext
7266cat >>conftest.$ac_ext <<_ACEOF
7267/* end confdefs.h.  */
7268$ac_includes_default
7269#include <$ac_header>
7270_ACEOF
7271rm -f conftest.$ac_objext
7272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273  (eval $ac_compile) 2>conftest.er1
7274  ac_status=$?
7275  grep -v '^ *+' conftest.er1 >conftest.err
7276  rm -f conftest.er1
7277  cat conftest.err >&5
7278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279  (exit $ac_status); } &&
7280         { ac_try='test -z "$ac_c_werror_flag"
7281                         || test ! -s conftest.err'
7282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283  (eval $ac_try) 2>&5
7284  ac_status=$?
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); }; } &&
7287         { ac_try='test -s conftest.$ac_objext'
7288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289  (eval $ac_try) 2>&5
7290  ac_status=$?
7291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292  (exit $ac_status); }; }; then
7293  ac_header_compiler=yes
7294else
7295  echo "$as_me: failed program was:" >&5
7296sed 's/^/| /' conftest.$ac_ext >&5
7297
7298ac_header_compiler=no
7299fi
7300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7302echo "${ECHO_T}$ac_header_compiler" >&6
7303
7304# Is the header present?
7305echo "$as_me:$LINENO: checking $ac_header presence" >&5
7306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7307cat >conftest.$ac_ext <<_ACEOF
7308/* confdefs.h.  */
7309_ACEOF
7310cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h.  */
7313#include <$ac_header>
7314_ACEOF
7315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7316  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7317  ac_status=$?
7318  grep -v '^ *+' conftest.er1 >conftest.err
7319  rm -f conftest.er1
7320  cat conftest.err >&5
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); } >/dev/null; then
7323  if test -s conftest.err; then
7324    ac_cpp_err=$ac_c_preproc_warn_flag
7325    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7326  else
7327    ac_cpp_err=
7328  fi
7329else
7330  ac_cpp_err=yes
7331fi
7332if test -z "$ac_cpp_err"; then
7333  ac_header_preproc=yes
7334else
7335  echo "$as_me: failed program was:" >&5
7336sed 's/^/| /' conftest.$ac_ext >&5
7337
7338  ac_header_preproc=no
7339fi
7340rm -f conftest.err conftest.$ac_ext
7341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7342echo "${ECHO_T}$ac_header_preproc" >&6
7343
7344# So?  What about this header?
7345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7346  yes:no: )
7347    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7351    ac_header_preproc=yes
7352    ;;
7353  no:yes:* )
7354    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7356    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7357echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7358    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7360    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7361echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7362    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7364    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7366    (
7367      cat <<\_ASBOX
7368## ---------------------------------------------- ##
7369## Report this to orxonox-dev at mail.datacore.ch ##
7370## ---------------------------------------------- ##
7371_ASBOX
7372    ) |
7373      sed "s/^/$as_me: WARNING:     /" >&2
7374    ;;
7375esac
7376echo "$as_me:$LINENO: checking for $ac_header" >&5
7377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7378if eval "test \"\${$as_ac_Header+set}\" = set"; then
7379  echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381  eval "$as_ac_Header=\$ac_header_preproc"
7382fi
7383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7385
7386fi
7387if test `eval echo '${'$as_ac_Header'}'` = yes; then
7388  cat >>confdefs.h <<_ACEOF
7389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7390_ACEOF
7391
7392else
7393
7394for ac_header in SDL/SDL_image.h
7395do
7396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7397if eval "test \"\${$as_ac_Header+set}\" = set"; then
7398  echo "$as_me:$LINENO: checking for $ac_header" >&5
7399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7400if eval "test \"\${$as_ac_Header+set}\" = set"; then
7401  echo $ECHO_N "(cached) $ECHO_C" >&6
7402fi
7403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7405else
7406  # Is the header compilable?
7407echo "$as_me:$LINENO: checking $ac_header usability" >&5
7408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7409cat >conftest.$ac_ext <<_ACEOF
7410/* confdefs.h.  */
7411_ACEOF
7412cat confdefs.h >>conftest.$ac_ext
7413cat >>conftest.$ac_ext <<_ACEOF
7414/* end confdefs.h.  */
7415$ac_includes_default
7416#include <$ac_header>
7417_ACEOF
7418rm -f conftest.$ac_objext
7419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420  (eval $ac_compile) 2>conftest.er1
7421  ac_status=$?
7422  grep -v '^ *+' conftest.er1 >conftest.err
7423  rm -f conftest.er1
7424  cat conftest.err >&5
7425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426  (exit $ac_status); } &&
7427         { ac_try='test -z "$ac_c_werror_flag"
7428                         || test ! -s conftest.err'
7429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430  (eval $ac_try) 2>&5
7431  ac_status=$?
7432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433  (exit $ac_status); }; } &&
7434         { ac_try='test -s conftest.$ac_objext'
7435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436  (eval $ac_try) 2>&5
7437  ac_status=$?
7438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439  (exit $ac_status); }; }; then
7440  ac_header_compiler=yes
7441else
7442  echo "$as_me: failed program was:" >&5
7443sed 's/^/| /' conftest.$ac_ext >&5
7444
7445ac_header_compiler=no
7446fi
7447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449echo "${ECHO_T}$ac_header_compiler" >&6
7450
7451# Is the header present?
7452echo "$as_me:$LINENO: checking $ac_header presence" >&5
7453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7454cat >conftest.$ac_ext <<_ACEOF
7455/* confdefs.h.  */
7456_ACEOF
7457cat confdefs.h >>conftest.$ac_ext
7458cat >>conftest.$ac_ext <<_ACEOF
7459/* end confdefs.h.  */
7460#include <$ac_header>
7461_ACEOF
7462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7463  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7464  ac_status=$?
7465  grep -v '^ *+' conftest.er1 >conftest.err
7466  rm -f conftest.er1
7467  cat conftest.err >&5
7468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469  (exit $ac_status); } >/dev/null; then
7470  if test -s conftest.err; then
7471    ac_cpp_err=$ac_c_preproc_warn_flag
7472    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7473  else
7474    ac_cpp_err=
7475  fi
7476else
7477  ac_cpp_err=yes
7478fi
7479if test -z "$ac_cpp_err"; then
7480  ac_header_preproc=yes
7481else
7482  echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
7485  ac_header_preproc=no
7486fi
7487rm -f conftest.err conftest.$ac_ext
7488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489echo "${ECHO_T}$ac_header_preproc" >&6
7490
7491# So?  What about this header?
7492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7493  yes:no: )
7494    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7498    ac_header_preproc=yes
7499    ;;
7500  no:yes:* )
7501    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7503    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7504echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7505    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7507    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7508echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7509    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7511    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7513    (
7514      cat <<\_ASBOX
7515## ---------------------------------------------- ##
7516## Report this to orxonox-dev at mail.datacore.ch ##
7517## ---------------------------------------------- ##
7518_ASBOX
7519    ) |
7520      sed "s/^/$as_me: WARNING:     /" >&2
7521    ;;
7522esac
7523echo "$as_me:$LINENO: checking for $ac_header" >&5
7524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7525if eval "test \"\${$as_ac_Header+set}\" = set"; then
7526  echo $ECHO_N "(cached) $ECHO_C" >&6
7527else
7528  eval "$as_ac_Header=\$ac_header_preproc"
7529fi
7530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7532
7533fi
7534if test `eval echo '${'$as_ac_Header'}'` = yes; then
7535  cat >>confdefs.h <<_ACEOF
7536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7537_ACEOF
7538
7539else
7540  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
7541echo "$as_me: error: SDL_image header not found." >&2;}
7542   { (exit 1); exit 1; }; }
7543fi
7544
7545done
7546
7547fi
7548
7549done
7550
7551# checking for SDL_image-lib
7552echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
7553echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
7554if test "${ac_cv_lib_SDL_image_main+set}" = set; then
7555  echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557  ac_check_lib_save_LIBS=$LIBS
7558LIBS="-lSDL_image  $LIBS"
7559cat >conftest.$ac_ext <<_ACEOF
7560/* confdefs.h.  */
7561_ACEOF
7562cat confdefs.h >>conftest.$ac_ext
7563cat >>conftest.$ac_ext <<_ACEOF
7564/* end confdefs.h.  */
7565
7566
7567int
7568main ()
7569{
7570main ();
7571  ;
7572  return 0;
7573}
7574_ACEOF
7575rm -f conftest.$ac_objext conftest$ac_exeext
7576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577  (eval $ac_link) 2>conftest.er1
7578  ac_status=$?
7579  grep -v '^ *+' conftest.er1 >conftest.err
7580  rm -f conftest.er1
7581  cat conftest.err >&5
7582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583  (exit $ac_status); } &&
7584         { ac_try='test -z "$ac_c_werror_flag"
7585                         || test ! -s conftest.err'
7586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587  (eval $ac_try) 2>&5
7588  ac_status=$?
7589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590  (exit $ac_status); }; } &&
7591         { ac_try='test -s conftest$ac_exeext'
7592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593  (eval $ac_try) 2>&5
7594  ac_status=$?
7595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596  (exit $ac_status); }; }; then
7597  ac_cv_lib_SDL_image_main=yes
7598else
7599  echo "$as_me: failed program was:" >&5
7600sed 's/^/| /' conftest.$ac_ext >&5
7601
7602ac_cv_lib_SDL_image_main=no
7603fi
7604rm -f conftest.err conftest.$ac_objext \
7605      conftest$ac_exeext conftest.$ac_ext
7606LIBS=$ac_check_lib_save_LIBS
7607fi
7608echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
7609echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
7610if test $ac_cv_lib_SDL_image_main = yes; then
7611  FOUND_SDL_image=yes
7612fi
7613
7614   if test x$FOUND_SDL_image = xyes ; then
7615     LIBS="$LIBS -lSDL_image"
7616   else
7617      echo "------------------"
7618      echo "SDL_image library not found."
7619      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
7620      echo "------------------"
7621      exit -1
7622   fi
7623
7624#-----#
7625# ogg #
7626#-----#
7627## checking for ogg-headers
7628#  AC_CHECK_HEADERS([ogg/ogg.h] ,,
7629#      [AC_MSG_ERROR([cannot find ogg header.])])
7630## checking for ogg-lib
7631#  AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])
7632#     if test x$FOUND_ogg = xyes ; then
7633#       LIBS="$LIBS -logg"
7634#     else
7635#        echo "------------------"
7636#        echo "ogg library not found."
7637#        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7638#        echo "------------------"
7639#        exit -1
7640#     fi
7641
7642#--------#
7643# vorbis #
7644#--------#
7645## checking for vorbis-lib
7646#  AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])
7647#     if test x$FOUND_vorbis = xyes ; then
7648#       LIBS="$LIBS -lvorbis"
7649#     else
7650#        echo "------------------"
7651#        echo "vorbis library not found."
7652#        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7653#        echo "------------------"
7654#        exit -1
7655#     fi
7656
7657#------------#
7658# vorbisfile #
7659#------------#
7660## checking for vorbis-headers
7661#  AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,
7662#      [AC_MSG_ERROR([cannot find vorbisfile header.])])
7663## checking for vorbisfile-lib
7664#  AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])
7665#     if test x$FOUND_vorbisfile = xyes ; then
7666#       LIBS="$LIBS -lvorbisfile"
7667#     else
7668#        echo "------------------"
7669#        echo "vorbisfile library not found."
7670#        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7671#        echo "------------------"
7672#        exit -1
7673#     fi
7674
7675#-----#
7676# GTK #
7677#-----#
7678if test x$def_gtk = xyes; then
7679        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
7680        echo "$as_me:$LINENO: checking for gtk2.0" >&5
7681echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
7682        if `$PKG_CONFIG --exists gtk+-2.0`; then
7683                echo "yes"
7684                have_gtk2=yes
7685                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7686                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7687
7688cat >>confdefs.h <<_ACEOF
7689#define HAVE_GTK2 1
7690_ACEOF
7691
7692                if test $DEBUG -ge 3; then
7693                 echo "cflags: $GTK2_CFLAGS"
7694                 echo "libs: $GTK2_LIBS"
7695                fi
7696        else
7697                echo "no"
7698        fi
7699
7700fi
7701
7702
7703
7704
7705if test x$have_gtk2 = xyes; then
7706  HAVE_GTK2_TRUE=
7707  HAVE_GTK2_FALSE='#'
7708else
7709  HAVE_GTK2_TRUE='#'
7710  HAVE_GTK2_FALSE=
7711fi
7712
7713
7714#---------#
7715# libcURL #
7716#---------#
7717if test x$def_curl = xyes; then
7718
7719
7720for ac_header in curl/curl.h
7721do
7722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7723if eval "test \"\${$as_ac_Header+set}\" = set"; then
7724  echo "$as_me:$LINENO: checking for $ac_header" >&5
7725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7726if eval "test \"\${$as_ac_Header+set}\" = set"; then
7727  echo $ECHO_N "(cached) $ECHO_C" >&6
7728fi
7729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7731else
7732  # Is the header compilable?
7733echo "$as_me:$LINENO: checking $ac_header usability" >&5
7734echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7735cat >conftest.$ac_ext <<_ACEOF
7736/* confdefs.h.  */
7737_ACEOF
7738cat confdefs.h >>conftest.$ac_ext
7739cat >>conftest.$ac_ext <<_ACEOF
7740/* end confdefs.h.  */
7741$ac_includes_default
7742#include <$ac_header>
7743_ACEOF
7744rm -f conftest.$ac_objext
7745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746  (eval $ac_compile) 2>conftest.er1
7747  ac_status=$?
7748  grep -v '^ *+' conftest.er1 >conftest.err
7749  rm -f conftest.er1
7750  cat conftest.err >&5
7751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752  (exit $ac_status); } &&
7753         { ac_try='test -z "$ac_c_werror_flag"
7754                         || test ! -s conftest.err'
7755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756  (eval $ac_try) 2>&5
7757  ac_status=$?
7758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759  (exit $ac_status); }; } &&
7760         { ac_try='test -s conftest.$ac_objext'
7761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762  (eval $ac_try) 2>&5
7763  ac_status=$?
7764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765  (exit $ac_status); }; }; then
7766  ac_header_compiler=yes
7767else
7768  echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7771ac_header_compiler=no
7772fi
7773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7775echo "${ECHO_T}$ac_header_compiler" >&6
7776
7777# Is the header present?
7778echo "$as_me:$LINENO: checking $ac_header presence" >&5
7779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7780cat >conftest.$ac_ext <<_ACEOF
7781/* confdefs.h.  */
7782_ACEOF
7783cat confdefs.h >>conftest.$ac_ext
7784cat >>conftest.$ac_ext <<_ACEOF
7785/* end confdefs.h.  */
7786#include <$ac_header>
7787_ACEOF
7788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7789  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7790  ac_status=$?
7791  grep -v '^ *+' conftest.er1 >conftest.err
7792  rm -f conftest.er1
7793  cat conftest.err >&5
7794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795  (exit $ac_status); } >/dev/null; then
7796  if test -s conftest.err; then
7797    ac_cpp_err=$ac_c_preproc_warn_flag
7798    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7799  else
7800    ac_cpp_err=
7801  fi
7802else
7803  ac_cpp_err=yes
7804fi
7805if test -z "$ac_cpp_err"; then
7806  ac_header_preproc=yes
7807else
7808  echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5
7810
7811  ac_header_preproc=no
7812fi
7813rm -f conftest.err conftest.$ac_ext
7814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7815echo "${ECHO_T}$ac_header_preproc" >&6
7816
7817# So?  What about this header?
7818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7819  yes:no: )
7820    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7822    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7824    ac_header_preproc=yes
7825    ;;
7826  no:yes:* )
7827    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7829    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7830echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7831    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7833    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7834echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7835    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7837    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7839    (
7840      cat <<\_ASBOX
7841## ---------------------------------------------- ##
7842## Report this to orxonox-dev at mail.datacore.ch ##
7843## ---------------------------------------------- ##
7844_ASBOX
7845    ) |
7846      sed "s/^/$as_me: WARNING:     /" >&2
7847    ;;
7848esac
7849echo "$as_me:$LINENO: checking for $ac_header" >&5
7850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7851if eval "test \"\${$as_ac_Header+set}\" = set"; then
7852  echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854  eval "$as_ac_Header=\$ac_header_preproc"
7855fi
7856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7858
7859fi
7860if test `eval echo '${'$as_ac_Header'}'` = yes; then
7861  cat >>confdefs.h <<_ACEOF
7862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7863_ACEOF
7864 curlHeader="yes"
7865else
7866  curlHeader="no"
7867fi
7868
7869done
7870
7871 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
7872echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
7873if test "${ac_cv_lib_curl_main+set}" = set; then
7874  echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876  ac_check_lib_save_LIBS=$LIBS
7877LIBS="-lcurl  $LIBS"
7878cat >conftest.$ac_ext <<_ACEOF
7879/* confdefs.h.  */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h.  */
7884
7885
7886int
7887main ()
7888{
7889main ();
7890  ;
7891  return 0;
7892}
7893_ACEOF
7894rm -f conftest.$ac_objext conftest$ac_exeext
7895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7896  (eval $ac_link) 2>conftest.er1
7897  ac_status=$?
7898  grep -v '^ *+' conftest.er1 >conftest.err
7899  rm -f conftest.er1
7900  cat conftest.err >&5
7901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902  (exit $ac_status); } &&
7903         { ac_try='test -z "$ac_c_werror_flag"
7904                         || test ! -s conftest.err'
7905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906  (eval $ac_try) 2>&5
7907  ac_status=$?
7908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909  (exit $ac_status); }; } &&
7910         { ac_try='test -s conftest$ac_exeext'
7911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912  (eval $ac_try) 2>&5
7913  ac_status=$?
7914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915  (exit $ac_status); }; }; then
7916  ac_cv_lib_curl_main=yes
7917else
7918  echo "$as_me: failed program was:" >&5
7919sed 's/^/| /' conftest.$ac_ext >&5
7920
7921ac_cv_lib_curl_main=no
7922fi
7923rm -f conftest.err conftest.$ac_objext \
7924      conftest$ac_exeext conftest.$ac_ext
7925LIBS=$ac_check_lib_save_LIBS
7926fi
7927echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
7928echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
7929if test $ac_cv_lib_curl_main = yes; then
7930  FOUND_curl=yes
7931fi
7932
7933 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
7934  have_curl=yes
7935  CURL_LIBS=`curl-config --libs`
7936  CURLCFLAGS=`curl-config --cflags`
7937
7938cat >>confdefs.h <<_ACEOF
7939#define HAVE_CURL 1
7940_ACEOF
7941
7942 else
7943  have_curl=no
7944 fi
7945
7946fi
7947
7948
7949
7950
7951if test x$have_curl = xyes; then
7952  HAVE_CURL_TRUE=
7953  HAVE_CURL_FALSE='#'
7954else
7955  HAVE_CURL_TRUE='#'
7956  HAVE_CURL_FALSE=
7957fi
7958
7959
7960#--------#
7961# efence #
7962#--------#
7963if test x$def_efence = xyes ; then
7964  echo "$as_me:$LINENO: checking for main in -lefence" >&5
7965echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
7966if test "${ac_cv_lib_efence_main+set}" = set; then
7967  echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969  ac_check_lib_save_LIBS=$LIBS
7970LIBS="-lefence  $LIBS"
7971cat >conftest.$ac_ext <<_ACEOF
7972/* confdefs.h.  */
7973_ACEOF
7974cat confdefs.h >>conftest.$ac_ext
7975cat >>conftest.$ac_ext <<_ACEOF
7976/* end confdefs.h.  */
7977
7978
7979int
7980main ()
7981{
7982main ();
7983  ;
7984  return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext conftest$ac_exeext
7988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989  (eval $ac_link) 2>conftest.er1
7990  ac_status=$?
7991  grep -v '^ *+' conftest.er1 >conftest.err
7992  rm -f conftest.er1
7993  cat conftest.err >&5
7994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995  (exit $ac_status); } &&
7996         { ac_try='test -z "$ac_c_werror_flag"
7997                         || test ! -s conftest.err'
7998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999  (eval $ac_try) 2>&5
8000  ac_status=$?
8001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002  (exit $ac_status); }; } &&
8003         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8009  ac_cv_lib_efence_main=yes
8010else
8011  echo "$as_me: failed program was:" >&5
8012sed 's/^/| /' conftest.$ac_ext >&5
8013
8014ac_cv_lib_efence_main=no
8015fi
8016rm -f conftest.err conftest.$ac_objext \
8017      conftest$ac_exeext conftest.$ac_ext
8018LIBS=$ac_check_lib_save_LIBS
8019fi
8020echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8021echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8022if test $ac_cv_lib_efence_main = yes; then
8023  FOUND_efence=yes
8024fi
8025
8026   if test x$FOUND_efence = xyes ; then
8027      LIBS="$LIBS -lefence"
8028   fi
8029
8030fi
8031
8032# FIXME: Replace `main' with a function in `-lm':
8033
8034echo "$as_me:$LINENO: checking for main in -lm" >&5
8035echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8036if test "${ac_cv_lib_m_main+set}" = set; then
8037  echo $ECHO_N "(cached) $ECHO_C" >&6
8038else
8039  ac_check_lib_save_LIBS=$LIBS
8040LIBS="-lm  $LIBS"
8041cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h.  */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h.  */
8047
8048
8049int
8050main ()
8051{
8052main ();
8053  ;
8054  return 0;
8055}
8056_ACEOF
8057rm -f conftest.$ac_objext conftest$ac_exeext
8058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8059  (eval $ac_link) 2>conftest.er1
8060  ac_status=$?
8061  grep -v '^ *+' conftest.er1 >conftest.err
8062  rm -f conftest.er1
8063  cat conftest.err >&5
8064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065  (exit $ac_status); } &&
8066         { ac_try='test -z "$ac_c_werror_flag"
8067                         || test ! -s conftest.err'
8068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069  (eval $ac_try) 2>&5
8070  ac_status=$?
8071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072  (exit $ac_status); }; } &&
8073         { ac_try='test -s conftest$ac_exeext'
8074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075  (eval $ac_try) 2>&5
8076  ac_status=$?
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); }; }; then
8079  ac_cv_lib_m_main=yes
8080else
8081  echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084ac_cv_lib_m_main=no
8085fi
8086rm -f conftest.err conftest.$ac_objext \
8087      conftest$ac_exeext conftest.$ac_ext
8088LIBS=$ac_check_lib_save_LIBS
8089fi
8090echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8091echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8092if test $ac_cv_lib_m_main = yes; then
8093  cat >>confdefs.h <<_ACEOF
8094#define HAVE_LIBM 1
8095_ACEOF
8096
8097  LIBS="-lm $LIBS"
8098
8099fi
8100
8101
8102
8103# Checks for header files.
8104echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8105echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8106if test "${ac_cv_header_stdc+set}" = set; then
8107  echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109  cat >conftest.$ac_ext <<_ACEOF
8110/* confdefs.h.  */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h.  */
8115#include <stdlib.h>
8116#include <stdarg.h>
8117#include <string.h>
8118#include <float.h>
8119
8120int
8121main ()
8122{
8123
8124  ;
8125  return 0;
8126}
8127_ACEOF
8128rm -f conftest.$ac_objext
8129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130  (eval $ac_compile) 2>conftest.er1
8131  ac_status=$?
8132  grep -v '^ *+' conftest.er1 >conftest.err
8133  rm -f conftest.er1
8134  cat conftest.err >&5
8135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136  (exit $ac_status); } &&
8137         { ac_try='test -z "$ac_c_werror_flag"
8138                         || test ! -s conftest.err'
8139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140  (eval $ac_try) 2>&5
8141  ac_status=$?
8142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143  (exit $ac_status); }; } &&
8144         { ac_try='test -s conftest.$ac_objext'
8145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146  (eval $ac_try) 2>&5
8147  ac_status=$?
8148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149  (exit $ac_status); }; }; then
8150  ac_cv_header_stdc=yes
8151else
8152  echo "$as_me: failed program was:" >&5
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
8155ac_cv_header_stdc=no
8156fi
8157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158
8159if test $ac_cv_header_stdc = yes; then
8160  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8161  cat >conftest.$ac_ext <<_ACEOF
8162/* confdefs.h.  */
8163_ACEOF
8164cat confdefs.h >>conftest.$ac_ext
8165cat >>conftest.$ac_ext <<_ACEOF
8166/* end confdefs.h.  */
8167#include <string.h>
8168
8169_ACEOF
8170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8171  $EGREP "memchr" >/dev/null 2>&1; then
8172  :
8173else
8174  ac_cv_header_stdc=no
8175fi
8176rm -f conftest*
8177
8178fi
8179
8180if test $ac_cv_header_stdc = yes; then
8181  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8182  cat >conftest.$ac_ext <<_ACEOF
8183/* confdefs.h.  */
8184_ACEOF
8185cat confdefs.h >>conftest.$ac_ext
8186cat >>conftest.$ac_ext <<_ACEOF
8187/* end confdefs.h.  */
8188#include <stdlib.h>
8189
8190_ACEOF
8191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8192  $EGREP "free" >/dev/null 2>&1; then
8193  :
8194else
8195  ac_cv_header_stdc=no
8196fi
8197rm -f conftest*
8198
8199fi
8200
8201if test $ac_cv_header_stdc = yes; then
8202  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8203  if test "$cross_compiling" = yes; then
8204  :
8205else
8206  cat >conftest.$ac_ext <<_ACEOF
8207/* confdefs.h.  */
8208_ACEOF
8209cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h.  */
8212#include <ctype.h>
8213#if ((' ' & 0x0FF) == 0x020)
8214# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8215# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8216#else
8217# define ISLOWER(c) \
8218                   (('a' <= (c) && (c) <= 'i') \
8219                     || ('j' <= (c) && (c) <= 'r') \
8220                     || ('s' <= (c) && (c) <= 'z'))
8221# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8222#endif
8223
8224#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8225int
8226main ()
8227{
8228  int i;
8229  for (i = 0; i < 256; i++)
8230    if (XOR (islower (i), ISLOWER (i))
8231        || toupper (i) != TOUPPER (i))
8232      exit(2);
8233  exit (0);
8234}
8235_ACEOF
8236rm -f conftest$ac_exeext
8237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238  (eval $ac_link) 2>&5
8239  ac_status=$?
8240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243  (eval $ac_try) 2>&5
8244  ac_status=$?
8245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246  (exit $ac_status); }; }; then
8247  :
8248else
8249  echo "$as_me: program exited with status $ac_status" >&5
8250echo "$as_me: failed program was:" >&5
8251sed 's/^/| /' conftest.$ac_ext >&5
8252
8253( exit $ac_status )
8254ac_cv_header_stdc=no
8255fi
8256rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8257fi
8258fi
8259fi
8260echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8261echo "${ECHO_T}$ac_cv_header_stdc" >&6
8262if test $ac_cv_header_stdc = yes; then
8263
8264cat >>confdefs.h <<\_ACEOF
8265#define STDC_HEADERS 1
8266_ACEOF
8267
8268fi
8269
8270
8271
8272for ac_header in stdlib.h string.h
8273do
8274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8275if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276  echo "$as_me:$LINENO: checking for $ac_header" >&5
8277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8278if eval "test \"\${$as_ac_Header+set}\" = set"; then
8279  echo $ECHO_N "(cached) $ECHO_C" >&6
8280fi
8281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8283else
8284  # Is the header compilable?
8285echo "$as_me:$LINENO: checking $ac_header usability" >&5
8286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8287cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h.  */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h.  */
8293$ac_includes_default
8294#include <$ac_header>
8295_ACEOF
8296rm -f conftest.$ac_objext
8297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298  (eval $ac_compile) 2>conftest.er1
8299  ac_status=$?
8300  grep -v '^ *+' conftest.er1 >conftest.err
8301  rm -f conftest.er1
8302  cat conftest.err >&5
8303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304  (exit $ac_status); } &&
8305         { ac_try='test -z "$ac_c_werror_flag"
8306                         || test ! -s conftest.err'
8307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308  (eval $ac_try) 2>&5
8309  ac_status=$?
8310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311  (exit $ac_status); }; } &&
8312         { ac_try='test -s conftest.$ac_objext'
8313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314  (eval $ac_try) 2>&5
8315  ac_status=$?
8316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317  (exit $ac_status); }; }; then
8318  ac_header_compiler=yes
8319else
8320  echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
8323ac_header_compiler=no
8324fi
8325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8327echo "${ECHO_T}$ac_header_compiler" >&6
8328
8329# Is the header present?
8330echo "$as_me:$LINENO: checking $ac_header presence" >&5
8331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8332cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h.  */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h.  */
8338#include <$ac_header>
8339_ACEOF
8340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8341  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8342  ac_status=$?
8343  grep -v '^ *+' conftest.er1 >conftest.err
8344  rm -f conftest.er1
8345  cat conftest.err >&5
8346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347  (exit $ac_status); } >/dev/null; then
8348  if test -s conftest.err; then
8349    ac_cpp_err=$ac_c_preproc_warn_flag
8350    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8351  else
8352    ac_cpp_err=
8353  fi
8354else
8355  ac_cpp_err=yes
8356fi
8357if test -z "$ac_cpp_err"; then
8358  ac_header_preproc=yes
8359else
8360  echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
8363  ac_header_preproc=no
8364fi
8365rm -f conftest.err conftest.$ac_ext
8366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8367echo "${ECHO_T}$ac_header_preproc" >&6
8368
8369# So?  What about this header?
8370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8371  yes:no: )
8372    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8376    ac_header_preproc=yes
8377    ;;
8378  no:yes:* )
8379    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8381    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8382echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8383    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8385    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8386echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8387    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8389    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8391    (
8392      cat <<\_ASBOX
8393## ---------------------------------------------- ##
8394## Report this to orxonox-dev at mail.datacore.ch ##
8395## ---------------------------------------------- ##
8396_ASBOX
8397    ) |
8398      sed "s/^/$as_me: WARNING:     /" >&2
8399    ;;
8400esac
8401echo "$as_me:$LINENO: checking for $ac_header" >&5
8402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8403if eval "test \"\${$as_ac_Header+set}\" = set"; then
8404  echo $ECHO_N "(cached) $ECHO_C" >&6
8405else
8406  eval "$as_ac_Header=\$ac_header_preproc"
8407fi
8408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8410
8411fi
8412if test `eval echo '${'$as_ac_Header'}'` = yes; then
8413  cat >>confdefs.h <<_ACEOF
8414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8415_ACEOF
8416
8417fi
8418
8419done
8420
8421
8422# Checks for typedefs, structures, and compiler characteristics.
8423echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8424echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8425if test "${ac_cv_header_stdbool_h+set}" = set; then
8426  echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428  cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h.  */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h.  */
8434
8435#include <stdbool.h>
8436#ifndef bool
8437# error bool is not defined
8438#endif
8439#ifndef false
8440# error false is not defined
8441#endif
8442#if false
8443# error false is not 0
8444#endif
8445#ifndef true
8446# error true is not defined
8447#endif
8448#if true != 1
8449# error true is not 1
8450#endif
8451#ifndef __bool_true_false_are_defined
8452# error __bool_true_false_are_defined is not defined
8453#endif
8454
8455        struct s { _Bool s: 1; _Bool t; } s;
8456
8457        char a[true == 1 ? 1 : -1];
8458        char b[false == 0 ? 1 : -1];
8459        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8460        char d[(bool) -0.5 == true ? 1 : -1];
8461        bool e = &s;
8462        char f[(_Bool) -0.0 == false ? 1 : -1];
8463        char g[true];
8464        char h[sizeof (_Bool)];
8465        char i[sizeof s.t];
8466
8467int
8468main ()
8469{
8470 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8471  ;
8472  return 0;
8473}
8474_ACEOF
8475rm -f conftest.$ac_objext
8476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8477  (eval $ac_compile) 2>conftest.er1
8478  ac_status=$?
8479  grep -v '^ *+' conftest.er1 >conftest.err
8480  rm -f conftest.er1
8481  cat conftest.err >&5
8482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); } &&
8484         { ac_try='test -z "$ac_c_werror_flag"
8485                         || test ! -s conftest.err'
8486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487  (eval $ac_try) 2>&5
8488  ac_status=$?
8489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490  (exit $ac_status); }; } &&
8491         { ac_try='test -s conftest.$ac_objext'
8492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493  (eval $ac_try) 2>&5
8494  ac_status=$?
8495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496  (exit $ac_status); }; }; then
8497  ac_cv_header_stdbool_h=yes
8498else
8499  echo "$as_me: failed program was:" >&5
8500sed 's/^/| /' conftest.$ac_ext >&5
8501
8502ac_cv_header_stdbool_h=no
8503fi
8504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8505fi
8506echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8507echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8508echo "$as_me:$LINENO: checking for _Bool" >&5
8509echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8510if test "${ac_cv_type__Bool+set}" = set; then
8511  echo $ECHO_N "(cached) $ECHO_C" >&6
8512else
8513  cat >conftest.$ac_ext <<_ACEOF
8514/* confdefs.h.  */
8515_ACEOF
8516cat confdefs.h >>conftest.$ac_ext
8517cat >>conftest.$ac_ext <<_ACEOF
8518/* end confdefs.h.  */
8519$ac_includes_default
8520int
8521main ()
8522{
8523if ((_Bool *) 0)
8524  return 0;
8525if (sizeof (_Bool))
8526  return 0;
8527  ;
8528  return 0;
8529}
8530_ACEOF
8531rm -f conftest.$ac_objext
8532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533  (eval $ac_compile) 2>conftest.er1
8534  ac_status=$?
8535  grep -v '^ *+' conftest.er1 >conftest.err
8536  rm -f conftest.er1
8537  cat conftest.err >&5
8538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539  (exit $ac_status); } &&
8540         { ac_try='test -z "$ac_c_werror_flag"
8541                         || test ! -s conftest.err'
8542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543  (eval $ac_try) 2>&5
8544  ac_status=$?
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); }; } &&
8547         { ac_try='test -s conftest.$ac_objext'
8548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549  (eval $ac_try) 2>&5
8550  ac_status=$?
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); }; }; then
8553  ac_cv_type__Bool=yes
8554else
8555  echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558ac_cv_type__Bool=no
8559fi
8560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8561fi
8562echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8563echo "${ECHO_T}$ac_cv_type__Bool" >&6
8564if test $ac_cv_type__Bool = yes; then
8565
8566cat >>confdefs.h <<_ACEOF
8567#define HAVE__BOOL 1
8568_ACEOF
8569
8570
8571fi
8572
8573if test $ac_cv_header_stdbool_h = yes; then
8574
8575cat >>confdefs.h <<\_ACEOF
8576#define HAVE_STDBOOL_H 1
8577_ACEOF
8578
8579fi
8580
8581
8582# Checks for library functions.
8583
8584for ac_header in stdlib.h
8585do
8586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8587if eval "test \"\${$as_ac_Header+set}\" = set"; then
8588  echo "$as_me:$LINENO: checking for $ac_header" >&5
8589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8590if eval "test \"\${$as_ac_Header+set}\" = set"; then
8591  echo $ECHO_N "(cached) $ECHO_C" >&6
8592fi
8593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8595else
8596  # Is the header compilable?
8597echo "$as_me:$LINENO: checking $ac_header usability" >&5
8598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8599cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h.  */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h.  */
8605$ac_includes_default
8606#include <$ac_header>
8607_ACEOF
8608rm -f conftest.$ac_objext
8609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610  (eval $ac_compile) 2>conftest.er1
8611  ac_status=$?
8612  grep -v '^ *+' conftest.er1 >conftest.err
8613  rm -f conftest.er1
8614  cat conftest.err >&5
8615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616  (exit $ac_status); } &&
8617         { ac_try='test -z "$ac_c_werror_flag"
8618                         || test ! -s conftest.err'
8619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620  (eval $ac_try) 2>&5
8621  ac_status=$?
8622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); }; } &&
8624         { ac_try='test -s conftest.$ac_objext'
8625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626  (eval $ac_try) 2>&5
8627  ac_status=$?
8628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629  (exit $ac_status); }; }; then
8630  ac_header_compiler=yes
8631else
8632  echo "$as_me: failed program was:" >&5
8633sed 's/^/| /' conftest.$ac_ext >&5
8634
8635ac_header_compiler=no
8636fi
8637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8639echo "${ECHO_T}$ac_header_compiler" >&6
8640
8641# Is the header present?
8642echo "$as_me:$LINENO: checking $ac_header presence" >&5
8643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8644cat >conftest.$ac_ext <<_ACEOF
8645/* confdefs.h.  */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h.  */
8650#include <$ac_header>
8651_ACEOF
8652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8654  ac_status=$?
8655  grep -v '^ *+' conftest.er1 >conftest.err
8656  rm -f conftest.er1
8657  cat conftest.err >&5
8658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659  (exit $ac_status); } >/dev/null; then
8660  if test -s conftest.err; then
8661    ac_cpp_err=$ac_c_preproc_warn_flag
8662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8663  else
8664    ac_cpp_err=
8665  fi
8666else
8667  ac_cpp_err=yes
8668fi
8669if test -z "$ac_cpp_err"; then
8670  ac_header_preproc=yes
8671else
8672  echo "$as_me: failed program was:" >&5
8673sed 's/^/| /' conftest.$ac_ext >&5
8674
8675  ac_header_preproc=no
8676fi
8677rm -f conftest.err conftest.$ac_ext
8678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8679echo "${ECHO_T}$ac_header_preproc" >&6
8680
8681# So?  What about this header?
8682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8683  yes:no: )
8684    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8685echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8687echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8688    ac_header_preproc=yes
8689    ;;
8690  no:yes:* )
8691    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8692echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8693    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8694echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8695    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8696echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8697    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8698echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8699    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8700echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8701    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8702echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8703    (
8704      cat <<\_ASBOX
8705## ---------------------------------------------- ##
8706## Report this to orxonox-dev at mail.datacore.ch ##
8707## ---------------------------------------------- ##
8708_ASBOX
8709    ) |
8710      sed "s/^/$as_me: WARNING:     /" >&2
8711    ;;
8712esac
8713echo "$as_me:$LINENO: checking for $ac_header" >&5
8714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8715if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716  echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
8718  eval "$as_ac_Header=\$ac_header_preproc"
8719fi
8720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8722
8723fi
8724if test `eval echo '${'$as_ac_Header'}'` = yes; then
8725  cat >>confdefs.h <<_ACEOF
8726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727_ACEOF
8728
8729fi
8730
8731done
8732
8733echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8734echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8735if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8736  echo $ECHO_N "(cached) $ECHO_C" >&6
8737else
8738  if test "$cross_compiling" = yes; then
8739  ac_cv_func_malloc_0_nonnull=no
8740else
8741  cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h.  */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
8746/* end confdefs.h.  */
8747#if STDC_HEADERS || HAVE_STDLIB_H
8748# include <stdlib.h>
8749#else
8750char *malloc ();
8751#endif
8752
8753int
8754main ()
8755{
8756exit (malloc (0) ? 0 : 1);
8757  ;
8758  return 0;
8759}
8760_ACEOF
8761rm -f conftest$ac_exeext
8762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8763  (eval $ac_link) 2>&5
8764  ac_status=$?
8765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768  (eval $ac_try) 2>&5
8769  ac_status=$?
8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771  (exit $ac_status); }; }; then
8772  ac_cv_func_malloc_0_nonnull=yes
8773else
8774  echo "$as_me: program exited with status $ac_status" >&5
8775echo "$as_me: failed program was:" >&5
8776sed 's/^/| /' conftest.$ac_ext >&5
8777
8778( exit $ac_status )
8779ac_cv_func_malloc_0_nonnull=no
8780fi
8781rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8782fi
8783fi
8784echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8785echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8786if test $ac_cv_func_malloc_0_nonnull = yes; then
8787
8788cat >>confdefs.h <<\_ACEOF
8789#define HAVE_MALLOC 1
8790_ACEOF
8791
8792else
8793  cat >>confdefs.h <<\_ACEOF
8794#define HAVE_MALLOC 0
8795_ACEOF
8796
8797   case $LIBOBJS in
8798    "malloc.$ac_objext"   | \
8799  *" malloc.$ac_objext"   | \
8800    "malloc.$ac_objext "* | \
8801  *" malloc.$ac_objext "* ) ;;
8802  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8803esac
8804
8805
8806cat >>confdefs.h <<\_ACEOF
8807#define malloc rpl_malloc
8808_ACEOF
8809
8810fi
8811
8812
8813
8814
8815
8816for ac_func in bzero sqrt
8817do
8818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8819echo "$as_me:$LINENO: checking for $ac_func" >&5
8820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8821if eval "test \"\${$as_ac_var+set}\" = set"; then
8822  echo $ECHO_N "(cached) $ECHO_C" >&6
8823else
8824  cat >conftest.$ac_ext <<_ACEOF
8825/* confdefs.h.  */
8826_ACEOF
8827cat confdefs.h >>conftest.$ac_ext
8828cat >>conftest.$ac_ext <<_ACEOF
8829/* end confdefs.h.  */
8830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8831   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8832#define $ac_func innocuous_$ac_func
8833
8834/* System header to define __stub macros and hopefully few prototypes,
8835    which can conflict with char $ac_func (); below.
8836    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837    <limits.h> exists even on freestanding compilers.  */
8838
8839#ifdef __STDC__
8840# include <limits.h>
8841#else
8842# include <assert.h>
8843#endif
8844
8845#undef $ac_func
8846
8847/* Override any gcc2 internal prototype to avoid an error.  */
8848#ifdef __cplusplus
8849extern "C"
8850{
8851#endif
8852/* We use char because int might match the return type of a gcc2
8853   builtin and then its argument prototype would still apply.  */
8854char $ac_func ();
8855/* The GNU C library defines this for functions which it implements
8856    to always fail with ENOSYS.  Some functions are actually named
8857    something starting with __ and the normal name is an alias.  */
8858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8859choke me
8860#else
8861char (*f) () = $ac_func;
8862#endif
8863#ifdef __cplusplus
8864}
8865#endif
8866
8867int
8868main ()
8869{
8870return f != $ac_func;
8871  ;
8872  return 0;
8873}
8874_ACEOF
8875rm -f conftest.$ac_objext conftest$ac_exeext
8876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877  (eval $ac_link) 2>conftest.er1
8878  ac_status=$?
8879  grep -v '^ *+' conftest.er1 >conftest.err
8880  rm -f conftest.er1
8881  cat conftest.err >&5
8882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883  (exit $ac_status); } &&
8884         { ac_try='test -z "$ac_c_werror_flag"
8885                         || test ! -s conftest.err'
8886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887  (eval $ac_try) 2>&5
8888  ac_status=$?
8889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890  (exit $ac_status); }; } &&
8891         { ac_try='test -s conftest$ac_exeext'
8892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893  (eval $ac_try) 2>&5
8894  ac_status=$?
8895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896  (exit $ac_status); }; }; then
8897  eval "$as_ac_var=yes"
8898else
8899  echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
8902eval "$as_ac_var=no"
8903fi
8904rm -f conftest.err conftest.$ac_objext \
8905      conftest$ac_exeext conftest.$ac_ext
8906fi
8907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8909if test `eval echo '${'$as_ac_var'}'` = yes; then
8910  cat >>confdefs.h <<_ACEOF
8911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8912_ACEOF
8913
8914fi
8915done
8916
8917
8918######################
8919## OUTPUT CONFIGURE ##
8920######################
8921                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/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 src/subprojects/gui/Makefile"
8922
8923
8924cat >confcache <<\_ACEOF
8925# This file is a shell script that caches the results of configure
8926# tests run on this system so they can be shared between configure
8927# scripts and configure runs, see configure's option --config-cache.
8928# It is not useful on other systems.  If it contains results you don't
8929# want to keep, you may remove or edit it.
8930#
8931# config.status only pays attention to the cache file if you give it
8932# the --recheck option to rerun configure.
8933#
8934# `ac_cv_env_foo' variables (set or unset) will be overridden when
8935# loading this file, other *unset* `ac_cv_foo' will be assigned the
8936# following values.
8937
8938_ACEOF
8939
8940# The following way of writing the cache mishandles newlines in values,
8941# but we know of no workaround that is simple, portable, and efficient.
8942# So, don't put newlines in cache variables' values.
8943# Ultrix sh set writes to stderr and can't be redirected directly,
8944# and sets the high bit in the cache file unless we assign to the vars.
8945{
8946  (set) 2>&1 |
8947    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8948    *ac_space=\ *)
8949      # `set' does not quote correctly, so add quotes (double-quote
8950      # substitution turns \\\\ into \\, and sed turns \\ into \).
8951      sed -n \
8952        "s/'/'\\\\''/g;
8953          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8954      ;;
8955    *)
8956      # `set' quotes correctly as required by POSIX, so do not add quotes.
8957      sed -n \
8958        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8959      ;;
8960    esac;
8961} |
8962  sed '
8963     t clear
8964     : clear
8965     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8966     t end
8967     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8968     : end' >>confcache
8969if diff $cache_file confcache >/dev/null 2>&1; then :; else
8970  if test -w $cache_file; then
8971    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8972    cat confcache >$cache_file
8973  else
8974    echo "not updating unwritable cache $cache_file"
8975  fi
8976fi
8977rm -f confcache
8978
8979test "x$prefix" = xNONE && prefix=$ac_default_prefix
8980# Let make expand exec_prefix.
8981test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8982
8983# VPATH may cause trouble with some makes, so we remove $(srcdir),
8984# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8985# trailing colons and then remove the whole line if VPATH becomes empty
8986# (actually we leave an empty line to preserve line numbers).
8987if test "x$srcdir" = x.; then
8988  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8989s/:*\$(srcdir):*/:/;
8990s/:*\${srcdir}:*/:/;
8991s/:*@srcdir@:*/:/;
8992s/^\([^=]*=[     ]*\):*/\1/;
8993s/:*$//;
8994s/^[^=]*=[       ]*$//;
8995}'
8996fi
8997
8998DEFS=-DHAVE_CONFIG_H
8999
9000ac_libobjs=
9001ac_ltlibobjs=
9002for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9003  # 1. Remove the extension, and $U if already installed.
9004  ac_i=`echo "$ac_i" |
9005         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9006  # 2. Add them.
9007  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9008  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9009done
9010LIBOBJS=$ac_libobjs
9011
9012LTLIBOBJS=$ac_ltlibobjs
9013
9014
9015if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9016  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9017Usually this means the macro was only invoked conditionally." >&5
9018echo "$as_me: error: conditional \"AMDEP\" was never defined.
9019Usually this means the macro was only invoked conditionally." >&2;}
9020   { (exit 1); exit 1; }; }
9021fi
9022if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9023  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9024Usually this means the macro was only invoked conditionally." >&5
9025echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9026Usually this means the macro was only invoked conditionally." >&2;}
9027   { (exit 1); exit 1; }; }
9028fi
9029if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9030  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9031Usually this means the macro was only invoked conditionally." >&5
9032echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9033Usually this means the macro was only invoked conditionally." >&2;}
9034   { (exit 1); exit 1; }; }
9035fi
9036if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
9037  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
9038Usually this means the macro was only invoked conditionally." >&5
9039echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
9040Usually this means the macro was only invoked conditionally." >&2;}
9041   { (exit 1); exit 1; }; }
9042fi
9043if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
9044  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
9045Usually this means the macro was only invoked conditionally." >&5
9046echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
9047Usually this means the macro was only invoked conditionally." >&2;}
9048   { (exit 1); exit 1; }; }
9049fi
9050if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
9051  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
9052Usually this means the macro was only invoked conditionally." >&5
9053echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
9054Usually this means the macro was only invoked conditionally." >&2;}
9055   { (exit 1); exit 1; }; }
9056fi
9057if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
9058  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
9059Usually this means the macro was only invoked conditionally." >&5
9060echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
9061Usually this means the macro was only invoked conditionally." >&2;}
9062   { (exit 1); exit 1; }; }
9063fi
9064if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
9065  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
9066Usually this means the macro was only invoked conditionally." >&5
9067echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
9068Usually this means the macro was only invoked conditionally." >&2;}
9069   { (exit 1); exit 1; }; }
9070fi
9071
9072: ${CONFIG_STATUS=./config.status}
9073ac_clean_files_save=$ac_clean_files
9074ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9075{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9076echo "$as_me: creating $CONFIG_STATUS" >&6;}
9077cat >$CONFIG_STATUS <<_ACEOF
9078#! $SHELL
9079# Generated by $as_me.
9080# Run this file to recreate the current configuration.
9081# Compiler output produced by configure, useful for debugging
9082# configure, is in config.log if it exists.
9083
9084debug=false
9085ac_cs_recheck=false
9086ac_cs_silent=false
9087SHELL=\${CONFIG_SHELL-$SHELL}
9088_ACEOF
9089
9090cat >>$CONFIG_STATUS <<\_ACEOF
9091## --------------------- ##
9092## M4sh Initialization.  ##
9093## --------------------- ##
9094
9095# Be Bourne compatible
9096if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9097  emulate sh
9098  NULLCMD=:
9099  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9100  # is contrary to our usage.  Disable this feature.
9101  alias -g '${1+"$@"}'='"$@"'
9102elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9103  set -o posix
9104fi
9105DUALCASE=1; export DUALCASE # for MKS sh
9106
9107# Support unset when possible.
9108if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9109  as_unset=unset
9110else
9111  as_unset=false
9112fi
9113
9114
9115# Work around bugs in pre-3.0 UWIN ksh.
9116$as_unset ENV MAIL MAILPATH
9117PS1='$ '
9118PS2='> '
9119PS4='+ '
9120
9121# NLS nuisances.
9122for as_var in \
9123  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9124  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9125  LC_TELEPHONE LC_TIME
9126do
9127  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9128    eval $as_var=C; export $as_var
9129  else
9130    $as_unset $as_var
9131  fi
9132done
9133
9134# Required to use basename.
9135if expr a : '\(a\)' >/dev/null 2>&1; then
9136  as_expr=expr
9137else
9138  as_expr=false
9139fi
9140
9141if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9142  as_basename=basename
9143else
9144  as_basename=false
9145fi
9146
9147
9148# Name of the executable.
9149as_me=`$as_basename "$0" ||
9150$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9151         X"$0" : 'X\(//\)$' \| \
9152         X"$0" : 'X\(/\)$' \| \
9153         .     : '\(.\)' 2>/dev/null ||
9154echo X/"$0" |
9155    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9156          /^X\/\(\/\/\)$/{ s//\1/; q; }
9157          /^X\/\(\/\).*/{ s//\1/; q; }
9158          s/.*/./; q'`
9159
9160
9161# PATH needs CR, and LINENO needs CR and PATH.
9162# Avoid depending upon Character Ranges.
9163as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9164as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9165as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9166as_cr_digits='0123456789'
9167as_cr_alnum=$as_cr_Letters$as_cr_digits
9168
9169# The user is always right.
9170if test "${PATH_SEPARATOR+set}" != set; then
9171  echo "#! /bin/sh" >conf$$.sh
9172  echo  "exit 0"   >>conf$$.sh
9173  chmod +x conf$$.sh
9174  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9175    PATH_SEPARATOR=';'
9176  else
9177    PATH_SEPARATOR=:
9178  fi
9179  rm -f conf$$.sh
9180fi
9181
9182
9183  as_lineno_1=$LINENO
9184  as_lineno_2=$LINENO
9185  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9186  test "x$as_lineno_1" != "x$as_lineno_2" &&
9187  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9188  # Find who we are.  Look in the path if we contain no path at all
9189  # relative or not.
9190  case $0 in
9191    *[\\/]* ) as_myself=$0 ;;
9192    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195  IFS=$as_save_IFS
9196  test -z "$as_dir" && as_dir=.
9197  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9198done
9199
9200       ;;
9201  esac
9202  # We did not find ourselves, most probably we were run as `sh COMMAND'
9203  # in which case we are not to be found in the path.
9204  if test "x$as_myself" = x; then
9205    as_myself=$0
9206  fi
9207  if test ! -f "$as_myself"; then
9208    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9209echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9210   { (exit 1); exit 1; }; }
9211  fi
9212  case $CONFIG_SHELL in
9213  '')
9214    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9216do
9217  IFS=$as_save_IFS
9218  test -z "$as_dir" && as_dir=.
9219  for as_base in sh bash ksh sh5; do
9220         case $as_dir in
9221         /*)
9222           if ("$as_dir/$as_base" -c '
9223  as_lineno_1=$LINENO
9224  as_lineno_2=$LINENO
9225  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9226  test "x$as_lineno_1" != "x$as_lineno_2" &&
9227  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9228             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9229             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9230             CONFIG_SHELL=$as_dir/$as_base
9231             export CONFIG_SHELL
9232             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9233           fi;;
9234         esac
9235       done
9236done
9237;;
9238  esac
9239
9240  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9241  # uniformly replaced by the line number.  The first 'sed' inserts a
9242  # line-number line before each line; the second 'sed' does the real
9243  # work.  The second script uses 'N' to pair each line-number line
9244  # with the numbered line, and appends trailing '-' during
9245  # substitution so that $LINENO is not a special case at line end.
9246  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9247  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9248  sed '=' <$as_myself |
9249    sed '
9250      N
9251      s,$,-,
9252      : loop
9253      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9254      t loop
9255      s,-$,,
9256      s,^['$as_cr_digits']*\n,,
9257    ' >$as_me.lineno &&
9258  chmod +x $as_me.lineno ||
9259    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9260echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9261   { (exit 1); exit 1; }; }
9262
9263  # Don't try to exec as it changes $[0], causing all sort of problems
9264  # (the dirname of $[0] is not the place where we might find the
9265  # original and so on.  Autoconf is especially sensible to this).
9266  . ./$as_me.lineno
9267  # Exit status is that of the last command.
9268  exit
9269}
9270
9271
9272case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9273  *c*,-n*) ECHO_N= ECHO_C='
9274' ECHO_T='      ' ;;
9275  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9276  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9277esac
9278
9279if expr a : '\(a\)' >/dev/null 2>&1; then
9280  as_expr=expr
9281else
9282  as_expr=false
9283fi
9284
9285rm -f conf$$ conf$$.exe conf$$.file
9286echo >conf$$.file
9287if ln -s conf$$.file conf$$ 2>/dev/null; then
9288  # We could just check for DJGPP; but this test a) works b) is more generic
9289  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9290  if test -f conf$$.exe; then
9291    # Don't use ln at all; we don't have any links
9292    as_ln_s='cp -p'
9293  else
9294    as_ln_s='ln -s'
9295  fi
9296elif ln conf$$.file conf$$ 2>/dev/null; then
9297  as_ln_s=ln
9298else
9299  as_ln_s='cp -p'
9300fi
9301rm -f conf$$ conf$$.exe conf$$.file
9302
9303if mkdir -p . 2>/dev/null; then
9304  as_mkdir_p=:
9305else
9306  test -d ./-p && rmdir ./-p
9307  as_mkdir_p=false
9308fi
9309
9310as_executable_p="test -f"
9311
9312# Sed expression to map a string onto a valid CPP name.
9313as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9314
9315# Sed expression to map a string onto a valid variable name.
9316as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9317
9318
9319# IFS
9320# We need space, tab and new line, in precisely that order.
9321as_nl='
9322'
9323IFS="   $as_nl"
9324
9325# CDPATH.
9326$as_unset CDPATH
9327
9328exec 6>&1
9329
9330# Open the log real soon, to keep \$[0] and so on meaningful, and to
9331# report actual input values of CONFIG_FILES etc. instead of their
9332# values after options handling.  Logging --version etc. is OK.
9333exec 5>>config.log
9334{
9335  echo
9336  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9337## Running $as_me. ##
9338_ASBOX
9339} >&5
9340cat >&5 <<_CSEOF
9341
9342This file was extended by orxonox $as_me 0.2.3-pre-alpha, which was
9343generated by GNU Autoconf 2.59.  Invocation command line was
9344
9345  CONFIG_FILES    = $CONFIG_FILES
9346  CONFIG_HEADERS  = $CONFIG_HEADERS
9347  CONFIG_LINKS    = $CONFIG_LINKS
9348  CONFIG_COMMANDS = $CONFIG_COMMANDS
9349  $ $0 $@
9350
9351_CSEOF
9352echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9353echo >&5
9354_ACEOF
9355
9356# Files that config.status was made for.
9357if test -n "$ac_config_files"; then
9358  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9359fi
9360
9361if test -n "$ac_config_headers"; then
9362  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9363fi
9364
9365if test -n "$ac_config_links"; then
9366  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9367fi
9368
9369if test -n "$ac_config_commands"; then
9370  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9371fi
9372
9373cat >>$CONFIG_STATUS <<\_ACEOF
9374
9375ac_cs_usage="\
9376\`$as_me' instantiates files from templates according to the
9377current configuration.
9378
9379Usage: $0 [OPTIONS] [FILE]...
9380
9381  -h, --help       print this help, then exit
9382  -V, --version    print version number, then exit
9383  -q, --quiet      do not print progress messages
9384  -d, --debug      don't remove temporary files
9385      --recheck    update $as_me by reconfiguring in the same conditions
9386  --file=FILE[:TEMPLATE]
9387                   instantiate the configuration file FILE
9388  --header=FILE[:TEMPLATE]
9389                   instantiate the configuration header FILE
9390
9391Configuration files:
9392$config_files
9393
9394Configuration headers:
9395$config_headers
9396
9397Configuration commands:
9398$config_commands
9399
9400Report bugs to <bug-autoconf@gnu.org>."
9401_ACEOF
9402
9403cat >>$CONFIG_STATUS <<_ACEOF
9404ac_cs_version="\\
9405orxonox config.status 0.2.3-pre-alpha
9406configured by $0, generated by GNU Autoconf 2.59,
9407  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9408
9409Copyright (C) 2003 Free Software Foundation, Inc.
9410This config.status script is free software; the Free Software Foundation
9411gives unlimited permission to copy, distribute and modify it."
9412srcdir=$srcdir
9413INSTALL="$INSTALL"
9414_ACEOF
9415
9416cat >>$CONFIG_STATUS <<\_ACEOF
9417# If no file are specified by the user, then we need to provide default
9418# value.  By we need to know if files were specified by the user.
9419ac_need_defaults=:
9420while test $# != 0
9421do
9422  case $1 in
9423  --*=*)
9424    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9425    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9426    ac_shift=:
9427    ;;
9428  -*)
9429    ac_option=$1
9430    ac_optarg=$2
9431    ac_shift=shift
9432    ;;
9433  *) # This is not an option, so the user has probably given explicit
9434     # arguments.
9435     ac_option=$1
9436     ac_need_defaults=false;;
9437  esac
9438
9439  case $ac_option in
9440  # Handling of the options.
9441_ACEOF
9442cat >>$CONFIG_STATUS <<\_ACEOF
9443  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9444    ac_cs_recheck=: ;;
9445  --version | --vers* | -V )
9446    echo "$ac_cs_version"; exit 0 ;;
9447  --he | --h)
9448    # Conflict between --help and --header
9449    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9450Try \`$0 --help' for more information." >&5
9451echo "$as_me: error: ambiguous option: $1
9452Try \`$0 --help' for more information." >&2;}
9453   { (exit 1); exit 1; }; };;
9454  --help | --hel | -h )
9455    echo "$ac_cs_usage"; exit 0 ;;
9456  --debug | --d* | -d )
9457    debug=: ;;
9458  --file | --fil | --fi | --f )
9459    $ac_shift
9460    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9461    ac_need_defaults=false;;
9462  --header | --heade | --head | --hea )
9463    $ac_shift
9464    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9465    ac_need_defaults=false;;
9466  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9467  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9468    ac_cs_silent=: ;;
9469
9470  # This is an error.
9471  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9472Try \`$0 --help' for more information." >&5
9473echo "$as_me: error: unrecognized option: $1
9474Try \`$0 --help' for more information." >&2;}
9475   { (exit 1); exit 1; }; } ;;
9476
9477  *) ac_config_targets="$ac_config_targets $1" ;;
9478
9479  esac
9480  shift
9481done
9482
9483ac_configure_extra_args=
9484
9485if $ac_cs_silent; then
9486  exec 6>/dev/null
9487  ac_configure_extra_args="$ac_configure_extra_args --silent"
9488fi
9489
9490_ACEOF
9491cat >>$CONFIG_STATUS <<_ACEOF
9492if \$ac_cs_recheck; then
9493  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9494  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9495fi
9496
9497_ACEOF
9498
9499cat >>$CONFIG_STATUS <<_ACEOF
9500#
9501# INIT-COMMANDS section.
9502#
9503
9504AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9505
9506_ACEOF
9507
9508
9509
9510cat >>$CONFIG_STATUS <<\_ACEOF
9511for ac_config_target in $ac_config_targets
9512do
9513  case "$ac_config_target" in
9514  # Handling of arguments.
9515  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9516  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9517  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9518  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
9519  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
9520  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
9521  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
9522  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
9523  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
9524  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
9525  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
9526  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
9527  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
9528  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
9529  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
9530  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
9531  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
9532  "src/subprojects/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/gui/Makefile" ;;
9533  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9534  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9535  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9536echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9537   { (exit 1); exit 1; }; };;
9538  esac
9539done
9540
9541# If the user did not use the arguments to specify the items to instantiate,
9542# then the envvar interface is used.  Set only those that are not.
9543# We use the long form for the default assignment because of an extremely
9544# bizarre bug on SunOS 4.1.3.
9545if $ac_need_defaults; then
9546  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9547  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9548  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9549fi
9550
9551# Have a temporary directory for convenience.  Make it in the build tree
9552# simply because there is no reason to put it here, and in addition,
9553# creating and moving files from /tmp can sometimes cause problems.
9554# Create a temporary directory, and hook for its removal unless debugging.
9555$debug ||
9556{
9557  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9558  trap '{ (exit 1); exit 1; }' 1 2 13 15
9559}
9560
9561# Create a (secure) tmp directory for tmp files.
9562
9563{
9564  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9565  test -n "$tmp" && test -d "$tmp"
9566}  ||
9567{
9568  tmp=./confstat$$-$RANDOM
9569  (umask 077 && mkdir $tmp)
9570} ||
9571{
9572   echo "$me: cannot create a temporary directory in ." >&2
9573   { (exit 1); exit 1; }
9574}
9575
9576_ACEOF
9577
9578cat >>$CONFIG_STATUS <<_ACEOF
9579
9580#
9581# CONFIG_FILES section.
9582#
9583
9584# No need to generate the scripts if there are no CONFIG_FILES.
9585# This happens for instance when ./config.status config.h
9586if test -n "\$CONFIG_FILES"; then
9587  # Protect against being on the right side of a sed subst in config.status.
9588  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9589   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9590s,@SHELL@,$SHELL,;t t
9591s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9592s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9593s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9594s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9595s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9596s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9597s,@exec_prefix@,$exec_prefix,;t t
9598s,@prefix@,$prefix,;t t
9599s,@program_transform_name@,$program_transform_name,;t t
9600s,@bindir@,$bindir,;t t
9601s,@sbindir@,$sbindir,;t t
9602s,@libexecdir@,$libexecdir,;t t
9603s,@datadir@,$datadir,;t t
9604s,@sysconfdir@,$sysconfdir,;t t
9605s,@sharedstatedir@,$sharedstatedir,;t t
9606s,@localstatedir@,$localstatedir,;t t
9607s,@libdir@,$libdir,;t t
9608s,@includedir@,$includedir,;t t
9609s,@oldincludedir@,$oldincludedir,;t t
9610s,@infodir@,$infodir,;t t
9611s,@mandir@,$mandir,;t t
9612s,@build_alias@,$build_alias,;t t
9613s,@host_alias@,$host_alias,;t t
9614s,@target_alias@,$target_alias,;t t
9615s,@DEFS@,$DEFS,;t t
9616s,@ECHO_C@,$ECHO_C,;t t
9617s,@ECHO_N@,$ECHO_N,;t t
9618s,@ECHO_T@,$ECHO_T,;t t
9619s,@LIBS@,$LIBS,;t t
9620s,@build@,$build,;t t
9621s,@build_cpu@,$build_cpu,;t t
9622s,@build_vendor@,$build_vendor,;t t
9623s,@build_os@,$build_os,;t t
9624s,@host@,$host,;t t
9625s,@host_cpu@,$host_cpu,;t t
9626s,@host_vendor@,$host_vendor,;t t
9627s,@host_os@,$host_os,;t t
9628s,@target@,$target,;t t
9629s,@target_cpu@,$target_cpu,;t t
9630s,@target_vendor@,$target_vendor,;t t
9631s,@target_os@,$target_os,;t t
9632s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9633s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9634s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9635s,@CYGPATH_W@,$CYGPATH_W,;t t
9636s,@PACKAGE@,$PACKAGE,;t t
9637s,@VERSION@,$VERSION,;t t
9638s,@ACLOCAL@,$ACLOCAL,;t t
9639s,@AUTOCONF@,$AUTOCONF,;t t
9640s,@AUTOMAKE@,$AUTOMAKE,;t t
9641s,@AUTOHEADER@,$AUTOHEADER,;t t
9642s,@MAKEINFO@,$MAKEINFO,;t t
9643s,@AMTAR@,$AMTAR,;t t
9644s,@install_sh@,$install_sh,;t t
9645s,@STRIP@,$STRIP,;t t
9646s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9647s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9648s,@mkdir_p@,$mkdir_p,;t t
9649s,@AWK@,$AWK,;t t
9650s,@SET_MAKE@,$SET_MAKE,;t t
9651s,@am__leading_dot@,$am__leading_dot,;t t
9652s,@CXX@,$CXX,;t t
9653s,@CXXFLAGS@,$CXXFLAGS,;t t
9654s,@LDFLAGS@,$LDFLAGS,;t t
9655s,@CPPFLAGS@,$CPPFLAGS,;t t
9656s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9657s,@EXEEXT@,$EXEEXT,;t t
9658s,@OBJEXT@,$OBJEXT,;t t
9659s,@DEPDIR@,$DEPDIR,;t t
9660s,@am__include@,$am__include,;t t
9661s,@am__quote@,$am__quote,;t t
9662s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9663s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9664s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9665s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9666s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9667s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9668s,@RANLIB@,$RANLIB,;t t
9669s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9670s,@CC@,$CC,;t t
9671s,@CFLAGS@,$CFLAGS,;t t
9672s,@ac_ct_CC@,$ac_ct_CC,;t t
9673s,@CCDEPMODE@,$CCDEPMODE,;t t
9674s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9675s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9676s,@CPP@,$CPP,;t t
9677s,@EGREP@,$EGREP,;t t
9678s,@DEBUG@,$DEBUG,;t t
9679s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
9680s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
9681s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
9682s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
9683s,@DOXYGEN@,$DOXYGEN,;t t
9684s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
9685s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
9686s,@GPROF@,$GPROF,;t t
9687s,@PKG_CONFIG@,$PKG_CONFIG,;t t
9688s,@MSBITFIELDS@,$MSBITFIELDS,;t t
9689s,@GTK2_LIBS@,$GTK2_LIBS,;t t
9690s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
9691s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
9692s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
9693s,@CURL_LIBS@,$CURL_LIBS,;t t
9694s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
9695s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
9696s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
9697s,@LIBOBJS@,$LIBOBJS,;t t
9698s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9699CEOF
9700
9701_ACEOF
9702
9703  cat >>$CONFIG_STATUS <<\_ACEOF
9704  # Split the substitutions into bite-sized pieces for seds with
9705  # small command number limits, like on Digital OSF/1 and HP-UX.
9706  ac_max_sed_lines=48
9707  ac_sed_frag=1 # Number of current file.
9708  ac_beg=1 # First line for current file.
9709  ac_end=$ac_max_sed_lines # Line after last line for current file.
9710  ac_more_lines=:
9711  ac_sed_cmds=
9712  while $ac_more_lines; do
9713    if test $ac_beg -gt 1; then
9714      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9715    else
9716      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9717    fi
9718    if test ! -s $tmp/subs.frag; then
9719      ac_more_lines=false
9720    else
9721      # The purpose of the label and of the branching condition is to
9722      # speed up the sed processing (if there are no `@' at all, there
9723      # is no need to browse any of the substitutions).
9724      # These are the two extra sed commands mentioned above.
9725      (echo ':t
9726  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9727      if test -z "$ac_sed_cmds"; then
9728        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9729      else
9730        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9731      fi
9732      ac_sed_frag=`expr $ac_sed_frag + 1`
9733      ac_beg=$ac_end
9734      ac_end=`expr $ac_end + $ac_max_sed_lines`
9735    fi
9736  done
9737  if test -z "$ac_sed_cmds"; then
9738    ac_sed_cmds=cat
9739  fi
9740fi # test -n "$CONFIG_FILES"
9741
9742_ACEOF
9743cat >>$CONFIG_STATUS <<\_ACEOF
9744for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9745  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9746  case $ac_file in
9747  - | *:- | *:-:* ) # input from stdin
9748        cat >$tmp/stdin
9749        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9750        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9751  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9752        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9753  * )   ac_file_in=$ac_file.in ;;
9754  esac
9755
9756  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9757  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9758$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9759         X"$ac_file" : 'X\(//\)[^/]' \| \
9760         X"$ac_file" : 'X\(//\)$' \| \
9761         X"$ac_file" : 'X\(/\)' \| \
9762         .     : '\(.\)' 2>/dev/null ||
9763echo X"$ac_file" |
9764    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9765          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9766          /^X\(\/\/\)$/{ s//\1/; q; }
9767          /^X\(\/\).*/{ s//\1/; q; }
9768          s/.*/./; q'`
9769  { if $as_mkdir_p; then
9770    mkdir -p "$ac_dir"
9771  else
9772    as_dir="$ac_dir"
9773    as_dirs=
9774    while test ! -d "$as_dir"; do
9775      as_dirs="$as_dir $as_dirs"
9776      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9777$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9778         X"$as_dir" : 'X\(//\)[^/]' \| \
9779         X"$as_dir" : 'X\(//\)$' \| \
9780         X"$as_dir" : 'X\(/\)' \| \
9781         .     : '\(.\)' 2>/dev/null ||
9782echo X"$as_dir" |
9783    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9784          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9785          /^X\(\/\/\)$/{ s//\1/; q; }
9786          /^X\(\/\).*/{ s//\1/; q; }
9787          s/.*/./; q'`
9788    done
9789    test ! -n "$as_dirs" || mkdir $as_dirs
9790  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9791echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9792   { (exit 1); exit 1; }; }; }
9793
9794  ac_builddir=.
9795
9796if test "$ac_dir" != .; then
9797  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9798  # A "../" for each directory in $ac_dir_suffix.
9799  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9800else
9801  ac_dir_suffix= ac_top_builddir=
9802fi
9803
9804case $srcdir in
9805  .)  # No --srcdir option.  We are building in place.
9806    ac_srcdir=.
9807    if test -z "$ac_top_builddir"; then
9808       ac_top_srcdir=.
9809    else
9810       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9811    fi ;;
9812  [\\/]* | ?:[\\/]* )  # Absolute path.
9813    ac_srcdir=$srcdir$ac_dir_suffix;
9814    ac_top_srcdir=$srcdir ;;
9815  *) # Relative path.
9816    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9817    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9818esac
9819
9820# Do not use `cd foo && pwd` to compute absolute paths, because
9821# the directories may not exist.
9822case `pwd` in
9823.) ac_abs_builddir="$ac_dir";;
9824*)
9825  case "$ac_dir" in
9826  .) ac_abs_builddir=`pwd`;;
9827  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9828  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9829  esac;;
9830esac
9831case $ac_abs_builddir in
9832.) ac_abs_top_builddir=${ac_top_builddir}.;;
9833*)
9834  case ${ac_top_builddir}. in
9835  .) ac_abs_top_builddir=$ac_abs_builddir;;
9836  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9837  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9838  esac;;
9839esac
9840case $ac_abs_builddir in
9841.) ac_abs_srcdir=$ac_srcdir;;
9842*)
9843  case $ac_srcdir in
9844  .) ac_abs_srcdir=$ac_abs_builddir;;
9845  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9846  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9847  esac;;
9848esac
9849case $ac_abs_builddir in
9850.) ac_abs_top_srcdir=$ac_top_srcdir;;
9851*)
9852  case $ac_top_srcdir in
9853  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9854  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9855  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9856  esac;;
9857esac
9858
9859
9860  case $INSTALL in
9861  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9862  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9863  esac
9864
9865  if test x"$ac_file" != x-; then
9866    { echo "$as_me:$LINENO: creating $ac_file" >&5
9867echo "$as_me: creating $ac_file" >&6;}
9868    rm -f "$ac_file"
9869  fi
9870  # Let's still pretend it is `configure' which instantiates (i.e., don't
9871  # use $as_me), people would be surprised to read:
9872  #    /* config.h.  Generated by config.status.  */
9873  if test x"$ac_file" = x-; then
9874    configure_input=
9875  else
9876    configure_input="$ac_file.  "
9877  fi
9878  configure_input=$configure_input"Generated from `echo $ac_file_in |
9879                                     sed 's,.*/,,'` by configure."
9880
9881  # First look for the input files in the build tree, otherwise in the
9882  # src tree.
9883  ac_file_inputs=`IFS=:
9884    for f in $ac_file_in; do
9885      case $f in
9886      -) echo $tmp/stdin ;;
9887      [\\/$]*)
9888         # Absolute (can't be DOS-style, as IFS=:)
9889         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9890echo "$as_me: error: cannot find input file: $f" >&2;}
9891   { (exit 1); exit 1; }; }
9892         echo "$f";;
9893      *) # Relative
9894         if test -f "$f"; then
9895           # Build tree
9896           echo "$f"
9897         elif test -f "$srcdir/$f"; then
9898           # Source tree
9899           echo "$srcdir/$f"
9900         else
9901           # /dev/null tree
9902           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9903echo "$as_me: error: cannot find input file: $f" >&2;}
9904   { (exit 1); exit 1; }; }
9905         fi;;
9906      esac
9907    done` || { (exit 1); exit 1; }
9908_ACEOF
9909cat >>$CONFIG_STATUS <<_ACEOF
9910  sed "$ac_vpsub
9911$extrasub
9912_ACEOF
9913cat >>$CONFIG_STATUS <<\_ACEOF
9914:t
9915/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9916s,@configure_input@,$configure_input,;t t
9917s,@srcdir@,$ac_srcdir,;t t
9918s,@abs_srcdir@,$ac_abs_srcdir,;t t
9919s,@top_srcdir@,$ac_top_srcdir,;t t
9920s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9921s,@builddir@,$ac_builddir,;t t
9922s,@abs_builddir@,$ac_abs_builddir,;t t
9923s,@top_builddir@,$ac_top_builddir,;t t
9924s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9925s,@INSTALL@,$ac_INSTALL,;t t
9926" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9927  rm -f $tmp/stdin
9928  if test x"$ac_file" != x-; then
9929    mv $tmp/out $ac_file
9930  else
9931    cat $tmp/out
9932    rm -f $tmp/out
9933  fi
9934
9935done
9936_ACEOF
9937cat >>$CONFIG_STATUS <<\_ACEOF
9938
9939#
9940# CONFIG_HEADER section.
9941#
9942
9943# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9944# NAME is the cpp macro being defined and VALUE is the value it is being given.
9945#
9946# ac_d sets the value in "#define NAME VALUE" lines.
9947ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9948ac_dB='[         ].*$,\1#\2'
9949ac_dC=' '
9950ac_dD=',;t'
9951# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9952ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9953ac_uB='$,\1#\2define\3'
9954ac_uC=' '
9955ac_uD=',;t'
9956
9957for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9958  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9959  case $ac_file in
9960  - | *:- | *:-:* ) # input from stdin
9961        cat >$tmp/stdin
9962        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9963        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9964  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9965        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9966  * )   ac_file_in=$ac_file.in ;;
9967  esac
9968
9969  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9970echo "$as_me: creating $ac_file" >&6;}
9971
9972  # First look for the input files in the build tree, otherwise in the
9973  # src tree.
9974  ac_file_inputs=`IFS=:
9975    for f in $ac_file_in; do
9976      case $f in
9977      -) echo $tmp/stdin ;;
9978      [\\/$]*)
9979         # Absolute (can't be DOS-style, as IFS=:)
9980         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9981echo "$as_me: error: cannot find input file: $f" >&2;}
9982   { (exit 1); exit 1; }; }
9983         # Do quote $f, to prevent DOS paths from being IFS'd.
9984         echo "$f";;
9985      *) # Relative
9986         if test -f "$f"; then
9987           # Build tree
9988           echo "$f"
9989         elif test -f "$srcdir/$f"; then
9990           # Source tree
9991           echo "$srcdir/$f"
9992         else
9993           # /dev/null tree
9994           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9995echo "$as_me: error: cannot find input file: $f" >&2;}
9996   { (exit 1); exit 1; }; }
9997         fi;;
9998      esac
9999    done` || { (exit 1); exit 1; }
10000  # Remove the trailing spaces.
10001  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10002
10003_ACEOF
10004
10005# Transform confdefs.h into two sed scripts, `conftest.defines' and
10006# `conftest.undefs', that substitutes the proper values into
10007# config.h.in to produce config.h.  The first handles `#define'
10008# templates, and the second `#undef' templates.
10009# And first: Protect against being on the right side of a sed subst in
10010# config.status.  Protect against being in an unquoted here document
10011# in config.status.
10012rm -f conftest.defines conftest.undefs
10013# Using a here document instead of a string reduces the quoting nightmare.
10014# Putting comments in sed scripts is not portable.
10015#
10016# `end' is used to avoid that the second main sed command (meant for
10017# 0-ary CPP macros) applies to n-ary macro definitions.
10018# See the Autoconf documentation for `clear'.
10019cat >confdef2sed.sed <<\_ACEOF
10020s/[\\&,]/\\&/g
10021s,[\\$`],\\&,g
10022t clear
10023: clear
10024s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10025t end
10026s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10027: end
10028_ACEOF
10029# If some macros were called several times there might be several times
10030# the same #defines, which is useless.  Nevertheless, we may not want to
10031# sort them, since we want the *last* AC-DEFINE to be honored.
10032uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10033sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10034rm -f confdef2sed.sed
10035
10036# This sed command replaces #undef with comments.  This is necessary, for
10037# example, in the case of _POSIX_SOURCE, which is predefined and required
10038# on some systems where configure will not decide to define it.
10039cat >>conftest.undefs <<\_ACEOF
10040s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10041_ACEOF
10042
10043# Break up conftest.defines because some shells have a limit on the size
10044# of here documents, and old seds have small limits too (100 cmds).
10045echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10046echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10047echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10048echo '  :' >>$CONFIG_STATUS
10049rm -f conftest.tail
10050while grep . conftest.defines >/dev/null
10051do
10052  # Write a limited-size here document to $tmp/defines.sed.
10053  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10054  # Speed up: don't consider the non `#define' lines.
10055  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10056  # Work around the forget-to-reset-the-flag bug.
10057  echo 't clr' >>$CONFIG_STATUS
10058  echo ': clr' >>$CONFIG_STATUS
10059  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10060  echo 'CEOF
10061  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10062  rm -f $tmp/in
10063  mv $tmp/out $tmp/in
10064' >>$CONFIG_STATUS
10065  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10066  rm -f conftest.defines
10067  mv conftest.tail conftest.defines
10068done
10069rm -f conftest.defines
10070echo '  fi # grep' >>$CONFIG_STATUS
10071echo >>$CONFIG_STATUS
10072
10073# Break up conftest.undefs because some shells have a limit on the size
10074# of here documents, and old seds have small limits too (100 cmds).
10075echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10076rm -f conftest.tail
10077while grep . conftest.undefs >/dev/null
10078do
10079  # Write a limited-size here document to $tmp/undefs.sed.
10080  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10081  # Speed up: don't consider the non `#undef'
10082  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10083  # Work around the forget-to-reset-the-flag bug.
10084  echo 't clr' >>$CONFIG_STATUS
10085  echo ': clr' >>$CONFIG_STATUS
10086  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10087  echo 'CEOF
10088  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10089  rm -f $tmp/in
10090  mv $tmp/out $tmp/in
10091' >>$CONFIG_STATUS
10092  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10093  rm -f conftest.undefs
10094  mv conftest.tail conftest.undefs
10095done
10096rm -f conftest.undefs
10097
10098cat >>$CONFIG_STATUS <<\_ACEOF
10099  # Let's still pretend it is `configure' which instantiates (i.e., don't
10100  # use $as_me), people would be surprised to read:
10101  #    /* config.h.  Generated by config.status.  */
10102  if test x"$ac_file" = x-; then
10103    echo "/* Generated by configure.  */" >$tmp/config.h
10104  else
10105    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10106  fi
10107  cat $tmp/in >>$tmp/config.h
10108  rm -f $tmp/in
10109  if test x"$ac_file" != x-; then
10110    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10111      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10112echo "$as_me: $ac_file is unchanged" >&6;}
10113    else
10114      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10115$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10116         X"$ac_file" : 'X\(//\)[^/]' \| \
10117         X"$ac_file" : 'X\(//\)$' \| \
10118         X"$ac_file" : 'X\(/\)' \| \
10119         .     : '\(.\)' 2>/dev/null ||
10120echo X"$ac_file" |
10121    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10122          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10123          /^X\(\/\/\)$/{ s//\1/; q; }
10124          /^X\(\/\).*/{ s//\1/; q; }
10125          s/.*/./; q'`
10126      { if $as_mkdir_p; then
10127    mkdir -p "$ac_dir"
10128  else
10129    as_dir="$ac_dir"
10130    as_dirs=
10131    while test ! -d "$as_dir"; do
10132      as_dirs="$as_dir $as_dirs"
10133      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10134$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10135         X"$as_dir" : 'X\(//\)[^/]' \| \
10136         X"$as_dir" : 'X\(//\)$' \| \
10137         X"$as_dir" : 'X\(/\)' \| \
10138         .     : '\(.\)' 2>/dev/null ||
10139echo X"$as_dir" |
10140    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10141          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10142          /^X\(\/\/\)$/{ s//\1/; q; }
10143          /^X\(\/\).*/{ s//\1/; q; }
10144          s/.*/./; q'`
10145    done
10146    test ! -n "$as_dirs" || mkdir $as_dirs
10147  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10148echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10149   { (exit 1); exit 1; }; }; }
10150
10151      rm -f $ac_file
10152      mv $tmp/config.h $ac_file
10153    fi
10154  else
10155    cat $tmp/config.h
10156    rm -f $tmp/config.h
10157  fi
10158# Compute $ac_file's index in $config_headers.
10159_am_stamp_count=1
10160for _am_header in $config_headers :; do
10161  case $_am_header in
10162    $ac_file | $ac_file:* )
10163      break ;;
10164    * )
10165      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10166  esac
10167done
10168echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10169$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10170         X$ac_file : 'X\(//\)[^/]' \| \
10171         X$ac_file : 'X\(//\)$' \| \
10172         X$ac_file : 'X\(/\)' \| \
10173         .     : '\(.\)' 2>/dev/null ||
10174echo X$ac_file |
10175    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10176          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10177          /^X\(\/\/\)$/{ s//\1/; q; }
10178          /^X\(\/\).*/{ s//\1/; q; }
10179          s/.*/./; q'`/stamp-h$_am_stamp_count
10180done
10181_ACEOF
10182cat >>$CONFIG_STATUS <<\_ACEOF
10183
10184#
10185# CONFIG_COMMANDS section.
10186#
10187for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10188  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10189  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10190  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10191$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10192         X"$ac_dest" : 'X\(//\)[^/]' \| \
10193         X"$ac_dest" : 'X\(//\)$' \| \
10194         X"$ac_dest" : 'X\(/\)' \| \
10195         .     : '\(.\)' 2>/dev/null ||
10196echo X"$ac_dest" |
10197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10198          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10199          /^X\(\/\/\)$/{ s//\1/; q; }
10200          /^X\(\/\).*/{ s//\1/; q; }
10201          s/.*/./; q'`
10202  { if $as_mkdir_p; then
10203    mkdir -p "$ac_dir"
10204  else
10205    as_dir="$ac_dir"
10206    as_dirs=
10207    while test ! -d "$as_dir"; do
10208      as_dirs="$as_dir $as_dirs"
10209      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10210$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10211         X"$as_dir" : 'X\(//\)[^/]' \| \
10212         X"$as_dir" : 'X\(//\)$' \| \
10213         X"$as_dir" : 'X\(/\)' \| \
10214         .     : '\(.\)' 2>/dev/null ||
10215echo X"$as_dir" |
10216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10217          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10218          /^X\(\/\/\)$/{ s//\1/; q; }
10219          /^X\(\/\).*/{ s//\1/; q; }
10220          s/.*/./; q'`
10221    done
10222    test ! -n "$as_dirs" || mkdir $as_dirs
10223  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10224echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10225   { (exit 1); exit 1; }; }; }
10226
10227  ac_builddir=.
10228
10229if test "$ac_dir" != .; then
10230  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10231  # A "../" for each directory in $ac_dir_suffix.
10232  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10233else
10234  ac_dir_suffix= ac_top_builddir=
10235fi
10236
10237case $srcdir in
10238  .)  # No --srcdir option.  We are building in place.
10239    ac_srcdir=.
10240    if test -z "$ac_top_builddir"; then
10241       ac_top_srcdir=.
10242    else
10243       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10244    fi ;;
10245  [\\/]* | ?:[\\/]* )  # Absolute path.
10246    ac_srcdir=$srcdir$ac_dir_suffix;
10247    ac_top_srcdir=$srcdir ;;
10248  *) # Relative path.
10249    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10250    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10251esac
10252
10253# Do not use `cd foo && pwd` to compute absolute paths, because
10254# the directories may not exist.
10255case `pwd` in
10256.) ac_abs_builddir="$ac_dir";;
10257*)
10258  case "$ac_dir" in
10259  .) ac_abs_builddir=`pwd`;;
10260  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10261  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10262  esac;;
10263esac
10264case $ac_abs_builddir in
10265.) ac_abs_top_builddir=${ac_top_builddir}.;;
10266*)
10267  case ${ac_top_builddir}. in
10268  .) ac_abs_top_builddir=$ac_abs_builddir;;
10269  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10270  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10271  esac;;
10272esac
10273case $ac_abs_builddir in
10274.) ac_abs_srcdir=$ac_srcdir;;
10275*)
10276  case $ac_srcdir in
10277  .) ac_abs_srcdir=$ac_abs_builddir;;
10278  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10279  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10280  esac;;
10281esac
10282case $ac_abs_builddir in
10283.) ac_abs_top_srcdir=$ac_top_srcdir;;
10284*)
10285  case $ac_top_srcdir in
10286  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10287  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10288  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10289  esac;;
10290esac
10291
10292
10293  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10294echo "$as_me: executing $ac_dest commands" >&6;}
10295  case $ac_dest in
10296    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10297  # Strip MF so we end up with the name of the file.
10298  mf=`echo "$mf" | sed -e 's/:.*$//'`
10299  # Check whether this is an Automake generated Makefile or not.
10300  # We used to match only the files named `Makefile.in', but
10301  # some people rename them; so instead we look at the file content.
10302  # Grep'ing the first line is not enough: some people post-process
10303  # each Makefile.in and add a new line on top of each file to say so.
10304  # So let's grep whole file.
10305  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10306    dirpart=`(dirname "$mf") 2>/dev/null ||
10307$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10308         X"$mf" : 'X\(//\)[^/]' \| \
10309         X"$mf" : 'X\(//\)$' \| \
10310         X"$mf" : 'X\(/\)' \| \
10311         .     : '\(.\)' 2>/dev/null ||
10312echo X"$mf" |
10313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10314          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10315          /^X\(\/\/\)$/{ s//\1/; q; }
10316          /^X\(\/\).*/{ s//\1/; q; }
10317          s/.*/./; q'`
10318  else
10319    continue
10320  fi
10321  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10322  # Extract the definition of DEP_FILES from the Makefile without
10323  # running `make'.
10324  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10325  test -z "$DEPDIR" && continue
10326  # When using ansi2knr, U may be empty or an underscore; expand it
10327  U=`sed -n -e '/^U = / s///p' < "$mf"`
10328  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10329  # We invoke sed twice because it is the simplest approach to
10330  # changing $(DEPDIR) to its actual value in the expansion.
10331  for file in `sed -n -e '
10332    /^DEP_FILES = .*\\\\$/ {
10333      s/^DEP_FILES = //
10334      :loop
10335        s/\\\\$//
10336        p
10337        n
10338        /\\\\$/ b loop
10339      p
10340    }
10341    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10342       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10343    # Make sure the directory exists.
10344    test -f "$dirpart/$file" && continue
10345    fdir=`(dirname "$file") 2>/dev/null ||
10346$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10347         X"$file" : 'X\(//\)[^/]' \| \
10348         X"$file" : 'X\(//\)$' \| \
10349         X"$file" : 'X\(/\)' \| \
10350         .     : '\(.\)' 2>/dev/null ||
10351echo X"$file" |
10352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10353          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10354          /^X\(\/\/\)$/{ s//\1/; q; }
10355          /^X\(\/\).*/{ s//\1/; q; }
10356          s/.*/./; q'`
10357    { if $as_mkdir_p; then
10358    mkdir -p $dirpart/$fdir
10359  else
10360    as_dir=$dirpart/$fdir
10361    as_dirs=
10362    while test ! -d "$as_dir"; do
10363      as_dirs="$as_dir $as_dirs"
10364      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10365$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10366         X"$as_dir" : 'X\(//\)[^/]' \| \
10367         X"$as_dir" : 'X\(//\)$' \| \
10368         X"$as_dir" : 'X\(/\)' \| \
10369         .     : '\(.\)' 2>/dev/null ||
10370echo X"$as_dir" |
10371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10372          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10373          /^X\(\/\/\)$/{ s//\1/; q; }
10374          /^X\(\/\).*/{ s//\1/; q; }
10375          s/.*/./; q'`
10376    done
10377    test ! -n "$as_dirs" || mkdir $as_dirs
10378  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10379echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10380   { (exit 1); exit 1; }; }; }
10381
10382    # echo "creating $dirpart/$file"
10383    echo '# dummy' > "$dirpart/$file"
10384  done
10385done
10386 ;;
10387  esac
10388done
10389_ACEOF
10390
10391cat >>$CONFIG_STATUS <<\_ACEOF
10392
10393{ (exit 0); exit 0; }
10394_ACEOF
10395chmod +x $CONFIG_STATUS
10396ac_clean_files=$ac_clean_files_save
10397
10398
10399# configure is writing to config.log, and then calls config.status.
10400# config.status does its own redirection, appending to config.log.
10401# Unfortunately, on DOS this fails, as config.log is still kept open
10402# by configure, so config.status won't be able to write to it; its
10403# output is simply discarded.  So we exec the FD to /dev/null,
10404# effectively closing config.log, so it can be properly (re)opened and
10405# appended to by config.status.  When coming back to configure, we
10406# need to make the FD available again.
10407if test "$no_create" != yes; then
10408  ac_cs_success=:
10409  ac_config_status_args=
10410  test "$silent" = yes &&
10411    ac_config_status_args="$ac_config_status_args --quiet"
10412  exec 5>/dev/null
10413  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10414  exec 5>>config.log
10415  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10416  # would make configure fail if this is the last instruction.
10417  $ac_cs_success || { (exit 1); exit 1; }
10418fi
10419
Note: See TracBrowser for help on using the repository browser.