Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5236

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

orxonox/trunk: typo in configure.ac

  • Property svn:executable set to *
File size: 337.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.3.1_alpha.
4#
5# Report bugs to <orxonox-dev at mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.3.1_alpha'
273PACKAGE_STRING='orxonox 0.3.1_alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.3.1_alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
871  --disable-gtk           Prevents GTK from being loaded
872  --disable-curl          Prevents libcURL from being loaded
873  --enable-profile        builds orxonox with profiling support
874  --enable-efence         builds orxonox with efence support
875  --enable-documentation  also builds the sDocumentation while make from
876                          srcdir
877
878Optional Packages:
879  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
881  --with-shared-lib-path  Tells the executable, where to look for the shared
882                          libraries.
883  --with-sub-projects     also builds the subProjects while make from srcdir
884
885Some influential environment variables:
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CC          C compiler command
893  CFLAGS      C compiler flags
894  CPP         C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899Report bugs to <orxonox-dev at mail.datacore.ch>.
900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904  # If there are subdirs, report their specific --help.
905  ac_popdir=`pwd`
906  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907    test -d $ac_dir || continue
908    ac_builddir=.
909
910if test "$ac_dir" != .; then
911  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912  # A "../" for each directory in $ac_dir_suffix.
913  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915  ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919  .)  # No --srcdir option.  We are building in place.
920    ac_srcdir=.
921    if test -z "$ac_top_builddir"; then
922       ac_top_srcdir=.
923    else
924       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925    fi ;;
926  [\\/]* | ?:[\\/]* )  # Absolute path.
927    ac_srcdir=$srcdir$ac_dir_suffix;
928    ac_top_srcdir=$srcdir ;;
929  *) # Relative path.
930    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939  case "$ac_dir" in
940  .) ac_abs_builddir=`pwd`;;
941  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942  *) ac_abs_builddir=`pwd`/"$ac_dir";;
943  esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948  case ${ac_top_builddir}. in
949  .) ac_abs_top_builddir=$ac_abs_builddir;;
950  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957  case $ac_srcdir in
958  .) ac_abs_srcdir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966  case $ac_top_srcdir in
967  .) ac_abs_top_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970  esac;;
971esac
972
973    cd $ac_dir
974    # Check for guested configure; otherwise get Cygnus style configure.
975    if test -f $ac_srcdir/configure.gnu; then
976      echo
977      $SHELL $ac_srcdir/configure.gnu  --help=recursive
978    elif test -f $ac_srcdir/configure; then
979      echo
980      $SHELL $ac_srcdir/configure  --help=recursive
981    elif test -f $ac_srcdir/configure.ac ||
982           test -f $ac_srcdir/configure.in; then
983      echo
984      $ac_configure --help
985    else
986      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987    fi
988    cd $ac_popdir
989  done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994  cat <<\_ACEOF
995orxonox configure 0.3.1_alpha
996generated by GNU Autoconf 2.59
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002  exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
1009It was created by orxonox $as_me 0.3.1_alpha, which was
1010generated by GNU Autoconf 2.59.  Invocation command line was
1011
1012  $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1029
1030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043  IFS=$as_save_IFS
1044  test -z "$as_dir" && as_dir=.
1045  echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072  for ac_arg
1073  do
1074    case $ac_arg in
1075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077    | -silent | --silent | --silen | --sile | --sil)
1078      continue ;;
1079    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081    esac
1082    case $ac_pass in
1083    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084    2)
1085      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086      if test $ac_must_keep_next = true; then
1087        ac_must_keep_next=false # Got value, back to normal.
1088      else
1089        case $ac_arg in
1090          *=* | --config-cache | -C | -disable-* | --disable-* \
1091          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093          | -with-* | --with-* | -without-* | --without-* | --x)
1094            case "$ac_configure_args0 " in
1095              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096            esac
1097            ;;
1098          -* ) ac_must_keep_next=true ;;
1099        esac
1100      fi
1101      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102      # Get rid of the leading space.
1103      ac_sep=" "
1104      ;;
1105    esac
1106  done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log.  We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117  # Save into config.log some information that might help in debugging.
1118  {
1119    echo
1120
1121    cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126    echo
1127    # The following way of writing the cache mishandles newlines in values,
1128{
1129  (set) 2>&1 |
1130    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131    *ac_space=\ *)
1132      sed -n \
1133        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135      ;;
1136    *)
1137      sed -n \
1138        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139      ;;
1140    esac;
1141}
1142    echo
1143
1144    cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149    echo
1150    for ac_var in $ac_subst_vars
1151    do
1152      eval ac_val=$`echo $ac_var`
1153      echo "$ac_var='"'"'$ac_val'"'"'"
1154    done | sort
1155    echo
1156
1157    if test -n "$ac_subst_files"; then
1158      cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163      echo
1164      for ac_var in $ac_subst_files
1165      do
1166        eval ac_val=$`echo $ac_var`
1167        echo "$ac_var='"'"'$ac_val'"'"'"
1168      done | sort
1169      echo
1170    fi
1171
1172    if test -s confdefs.h; then
1173      cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178      echo
1179      sed "/^$/d" confdefs.h | sort
1180      echo
1181    fi
1182    test "$ac_signal" != 0 &&
1183      echo "$as_me: caught signal $ac_signal"
1184    echo "$as_me: exit $exit_status"
1185  } >&5
1186  rm -f core *.core &&
1187  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188    exit $exit_status
1189     ' 0
1190for ac_signal in 1 2 13 15; do
1191  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230  if test "x$prefix" != xNONE; then
1231    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232  else
1233    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234  fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237  if test -r "$ac_site_file"; then
1238    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240    sed 's/^/| /' "$ac_site_file" >&5
1241    . "$ac_site_file"
1242  fi
1243done
1244
1245if test -r "$cache_file"; then
1246  # Some versions of bash will fail to source /dev/null (special
1247  # files actually), so we avoid doing that.
1248  if test -f "$cache_file"; then
1249    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251    case $cache_file in
1252      [\\/]* | ?:[\\/]* ) . $cache_file;;
1253      *)                      . ./$cache_file;;
1254    esac
1255  fi
1256else
1257  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259  >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268  eval ac_new_set=\$ac_env_${ac_var}_set
1269  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270  eval ac_new_val="\$ac_env_${ac_var}_value"
1271  case $ac_old_set,$ac_new_set in
1272    set,)
1273      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275      ac_cache_corrupted=: ;;
1276    ,set)
1277      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279      ac_cache_corrupted=: ;;
1280    ,);;
1281    *)
1282      if test "x$ac_old_val" != "x$ac_new_val"; then
1283        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286echo "$as_me:   former value:  $ac_old_val" >&2;}
1287        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288echo "$as_me:   current value: $ac_new_val" >&2;}
1289        ac_cache_corrupted=:
1290      fi;;
1291  esac
1292  # Pass precious variables to config.status.
1293  if test "$ac_new_set" = set; then
1294    case $ac_new_val in
1295    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297    *) ac_arg=$ac_var=$ac_new_val ;;
1298    esac
1299    case " $ac_configure_args " in
1300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1301      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302    esac
1303  fi
1304done
1305if $ac_cache_corrupted; then
1306  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346## Detect the canonical host and target build environment.
1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372# Make sure we can run config.sub.
1373$ac_config_sub sun4 >/dev/null 2>&1 ||
1374  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1375echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1376   { (exit 1); exit 1; }; }
1377
1378echo "$as_me:$LINENO: checking build system type" >&5
1379echo $ECHO_N "checking build system type... $ECHO_C" >&6
1380if test "${ac_cv_build+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_build_alias=$build_alias
1384test -z "$ac_cv_build_alias" &&
1385  ac_cv_build_alias=`$ac_config_guess`
1386test -z "$ac_cv_build_alias" &&
1387  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1389   { (exit 1); exit 1; }; }
1390ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1391  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1393   { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1397echo "${ECHO_T}$ac_cv_build" >&6
1398build=$ac_cv_build
1399build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking host system type" >&5
1405echo $ECHO_N "checking host system type... $ECHO_C" >&6
1406if test "${ac_cv_host+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  ac_cv_host_alias=$host_alias
1410test -z "$ac_cv_host_alias" &&
1411  ac_cv_host_alias=$ac_cv_build_alias
1412ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1413  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1415   { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1419echo "${ECHO_T}$ac_cv_host" >&6
1420host=$ac_cv_host
1421host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426echo "$as_me:$LINENO: checking target system type" >&5
1427echo $ECHO_N "checking target system type... $ECHO_C" >&6
1428if test "${ac_cv_target+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  ac_cv_target_alias=$target_alias
1432test "x$ac_cv_target_alias" = "x" &&
1433  ac_cv_target_alias=$ac_cv_host_alias
1434ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1435  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1436echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1437   { (exit 1); exit 1; }; }
1438
1439fi
1440echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1441echo "${ECHO_T}$ac_cv_target" >&6
1442target=$ac_cv_target
1443target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448# The aliases save the names the user supplied, while $host etc.
1449# will get canonicalized.
1450test -n "$target_alias" &&
1451  test "$program_prefix$program_suffix$program_transform_name" = \
1452    NONENONEs,x,x, &&
1453  program_prefix=${target_alias}-
1454
1455am__api_version="1.8"
1456# Find a good install program.  We prefer a C program (faster),
1457# so one script is as good as another.  But avoid the broken or
1458# incompatible versions:
1459# SysV /etc/install, /usr/sbin/install
1460# SunOS /usr/etc/install
1461# IRIX /sbin/install
1462# AIX /bin/install
1463# AmigaOS /C/install, which installs bootblocks on floppy discs
1464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467# OS/2's system install, which has a completely different semantic
1468# ./install, which can be erroneously created by make from ./install.sh.
1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471if test -z "$INSTALL"; then
1472if test "${ac_cv_path_install+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  # Account for people who put trailing slashes in PATH elements.
1481case $as_dir/ in
1482  ./ | .// | /cC/* | \
1483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485  /usr/ucb/* ) ;;
1486  *)
1487    # OSF1 and SCO ODT 3.0 have their own names for install.
1488    # Don't use installbsd from OSF since it installs stuff as root
1489    # by default.
1490    for ac_prog in ginstall scoinst install; do
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493          if test $ac_prog = install &&
1494            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # AIX install.  It has an incompatible calling convention.
1496            :
1497          elif test $ac_prog = install &&
1498            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499            # program-specific install script used by HP pwplus--don't use.
1500            :
1501          else
1502            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503            break 3
1504          fi
1505        fi
1506      done
1507    done
1508    ;;
1509esac
1510done
1511
1512
1513fi
1514  if test "${ac_cv_path_install+set}" = set; then
1515    INSTALL=$ac_cv_path_install
1516  else
1517    # As a last resort, use the slow shell script.  We don't cache a
1518    # path for INSTALL within a source directory, because that will
1519    # break other packages using the cache if that directory is
1520    # removed, or if the path is relative.
1521    INSTALL=$ac_install_sh
1522  fi
1523fi
1524echo "$as_me:$LINENO: result: $INSTALL" >&5
1525echo "${ECHO_T}$INSTALL" >&6
1526
1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528# It thinks the first close brace ends the variable substitution.
1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530
1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532
1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534
1535echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537# Just in case
1538sleep 1
1539echo timestamp > conftest.file
1540# Do `set' in a subshell so we don't clobber the current shell's
1541# arguments.  Must try -L first in case configure is actually a
1542# symlink; some systems play weird games with the mod time of symlinks
1543# (eg FreeBSD returns the mod time of the symlink's containing
1544# directory).
1545if (
1546   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547   if test "$*" = "X"; then
1548      # -L didn't work.
1549      set X `ls -t $srcdir/configure conftest.file`
1550   fi
1551   rm -f conftest.file
1552   if test "$*" != "X $srcdir/configure conftest.file" \
1553      && test "$*" != "X conftest.file $srcdir/configure"; then
1554
1555      # If neither matched, then we have a broken ls.  This can happen
1556      # if, for instance, CONFIG_SHELL is bash and it inherits a
1557      # broken ls alias from the environment.  This has actually
1558      # happened.  Such a system could not be considered "sane".
1559      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&5
1561echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&2;}
1563   { (exit 1); exit 1; }; }
1564   fi
1565
1566   test "$2" = conftest.file
1567   )
1568then
1569   # Ok.
1570   :
1571else
1572   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573Check your system clock" >&5
1574echo "$as_me: error: newly created file is older than distributed files!
1575Check your system clock" >&2;}
1576   { (exit 1); exit 1; }; }
1577fi
1578echo "$as_me:$LINENO: result: yes" >&5
1579echo "${ECHO_T}yes" >&6
1580test "$program_prefix" != NONE &&
1581  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582# Use a double $ so make ignores it.
1583test "$program_suffix" != NONE &&
1584  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585# Double any \ or $.  echo might interpret backslashes.
1586# By default was `s,x,x', remove it if useless.
1587cat <<\_ACEOF >conftest.sed
1588s/[\\$]/&&/g;s/;s,x,x,$//
1589_ACEOF
1590program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591rm conftest.sed
1592
1593# expand $ac_aux_dir to an absolute path
1594am_aux_dir=`cd $ac_aux_dir && pwd`
1595
1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597# Use eval to expand $SHELL
1598if eval "$MISSING --run true"; then
1599  am_missing_run="$MISSING --run "
1600else
1601  am_missing_run=
1602  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604fi
1605
1606if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1607  # Keeping the `.' argument allows $(mkdir_p) to be used without
1608  # argument.  Indeed, we sometimes output rules like
1609  #   $(mkdir_p) $(somedir)
1610  # where $(somedir) is conditionally defined.
1611  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1612  # expensive solution, as it forces Make to start a sub-shell.)
1613  mkdir_p='mkdir -p -- .'
1614else
1615  # On NextStep and OpenStep, the `mkdir' command does not
1616  # recognize any option.  It will interpret all options as
1617  # directories to create, and then abort because `.' already
1618  # exists.
1619  for d in ./-p ./--version;
1620  do
1621    test -d $d && rmdir $d
1622  done
1623  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1624  if test -f "$ac_aux_dir/mkinstalldirs"; then
1625    mkdir_p='$(mkinstalldirs)'
1626  else
1627    mkdir_p='$(install_sh) -d'
1628  fi
1629fi
1630
1631for ac_prog in gawk mawk nawk awk
1632do
1633  # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_AWK+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$AWK"; then
1641  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_AWK="$ac_prog"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657fi
1658fi
1659AWK=$ac_cv_prog_AWK
1660if test -n "$AWK"; then
1661  echo "$as_me:$LINENO: result: $AWK" >&5
1662echo "${ECHO_T}$AWK" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  test -n "$AWK" && break
1669done
1670
1671echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1672echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1673set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1674if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  cat >conftest.make <<\_ACEOF
1678all:
1679        @echo 'ac_maketemp="$(MAKE)"'
1680_ACEOF
1681# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683if test -n "$ac_maketemp"; then
1684  eval ac_cv_prog_make_${ac_make}_set=yes
1685else
1686  eval ac_cv_prog_make_${ac_make}_set=no
1687fi
1688rm -f conftest.make
1689fi
1690if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693  SET_MAKE=
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697  SET_MAKE="MAKE=${MAKE-make}"
1698fi
1699
1700rm -rf .tst 2>/dev/null
1701mkdir .tst 2>/dev/null
1702if test -d .tst; then
1703  am__leading_dot=.
1704else
1705  am__leading_dot=_
1706fi
1707rmdir .tst 2>/dev/null
1708
1709# test to see if srcdir already configured
1710if test "`cd $srcdir && pwd`" != "`pwd`" &&
1711   test -f $srcdir/config.status; then
1712  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716
1717# test whether we have cygpath
1718if test -z "$CYGPATH_W"; then
1719  if (cygpath --version) >/dev/null 2>/dev/null; then
1720    CYGPATH_W='cygpath -w'
1721  else
1722    CYGPATH_W=echo
1723  fi
1724fi
1725
1726
1727# Define the identity of the package.
1728 PACKAGE='orxonox'
1729 VERSION='0.3.1_alpha'
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741# Some tools Automake needs.
1742
1743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744
1745
1746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747
1748
1749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750
1751
1752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753
1754
1755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1756
1757
1758AMTAR=${AMTAR-"${am_missing_run}tar"}
1759
1760install_sh=${install_sh-"$am_aux_dir/install-sh"}
1761
1762# Installed binaries are usually stripped using `strip' when the user
1763# run `make install-strip'.  However `strip' might not be the right
1764# tool to use in cross-compilation environments, therefore Automake
1765# will honor the `STRIP' environment variable to overrule this program.
1766if test "$cross_compiling" != no; then
1767  if test -n "$ac_tool_prefix"; then
1768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}strip; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_STRIP+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$STRIP"; then
1776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794STRIP=$ac_cv_prog_STRIP
1795if test -n "$STRIP"; then
1796  echo "$as_me:$LINENO: result: $STRIP" >&5
1797echo "${ECHO_T}$STRIP" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_STRIP"; then
1805  ac_ct_STRIP=$STRIP
1806  # Extract the first word of "strip", so it can be a program name with args.
1807set dummy strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$ac_ct_STRIP"; then
1814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823    ac_cv_prog_ac_ct_STRIP="strip"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829
1830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1831fi
1832fi
1833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834if test -n "$ac_ct_STRIP"; then
1835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836echo "${ECHO_T}$ac_ct_STRIP" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842  STRIP=$ac_ct_STRIP
1843else
1844  STRIP="$ac_cv_prog_STRIP"
1845fi
1846
1847fi
1848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1849
1850# We need awk for the "check" target.  The system "awk" is bad on
1851# some platforms.
1852
1853
1854
1855
1856
1857          ac_config_headers="$ac_config_headers config.h"
1858
1859
1860#########################
1861## Checks for programs ##
1862#########################
1863ac_ext=cc
1864ac_cpp='$CXXCPP $CPPFLAGS'
1865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1868if test -n "$ac_tool_prefix"; then
1869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1870  do
1871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CXX+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$CXX"; then
1879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897CXX=$ac_cv_prog_CXX
1898if test -n "$CXX"; then
1899  echo "$as_me:$LINENO: result: $CXX" >&5
1900echo "${ECHO_T}$CXX" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906    test -n "$CXX" && break
1907  done
1908fi
1909if test -z "$CXX"; then
1910  ac_ct_CXX=$CXX
1911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912do
1913  # Extract the first word of "$ac_prog", so it can be a program name with args.
1914set dummy $ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_CXX"; then
1921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_CXX="$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1940if test -n "$ac_ct_CXX"; then
1941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1942echo "${ECHO_T}$ac_ct_CXX" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948  test -n "$ac_ct_CXX" && break
1949done
1950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1951
1952  CXX=$ac_ct_CXX
1953fi
1954
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C++ compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991ac_clean_files_save=$ac_clean_files
1992ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993# Try to create an executable without -o first, disregard a.out.
1994# It will help us diagnose broken compilers, and finding out an intuition
1995# of exeext.
1996echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1997echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1998ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000  (eval $ac_link_default) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; then
2004  # Find the output, starting from the most likely.  This scheme is
2005# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006# resort.
2007
2008# Be careful to initialize this variable, since it used to be cached.
2009# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010ac_cv_exeext=
2011# b.out is created by i960 compilers.
2012for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013do
2014  test -f "$ac_file" || continue
2015  case $ac_file in
2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2017        ;;
2018    conftest.$ac_ext )
2019        # This is the source file.
2020        ;;
2021    [ab].out )
2022        # We found the default executable, but exeext='' is most
2023        # certainly right.
2024        break;;
2025    *.* )
2026        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027        # FIXME: I believe we export ac_cv_exeext for Libtool,
2028        # but it would be cool to find out if it's true.  Does anybody
2029        # maintain Libtool? --akim.
2030        export ac_cv_exeext
2031        break;;
2032    * )
2033        break;;
2034  esac
2035done
2036else
2037  echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&2;}
2044   { (exit 77); exit 77; }; }
2045fi
2046
2047ac_exeext=$ac_cv_exeext
2048echo "$as_me:$LINENO: result: $ac_file" >&5
2049echo "${ECHO_T}$ac_file" >&6
2050
2051# Check the compiler produces executables we can run.  If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2054echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2055# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2056# If not cross compiling, check that we can run a simple program.
2057if test "$cross_compiling" != yes; then
2058  if { ac_try='./$ac_file'
2059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060  (eval $ac_try) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; }; then
2064    cross_compiling=no
2065  else
2066    if test "$cross_compiling" = maybe; then
2067        cross_compiling=yes
2068    else
2069        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: cannot run C++ compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076    fi
2077  fi
2078fi
2079echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6
2081
2082rm -f a.out a.exe conftest$ac_cv_exeext b.out
2083ac_clean_files=$ac_clean_files_save
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2087echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2088echo "$as_me:$LINENO: result: $cross_compiling" >&5
2089echo "${ECHO_T}$cross_compiling" >&6
2090
2091echo "$as_me:$LINENO: checking for suffix of executables" >&5
2092echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2094  (eval $ac_link) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2100# work properly (i.e., refer to `conftest.exe'), while it won't with
2101# `rm'.
2102for ac_file in conftest.exe conftest conftest.*; do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107          export ac_cv_exeext
2108          break;;
2109    * ) break;;
2110  esac
2111done
2112else
2113  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest$ac_cv_exeext
2121echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2122echo "${ECHO_T}$ac_cv_exeext" >&6
2123
2124rm -f conftest.$ac_ext
2125EXEEXT=$ac_cv_exeext
2126ac_exeext=$EXEEXT
2127echo "$as_me:$LINENO: checking for suffix of object files" >&5
2128echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2129if test "${ac_cv_objext+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147rm -f conftest.o conftest.obj
2148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149  (eval $ac_compile) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157       break;;
2158  esac
2159done
2160else
2161  echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2174echo "${ECHO_T}$ac_cv_objext" >&6
2175OBJEXT=$ac_cv_objext
2176ac_objext=$OBJEXT
2177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188
2189int
2190main ()
2191{
2192#ifndef __GNUC__
2193       choke me
2194#endif
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209         { ac_try='test -z "$ac_cxx_werror_flag"
2210                         || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216         { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_compiler_gnu=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_compiler_gnu=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2234echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2235GXX=`test $ac_compiler_gnu = yes && echo yes`
2236ac_test_CXXFLAGS=${CXXFLAGS+set}
2237ac_save_CXXFLAGS=$CXXFLAGS
2238CXXFLAGS="-g"
2239echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2240echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2241if test "${ac_cv_prog_cxx_g+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  ac_cv_prog_cxx_g=yes
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286ac_cv_prog_cxx_g=no
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2292if test "$ac_test_CXXFLAGS" = set; then
2293  CXXFLAGS=$ac_save_CXXFLAGS
2294elif test $ac_cv_prog_cxx_g = yes; then
2295  if test "$GXX" = yes; then
2296    CXXFLAGS="-g -O2"
2297  else
2298    CXXFLAGS="-g"
2299  fi
2300else
2301  if test "$GXX" = yes; then
2302    CXXFLAGS="-O2"
2303  else
2304    CXXFLAGS=
2305  fi
2306fi
2307for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  :
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358continue
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367$ac_declaration
2368int
2369main ()
2370{
2371exit (42);
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_cxx_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418DEPDIR="${am__leading_dot}deps"
2419
2420          ac_config_commands="$ac_config_commands depfiles"
2421
2422
2423am_make=${MAKE-make}
2424cat > confinc << 'END'
2425am__doit:
2426        @echo done
2427.PHONY: am__doit
2428END
2429# If we don't find an include directive, just comment out the code.
2430echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2431echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2432am__include="#"
2433am__quote=
2434_am_result=none
2435# First try GNU make style include.
2436echo "include confinc" > confmf
2437# We grep out `Entering directory' and `Leaving directory'
2438# messages which can occur if `w' ends up in MAKEFLAGS.
2439# In particular we don't look at `^make:' because GNU make might
2440# be invoked under some other name (usually "gmake"), in which
2441# case it prints its new name instead of `make'.
2442if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2443   am__include=include
2444   am__quote=
2445   _am_result=GNU
2446fi
2447# Now try BSD make style include.
2448if test "$am__include" = "#"; then
2449   echo '.include "confinc"' > confmf
2450   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2451      am__include=.include
2452      am__quote="\""
2453      _am_result=BSD
2454   fi
2455fi
2456
2457
2458echo "$as_me:$LINENO: result: $_am_result" >&5
2459echo "${ECHO_T}$_am_result" >&6
2460rm -f confinc confmf
2461
2462# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2463if test "${enable_dependency_tracking+set}" = set; then
2464  enableval="$enable_dependency_tracking"
2465
2466fi;
2467if test "x$enable_dependency_tracking" != xno; then
2468  am_depcomp="$ac_aux_dir/depcomp"
2469  AMDEPBACKSLASH='\'
2470fi
2471
2472
2473if test "x$enable_dependency_tracking" != xno; then
2474  AMDEP_TRUE=
2475  AMDEP_FALSE='#'
2476else
2477  AMDEP_TRUE='#'
2478  AMDEP_FALSE=
2479fi
2480
2481
2482
2483
2484depcc="$CXX"  am_compiler_list=
2485
2486echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2488if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2492  # We make a subdir and do the tests there.  Otherwise we can end up
2493  # making bogus files that we don't know about and never remove.  For
2494  # instance it was reported that on HP-UX the gcc test will end up
2495  # making a dummy file named `D' -- because `-MD' means `put the output
2496  # in D'.
2497  mkdir conftest.dir
2498  # Copy depcomp to subdir because otherwise we won't find it if we're
2499  # using a relative directory.
2500  cp "$am_depcomp" conftest.dir
2501  cd conftest.dir
2502  # We will build objects and dependencies in a subdirectory because
2503  # it helps to detect inapplicable dependency modes.  For instance
2504  # both Tru64's cc and ICC support -MD to output dependencies as a
2505  # side effect of compilation, but ICC will put the dependencies in
2506  # the current directory while Tru64 will put them in the object
2507  # directory.
2508  mkdir sub
2509
2510  am_cv_CXX_dependencies_compiler_type=none
2511  if test "$am_compiler_list" = ""; then
2512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2513  fi
2514  for depmode in $am_compiler_list; do
2515    # Setup a source with many dependencies, because some compilers
2516    # like to wrap large dependency lists on column 80 (with \), and
2517    # we should not choose a depcomp mode which is confused by this.
2518    #
2519    # We need to recreate these files for each test, as the compiler may
2520    # overwrite some of them when testing with obscure command lines.
2521    # This happens at least with the AIX C compiler.
2522    : > sub/conftest.c
2523    for i in 1 2 3 4 5 6; do
2524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2526      # Solaris 8's {/usr,}/bin/sh.
2527      touch sub/conftst$i.h
2528    done
2529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2530
2531    case $depmode in
2532    nosideeffect)
2533      # after this tag, mechanisms are not by side-effect, so they'll
2534      # only be used when explicitly requested
2535      if test "x$enable_dependency_tracking" = xyes; then
2536        continue
2537      else
2538        break
2539      fi
2540      ;;
2541    none) break ;;
2542    esac
2543    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2544    # mode.  It turns out that the SunPro C++ compiler does not properly
2545    # handle `-M -o', and we need to detect this.
2546    if depmode=$depmode \
2547       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2549       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2550         >/dev/null 2>conftest.err &&
2551       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2552       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2553       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2554      # icc doesn't choke on unknown options, it will just issue warnings
2555      # or remarks (even with -Werror).  So we grep stderr for any message
2556      # that says an option was ignored or not supported.
2557      # When given -MP, icc 7.0 and 7.1 complain thusly:
2558      #   icc: Command line warning: ignoring option '-M'; no argument required
2559      # The diagnosis changed in icc 8.0:
2560      #   icc: Command line remark: option '-MP' not supported
2561      if (grep 'ignoring option' conftest.err ||
2562          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2563        am_cv_CXX_dependencies_compiler_type=$depmode
2564        break
2565      fi
2566    fi
2567  done
2568
2569  cd ..
2570  rm -rf conftest.dir
2571else
2572  am_cv_CXX_dependencies_compiler_type=none
2573fi
2574
2575fi
2576echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2577echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2579
2580
2581
2582if
2583  test "x$enable_dependency_tracking" != xno \
2584  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2585  am__fastdepCXX_TRUE=
2586  am__fastdepCXX_FALSE='#'
2587else
2588  am__fastdepCXX_TRUE='#'
2589  am__fastdepCXX_FALSE=
2590fi
2591
2592
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_RANLIB+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$RANLIB"; then
2602  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620RANLIB=$ac_cv_prog_RANLIB
2621if test -n "$RANLIB"; then
2622  echo "$as_me:$LINENO: result: $RANLIB" >&5
2623echo "${ECHO_T}$RANLIB" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_RANLIB"; then
2631  ac_ct_RANLIB=$RANLIB
2632  # Extract the first word of "ranlib", so it can be a program name with args.
2633set dummy ranlib; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_RANLIB"; then
2640  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_RANLIB="ranlib"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2657fi
2658fi
2659ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2660if test -n "$ac_ct_RANLIB"; then
2661  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2662echo "${ECHO_T}$ac_ct_RANLIB" >&6
2663else
2664  echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666fi
2667
2668  RANLIB=$ac_ct_RANLIB
2669else
2670  RANLIB="$ac_cv_prog_RANLIB"
2671fi
2672
2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
2709else
2710  echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746echo "${ECHO_T}$ac_ct_CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752  CC=$ac_ct_CC
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757if test -z "$CC"; then
2758  if test -n "$ac_tool_prefix"; then
2759  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760set dummy ${ac_tool_prefix}cc; ac_word=$2
2761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776    ac_cv_prog_CC="${ac_tool_prefix}cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  echo "$as_me:$LINENO: result: $CC" >&5
2788echo "${ECHO_T}$CC" >&6
2789else
2790  echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792fi
2793
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796  ac_ct_CC=$CC
2797  # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_ac_ct_CC="cc"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2826echo "${ECHO_T}$ac_ct_CC" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832  CC=$ac_ct_CC
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837fi
2838if test -z "$CC"; then
2839  # Extract the first word of "cc", so it can be a program name with args.
2840set dummy cc; ac_word=$2
2841echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843if test "${ac_cv_prog_CC+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849  ac_prog_rejected=no
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858       ac_prog_rejected=yes
2859       continue
2860     fi
2861    ac_cv_prog_CC="cc"
2862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  echo "$as_me:$LINENO: result: $CC" >&5
2885echo "${ECHO_T}$CC" >&6
2886else
2887  echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$CC"; then
2893  if test -n "$ac_tool_prefix"; then
2894  for ac_prog in cl
2895  do
2896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900if test "${ac_cv_prog_CC+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
2924  echo "$as_me:$LINENO: result: $CC" >&5
2925echo "${ECHO_T}$CC" >&6
2926else
2927  echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929fi
2930
2931    test -n "$CC" && break
2932  done
2933fi
2934if test -z "$CC"; then
2935  ac_ct_CC=$CC
2936  for ac_prog in cl
2937do
2938  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939set dummy $ac_prog; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$ac_ct_CC"; then
2946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_CC="$ac_prog"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969  echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973  test -n "$ac_ct_CC" && break
2974done
2975
2976  CC=$ac_ct_CC
2977fi
2978
2979fi
2980
2981
2982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&5
2984echo "$as_me: error: no acceptable C compiler found in \$PATH
2985See \`config.log' for more details." >&2;}
2986   { (exit 1); exit 1; }; }
2987
2988# Provide some information about the compiler.
2989echo "$as_me:$LINENO:" \
2990     "checking for C compiler version" >&5
2991ac_compiler=`set X $ac_compile; echo $2`
2992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2993  (eval $ac_compiler --version </dev/null >&5) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }
2997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2998  (eval $ac_compiler -v </dev/null >&5) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }
3002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3003  (eval $ac_compiler -V </dev/null >&5) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }
3007
3008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest.$ac_objext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_compiler_gnu=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058ac_compiler_gnu=no
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
3069CFLAGS="-g"
3070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3072if test "${ac_cv_prog_cc_g+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092  (eval $ac_compile) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  ac_cv_prog_cc_g=yes
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_cv_prog_cc_g=no
3118fi
3119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3123if test "$ac_test_CFLAGS" = set; then
3124  CFLAGS=$ac_save_CFLAGS
3125elif test $ac_cv_prog_cc_g = yes; then
3126  if test "$GCC" = yes; then
3127    CFLAGS="-g -O2"
3128  else
3129    CFLAGS="-g"
3130  fi
3131else
3132  if test "$GCC" = yes; then
3133    CFLAGS="-O2"
3134  else
3135    CFLAGS=
3136  fi
3137fi
3138echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3139echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3140if test "${ac_cv_prog_cc_stdc+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_cv_prog_cc_stdc=no
3144ac_save_CC=$CC
3145cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151#include <stdarg.h>
3152#include <stdio.h>
3153#include <sys/types.h>
3154#include <sys/stat.h>
3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3156struct buf { int x; };
3157FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158static char *e (p, i)
3159     char **p;
3160     int i;
3161{
3162  return p[i];
3163}
3164static char *f (char * (*g) (char **, int), char **p, ...)
3165{
3166  char *s;
3167  va_list v;
3168  va_start (v,p);
3169  s = g (p, va_arg (v,int));
3170  va_end (v);
3171  return s;
3172}
3173
3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3175   function prototypes and stuff, but not '\xHH' hex character constants.
3176   These don't provoke an error unfortunately, instead are silently treated
3177   as 'x'.  The following induces an error, until -std1 is added to get
3178   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3179   array size at least.  It's necessary to write '\x00'==0 to get something
3180   that's true only with -std1.  */
3181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182
3183int test (int i, double x);
3184struct s1 {int (*f) (int a);};
3185struct s2 {int (*f) (double a);};
3186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187int argc;
3188char **argv;
3189int
3190main ()
3191{
3192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197# Don't try gcc -ansi; that turns off useful extensions and
3198# breaks some systems' header files.
3199# AIX                   -qlanglvl=ansi
3200# Ultrix and OSF/1      -std1
3201# HP-UX 10.20 and later -Ae
3202# HP-UX older versions  -Aa -D_HPUX_SOURCE
3203# SVR4                  -Xc -D__EXTENSIONS__
3204for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205do
3206  CC="$ac_save_CC $ac_arg"
3207  rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209  (eval $ac_compile) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest.$ac_objext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  ac_cv_prog_cc_stdc=$ac_arg
3230break
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235fi
3236rm -f conftest.err conftest.$ac_objext
3237done
3238rm -f conftest.$ac_ext conftest.$ac_objext
3239CC=$ac_save_CC
3240
3241fi
3242
3243case "x$ac_cv_prog_cc_stdc" in
3244  x|xno)
3245    echo "$as_me:$LINENO: result: none needed" >&5
3246echo "${ECHO_T}none needed" >&6 ;;
3247  *)
3248    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3250    CC="$CC $ac_cv_prog_cc_stdc" ;;
3251esac
3252
3253# Some people use a C++ compiler to compile C.  Since we use `exit',
3254# in C++ we need to declare it.  In case someone uses the same compiler
3255# for both compiling C and C++ we need to have the C++ compiler decide
3256# the declaration of exit, since it's the most demanding environment.
3257cat >conftest.$ac_ext <<_ACEOF
3258#ifndef __cplusplus
3259  choke me
3260#endif
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264  (eval $ac_compile) 2>conftest.er1
3265  ac_status=$?
3266  grep -v '^ *+' conftest.er1 >conftest.err
3267  rm -f conftest.er1
3268  cat conftest.err >&5
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); } &&
3271         { ac_try='test -z "$ac_c_werror_flag"
3272                         || test ! -s conftest.err'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; } &&
3278         { ac_try='test -s conftest.$ac_objext'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; }; then
3284  for ac_declaration in \
3285   '' \
3286   'extern "C" void std::exit (int) throw (); using std::exit;' \
3287   'extern "C" void std::exit (int); using std::exit;' \
3288   'extern "C" void exit (int) throw ();' \
3289   'extern "C" void exit (int);' \
3290   'void exit (int);'
3291do
3292  cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298$ac_declaration
3299#include <stdlib.h>
3300int
3301main ()
3302{
3303exit (42);
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310  (eval $ac_compile) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } &&
3317         { ac_try='test -z "$ac_c_werror_flag"
3318                         || test ! -s conftest.err'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324         { ac_try='test -s conftest.$ac_objext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  :
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335continue
3336fi
3337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344$ac_declaration
3345int
3346main ()
3347{
3348exit (42);
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355  (eval $ac_compile) 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } &&
3362         { ac_try='test -z "$ac_c_werror_flag"
3363                         || test ! -s conftest.err'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; } &&
3369         { ac_try='test -s conftest.$ac_objext'
3370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371  (eval $ac_try) 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }; }; then
3375  break
3376else
3377  echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380fi
3381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382done
3383rm -f conftest*
3384if test -n "$ac_declaration"; then
3385  echo '#ifdef __cplusplus' >>confdefs.h
3386  echo $ac_declaration      >>confdefs.h
3387  echo '#endif'             >>confdefs.h
3388fi
3389
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402depcc="$CC"   am_compiler_list=
3403
3404echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410  # We make a subdir and do the tests there.  Otherwise we can end up
3411  # making bogus files that we don't know about and never remove.  For
3412  # instance it was reported that on HP-UX the gcc test will end up
3413  # making a dummy file named `D' -- because `-MD' means `put the output
3414  # in D'.
3415  mkdir conftest.dir
3416  # Copy depcomp to subdir because otherwise we won't find it if we're
3417  # using a relative directory.
3418  cp "$am_depcomp" conftest.dir
3419  cd conftest.dir
3420  # We will build objects and dependencies in a subdirectory because
3421  # it helps to detect inapplicable dependency modes.  For instance
3422  # both Tru64's cc and ICC support -MD to output dependencies as a
3423  # side effect of compilation, but ICC will put the dependencies in
3424  # the current directory while Tru64 will put them in the object
3425  # directory.
3426  mkdir sub
3427
3428  am_cv_CC_dependencies_compiler_type=none
3429  if test "$am_compiler_list" = ""; then
3430     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431  fi
3432  for depmode in $am_compiler_list; do
3433    # Setup a source with many dependencies, because some compilers
3434    # like to wrap large dependency lists on column 80 (with \), and
3435    # we should not choose a depcomp mode which is confused by this.
3436    #
3437    # We need to recreate these files for each test, as the compiler may
3438    # overwrite some of them when testing with obscure command lines.
3439    # This happens at least with the AIX C compiler.
3440    : > sub/conftest.c
3441    for i in 1 2 3 4 5 6; do
3442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444      # Solaris 8's {/usr,}/bin/sh.
3445      touch sub/conftst$i.h
3446    done
3447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449    case $depmode in
3450    nosideeffect)
3451      # after this tag, mechanisms are not by side-effect, so they'll
3452      # only be used when explicitly requested
3453      if test "x$enable_dependency_tracking" = xyes; then
3454        continue
3455      else
3456        break
3457      fi
3458      ;;
3459    none) break ;;
3460    esac
3461    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462    # mode.  It turns out that the SunPro C++ compiler does not properly
3463    # handle `-M -o', and we need to detect this.
3464    if depmode=$depmode \
3465       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468         >/dev/null 2>conftest.err &&
3469       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472      # icc doesn't choke on unknown options, it will just issue warnings
3473      # or remarks (even with -Werror).  So we grep stderr for any message
3474      # that says an option was ignored or not supported.
3475      # When given -MP, icc 7.0 and 7.1 complain thusly:
3476      #   icc: Command line warning: ignoring option '-M'; no argument required
3477      # The diagnosis changed in icc 8.0:
3478      #   icc: Command line remark: option '-MP' not supported
3479      if (grep 'ignoring option' conftest.err ||
3480          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481        am_cv_CC_dependencies_compiler_type=$depmode
3482        break
3483      fi
3484    fi
3485  done
3486
3487  cd ..
3488  rm -rf conftest.dir
3489else
3490  am_cv_CC_dependencies_compiler_type=none
3491fi
3492
3493fi
3494echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498
3499
3500if
3501  test "x$enable_dependency_tracking" != xno \
3502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503  am__fastdepCC_TRUE=
3504  am__fastdepCC_FALSE='#'
3505else
3506  am__fastdepCC_TRUE='#'
3507  am__fastdepCC_FALSE=
3508fi
3509
3510
3511
3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3518echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3519# On Suns, sometimes $CPP names a directory.
3520if test -n "$CPP" && test -d "$CPP"; then
3521  CPP=
3522fi
3523if test -z "$CPP"; then
3524  if test "${ac_cv_prog_CPP+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527      # Double quotes because CPP needs to be expanded
3528    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529    do
3530      ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550                     Syntax error
3551_ACEOF
3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } >/dev/null; then
3560  if test -s conftest.err; then
3561    ac_cpp_err=$ac_c_preproc_warn_flag
3562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563  else
3564    ac_cpp_err=
3565  fi
3566else
3567  ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575  # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_ext
3579
3580  # OK, works on sane cases.  Now check whether non-existent headers
3581  # can be detected and how.
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <ac_nonexistent.h>
3589_ACEOF
3590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } >/dev/null; then
3598  if test -s conftest.err; then
3599    ac_cpp_err=$ac_c_preproc_warn_flag
3600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601  else
3602    ac_cpp_err=
3603  fi
3604else
3605  ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608  # Broken: success on invalid input.
3609continue
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614  # Passes both tests.
3615ac_preproc_ok=:
3616break
3617fi
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624  break
3625fi
3626
3627    done
3628    ac_cv_prog_CPP=$CPP
3629
3630fi
3631  CPP=$ac_cv_prog_CPP
3632else
3633  ac_cv_prog_CPP=$CPP
3634fi
3635echo "$as_me:$LINENO: result: $CPP" >&5
3636echo "${ECHO_T}$CPP" >&6
3637ac_preproc_ok=false
3638for ac_c_preproc_warn_flag in '' yes
3639do
3640  # Use a header file that comes with gcc, so configuring glibc
3641  # with a fresh cross-compiler works.
3642  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643  # <limits.h> exists even on freestanding compilers.
3644  # On the NeXT, cc -E runs the code through the compiler's parser,
3645  # not just through cpp. "Syntax error" is here to catch this case.
3646  cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#ifdef __STDC__
3653# include <limits.h>
3654#else
3655# include <assert.h>
3656#endif
3657                     Syntax error
3658_ACEOF
3659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } >/dev/null; then
3667  if test -s conftest.err; then
3668    ac_cpp_err=$ac_c_preproc_warn_flag
3669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670  else
3671    ac_cpp_err=
3672  fi
3673else
3674  ac_cpp_err=yes
3675fi
3676if test -z "$ac_cpp_err"; then
3677  :
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682  # Broken: fails on valid input.
3683continue
3684fi
3685rm -f conftest.err conftest.$ac_ext
3686
3687  # OK, works on sane cases.  Now check whether non-existent headers
3688  # can be detected and how.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <ac_nonexistent.h>
3696_ACEOF
3697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } >/dev/null; then
3705  if test -s conftest.err; then
3706    ac_cpp_err=$ac_c_preproc_warn_flag
3707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708  else
3709    ac_cpp_err=
3710  fi
3711else
3712  ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
3715  # Broken: success on invalid input.
3716continue
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721  # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731  :
3732else
3733  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737   { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747echo "$as_me:$LINENO: checking for egrep" >&5
3748echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3749if test "${ac_cv_prog_egrep+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3753    then ac_cv_prog_egrep='grep -E'
3754    else ac_cv_prog_egrep='egrep'
3755    fi
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3758echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3759 EGREP=$ac_cv_prog_egrep
3760
3761
3762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3764if test "${ac_cv_header_stdc+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773#include <stdlib.h>
3774#include <stdarg.h>
3775#include <string.h>
3776#include <float.h>
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_c_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest.$ac_objext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  ac_cv_header_stdc=yes
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_cv_header_stdc=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816
3817if test $ac_cv_header_stdc = yes; then
3818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <string.h>
3826
3827_ACEOF
3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829  $EGREP "memchr" >/dev/null 2>&1; then
3830  :
3831else
3832  ac_cv_header_stdc=no
3833fi
3834rm -f conftest*
3835
3836fi
3837
3838if test $ac_cv_header_stdc = yes; then
3839  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <stdlib.h>
3847
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850  $EGREP "free" >/dev/null 2>&1; then
3851  :
3852else
3853  ac_cv_header_stdc=no
3854fi
3855rm -f conftest*
3856
3857fi
3858
3859if test $ac_cv_header_stdc = yes; then
3860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3861  if test "$cross_compiling" = yes; then
3862  :
3863else
3864  cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h.  */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h.  */
3870#include <ctype.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876                   (('a' <= (c) && (c) <= 'i') \
3877                     || ('j' <= (c) && (c) <= 'r') \
3878                     || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886  int i;
3887  for (i = 0; i < 256; i++)
3888    if (XOR (islower (i), ISLOWER (i))
3889        || toupper (i) != TOUPPER (i))
3890      exit(2);
3891  exit (0);
3892}
3893_ACEOF
3894rm -f conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; }; then
3905  :
3906else
3907  echo "$as_me: program exited with status $ac_status" >&5
3908echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911( exit $ac_status )
3912ac_cv_header_stdc=no
3913fi
3914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915fi
3916fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919echo "${ECHO_T}$ac_cv_header_stdc" >&6
3920if test $ac_cv_header_stdc = yes; then
3921
3922cat >>confdefs.h <<\_ACEOF
3923#define STDC_HEADERS 1
3924_ACEOF
3925
3926fi
3927
3928
3929## THIS IS OUR DEFAULT-DATA-DIRECTORY
3930
3931##################################
3932## CHECKING  OPTIONAL ARGUMENTS ##
3933##################################
3934#----------------#
3935# Data-Directory #
3936#----------------#
3937DATA_DIR=$datadir
3938echo \$\{prefix\}
3939if test $DATA_DIR = \$\{prefix\}/share ; then
3940        echo "not given"
3941        DATA_DIR=/usr/share
3942else
3943        echo "given: $DATA_DIR"
3944fi
3945
3946cat >>confdefs.h <<_ACEOF
3947#define DATADIR "$DATA_DIR"
3948_ACEOF
3949
3950
3951#-----------------#
3952# shared-lib-path #
3953#-----------------#
3954SHARED_LIB_PATH=no
3955echo "$as_me:$LINENO: checking shared lib path" >&5
3956echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3957
3958# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3959if test "${with_shared_lib_path+set}" = set; then
3960  withval="$with_shared_lib_path"
3961  SHARED_LIB_PATH=$withval
3962fi;
3963if test x$SHARED_LIB_PATH != xno; then
3964        echo "set to $SHARED_LIB_PATH"
3965else
3966        echo "no"
3967fi
3968
3969
3970#-----------------#
3971# DEBUG-statement #
3972#-----------------#
3973DEBUG=no
3974echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3975echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3976# Check whether --enable-debug or --disable-debug was given.
3977if test "${enable_debug+set}" = set; then
3978  enableval="$enable_debug"
3979  DEBUG=$enableval
3980fi;
3981
3982if test x$DEBUG = xno; then
3983        echo "no"
3984        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3985        DEBUG=4
3986elif test x$DEBUG = xyes; then
3987        echo "yes"
3988        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3989        DEBUG=4
3990else
3991        echo "yes: setting debuglevel to to $DEBUG"
3992fi
3993
3994cat >>confdefs.h <<_ACEOF
3995#define DEBUG $DEBUG
3996_ACEOF
3997
3998
3999
4000#---------------#
4001# Modular Debug #
4002#---------------#
4003MODULAR_DEBUG=yes
4004echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4005echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4006# Check whether --enable-modular-debug or --disable-modular-debug was given.
4007if test "${enable_modular_debug+set}" = set; then
4008  enableval="$enable_modular_debug"
4009  MODULAR_DEBUG=$enableval
4010fi;
4011
4012if test x$MODULAR_DEBUG = xno; then
4013        echo "no"
4014elif test x$MODULAR_DEBUG = xyes; then
4015        echo "yes"
4016
4017cat >>confdefs.h <<_ACEOF
4018#define MODULAR_DEBUG 1
4019_ACEOF
4020
4021fi
4022
4023#--------------#
4024# GTK-disabled #
4025#--------------#
4026echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4027echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4028# Check whether --enable-gtk or --disable-gtk was given.
4029if test "${enable_gtk+set}" = set; then
4030  enableval="$enable_gtk"
4031  def_gtk=no
4032else
4033  def_gtk=yes
4034fi;
4035if test x$def_gtk = xyes; then
4036  echo "yes"
4037fi
4038if test x$def_gtk = xno; then
4039  echo "no"
4040fi
4041
4042#------------------#
4043# libCurl-disabled #
4044#------------------#
4045echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4046echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4047# Check whether --enable-curl or --disable-curl was given.
4048if test "${enable_curl+set}" = set; then
4049  enableval="$enable_curl"
4050  def_curl=no
4051else
4052  def_curl=yes
4053fi;
4054if test x$def_curl = xyes; then
4055  echo "yes"
4056fi
4057if test x$def_curl = xno; then
4058  echo "no"
4059fi
4060
4061#-------------------#
4062# SubProject-enable #
4063#-------------------#
4064def_sub_projects=no
4065echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4066echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4067
4068# Check whether --with-sub-projects or --without-sub-projects was given.
4069if test "${with_sub_projects+set}" = set; then
4070  withval="$with_sub_projects"
4071  def_sub_projects=yes
4072fi;
4073if test x$def_sub_projects = xyes; then
4074  echo "yes"
4075fi
4076if test x$def_sub_projects = xno; then
4077  echo "no"
4078fi
4079
4080
4081if test x$def_sub_projects = xyes; then
4082  SUB_PROJECTS_TRUE=
4083  SUB_PROJECTS_FALSE='#'
4084else
4085  SUB_PROJECTS_TRUE='#'
4086  SUB_PROJECTS_FALSE=
4087fi
4088
4089
4090#-------------------#
4091# Profiling Enabled #
4092#-------------------#
4093def_profiling=no
4094echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4095echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4096# Check whether --enable-profile or --disable-profile was given.
4097if test "${enable_profile+set}" = set; then
4098  enableval="$enable_profile"
4099  def_profiling=yes
4100fi;
4101if test x$def_profiling = xyes; then
4102  echo "yes"
4103  CXXFLAGS="$CXXFLAGS -pg"
4104fi
4105if test x$def_profiling = xno; then
4106  echo "no"
4107fi
4108
4109#----------------#
4110# efence Enabled #
4111#----------------#
4112def_efence=no
4113echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4114echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4115# Check whether --enable-efence or --disable-efence was given.
4116if test "${enable_efence+set}" = set; then
4117  enableval="$enable_efence"
4118  def_efence=yes
4119fi;
4120if test x$def_efence = xyes; then
4121  echo "yes"
4122fi
4123if test x$def_efence = xno; then
4124  echo "no"
4125fi
4126
4127#----------------------#
4128# Documentation-enable #
4129#----------------------#
4130def_documentation=no
4131echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4132echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4133# Check whether --enable-documentation or --disable-documentation was given.
4134if test "${enable_documentation+set}" = set; then
4135  enableval="$enable_documentation"
4136  def_documentation=yes
4137fi;
4138if test x$def_documentation = xyes; then
4139  echo "yes"
4140fi
4141if test x$def_documentation = xno; then
4142  echo "no"
4143fi
4144
4145
4146if test x$def_documentation = xyes; then
4147  DOCUMENTATION_TRUE=
4148  DOCUMENTATION_FALSE='#'
4149else
4150  DOCUMENTATION_TRUE='#'
4151  DOCUMENTATION_FALSE=
4152fi
4153
4154
4155#######################
4156## PROGRAMM CHECKING ##
4157## 3. party Programs ##
4158#######################
4159
4160#----------------------#
4161# checking for Doxygen #
4162#----------------------#
4163# Extract the first word of "doxygen", so it can be a program name with args.
4164set dummy doxygen; ac_word=$2
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167if test "${ac_cv_path_DOXYGEN+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  case $DOXYGEN in
4171  [\\/]* | ?:[\\/]*)
4172  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4173  ;;
4174  *)
4175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180  for ac_exec_ext in '' $ac_executable_extensions; do
4181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184    break 2
4185  fi
4186done
4187done
4188
4189  ;;
4190esac
4191fi
4192DOXYGEN=$ac_cv_path_DOXYGEN
4193
4194if test -n "$DOXYGEN"; then
4195  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4196echo "${ECHO_T}$DOXYGEN" >&6
4197else
4198  echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200fi
4201
4202
4203
4204if test $DOXYGEN; then
4205  DOXYGEN_TRUE=
4206  DOXYGEN_FALSE='#'
4207else
4208  DOXYGEN_TRUE='#'
4209  DOXYGEN_FALSE=
4210fi
4211
4212
4213#--------------------#
4214# checking for gprof #
4215#--------------------#
4216# Extract the first word of "gprof", so it can be a program name with args.
4217set dummy gprof; ac_word=$2
4218echo "$as_me:$LINENO: checking for $ac_word" >&5
4219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220if test "${ac_cv_path_GPROF+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  case $GPROF in
4224  [\\/]* | ?:[\\/]*)
4225  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4226  ;;
4227  *)
4228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233  for ac_exec_ext in '' $ac_executable_extensions; do
4234  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239done
4240done
4241
4242  ;;
4243esac
4244fi
4245GPROF=$ac_cv_path_GPROF
4246
4247if test -n "$GPROF"; then
4248  echo "$as_me:$LINENO: result: $GPROF" >&5
4249echo "${ECHO_T}$GPROF" >&6
4250else
4251  echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254
4255
4256#-------------------------#
4257# checking for pkg-config #
4258#-------------------------#
4259if test x$def_gtk = xyes; then
4260 # Extract the first word of "pkg-config", so it can be a program name with args.
4261set dummy pkg-config; ac_word=$2
4262echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  case $PKG_CONFIG in
4268  [\\/]* | ?:[\\/]*)
4269  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4270  ;;
4271  *)
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277  for ac_exec_ext in '' $ac_executable_extensions; do
4278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284done
4285
4286  ;;
4287esac
4288fi
4289PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4290
4291if test -n "$PKG_CONFIG"; then
4292  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4293echo "${ECHO_T}$PKG_CONFIG" >&6
4294else
4295  echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
4299fi
4300
4301
4302#########################
4303## CHECKING FOR SYSTEM ##
4304#########################
4305## here the system is checked, and openGL is included
4306## also checking for SDL on differen Systems
4307
4308echo "$as_me:$LINENO: checking for System" >&5
4309echo $ECHO_N "checking for System... $ECHO_C" >&6
4310## checking for openGL-environment and other sys-specific parameters
4311case "$target" in
4312
4313###########
4314#---------#
4315# WINDOWS #
4316#---------#
4317###########
4318  *-*-mingw32*)
4319echo "mingw-WINDOWS detected"
4320
4321CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4322
4323    mingw="yes"
4324    MSBITFIELDS="-mms-bitfields"
4325    MWINDOWS="-mwindows"
4326
4327
4328
4329# checking for mingw32
4330    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4331echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4332if test "${ac_cv_lib_mingw32_main+set}" = set; then
4333  echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335  ac_check_lib_save_LIBS=$LIBS
4336LIBS="-lmingw32  $LIBS"
4337cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h.  */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h.  */
4343
4344
4345int
4346main ()
4347{
4348main ();
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext conftest$ac_exeext
4354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355  (eval $ac_link) 2>conftest.er1
4356  ac_status=$?
4357  grep -v '^ *+' conftest.er1 >conftest.err
4358  rm -f conftest.er1
4359  cat conftest.err >&5
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); } &&
4362         { ac_try='test -z "$ac_c_werror_flag"
4363                         || test ! -s conftest.err'
4364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365  (eval $ac_try) 2>&5
4366  ac_status=$?
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); }; } &&
4369         { ac_try='test -s conftest$ac_exeext'
4370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371  (eval $ac_try) 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }; }; then
4375  ac_cv_lib_mingw32_main=yes
4376else
4377  echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380ac_cv_lib_mingw32_main=no
4381fi
4382rm -f conftest.err conftest.$ac_objext \
4383      conftest$ac_exeext conftest.$ac_ext
4384LIBS=$ac_check_lib_save_LIBS
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4387echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4388if test $ac_cv_lib_mingw32_main = yes; then
4389  FOUND_mingw32=yes
4390fi
4391
4392    if test x$FOUND_mingw32 = xyes; then
4393        LIBS="$LIBS -lmingw32"
4394    fi
4395
4396#-----------#
4397# SDL(win) #
4398#-----------#
4399# checking for SDL-headers
4400    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4411                  inttypes.h stdint.h unistd.h
4412do
4413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414echo "$as_me:$LINENO: checking for $ac_header" >&5
4415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4416if eval "test \"\${$as_ac_Header+set}\" = set"; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h.  */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h.  */
4425$ac_includes_default
4426
4427#include <$ac_header>
4428_ACEOF
4429rm -f conftest.$ac_objext
4430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431  (eval $ac_compile) 2>conftest.er1
4432  ac_status=$?
4433  grep -v '^ *+' conftest.er1 >conftest.err
4434  rm -f conftest.er1
4435  cat conftest.err >&5
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); } &&
4438         { ac_try='test -z "$ac_c_werror_flag"
4439                         || test ! -s conftest.err'
4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441  (eval $ac_try) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); }; } &&
4445         { ac_try='test -s conftest.$ac_objext'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  eval "$as_ac_Header=yes"
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456eval "$as_ac_Header=no"
4457fi
4458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4459fi
4460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463  cat >>confdefs.h <<_ACEOF
4464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465_ACEOF
4466
4467fi
4468
4469done
4470
4471
4472
4473for ac_header in SDL/SDL.h
4474do
4475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477  echo "$as_me:$LINENO: checking for $ac_header" >&5
4478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4479if eval "test \"\${$as_ac_Header+set}\" = set"; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481fi
4482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484else
4485  # Is the header compilable?
4486echo "$as_me:$LINENO: checking $ac_header usability" >&5
4487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4488cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h.  */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h.  */
4494$ac_includes_default
4495#include <$ac_header>
4496_ACEOF
4497rm -f conftest.$ac_objext
4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499  (eval $ac_compile) 2>conftest.er1
4500  ac_status=$?
4501  grep -v '^ *+' conftest.er1 >conftest.err
4502  rm -f conftest.er1
4503  cat conftest.err >&5
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); } &&
4506         { ac_try='test -z "$ac_c_werror_flag"
4507                         || test ! -s conftest.err'
4508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509  (eval $ac_try) 2>&5
4510  ac_status=$?
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); }; } &&
4513         { ac_try='test -s conftest.$ac_objext'
4514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515  (eval $ac_try) 2>&5
4516  ac_status=$?
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); }; }; then
4519  ac_header_compiler=yes
4520else
4521  echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524ac_header_compiler=no
4525fi
4526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4528echo "${ECHO_T}$ac_header_compiler" >&6
4529
4530# Is the header present?
4531echo "$as_me:$LINENO: checking $ac_header presence" >&5
4532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4533cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h.  */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h.  */
4539#include <$ac_header>
4540_ACEOF
4541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4542  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4543  ac_status=$?
4544  grep -v '^ *+' conftest.er1 >conftest.err
4545  rm -f conftest.er1
4546  cat conftest.err >&5
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); } >/dev/null; then
4549  if test -s conftest.err; then
4550    ac_cpp_err=$ac_c_preproc_warn_flag
4551    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4552  else
4553    ac_cpp_err=
4554  fi
4555else
4556  ac_cpp_err=yes
4557fi
4558if test -z "$ac_cpp_err"; then
4559  ac_header_preproc=yes
4560else
4561  echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564  ac_header_preproc=no
4565fi
4566rm -f conftest.err conftest.$ac_ext
4567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4568echo "${ECHO_T}$ac_header_preproc" >&6
4569
4570# So?  What about this header?
4571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4572  yes:no: )
4573    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4575    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4576echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4577    ac_header_preproc=yes
4578    ;;
4579  no:yes:* )
4580    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4581echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4582    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4583echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4584    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4585echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4586    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4587echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4588    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4590    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4591echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4592    (
4593      cat <<\_ASBOX
4594## ---------------------------------------------- ##
4595## Report this to orxonox-dev at mail.datacore.ch ##
4596## ---------------------------------------------- ##
4597_ASBOX
4598    ) |
4599      sed "s/^/$as_me: WARNING:     /" >&2
4600    ;;
4601esac
4602echo "$as_me:$LINENO: checking for $ac_header" >&5
4603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4604if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605  echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607  eval "$as_ac_Header=\$ac_header_preproc"
4608fi
4609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4611
4612fi
4613if test `eval echo '${'$as_ac_Header'}'` = yes; then
4614  cat >>confdefs.h <<_ACEOF
4615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616_ACEOF
4617
4618else
4619  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4620echo "$as_me: error: cannot find SDL headers" >&2;}
4621   { (exit 1); exit 1; }; }
4622fi
4623
4624done
4625
4626
4627#checking for libSDL
4628    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4629echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4630if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4631  echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633  ac_check_lib_save_LIBS=$LIBS
4634LIBS="-lsdlmain  $LIBS"
4635cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h.  */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h.  */
4641
4642
4643int
4644main ()
4645{
4646main ();
4647  ;
4648  return 0;
4649}
4650_ACEOF
4651rm -f conftest.$ac_objext conftest$ac_exeext
4652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4653  (eval $ac_link) 2>conftest.er1
4654  ac_status=$?
4655  grep -v '^ *+' conftest.er1 >conftest.err
4656  rm -f conftest.er1
4657  cat conftest.err >&5
4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659  (exit $ac_status); } &&
4660         { ac_try='test -z "$ac_c_werror_flag"
4661                         || test ! -s conftest.err'
4662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663  (eval $ac_try) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; } &&
4667         { ac_try='test -s conftest$ac_exeext'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; }; then
4673  ac_cv_lib_sdlmain_main=yes
4674else
4675  echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678ac_cv_lib_sdlmain_main=no
4679fi
4680rm -f conftest.err conftest.$ac_objext \
4681      conftest$ac_exeext conftest.$ac_ext
4682LIBS=$ac_check_lib_save_LIBS
4683fi
4684echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4685echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4686if test $ac_cv_lib_sdlmain_main = yes; then
4687  FOUND_sdlmain=yes
4688fi
4689
4690    if test x$FOUND_sdlmain = xyes ; then
4691       LIBS="$LIBS -lsdlmain"
4692    else
4693        echo "------------------"
4694        echo "SDL library not found."
4695        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4696        echo "------------------"
4697        exit 1
4698    fi
4699    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4700echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4701if test "${ac_cv_lib_sdl_main+set}" = set; then
4702  echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704  ac_check_lib_save_LIBS=$LIBS
4705LIBS="-lsdl  $LIBS"
4706cat >conftest.$ac_ext <<_ACEOF
4707/* confdefs.h.  */
4708_ACEOF
4709cat confdefs.h >>conftest.$ac_ext
4710cat >>conftest.$ac_ext <<_ACEOF
4711/* end confdefs.h.  */
4712
4713
4714int
4715main ()
4716{
4717main ();
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext conftest$ac_exeext
4723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724  (eval $ac_link) 2>conftest.er1
4725  ac_status=$?
4726  grep -v '^ *+' conftest.er1 >conftest.err
4727  rm -f conftest.er1
4728  cat conftest.err >&5
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); } &&
4731         { ac_try='test -z "$ac_c_werror_flag"
4732                         || test ! -s conftest.err'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; } &&
4738         { ac_try='test -s conftest$ac_exeext'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; }; then
4744  ac_cv_lib_sdl_main=yes
4745else
4746  echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749ac_cv_lib_sdl_main=no
4750fi
4751rm -f conftest.err conftest.$ac_objext \
4752      conftest$ac_exeext conftest.$ac_ext
4753LIBS=$ac_check_lib_save_LIBS
4754fi
4755echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4756echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4757if test $ac_cv_lib_sdl_main = yes; then
4758  FOUND_sdl=yes
4759fi
4760
4761    if test x$FOUND_sdl = xyes ; then
4762       LIBS="$LIBS -lsdl"
4763    else
4764        echo "------------------"
4765        echo "SDL library not found."
4766        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4767        echo "------------------"
4768        exit -1
4769    fi
4770
4771#---------------#
4772# open-GL (win) #
4773#---------------#
4774# checking gl header
4775
4776for ac_header in GL/gl.h
4777do
4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780  echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787else
4788  # Is the header compilable?
4789echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797$ac_includes_default
4798#include <$ac_header>
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802  (eval $ac_compile) 2>conftest.er1
4803  ac_status=$?
4804  grep -v '^ *+' conftest.er1 >conftest.err
4805  rm -f conftest.er1
4806  cat conftest.err >&5
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); } &&
4809         { ac_try='test -z "$ac_c_werror_flag"
4810                         || test ! -s conftest.err'
4811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812  (eval $ac_try) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }; } &&
4816         { ac_try='test -s conftest.$ac_objext'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; }; then
4822  ac_header_compiler=yes
4823else
4824  echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827ac_header_compiler=no
4828fi
4829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831echo "${ECHO_T}$ac_header_compiler" >&6
4832
4833# Is the header present?
4834echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h.  */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h.  */
4842#include <$ac_header>
4843_ACEOF
4844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846  ac_status=$?
4847  grep -v '^ *+' conftest.er1 >conftest.err
4848  rm -f conftest.er1
4849  cat conftest.err >&5
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); } >/dev/null; then
4852  if test -s conftest.err; then
4853    ac_cpp_err=$ac_c_preproc_warn_flag
4854    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855  else
4856    ac_cpp_err=
4857  fi
4858else
4859  ac_cpp_err=yes
4860fi
4861if test -z "$ac_cpp_err"; then
4862  ac_header_preproc=yes
4863else
4864  echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867  ac_header_preproc=no
4868fi
4869rm -f conftest.err conftest.$ac_ext
4870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871echo "${ECHO_T}$ac_header_preproc" >&6
4872
4873# So?  What about this header?
4874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875  yes:no: )
4876    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4880    ac_header_preproc=yes
4881    ;;
4882  no:yes:* )
4883    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4886echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4887    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4889    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4890echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4891    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4893    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4895    (
4896      cat <<\_ASBOX
4897## ---------------------------------------------- ##
4898## Report this to orxonox-dev at mail.datacore.ch ##
4899## ---------------------------------------------- ##
4900_ASBOX
4901    ) |
4902      sed "s/^/$as_me: WARNING:     /" >&2
4903    ;;
4904esac
4905echo "$as_me:$LINENO: checking for $ac_header" >&5
4906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908  echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910  eval "$as_ac_Header=\$ac_header_preproc"
4911fi
4912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4914
4915fi
4916if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917  cat >>confdefs.h <<_ACEOF
4918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919_ACEOF
4920
4921else
4922  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4923echo "$as_me: error: cannot find opengl headers" >&2;}
4924   { (exit 1); exit 1; }; }
4925fi
4926
4927done
4928
4929#   checking for Windows openGl library
4930    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4931echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4932if test "${ac_cv_lib_opengl32_main+set}" = set; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  ac_check_lib_save_LIBS=$LIBS
4936LIBS="-lopengl32  $LIBS"
4937cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h.  */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h.  */
4943
4944
4945int
4946main ()
4947{
4948main ();
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext conftest$ac_exeext
4954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955  (eval $ac_link) 2>conftest.er1
4956  ac_status=$?
4957  grep -v '^ *+' conftest.er1 >conftest.err
4958  rm -f conftest.er1
4959  cat conftest.err >&5
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); } &&
4962         { ac_try='test -z "$ac_c_werror_flag"
4963                         || test ! -s conftest.err'
4964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965  (eval $ac_try) 2>&5
4966  ac_status=$?
4967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968  (exit $ac_status); }; } &&
4969         { ac_try='test -s conftest$ac_exeext'
4970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971  (eval $ac_try) 2>&5
4972  ac_status=$?
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); }; }; then
4975  ac_cv_lib_opengl32_main=yes
4976else
4977  echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980ac_cv_lib_opengl32_main=no
4981fi
4982rm -f conftest.err conftest.$ac_objext \
4983      conftest$ac_exeext conftest.$ac_ext
4984LIBS=$ac_check_lib_save_LIBS
4985fi
4986echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4987echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4988if test $ac_cv_lib_opengl32_main = yes; then
4989  FOUND_opengl32=yes
4990else
4991  "gl/gl.h"
4992fi
4993
4994    if test x$FOUND_opengl32 = xyes ; then
4995        LIBS="$LIBS -lopengl32"
4996    else
4997         echo "------------------"
4998         echo "opengl not found."
4999         echo "please install the opengl package which can be found at http://www.opengl.org"
5000         echo "------------------"
5001         exit -1
5002    fi
5003
5004# cheking for GLU-header
5005
5006for ac_header in GL/glu.h
5007do
5008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5009if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010  echo "$as_me:$LINENO: checking for $ac_header" >&5
5011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5012if eval "test \"\${$as_ac_Header+set}\" = set"; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014fi
5015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5017else
5018  # Is the header compilable?
5019echo "$as_me:$LINENO: checking $ac_header usability" >&5
5020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5021cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h.  */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h.  */
5027$ac_includes_default
5028#include <$ac_header>
5029_ACEOF
5030rm -f conftest.$ac_objext
5031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032  (eval $ac_compile) 2>conftest.er1
5033  ac_status=$?
5034  grep -v '^ *+' conftest.er1 >conftest.err
5035  rm -f conftest.er1
5036  cat conftest.err >&5
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); } &&
5039         { ac_try='test -z "$ac_c_werror_flag"
5040                         || test ! -s conftest.err'
5041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042  (eval $ac_try) 2>&5
5043  ac_status=$?
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); }; } &&
5046         { ac_try='test -s conftest.$ac_objext'
5047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048  (eval $ac_try) 2>&5
5049  ac_status=$?
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); }; }; then
5052  ac_header_compiler=yes
5053else
5054  echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057ac_header_compiler=no
5058fi
5059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5061echo "${ECHO_T}$ac_header_compiler" >&6
5062
5063# Is the header present?
5064echo "$as_me:$LINENO: checking $ac_header presence" >&5
5065echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5066cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h.  */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h.  */
5072#include <$ac_header>
5073_ACEOF
5074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5075  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5076  ac_status=$?
5077  grep -v '^ *+' conftest.er1 >conftest.err
5078  rm -f conftest.er1
5079  cat conftest.err >&5
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); } >/dev/null; then
5082  if test -s conftest.err; then
5083    ac_cpp_err=$ac_c_preproc_warn_flag
5084    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5085  else
5086    ac_cpp_err=
5087  fi
5088else
5089  ac_cpp_err=yes
5090fi
5091if test -z "$ac_cpp_err"; then
5092  ac_header_preproc=yes
5093else
5094  echo "$as_me: failed program was:" >&5
5095sed 's/^/| /' conftest.$ac_ext >&5
5096
5097  ac_header_preproc=no
5098fi
5099rm -f conftest.err conftest.$ac_ext
5100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5101echo "${ECHO_T}$ac_header_preproc" >&6
5102
5103# So?  What about this header?
5104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5105  yes:no: )
5106    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5108    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5110    ac_header_preproc=yes
5111    ;;
5112  no:yes:* )
5113    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5115    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5116echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5117    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5119    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5120echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5121    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5123    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5125    (
5126      cat <<\_ASBOX
5127## ---------------------------------------------- ##
5128## Report this to orxonox-dev at mail.datacore.ch ##
5129## ---------------------------------------------- ##
5130_ASBOX
5131    ) |
5132      sed "s/^/$as_me: WARNING:     /" >&2
5133    ;;
5134esac
5135echo "$as_me:$LINENO: checking for $ac_header" >&5
5136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  eval "$as_ac_Header=\$ac_header_preproc"
5141fi
5142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5144
5145fi
5146if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147  cat >>confdefs.h <<_ACEOF
5148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149_ACEOF
5150
5151else
5152  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5153echo "$as_me: error: cannot find opengl headers" >&2;}
5154   { (exit 1); exit 1; }; }
5155fi
5156
5157done
5158
5159
5160# checking for libGLU
5161    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
5162echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
5163if test "${ac_cv_lib_glu32_main+set}" = set; then
5164  echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166  ac_check_lib_save_LIBS=$LIBS
5167LIBS="-lglu32  $LIBS"
5168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h.  */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h.  */
5174
5175
5176int
5177main ()
5178{
5179main ();
5180  ;
5181  return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
5185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186  (eval $ac_link) 2>conftest.er1
5187  ac_status=$?
5188  grep -v '^ *+' conftest.er1 >conftest.err
5189  rm -f conftest.er1
5190  cat conftest.err >&5
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); } &&
5193         { ac_try='test -z "$ac_c_werror_flag"
5194                         || test ! -s conftest.err'
5195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196  (eval $ac_try) 2>&5
5197  ac_status=$?
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); }; } &&
5200         { ac_try='test -s conftest$ac_exeext'
5201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202  (eval $ac_try) 2>&5
5203  ac_status=$?
5204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205  (exit $ac_status); }; }; then
5206  ac_cv_lib_glu32_main=yes
5207else
5208  echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
5211ac_cv_lib_glu32_main=no
5212fi
5213rm -f conftest.err conftest.$ac_objext \
5214      conftest$ac_exeext conftest.$ac_ext
5215LIBS=$ac_check_lib_save_LIBS
5216fi
5217echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
5218echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5219if test $ac_cv_lib_glu32_main = yes; then
5220  FOUND_glu32=yes
5221fi
5222
5223    if test x$FOUND_glu32 = xyes ; then
5224        LIBS="$LIBS -lGLU32"
5225    else
5226         echo "------------------"
5227         echo "GLU library not found."
5228         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5229         echo "------------------"
5230         exit -1
5231    fi
5232
5233#--------#
5234# openAL #
5235#--------#
5236# checking for openAL-headers
5237
5238for ac_header in AL/al.h
5239do
5240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241if eval "test \"\${$as_ac_Header+set}\" = set"; then
5242  echo "$as_me:$LINENO: checking for $ac_header" >&5
5243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5244if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245  echo $ECHO_N "(cached) $ECHO_C" >&6
5246fi
5247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5249else
5250  # Is the header compilable?
5251echo "$as_me:$LINENO: checking $ac_header usability" >&5
5252echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5253cat >conftest.$ac_ext <<_ACEOF
5254/* confdefs.h.  */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h.  */
5259$ac_includes_default
5260#include <$ac_header>
5261_ACEOF
5262rm -f conftest.$ac_objext
5263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264  (eval $ac_compile) 2>conftest.er1
5265  ac_status=$?
5266  grep -v '^ *+' conftest.er1 >conftest.err
5267  rm -f conftest.er1
5268  cat conftest.err >&5
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); } &&
5271         { ac_try='test -z "$ac_c_werror_flag"
5272                         || test ! -s conftest.err'
5273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274  (eval $ac_try) 2>&5
5275  ac_status=$?
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); }; } &&
5278         { ac_try='test -s conftest.$ac_objext'
5279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280  (eval $ac_try) 2>&5
5281  ac_status=$?
5282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); }; }; then
5284  ac_header_compiler=yes
5285else
5286  echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
5289ac_header_compiler=no
5290fi
5291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5292echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5293echo "${ECHO_T}$ac_header_compiler" >&6
5294
5295# Is the header present?
5296echo "$as_me:$LINENO: checking $ac_header presence" >&5
5297echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5298cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h.  */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h.  */
5304#include <$ac_header>
5305_ACEOF
5306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5307  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5308  ac_status=$?
5309  grep -v '^ *+' conftest.er1 >conftest.err
5310  rm -f conftest.er1
5311  cat conftest.err >&5
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); } >/dev/null; then
5314  if test -s conftest.err; then
5315    ac_cpp_err=$ac_c_preproc_warn_flag
5316    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5317  else
5318    ac_cpp_err=
5319  fi
5320else
5321  ac_cpp_err=yes
5322fi
5323if test -z "$ac_cpp_err"; then
5324  ac_header_preproc=yes
5325else
5326  echo "$as_me: failed program was:" >&5
5327sed 's/^/| /' conftest.$ac_ext >&5
5328
5329  ac_header_preproc=no
5330fi
5331rm -f conftest.err conftest.$ac_ext
5332echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5333echo "${ECHO_T}$ac_header_preproc" >&6
5334
5335# So?  What about this header?
5336case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5337  yes:no: )
5338    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5339echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5340    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5341echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5342    ac_header_preproc=yes
5343    ;;
5344  no:yes:* )
5345    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5347    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5348echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5349    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5350echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5351    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5352echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5353    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5354echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5355    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5356echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5357    (
5358      cat <<\_ASBOX
5359## ---------------------------------------------- ##
5360## Report this to orxonox-dev at mail.datacore.ch ##
5361## ---------------------------------------------- ##
5362_ASBOX
5363    ) |
5364      sed "s/^/$as_me: WARNING:     /" >&2
5365    ;;
5366esac
5367echo "$as_me:$LINENO: checking for $ac_header" >&5
5368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5369if eval "test \"\${$as_ac_Header+set}\" = set"; then
5370  echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372  eval "$as_ac_Header=\$ac_header_preproc"
5373fi
5374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5376
5377fi
5378if test `eval echo '${'$as_ac_Header'}'` = yes; then
5379  cat >>confdefs.h <<_ACEOF
5380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5381_ACEOF
5382
5383else
5384  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5385echo "$as_me: error: cannot find openAL header." >&2;}
5386   { (exit 1); exit 1; }; }
5387fi
5388
5389done
5390
5391# checking for openAL-lib
5392  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5393echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5394if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5395  echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397  ac_check_lib_save_LIBS=$LIBS
5398LIBS="-lOpenAL32  $LIBS"
5399cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h.  */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
5404/* end confdefs.h.  */
5405
5406
5407int
5408main ()
5409{
5410main ();
5411  ;
5412  return 0;
5413}
5414_ACEOF
5415rm -f conftest.$ac_objext conftest$ac_exeext
5416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5417  (eval $ac_link) 2>conftest.er1
5418  ac_status=$?
5419  grep -v '^ *+' conftest.er1 >conftest.err
5420  rm -f conftest.er1
5421  cat conftest.err >&5
5422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423  (exit $ac_status); } &&
5424         { ac_try='test -z "$ac_c_werror_flag"
5425                         || test ! -s conftest.err'
5426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427  (eval $ac_try) 2>&5
5428  ac_status=$?
5429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430  (exit $ac_status); }; } &&
5431         { ac_try='test -s conftest$ac_exeext'
5432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433  (eval $ac_try) 2>&5
5434  ac_status=$?
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); }; }; then
5437  ac_cv_lib_OpenAL32_main=yes
5438else
5439  echo "$as_me: failed program was:" >&5
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
5442ac_cv_lib_OpenAL32_main=no
5443fi
5444rm -f conftest.err conftest.$ac_objext \
5445      conftest$ac_exeext conftest.$ac_ext
5446LIBS=$ac_check_lib_save_LIBS
5447fi
5448echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5449echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5450if test $ac_cv_lib_OpenAL32_main = yes; then
5451  FOUND_openal=yes
5452fi
5453
5454  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5455echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5456if test "${ac_cv_lib_ALut_main+set}" = set; then
5457  echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
5459  ac_check_lib_save_LIBS=$LIBS
5460LIBS="-lALut  $LIBS"
5461cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h.  */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h.  */
5467
5468
5469int
5470main ()
5471{
5472main ();
5473  ;
5474  return 0;
5475}
5476_ACEOF
5477rm -f conftest.$ac_objext conftest$ac_exeext
5478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479  (eval $ac_link) 2>conftest.er1
5480  ac_status=$?
5481  grep -v '^ *+' conftest.er1 >conftest.err
5482  rm -f conftest.er1
5483  cat conftest.err >&5
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); } &&
5486         { ac_try='test -z "$ac_c_werror_flag"
5487                         || test ! -s conftest.err'
5488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489  (eval $ac_try) 2>&5
5490  ac_status=$?
5491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); }; } &&
5493         { ac_try='test -s conftest$ac_exeext'
5494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495  (eval $ac_try) 2>&5
5496  ac_status=$?
5497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498  (exit $ac_status); }; }; then
5499  ac_cv_lib_ALut_main=yes
5500else
5501  echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504ac_cv_lib_ALut_main=no
5505fi
5506rm -f conftest.err conftest.$ac_objext \
5507      conftest$ac_exeext conftest.$ac_ext
5508LIBS=$ac_check_lib_save_LIBS
5509fi
5510echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5511echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5512if test $ac_cv_lib_ALut_main = yes; then
5513  FOUND_ALut=yes
5514fi
5515
5516     if test x$FOUND_openal = xyes ; then
5517      if test x$FOUND_ALut = xyes ; then
5518       LIBS="$LIBS -lALut -lOpenAL32"
5519     else
5520        echo "------------------"
5521        echo "openal library not found."
5522        echo "please install the openal library, which can be found at http://www.openal.org"
5523        echo "------------------"
5524        exit -1
5525      fi
5526     fi
5527    ;;
5528
5529#########
5530#-------#
5531# LINUX #
5532#-------#
5533#########
5534 *-*-linux*)
5535echo "Linux detected"
5536
5537 Linux="yes"
5538
5539##CPPFLAGS="-I/usr/include $CPPFLAGS"
5540##LDFLAGS="-L/usr/lib $LDFLAGS"
5541if test x$SHARED_LIB_PATH != xno; then
5542        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5543        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5544fi
5545
5546# checking gl header
5547
5548for ac_header in GL/gl.h
5549do
5550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551if eval "test \"\${$as_ac_Header+set}\" = set"; then
5552  echo "$as_me:$LINENO: checking for $ac_header" >&5
5553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5554if eval "test \"\${$as_ac_Header+set}\" = set"; then
5555  echo $ECHO_N "(cached) $ECHO_C" >&6
5556fi
5557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5559else
5560  # Is the header compilable?
5561echo "$as_me:$LINENO: checking $ac_header usability" >&5
5562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5563cat >conftest.$ac_ext <<_ACEOF
5564/* confdefs.h.  */
5565_ACEOF
5566cat confdefs.h >>conftest.$ac_ext
5567cat >>conftest.$ac_ext <<_ACEOF
5568/* end confdefs.h.  */
5569$ac_includes_default
5570#include <$ac_header>
5571_ACEOF
5572rm -f conftest.$ac_objext
5573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574  (eval $ac_compile) 2>conftest.er1
5575  ac_status=$?
5576  grep -v '^ *+' conftest.er1 >conftest.err
5577  rm -f conftest.er1
5578  cat conftest.err >&5
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } &&
5581         { ac_try='test -z "$ac_c_werror_flag"
5582                         || test ! -s conftest.err'
5583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584  (eval $ac_try) 2>&5
5585  ac_status=$?
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); }; } &&
5588         { ac_try='test -s conftest.$ac_objext'
5589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590  (eval $ac_try) 2>&5
5591  ac_status=$?
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); }; }; then
5594  ac_header_compiler=yes
5595else
5596  echo "$as_me: failed program was:" >&5
5597sed 's/^/| /' conftest.$ac_ext >&5
5598
5599ac_header_compiler=no
5600fi
5601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5603echo "${ECHO_T}$ac_header_compiler" >&6
5604
5605# Is the header present?
5606echo "$as_me:$LINENO: checking $ac_header presence" >&5
5607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5608cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h.  */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h.  */
5614#include <$ac_header>
5615_ACEOF
5616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5617  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5618  ac_status=$?
5619  grep -v '^ *+' conftest.er1 >conftest.err
5620  rm -f conftest.er1
5621  cat conftest.err >&5
5622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623  (exit $ac_status); } >/dev/null; then
5624  if test -s conftest.err; then
5625    ac_cpp_err=$ac_c_preproc_warn_flag
5626    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5627  else
5628    ac_cpp_err=
5629  fi
5630else
5631  ac_cpp_err=yes
5632fi
5633if test -z "$ac_cpp_err"; then
5634  ac_header_preproc=yes
5635else
5636  echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639  ac_header_preproc=no
5640fi
5641rm -f conftest.err conftest.$ac_ext
5642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5643echo "${ECHO_T}$ac_header_preproc" >&6
5644
5645# So?  What about this header?
5646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5647  yes:no: )
5648    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5650    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5652    ac_header_preproc=yes
5653    ;;
5654  no:yes:* )
5655    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5657    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5658echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5659    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5661    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5662echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5663    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5665    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5667    (
5668      cat <<\_ASBOX
5669## ---------------------------------------------- ##
5670## Report this to orxonox-dev at mail.datacore.ch ##
5671## ---------------------------------------------- ##
5672_ASBOX
5673    ) |
5674      sed "s/^/$as_me: WARNING:     /" >&2
5675    ;;
5676esac
5677echo "$as_me:$LINENO: checking for $ac_header" >&5
5678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5679if eval "test \"\${$as_ac_Header+set}\" = set"; then
5680  echo $ECHO_N "(cached) $ECHO_C" >&6
5681else
5682  eval "$as_ac_Header=\$ac_header_preproc"
5683fi
5684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5686
5687fi
5688if test `eval echo '${'$as_ac_Header'}'` = yes; then
5689  cat >>confdefs.h <<_ACEOF
5690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5691_ACEOF
5692
5693else
5694  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5695echo "$as_me: error: cannot find opengl headers" >&2;}
5696   { (exit 1); exit 1; }; }
5697fi
5698
5699done
5700
5701
5702#  checking for Unix GL
5703   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5704echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5705if test "${ac_cv_lib_GL_main+set}" = set; then
5706  echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708  ac_check_lib_save_LIBS=$LIBS
5709LIBS="-lGL  $LIBS"
5710cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h.  */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h.  */
5716
5717
5718int
5719main ()
5720{
5721main ();
5722  ;
5723  return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728  (eval $ac_link) 2>conftest.er1
5729  ac_status=$?
5730  grep -v '^ *+' conftest.er1 >conftest.err
5731  rm -f conftest.er1
5732  cat conftest.err >&5
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); } &&
5735         { ac_try='test -z "$ac_c_werror_flag"
5736                         || test ! -s conftest.err'
5737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738  (eval $ac_try) 2>&5
5739  ac_status=$?
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); }; } &&
5742         { ac_try='test -s conftest$ac_exeext'
5743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744  (eval $ac_try) 2>&5
5745  ac_status=$?
5746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747  (exit $ac_status); }; }; then
5748  ac_cv_lib_GL_main=yes
5749else
5750  echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753ac_cv_lib_GL_main=no
5754fi
5755rm -f conftest.err conftest.$ac_objext \
5756      conftest$ac_exeext conftest.$ac_ext
5757LIBS=$ac_check_lib_save_LIBS
5758fi
5759echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5760echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5761if test $ac_cv_lib_GL_main = yes; then
5762  FOUND_GL=yes
5763fi
5764
5765   if test x$FOUND_GL = xyes ; then
5766     LIBS="$LIBS -lGL"
5767   else
5768         echo "------------------"
5769         echo "opengl not found."
5770         echo "please install the opengl package which can be found at http://www.opengl.org"
5771         echo "------------------"
5772         exit -1
5773   fi
5774
5775# cheking for GLU-header
5776
5777for ac_header in GL/glu.h
5778do
5779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5780if eval "test \"\${$as_ac_Header+set}\" = set"; then
5781  echo "$as_me:$LINENO: checking for $ac_header" >&5
5782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5783if eval "test \"\${$as_ac_Header+set}\" = set"; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785fi
5786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788else
5789  # Is the header compilable?
5790echo "$as_me:$LINENO: checking $ac_header usability" >&5
5791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5792cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h.  */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h.  */
5798$ac_includes_default
5799#include <$ac_header>
5800_ACEOF
5801rm -f conftest.$ac_objext
5802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803  (eval $ac_compile) 2>conftest.er1
5804  ac_status=$?
5805  grep -v '^ *+' conftest.er1 >conftest.err
5806  rm -f conftest.er1
5807  cat conftest.err >&5
5808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); } &&
5810         { ac_try='test -z "$ac_c_werror_flag"
5811                         || test ! -s conftest.err'
5812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813  (eval $ac_try) 2>&5
5814  ac_status=$?
5815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816  (exit $ac_status); }; } &&
5817         { ac_try='test -s conftest.$ac_objext'
5818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819  (eval $ac_try) 2>&5
5820  ac_status=$?
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); }; }; then
5823  ac_header_compiler=yes
5824else
5825  echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828ac_header_compiler=no
5829fi
5830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5832echo "${ECHO_T}$ac_header_compiler" >&6
5833
5834# Is the header present?
5835echo "$as_me:$LINENO: checking $ac_header presence" >&5
5836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5837cat >conftest.$ac_ext <<_ACEOF
5838/* confdefs.h.  */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h.  */
5843#include <$ac_header>
5844_ACEOF
5845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5846  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5847  ac_status=$?
5848  grep -v '^ *+' conftest.er1 >conftest.err
5849  rm -f conftest.er1
5850  cat conftest.err >&5
5851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); } >/dev/null; then
5853  if test -s conftest.err; then
5854    ac_cpp_err=$ac_c_preproc_warn_flag
5855    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5856  else
5857    ac_cpp_err=
5858  fi
5859else
5860  ac_cpp_err=yes
5861fi
5862if test -z "$ac_cpp_err"; then
5863  ac_header_preproc=yes
5864else
5865  echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868  ac_header_preproc=no
5869fi
5870rm -f conftest.err conftest.$ac_ext
5871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5872echo "${ECHO_T}$ac_header_preproc" >&6
5873
5874# So?  What about this header?
5875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5876  yes:no: )
5877    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5879    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5881    ac_header_preproc=yes
5882    ;;
5883  no:yes:* )
5884    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5886    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5887echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5888    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5890    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5891echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5892    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5894    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5896    (
5897      cat <<\_ASBOX
5898## ---------------------------------------------- ##
5899## Report this to orxonox-dev at mail.datacore.ch ##
5900## ---------------------------------------------- ##
5901_ASBOX
5902    ) |
5903      sed "s/^/$as_me: WARNING:     /" >&2
5904    ;;
5905esac
5906echo "$as_me:$LINENO: checking for $ac_header" >&5
5907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911  eval "$as_ac_Header=\$ac_header_preproc"
5912fi
5913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5915
5916fi
5917if test `eval echo '${'$as_ac_Header'}'` = yes; then
5918  cat >>confdefs.h <<_ACEOF
5919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5920_ACEOF
5921
5922else
5923  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5924echo "$as_me: error: cannot find opengl headers" >&2;}
5925   { (exit 1); exit 1; }; }
5926fi
5927
5928done
5929
5930
5931#    AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes)
5932#    if test x$FOUND_GLU = xyes ; then
5933      LIBS="$LIBS -lGLU"
5934#    else
5935#         echo "------------------"
5936#         echo "GLU library not found."
5937#         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5938#         echo "------------------"
5939#         exit -1
5940#    fi
5941
5942#--------#
5943# openAL #
5944#--------#
5945# checking for openAL-headers
5946
5947for ac_header in AL/al.h
5948do
5949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951  echo "$as_me:$LINENO: checking for $ac_header" >&5
5952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5953if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954  echo $ECHO_N "(cached) $ECHO_C" >&6
5955fi
5956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5958else
5959  # Is the header compilable?
5960echo "$as_me:$LINENO: checking $ac_header usability" >&5
5961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5962cat >conftest.$ac_ext <<_ACEOF
5963/* confdefs.h.  */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h.  */
5968$ac_includes_default
5969#include <$ac_header>
5970_ACEOF
5971rm -f conftest.$ac_objext
5972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973  (eval $ac_compile) 2>conftest.er1
5974  ac_status=$?
5975  grep -v '^ *+' conftest.er1 >conftest.err
5976  rm -f conftest.er1
5977  cat conftest.err >&5
5978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979  (exit $ac_status); } &&
5980         { ac_try='test -z "$ac_c_werror_flag"
5981                         || test ! -s conftest.err'
5982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983  (eval $ac_try) 2>&5
5984  ac_status=$?
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); }; } &&
5987         { ac_try='test -s conftest.$ac_objext'
5988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989  (eval $ac_try) 2>&5
5990  ac_status=$?
5991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992  (exit $ac_status); }; }; then
5993  ac_header_compiler=yes
5994else
5995  echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998ac_header_compiler=no
5999fi
6000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6002echo "${ECHO_T}$ac_header_compiler" >&6
6003
6004# Is the header present?
6005echo "$as_me:$LINENO: checking $ac_header presence" >&5
6006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6007cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h.  */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h.  */
6013#include <$ac_header>
6014_ACEOF
6015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6017  ac_status=$?
6018  grep -v '^ *+' conftest.er1 >conftest.err
6019  rm -f conftest.er1
6020  cat conftest.err >&5
6021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022  (exit $ac_status); } >/dev/null; then
6023  if test -s conftest.err; then
6024    ac_cpp_err=$ac_c_preproc_warn_flag
6025    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6026  else
6027    ac_cpp_err=
6028  fi
6029else
6030  ac_cpp_err=yes
6031fi
6032if test -z "$ac_cpp_err"; then
6033  ac_header_preproc=yes
6034else
6035  echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038  ac_header_preproc=no
6039fi
6040rm -f conftest.err conftest.$ac_ext
6041echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6042echo "${ECHO_T}$ac_header_preproc" >&6
6043
6044# So?  What about this header?
6045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6046  yes:no: )
6047    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6051    ac_header_preproc=yes
6052    ;;
6053  no:yes:* )
6054    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6056    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6057echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6058    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6060    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6061echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6062    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6064    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6066    (
6067      cat <<\_ASBOX
6068## ---------------------------------------------- ##
6069## Report this to orxonox-dev at mail.datacore.ch ##
6070## ---------------------------------------------- ##
6071_ASBOX
6072    ) |
6073      sed "s/^/$as_me: WARNING:     /" >&2
6074    ;;
6075esac
6076echo "$as_me:$LINENO: checking for $ac_header" >&5
6077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6078if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079  echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081  eval "$as_ac_Header=\$ac_header_preproc"
6082fi
6083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6085
6086fi
6087if test `eval echo '${'$as_ac_Header'}'` = yes; then
6088  cat >>confdefs.h <<_ACEOF
6089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6090_ACEOF
6091
6092else
6093  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6094echo "$as_me: error: cannot find openAL header." >&2;}
6095   { (exit 1); exit 1; }; }
6096fi
6097
6098done
6099
6100# checking for openAL-lib
6101  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6102echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6103if test "${ac_cv_lib_openal_main+set}" = set; then
6104  echo $ECHO_N "(cached) $ECHO_C" >&6
6105else
6106  ac_check_lib_save_LIBS=$LIBS
6107LIBS="-lopenal  $LIBS"
6108cat >conftest.$ac_ext <<_ACEOF
6109/* confdefs.h.  */
6110_ACEOF
6111cat confdefs.h >>conftest.$ac_ext
6112cat >>conftest.$ac_ext <<_ACEOF
6113/* end confdefs.h.  */
6114
6115
6116int
6117main ()
6118{
6119main ();
6120  ;
6121  return 0;
6122}
6123_ACEOF
6124rm -f conftest.$ac_objext conftest$ac_exeext
6125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126  (eval $ac_link) 2>conftest.er1
6127  ac_status=$?
6128  grep -v '^ *+' conftest.er1 >conftest.err
6129  rm -f conftest.er1
6130  cat conftest.err >&5
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); } &&
6133         { ac_try='test -z "$ac_c_werror_flag"
6134                         || test ! -s conftest.err'
6135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136  (eval $ac_try) 2>&5
6137  ac_status=$?
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }; } &&
6140         { ac_try='test -s conftest$ac_exeext'
6141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142  (eval $ac_try) 2>&5
6143  ac_status=$?
6144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145  (exit $ac_status); }; }; then
6146  ac_cv_lib_openal_main=yes
6147else
6148  echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151ac_cv_lib_openal_main=no
6152fi
6153rm -f conftest.err conftest.$ac_objext \
6154      conftest$ac_exeext conftest.$ac_ext
6155LIBS=$ac_check_lib_save_LIBS
6156fi
6157echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6158echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6159if test $ac_cv_lib_openal_main = yes; then
6160  FOUND_openal=yes
6161fi
6162
6163     if test x$FOUND_openal = xyes ; then
6164       LIBS="$LIBS -lopenal"
6165     else
6166        echo "------------------"
6167        echo "openal library not found."
6168        echo "please install the openal library, which can be found at http://www.openal.org"
6169        echo "------------------"
6170        exit -1
6171     fi
6172# checking for alut
6173
6174for ac_header in AL/alut.h
6175do
6176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6177if eval "test \"\${$as_ac_Header+set}\" = set"; then
6178  echo "$as_me:$LINENO: checking for $ac_header" >&5
6179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6180if eval "test \"\${$as_ac_Header+set}\" = set"; then
6181  echo $ECHO_N "(cached) $ECHO_C" >&6
6182fi
6183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6185else
6186  # Is the header compilable?
6187echo "$as_me:$LINENO: checking $ac_header usability" >&5
6188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6189cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h.  */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h.  */
6195$ac_includes_default
6196#include <$ac_header>
6197_ACEOF
6198rm -f conftest.$ac_objext
6199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200  (eval $ac_compile) 2>conftest.er1
6201  ac_status=$?
6202  grep -v '^ *+' conftest.er1 >conftest.err
6203  rm -f conftest.er1
6204  cat conftest.err >&5
6205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206  (exit $ac_status); } &&
6207         { ac_try='test -z "$ac_c_werror_flag"
6208                         || test ! -s conftest.err'
6209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210  (eval $ac_try) 2>&5
6211  ac_status=$?
6212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213  (exit $ac_status); }; } &&
6214         { ac_try='test -s conftest.$ac_objext'
6215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216  (eval $ac_try) 2>&5
6217  ac_status=$?
6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); }; }; then
6220  ac_header_compiler=yes
6221else
6222  echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225ac_header_compiler=no
6226fi
6227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6229echo "${ECHO_T}$ac_header_compiler" >&6
6230
6231# Is the header present?
6232echo "$as_me:$LINENO: checking $ac_header presence" >&5
6233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6234cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h.  */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h.  */
6240#include <$ac_header>
6241_ACEOF
6242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6243  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244  ac_status=$?
6245  grep -v '^ *+' conftest.er1 >conftest.err
6246  rm -f conftest.er1
6247  cat conftest.err >&5
6248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249  (exit $ac_status); } >/dev/null; then
6250  if test -s conftest.err; then
6251    ac_cpp_err=$ac_c_preproc_warn_flag
6252    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6253  else
6254    ac_cpp_err=
6255  fi
6256else
6257  ac_cpp_err=yes
6258fi
6259if test -z "$ac_cpp_err"; then
6260  ac_header_preproc=yes
6261else
6262  echo "$as_me: failed program was:" >&5
6263sed 's/^/| /' conftest.$ac_ext >&5
6264
6265  ac_header_preproc=no
6266fi
6267rm -f conftest.err conftest.$ac_ext
6268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6269echo "${ECHO_T}$ac_header_preproc" >&6
6270
6271# So?  What about this header?
6272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6273  yes:no: )
6274    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6276    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6278    ac_header_preproc=yes
6279    ;;
6280  no:yes:* )
6281    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6283    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6284echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6285    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6287    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6288echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6289    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6291    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6293    (
6294      cat <<\_ASBOX
6295## ---------------------------------------------- ##
6296## Report this to orxonox-dev at mail.datacore.ch ##
6297## ---------------------------------------------- ##
6298_ASBOX
6299    ) |
6300      sed "s/^/$as_me: WARNING:     /" >&2
6301    ;;
6302esac
6303echo "$as_me:$LINENO: checking for $ac_header" >&5
6304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306  echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308  eval "$as_ac_Header=\$ac_header_preproc"
6309fi
6310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312
6313fi
6314if test `eval echo '${'$as_ac_Header'}'` = yes; then
6315  cat >>confdefs.h <<_ACEOF
6316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317_ACEOF
6318
6319else
6320  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6321echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6322   { (exit 1); exit 1; }; }
6323fi
6324
6325done
6326
6327  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6328echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6329if test "${ac_cv_lib_alut_main+set}" = set; then
6330  echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332  ac_check_lib_save_LIBS=$LIBS
6333LIBS="-lalut  $LIBS"
6334cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h.  */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h.  */
6340
6341
6342int
6343main ()
6344{
6345main ();
6346  ;
6347  return 0;
6348}
6349_ACEOF
6350rm -f conftest.$ac_objext conftest$ac_exeext
6351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352  (eval $ac_link) 2>conftest.er1
6353  ac_status=$?
6354  grep -v '^ *+' conftest.er1 >conftest.err
6355  rm -f conftest.er1
6356  cat conftest.err >&5
6357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358  (exit $ac_status); } &&
6359         { ac_try='test -z "$ac_c_werror_flag"
6360                         || test ! -s conftest.err'
6361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362  (eval $ac_try) 2>&5
6363  ac_status=$?
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); }; } &&
6366         { ac_try='test -s conftest$ac_exeext'
6367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368  (eval $ac_try) 2>&5
6369  ac_status=$?
6370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); }; }; then
6372  ac_cv_lib_alut_main=yes
6373else
6374  echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377ac_cv_lib_alut_main=no
6378fi
6379rm -f conftest.err conftest.$ac_objext \
6380      conftest$ac_exeext conftest.$ac_ext
6381LIBS=$ac_check_lib_save_LIBS
6382fi
6383echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6384echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6385if test $ac_cv_lib_alut_main = yes; then
6386  FOUND_alut=yes
6387fi
6388
6389     if test x$FOUND_alut = xyes ; then
6390       LIBS="-lalut $LIBS"
6391     fi
6392
6393# checking for SDL
6394  echo "$as_me:$LINENO: checking for SDL-version" >&5
6395echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6396  SDL_VERSION=`sdl-config --version`
6397  echo $SDL_VERSION
6398
6399   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6400
6401for ac_header in SDL.h
6402do
6403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405  echo "$as_me:$LINENO: checking for $ac_header" >&5
6406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408  echo $ECHO_N "(cached) $ECHO_C" >&6
6409fi
6410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412else
6413  # Is the header compilable?
6414echo "$as_me:$LINENO: checking $ac_header usability" >&5
6415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6416cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h.  */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h.  */
6422$ac_includes_default
6423#include <$ac_header>
6424_ACEOF
6425rm -f conftest.$ac_objext
6426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427  (eval $ac_compile) 2>conftest.er1
6428  ac_status=$?
6429  grep -v '^ *+' conftest.er1 >conftest.err
6430  rm -f conftest.er1
6431  cat conftest.err >&5
6432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433  (exit $ac_status); } &&
6434         { ac_try='test -z "$ac_c_werror_flag"
6435                         || test ! -s conftest.err'
6436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437  (eval $ac_try) 2>&5
6438  ac_status=$?
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); }; } &&
6441         { ac_try='test -s conftest.$ac_objext'
6442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443  (eval $ac_try) 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); }; }; then
6447  ac_header_compiler=yes
6448else
6449  echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452ac_header_compiler=no
6453fi
6454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456echo "${ECHO_T}$ac_header_compiler" >&6
6457
6458# Is the header present?
6459echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6461cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h.  */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h.  */
6467#include <$ac_header>
6468_ACEOF
6469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6471  ac_status=$?
6472  grep -v '^ *+' conftest.er1 >conftest.err
6473  rm -f conftest.er1
6474  cat conftest.err >&5
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); } >/dev/null; then
6477  if test -s conftest.err; then
6478    ac_cpp_err=$ac_c_preproc_warn_flag
6479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6480  else
6481    ac_cpp_err=
6482  fi
6483else
6484  ac_cpp_err=yes
6485fi
6486if test -z "$ac_cpp_err"; then
6487  ac_header_preproc=yes
6488else
6489  echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492  ac_header_preproc=no
6493fi
6494rm -f conftest.err conftest.$ac_ext
6495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496echo "${ECHO_T}$ac_header_preproc" >&6
6497
6498# So?  What about this header?
6499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6500  yes:no: )
6501    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6503    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6505    ac_header_preproc=yes
6506    ;;
6507  no:yes:* )
6508    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6510    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6511echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6512    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6514    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6515echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6516    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6518    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6520    (
6521      cat <<\_ASBOX
6522## ---------------------------------------------- ##
6523## Report this to orxonox-dev at mail.datacore.ch ##
6524## ---------------------------------------------- ##
6525_ASBOX
6526    ) |
6527      sed "s/^/$as_me: WARNING:     /" >&2
6528    ;;
6529esac
6530echo "$as_me:$LINENO: checking for $ac_header" >&5
6531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533  echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
6535  eval "$as_ac_Header=\$ac_header_preproc"
6536fi
6537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539
6540fi
6541if test `eval echo '${'$as_ac_Header'}'` = yes; then
6542  cat >>confdefs.h <<_ACEOF
6543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6544_ACEOF
6545
6546else
6547
6548for ac_header in SDL/SDL.h
6549do
6550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551if eval "test \"\${$as_ac_Header+set}\" = set"; then
6552  echo "$as_me:$LINENO: checking for $ac_header" >&5
6553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6554if eval "test \"\${$as_ac_Header+set}\" = set"; then
6555  echo $ECHO_N "(cached) $ECHO_C" >&6
6556fi
6557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6559else
6560  # Is the header compilable?
6561echo "$as_me:$LINENO: checking $ac_header usability" >&5
6562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6563cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h.  */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h.  */
6569$ac_includes_default
6570#include <$ac_header>
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574  (eval $ac_compile) 2>conftest.er1
6575  ac_status=$?
6576  grep -v '^ *+' conftest.er1 >conftest.err
6577  rm -f conftest.er1
6578  cat conftest.err >&5
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); } &&
6581         { ac_try='test -z "$ac_c_werror_flag"
6582                         || test ! -s conftest.err'
6583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584  (eval $ac_try) 2>&5
6585  ac_status=$?
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); }; } &&
6588         { ac_try='test -s conftest.$ac_objext'
6589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590  (eval $ac_try) 2>&5
6591  ac_status=$?
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); }; }; then
6594  ac_header_compiler=yes
6595else
6596  echo "$as_me: failed program was:" >&5
6597sed 's/^/| /' conftest.$ac_ext >&5
6598
6599ac_header_compiler=no
6600fi
6601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6603echo "${ECHO_T}$ac_header_compiler" >&6
6604
6605# Is the header present?
6606echo "$as_me:$LINENO: checking $ac_header presence" >&5
6607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6608cat >conftest.$ac_ext <<_ACEOF
6609/* confdefs.h.  */
6610_ACEOF
6611cat confdefs.h >>conftest.$ac_ext
6612cat >>conftest.$ac_ext <<_ACEOF
6613/* end confdefs.h.  */
6614#include <$ac_header>
6615_ACEOF
6616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6617  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6618  ac_status=$?
6619  grep -v '^ *+' conftest.er1 >conftest.err
6620  rm -f conftest.er1
6621  cat conftest.err >&5
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); } >/dev/null; then
6624  if test -s conftest.err; then
6625    ac_cpp_err=$ac_c_preproc_warn_flag
6626    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6627  else
6628    ac_cpp_err=
6629  fi
6630else
6631  ac_cpp_err=yes
6632fi
6633if test -z "$ac_cpp_err"; then
6634  ac_header_preproc=yes
6635else
6636  echo "$as_me: failed program was:" >&5
6637sed 's/^/| /' conftest.$ac_ext >&5
6638
6639  ac_header_preproc=no
6640fi
6641rm -f conftest.err conftest.$ac_ext
6642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6643echo "${ECHO_T}$ac_header_preproc" >&6
6644
6645# So?  What about this header?
6646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6647  yes:no: )
6648    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6650    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6652    ac_header_preproc=yes
6653    ;;
6654  no:yes:* )
6655    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6657    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6658echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6659    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6661    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6662echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6663    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6665    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6667    (
6668      cat <<\_ASBOX
6669## ---------------------------------------------- ##
6670## Report this to orxonox-dev at mail.datacore.ch ##
6671## ---------------------------------------------- ##
6672_ASBOX
6673    ) |
6674      sed "s/^/$as_me: WARNING:     /" >&2
6675    ;;
6676esac
6677echo "$as_me:$LINENO: checking for $ac_header" >&5
6678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6679if eval "test \"\${$as_ac_Header+set}\" = set"; then
6680  echo $ECHO_N "(cached) $ECHO_C" >&6
6681else
6682  eval "$as_ac_Header=\$ac_header_preproc"
6683fi
6684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6686
6687fi
6688if test `eval echo '${'$as_ac_Header'}'` = yes; then
6689  cat >>confdefs.h <<_ACEOF
6690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6691_ACEOF
6692
6693else
6694  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
6695echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
6696   { (exit 1); exit 1; }; }
6697fi
6698
6699done
6700
6701fi
6702
6703done
6704
6705   LIBS="`sdl-config --libs` $LIBS"
6706   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
6707echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
6708if test "${ac_cv_lib_SDL_main+set}" = set; then
6709  echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711  ac_check_lib_save_LIBS=$LIBS
6712LIBS="-lSDL  $LIBS"
6713cat >conftest.$ac_ext <<_ACEOF
6714/* confdefs.h.  */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h.  */
6719
6720
6721int
6722main ()
6723{
6724main ();
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729rm -f conftest.$ac_objext conftest$ac_exeext
6730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731  (eval $ac_link) 2>conftest.er1
6732  ac_status=$?
6733  grep -v '^ *+' conftest.er1 >conftest.err
6734  rm -f conftest.er1
6735  cat conftest.err >&5
6736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737  (exit $ac_status); } &&
6738         { ac_try='test -z "$ac_c_werror_flag"
6739                         || test ! -s conftest.err'
6740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741  (eval $ac_try) 2>&5
6742  ac_status=$?
6743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744  (exit $ac_status); }; } &&
6745         { ac_try='test -s conftest$ac_exeext'
6746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747  (eval $ac_try) 2>&5
6748  ac_status=$?
6749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750  (exit $ac_status); }; }; then
6751  ac_cv_lib_SDL_main=yes
6752else
6753  echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756ac_cv_lib_SDL_main=no
6757fi
6758rm -f conftest.err conftest.$ac_objext \
6759      conftest$ac_exeext conftest.$ac_ext
6760LIBS=$ac_check_lib_save_LIBS
6761fi
6762echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
6763echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
6764if test $ac_cv_lib_SDL_main = yes; then
6765  FOUND_SDL=yes
6766fi
6767
6768    if test x$FOUND_SDL = xyes ; then
6769     echo `sdl-config --libs`
6770    else
6771        echo "------------------"
6772        echo "SDL library not found."
6773        echo "please install the SDL library, which can be found at http://www.libsdl.org"
6774        echo "------------------"
6775        exit -1
6776     fi
6777
6778    ;;
6779
6780#############
6781#-----------#
6782# MAC -OS X #
6783#-----------#
6784#############
6785 *darwin*)
6786 echo "OS X detected"
6787
6788 osX="yes"
6789
6790 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
6791# checking gl header
6792
6793for ac_header in OpenGL/gl.h
6794do
6795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6796if eval "test \"\${$as_ac_Header+set}\" = set"; then
6797  echo "$as_me:$LINENO: checking for $ac_header" >&5
6798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6799if eval "test \"\${$as_ac_Header+set}\" = set"; then
6800  echo $ECHO_N "(cached) $ECHO_C" >&6
6801fi
6802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6804else
6805  # Is the header compilable?
6806echo "$as_me:$LINENO: checking $ac_header usability" >&5
6807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6808cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h.  */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h.  */
6814$ac_includes_default
6815#include <$ac_header>
6816_ACEOF
6817rm -f conftest.$ac_objext
6818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819  (eval $ac_compile) 2>conftest.er1
6820  ac_status=$?
6821  grep -v '^ *+' conftest.er1 >conftest.err
6822  rm -f conftest.er1
6823  cat conftest.err >&5
6824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825  (exit $ac_status); } &&
6826         { ac_try='test -z "$ac_c_werror_flag"
6827                         || test ! -s conftest.err'
6828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829  (eval $ac_try) 2>&5
6830  ac_status=$?
6831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832  (exit $ac_status); }; } &&
6833         { ac_try='test -s conftest.$ac_objext'
6834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835  (eval $ac_try) 2>&5
6836  ac_status=$?
6837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); }; }; then
6839  ac_header_compiler=yes
6840else
6841  echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
6844ac_header_compiler=no
6845fi
6846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6848echo "${ECHO_T}$ac_header_compiler" >&6
6849
6850# Is the header present?
6851echo "$as_me:$LINENO: checking $ac_header presence" >&5
6852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6853cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h.  */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h.  */
6859#include <$ac_header>
6860_ACEOF
6861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6862  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6863  ac_status=$?
6864  grep -v '^ *+' conftest.er1 >conftest.err
6865  rm -f conftest.er1
6866  cat conftest.err >&5
6867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868  (exit $ac_status); } >/dev/null; then
6869  if test -s conftest.err; then
6870    ac_cpp_err=$ac_c_preproc_warn_flag
6871    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6872  else
6873    ac_cpp_err=
6874  fi
6875else
6876  ac_cpp_err=yes
6877fi
6878if test -z "$ac_cpp_err"; then
6879  ac_header_preproc=yes
6880else
6881  echo "$as_me: failed program was:" >&5
6882sed 's/^/| /' conftest.$ac_ext >&5
6883
6884  ac_header_preproc=no
6885fi
6886rm -f conftest.err conftest.$ac_ext
6887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6888echo "${ECHO_T}$ac_header_preproc" >&6
6889
6890# So?  What about this header?
6891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6892  yes:no: )
6893    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6895    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6897    ac_header_preproc=yes
6898    ;;
6899  no:yes:* )
6900    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6902    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6903echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6904    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6906    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6907echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6908    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6910    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6912    (
6913      cat <<\_ASBOX
6914## ---------------------------------------------- ##
6915## Report this to orxonox-dev at mail.datacore.ch ##
6916## ---------------------------------------------- ##
6917_ASBOX
6918    ) |
6919      sed "s/^/$as_me: WARNING:     /" >&2
6920    ;;
6921esac
6922echo "$as_me:$LINENO: checking for $ac_header" >&5
6923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6924if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925  echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927  eval "$as_ac_Header=\$ac_header_preproc"
6928fi
6929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6931
6932fi
6933if test `eval echo '${'$as_ac_Header'}'` = yes; then
6934  cat >>confdefs.h <<_ACEOF
6935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6936_ACEOF
6937
6938else
6939  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6940echo "$as_me: error: cannot find opengl headers" >&2;}
6941   { (exit 1); exit 1; }; }
6942fi
6943
6944done
6945
6946# cheking for GLU-header
6947
6948for ac_header in OpenGL/glu.h
6949do
6950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6951if eval "test \"\${$as_ac_Header+set}\" = set"; then
6952  echo "$as_me:$LINENO: checking for $ac_header" >&5
6953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6954if eval "test \"\${$as_ac_Header+set}\" = set"; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956fi
6957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6959else
6960  # Is the header compilable?
6961echo "$as_me:$LINENO: checking $ac_header usability" >&5
6962echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6963cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h.  */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h.  */
6969$ac_includes_default
6970#include <$ac_header>
6971_ACEOF
6972rm -f conftest.$ac_objext
6973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974  (eval $ac_compile) 2>conftest.er1
6975  ac_status=$?
6976  grep -v '^ *+' conftest.er1 >conftest.err
6977  rm -f conftest.er1
6978  cat conftest.err >&5
6979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980  (exit $ac_status); } &&
6981         { ac_try='test -z "$ac_c_werror_flag"
6982                         || test ! -s conftest.err'
6983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984  (eval $ac_try) 2>&5
6985  ac_status=$?
6986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987  (exit $ac_status); }; } &&
6988         { ac_try='test -s conftest.$ac_objext'
6989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990  (eval $ac_try) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }; }; then
6994  ac_header_compiler=yes
6995else
6996  echo "$as_me: failed program was:" >&5
6997sed 's/^/| /' conftest.$ac_ext >&5
6998
6999ac_header_compiler=no
7000fi
7001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7003echo "${ECHO_T}$ac_header_compiler" >&6
7004
7005# Is the header present?
7006echo "$as_me:$LINENO: checking $ac_header presence" >&5
7007echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7008cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h.  */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h.  */
7014#include <$ac_header>
7015_ACEOF
7016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7017  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7018  ac_status=$?
7019  grep -v '^ *+' conftest.er1 >conftest.err
7020  rm -f conftest.er1
7021  cat conftest.err >&5
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); } >/dev/null; then
7024  if test -s conftest.err; then
7025    ac_cpp_err=$ac_c_preproc_warn_flag
7026    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7027  else
7028    ac_cpp_err=
7029  fi
7030else
7031  ac_cpp_err=yes
7032fi
7033if test -z "$ac_cpp_err"; then
7034  ac_header_preproc=yes
7035else
7036  echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039  ac_header_preproc=no
7040fi
7041rm -f conftest.err conftest.$ac_ext
7042echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7043echo "${ECHO_T}$ac_header_preproc" >&6
7044
7045# So?  What about this header?
7046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7047  yes:no: )
7048    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7050    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7051echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7052    ac_header_preproc=yes
7053    ;;
7054  no:yes:* )
7055    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7057    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7058echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7059    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7060echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7061    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7062echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7063    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7064echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7065    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7066echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7067    (
7068      cat <<\_ASBOX
7069## ---------------------------------------------- ##
7070## Report this to orxonox-dev at mail.datacore.ch ##
7071## ---------------------------------------------- ##
7072_ASBOX
7073    ) |
7074      sed "s/^/$as_me: WARNING:     /" >&2
7075    ;;
7076esac
7077echo "$as_me:$LINENO: checking for $ac_header" >&5
7078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7079if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080  echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082  eval "$as_ac_Header=\$ac_header_preproc"
7083fi
7084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7086
7087fi
7088if test `eval echo '${'$as_ac_Header'}'` = yes; then
7089  cat >>confdefs.h <<_ACEOF
7090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7091_ACEOF
7092
7093else
7094  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7095echo "$as_me: error: cannot find opengl headers" >&2;}
7096   { (exit 1); exit 1; }; }
7097fi
7098
7099done
7100
7101
7102   LIBS="$LIBS -framework OpenGL"
7103
7104
7105## SDL-check
7106       SDL_CFLAGS=`sdl-config --cflags`
7107       SDL_LIBS=`sdl-config --libs`
7108       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7109       LIBS="$LIBS $SDL_LIBS"
7110
7111
7112# checking for SDL-headers
7113#    AC_CHECK_HEADERS(SDL/SDL.h ,,
7114#      [AC_MSG_ERROR([cannot find SDL headers]) ])
7115
7116## checking for SDL
7117#    SDL_VERSION=1.2.7
7118#    AM_PATH_SDL($SDL_VERSION,
7119#      :,
7120#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
7121#      )
7122
7123
7124    ;;
7125
7126  *)
7127    ;;
7128esac
7129
7130
7131
7132###################################
7133## CHECKING FOR HEADERS AND LIBS ##
7134###################################
7135
7136#---------#
7137# SDL_ttf #
7138#---------#
7139# checking for SDL_ttf-headers
7140
7141for ac_header in SDL_ttf.h
7142do
7143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7144if eval "test \"\${$as_ac_Header+set}\" = set"; then
7145  echo "$as_me:$LINENO: checking for $ac_header" >&5
7146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7147if eval "test \"\${$as_ac_Header+set}\" = set"; then
7148  echo $ECHO_N "(cached) $ECHO_C" >&6
7149fi
7150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7152else
7153  # Is the header compilable?
7154echo "$as_me:$LINENO: checking $ac_header usability" >&5
7155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7156cat >conftest.$ac_ext <<_ACEOF
7157/* confdefs.h.  */
7158_ACEOF
7159cat confdefs.h >>conftest.$ac_ext
7160cat >>conftest.$ac_ext <<_ACEOF
7161/* end confdefs.h.  */
7162$ac_includes_default
7163#include <$ac_header>
7164_ACEOF
7165rm -f conftest.$ac_objext
7166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167  (eval $ac_compile) 2>conftest.er1
7168  ac_status=$?
7169  grep -v '^ *+' conftest.er1 >conftest.err
7170  rm -f conftest.er1
7171  cat conftest.err >&5
7172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173  (exit $ac_status); } &&
7174         { ac_try='test -z "$ac_c_werror_flag"
7175                         || test ! -s conftest.err'
7176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177  (eval $ac_try) 2>&5
7178  ac_status=$?
7179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180  (exit $ac_status); }; } &&
7181         { ac_try='test -s conftest.$ac_objext'
7182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183  (eval $ac_try) 2>&5
7184  ac_status=$?
7185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186  (exit $ac_status); }; }; then
7187  ac_header_compiler=yes
7188else
7189  echo "$as_me: failed program was:" >&5
7190sed 's/^/| /' conftest.$ac_ext >&5
7191
7192ac_header_compiler=no
7193fi
7194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7196echo "${ECHO_T}$ac_header_compiler" >&6
7197
7198# Is the header present?
7199echo "$as_me:$LINENO: checking $ac_header presence" >&5
7200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7201cat >conftest.$ac_ext <<_ACEOF
7202/* confdefs.h.  */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h.  */
7207#include <$ac_header>
7208_ACEOF
7209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7210  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7211  ac_status=$?
7212  grep -v '^ *+' conftest.er1 >conftest.err
7213  rm -f conftest.er1
7214  cat conftest.err >&5
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } >/dev/null; then
7217  if test -s conftest.err; then
7218    ac_cpp_err=$ac_c_preproc_warn_flag
7219    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7220  else
7221    ac_cpp_err=
7222  fi
7223else
7224  ac_cpp_err=yes
7225fi
7226if test -z "$ac_cpp_err"; then
7227  ac_header_preproc=yes
7228else
7229  echo "$as_me: failed program was:" >&5
7230sed 's/^/| /' conftest.$ac_ext >&5
7231
7232  ac_header_preproc=no
7233fi
7234rm -f conftest.err conftest.$ac_ext
7235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7236echo "${ECHO_T}$ac_header_preproc" >&6
7237
7238# So?  What about this header?
7239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7240  yes:no: )
7241    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7243    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7245    ac_header_preproc=yes
7246    ;;
7247  no:yes:* )
7248    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7250    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7251echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7252    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7254    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7255echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7256    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7258    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7260    (
7261      cat <<\_ASBOX
7262## ---------------------------------------------- ##
7263## Report this to orxonox-dev at mail.datacore.ch ##
7264## ---------------------------------------------- ##
7265_ASBOX
7266    ) |
7267      sed "s/^/$as_me: WARNING:     /" >&2
7268    ;;
7269esac
7270echo "$as_me:$LINENO: checking for $ac_header" >&5
7271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7272if eval "test \"\${$as_ac_Header+set}\" = set"; then
7273  echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275  eval "$as_ac_Header=\$ac_header_preproc"
7276fi
7277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7279
7280fi
7281if test `eval echo '${'$as_ac_Header'}'` = yes; then
7282  cat >>confdefs.h <<_ACEOF
7283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284_ACEOF
7285
7286else
7287
7288for ac_header in SDL/SDL_ttf.h
7289do
7290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292  echo "$as_me:$LINENO: checking for $ac_header" >&5
7293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296fi
7297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299else
7300  # Is the header compilable?
7301echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h.  */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h.  */
7309$ac_includes_default
7310#include <$ac_header>
7311_ACEOF
7312rm -f conftest.$ac_objext
7313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314  (eval $ac_compile) 2>conftest.er1
7315  ac_status=$?
7316  grep -v '^ *+' conftest.er1 >conftest.err
7317  rm -f conftest.er1
7318  cat conftest.err >&5
7319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320  (exit $ac_status); } &&
7321         { ac_try='test -z "$ac_c_werror_flag"
7322                         || test ! -s conftest.err'
7323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324  (eval $ac_try) 2>&5
7325  ac_status=$?
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); }; } &&
7328         { ac_try='test -s conftest.$ac_objext'
7329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330  (eval $ac_try) 2>&5
7331  ac_status=$?
7332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333  (exit $ac_status); }; }; then
7334  ac_header_compiler=yes
7335else
7336  echo "$as_me: failed program was:" >&5
7337sed 's/^/| /' conftest.$ac_ext >&5
7338
7339ac_header_compiler=no
7340fi
7341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7343echo "${ECHO_T}$ac_header_compiler" >&6
7344
7345# Is the header present?
7346echo "$as_me:$LINENO: checking $ac_header presence" >&5
7347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7348cat >conftest.$ac_ext <<_ACEOF
7349/* confdefs.h.  */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h.  */
7354#include <$ac_header>
7355_ACEOF
7356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358  ac_status=$?
7359  grep -v '^ *+' conftest.er1 >conftest.err
7360  rm -f conftest.er1
7361  cat conftest.err >&5
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); } >/dev/null; then
7364  if test -s conftest.err; then
7365    ac_cpp_err=$ac_c_preproc_warn_flag
7366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7367  else
7368    ac_cpp_err=
7369  fi
7370else
7371  ac_cpp_err=yes
7372fi
7373if test -z "$ac_cpp_err"; then
7374  ac_header_preproc=yes
7375else
7376  echo "$as_me: failed program was:" >&5
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379  ac_header_preproc=no
7380fi
7381rm -f conftest.err conftest.$ac_ext
7382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7383echo "${ECHO_T}$ac_header_preproc" >&6
7384
7385# So?  What about this header?
7386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7387  yes:no: )
7388    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7392    ac_header_preproc=yes
7393    ;;
7394  no:yes:* )
7395    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7397    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7398echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7399    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7401    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7402echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7405    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7407    (
7408      cat <<\_ASBOX
7409## ---------------------------------------------- ##
7410## Report this to orxonox-dev at mail.datacore.ch ##
7411## ---------------------------------------------- ##
7412_ASBOX
7413    ) |
7414      sed "s/^/$as_me: WARNING:     /" >&2
7415    ;;
7416esac
7417echo "$as_me:$LINENO: checking for $ac_header" >&5
7418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419if eval "test \"\${$as_ac_Header+set}\" = set"; then
7420  echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422  eval "$as_ac_Header=\$ac_header_preproc"
7423fi
7424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7426
7427fi
7428if test `eval echo '${'$as_ac_Header'}'` = yes; then
7429  cat >>confdefs.h <<_ACEOF
7430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7431_ACEOF
7432
7433else
7434  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7435echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7436   { (exit 1); exit 1; }; }
7437fi
7438
7439done
7440
7441fi
7442
7443done
7444
7445# checking for SDL_ttf-lib
7446  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7447echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7448if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  ac_check_lib_save_LIBS=$LIBS
7452LIBS="-lSDL_ttf  $LIBS"
7453cat >conftest.$ac_ext <<_ACEOF
7454/* confdefs.h.  */
7455_ACEOF
7456cat confdefs.h >>conftest.$ac_ext
7457cat >>conftest.$ac_ext <<_ACEOF
7458/* end confdefs.h.  */
7459
7460/* Override any gcc2 internal prototype to avoid an error.  */
7461#ifdef __cplusplus
7462extern "C"
7463#endif
7464/* We use char because int might match the return type of a gcc2
7465   builtin and then its argument prototype would still apply.  */
7466char TTF_OpenFont ();
7467int
7468main ()
7469{
7470TTF_OpenFont ();
7471  ;
7472  return 0;
7473}
7474_ACEOF
7475rm -f conftest.$ac_objext conftest$ac_exeext
7476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477  (eval $ac_link) 2>conftest.er1
7478  ac_status=$?
7479  grep -v '^ *+' conftest.er1 >conftest.err
7480  rm -f conftest.er1
7481  cat conftest.err >&5
7482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483  (exit $ac_status); } &&
7484         { ac_try='test -z "$ac_c_werror_flag"
7485                         || test ! -s conftest.err'
7486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487  (eval $ac_try) 2>&5
7488  ac_status=$?
7489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490  (exit $ac_status); }; } &&
7491         { ac_try='test -s conftest$ac_exeext'
7492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493  (eval $ac_try) 2>&5
7494  ac_status=$?
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); }; }; then
7497  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7498else
7499  echo "$as_me: failed program was:" >&5
7500sed 's/^/| /' conftest.$ac_ext >&5
7501
7502ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7503fi
7504rm -f conftest.err conftest.$ac_objext \
7505      conftest$ac_exeext conftest.$ac_ext
7506LIBS=$ac_check_lib_save_LIBS
7507fi
7508echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7509echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7510if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7511  FOUND_SDL_ttf=yes
7512fi
7513
7514     if test x$FOUND_SDL_ttf = xyes ; then
7515       LIBS="$LIBS -lSDL_ttf"
7516     else
7517        echo "------------------"
7518        echo "SDL_ttf library not found."
7519        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7520        echo "------------------"
7521        exit -1
7522     fi
7523
7524#-----------#
7525# SDL_Image #
7526#-----------#
7527# checking for SDL_image-headers
7528
7529for ac_header in SDL_image.h
7530do
7531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532if eval "test \"\${$as_ac_Header+set}\" = set"; then
7533  echo "$as_me:$LINENO: checking for $ac_header" >&5
7534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7535if eval "test \"\${$as_ac_Header+set}\" = set"; then
7536  echo $ECHO_N "(cached) $ECHO_C" >&6
7537fi
7538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7540else
7541  # Is the header compilable?
7542echo "$as_me:$LINENO: checking $ac_header usability" >&5
7543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7544cat >conftest.$ac_ext <<_ACEOF
7545/* confdefs.h.  */
7546_ACEOF
7547cat confdefs.h >>conftest.$ac_ext
7548cat >>conftest.$ac_ext <<_ACEOF
7549/* end confdefs.h.  */
7550$ac_includes_default
7551#include <$ac_header>
7552_ACEOF
7553rm -f conftest.$ac_objext
7554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555  (eval $ac_compile) 2>conftest.er1
7556  ac_status=$?
7557  grep -v '^ *+' conftest.er1 >conftest.err
7558  rm -f conftest.er1
7559  cat conftest.err >&5
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); } &&
7562         { ac_try='test -z "$ac_c_werror_flag"
7563                         || test ! -s conftest.err'
7564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565  (eval $ac_try) 2>&5
7566  ac_status=$?
7567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568  (exit $ac_status); }; } &&
7569         { ac_try='test -s conftest.$ac_objext'
7570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571  (eval $ac_try) 2>&5
7572  ac_status=$?
7573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574  (exit $ac_status); }; }; then
7575  ac_header_compiler=yes
7576else
7577  echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580ac_header_compiler=no
7581fi
7582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7584echo "${ECHO_T}$ac_header_compiler" >&6
7585
7586# Is the header present?
7587echo "$as_me:$LINENO: checking $ac_header presence" >&5
7588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7589cat >conftest.$ac_ext <<_ACEOF
7590/* confdefs.h.  */
7591_ACEOF
7592cat confdefs.h >>conftest.$ac_ext
7593cat >>conftest.$ac_ext <<_ACEOF
7594/* end confdefs.h.  */
7595#include <$ac_header>
7596_ACEOF
7597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7598  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7599  ac_status=$?
7600  grep -v '^ *+' conftest.er1 >conftest.err
7601  rm -f conftest.er1
7602  cat conftest.err >&5
7603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604  (exit $ac_status); } >/dev/null; then
7605  if test -s conftest.err; then
7606    ac_cpp_err=$ac_c_preproc_warn_flag
7607    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7608  else
7609    ac_cpp_err=
7610  fi
7611else
7612  ac_cpp_err=yes
7613fi
7614if test -z "$ac_cpp_err"; then
7615  ac_header_preproc=yes
7616else
7617  echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620  ac_header_preproc=no
7621fi
7622rm -f conftest.err conftest.$ac_ext
7623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7624echo "${ECHO_T}$ac_header_preproc" >&6
7625
7626# So?  What about this header?
7627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7628  yes:no: )
7629    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7631    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7633    ac_header_preproc=yes
7634    ;;
7635  no:yes:* )
7636    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7638    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7639echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7640    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7642    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7643echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7644    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7646    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7648    (
7649      cat <<\_ASBOX
7650## ---------------------------------------------- ##
7651## Report this to orxonox-dev at mail.datacore.ch ##
7652## ---------------------------------------------- ##
7653_ASBOX
7654    ) |
7655      sed "s/^/$as_me: WARNING:     /" >&2
7656    ;;
7657esac
7658echo "$as_me:$LINENO: checking for $ac_header" >&5
7659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7660if eval "test \"\${$as_ac_Header+set}\" = set"; then
7661  echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663  eval "$as_ac_Header=\$ac_header_preproc"
7664fi
7665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7667
7668fi
7669if test `eval echo '${'$as_ac_Header'}'` = yes; then
7670  cat >>confdefs.h <<_ACEOF
7671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7672_ACEOF
7673
7674else
7675
7676for ac_header in SDL/SDL_image.h
7677do
7678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7679if eval "test \"\${$as_ac_Header+set}\" = set"; then
7680  echo "$as_me:$LINENO: checking for $ac_header" >&5
7681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7682if eval "test \"\${$as_ac_Header+set}\" = set"; then
7683  echo $ECHO_N "(cached) $ECHO_C" >&6
7684fi
7685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7687else
7688  # Is the header compilable?
7689echo "$as_me:$LINENO: checking $ac_header usability" >&5
7690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7691cat >conftest.$ac_ext <<_ACEOF
7692/* confdefs.h.  */
7693_ACEOF
7694cat confdefs.h >>conftest.$ac_ext
7695cat >>conftest.$ac_ext <<_ACEOF
7696/* end confdefs.h.  */
7697$ac_includes_default
7698#include <$ac_header>
7699_ACEOF
7700rm -f conftest.$ac_objext
7701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7702  (eval $ac_compile) 2>conftest.er1
7703  ac_status=$?
7704  grep -v '^ *+' conftest.er1 >conftest.err
7705  rm -f conftest.er1
7706  cat conftest.err >&5
7707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); } &&
7709         { ac_try='test -z "$ac_c_werror_flag"
7710                         || test ! -s conftest.err'
7711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712  (eval $ac_try) 2>&5
7713  ac_status=$?
7714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715  (exit $ac_status); }; } &&
7716         { ac_try='test -s conftest.$ac_objext'
7717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718  (eval $ac_try) 2>&5
7719  ac_status=$?
7720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721  (exit $ac_status); }; }; then
7722  ac_header_compiler=yes
7723else
7724  echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
7727ac_header_compiler=no
7728fi
7729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7731echo "${ECHO_T}$ac_header_compiler" >&6
7732
7733# Is the header present?
7734echo "$as_me:$LINENO: checking $ac_header presence" >&5
7735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7736cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h.  */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h.  */
7742#include <$ac_header>
7743_ACEOF
7744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7745  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7746  ac_status=$?
7747  grep -v '^ *+' conftest.er1 >conftest.err
7748  rm -f conftest.er1
7749  cat conftest.err >&5
7750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751  (exit $ac_status); } >/dev/null; then
7752  if test -s conftest.err; then
7753    ac_cpp_err=$ac_c_preproc_warn_flag
7754    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7755  else
7756    ac_cpp_err=
7757  fi
7758else
7759  ac_cpp_err=yes
7760fi
7761if test -z "$ac_cpp_err"; then
7762  ac_header_preproc=yes
7763else
7764  echo "$as_me: failed program was:" >&5
7765sed 's/^/| /' conftest.$ac_ext >&5
7766
7767  ac_header_preproc=no
7768fi
7769rm -f conftest.err conftest.$ac_ext
7770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7771echo "${ECHO_T}$ac_header_preproc" >&6
7772
7773# So?  What about this header?
7774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7775  yes:no: )
7776    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7778    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7780    ac_header_preproc=yes
7781    ;;
7782  no:yes:* )
7783    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7785    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7786echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7787    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7789    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7790echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7793    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7795    (
7796      cat <<\_ASBOX
7797## ---------------------------------------------- ##
7798## Report this to orxonox-dev at mail.datacore.ch ##
7799## ---------------------------------------------- ##
7800_ASBOX
7801    ) |
7802      sed "s/^/$as_me: WARNING:     /" >&2
7803    ;;
7804esac
7805echo "$as_me:$LINENO: checking for $ac_header" >&5
7806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7807if eval "test \"\${$as_ac_Header+set}\" = set"; then
7808  echo $ECHO_N "(cached) $ECHO_C" >&6
7809else
7810  eval "$as_ac_Header=\$ac_header_preproc"
7811fi
7812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7814
7815fi
7816if test `eval echo '${'$as_ac_Header'}'` = yes; then
7817  cat >>confdefs.h <<_ACEOF
7818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7819_ACEOF
7820
7821else
7822  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
7823echo "$as_me: error: SDL_image header not found." >&2;}
7824   { (exit 1); exit 1; }; }
7825fi
7826
7827done
7828
7829fi
7830
7831done
7832
7833# checking for SDL_image-lib
7834echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
7835echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
7836if test "${ac_cv_lib_SDL_image_main+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839  ac_check_lib_save_LIBS=$LIBS
7840LIBS="-lSDL_image  $LIBS"
7841cat >conftest.$ac_ext <<_ACEOF
7842/* confdefs.h.  */
7843_ACEOF
7844cat confdefs.h >>conftest.$ac_ext
7845cat >>conftest.$ac_ext <<_ACEOF
7846/* end confdefs.h.  */
7847
7848
7849int
7850main ()
7851{
7852main ();
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857rm -f conftest.$ac_objext conftest$ac_exeext
7858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859  (eval $ac_link) 2>conftest.er1
7860  ac_status=$?
7861  grep -v '^ *+' conftest.er1 >conftest.err
7862  rm -f conftest.er1
7863  cat conftest.err >&5
7864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865  (exit $ac_status); } &&
7866         { ac_try='test -z "$ac_c_werror_flag"
7867                         || test ! -s conftest.err'
7868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869  (eval $ac_try) 2>&5
7870  ac_status=$?
7871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872  (exit $ac_status); }; } &&
7873         { ac_try='test -s conftest$ac_exeext'
7874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875  (eval $ac_try) 2>&5
7876  ac_status=$?
7877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878  (exit $ac_status); }; }; then
7879  ac_cv_lib_SDL_image_main=yes
7880else
7881  echo "$as_me: failed program was:" >&5
7882sed 's/^/| /' conftest.$ac_ext >&5
7883
7884ac_cv_lib_SDL_image_main=no
7885fi
7886rm -f conftest.err conftest.$ac_objext \
7887      conftest$ac_exeext conftest.$ac_ext
7888LIBS=$ac_check_lib_save_LIBS
7889fi
7890echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
7891echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
7892if test $ac_cv_lib_SDL_image_main = yes; then
7893  FOUND_SDL_image=yes
7894fi
7895
7896   if test x$FOUND_SDL_image = xyes ; then
7897     LIBS="$LIBS -lSDL_image"
7898   else
7899      echo "------------------"
7900      echo "SDL_image library not found."
7901      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
7902      echo "------------------"
7903      exit -1
7904   fi
7905
7906#-----#
7907# ogg #
7908#-----#
7909# checking for ogg-headers
7910
7911for ac_header in ogg/ogg.h
7912do
7913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914if eval "test \"\${$as_ac_Header+set}\" = set"; then
7915  echo "$as_me:$LINENO: checking for $ac_header" >&5
7916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7917if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918  echo $ECHO_N "(cached) $ECHO_C" >&6
7919fi
7920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7922else
7923  # Is the header compilable?
7924echo "$as_me:$LINENO: checking $ac_header usability" >&5
7925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7926cat >conftest.$ac_ext <<_ACEOF
7927/* confdefs.h.  */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h.  */
7932$ac_includes_default
7933#include <$ac_header>
7934_ACEOF
7935rm -f conftest.$ac_objext
7936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937  (eval $ac_compile) 2>conftest.er1
7938  ac_status=$?
7939  grep -v '^ *+' conftest.er1 >conftest.err
7940  rm -f conftest.er1
7941  cat conftest.err >&5
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); } &&
7944         { ac_try='test -z "$ac_c_werror_flag"
7945                         || test ! -s conftest.err'
7946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947  (eval $ac_try) 2>&5
7948  ac_status=$?
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); }; } &&
7951         { ac_try='test -s conftest.$ac_objext'
7952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953  (eval $ac_try) 2>&5
7954  ac_status=$?
7955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956  (exit $ac_status); }; }; then
7957  ac_header_compiler=yes
7958else
7959  echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
7962ac_header_compiler=no
7963fi
7964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7966echo "${ECHO_T}$ac_header_compiler" >&6
7967
7968# Is the header present?
7969echo "$as_me:$LINENO: checking $ac_header presence" >&5
7970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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#include <$ac_header>
7978_ACEOF
7979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7981  ac_status=$?
7982  grep -v '^ *+' conftest.er1 >conftest.err
7983  rm -f conftest.er1
7984  cat conftest.err >&5
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); } >/dev/null; then
7987  if test -s conftest.err; then
7988    ac_cpp_err=$ac_c_preproc_warn_flag
7989    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7990  else
7991    ac_cpp_err=
7992  fi
7993else
7994  ac_cpp_err=yes
7995fi
7996if test -z "$ac_cpp_err"; then
7997  ac_header_preproc=yes
7998else
7999  echo "$as_me: failed program was:" >&5
8000sed 's/^/| /' conftest.$ac_ext >&5
8001
8002  ac_header_preproc=no
8003fi
8004rm -f conftest.err conftest.$ac_ext
8005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8006echo "${ECHO_T}$ac_header_preproc" >&6
8007
8008# So?  What about this header?
8009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8010  yes:no: )
8011    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8015    ac_header_preproc=yes
8016    ;;
8017  no:yes:* )
8018    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8020    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8021echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8022    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8024    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8025echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8026    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8028    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8030    (
8031      cat <<\_ASBOX
8032## ---------------------------------------------- ##
8033## Report this to orxonox-dev at mail.datacore.ch ##
8034## ---------------------------------------------- ##
8035_ASBOX
8036    ) |
8037      sed "s/^/$as_me: WARNING:     /" >&2
8038    ;;
8039esac
8040echo "$as_me:$LINENO: checking for $ac_header" >&5
8041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8042if eval "test \"\${$as_ac_Header+set}\" = set"; then
8043  echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045  eval "$as_ac_Header=\$ac_header_preproc"
8046fi
8047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8049
8050fi
8051if test `eval echo '${'$as_ac_Header'}'` = yes; then
8052  cat >>confdefs.h <<_ACEOF
8053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8054_ACEOF
8055
8056else
8057  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
8058echo "$as_me: error: cannot find ogg header." >&2;}
8059   { (exit 1); exit 1; }; }
8060fi
8061
8062done
8063
8064# checking for ogg-lib
8065  echo "$as_me:$LINENO: checking for main in -logg" >&5
8066echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
8067if test "${ac_cv_lib_ogg_main+set}" = set; then
8068  echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070  ac_check_lib_save_LIBS=$LIBS
8071LIBS="-logg  $LIBS"
8072cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h.  */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h.  */
8078
8079
8080int
8081main ()
8082{
8083main ();
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088rm -f conftest.$ac_objext conftest$ac_exeext
8089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090  (eval $ac_link) 2>conftest.er1
8091  ac_status=$?
8092  grep -v '^ *+' conftest.er1 >conftest.err
8093  rm -f conftest.er1
8094  cat conftest.err >&5
8095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096  (exit $ac_status); } &&
8097         { ac_try='test -z "$ac_c_werror_flag"
8098                         || test ! -s conftest.err'
8099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100  (eval $ac_try) 2>&5
8101  ac_status=$?
8102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103  (exit $ac_status); }; } &&
8104         { ac_try='test -s conftest$ac_exeext'
8105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106  (eval $ac_try) 2>&5
8107  ac_status=$?
8108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109  (exit $ac_status); }; }; then
8110  ac_cv_lib_ogg_main=yes
8111else
8112  echo "$as_me: failed program was:" >&5
8113sed 's/^/| /' conftest.$ac_ext >&5
8114
8115ac_cv_lib_ogg_main=no
8116fi
8117rm -f conftest.err conftest.$ac_objext \
8118      conftest$ac_exeext conftest.$ac_ext
8119LIBS=$ac_check_lib_save_LIBS
8120fi
8121echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
8122echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
8123if test $ac_cv_lib_ogg_main = yes; then
8124  FOUND_ogg=yes
8125fi
8126
8127     if test x$FOUND_ogg = xyes ; then
8128       LIBS="$LIBS -logg"
8129     else
8130        echo "------------------"
8131        echo "ogg library not found."
8132        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8133        echo "------------------"
8134        exit -1
8135     fi
8136
8137#--------#
8138# vorbis #
8139#--------#
8140# checking for vorbis-lib
8141  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
8142echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
8143if test "${ac_cv_lib_vorbis_main+set}" = set; then
8144  echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146  ac_check_lib_save_LIBS=$LIBS
8147LIBS="-lvorbis  $LIBS"
8148cat >conftest.$ac_ext <<_ACEOF
8149/* confdefs.h.  */
8150_ACEOF
8151cat confdefs.h >>conftest.$ac_ext
8152cat >>conftest.$ac_ext <<_ACEOF
8153/* end confdefs.h.  */
8154
8155
8156int
8157main ()
8158{
8159main ();
8160  ;
8161  return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166  (eval $ac_link) 2>conftest.er1
8167  ac_status=$?
8168  grep -v '^ *+' conftest.er1 >conftest.err
8169  rm -f conftest.er1
8170  cat conftest.err >&5
8171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172  (exit $ac_status); } &&
8173         { ac_try='test -z "$ac_c_werror_flag"
8174                         || test ! -s conftest.err'
8175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176  (eval $ac_try) 2>&5
8177  ac_status=$?
8178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179  (exit $ac_status); }; } &&
8180         { ac_try='test -s conftest$ac_exeext'
8181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182  (eval $ac_try) 2>&5
8183  ac_status=$?
8184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185  (exit $ac_status); }; }; then
8186  ac_cv_lib_vorbis_main=yes
8187else
8188  echo "$as_me: failed program was:" >&5
8189sed 's/^/| /' conftest.$ac_ext >&5
8190
8191ac_cv_lib_vorbis_main=no
8192fi
8193rm -f conftest.err conftest.$ac_objext \
8194      conftest$ac_exeext conftest.$ac_ext
8195LIBS=$ac_check_lib_save_LIBS
8196fi
8197echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
8198echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
8199if test $ac_cv_lib_vorbis_main = yes; then
8200  FOUND_vorbis=yes
8201fi
8202
8203     if test x$FOUND_vorbis = xyes ; then
8204       LIBS="$LIBS -lvorbis"
8205     else
8206        echo "------------------"
8207        echo "vorbis library not found."
8208        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8209        echo "------------------"
8210        exit -1
8211     fi
8212
8213#------------#
8214# vorbisfile #
8215#------------#
8216# checking for vorbis-headers
8217
8218for ac_header in vorbis/vorbisfile.h
8219do
8220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8221if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222  echo "$as_me:$LINENO: checking for $ac_header" >&5
8223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8224if eval "test \"\${$as_ac_Header+set}\" = set"; then
8225  echo $ECHO_N "(cached) $ECHO_C" >&6
8226fi
8227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8229else
8230  # Is the header compilable?
8231echo "$as_me:$LINENO: checking $ac_header usability" >&5
8232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8233cat >conftest.$ac_ext <<_ACEOF
8234/* confdefs.h.  */
8235_ACEOF
8236cat confdefs.h >>conftest.$ac_ext
8237cat >>conftest.$ac_ext <<_ACEOF
8238/* end confdefs.h.  */
8239$ac_includes_default
8240#include <$ac_header>
8241_ACEOF
8242rm -f conftest.$ac_objext
8243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244  (eval $ac_compile) 2>conftest.er1
8245  ac_status=$?
8246  grep -v '^ *+' conftest.er1 >conftest.err
8247  rm -f conftest.er1
8248  cat conftest.err >&5
8249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250  (exit $ac_status); } &&
8251         { ac_try='test -z "$ac_c_werror_flag"
8252                         || test ! -s conftest.err'
8253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254  (eval $ac_try) 2>&5
8255  ac_status=$?
8256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257  (exit $ac_status); }; } &&
8258         { ac_try='test -s conftest.$ac_objext'
8259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260  (eval $ac_try) 2>&5
8261  ac_status=$?
8262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263  (exit $ac_status); }; }; then
8264  ac_header_compiler=yes
8265else
8266  echo "$as_me: failed program was:" >&5
8267sed 's/^/| /' conftest.$ac_ext >&5
8268
8269ac_header_compiler=no
8270fi
8271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8272echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8273echo "${ECHO_T}$ac_header_compiler" >&6
8274
8275# Is the header present?
8276echo "$as_me:$LINENO: checking $ac_header presence" >&5
8277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8278cat >conftest.$ac_ext <<_ACEOF
8279/* confdefs.h.  */
8280_ACEOF
8281cat confdefs.h >>conftest.$ac_ext
8282cat >>conftest.$ac_ext <<_ACEOF
8283/* end confdefs.h.  */
8284#include <$ac_header>
8285_ACEOF
8286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8287  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8288  ac_status=$?
8289  grep -v '^ *+' conftest.er1 >conftest.err
8290  rm -f conftest.er1
8291  cat conftest.err >&5
8292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293  (exit $ac_status); } >/dev/null; then
8294  if test -s conftest.err; then
8295    ac_cpp_err=$ac_c_preproc_warn_flag
8296    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8297  else
8298    ac_cpp_err=
8299  fi
8300else
8301  ac_cpp_err=yes
8302fi
8303if test -z "$ac_cpp_err"; then
8304  ac_header_preproc=yes
8305else
8306  echo "$as_me: failed program was:" >&5
8307sed 's/^/| /' conftest.$ac_ext >&5
8308
8309  ac_header_preproc=no
8310fi
8311rm -f conftest.err conftest.$ac_ext
8312echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8313echo "${ECHO_T}$ac_header_preproc" >&6
8314
8315# So?  What about this header?
8316case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8317  yes:no: )
8318    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8320    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8321echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8322    ac_header_preproc=yes
8323    ;;
8324  no:yes:* )
8325    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8326echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8327    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8328echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8329    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8330echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8331    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8332echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8333    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8335    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8336echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8337    (
8338      cat <<\_ASBOX
8339## ---------------------------------------------- ##
8340## Report this to orxonox-dev at mail.datacore.ch ##
8341## ---------------------------------------------- ##
8342_ASBOX
8343    ) |
8344      sed "s/^/$as_me: WARNING:     /" >&2
8345    ;;
8346esac
8347echo "$as_me:$LINENO: checking for $ac_header" >&5
8348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8349if eval "test \"\${$as_ac_Header+set}\" = set"; then
8350  echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352  eval "$as_ac_Header=\$ac_header_preproc"
8353fi
8354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8356
8357fi
8358if test `eval echo '${'$as_ac_Header'}'` = yes; then
8359  cat >>confdefs.h <<_ACEOF
8360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8361_ACEOF
8362
8363else
8364  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8365echo "$as_me: error: cannot find vorbisfile header." >&2;}
8366   { (exit 1); exit 1; }; }
8367fi
8368
8369done
8370
8371# checking for vorbisfile-lib
8372  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8373echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8374if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8375  echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377  ac_check_lib_save_LIBS=$LIBS
8378LIBS="-lvorbisfile  $LIBS"
8379cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h.  */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h.  */
8385
8386
8387int
8388main ()
8389{
8390main ();
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395rm -f conftest.$ac_objext conftest$ac_exeext
8396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397  (eval $ac_link) 2>conftest.er1
8398  ac_status=$?
8399  grep -v '^ *+' conftest.er1 >conftest.err
8400  rm -f conftest.er1
8401  cat conftest.err >&5
8402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403  (exit $ac_status); } &&
8404         { ac_try='test -z "$ac_c_werror_flag"
8405                         || test ! -s conftest.err'
8406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407  (eval $ac_try) 2>&5
8408  ac_status=$?
8409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410  (exit $ac_status); }; } &&
8411         { ac_try='test -s conftest$ac_exeext'
8412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413  (eval $ac_try) 2>&5
8414  ac_status=$?
8415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); }; }; then
8417  ac_cv_lib_vorbisfile_main=yes
8418else
8419  echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422ac_cv_lib_vorbisfile_main=no
8423fi
8424rm -f conftest.err conftest.$ac_objext \
8425      conftest$ac_exeext conftest.$ac_ext
8426LIBS=$ac_check_lib_save_LIBS
8427fi
8428echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8429echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8430if test $ac_cv_lib_vorbisfile_main = yes; then
8431  FOUND_vorbisfile=yes
8432fi
8433
8434     if test x$FOUND_vorbisfile = xyes ; then
8435       LIBS="$LIBS -lvorbisfile"
8436     else
8437        echo "------------------"
8438        echo "vorbisfile library not found."
8439        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8440        echo "------------------"
8441        exit -1
8442     fi
8443
8444#-----#
8445# GTK #
8446#-----#
8447if test x$def_gtk = xyes; then
8448        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
8449        echo "$as_me:$LINENO: checking for gtk2.0" >&5
8450echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
8451        if `$PKG_CONFIG --exists gtk+-2.0`; then
8452                echo "yes"
8453                have_gtk2=yes
8454                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8455                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8456
8457cat >>confdefs.h <<_ACEOF
8458#define HAVE_GTK2 1
8459_ACEOF
8460
8461                if test $DEBUG -ge 3; then
8462                 echo "cflags: $GTK2_CFLAGS"
8463                 echo "libs: $GTK2_LIBS"
8464                fi
8465        else
8466                echo "no"
8467        fi
8468
8469fi
8470
8471
8472
8473
8474if test x$have_gtk2 = xyes; then
8475  HAVE_GTK2_TRUE=
8476  HAVE_GTK2_FALSE='#'
8477else
8478  HAVE_GTK2_TRUE='#'
8479  HAVE_GTK2_FALSE=
8480fi
8481
8482
8483#---------#
8484# libcURL #
8485#---------#
8486if test x$def_curl = xyes; then
8487
8488
8489for ac_header in curl/curl.h
8490do
8491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8492if eval "test \"\${$as_ac_Header+set}\" = set"; then
8493  echo "$as_me:$LINENO: checking for $ac_header" >&5
8494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8495if eval "test \"\${$as_ac_Header+set}\" = set"; then
8496  echo $ECHO_N "(cached) $ECHO_C" >&6
8497fi
8498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8500else
8501  # Is the header compilable?
8502echo "$as_me:$LINENO: checking $ac_header usability" >&5
8503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8504cat >conftest.$ac_ext <<_ACEOF
8505/* confdefs.h.  */
8506_ACEOF
8507cat confdefs.h >>conftest.$ac_ext
8508cat >>conftest.$ac_ext <<_ACEOF
8509/* end confdefs.h.  */
8510$ac_includes_default
8511#include <$ac_header>
8512_ACEOF
8513rm -f conftest.$ac_objext
8514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515  (eval $ac_compile) 2>conftest.er1
8516  ac_status=$?
8517  grep -v '^ *+' conftest.er1 >conftest.err
8518  rm -f conftest.er1
8519  cat conftest.err >&5
8520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521  (exit $ac_status); } &&
8522         { ac_try='test -z "$ac_c_werror_flag"
8523                         || test ! -s conftest.err'
8524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525  (eval $ac_try) 2>&5
8526  ac_status=$?
8527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528  (exit $ac_status); }; } &&
8529         { ac_try='test -s conftest.$ac_objext'
8530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531  (eval $ac_try) 2>&5
8532  ac_status=$?
8533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534  (exit $ac_status); }; }; then
8535  ac_header_compiler=yes
8536else
8537  echo "$as_me: failed program was:" >&5
8538sed 's/^/| /' conftest.$ac_ext >&5
8539
8540ac_header_compiler=no
8541fi
8542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8544echo "${ECHO_T}$ac_header_compiler" >&6
8545
8546# Is the header present?
8547echo "$as_me:$LINENO: checking $ac_header presence" >&5
8548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8549cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h.  */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h.  */
8555#include <$ac_header>
8556_ACEOF
8557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8558  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8559  ac_status=$?
8560  grep -v '^ *+' conftest.er1 >conftest.err
8561  rm -f conftest.er1
8562  cat conftest.err >&5
8563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564  (exit $ac_status); } >/dev/null; then
8565  if test -s conftest.err; then
8566    ac_cpp_err=$ac_c_preproc_warn_flag
8567    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8568  else
8569    ac_cpp_err=
8570  fi
8571else
8572  ac_cpp_err=yes
8573fi
8574if test -z "$ac_cpp_err"; then
8575  ac_header_preproc=yes
8576else
8577  echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580  ac_header_preproc=no
8581fi
8582rm -f conftest.err conftest.$ac_ext
8583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8584echo "${ECHO_T}$ac_header_preproc" >&6
8585
8586# So?  What about this header?
8587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8588  yes:no: )
8589    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8591    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8593    ac_header_preproc=yes
8594    ;;
8595  no:yes:* )
8596    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8598    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8599echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8600    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8602    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8603echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8604    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8606    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8608    (
8609      cat <<\_ASBOX
8610## ---------------------------------------------- ##
8611## Report this to orxonox-dev at mail.datacore.ch ##
8612## ---------------------------------------------- ##
8613_ASBOX
8614    ) |
8615      sed "s/^/$as_me: WARNING:     /" >&2
8616    ;;
8617esac
8618echo "$as_me:$LINENO: checking for $ac_header" >&5
8619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620if eval "test \"\${$as_ac_Header+set}\" = set"; then
8621  echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623  eval "$as_ac_Header=\$ac_header_preproc"
8624fi
8625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8627
8628fi
8629if test `eval echo '${'$as_ac_Header'}'` = yes; then
8630  cat >>confdefs.h <<_ACEOF
8631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632_ACEOF
8633 curlHeader="yes"
8634else
8635  curlHeader="no"
8636fi
8637
8638done
8639
8640 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
8641echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
8642if test "${ac_cv_lib_curl_main+set}" = set; then
8643  echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645  ac_check_lib_save_LIBS=$LIBS
8646LIBS="-lcurl  $LIBS"
8647cat >conftest.$ac_ext <<_ACEOF
8648/* confdefs.h.  */
8649_ACEOF
8650cat confdefs.h >>conftest.$ac_ext
8651cat >>conftest.$ac_ext <<_ACEOF
8652/* end confdefs.h.  */
8653
8654
8655int
8656main ()
8657{
8658main ();
8659  ;
8660  return 0;
8661}
8662_ACEOF
8663rm -f conftest.$ac_objext conftest$ac_exeext
8664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665  (eval $ac_link) 2>conftest.er1
8666  ac_status=$?
8667  grep -v '^ *+' conftest.er1 >conftest.err
8668  rm -f conftest.er1
8669  cat conftest.err >&5
8670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671  (exit $ac_status); } &&
8672         { ac_try='test -z "$ac_c_werror_flag"
8673                         || test ! -s conftest.err'
8674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675  (eval $ac_try) 2>&5
8676  ac_status=$?
8677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678  (exit $ac_status); }; } &&
8679         { ac_try='test -s conftest$ac_exeext'
8680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681  (eval $ac_try) 2>&5
8682  ac_status=$?
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); }; }; then
8685  ac_cv_lib_curl_main=yes
8686else
8687  echo "$as_me: failed program was:" >&5
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
8690ac_cv_lib_curl_main=no
8691fi
8692rm -f conftest.err conftest.$ac_objext \
8693      conftest$ac_exeext conftest.$ac_ext
8694LIBS=$ac_check_lib_save_LIBS
8695fi
8696echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
8697echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
8698if test $ac_cv_lib_curl_main = yes; then
8699  FOUND_curl=yes
8700fi
8701
8702 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
8703  have_curl=yes
8704  CURL_LIBS=`curl-config --libs`
8705  CURLCFLAGS=`curl-config --cflags`
8706
8707cat >>confdefs.h <<_ACEOF
8708#define HAVE_CURL 1
8709_ACEOF
8710
8711 else
8712  have_curl=no
8713 fi
8714
8715fi
8716
8717
8718
8719
8720if test x$have_curl = xyes; then
8721  HAVE_CURL_TRUE=
8722  HAVE_CURL_FALSE='#'
8723else
8724  HAVE_CURL_TRUE='#'
8725  HAVE_CURL_FALSE=
8726fi
8727
8728
8729#--------#
8730# efence #
8731#--------#
8732if test x$def_efence = xyes ; then
8733  echo "$as_me:$LINENO: checking for main in -lefence" >&5
8734echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8735if test "${ac_cv_lib_efence_main+set}" = set; then
8736  echo $ECHO_N "(cached) $ECHO_C" >&6
8737else
8738  ac_check_lib_save_LIBS=$LIBS
8739LIBS="-lefence  $LIBS"
8740cat >conftest.$ac_ext <<_ACEOF
8741/* confdefs.h.  */
8742_ACEOF
8743cat confdefs.h >>conftest.$ac_ext
8744cat >>conftest.$ac_ext <<_ACEOF
8745/* end confdefs.h.  */
8746
8747
8748int
8749main ()
8750{
8751main ();
8752  ;
8753  return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext conftest$ac_exeext
8757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758  (eval $ac_link) 2>conftest.er1
8759  ac_status=$?
8760  grep -v '^ *+' conftest.er1 >conftest.err
8761  rm -f conftest.er1
8762  cat conftest.err >&5
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); } &&
8765         { ac_try='test -z "$ac_c_werror_flag"
8766                         || test ! -s conftest.err'
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); }; } &&
8772         { ac_try='test -s conftest$ac_exeext'
8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774  (eval $ac_try) 2>&5
8775  ac_status=$?
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); }; }; then
8778  ac_cv_lib_efence_main=yes
8779else
8780  echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783ac_cv_lib_efence_main=no
8784fi
8785rm -f conftest.err conftest.$ac_objext \
8786      conftest$ac_exeext conftest.$ac_ext
8787LIBS=$ac_check_lib_save_LIBS
8788fi
8789echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8790echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8791if test $ac_cv_lib_efence_main = yes; then
8792  FOUND_efence=yes
8793fi
8794
8795   if test x$FOUND_efence = xyes ; then
8796      LIBS="$LIBS -lefence"
8797   fi
8798
8799fi
8800
8801# FIXME: Replace `main' with a function in `-lm':
8802
8803echo "$as_me:$LINENO: checking for main in -lm" >&5
8804echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8805if test "${ac_cv_lib_m_main+set}" = set; then
8806  echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808  ac_check_lib_save_LIBS=$LIBS
8809LIBS="-lm  $LIBS"
8810cat >conftest.$ac_ext <<_ACEOF
8811/* confdefs.h.  */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h.  */
8816
8817
8818int
8819main ()
8820{
8821main ();
8822  ;
8823  return 0;
8824}
8825_ACEOF
8826rm -f conftest.$ac_objext conftest$ac_exeext
8827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828  (eval $ac_link) 2>conftest.er1
8829  ac_status=$?
8830  grep -v '^ *+' conftest.er1 >conftest.err
8831  rm -f conftest.er1
8832  cat conftest.err >&5
8833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834  (exit $ac_status); } &&
8835         { ac_try='test -z "$ac_c_werror_flag"
8836                         || test ! -s conftest.err'
8837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838  (eval $ac_try) 2>&5
8839  ac_status=$?
8840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841  (exit $ac_status); }; } &&
8842         { ac_try='test -s conftest$ac_exeext'
8843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844  (eval $ac_try) 2>&5
8845  ac_status=$?
8846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847  (exit $ac_status); }; }; then
8848  ac_cv_lib_m_main=yes
8849else
8850  echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853ac_cv_lib_m_main=no
8854fi
8855rm -f conftest.err conftest.$ac_objext \
8856      conftest$ac_exeext conftest.$ac_ext
8857LIBS=$ac_check_lib_save_LIBS
8858fi
8859echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8860echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8861if test $ac_cv_lib_m_main = yes; then
8862  cat >>confdefs.h <<_ACEOF
8863#define HAVE_LIBM 1
8864_ACEOF
8865
8866  LIBS="-lm $LIBS"
8867
8868fi
8869
8870
8871
8872# Checks for header files.
8873echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8874echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8875if test "${ac_cv_header_stdc+set}" = set; then
8876  echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878  cat >conftest.$ac_ext <<_ACEOF
8879/* confdefs.h.  */
8880_ACEOF
8881cat confdefs.h >>conftest.$ac_ext
8882cat >>conftest.$ac_ext <<_ACEOF
8883/* end confdefs.h.  */
8884#include <stdlib.h>
8885#include <stdarg.h>
8886#include <string.h>
8887#include <float.h>
8888
8889int
8890main ()
8891{
8892
8893  ;
8894  return 0;
8895}
8896_ACEOF
8897rm -f conftest.$ac_objext
8898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8899  (eval $ac_compile) 2>conftest.er1
8900  ac_status=$?
8901  grep -v '^ *+' conftest.er1 >conftest.err
8902  rm -f conftest.er1
8903  cat conftest.err >&5
8904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905  (exit $ac_status); } &&
8906         { ac_try='test -z "$ac_c_werror_flag"
8907                         || test ! -s conftest.err'
8908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909  (eval $ac_try) 2>&5
8910  ac_status=$?
8911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912  (exit $ac_status); }; } &&
8913         { ac_try='test -s conftest.$ac_objext'
8914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915  (eval $ac_try) 2>&5
8916  ac_status=$?
8917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918  (exit $ac_status); }; }; then
8919  ac_cv_header_stdc=yes
8920else
8921  echo "$as_me: failed program was:" >&5
8922sed 's/^/| /' conftest.$ac_ext >&5
8923
8924ac_cv_header_stdc=no
8925fi
8926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8927
8928if test $ac_cv_header_stdc = yes; then
8929  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8930  cat >conftest.$ac_ext <<_ACEOF
8931/* confdefs.h.  */
8932_ACEOF
8933cat confdefs.h >>conftest.$ac_ext
8934cat >>conftest.$ac_ext <<_ACEOF
8935/* end confdefs.h.  */
8936#include <string.h>
8937
8938_ACEOF
8939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8940  $EGREP "memchr" >/dev/null 2>&1; then
8941  :
8942else
8943  ac_cv_header_stdc=no
8944fi
8945rm -f conftest*
8946
8947fi
8948
8949if test $ac_cv_header_stdc = yes; then
8950  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8951  cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h.  */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h.  */
8957#include <stdlib.h>
8958
8959_ACEOF
8960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8961  $EGREP "free" >/dev/null 2>&1; then
8962  :
8963else
8964  ac_cv_header_stdc=no
8965fi
8966rm -f conftest*
8967
8968fi
8969
8970if test $ac_cv_header_stdc = yes; then
8971  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8972  if test "$cross_compiling" = yes; then
8973  :
8974else
8975  cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h.  */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h.  */
8981#include <ctype.h>
8982#if ((' ' & 0x0FF) == 0x020)
8983# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8984# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8985#else
8986# define ISLOWER(c) \
8987                   (('a' <= (c) && (c) <= 'i') \
8988                     || ('j' <= (c) && (c) <= 'r') \
8989                     || ('s' <= (c) && (c) <= 'z'))
8990# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8991#endif
8992
8993#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8994int
8995main ()
8996{
8997  int i;
8998  for (i = 0; i < 256; i++)
8999    if (XOR (islower (i), ISLOWER (i))
9000        || toupper (i) != TOUPPER (i))
9001      exit(2);
9002  exit (0);
9003}
9004_ACEOF
9005rm -f conftest$ac_exeext
9006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007  (eval $ac_link) 2>&5
9008  ac_status=$?
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012  (eval $ac_try) 2>&5
9013  ac_status=$?
9014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); }; }; then
9016  :
9017else
9018  echo "$as_me: program exited with status $ac_status" >&5
9019echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022( exit $ac_status )
9023ac_cv_header_stdc=no
9024fi
9025rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9026fi
9027fi
9028fi
9029echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9030echo "${ECHO_T}$ac_cv_header_stdc" >&6
9031if test $ac_cv_header_stdc = yes; then
9032
9033cat >>confdefs.h <<\_ACEOF
9034#define STDC_HEADERS 1
9035_ACEOF
9036
9037fi
9038
9039
9040
9041for ac_header in stdlib.h string.h
9042do
9043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9044if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045  echo "$as_me:$LINENO: checking for $ac_header" >&5
9046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9047if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048  echo $ECHO_N "(cached) $ECHO_C" >&6
9049fi
9050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9052else
9053  # Is the header compilable?
9054echo "$as_me:$LINENO: checking $ac_header usability" >&5
9055echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9056cat >conftest.$ac_ext <<_ACEOF
9057/* confdefs.h.  */
9058_ACEOF
9059cat confdefs.h >>conftest.$ac_ext
9060cat >>conftest.$ac_ext <<_ACEOF
9061/* end confdefs.h.  */
9062$ac_includes_default
9063#include <$ac_header>
9064_ACEOF
9065rm -f conftest.$ac_objext
9066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067  (eval $ac_compile) 2>conftest.er1
9068  ac_status=$?
9069  grep -v '^ *+' conftest.er1 >conftest.err
9070  rm -f conftest.er1
9071  cat conftest.err >&5
9072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073  (exit $ac_status); } &&
9074         { ac_try='test -z "$ac_c_werror_flag"
9075                         || test ! -s conftest.err'
9076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077  (eval $ac_try) 2>&5
9078  ac_status=$?
9079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080  (exit $ac_status); }; } &&
9081         { ac_try='test -s conftest.$ac_objext'
9082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083  (eval $ac_try) 2>&5
9084  ac_status=$?
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); }; }; then
9087  ac_header_compiler=yes
9088else
9089  echo "$as_me: failed program was:" >&5
9090sed 's/^/| /' conftest.$ac_ext >&5
9091
9092ac_header_compiler=no
9093fi
9094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9095echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9096echo "${ECHO_T}$ac_header_compiler" >&6
9097
9098# Is the header present?
9099echo "$as_me:$LINENO: checking $ac_header presence" >&5
9100echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9101cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h.  */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h.  */
9107#include <$ac_header>
9108_ACEOF
9109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9110  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9111  ac_status=$?
9112  grep -v '^ *+' conftest.er1 >conftest.err
9113  rm -f conftest.er1
9114  cat conftest.err >&5
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); } >/dev/null; then
9117  if test -s conftest.err; then
9118    ac_cpp_err=$ac_c_preproc_warn_flag
9119    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9120  else
9121    ac_cpp_err=
9122  fi
9123else
9124  ac_cpp_err=yes
9125fi
9126if test -z "$ac_cpp_err"; then
9127  ac_header_preproc=yes
9128else
9129  echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132  ac_header_preproc=no
9133fi
9134rm -f conftest.err conftest.$ac_ext
9135echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9136echo "${ECHO_T}$ac_header_preproc" >&6
9137
9138# So?  What about this header?
9139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9140  yes:no: )
9141    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9142echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9143    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9144echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9145    ac_header_preproc=yes
9146    ;;
9147  no:yes:* )
9148    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9149echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9150    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9151echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9152    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9153echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9154    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9155echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9156    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9158    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9159echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9160    (
9161      cat <<\_ASBOX
9162## ---------------------------------------------- ##
9163## Report this to orxonox-dev at mail.datacore.ch ##
9164## ---------------------------------------------- ##
9165_ASBOX
9166    ) |
9167      sed "s/^/$as_me: WARNING:     /" >&2
9168    ;;
9169esac
9170echo "$as_me:$LINENO: checking for $ac_header" >&5
9171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173  echo $ECHO_N "(cached) $ECHO_C" >&6
9174else
9175  eval "$as_ac_Header=\$ac_header_preproc"
9176fi
9177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179
9180fi
9181if test `eval echo '${'$as_ac_Header'}'` = yes; then
9182  cat >>confdefs.h <<_ACEOF
9183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184_ACEOF
9185
9186fi
9187
9188done
9189
9190
9191# Checks for typedefs, structures, and compiler characteristics.
9192echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9193echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9194if test "${ac_cv_header_stdbool_h+set}" = set; then
9195  echo $ECHO_N "(cached) $ECHO_C" >&6
9196else
9197  cat >conftest.$ac_ext <<_ACEOF
9198/* confdefs.h.  */
9199_ACEOF
9200cat confdefs.h >>conftest.$ac_ext
9201cat >>conftest.$ac_ext <<_ACEOF
9202/* end confdefs.h.  */
9203
9204#include <stdbool.h>
9205#ifndef bool
9206# error bool is not defined
9207#endif
9208#ifndef false
9209# error false is not defined
9210#endif
9211#if false
9212# error false is not 0
9213#endif
9214#ifndef true
9215# error true is not defined
9216#endif
9217#if true != 1
9218# error true is not 1
9219#endif
9220#ifndef __bool_true_false_are_defined
9221# error __bool_true_false_are_defined is not defined
9222#endif
9223
9224        struct s { _Bool s: 1; _Bool t; } s;
9225
9226        char a[true == 1 ? 1 : -1];
9227        char b[false == 0 ? 1 : -1];
9228        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9229        char d[(bool) -0.5 == true ? 1 : -1];
9230        bool e = &s;
9231        char f[(_Bool) -0.0 == false ? 1 : -1];
9232        char g[true];
9233        char h[sizeof (_Bool)];
9234        char i[sizeof s.t];
9235
9236int
9237main ()
9238{
9239 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9240  ;
9241  return 0;
9242}
9243_ACEOF
9244rm -f conftest.$ac_objext
9245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246  (eval $ac_compile) 2>conftest.er1
9247  ac_status=$?
9248  grep -v '^ *+' conftest.er1 >conftest.err
9249  rm -f conftest.er1
9250  cat conftest.err >&5
9251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252  (exit $ac_status); } &&
9253         { ac_try='test -z "$ac_c_werror_flag"
9254                         || test ! -s conftest.err'
9255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256  (eval $ac_try) 2>&5
9257  ac_status=$?
9258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259  (exit $ac_status); }; } &&
9260         { ac_try='test -s conftest.$ac_objext'
9261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262  (eval $ac_try) 2>&5
9263  ac_status=$?
9264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265  (exit $ac_status); }; }; then
9266  ac_cv_header_stdbool_h=yes
9267else
9268  echo "$as_me: failed program was:" >&5
9269sed 's/^/| /' conftest.$ac_ext >&5
9270
9271ac_cv_header_stdbool_h=no
9272fi
9273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9274fi
9275echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9276echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9277echo "$as_me:$LINENO: checking for _Bool" >&5
9278echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9279if test "${ac_cv_type__Bool+set}" = set; then
9280  echo $ECHO_N "(cached) $ECHO_C" >&6
9281else
9282  cat >conftest.$ac_ext <<_ACEOF
9283/* confdefs.h.  */
9284_ACEOF
9285cat confdefs.h >>conftest.$ac_ext
9286cat >>conftest.$ac_ext <<_ACEOF
9287/* end confdefs.h.  */
9288$ac_includes_default
9289int
9290main ()
9291{
9292if ((_Bool *) 0)
9293  return 0;
9294if (sizeof (_Bool))
9295  return 0;
9296  ;
9297  return 0;
9298}
9299_ACEOF
9300rm -f conftest.$ac_objext
9301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9302  (eval $ac_compile) 2>conftest.er1
9303  ac_status=$?
9304  grep -v '^ *+' conftest.er1 >conftest.err
9305  rm -f conftest.er1
9306  cat conftest.err >&5
9307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308  (exit $ac_status); } &&
9309         { ac_try='test -z "$ac_c_werror_flag"
9310                         || test ! -s conftest.err'
9311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312  (eval $ac_try) 2>&5
9313  ac_status=$?
9314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315  (exit $ac_status); }; } &&
9316         { ac_try='test -s conftest.$ac_objext'
9317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318  (eval $ac_try) 2>&5
9319  ac_status=$?
9320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321  (exit $ac_status); }; }; then
9322  ac_cv_type__Bool=yes
9323else
9324  echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327ac_cv_type__Bool=no
9328fi
9329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9330fi
9331echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9332echo "${ECHO_T}$ac_cv_type__Bool" >&6
9333if test $ac_cv_type__Bool = yes; then
9334
9335cat >>confdefs.h <<_ACEOF
9336#define HAVE__BOOL 1
9337_ACEOF
9338
9339
9340fi
9341
9342if test $ac_cv_header_stdbool_h = yes; then
9343
9344cat >>confdefs.h <<\_ACEOF
9345#define HAVE_STDBOOL_H 1
9346_ACEOF
9347
9348fi
9349
9350
9351# Checks for library functions.
9352
9353for ac_header in stdlib.h
9354do
9355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9356if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357  echo "$as_me:$LINENO: checking for $ac_header" >&5
9358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9359if eval "test \"\${$as_ac_Header+set}\" = set"; then
9360  echo $ECHO_N "(cached) $ECHO_C" >&6
9361fi
9362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9364else
9365  # Is the header compilable?
9366echo "$as_me:$LINENO: checking $ac_header usability" >&5
9367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9368cat >conftest.$ac_ext <<_ACEOF
9369/* confdefs.h.  */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h.  */
9374$ac_includes_default
9375#include <$ac_header>
9376_ACEOF
9377rm -f conftest.$ac_objext
9378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379  (eval $ac_compile) 2>conftest.er1
9380  ac_status=$?
9381  grep -v '^ *+' conftest.er1 >conftest.err
9382  rm -f conftest.er1
9383  cat conftest.err >&5
9384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385  (exit $ac_status); } &&
9386         { ac_try='test -z "$ac_c_werror_flag"
9387                         || test ! -s conftest.err'
9388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389  (eval $ac_try) 2>&5
9390  ac_status=$?
9391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392  (exit $ac_status); }; } &&
9393         { ac_try='test -s conftest.$ac_objext'
9394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395  (eval $ac_try) 2>&5
9396  ac_status=$?
9397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398  (exit $ac_status); }; }; then
9399  ac_header_compiler=yes
9400else
9401  echo "$as_me: failed program was:" >&5
9402sed 's/^/| /' conftest.$ac_ext >&5
9403
9404ac_header_compiler=no
9405fi
9406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9407echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9408echo "${ECHO_T}$ac_header_compiler" >&6
9409
9410# Is the header present?
9411echo "$as_me:$LINENO: checking $ac_header presence" >&5
9412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9413cat >conftest.$ac_ext <<_ACEOF
9414/* confdefs.h.  */
9415_ACEOF
9416cat confdefs.h >>conftest.$ac_ext
9417cat >>conftest.$ac_ext <<_ACEOF
9418/* end confdefs.h.  */
9419#include <$ac_header>
9420_ACEOF
9421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9422  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9423  ac_status=$?
9424  grep -v '^ *+' conftest.er1 >conftest.err
9425  rm -f conftest.er1
9426  cat conftest.err >&5
9427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428  (exit $ac_status); } >/dev/null; then
9429  if test -s conftest.err; then
9430    ac_cpp_err=$ac_c_preproc_warn_flag
9431    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9432  else
9433    ac_cpp_err=
9434  fi
9435else
9436  ac_cpp_err=yes
9437fi
9438if test -z "$ac_cpp_err"; then
9439  ac_header_preproc=yes
9440else
9441  echo "$as_me: failed program was:" >&5
9442sed 's/^/| /' conftest.$ac_ext >&5
9443
9444  ac_header_preproc=no
9445fi
9446rm -f conftest.err conftest.$ac_ext
9447echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9448echo "${ECHO_T}$ac_header_preproc" >&6
9449
9450# So?  What about this header?
9451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9452  yes:no: )
9453    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9455    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9457    ac_header_preproc=yes
9458    ;;
9459  no:yes:* )
9460    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9462    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9463echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9464    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9466    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9467echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9468    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9470    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9472    (
9473      cat <<\_ASBOX
9474## ---------------------------------------------- ##
9475## Report this to orxonox-dev at mail.datacore.ch ##
9476## ---------------------------------------------- ##
9477_ASBOX
9478    ) |
9479      sed "s/^/$as_me: WARNING:     /" >&2
9480    ;;
9481esac
9482echo "$as_me:$LINENO: checking for $ac_header" >&5
9483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9484if eval "test \"\${$as_ac_Header+set}\" = set"; then
9485  echo $ECHO_N "(cached) $ECHO_C" >&6
9486else
9487  eval "$as_ac_Header=\$ac_header_preproc"
9488fi
9489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9491
9492fi
9493if test `eval echo '${'$as_ac_Header'}'` = yes; then
9494  cat >>confdefs.h <<_ACEOF
9495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9496_ACEOF
9497
9498fi
9499
9500done
9501
9502echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9503echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9504if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9505  echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507  if test "$cross_compiling" = yes; then
9508  ac_cv_func_malloc_0_nonnull=no
9509else
9510  cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h.  */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
9515/* end confdefs.h.  */
9516#if STDC_HEADERS || HAVE_STDLIB_H
9517# include <stdlib.h>
9518#else
9519char *malloc ();
9520#endif
9521
9522int
9523main ()
9524{
9525exit (malloc (0) ? 0 : 1);
9526  ;
9527  return 0;
9528}
9529_ACEOF
9530rm -f conftest$ac_exeext
9531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532  (eval $ac_link) 2>&5
9533  ac_status=$?
9534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537  (eval $ac_try) 2>&5
9538  ac_status=$?
9539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540  (exit $ac_status); }; }; then
9541  ac_cv_func_malloc_0_nonnull=yes
9542else
9543  echo "$as_me: program exited with status $ac_status" >&5
9544echo "$as_me: failed program was:" >&5
9545sed 's/^/| /' conftest.$ac_ext >&5
9546
9547( exit $ac_status )
9548ac_cv_func_malloc_0_nonnull=no
9549fi
9550rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9551fi
9552fi
9553echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9554echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9555if test $ac_cv_func_malloc_0_nonnull = yes; then
9556
9557cat >>confdefs.h <<\_ACEOF
9558#define HAVE_MALLOC 1
9559_ACEOF
9560
9561else
9562  cat >>confdefs.h <<\_ACEOF
9563#define HAVE_MALLOC 0
9564_ACEOF
9565
9566   case $LIBOBJS in
9567    "malloc.$ac_objext"   | \
9568  *" malloc.$ac_objext"   | \
9569    "malloc.$ac_objext "* | \
9570  *" malloc.$ac_objext "* ) ;;
9571  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9572esac
9573
9574
9575cat >>confdefs.h <<\_ACEOF
9576#define malloc rpl_malloc
9577_ACEOF
9578
9579fi
9580
9581
9582
9583
9584
9585for ac_func in bzero sqrt
9586do
9587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9588echo "$as_me:$LINENO: checking for $ac_func" >&5
9589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9590if eval "test \"\${$as_ac_var+set}\" = set"; then
9591  echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593  cat >conftest.$ac_ext <<_ACEOF
9594/* confdefs.h.  */
9595_ACEOF
9596cat confdefs.h >>conftest.$ac_ext
9597cat >>conftest.$ac_ext <<_ACEOF
9598/* end confdefs.h.  */
9599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9600   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9601#define $ac_func innocuous_$ac_func
9602
9603/* System header to define __stub macros and hopefully few prototypes,
9604    which can conflict with char $ac_func (); below.
9605    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9606    <limits.h> exists even on freestanding compilers.  */
9607
9608#ifdef __STDC__
9609# include <limits.h>
9610#else
9611# include <assert.h>
9612#endif
9613
9614#undef $ac_func
9615
9616/* Override any gcc2 internal prototype to avoid an error.  */
9617#ifdef __cplusplus
9618extern "C"
9619{
9620#endif
9621/* We use char because int might match the return type of a gcc2
9622   builtin and then its argument prototype would still apply.  */
9623char $ac_func ();
9624/* The GNU C library defines this for functions which it implements
9625    to always fail with ENOSYS.  Some functions are actually named
9626    something starting with __ and the normal name is an alias.  */
9627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9628choke me
9629#else
9630char (*f) () = $ac_func;
9631#endif
9632#ifdef __cplusplus
9633}
9634#endif
9635
9636int
9637main ()
9638{
9639return f != $ac_func;
9640  ;
9641  return 0;
9642}
9643_ACEOF
9644rm -f conftest.$ac_objext conftest$ac_exeext
9645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646  (eval $ac_link) 2>conftest.er1
9647  ac_status=$?
9648  grep -v '^ *+' conftest.er1 >conftest.err
9649  rm -f conftest.er1
9650  cat conftest.err >&5
9651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652  (exit $ac_status); } &&
9653         { ac_try='test -z "$ac_c_werror_flag"
9654                         || test ! -s conftest.err'
9655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656  (eval $ac_try) 2>&5
9657  ac_status=$?
9658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659  (exit $ac_status); }; } &&
9660         { ac_try='test -s conftest$ac_exeext'
9661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662  (eval $ac_try) 2>&5
9663  ac_status=$?
9664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665  (exit $ac_status); }; }; then
9666  eval "$as_ac_var=yes"
9667else
9668  echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
9671eval "$as_ac_var=no"
9672fi
9673rm -f conftest.err conftest.$ac_objext \
9674      conftest$ac_exeext conftest.$ac_ext
9675fi
9676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9678if test `eval echo '${'$as_ac_var'}'` = yes; then
9679  cat >>confdefs.h <<_ACEOF
9680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9681_ACEOF
9682
9683fi
9684done
9685
9686
9687######################
9688## OUTPUT CONFIGURE ##
9689######################
9690                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
9691
9692
9693cat >confcache <<\_ACEOF
9694# This file is a shell script that caches the results of configure
9695# tests run on this system so they can be shared between configure
9696# scripts and configure runs, see configure's option --config-cache.
9697# It is not useful on other systems.  If it contains results you don't
9698# want to keep, you may remove or edit it.
9699#
9700# config.status only pays attention to the cache file if you give it
9701# the --recheck option to rerun configure.
9702#
9703# `ac_cv_env_foo' variables (set or unset) will be overridden when
9704# loading this file, other *unset* `ac_cv_foo' will be assigned the
9705# following values.
9706
9707_ACEOF
9708
9709# The following way of writing the cache mishandles newlines in values,
9710# but we know of no workaround that is simple, portable, and efficient.
9711# So, don't put newlines in cache variables' values.
9712# Ultrix sh set writes to stderr and can't be redirected directly,
9713# and sets the high bit in the cache file unless we assign to the vars.
9714{
9715  (set) 2>&1 |
9716    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9717    *ac_space=\ *)
9718      # `set' does not quote correctly, so add quotes (double-quote
9719      # substitution turns \\\\ into \\, and sed turns \\ into \).
9720      sed -n \
9721        "s/'/'\\\\''/g;
9722          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9723      ;;
9724    *)
9725      # `set' quotes correctly as required by POSIX, so do not add quotes.
9726      sed -n \
9727        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9728      ;;
9729    esac;
9730} |
9731  sed '
9732     t clear
9733     : clear
9734     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9735     t end
9736     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9737     : end' >>confcache
9738if diff $cache_file confcache >/dev/null 2>&1; then :; else
9739  if test -w $cache_file; then
9740    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9741    cat confcache >$cache_file
9742  else
9743    echo "not updating unwritable cache $cache_file"
9744  fi
9745fi
9746rm -f confcache
9747
9748test "x$prefix" = xNONE && prefix=$ac_default_prefix
9749# Let make expand exec_prefix.
9750test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9751
9752# VPATH may cause trouble with some makes, so we remove $(srcdir),
9753# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9754# trailing colons and then remove the whole line if VPATH becomes empty
9755# (actually we leave an empty line to preserve line numbers).
9756if test "x$srcdir" = x.; then
9757  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9758s/:*\$(srcdir):*/:/;
9759s/:*\${srcdir}:*/:/;
9760s/:*@srcdir@:*/:/;
9761s/^\([^=]*=[     ]*\):*/\1/;
9762s/:*$//;
9763s/^[^=]*=[       ]*$//;
9764}'
9765fi
9766
9767DEFS=-DHAVE_CONFIG_H
9768
9769ac_libobjs=
9770ac_ltlibobjs=
9771for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9772  # 1. Remove the extension, and $U if already installed.
9773  ac_i=`echo "$ac_i" |
9774         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9775  # 2. Add them.
9776  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9777  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9778done
9779LIBOBJS=$ac_libobjs
9780
9781LTLIBOBJS=$ac_ltlibobjs
9782
9783
9784if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9785  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9786Usually this means the macro was only invoked conditionally." >&5
9787echo "$as_me: error: conditional \"AMDEP\" was never defined.
9788Usually this means the macro was only invoked conditionally." >&2;}
9789   { (exit 1); exit 1; }; }
9790fi
9791if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9792  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9793Usually this means the macro was only invoked conditionally." >&5
9794echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9795Usually this means the macro was only invoked conditionally." >&2;}
9796   { (exit 1); exit 1; }; }
9797fi
9798if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9799  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9800Usually this means the macro was only invoked conditionally." >&5
9801echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9802Usually this means the macro was only invoked conditionally." >&2;}
9803   { (exit 1); exit 1; }; }
9804fi
9805if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
9806  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
9807Usually this means the macro was only invoked conditionally." >&5
9808echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
9809Usually this means the macro was only invoked conditionally." >&2;}
9810   { (exit 1); exit 1; }; }
9811fi
9812if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
9813  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
9814Usually this means the macro was only invoked conditionally." >&5
9815echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
9816Usually this means the macro was only invoked conditionally." >&2;}
9817   { (exit 1); exit 1; }; }
9818fi
9819if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
9820  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
9821Usually this means the macro was only invoked conditionally." >&5
9822echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
9823Usually this means the macro was only invoked conditionally." >&2;}
9824   { (exit 1); exit 1; }; }
9825fi
9826if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
9827  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
9828Usually this means the macro was only invoked conditionally." >&5
9829echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
9830Usually this means the macro was only invoked conditionally." >&2;}
9831   { (exit 1); exit 1; }; }
9832fi
9833if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
9834  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
9835Usually this means the macro was only invoked conditionally." >&5
9836echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
9837Usually this means the macro was only invoked conditionally." >&2;}
9838   { (exit 1); exit 1; }; }
9839fi
9840
9841: ${CONFIG_STATUS=./config.status}
9842ac_clean_files_save=$ac_clean_files
9843ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9844{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9845echo "$as_me: creating $CONFIG_STATUS" >&6;}
9846cat >$CONFIG_STATUS <<_ACEOF
9847#! $SHELL
9848# Generated by $as_me.
9849# Run this file to recreate the current configuration.
9850# Compiler output produced by configure, useful for debugging
9851# configure, is in config.log if it exists.
9852
9853debug=false
9854ac_cs_recheck=false
9855ac_cs_silent=false
9856SHELL=\${CONFIG_SHELL-$SHELL}
9857_ACEOF
9858
9859cat >>$CONFIG_STATUS <<\_ACEOF
9860## --------------------- ##
9861## M4sh Initialization.  ##
9862## --------------------- ##
9863
9864# Be Bourne compatible
9865if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9866  emulate sh
9867  NULLCMD=:
9868  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9869  # is contrary to our usage.  Disable this feature.
9870  alias -g '${1+"$@"}'='"$@"'
9871elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9872  set -o posix
9873fi
9874DUALCASE=1; export DUALCASE # for MKS sh
9875
9876# Support unset when possible.
9877if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9878  as_unset=unset
9879else
9880  as_unset=false
9881fi
9882
9883
9884# Work around bugs in pre-3.0 UWIN ksh.
9885$as_unset ENV MAIL MAILPATH
9886PS1='$ '
9887PS2='> '
9888PS4='+ '
9889
9890# NLS nuisances.
9891for as_var in \
9892  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9893  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9894  LC_TELEPHONE LC_TIME
9895do
9896  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9897    eval $as_var=C; export $as_var
9898  else
9899    $as_unset $as_var
9900  fi
9901done
9902
9903# Required to use basename.
9904if expr a : '\(a\)' >/dev/null 2>&1; then
9905  as_expr=expr
9906else
9907  as_expr=false
9908fi
9909
9910if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9911  as_basename=basename
9912else
9913  as_basename=false
9914fi
9915
9916
9917# Name of the executable.
9918as_me=`$as_basename "$0" ||
9919$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9920         X"$0" : 'X\(//\)$' \| \
9921         X"$0" : 'X\(/\)$' \| \
9922         .     : '\(.\)' 2>/dev/null ||
9923echo X/"$0" |
9924    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9925          /^X\/\(\/\/\)$/{ s//\1/; q; }
9926          /^X\/\(\/\).*/{ s//\1/; q; }
9927          s/.*/./; q'`
9928
9929
9930# PATH needs CR, and LINENO needs CR and PATH.
9931# Avoid depending upon Character Ranges.
9932as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9933as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9934as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9935as_cr_digits='0123456789'
9936as_cr_alnum=$as_cr_Letters$as_cr_digits
9937
9938# The user is always right.
9939if test "${PATH_SEPARATOR+set}" != set; then
9940  echo "#! /bin/sh" >conf$$.sh
9941  echo  "exit 0"   >>conf$$.sh
9942  chmod +x conf$$.sh
9943  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9944    PATH_SEPARATOR=';'
9945  else
9946    PATH_SEPARATOR=:
9947  fi
9948  rm -f conf$$.sh
9949fi
9950
9951
9952  as_lineno_1=$LINENO
9953  as_lineno_2=$LINENO
9954  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9955  test "x$as_lineno_1" != "x$as_lineno_2" &&
9956  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9957  # Find who we are.  Look in the path if we contain no path at all
9958  # relative or not.
9959  case $0 in
9960    *[\\/]* ) as_myself=$0 ;;
9961    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962for as_dir in $PATH
9963do
9964  IFS=$as_save_IFS
9965  test -z "$as_dir" && as_dir=.
9966  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9967done
9968
9969       ;;
9970  esac
9971  # We did not find ourselves, most probably we were run as `sh COMMAND'
9972  # in which case we are not to be found in the path.
9973  if test "x$as_myself" = x; then
9974    as_myself=$0
9975  fi
9976  if test ! -f "$as_myself"; then
9977    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9978echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9979   { (exit 1); exit 1; }; }
9980  fi
9981  case $CONFIG_SHELL in
9982  '')
9983    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9985do
9986  IFS=$as_save_IFS
9987  test -z "$as_dir" && as_dir=.
9988  for as_base in sh bash ksh sh5; do
9989         case $as_dir in
9990         /*)
9991           if ("$as_dir/$as_base" -c '
9992  as_lineno_1=$LINENO
9993  as_lineno_2=$LINENO
9994  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9995  test "x$as_lineno_1" != "x$as_lineno_2" &&
9996  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9997             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9998             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9999             CONFIG_SHELL=$as_dir/$as_base
10000             export CONFIG_SHELL
10001             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10002           fi;;
10003         esac
10004       done
10005done
10006;;
10007  esac
10008
10009  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10010  # uniformly replaced by the line number.  The first 'sed' inserts a
10011  # line-number line before each line; the second 'sed' does the real
10012  # work.  The second script uses 'N' to pair each line-number line
10013  # with the numbered line, and appends trailing '-' during
10014  # substitution so that $LINENO is not a special case at line end.
10015  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10016  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10017  sed '=' <$as_myself |
10018    sed '
10019      N
10020      s,$,-,
10021      : loop
10022      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10023      t loop
10024      s,-$,,
10025      s,^['$as_cr_digits']*\n,,
10026    ' >$as_me.lineno &&
10027  chmod +x $as_me.lineno ||
10028    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10029echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10030   { (exit 1); exit 1; }; }
10031
10032  # Don't try to exec as it changes $[0], causing all sort of problems
10033  # (the dirname of $[0] is not the place where we might find the
10034  # original and so on.  Autoconf is especially sensible to this).
10035  . ./$as_me.lineno
10036  # Exit status is that of the last command.
10037  exit
10038}
10039
10040
10041case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10042  *c*,-n*) ECHO_N= ECHO_C='
10043' ECHO_T='      ' ;;
10044  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10045  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10046esac
10047
10048if expr a : '\(a\)' >/dev/null 2>&1; then
10049  as_expr=expr
10050else
10051  as_expr=false
10052fi
10053
10054rm -f conf$$ conf$$.exe conf$$.file
10055echo >conf$$.file
10056if ln -s conf$$.file conf$$ 2>/dev/null; then
10057  # We could just check for DJGPP; but this test a) works b) is more generic
10058  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10059  if test -f conf$$.exe; then
10060    # Don't use ln at all; we don't have any links
10061    as_ln_s='cp -p'
10062  else
10063    as_ln_s='ln -s'
10064  fi
10065elif ln conf$$.file conf$$ 2>/dev/null; then
10066  as_ln_s=ln
10067else
10068  as_ln_s='cp -p'
10069fi
10070rm -f conf$$ conf$$.exe conf$$.file
10071
10072if mkdir -p . 2>/dev/null; then
10073  as_mkdir_p=:
10074else
10075  test -d ./-p && rmdir ./-p
10076  as_mkdir_p=false
10077fi
10078
10079as_executable_p="test -f"
10080
10081# Sed expression to map a string onto a valid CPP name.
10082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10083
10084# Sed expression to map a string onto a valid variable name.
10085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10086
10087
10088# IFS
10089# We need space, tab and new line, in precisely that order.
10090as_nl='
10091'
10092IFS="   $as_nl"
10093
10094# CDPATH.
10095$as_unset CDPATH
10096
10097exec 6>&1
10098
10099# Open the log real soon, to keep \$[0] and so on meaningful, and to
10100# report actual input values of CONFIG_FILES etc. instead of their
10101# values after options handling.  Logging --version etc. is OK.
10102exec 5>>config.log
10103{
10104  echo
10105  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10106## Running $as_me. ##
10107_ASBOX
10108} >&5
10109cat >&5 <<_CSEOF
10110
10111This file was extended by orxonox $as_me 0.3.1_alpha, which was
10112generated by GNU Autoconf 2.59.  Invocation command line was
10113
10114  CONFIG_FILES    = $CONFIG_FILES
10115  CONFIG_HEADERS  = $CONFIG_HEADERS
10116  CONFIG_LINKS    = $CONFIG_LINKS
10117  CONFIG_COMMANDS = $CONFIG_COMMANDS
10118  $ $0 $@
10119
10120_CSEOF
10121echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10122echo >&5
10123_ACEOF
10124
10125# Files that config.status was made for.
10126if test -n "$ac_config_files"; then
10127  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10128fi
10129
10130if test -n "$ac_config_headers"; then
10131  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10132fi
10133
10134if test -n "$ac_config_links"; then
10135  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10136fi
10137
10138if test -n "$ac_config_commands"; then
10139  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10140fi
10141
10142cat >>$CONFIG_STATUS <<\_ACEOF
10143
10144ac_cs_usage="\
10145\`$as_me' instantiates files from templates according to the
10146current configuration.
10147
10148Usage: $0 [OPTIONS] [FILE]...
10149
10150  -h, --help       print this help, then exit
10151  -V, --version    print version number, then exit
10152  -q, --quiet      do not print progress messages
10153  -d, --debug      don't remove temporary files
10154      --recheck    update $as_me by reconfiguring in the same conditions
10155  --file=FILE[:TEMPLATE]
10156                   instantiate the configuration file FILE
10157  --header=FILE[:TEMPLATE]
10158                   instantiate the configuration header FILE
10159
10160Configuration files:
10161$config_files
10162
10163Configuration headers:
10164$config_headers
10165
10166Configuration commands:
10167$config_commands
10168
10169Report bugs to <bug-autoconf@gnu.org>."
10170_ACEOF
10171
10172cat >>$CONFIG_STATUS <<_ACEOF
10173ac_cs_version="\\
10174orxonox config.status 0.3.1_alpha
10175configured by $0, generated by GNU Autoconf 2.59,
10176  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10177
10178Copyright (C) 2003 Free Software Foundation, Inc.
10179This config.status script is free software; the Free Software Foundation
10180gives unlimited permission to copy, distribute and modify it."
10181srcdir=$srcdir
10182INSTALL="$INSTALL"
10183_ACEOF
10184
10185cat >>$CONFIG_STATUS <<\_ACEOF
10186# If no file are specified by the user, then we need to provide default
10187# value.  By we need to know if files were specified by the user.
10188ac_need_defaults=:
10189while test $# != 0
10190do
10191  case $1 in
10192  --*=*)
10193    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10194    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10195    ac_shift=:
10196    ;;
10197  -*)
10198    ac_option=$1
10199    ac_optarg=$2
10200    ac_shift=shift
10201    ;;
10202  *) # This is not an option, so the user has probably given explicit
10203     # arguments.
10204     ac_option=$1
10205     ac_need_defaults=false;;
10206  esac
10207
10208  case $ac_option in
10209  # Handling of the options.
10210_ACEOF
10211cat >>$CONFIG_STATUS <<\_ACEOF
10212  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10213    ac_cs_recheck=: ;;
10214  --version | --vers* | -V )
10215    echo "$ac_cs_version"; exit 0 ;;
10216  --he | --h)
10217    # Conflict between --help and --header
10218    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10219Try \`$0 --help' for more information." >&5
10220echo "$as_me: error: ambiguous option: $1
10221Try \`$0 --help' for more information." >&2;}
10222   { (exit 1); exit 1; }; };;
10223  --help | --hel | -h )
10224    echo "$ac_cs_usage"; exit 0 ;;
10225  --debug | --d* | -d )
10226    debug=: ;;
10227  --file | --fil | --fi | --f )
10228    $ac_shift
10229    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10230    ac_need_defaults=false;;
10231  --header | --heade | --head | --hea )
10232    $ac_shift
10233    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10234    ac_need_defaults=false;;
10235  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10236  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10237    ac_cs_silent=: ;;
10238
10239  # This is an error.
10240  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10241Try \`$0 --help' for more information." >&5
10242echo "$as_me: error: unrecognized option: $1
10243Try \`$0 --help' for more information." >&2;}
10244   { (exit 1); exit 1; }; } ;;
10245
10246  *) ac_config_targets="$ac_config_targets $1" ;;
10247
10248  esac
10249  shift
10250done
10251
10252ac_configure_extra_args=
10253
10254if $ac_cs_silent; then
10255  exec 6>/dev/null
10256  ac_configure_extra_args="$ac_configure_extra_args --silent"
10257fi
10258
10259_ACEOF
10260cat >>$CONFIG_STATUS <<_ACEOF
10261if \$ac_cs_recheck; then
10262  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10263  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10264fi
10265
10266_ACEOF
10267
10268cat >>$CONFIG_STATUS <<_ACEOF
10269#
10270# INIT-COMMANDS section.
10271#
10272
10273AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10274
10275_ACEOF
10276
10277
10278
10279cat >>$CONFIG_STATUS <<\_ACEOF
10280for ac_config_target in $ac_config_targets
10281do
10282  case "$ac_config_target" in
10283  # Handling of arguments.
10284  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10285  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10286  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10287  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
10288  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
10289  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
10290  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
10291  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
10292  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
10293  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
10294  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
10295  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
10296  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
10297  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
10298  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10299  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
10300  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
10301  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
10302  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
10303  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10304  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10305  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10306echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10307   { (exit 1); exit 1; }; };;
10308  esac
10309done
10310
10311# If the user did not use the arguments to specify the items to instantiate,
10312# then the envvar interface is used.  Set only those that are not.
10313# We use the long form for the default assignment because of an extremely
10314# bizarre bug on SunOS 4.1.3.
10315if $ac_need_defaults; then
10316  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10317  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10318  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10319fi
10320
10321# Have a temporary directory for convenience.  Make it in the build tree
10322# simply because there is no reason to put it here, and in addition,
10323# creating and moving files from /tmp can sometimes cause problems.
10324# Create a temporary directory, and hook for its removal unless debugging.
10325$debug ||
10326{
10327  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10328  trap '{ (exit 1); exit 1; }' 1 2 13 15
10329}
10330
10331# Create a (secure) tmp directory for tmp files.
10332
10333{
10334  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10335  test -n "$tmp" && test -d "$tmp"
10336}  ||
10337{
10338  tmp=./confstat$$-$RANDOM
10339  (umask 077 && mkdir $tmp)
10340} ||
10341{
10342   echo "$me: cannot create a temporary directory in ." >&2
10343   { (exit 1); exit 1; }
10344}
10345
10346_ACEOF
10347
10348cat >>$CONFIG_STATUS <<_ACEOF
10349
10350#
10351# CONFIG_FILES section.
10352#
10353
10354# No need to generate the scripts if there are no CONFIG_FILES.
10355# This happens for instance when ./config.status config.h
10356if test -n "\$CONFIG_FILES"; then
10357  # Protect against being on the right side of a sed subst in config.status.
10358  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10359   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10360s,@SHELL@,$SHELL,;t t
10361s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10362s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10363s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10364s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10365s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10366s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10367s,@exec_prefix@,$exec_prefix,;t t
10368s,@prefix@,$prefix,;t t
10369s,@program_transform_name@,$program_transform_name,;t t
10370s,@bindir@,$bindir,;t t
10371s,@sbindir@,$sbindir,;t t
10372s,@libexecdir@,$libexecdir,;t t
10373s,@datadir@,$datadir,;t t
10374s,@sysconfdir@,$sysconfdir,;t t
10375s,@sharedstatedir@,$sharedstatedir,;t t
10376s,@localstatedir@,$localstatedir,;t t
10377s,@libdir@,$libdir,;t t
10378s,@includedir@,$includedir,;t t
10379s,@oldincludedir@,$oldincludedir,;t t
10380s,@infodir@,$infodir,;t t
10381s,@mandir@,$mandir,;t t
10382s,@build_alias@,$build_alias,;t t
10383s,@host_alias@,$host_alias,;t t
10384s,@target_alias@,$target_alias,;t t
10385s,@DEFS@,$DEFS,;t t
10386s,@ECHO_C@,$ECHO_C,;t t
10387s,@ECHO_N@,$ECHO_N,;t t
10388s,@ECHO_T@,$ECHO_T,;t t
10389s,@LIBS@,$LIBS,;t t
10390s,@build@,$build,;t t
10391s,@build_cpu@,$build_cpu,;t t
10392s,@build_vendor@,$build_vendor,;t t
10393s,@build_os@,$build_os,;t t
10394s,@host@,$host,;t t
10395s,@host_cpu@,$host_cpu,;t t
10396s,@host_vendor@,$host_vendor,;t t
10397s,@host_os@,$host_os,;t t
10398s,@target@,$target,;t t
10399s,@target_cpu@,$target_cpu,;t t
10400s,@target_vendor@,$target_vendor,;t t
10401s,@target_os@,$target_os,;t t
10402s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10403s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10404s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10405s,@CYGPATH_W@,$CYGPATH_W,;t t
10406s,@PACKAGE@,$PACKAGE,;t t
10407s,@VERSION@,$VERSION,;t t
10408s,@ACLOCAL@,$ACLOCAL,;t t
10409s,@AUTOCONF@,$AUTOCONF,;t t
10410s,@AUTOMAKE@,$AUTOMAKE,;t t
10411s,@AUTOHEADER@,$AUTOHEADER,;t t
10412s,@MAKEINFO@,$MAKEINFO,;t t
10413s,@AMTAR@,$AMTAR,;t t
10414s,@install_sh@,$install_sh,;t t
10415s,@STRIP@,$STRIP,;t t
10416s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10417s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10418s,@mkdir_p@,$mkdir_p,;t t
10419s,@AWK@,$AWK,;t t
10420s,@SET_MAKE@,$SET_MAKE,;t t
10421s,@am__leading_dot@,$am__leading_dot,;t t
10422s,@CXX@,$CXX,;t t
10423s,@CXXFLAGS@,$CXXFLAGS,;t t
10424s,@LDFLAGS@,$LDFLAGS,;t t
10425s,@CPPFLAGS@,$CPPFLAGS,;t t
10426s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10427s,@EXEEXT@,$EXEEXT,;t t
10428s,@OBJEXT@,$OBJEXT,;t t
10429s,@DEPDIR@,$DEPDIR,;t t
10430s,@am__include@,$am__include,;t t
10431s,@am__quote@,$am__quote,;t t
10432s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10433s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10434s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10435s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10436s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10437s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10438s,@RANLIB@,$RANLIB,;t t
10439s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10440s,@CC@,$CC,;t t
10441s,@CFLAGS@,$CFLAGS,;t t
10442s,@ac_ct_CC@,$ac_ct_CC,;t t
10443s,@CCDEPMODE@,$CCDEPMODE,;t t
10444s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10445s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10446s,@CPP@,$CPP,;t t
10447s,@EGREP@,$EGREP,;t t
10448s,@DEBUG@,$DEBUG,;t t
10449s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10450s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
10451s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10452s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
10453s,@DOXYGEN@,$DOXYGEN,;t t
10454s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10455s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
10456s,@GPROF@,$GPROF,;t t
10457s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10458s,@MSBITFIELDS@,$MSBITFIELDS,;t t
10459s,@GTK2_LIBS@,$GTK2_LIBS,;t t
10460s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10461s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10462s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
10463s,@CURL_LIBS@,$CURL_LIBS,;t t
10464s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10465s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10466s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
10467s,@LIBOBJS@,$LIBOBJS,;t t
10468s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10469CEOF
10470
10471_ACEOF
10472
10473  cat >>$CONFIG_STATUS <<\_ACEOF
10474  # Split the substitutions into bite-sized pieces for seds with
10475  # small command number limits, like on Digital OSF/1 and HP-UX.
10476  ac_max_sed_lines=48
10477  ac_sed_frag=1 # Number of current file.
10478  ac_beg=1 # First line for current file.
10479  ac_end=$ac_max_sed_lines # Line after last line for current file.
10480  ac_more_lines=:
10481  ac_sed_cmds=
10482  while $ac_more_lines; do
10483    if test $ac_beg -gt 1; then
10484      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10485    else
10486      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10487    fi
10488    if test ! -s $tmp/subs.frag; then
10489      ac_more_lines=false
10490    else
10491      # The purpose of the label and of the branching condition is to
10492      # speed up the sed processing (if there are no `@' at all, there
10493      # is no need to browse any of the substitutions).
10494      # These are the two extra sed commands mentioned above.
10495      (echo ':t
10496  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10497      if test -z "$ac_sed_cmds"; then
10498        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10499      else
10500        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10501      fi
10502      ac_sed_frag=`expr $ac_sed_frag + 1`
10503      ac_beg=$ac_end
10504      ac_end=`expr $ac_end + $ac_max_sed_lines`
10505    fi
10506  done
10507  if test -z "$ac_sed_cmds"; then
10508    ac_sed_cmds=cat
10509  fi
10510fi # test -n "$CONFIG_FILES"
10511
10512_ACEOF
10513cat >>$CONFIG_STATUS <<\_ACEOF
10514for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10515  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10516  case $ac_file in
10517  - | *:- | *:-:* ) # input from stdin
10518        cat >$tmp/stdin
10519        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10520        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10521  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10522        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10523  * )   ac_file_in=$ac_file.in ;;
10524  esac
10525
10526  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10527  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10528$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10529         X"$ac_file" : 'X\(//\)[^/]' \| \
10530         X"$ac_file" : 'X\(//\)$' \| \
10531         X"$ac_file" : 'X\(/\)' \| \
10532         .     : '\(.\)' 2>/dev/null ||
10533echo X"$ac_file" |
10534    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10535          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10536          /^X\(\/\/\)$/{ s//\1/; q; }
10537          /^X\(\/\).*/{ s//\1/; q; }
10538          s/.*/./; q'`
10539  { if $as_mkdir_p; then
10540    mkdir -p "$ac_dir"
10541  else
10542    as_dir="$ac_dir"
10543    as_dirs=
10544    while test ! -d "$as_dir"; do
10545      as_dirs="$as_dir $as_dirs"
10546      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10547$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10548         X"$as_dir" : 'X\(//\)[^/]' \| \
10549         X"$as_dir" : 'X\(//\)$' \| \
10550         X"$as_dir" : 'X\(/\)' \| \
10551         .     : '\(.\)' 2>/dev/null ||
10552echo X"$as_dir" |
10553    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10554          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10555          /^X\(\/\/\)$/{ s//\1/; q; }
10556          /^X\(\/\).*/{ s//\1/; q; }
10557          s/.*/./; q'`
10558    done
10559    test ! -n "$as_dirs" || mkdir $as_dirs
10560  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10561echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10562   { (exit 1); exit 1; }; }; }
10563
10564  ac_builddir=.
10565
10566if test "$ac_dir" != .; then
10567  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10568  # A "../" for each directory in $ac_dir_suffix.
10569  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10570else
10571  ac_dir_suffix= ac_top_builddir=
10572fi
10573
10574case $srcdir in
10575  .)  # No --srcdir option.  We are building in place.
10576    ac_srcdir=.
10577    if test -z "$ac_top_builddir"; then
10578       ac_top_srcdir=.
10579    else
10580       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10581    fi ;;
10582  [\\/]* | ?:[\\/]* )  # Absolute path.
10583    ac_srcdir=$srcdir$ac_dir_suffix;
10584    ac_top_srcdir=$srcdir ;;
10585  *) # Relative path.
10586    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10587    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10588esac
10589
10590# Do not use `cd foo && pwd` to compute absolute paths, because
10591# the directories may not exist.
10592case `pwd` in
10593.) ac_abs_builddir="$ac_dir";;
10594*)
10595  case "$ac_dir" in
10596  .) ac_abs_builddir=`pwd`;;
10597  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10598  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10599  esac;;
10600esac
10601case $ac_abs_builddir in
10602.) ac_abs_top_builddir=${ac_top_builddir}.;;
10603*)
10604  case ${ac_top_builddir}. in
10605  .) ac_abs_top_builddir=$ac_abs_builddir;;
10606  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10607  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10608  esac;;
10609esac
10610case $ac_abs_builddir in
10611.) ac_abs_srcdir=$ac_srcdir;;
10612*)
10613  case $ac_srcdir in
10614  .) ac_abs_srcdir=$ac_abs_builddir;;
10615  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10616  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10617  esac;;
10618esac
10619case $ac_abs_builddir in
10620.) ac_abs_top_srcdir=$ac_top_srcdir;;
10621*)
10622  case $ac_top_srcdir in
10623  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10624  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10625  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10626  esac;;
10627esac
10628
10629
10630  case $INSTALL in
10631  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10632  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10633  esac
10634
10635  if test x"$ac_file" != x-; then
10636    { echo "$as_me:$LINENO: creating $ac_file" >&5
10637echo "$as_me: creating $ac_file" >&6;}
10638    rm -f "$ac_file"
10639  fi
10640  # Let's still pretend it is `configure' which instantiates (i.e., don't
10641  # use $as_me), people would be surprised to read:
10642  #    /* config.h.  Generated by config.status.  */
10643  if test x"$ac_file" = x-; then
10644    configure_input=
10645  else
10646    configure_input="$ac_file.  "
10647  fi
10648  configure_input=$configure_input"Generated from `echo $ac_file_in |
10649                                     sed 's,.*/,,'` by configure."
10650
10651  # First look for the input files in the build tree, otherwise in the
10652  # src tree.
10653  ac_file_inputs=`IFS=:
10654    for f in $ac_file_in; do
10655      case $f in
10656      -) echo $tmp/stdin ;;
10657      [\\/$]*)
10658         # Absolute (can't be DOS-style, as IFS=:)
10659         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10660echo "$as_me: error: cannot find input file: $f" >&2;}
10661   { (exit 1); exit 1; }; }
10662         echo "$f";;
10663      *) # Relative
10664         if test -f "$f"; then
10665           # Build tree
10666           echo "$f"
10667         elif test -f "$srcdir/$f"; then
10668           # Source tree
10669           echo "$srcdir/$f"
10670         else
10671           # /dev/null tree
10672           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10673echo "$as_me: error: cannot find input file: $f" >&2;}
10674   { (exit 1); exit 1; }; }
10675         fi;;
10676      esac
10677    done` || { (exit 1); exit 1; }
10678_ACEOF
10679cat >>$CONFIG_STATUS <<_ACEOF
10680  sed "$ac_vpsub
10681$extrasub
10682_ACEOF
10683cat >>$CONFIG_STATUS <<\_ACEOF
10684:t
10685/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10686s,@configure_input@,$configure_input,;t t
10687s,@srcdir@,$ac_srcdir,;t t
10688s,@abs_srcdir@,$ac_abs_srcdir,;t t
10689s,@top_srcdir@,$ac_top_srcdir,;t t
10690s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10691s,@builddir@,$ac_builddir,;t t
10692s,@abs_builddir@,$ac_abs_builddir,;t t
10693s,@top_builddir@,$ac_top_builddir,;t t
10694s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10695s,@INSTALL@,$ac_INSTALL,;t t
10696" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10697  rm -f $tmp/stdin
10698  if test x"$ac_file" != x-; then
10699    mv $tmp/out $ac_file
10700  else
10701    cat $tmp/out
10702    rm -f $tmp/out
10703  fi
10704
10705done
10706_ACEOF
10707cat >>$CONFIG_STATUS <<\_ACEOF
10708
10709#
10710# CONFIG_HEADER section.
10711#
10712
10713# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10714# NAME is the cpp macro being defined and VALUE is the value it is being given.
10715#
10716# ac_d sets the value in "#define NAME VALUE" lines.
10717ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10718ac_dB='[         ].*$,\1#\2'
10719ac_dC=' '
10720ac_dD=',;t'
10721# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10722ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10723ac_uB='$,\1#\2define\3'
10724ac_uC=' '
10725ac_uD=',;t'
10726
10727for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10728  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10729  case $ac_file in
10730  - | *:- | *:-:* ) # input from stdin
10731        cat >$tmp/stdin
10732        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10733        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10734  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10735        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10736  * )   ac_file_in=$ac_file.in ;;
10737  esac
10738
10739  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10740echo "$as_me: creating $ac_file" >&6;}
10741
10742  # First look for the input files in the build tree, otherwise in the
10743  # src tree.
10744  ac_file_inputs=`IFS=:
10745    for f in $ac_file_in; do
10746      case $f in
10747      -) echo $tmp/stdin ;;
10748      [\\/$]*)
10749         # Absolute (can't be DOS-style, as IFS=:)
10750         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10751echo "$as_me: error: cannot find input file: $f" >&2;}
10752   { (exit 1); exit 1; }; }
10753         # Do quote $f, to prevent DOS paths from being IFS'd.
10754         echo "$f";;
10755      *) # Relative
10756         if test -f "$f"; then
10757           # Build tree
10758           echo "$f"
10759         elif test -f "$srcdir/$f"; then
10760           # Source tree
10761           echo "$srcdir/$f"
10762         else
10763           # /dev/null tree
10764           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10765echo "$as_me: error: cannot find input file: $f" >&2;}
10766   { (exit 1); exit 1; }; }
10767         fi;;
10768      esac
10769    done` || { (exit 1); exit 1; }
10770  # Remove the trailing spaces.
10771  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10772
10773_ACEOF
10774
10775# Transform confdefs.h into two sed scripts, `conftest.defines' and
10776# `conftest.undefs', that substitutes the proper values into
10777# config.h.in to produce config.h.  The first handles `#define'
10778# templates, and the second `#undef' templates.
10779# And first: Protect against being on the right side of a sed subst in
10780# config.status.  Protect against being in an unquoted here document
10781# in config.status.
10782rm -f conftest.defines conftest.undefs
10783# Using a here document instead of a string reduces the quoting nightmare.
10784# Putting comments in sed scripts is not portable.
10785#
10786# `end' is used to avoid that the second main sed command (meant for
10787# 0-ary CPP macros) applies to n-ary macro definitions.
10788# See the Autoconf documentation for `clear'.
10789cat >confdef2sed.sed <<\_ACEOF
10790s/[\\&,]/\\&/g
10791s,[\\$`],\\&,g
10792t clear
10793: clear
10794s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10795t end
10796s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10797: end
10798_ACEOF
10799# If some macros were called several times there might be several times
10800# the same #defines, which is useless.  Nevertheless, we may not want to
10801# sort them, since we want the *last* AC-DEFINE to be honored.
10802uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10803sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10804rm -f confdef2sed.sed
10805
10806# This sed command replaces #undef with comments.  This is necessary, for
10807# example, in the case of _POSIX_SOURCE, which is predefined and required
10808# on some systems where configure will not decide to define it.
10809cat >>conftest.undefs <<\_ACEOF
10810s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10811_ACEOF
10812
10813# Break up conftest.defines because some shells have a limit on the size
10814# of here documents, and old seds have small limits too (100 cmds).
10815echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10816echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10817echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10818echo '  :' >>$CONFIG_STATUS
10819rm -f conftest.tail
10820while grep . conftest.defines >/dev/null
10821do
10822  # Write a limited-size here document to $tmp/defines.sed.
10823  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10824  # Speed up: don't consider the non `#define' lines.
10825  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10826  # Work around the forget-to-reset-the-flag bug.
10827  echo 't clr' >>$CONFIG_STATUS
10828  echo ': clr' >>$CONFIG_STATUS
10829  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10830  echo 'CEOF
10831  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10832  rm -f $tmp/in
10833  mv $tmp/out $tmp/in
10834' >>$CONFIG_STATUS
10835  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10836  rm -f conftest.defines
10837  mv conftest.tail conftest.defines
10838done
10839rm -f conftest.defines
10840echo '  fi # grep' >>$CONFIG_STATUS
10841echo >>$CONFIG_STATUS
10842
10843# Break up conftest.undefs because some shells have a limit on the size
10844# of here documents, and old seds have small limits too (100 cmds).
10845echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10846rm -f conftest.tail
10847while grep . conftest.undefs >/dev/null
10848do
10849  # Write a limited-size here document to $tmp/undefs.sed.
10850  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10851  # Speed up: don't consider the non `#undef'
10852  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10853  # Work around the forget-to-reset-the-flag bug.
10854  echo 't clr' >>$CONFIG_STATUS
10855  echo ': clr' >>$CONFIG_STATUS
10856  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10857  echo 'CEOF
10858  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10859  rm -f $tmp/in
10860  mv $tmp/out $tmp/in
10861' >>$CONFIG_STATUS
10862  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10863  rm -f conftest.undefs
10864  mv conftest.tail conftest.undefs
10865done
10866rm -f conftest.undefs
10867
10868cat >>$CONFIG_STATUS <<\_ACEOF
10869  # Let's still pretend it is `configure' which instantiates (i.e., don't
10870  # use $as_me), people would be surprised to read:
10871  #    /* config.h.  Generated by config.status.  */
10872  if test x"$ac_file" = x-; then
10873    echo "/* Generated by configure.  */" >$tmp/config.h
10874  else
10875    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10876  fi
10877  cat $tmp/in >>$tmp/config.h
10878  rm -f $tmp/in
10879  if test x"$ac_file" != x-; then
10880    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10881      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10882echo "$as_me: $ac_file is unchanged" >&6;}
10883    else
10884      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10885$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10886         X"$ac_file" : 'X\(//\)[^/]' \| \
10887         X"$ac_file" : 'X\(//\)$' \| \
10888         X"$ac_file" : 'X\(/\)' \| \
10889         .     : '\(.\)' 2>/dev/null ||
10890echo X"$ac_file" |
10891    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10892          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10893          /^X\(\/\/\)$/{ s//\1/; q; }
10894          /^X\(\/\).*/{ s//\1/; q; }
10895          s/.*/./; q'`
10896      { if $as_mkdir_p; then
10897    mkdir -p "$ac_dir"
10898  else
10899    as_dir="$ac_dir"
10900    as_dirs=
10901    while test ! -d "$as_dir"; do
10902      as_dirs="$as_dir $as_dirs"
10903      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10905         X"$as_dir" : 'X\(//\)[^/]' \| \
10906         X"$as_dir" : 'X\(//\)$' \| \
10907         X"$as_dir" : 'X\(/\)' \| \
10908         .     : '\(.\)' 2>/dev/null ||
10909echo X"$as_dir" |
10910    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10911          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10912          /^X\(\/\/\)$/{ s//\1/; q; }
10913          /^X\(\/\).*/{ s//\1/; q; }
10914          s/.*/./; q'`
10915    done
10916    test ! -n "$as_dirs" || mkdir $as_dirs
10917  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10918echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10919   { (exit 1); exit 1; }; }; }
10920
10921      rm -f $ac_file
10922      mv $tmp/config.h $ac_file
10923    fi
10924  else
10925    cat $tmp/config.h
10926    rm -f $tmp/config.h
10927  fi
10928# Compute $ac_file's index in $config_headers.
10929_am_stamp_count=1
10930for _am_header in $config_headers :; do
10931  case $_am_header in
10932    $ac_file | $ac_file:* )
10933      break ;;
10934    * )
10935      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10936  esac
10937done
10938echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10939$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10940         X$ac_file : 'X\(//\)[^/]' \| \
10941         X$ac_file : 'X\(//\)$' \| \
10942         X$ac_file : 'X\(/\)' \| \
10943         .     : '\(.\)' 2>/dev/null ||
10944echo X$ac_file |
10945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10946          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10947          /^X\(\/\/\)$/{ s//\1/; q; }
10948          /^X\(\/\).*/{ s//\1/; q; }
10949          s/.*/./; q'`/stamp-h$_am_stamp_count
10950done
10951_ACEOF
10952cat >>$CONFIG_STATUS <<\_ACEOF
10953
10954#
10955# CONFIG_COMMANDS section.
10956#
10957for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10958  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10959  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10960  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10961$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10962         X"$ac_dest" : 'X\(//\)[^/]' \| \
10963         X"$ac_dest" : 'X\(//\)$' \| \
10964         X"$ac_dest" : 'X\(/\)' \| \
10965         .     : '\(.\)' 2>/dev/null ||
10966echo X"$ac_dest" |
10967    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10968          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10969          /^X\(\/\/\)$/{ s//\1/; q; }
10970          /^X\(\/\).*/{ s//\1/; q; }
10971          s/.*/./; q'`
10972  { if $as_mkdir_p; then
10973    mkdir -p "$ac_dir"
10974  else
10975    as_dir="$ac_dir"
10976    as_dirs=
10977    while test ! -d "$as_dir"; do
10978      as_dirs="$as_dir $as_dirs"
10979      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10980$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10981         X"$as_dir" : 'X\(//\)[^/]' \| \
10982         X"$as_dir" : 'X\(//\)$' \| \
10983         X"$as_dir" : 'X\(/\)' \| \
10984         .     : '\(.\)' 2>/dev/null ||
10985echo X"$as_dir" |
10986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10987          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10988          /^X\(\/\/\)$/{ s//\1/; q; }
10989          /^X\(\/\).*/{ s//\1/; q; }
10990          s/.*/./; q'`
10991    done
10992    test ! -n "$as_dirs" || mkdir $as_dirs
10993  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10994echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10995   { (exit 1); exit 1; }; }; }
10996
10997  ac_builddir=.
10998
10999if test "$ac_dir" != .; then
11000  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11001  # A "../" for each directory in $ac_dir_suffix.
11002  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11003else
11004  ac_dir_suffix= ac_top_builddir=
11005fi
11006
11007case $srcdir in
11008  .)  # No --srcdir option.  We are building in place.
11009    ac_srcdir=.
11010    if test -z "$ac_top_builddir"; then
11011       ac_top_srcdir=.
11012    else
11013       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11014    fi ;;
11015  [\\/]* | ?:[\\/]* )  # Absolute path.
11016    ac_srcdir=$srcdir$ac_dir_suffix;
11017    ac_top_srcdir=$srcdir ;;
11018  *) # Relative path.
11019    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11020    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11021esac
11022
11023# Do not use `cd foo && pwd` to compute absolute paths, because
11024# the directories may not exist.
11025case `pwd` in
11026.) ac_abs_builddir="$ac_dir";;
11027*)
11028  case "$ac_dir" in
11029  .) ac_abs_builddir=`pwd`;;
11030  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11031  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11032  esac;;
11033esac
11034case $ac_abs_builddir in
11035.) ac_abs_top_builddir=${ac_top_builddir}.;;
11036*)
11037  case ${ac_top_builddir}. in
11038  .) ac_abs_top_builddir=$ac_abs_builddir;;
11039  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11040  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11041  esac;;
11042esac
11043case $ac_abs_builddir in
11044.) ac_abs_srcdir=$ac_srcdir;;
11045*)
11046  case $ac_srcdir in
11047  .) ac_abs_srcdir=$ac_abs_builddir;;
11048  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11049  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11050  esac;;
11051esac
11052case $ac_abs_builddir in
11053.) ac_abs_top_srcdir=$ac_top_srcdir;;
11054*)
11055  case $ac_top_srcdir in
11056  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11057  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11058  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11059  esac;;
11060esac
11061
11062
11063  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11064echo "$as_me: executing $ac_dest commands" >&6;}
11065  case $ac_dest in
11066    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11067  # Strip MF so we end up with the name of the file.
11068  mf=`echo "$mf" | sed -e 's/:.*$//'`
11069  # Check whether this is an Automake generated Makefile or not.
11070  # We used to match only the files named `Makefile.in', but
11071  # some people rename them; so instead we look at the file content.
11072  # Grep'ing the first line is not enough: some people post-process
11073  # each Makefile.in and add a new line on top of each file to say so.
11074  # So let's grep whole file.
11075  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11076    dirpart=`(dirname "$mf") 2>/dev/null ||
11077$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11078         X"$mf" : 'X\(//\)[^/]' \| \
11079         X"$mf" : 'X\(//\)$' \| \
11080         X"$mf" : 'X\(/\)' \| \
11081         .     : '\(.\)' 2>/dev/null ||
11082echo X"$mf" |
11083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11084          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11085          /^X\(\/\/\)$/{ s//\1/; q; }
11086          /^X\(\/\).*/{ s//\1/; q; }
11087          s/.*/./; q'`
11088  else
11089    continue
11090  fi
11091  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11092  # Extract the definition of DEP_FILES from the Makefile without
11093  # running `make'.
11094  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11095  test -z "$DEPDIR" && continue
11096  # When using ansi2knr, U may be empty or an underscore; expand it
11097  U=`sed -n 's/^U = //p' < "$mf"`
11098  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11099  # We invoke sed twice because it is the simplest approach to
11100  # changing $(DEPDIR) to its actual value in the expansion.
11101  for file in `sed -n '
11102    /^DEP_FILES = .*\\\\$/ {
11103      s/^DEP_FILES = //
11104      :loop
11105        s/\\\\$//
11106        p
11107        n
11108        /\\\\$/ b loop
11109      p
11110    }
11111    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11112       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11113    # Make sure the directory exists.
11114    test -f "$dirpart/$file" && continue
11115    fdir=`(dirname "$file") 2>/dev/null ||
11116$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11117         X"$file" : 'X\(//\)[^/]' \| \
11118         X"$file" : 'X\(//\)$' \| \
11119         X"$file" : 'X\(/\)' \| \
11120         .     : '\(.\)' 2>/dev/null ||
11121echo X"$file" |
11122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11123          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11124          /^X\(\/\/\)$/{ s//\1/; q; }
11125          /^X\(\/\).*/{ s//\1/; q; }
11126          s/.*/./; q'`
11127    { if $as_mkdir_p; then
11128    mkdir -p $dirpart/$fdir
11129  else
11130    as_dir=$dirpart/$fdir
11131    as_dirs=
11132    while test ! -d "$as_dir"; do
11133      as_dirs="$as_dir $as_dirs"
11134      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11135$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11136         X"$as_dir" : 'X\(//\)[^/]' \| \
11137         X"$as_dir" : 'X\(//\)$' \| \
11138         X"$as_dir" : 'X\(/\)' \| \
11139         .     : '\(.\)' 2>/dev/null ||
11140echo X"$as_dir" |
11141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11142          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11143          /^X\(\/\/\)$/{ s//\1/; q; }
11144          /^X\(\/\).*/{ s//\1/; q; }
11145          s/.*/./; q'`
11146    done
11147    test ! -n "$as_dirs" || mkdir $as_dirs
11148  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11149echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11150   { (exit 1); exit 1; }; }; }
11151
11152    # echo "creating $dirpart/$file"
11153    echo '# dummy' > "$dirpart/$file"
11154  done
11155done
11156 ;;
11157  esac
11158done
11159_ACEOF
11160
11161cat >>$CONFIG_STATUS <<\_ACEOF
11162
11163{ (exit 0); exit 0; }
11164_ACEOF
11165chmod +x $CONFIG_STATUS
11166ac_clean_files=$ac_clean_files_save
11167
11168
11169# configure is writing to config.log, and then calls config.status.
11170# config.status does its own redirection, appending to config.log.
11171# Unfortunately, on DOS this fails, as config.log is still kept open
11172# by configure, so config.status won't be able to write to it; its
11173# output is simply discarded.  So we exec the FD to /dev/null,
11174# effectively closing config.log, so it can be properly (re)opened and
11175# appended to by config.status.  When coming back to configure, we
11176# need to make the FD available again.
11177if test "$no_create" != yes; then
11178  ac_cs_success=:
11179  ac_config_status_args=
11180  test "$silent" = yes &&
11181    ac_config_status_args="$ac_config_status_args --quiet"
11182  exec 5>/dev/null
11183  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11184  exec 5>>config.log
11185  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11186  # would make configure fail if this is the last instruction.
11187  $ac_cs_success || { (exit 1); exit 1; }
11188fi
11189
Note: See TracBrowser for help on using the repository browser.