Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5265

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

orxonox/trunk: configure now also checks for glew, and includes it

  • Property svn:executable set to *
File size: 344.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.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# checking for GLEW-headers
5943
5944for ac_header in GL/glew.h
5945do
5946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947if eval "test \"\${$as_ac_Header+set}\" = set"; then
5948  echo "$as_me:$LINENO: checking for $ac_header" >&5
5949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5950if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952fi
5953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5955else
5956  # Is the header compilable?
5957echo "$as_me:$LINENO: checking $ac_header usability" >&5
5958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5959cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h.  */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h.  */
5965$ac_includes_default
5966#include <$ac_header>
5967_ACEOF
5968rm -f conftest.$ac_objext
5969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970  (eval $ac_compile) 2>conftest.er1
5971  ac_status=$?
5972  grep -v '^ *+' conftest.er1 >conftest.err
5973  rm -f conftest.er1
5974  cat conftest.err >&5
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); } &&
5977         { ac_try='test -z "$ac_c_werror_flag"
5978                         || test ! -s conftest.err'
5979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980  (eval $ac_try) 2>&5
5981  ac_status=$?
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); }; } &&
5984         { ac_try='test -s conftest.$ac_objext'
5985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986  (eval $ac_try) 2>&5
5987  ac_status=$?
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); }; }; then
5990  ac_header_compiler=yes
5991else
5992  echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995ac_header_compiler=no
5996fi
5997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5998echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5999echo "${ECHO_T}$ac_header_compiler" >&6
6000
6001# Is the header present?
6002echo "$as_me:$LINENO: checking $ac_header presence" >&5
6003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6004cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h.  */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h.  */
6010#include <$ac_header>
6011_ACEOF
6012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6014  ac_status=$?
6015  grep -v '^ *+' conftest.er1 >conftest.err
6016  rm -f conftest.er1
6017  cat conftest.err >&5
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); } >/dev/null; then
6020  if test -s conftest.err; then
6021    ac_cpp_err=$ac_c_preproc_warn_flag
6022    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6023  else
6024    ac_cpp_err=
6025  fi
6026else
6027  ac_cpp_err=yes
6028fi
6029if test -z "$ac_cpp_err"; then
6030  ac_header_preproc=yes
6031else
6032  echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
6035  ac_header_preproc=no
6036fi
6037rm -f conftest.err conftest.$ac_ext
6038echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6039echo "${ECHO_T}$ac_header_preproc" >&6
6040
6041# So?  What about this header?
6042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6043  yes:no: )
6044    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6045echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6046    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6047echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6048    ac_header_preproc=yes
6049    ;;
6050  no:yes:* )
6051    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6052echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6053    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6054echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6055    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6056echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6057    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6058echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6061    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6062echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6063    (
6064      cat <<\_ASBOX
6065## ---------------------------------------------- ##
6066## Report this to orxonox-dev at mail.datacore.ch ##
6067## ---------------------------------------------- ##
6068_ASBOX
6069    ) |
6070      sed "s/^/$as_me: WARNING:     /" >&2
6071    ;;
6072esac
6073echo "$as_me:$LINENO: checking for $ac_header" >&5
6074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6075if eval "test \"\${$as_ac_Header+set}\" = set"; then
6076  echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078  eval "$as_ac_Header=\$ac_header_preproc"
6079fi
6080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6082
6083fi
6084if test `eval echo '${'$as_ac_Header'}'` = yes; then
6085  cat >>confdefs.h <<_ACEOF
6086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6087_ACEOF
6088
6089else
6090  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6091echo "$as_me: error: cannot find glew headers" >&2;}
6092   { (exit 1); exit 1; }; }
6093fi
6094
6095done
6096
6097# checking for GLEW-lib
6098  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6099echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6100if test "${ac_cv_lib_GLEW_main+set}" = set; then
6101  echo $ECHO_N "(cached) $ECHO_C" >&6
6102else
6103  ac_check_lib_save_LIBS=$LIBS
6104LIBS="-lGLEW  $LIBS"
6105cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h.  */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
6110/* end confdefs.h.  */
6111
6112
6113int
6114main ()
6115{
6116main ();
6117  ;
6118  return 0;
6119}
6120_ACEOF
6121rm -f conftest.$ac_objext conftest$ac_exeext
6122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123  (eval $ac_link) 2>conftest.er1
6124  ac_status=$?
6125  grep -v '^ *+' conftest.er1 >conftest.err
6126  rm -f conftest.er1
6127  cat conftest.err >&5
6128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129  (exit $ac_status); } &&
6130         { ac_try='test -z "$ac_c_werror_flag"
6131                         || test ! -s conftest.err'
6132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133  (eval $ac_try) 2>&5
6134  ac_status=$?
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); }; } &&
6137         { ac_try='test -s conftest$ac_exeext'
6138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139  (eval $ac_try) 2>&5
6140  ac_status=$?
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); }; }; then
6143  ac_cv_lib_GLEW_main=yes
6144else
6145  echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148ac_cv_lib_GLEW_main=no
6149fi
6150rm -f conftest.err conftest.$ac_objext \
6151      conftest$ac_exeext conftest.$ac_ext
6152LIBS=$ac_check_lib_save_LIBS
6153fi
6154echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6155echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6156if test $ac_cv_lib_GLEW_main = yes; then
6157  FOUND_GLEW=yes
6158fi
6159
6160   if test x$FOUND_GLEW = xyes ; then
6161     LIBS="$LIBS -lGLEW"
6162   else
6163         echo "------------------"
6164         echo "glew not found."
6165         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6166         echo "------------------"
6167         exit -1
6168   fi
6169
6170#--------#
6171# openAL #
6172#--------#
6173# checking for openAL-headers
6174
6175for ac_header in AL/al.h
6176do
6177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6178if eval "test \"\${$as_ac_Header+set}\" = set"; then
6179  echo "$as_me:$LINENO: checking for $ac_header" >&5
6180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6181if eval "test \"\${$as_ac_Header+set}\" = set"; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183fi
6184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6186else
6187  # Is the header compilable?
6188echo "$as_me:$LINENO: checking $ac_header usability" >&5
6189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6190cat >conftest.$ac_ext <<_ACEOF
6191/* confdefs.h.  */
6192_ACEOF
6193cat confdefs.h >>conftest.$ac_ext
6194cat >>conftest.$ac_ext <<_ACEOF
6195/* end confdefs.h.  */
6196$ac_includes_default
6197#include <$ac_header>
6198_ACEOF
6199rm -f conftest.$ac_objext
6200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6201  (eval $ac_compile) 2>conftest.er1
6202  ac_status=$?
6203  grep -v '^ *+' conftest.er1 >conftest.err
6204  rm -f conftest.er1
6205  cat conftest.err >&5
6206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207  (exit $ac_status); } &&
6208         { ac_try='test -z "$ac_c_werror_flag"
6209                         || test ! -s conftest.err'
6210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211  (eval $ac_try) 2>&5
6212  ac_status=$?
6213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214  (exit $ac_status); }; } &&
6215         { ac_try='test -s conftest.$ac_objext'
6216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217  (eval $ac_try) 2>&5
6218  ac_status=$?
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); }; }; then
6221  ac_header_compiler=yes
6222else
6223  echo "$as_me: failed program was:" >&5
6224sed 's/^/| /' conftest.$ac_ext >&5
6225
6226ac_header_compiler=no
6227fi
6228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6230echo "${ECHO_T}$ac_header_compiler" >&6
6231
6232# Is the header present?
6233echo "$as_me:$LINENO: checking $ac_header presence" >&5
6234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6235cat >conftest.$ac_ext <<_ACEOF
6236/* confdefs.h.  */
6237_ACEOF
6238cat confdefs.h >>conftest.$ac_ext
6239cat >>conftest.$ac_ext <<_ACEOF
6240/* end confdefs.h.  */
6241#include <$ac_header>
6242_ACEOF
6243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6245  ac_status=$?
6246  grep -v '^ *+' conftest.er1 >conftest.err
6247  rm -f conftest.er1
6248  cat conftest.err >&5
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); } >/dev/null; then
6251  if test -s conftest.err; then
6252    ac_cpp_err=$ac_c_preproc_warn_flag
6253    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6254  else
6255    ac_cpp_err=
6256  fi
6257else
6258  ac_cpp_err=yes
6259fi
6260if test -z "$ac_cpp_err"; then
6261  ac_header_preproc=yes
6262else
6263  echo "$as_me: failed program was:" >&5
6264sed 's/^/| /' conftest.$ac_ext >&5
6265
6266  ac_header_preproc=no
6267fi
6268rm -f conftest.err conftest.$ac_ext
6269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6270echo "${ECHO_T}$ac_header_preproc" >&6
6271
6272# So?  What about this header?
6273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6274  yes:no: )
6275    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6277    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6279    ac_header_preproc=yes
6280    ;;
6281  no:yes:* )
6282    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6284    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6285echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6286    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6288    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6289echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6292    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6294    (
6295      cat <<\_ASBOX
6296## ---------------------------------------------- ##
6297## Report this to orxonox-dev at mail.datacore.ch ##
6298## ---------------------------------------------- ##
6299_ASBOX
6300    ) |
6301      sed "s/^/$as_me: WARNING:     /" >&2
6302    ;;
6303esac
6304echo "$as_me:$LINENO: checking for $ac_header" >&5
6305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6306if eval "test \"\${$as_ac_Header+set}\" = set"; then
6307  echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309  eval "$as_ac_Header=\$ac_header_preproc"
6310fi
6311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6313
6314fi
6315if test `eval echo '${'$as_ac_Header'}'` = yes; then
6316  cat >>confdefs.h <<_ACEOF
6317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6318_ACEOF
6319
6320else
6321  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6322echo "$as_me: error: cannot find openAL header." >&2;}
6323   { (exit 1); exit 1; }; }
6324fi
6325
6326done
6327
6328# checking for openAL-lib
6329  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6330echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6331if test "${ac_cv_lib_openal_main+set}" = set; then
6332  echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334  ac_check_lib_save_LIBS=$LIBS
6335LIBS="-lopenal  $LIBS"
6336cat >conftest.$ac_ext <<_ACEOF
6337/* confdefs.h.  */
6338_ACEOF
6339cat confdefs.h >>conftest.$ac_ext
6340cat >>conftest.$ac_ext <<_ACEOF
6341/* end confdefs.h.  */
6342
6343
6344int
6345main ()
6346{
6347main ();
6348  ;
6349  return 0;
6350}
6351_ACEOF
6352rm -f conftest.$ac_objext conftest$ac_exeext
6353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354  (eval $ac_link) 2>conftest.er1
6355  ac_status=$?
6356  grep -v '^ *+' conftest.er1 >conftest.err
6357  rm -f conftest.er1
6358  cat conftest.err >&5
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); } &&
6361         { ac_try='test -z "$ac_c_werror_flag"
6362                         || test ! -s conftest.err'
6363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364  (eval $ac_try) 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); }; } &&
6368         { ac_try='test -s conftest$ac_exeext'
6369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370  (eval $ac_try) 2>&5
6371  ac_status=$?
6372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); }; }; then
6374  ac_cv_lib_openal_main=yes
6375else
6376  echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379ac_cv_lib_openal_main=no
6380fi
6381rm -f conftest.err conftest.$ac_objext \
6382      conftest$ac_exeext conftest.$ac_ext
6383LIBS=$ac_check_lib_save_LIBS
6384fi
6385echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6386echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6387if test $ac_cv_lib_openal_main = yes; then
6388  FOUND_openal=yes
6389fi
6390
6391     if test x$FOUND_openal = xyes ; then
6392       LIBS="$LIBS -lopenal"
6393     else
6394        echo "------------------"
6395        echo "openal library not found."
6396        echo "please install the openal library, which can be found at http://www.openal.org"
6397        echo "------------------"
6398        exit -1
6399     fi
6400# checking for alut
6401
6402for ac_header in AL/alut.h
6403do
6404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406  echo "$as_me:$LINENO: checking for $ac_header" >&5
6407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409  echo $ECHO_N "(cached) $ECHO_C" >&6
6410fi
6411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413else
6414  # Is the header compilable?
6415echo "$as_me:$LINENO: checking $ac_header usability" >&5
6416echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6417cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h.  */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h.  */
6423$ac_includes_default
6424#include <$ac_header>
6425_ACEOF
6426rm -f conftest.$ac_objext
6427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428  (eval $ac_compile) 2>conftest.er1
6429  ac_status=$?
6430  grep -v '^ *+' conftest.er1 >conftest.err
6431  rm -f conftest.er1
6432  cat conftest.err >&5
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); } &&
6435         { ac_try='test -z "$ac_c_werror_flag"
6436                         || test ! -s conftest.err'
6437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438  (eval $ac_try) 2>&5
6439  ac_status=$?
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); }; } &&
6442         { ac_try='test -s conftest.$ac_objext'
6443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444  (eval $ac_try) 2>&5
6445  ac_status=$?
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); }; }; then
6448  ac_header_compiler=yes
6449else
6450  echo "$as_me: failed program was:" >&5
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
6453ac_header_compiler=no
6454fi
6455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6457echo "${ECHO_T}$ac_header_compiler" >&6
6458
6459# Is the header present?
6460echo "$as_me:$LINENO: checking $ac_header presence" >&5
6461echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6462cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h.  */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h.  */
6468#include <$ac_header>
6469_ACEOF
6470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6472  ac_status=$?
6473  grep -v '^ *+' conftest.er1 >conftest.err
6474  rm -f conftest.er1
6475  cat conftest.err >&5
6476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477  (exit $ac_status); } >/dev/null; then
6478  if test -s conftest.err; then
6479    ac_cpp_err=$ac_c_preproc_warn_flag
6480    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6481  else
6482    ac_cpp_err=
6483  fi
6484else
6485  ac_cpp_err=yes
6486fi
6487if test -z "$ac_cpp_err"; then
6488  ac_header_preproc=yes
6489else
6490  echo "$as_me: failed program was:" >&5
6491sed 's/^/| /' conftest.$ac_ext >&5
6492
6493  ac_header_preproc=no
6494fi
6495rm -f conftest.err conftest.$ac_ext
6496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6497echo "${ECHO_T}$ac_header_preproc" >&6
6498
6499# So?  What about this header?
6500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6501  yes:no: )
6502    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6505echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6506    ac_header_preproc=yes
6507    ;;
6508  no:yes:* )
6509    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6512echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6513    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6514echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6515    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6516echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6517    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6519    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6520echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6521    (
6522      cat <<\_ASBOX
6523## ---------------------------------------------- ##
6524## Report this to orxonox-dev at mail.datacore.ch ##
6525## ---------------------------------------------- ##
6526_ASBOX
6527    ) |
6528      sed "s/^/$as_me: WARNING:     /" >&2
6529    ;;
6530esac
6531echo "$as_me:$LINENO: checking for $ac_header" >&5
6532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6533if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534  echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536  eval "$as_ac_Header=\$ac_header_preproc"
6537fi
6538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540
6541fi
6542if test `eval echo '${'$as_ac_Header'}'` = yes; then
6543  cat >>confdefs.h <<_ACEOF
6544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6545_ACEOF
6546
6547else
6548  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6549echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6550   { (exit 1); exit 1; }; }
6551fi
6552
6553done
6554
6555  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6556echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6557if test "${ac_cv_lib_alut_main+set}" = set; then
6558  echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560  ac_check_lib_save_LIBS=$LIBS
6561LIBS="-lalut  $LIBS"
6562cat >conftest.$ac_ext <<_ACEOF
6563/* confdefs.h.  */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h.  */
6568
6569
6570int
6571main ()
6572{
6573main ();
6574  ;
6575  return 0;
6576}
6577_ACEOF
6578rm -f conftest.$ac_objext conftest$ac_exeext
6579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580  (eval $ac_link) 2>conftest.er1
6581  ac_status=$?
6582  grep -v '^ *+' conftest.er1 >conftest.err
6583  rm -f conftest.er1
6584  cat conftest.err >&5
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); } &&
6587         { ac_try='test -z "$ac_c_werror_flag"
6588                         || test ! -s conftest.err'
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); }; } &&
6594         { ac_try='test -s conftest$ac_exeext'
6595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596  (eval $ac_try) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }; }; then
6600  ac_cv_lib_alut_main=yes
6601else
6602  echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605ac_cv_lib_alut_main=no
6606fi
6607rm -f conftest.err conftest.$ac_objext \
6608      conftest$ac_exeext conftest.$ac_ext
6609LIBS=$ac_check_lib_save_LIBS
6610fi
6611echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6612echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6613if test $ac_cv_lib_alut_main = yes; then
6614  FOUND_alut=yes
6615fi
6616
6617     if test x$FOUND_alut = xyes ; then
6618       LIBS="-lalut $LIBS"
6619     fi
6620
6621# checking for SDL
6622  echo "$as_me:$LINENO: checking for SDL-version" >&5
6623echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6624  SDL_VERSION=`sdl-config --version`
6625  echo $SDL_VERSION
6626
6627   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6628
6629for ac_header in SDL.h
6630do
6631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6632if eval "test \"\${$as_ac_Header+set}\" = set"; then
6633  echo "$as_me:$LINENO: checking for $ac_header" >&5
6634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6635if eval "test \"\${$as_ac_Header+set}\" = set"; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637fi
6638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6640else
6641  # Is the header compilable?
6642echo "$as_me:$LINENO: checking $ac_header usability" >&5
6643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6644cat >conftest.$ac_ext <<_ACEOF
6645/* confdefs.h.  */
6646_ACEOF
6647cat confdefs.h >>conftest.$ac_ext
6648cat >>conftest.$ac_ext <<_ACEOF
6649/* end confdefs.h.  */
6650$ac_includes_default
6651#include <$ac_header>
6652_ACEOF
6653rm -f conftest.$ac_objext
6654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655  (eval $ac_compile) 2>conftest.er1
6656  ac_status=$?
6657  grep -v '^ *+' conftest.er1 >conftest.err
6658  rm -f conftest.er1
6659  cat conftest.err >&5
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); } &&
6662         { ac_try='test -z "$ac_c_werror_flag"
6663                         || test ! -s conftest.err'
6664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665  (eval $ac_try) 2>&5
6666  ac_status=$?
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); }; } &&
6669         { ac_try='test -s conftest.$ac_objext'
6670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671  (eval $ac_try) 2>&5
6672  ac_status=$?
6673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674  (exit $ac_status); }; }; then
6675  ac_header_compiler=yes
6676else
6677  echo "$as_me: failed program was:" >&5
6678sed 's/^/| /' conftest.$ac_ext >&5
6679
6680ac_header_compiler=no
6681fi
6682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6684echo "${ECHO_T}$ac_header_compiler" >&6
6685
6686# Is the header present?
6687echo "$as_me:$LINENO: checking $ac_header presence" >&5
6688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6689cat >conftest.$ac_ext <<_ACEOF
6690/* confdefs.h.  */
6691_ACEOF
6692cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h.  */
6695#include <$ac_header>
6696_ACEOF
6697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6699  ac_status=$?
6700  grep -v '^ *+' conftest.er1 >conftest.err
6701  rm -f conftest.er1
6702  cat conftest.err >&5
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); } >/dev/null; then
6705  if test -s conftest.err; then
6706    ac_cpp_err=$ac_c_preproc_warn_flag
6707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6708  else
6709    ac_cpp_err=
6710  fi
6711else
6712  ac_cpp_err=yes
6713fi
6714if test -z "$ac_cpp_err"; then
6715  ac_header_preproc=yes
6716else
6717  echo "$as_me: failed program was:" >&5
6718sed 's/^/| /' conftest.$ac_ext >&5
6719
6720  ac_header_preproc=no
6721fi
6722rm -f conftest.err conftest.$ac_ext
6723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6724echo "${ECHO_T}$ac_header_preproc" >&6
6725
6726# So?  What about this header?
6727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6728  yes:no: )
6729    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6731    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6733    ac_header_preproc=yes
6734    ;;
6735  no:yes:* )
6736    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6738    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6739echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6740    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6742    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6743echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6744    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6746    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6748    (
6749      cat <<\_ASBOX
6750## ---------------------------------------------- ##
6751## Report this to orxonox-dev at mail.datacore.ch ##
6752## ---------------------------------------------- ##
6753_ASBOX
6754    ) |
6755      sed "s/^/$as_me: WARNING:     /" >&2
6756    ;;
6757esac
6758echo "$as_me:$LINENO: checking for $ac_header" >&5
6759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6760if eval "test \"\${$as_ac_Header+set}\" = set"; then
6761  echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763  eval "$as_ac_Header=\$ac_header_preproc"
6764fi
6765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6767
6768fi
6769if test `eval echo '${'$as_ac_Header'}'` = yes; then
6770  cat >>confdefs.h <<_ACEOF
6771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6772_ACEOF
6773
6774else
6775
6776for ac_header in SDL/SDL.h
6777do
6778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6779if eval "test \"\${$as_ac_Header+set}\" = set"; then
6780  echo "$as_me:$LINENO: checking for $ac_header" >&5
6781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6782if eval "test \"\${$as_ac_Header+set}\" = set"; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784fi
6785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6787else
6788  # Is the header compilable?
6789echo "$as_me:$LINENO: checking $ac_header usability" >&5
6790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6791cat >conftest.$ac_ext <<_ACEOF
6792/* confdefs.h.  */
6793_ACEOF
6794cat confdefs.h >>conftest.$ac_ext
6795cat >>conftest.$ac_ext <<_ACEOF
6796/* end confdefs.h.  */
6797$ac_includes_default
6798#include <$ac_header>
6799_ACEOF
6800rm -f conftest.$ac_objext
6801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802  (eval $ac_compile) 2>conftest.er1
6803  ac_status=$?
6804  grep -v '^ *+' conftest.er1 >conftest.err
6805  rm -f conftest.er1
6806  cat conftest.err >&5
6807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808  (exit $ac_status); } &&
6809         { ac_try='test -z "$ac_c_werror_flag"
6810                         || test ! -s conftest.err'
6811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812  (eval $ac_try) 2>&5
6813  ac_status=$?
6814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815  (exit $ac_status); }; } &&
6816         { ac_try='test -s conftest.$ac_objext'
6817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818  (eval $ac_try) 2>&5
6819  ac_status=$?
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); }; }; then
6822  ac_header_compiler=yes
6823else
6824  echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
6826
6827ac_header_compiler=no
6828fi
6829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6831echo "${ECHO_T}$ac_header_compiler" >&6
6832
6833# Is the header present?
6834echo "$as_me:$LINENO: checking $ac_header presence" >&5
6835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6836cat >conftest.$ac_ext <<_ACEOF
6837/* confdefs.h.  */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h.  */
6842#include <$ac_header>
6843_ACEOF
6844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6845  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6846  ac_status=$?
6847  grep -v '^ *+' conftest.er1 >conftest.err
6848  rm -f conftest.er1
6849  cat conftest.err >&5
6850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851  (exit $ac_status); } >/dev/null; then
6852  if test -s conftest.err; then
6853    ac_cpp_err=$ac_c_preproc_warn_flag
6854    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6855  else
6856    ac_cpp_err=
6857  fi
6858else
6859  ac_cpp_err=yes
6860fi
6861if test -z "$ac_cpp_err"; then
6862  ac_header_preproc=yes
6863else
6864  echo "$as_me: failed program was:" >&5
6865sed 's/^/| /' conftest.$ac_ext >&5
6866
6867  ac_header_preproc=no
6868fi
6869rm -f conftest.err conftest.$ac_ext
6870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6871echo "${ECHO_T}$ac_header_preproc" >&6
6872
6873# So?  What about this header?
6874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6875  yes:no: )
6876    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6878    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6880    ac_header_preproc=yes
6881    ;;
6882  no:yes:* )
6883    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6885    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6886echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6887    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6889    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6890echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6891    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6893    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6895    (
6896      cat <<\_ASBOX
6897## ---------------------------------------------- ##
6898## Report this to orxonox-dev at mail.datacore.ch ##
6899## ---------------------------------------------- ##
6900_ASBOX
6901    ) |
6902      sed "s/^/$as_me: WARNING:     /" >&2
6903    ;;
6904esac
6905echo "$as_me:$LINENO: checking for $ac_header" >&5
6906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6907if eval "test \"\${$as_ac_Header+set}\" = set"; then
6908  echo $ECHO_N "(cached) $ECHO_C" >&6
6909else
6910  eval "$as_ac_Header=\$ac_header_preproc"
6911fi
6912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6914
6915fi
6916if test `eval echo '${'$as_ac_Header'}'` = yes; then
6917  cat >>confdefs.h <<_ACEOF
6918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6919_ACEOF
6920
6921else
6922  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
6923echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
6924   { (exit 1); exit 1; }; }
6925fi
6926
6927done
6928
6929fi
6930
6931done
6932
6933   LIBS="`sdl-config --libs` $LIBS"
6934   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
6935echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
6936if test "${ac_cv_lib_SDL_main+set}" = set; then
6937  echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939  ac_check_lib_save_LIBS=$LIBS
6940LIBS="-lSDL  $LIBS"
6941cat >conftest.$ac_ext <<_ACEOF
6942/* confdefs.h.  */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h.  */
6947
6948
6949int
6950main ()
6951{
6952main ();
6953  ;
6954  return 0;
6955}
6956_ACEOF
6957rm -f conftest.$ac_objext conftest$ac_exeext
6958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959  (eval $ac_link) 2>conftest.er1
6960  ac_status=$?
6961  grep -v '^ *+' conftest.er1 >conftest.err
6962  rm -f conftest.er1
6963  cat conftest.err >&5
6964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965  (exit $ac_status); } &&
6966         { ac_try='test -z "$ac_c_werror_flag"
6967                         || test ! -s conftest.err'
6968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969  (eval $ac_try) 2>&5
6970  ac_status=$?
6971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972  (exit $ac_status); }; } &&
6973         { ac_try='test -s conftest$ac_exeext'
6974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975  (eval $ac_try) 2>&5
6976  ac_status=$?
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); }; }; then
6979  ac_cv_lib_SDL_main=yes
6980else
6981  echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984ac_cv_lib_SDL_main=no
6985fi
6986rm -f conftest.err conftest.$ac_objext \
6987      conftest$ac_exeext conftest.$ac_ext
6988LIBS=$ac_check_lib_save_LIBS
6989fi
6990echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
6991echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
6992if test $ac_cv_lib_SDL_main = yes; then
6993  FOUND_SDL=yes
6994fi
6995
6996    if test x$FOUND_SDL = xyes ; then
6997     echo `sdl-config --libs`
6998    else
6999        echo "------------------"
7000        echo "SDL library not found."
7001        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7002        echo "------------------"
7003        exit -1
7004     fi
7005
7006    ;;
7007
7008#############
7009#-----------#
7010# MAC -OS X #
7011#-----------#
7012#############
7013 *darwin*)
7014 echo "OS X detected"
7015
7016 osX="yes"
7017
7018 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7019# checking gl header
7020
7021for ac_header in OpenGL/gl.h
7022do
7023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024if eval "test \"\${$as_ac_Header+set}\" = set"; then
7025  echo "$as_me:$LINENO: checking for $ac_header" >&5
7026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7027if eval "test \"\${$as_ac_Header+set}\" = set"; then
7028  echo $ECHO_N "(cached) $ECHO_C" >&6
7029fi
7030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7032else
7033  # Is the header compilable?
7034echo "$as_me:$LINENO: checking $ac_header usability" >&5
7035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7036cat >conftest.$ac_ext <<_ACEOF
7037/* confdefs.h.  */
7038_ACEOF
7039cat confdefs.h >>conftest.$ac_ext
7040cat >>conftest.$ac_ext <<_ACEOF
7041/* end confdefs.h.  */
7042$ac_includes_default
7043#include <$ac_header>
7044_ACEOF
7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047  (eval $ac_compile) 2>conftest.er1
7048  ac_status=$?
7049  grep -v '^ *+' conftest.er1 >conftest.err
7050  rm -f conftest.er1
7051  cat conftest.err >&5
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); } &&
7054         { ac_try='test -z "$ac_c_werror_flag"
7055                         || test ! -s conftest.err'
7056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057  (eval $ac_try) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); }; } &&
7061         { ac_try='test -s conftest.$ac_objext'
7062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063  (eval $ac_try) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); }; }; then
7067  ac_header_compiler=yes
7068else
7069  echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072ac_header_compiler=no
7073fi
7074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7076echo "${ECHO_T}$ac_header_compiler" >&6
7077
7078# Is the header present?
7079echo "$as_me:$LINENO: checking $ac_header presence" >&5
7080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7081cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h.  */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h.  */
7087#include <$ac_header>
7088_ACEOF
7089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7090  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7091  ac_status=$?
7092  grep -v '^ *+' conftest.er1 >conftest.err
7093  rm -f conftest.er1
7094  cat conftest.err >&5
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); } >/dev/null; then
7097  if test -s conftest.err; then
7098    ac_cpp_err=$ac_c_preproc_warn_flag
7099    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7100  else
7101    ac_cpp_err=
7102  fi
7103else
7104  ac_cpp_err=yes
7105fi
7106if test -z "$ac_cpp_err"; then
7107  ac_header_preproc=yes
7108else
7109  echo "$as_me: failed program was:" >&5
7110sed 's/^/| /' conftest.$ac_ext >&5
7111
7112  ac_header_preproc=no
7113fi
7114rm -f conftest.err conftest.$ac_ext
7115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7116echo "${ECHO_T}$ac_header_preproc" >&6
7117
7118# So?  What about this header?
7119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7120  yes:no: )
7121    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7123    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7125    ac_header_preproc=yes
7126    ;;
7127  no:yes:* )
7128    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7130    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7131echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7132    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7134    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7135echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7136    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7138    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7140    (
7141      cat <<\_ASBOX
7142## ---------------------------------------------- ##
7143## Report this to orxonox-dev at mail.datacore.ch ##
7144## ---------------------------------------------- ##
7145_ASBOX
7146    ) |
7147      sed "s/^/$as_me: WARNING:     /" >&2
7148    ;;
7149esac
7150echo "$as_me:$LINENO: checking for $ac_header" >&5
7151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7152if eval "test \"\${$as_ac_Header+set}\" = set"; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155  eval "$as_ac_Header=\$ac_header_preproc"
7156fi
7157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7159
7160fi
7161if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162  cat >>confdefs.h <<_ACEOF
7163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164_ACEOF
7165
7166else
7167  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7168echo "$as_me: error: cannot find opengl headers" >&2;}
7169   { (exit 1); exit 1; }; }
7170fi
7171
7172done
7173
7174# cheking for GLU-header
7175
7176for ac_header in OpenGL/glu.h
7177do
7178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7179if eval "test \"\${$as_ac_Header+set}\" = set"; then
7180  echo "$as_me:$LINENO: checking for $ac_header" >&5
7181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7182if eval "test \"\${$as_ac_Header+set}\" = set"; then
7183  echo $ECHO_N "(cached) $ECHO_C" >&6
7184fi
7185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7187else
7188  # Is the header compilable?
7189echo "$as_me:$LINENO: checking $ac_header usability" >&5
7190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7191cat >conftest.$ac_ext <<_ACEOF
7192/* confdefs.h.  */
7193_ACEOF
7194cat confdefs.h >>conftest.$ac_ext
7195cat >>conftest.$ac_ext <<_ACEOF
7196/* end confdefs.h.  */
7197$ac_includes_default
7198#include <$ac_header>
7199_ACEOF
7200rm -f conftest.$ac_objext
7201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7202  (eval $ac_compile) 2>conftest.er1
7203  ac_status=$?
7204  grep -v '^ *+' conftest.er1 >conftest.err
7205  rm -f conftest.er1
7206  cat conftest.err >&5
7207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208  (exit $ac_status); } &&
7209         { ac_try='test -z "$ac_c_werror_flag"
7210                         || test ! -s conftest.err'
7211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212  (eval $ac_try) 2>&5
7213  ac_status=$?
7214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215  (exit $ac_status); }; } &&
7216         { ac_try='test -s conftest.$ac_objext'
7217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218  (eval $ac_try) 2>&5
7219  ac_status=$?
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); }; }; then
7222  ac_header_compiler=yes
7223else
7224  echo "$as_me: failed program was:" >&5
7225sed 's/^/| /' conftest.$ac_ext >&5
7226
7227ac_header_compiler=no
7228fi
7229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7231echo "${ECHO_T}$ac_header_compiler" >&6
7232
7233# Is the header present?
7234echo "$as_me:$LINENO: checking $ac_header presence" >&5
7235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7236cat >conftest.$ac_ext <<_ACEOF
7237/* confdefs.h.  */
7238_ACEOF
7239cat confdefs.h >>conftest.$ac_ext
7240cat >>conftest.$ac_ext <<_ACEOF
7241/* end confdefs.h.  */
7242#include <$ac_header>
7243_ACEOF
7244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7245  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7246  ac_status=$?
7247  grep -v '^ *+' conftest.er1 >conftest.err
7248  rm -f conftest.er1
7249  cat conftest.err >&5
7250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251  (exit $ac_status); } >/dev/null; then
7252  if test -s conftest.err; then
7253    ac_cpp_err=$ac_c_preproc_warn_flag
7254    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7255  else
7256    ac_cpp_err=
7257  fi
7258else
7259  ac_cpp_err=yes
7260fi
7261if test -z "$ac_cpp_err"; then
7262  ac_header_preproc=yes
7263else
7264  echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267  ac_header_preproc=no
7268fi
7269rm -f conftest.err conftest.$ac_ext
7270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7271echo "${ECHO_T}$ac_header_preproc" >&6
7272
7273# So?  What about this header?
7274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7275  yes:no: )
7276    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7278    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7280    ac_header_preproc=yes
7281    ;;
7282  no:yes:* )
7283    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7285    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7286echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7287    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7289    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7290echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7291    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7293    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7295    (
7296      cat <<\_ASBOX
7297## ---------------------------------------------- ##
7298## Report this to orxonox-dev at mail.datacore.ch ##
7299## ---------------------------------------------- ##
7300_ASBOX
7301    ) |
7302      sed "s/^/$as_me: WARNING:     /" >&2
7303    ;;
7304esac
7305echo "$as_me:$LINENO: checking for $ac_header" >&5
7306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7307if eval "test \"\${$as_ac_Header+set}\" = set"; then
7308  echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310  eval "$as_ac_Header=\$ac_header_preproc"
7311fi
7312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7314
7315fi
7316if test `eval echo '${'$as_ac_Header'}'` = yes; then
7317  cat >>confdefs.h <<_ACEOF
7318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7319_ACEOF
7320
7321else
7322  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7323echo "$as_me: error: cannot find opengl headers" >&2;}
7324   { (exit 1); exit 1; }; }
7325fi
7326
7327done
7328
7329
7330   LIBS="$LIBS -framework OpenGL"
7331
7332
7333## SDL-check
7334       SDL_CFLAGS=`sdl-config --cflags`
7335       SDL_LIBS=`sdl-config --libs`
7336       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7337       LIBS="$LIBS $SDL_LIBS"
7338
7339
7340# checking for SDL-headers
7341#    AC_CHECK_HEADERS(SDL/SDL.h ,,
7342#      [AC_MSG_ERROR([cannot find SDL headers]) ])
7343
7344## checking for SDL
7345#    SDL_VERSION=1.2.7
7346#    AM_PATH_SDL($SDL_VERSION,
7347#      :,
7348#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
7349#      )
7350
7351
7352    ;;
7353
7354  *)
7355    ;;
7356esac
7357
7358
7359
7360###################################
7361## CHECKING FOR HEADERS AND LIBS ##
7362###################################
7363
7364#---------#
7365# SDL_ttf #
7366#---------#
7367# checking for SDL_ttf-headers
7368
7369for ac_header in SDL_ttf.h
7370do
7371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373  echo "$as_me:$LINENO: checking for $ac_header" >&5
7374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376  echo $ECHO_N "(cached) $ECHO_C" >&6
7377fi
7378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7380else
7381  # Is the header compilable?
7382echo "$as_me:$LINENO: checking $ac_header usability" >&5
7383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7384cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h.  */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h.  */
7390$ac_includes_default
7391#include <$ac_header>
7392_ACEOF
7393rm -f conftest.$ac_objext
7394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395  (eval $ac_compile) 2>conftest.er1
7396  ac_status=$?
7397  grep -v '^ *+' conftest.er1 >conftest.err
7398  rm -f conftest.er1
7399  cat conftest.err >&5
7400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401  (exit $ac_status); } &&
7402         { ac_try='test -z "$ac_c_werror_flag"
7403                         || test ! -s conftest.err'
7404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405  (eval $ac_try) 2>&5
7406  ac_status=$?
7407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408  (exit $ac_status); }; } &&
7409         { ac_try='test -s conftest.$ac_objext'
7410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411  (eval $ac_try) 2>&5
7412  ac_status=$?
7413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414  (exit $ac_status); }; }; then
7415  ac_header_compiler=yes
7416else
7417  echo "$as_me: failed program was:" >&5
7418sed 's/^/| /' conftest.$ac_ext >&5
7419
7420ac_header_compiler=no
7421fi
7422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7424echo "${ECHO_T}$ac_header_compiler" >&6
7425
7426# Is the header present?
7427echo "$as_me:$LINENO: checking $ac_header presence" >&5
7428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7429cat >conftest.$ac_ext <<_ACEOF
7430/* confdefs.h.  */
7431_ACEOF
7432cat confdefs.h >>conftest.$ac_ext
7433cat >>conftest.$ac_ext <<_ACEOF
7434/* end confdefs.h.  */
7435#include <$ac_header>
7436_ACEOF
7437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7438  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7439  ac_status=$?
7440  grep -v '^ *+' conftest.er1 >conftest.err
7441  rm -f conftest.er1
7442  cat conftest.err >&5
7443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444  (exit $ac_status); } >/dev/null; then
7445  if test -s conftest.err; then
7446    ac_cpp_err=$ac_c_preproc_warn_flag
7447    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7448  else
7449    ac_cpp_err=
7450  fi
7451else
7452  ac_cpp_err=yes
7453fi
7454if test -z "$ac_cpp_err"; then
7455  ac_header_preproc=yes
7456else
7457  echo "$as_me: failed program was:" >&5
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460  ac_header_preproc=no
7461fi
7462rm -f conftest.err conftest.$ac_ext
7463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7464echo "${ECHO_T}$ac_header_preproc" >&6
7465
7466# So?  What about this header?
7467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7468  yes:no: )
7469    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7471    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7473    ac_header_preproc=yes
7474    ;;
7475  no:yes:* )
7476    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7478    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7479echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7480    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7482    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7483echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7484    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7486    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7488    (
7489      cat <<\_ASBOX
7490## ---------------------------------------------- ##
7491## Report this to orxonox-dev at mail.datacore.ch ##
7492## ---------------------------------------------- ##
7493_ASBOX
7494    ) |
7495      sed "s/^/$as_me: WARNING:     /" >&2
7496    ;;
7497esac
7498echo "$as_me:$LINENO: checking for $ac_header" >&5
7499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7500if eval "test \"\${$as_ac_Header+set}\" = set"; then
7501  echo $ECHO_N "(cached) $ECHO_C" >&6
7502else
7503  eval "$as_ac_Header=\$ac_header_preproc"
7504fi
7505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507
7508fi
7509if test `eval echo '${'$as_ac_Header'}'` = yes; then
7510  cat >>confdefs.h <<_ACEOF
7511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512_ACEOF
7513
7514else
7515
7516for ac_header in SDL/SDL_ttf.h
7517do
7518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7519if eval "test \"\${$as_ac_Header+set}\" = set"; then
7520  echo "$as_me:$LINENO: checking for $ac_header" >&5
7521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7522if eval "test \"\${$as_ac_Header+set}\" = set"; then
7523  echo $ECHO_N "(cached) $ECHO_C" >&6
7524fi
7525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7527else
7528  # Is the header compilable?
7529echo "$as_me:$LINENO: checking $ac_header usability" >&5
7530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7531cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h.  */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h.  */
7537$ac_includes_default
7538#include <$ac_header>
7539_ACEOF
7540rm -f conftest.$ac_objext
7541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542  (eval $ac_compile) 2>conftest.er1
7543  ac_status=$?
7544  grep -v '^ *+' conftest.er1 >conftest.err
7545  rm -f conftest.er1
7546  cat conftest.err >&5
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); } &&
7549         { ac_try='test -z "$ac_c_werror_flag"
7550                         || test ! -s conftest.err'
7551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552  (eval $ac_try) 2>&5
7553  ac_status=$?
7554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555  (exit $ac_status); }; } &&
7556         { ac_try='test -s conftest.$ac_objext'
7557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558  (eval $ac_try) 2>&5
7559  ac_status=$?
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); }; }; then
7562  ac_header_compiler=yes
7563else
7564  echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567ac_header_compiler=no
7568fi
7569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7571echo "${ECHO_T}$ac_header_compiler" >&6
7572
7573# Is the header present?
7574echo "$as_me:$LINENO: checking $ac_header presence" >&5
7575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7576cat >conftest.$ac_ext <<_ACEOF
7577/* confdefs.h.  */
7578_ACEOF
7579cat confdefs.h >>conftest.$ac_ext
7580cat >>conftest.$ac_ext <<_ACEOF
7581/* end confdefs.h.  */
7582#include <$ac_header>
7583_ACEOF
7584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7586  ac_status=$?
7587  grep -v '^ *+' conftest.er1 >conftest.err
7588  rm -f conftest.er1
7589  cat conftest.err >&5
7590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591  (exit $ac_status); } >/dev/null; then
7592  if test -s conftest.err; then
7593    ac_cpp_err=$ac_c_preproc_warn_flag
7594    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7595  else
7596    ac_cpp_err=
7597  fi
7598else
7599  ac_cpp_err=yes
7600fi
7601if test -z "$ac_cpp_err"; then
7602  ac_header_preproc=yes
7603else
7604  echo "$as_me: failed program was:" >&5
7605sed 's/^/| /' conftest.$ac_ext >&5
7606
7607  ac_header_preproc=no
7608fi
7609rm -f conftest.err conftest.$ac_ext
7610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7611echo "${ECHO_T}$ac_header_preproc" >&6
7612
7613# So?  What about this header?
7614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7615  yes:no: )
7616    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7618    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7620    ac_header_preproc=yes
7621    ;;
7622  no:yes:* )
7623    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7625    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7626echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7627    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7629    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7630echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7631    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7633    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7635    (
7636      cat <<\_ASBOX
7637## ---------------------------------------------- ##
7638## Report this to orxonox-dev at mail.datacore.ch ##
7639## ---------------------------------------------- ##
7640_ASBOX
7641    ) |
7642      sed "s/^/$as_me: WARNING:     /" >&2
7643    ;;
7644esac
7645echo "$as_me:$LINENO: checking for $ac_header" >&5
7646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7647if eval "test \"\${$as_ac_Header+set}\" = set"; then
7648  echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650  eval "$as_ac_Header=\$ac_header_preproc"
7651fi
7652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7654
7655fi
7656if test `eval echo '${'$as_ac_Header'}'` = yes; then
7657  cat >>confdefs.h <<_ACEOF
7658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7659_ACEOF
7660
7661else
7662  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7663echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7664   { (exit 1); exit 1; }; }
7665fi
7666
7667done
7668
7669fi
7670
7671done
7672
7673# checking for SDL_ttf-lib
7674  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7675echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7676if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7677  echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679  ac_check_lib_save_LIBS=$LIBS
7680LIBS="-lSDL_ttf  $LIBS"
7681cat >conftest.$ac_ext <<_ACEOF
7682/* confdefs.h.  */
7683_ACEOF
7684cat confdefs.h >>conftest.$ac_ext
7685cat >>conftest.$ac_ext <<_ACEOF
7686/* end confdefs.h.  */
7687
7688/* Override any gcc2 internal prototype to avoid an error.  */
7689#ifdef __cplusplus
7690extern "C"
7691#endif
7692/* We use char because int might match the return type of a gcc2
7693   builtin and then its argument prototype would still apply.  */
7694char TTF_OpenFont ();
7695int
7696main ()
7697{
7698TTF_OpenFont ();
7699  ;
7700  return 0;
7701}
7702_ACEOF
7703rm -f conftest.$ac_objext conftest$ac_exeext
7704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705  (eval $ac_link) 2>conftest.er1
7706  ac_status=$?
7707  grep -v '^ *+' conftest.er1 >conftest.err
7708  rm -f conftest.er1
7709  cat conftest.err >&5
7710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711  (exit $ac_status); } &&
7712         { ac_try='test -z "$ac_c_werror_flag"
7713                         || test ! -s conftest.err'
7714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715  (eval $ac_try) 2>&5
7716  ac_status=$?
7717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718  (exit $ac_status); }; } &&
7719         { ac_try='test -s conftest$ac_exeext'
7720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721  (eval $ac_try) 2>&5
7722  ac_status=$?
7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); }; }; then
7725  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7726else
7727  echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7731fi
7732rm -f conftest.err conftest.$ac_objext \
7733      conftest$ac_exeext conftest.$ac_ext
7734LIBS=$ac_check_lib_save_LIBS
7735fi
7736echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7737echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7738if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7739  FOUND_SDL_ttf=yes
7740fi
7741
7742     if test x$FOUND_SDL_ttf = xyes ; then
7743       LIBS="$LIBS -lSDL_ttf"
7744     else
7745        echo "------------------"
7746        echo "SDL_ttf library not found."
7747        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7748        echo "------------------"
7749        exit -1
7750     fi
7751
7752#-----------#
7753# SDL_Image #
7754#-----------#
7755# checking for SDL_image-headers
7756
7757for ac_header in SDL_image.h
7758do
7759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7760if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761  echo "$as_me:$LINENO: checking for $ac_header" >&5
7762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7763if eval "test \"\${$as_ac_Header+set}\" = set"; then
7764  echo $ECHO_N "(cached) $ECHO_C" >&6
7765fi
7766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7768else
7769  # Is the header compilable?
7770echo "$as_me:$LINENO: checking $ac_header usability" >&5
7771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7772cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h.  */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h.  */
7778$ac_includes_default
7779#include <$ac_header>
7780_ACEOF
7781rm -f conftest.$ac_objext
7782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783  (eval $ac_compile) 2>conftest.er1
7784  ac_status=$?
7785  grep -v '^ *+' conftest.er1 >conftest.err
7786  rm -f conftest.er1
7787  cat conftest.err >&5
7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789  (exit $ac_status); } &&
7790         { ac_try='test -z "$ac_c_werror_flag"
7791                         || test ! -s conftest.err'
7792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793  (eval $ac_try) 2>&5
7794  ac_status=$?
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); }; } &&
7797         { ac_try='test -s conftest.$ac_objext'
7798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799  (eval $ac_try) 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); }; }; then
7803  ac_header_compiler=yes
7804else
7805  echo "$as_me: failed program was:" >&5
7806sed 's/^/| /' conftest.$ac_ext >&5
7807
7808ac_header_compiler=no
7809fi
7810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7812echo "${ECHO_T}$ac_header_compiler" >&6
7813
7814# Is the header present?
7815echo "$as_me:$LINENO: checking $ac_header presence" >&5
7816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7817cat >conftest.$ac_ext <<_ACEOF
7818/* confdefs.h.  */
7819_ACEOF
7820cat confdefs.h >>conftest.$ac_ext
7821cat >>conftest.$ac_ext <<_ACEOF
7822/* end confdefs.h.  */
7823#include <$ac_header>
7824_ACEOF
7825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7826  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7827  ac_status=$?
7828  grep -v '^ *+' conftest.er1 >conftest.err
7829  rm -f conftest.er1
7830  cat conftest.err >&5
7831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832  (exit $ac_status); } >/dev/null; then
7833  if test -s conftest.err; then
7834    ac_cpp_err=$ac_c_preproc_warn_flag
7835    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7836  else
7837    ac_cpp_err=
7838  fi
7839else
7840  ac_cpp_err=yes
7841fi
7842if test -z "$ac_cpp_err"; then
7843  ac_header_preproc=yes
7844else
7845  echo "$as_me: failed program was:" >&5
7846sed 's/^/| /' conftest.$ac_ext >&5
7847
7848  ac_header_preproc=no
7849fi
7850rm -f conftest.err conftest.$ac_ext
7851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7852echo "${ECHO_T}$ac_header_preproc" >&6
7853
7854# So?  What about this header?
7855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7856  yes:no: )
7857    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7861    ac_header_preproc=yes
7862    ;;
7863  no:yes:* )
7864    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7866    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7867echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7868    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7870    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7871echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7872    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7874    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7876    (
7877      cat <<\_ASBOX
7878## ---------------------------------------------- ##
7879## Report this to orxonox-dev at mail.datacore.ch ##
7880## ---------------------------------------------- ##
7881_ASBOX
7882    ) |
7883      sed "s/^/$as_me: WARNING:     /" >&2
7884    ;;
7885esac
7886echo "$as_me:$LINENO: checking for $ac_header" >&5
7887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7888if eval "test \"\${$as_ac_Header+set}\" = set"; then
7889  echo $ECHO_N "(cached) $ECHO_C" >&6
7890else
7891  eval "$as_ac_Header=\$ac_header_preproc"
7892fi
7893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7895
7896fi
7897if test `eval echo '${'$as_ac_Header'}'` = yes; then
7898  cat >>confdefs.h <<_ACEOF
7899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7900_ACEOF
7901
7902else
7903
7904for ac_header in SDL/SDL_image.h
7905do
7906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7907if eval "test \"\${$as_ac_Header+set}\" = set"; then
7908  echo "$as_me:$LINENO: checking for $ac_header" >&5
7909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912fi
7913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7915else
7916  # Is the header compilable?
7917echo "$as_me:$LINENO: checking $ac_header usability" >&5
7918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7919cat >conftest.$ac_ext <<_ACEOF
7920/* confdefs.h.  */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h.  */
7925$ac_includes_default
7926#include <$ac_header>
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930  (eval $ac_compile) 2>conftest.er1
7931  ac_status=$?
7932  grep -v '^ *+' conftest.er1 >conftest.err
7933  rm -f conftest.er1
7934  cat conftest.err >&5
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); } &&
7937         { ac_try='test -z "$ac_c_werror_flag"
7938                         || test ! -s conftest.err'
7939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940  (eval $ac_try) 2>&5
7941  ac_status=$?
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); }; } &&
7944         { ac_try='test -s conftest.$ac_objext'
7945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946  (eval $ac_try) 2>&5
7947  ac_status=$?
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); }; }; then
7950  ac_header_compiler=yes
7951else
7952  echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955ac_header_compiler=no
7956fi
7957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7958echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7959echo "${ECHO_T}$ac_header_compiler" >&6
7960
7961# Is the header present?
7962echo "$as_me:$LINENO: checking $ac_header presence" >&5
7963echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7964cat >conftest.$ac_ext <<_ACEOF
7965/* confdefs.h.  */
7966_ACEOF
7967cat confdefs.h >>conftest.$ac_ext
7968cat >>conftest.$ac_ext <<_ACEOF
7969/* end confdefs.h.  */
7970#include <$ac_header>
7971_ACEOF
7972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7973  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7974  ac_status=$?
7975  grep -v '^ *+' conftest.er1 >conftest.err
7976  rm -f conftest.er1
7977  cat conftest.err >&5
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); } >/dev/null; then
7980  if test -s conftest.err; then
7981    ac_cpp_err=$ac_c_preproc_warn_flag
7982    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7983  else
7984    ac_cpp_err=
7985  fi
7986else
7987  ac_cpp_err=yes
7988fi
7989if test -z "$ac_cpp_err"; then
7990  ac_header_preproc=yes
7991else
7992  echo "$as_me: failed program was:" >&5
7993sed 's/^/| /' conftest.$ac_ext >&5
7994
7995  ac_header_preproc=no
7996fi
7997rm -f conftest.err conftest.$ac_ext
7998echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7999echo "${ECHO_T}$ac_header_preproc" >&6
8000
8001# So?  What about this header?
8002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8003  yes:no: )
8004    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8005echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8006    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8007echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8008    ac_header_preproc=yes
8009    ;;
8010  no:yes:* )
8011    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8012echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8013    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8014echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8015    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8016echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8017    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8018echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8019    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8020echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8021    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8022echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8023    (
8024      cat <<\_ASBOX
8025## ---------------------------------------------- ##
8026## Report this to orxonox-dev at mail.datacore.ch ##
8027## ---------------------------------------------- ##
8028_ASBOX
8029    ) |
8030      sed "s/^/$as_me: WARNING:     /" >&2
8031    ;;
8032esac
8033echo "$as_me:$LINENO: checking for $ac_header" >&5
8034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8035if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036  echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038  eval "$as_ac_Header=\$ac_header_preproc"
8039fi
8040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8042
8043fi
8044if test `eval echo '${'$as_ac_Header'}'` = yes; then
8045  cat >>confdefs.h <<_ACEOF
8046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8047_ACEOF
8048
8049else
8050  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8051echo "$as_me: error: SDL_image header not found." >&2;}
8052   { (exit 1); exit 1; }; }
8053fi
8054
8055done
8056
8057fi
8058
8059done
8060
8061# checking for SDL_image-lib
8062echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8063echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8064if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8065  echo $ECHO_N "(cached) $ECHO_C" >&6
8066else
8067  ac_check_lib_save_LIBS=$LIBS
8068LIBS="-lSDL_image  $LIBS"
8069cat >conftest.$ac_ext <<_ACEOF
8070/* confdefs.h.  */
8071_ACEOF
8072cat confdefs.h >>conftest.$ac_ext
8073cat >>conftest.$ac_ext <<_ACEOF
8074/* end confdefs.h.  */
8075
8076
8077int
8078main ()
8079{
8080main ();
8081  ;
8082  return 0;
8083}
8084_ACEOF
8085rm -f conftest.$ac_objext conftest$ac_exeext
8086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087  (eval $ac_link) 2>conftest.er1
8088  ac_status=$?
8089  grep -v '^ *+' conftest.er1 >conftest.err
8090  rm -f conftest.er1
8091  cat conftest.err >&5
8092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093  (exit $ac_status); } &&
8094         { ac_try='test -z "$ac_c_werror_flag"
8095                         || test ! -s conftest.err'
8096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097  (eval $ac_try) 2>&5
8098  ac_status=$?
8099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100  (exit $ac_status); }; } &&
8101         { ac_try='test -s conftest$ac_exeext'
8102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103  (eval $ac_try) 2>&5
8104  ac_status=$?
8105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106  (exit $ac_status); }; }; then
8107  ac_cv_lib_SDL_image_main=yes
8108else
8109  echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
8111
8112ac_cv_lib_SDL_image_main=no
8113fi
8114rm -f conftest.err conftest.$ac_objext \
8115      conftest$ac_exeext conftest.$ac_ext
8116LIBS=$ac_check_lib_save_LIBS
8117fi
8118echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8119echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8120if test $ac_cv_lib_SDL_image_main = yes; then
8121  FOUND_SDL_image=yes
8122fi
8123
8124   if test x$FOUND_SDL_image = xyes ; then
8125     LIBS="$LIBS -lSDL_image"
8126   else
8127      echo "------------------"
8128      echo "SDL_image library not found."
8129      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
8130      echo "------------------"
8131      exit -1
8132   fi
8133
8134#-----#
8135# ogg #
8136#-----#
8137# checking for ogg-headers
8138
8139for ac_header in ogg/ogg.h
8140do
8141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8142if eval "test \"\${$as_ac_Header+set}\" = set"; then
8143  echo "$as_me:$LINENO: checking for $ac_header" >&5
8144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8145if eval "test \"\${$as_ac_Header+set}\" = set"; then
8146  echo $ECHO_N "(cached) $ECHO_C" >&6
8147fi
8148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8150else
8151  # Is the header compilable?
8152echo "$as_me:$LINENO: checking $ac_header usability" >&5
8153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8154cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h.  */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h.  */
8160$ac_includes_default
8161#include <$ac_header>
8162_ACEOF
8163rm -f conftest.$ac_objext
8164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165  (eval $ac_compile) 2>conftest.er1
8166  ac_status=$?
8167  grep -v '^ *+' conftest.er1 >conftest.err
8168  rm -f conftest.er1
8169  cat conftest.err >&5
8170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171  (exit $ac_status); } &&
8172         { ac_try='test -z "$ac_c_werror_flag"
8173                         || test ! -s conftest.err'
8174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175  (eval $ac_try) 2>&5
8176  ac_status=$?
8177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178  (exit $ac_status); }; } &&
8179         { ac_try='test -s conftest.$ac_objext'
8180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181  (eval $ac_try) 2>&5
8182  ac_status=$?
8183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184  (exit $ac_status); }; }; then
8185  ac_header_compiler=yes
8186else
8187  echo "$as_me: failed program was:" >&5
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
8190ac_header_compiler=no
8191fi
8192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8193echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8194echo "${ECHO_T}$ac_header_compiler" >&6
8195
8196# Is the header present?
8197echo "$as_me:$LINENO: checking $ac_header presence" >&5
8198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8199cat >conftest.$ac_ext <<_ACEOF
8200/* confdefs.h.  */
8201_ACEOF
8202cat confdefs.h >>conftest.$ac_ext
8203cat >>conftest.$ac_ext <<_ACEOF
8204/* end confdefs.h.  */
8205#include <$ac_header>
8206_ACEOF
8207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8208  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8209  ac_status=$?
8210  grep -v '^ *+' conftest.er1 >conftest.err
8211  rm -f conftest.er1
8212  cat conftest.err >&5
8213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214  (exit $ac_status); } >/dev/null; then
8215  if test -s conftest.err; then
8216    ac_cpp_err=$ac_c_preproc_warn_flag
8217    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8218  else
8219    ac_cpp_err=
8220  fi
8221else
8222  ac_cpp_err=yes
8223fi
8224if test -z "$ac_cpp_err"; then
8225  ac_header_preproc=yes
8226else
8227  echo "$as_me: failed program was:" >&5
8228sed 's/^/| /' conftest.$ac_ext >&5
8229
8230  ac_header_preproc=no
8231fi
8232rm -f conftest.err conftest.$ac_ext
8233echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8234echo "${ECHO_T}$ac_header_preproc" >&6
8235
8236# So?  What about this header?
8237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8238  yes:no: )
8239    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8241    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8243    ac_header_preproc=yes
8244    ;;
8245  no:yes:* )
8246    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8248    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8249echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8250    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8252    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8253echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8254    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8256    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8258    (
8259      cat <<\_ASBOX
8260## ---------------------------------------------- ##
8261## Report this to orxonox-dev at mail.datacore.ch ##
8262## ---------------------------------------------- ##
8263_ASBOX
8264    ) |
8265      sed "s/^/$as_me: WARNING:     /" >&2
8266    ;;
8267esac
8268echo "$as_me:$LINENO: checking for $ac_header" >&5
8269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8270if eval "test \"\${$as_ac_Header+set}\" = set"; then
8271  echo $ECHO_N "(cached) $ECHO_C" >&6
8272else
8273  eval "$as_ac_Header=\$ac_header_preproc"
8274fi
8275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8277
8278fi
8279if test `eval echo '${'$as_ac_Header'}'` = yes; then
8280  cat >>confdefs.h <<_ACEOF
8281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282_ACEOF
8283
8284else
8285  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
8286echo "$as_me: error: cannot find ogg header." >&2;}
8287   { (exit 1); exit 1; }; }
8288fi
8289
8290done
8291
8292# checking for ogg-lib
8293  echo "$as_me:$LINENO: checking for main in -logg" >&5
8294echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
8295if test "${ac_cv_lib_ogg_main+set}" = set; then
8296  echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298  ac_check_lib_save_LIBS=$LIBS
8299LIBS="-logg  $LIBS"
8300cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h.  */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h.  */
8306
8307
8308int
8309main ()
8310{
8311main ();
8312  ;
8313  return 0;
8314}
8315_ACEOF
8316rm -f conftest.$ac_objext conftest$ac_exeext
8317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318  (eval $ac_link) 2>conftest.er1
8319  ac_status=$?
8320  grep -v '^ *+' conftest.er1 >conftest.err
8321  rm -f conftest.er1
8322  cat conftest.err >&5
8323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324  (exit $ac_status); } &&
8325         { ac_try='test -z "$ac_c_werror_flag"
8326                         || test ! -s conftest.err'
8327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328  (eval $ac_try) 2>&5
8329  ac_status=$?
8330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331  (exit $ac_status); }; } &&
8332         { ac_try='test -s conftest$ac_exeext'
8333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334  (eval $ac_try) 2>&5
8335  ac_status=$?
8336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337  (exit $ac_status); }; }; then
8338  ac_cv_lib_ogg_main=yes
8339else
8340  echo "$as_me: failed program was:" >&5
8341sed 's/^/| /' conftest.$ac_ext >&5
8342
8343ac_cv_lib_ogg_main=no
8344fi
8345rm -f conftest.err conftest.$ac_objext \
8346      conftest$ac_exeext conftest.$ac_ext
8347LIBS=$ac_check_lib_save_LIBS
8348fi
8349echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
8350echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
8351if test $ac_cv_lib_ogg_main = yes; then
8352  FOUND_ogg=yes
8353fi
8354
8355     if test x$FOUND_ogg = xyes ; then
8356       LIBS="$LIBS -logg"
8357     else
8358        echo "------------------"
8359        echo "ogg library not found."
8360        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8361        echo "------------------"
8362        exit -1
8363     fi
8364
8365#--------#
8366# vorbis #
8367#--------#
8368# checking for vorbis-lib
8369  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
8370echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
8371if test "${ac_cv_lib_vorbis_main+set}" = set; then
8372  echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374  ac_check_lib_save_LIBS=$LIBS
8375LIBS="-lvorbis  $LIBS"
8376cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h.  */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h.  */
8382
8383
8384int
8385main ()
8386{
8387main ();
8388  ;
8389  return 0;
8390}
8391_ACEOF
8392rm -f conftest.$ac_objext conftest$ac_exeext
8393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394  (eval $ac_link) 2>conftest.er1
8395  ac_status=$?
8396  grep -v '^ *+' conftest.er1 >conftest.err
8397  rm -f conftest.er1
8398  cat conftest.err >&5
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); } &&
8401         { ac_try='test -z "$ac_c_werror_flag"
8402                         || test ! -s conftest.err'
8403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404  (eval $ac_try) 2>&5
8405  ac_status=$?
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); }; } &&
8408         { ac_try='test -s conftest$ac_exeext'
8409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410  (eval $ac_try) 2>&5
8411  ac_status=$?
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); }; }; then
8414  ac_cv_lib_vorbis_main=yes
8415else
8416  echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419ac_cv_lib_vorbis_main=no
8420fi
8421rm -f conftest.err conftest.$ac_objext \
8422      conftest$ac_exeext conftest.$ac_ext
8423LIBS=$ac_check_lib_save_LIBS
8424fi
8425echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
8426echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
8427if test $ac_cv_lib_vorbis_main = yes; then
8428  FOUND_vorbis=yes
8429fi
8430
8431     if test x$FOUND_vorbis = xyes ; then
8432       LIBS="$LIBS -lvorbis"
8433     else
8434        echo "------------------"
8435        echo "vorbis library not found."
8436        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8437        echo "------------------"
8438        exit -1
8439     fi
8440
8441#------------#
8442# vorbisfile #
8443#------------#
8444# checking for vorbis-headers
8445
8446for ac_header in vorbis/vorbisfile.h
8447do
8448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8449if eval "test \"\${$as_ac_Header+set}\" = set"; then
8450  echo "$as_me:$LINENO: checking for $ac_header" >&5
8451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8452if eval "test \"\${$as_ac_Header+set}\" = set"; then
8453  echo $ECHO_N "(cached) $ECHO_C" >&6
8454fi
8455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8457else
8458  # Is the header compilable?
8459echo "$as_me:$LINENO: checking $ac_header usability" >&5
8460echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8461cat >conftest.$ac_ext <<_ACEOF
8462/* confdefs.h.  */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h.  */
8467$ac_includes_default
8468#include <$ac_header>
8469_ACEOF
8470rm -f conftest.$ac_objext
8471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472  (eval $ac_compile) 2>conftest.er1
8473  ac_status=$?
8474  grep -v '^ *+' conftest.er1 >conftest.err
8475  rm -f conftest.er1
8476  cat conftest.err >&5
8477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478  (exit $ac_status); } &&
8479         { ac_try='test -z "$ac_c_werror_flag"
8480                         || test ! -s conftest.err'
8481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482  (eval $ac_try) 2>&5
8483  ac_status=$?
8484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485  (exit $ac_status); }; } &&
8486         { ac_try='test -s conftest.$ac_objext'
8487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488  (eval $ac_try) 2>&5
8489  ac_status=$?
8490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491  (exit $ac_status); }; }; then
8492  ac_header_compiler=yes
8493else
8494  echo "$as_me: failed program was:" >&5
8495sed 's/^/| /' conftest.$ac_ext >&5
8496
8497ac_header_compiler=no
8498fi
8499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8501echo "${ECHO_T}$ac_header_compiler" >&6
8502
8503# Is the header present?
8504echo "$as_me:$LINENO: checking $ac_header presence" >&5
8505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8506cat >conftest.$ac_ext <<_ACEOF
8507/* confdefs.h.  */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h.  */
8512#include <$ac_header>
8513_ACEOF
8514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8515  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8522  if test -s conftest.err; then
8523    ac_cpp_err=$ac_c_preproc_warn_flag
8524    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8525  else
8526    ac_cpp_err=
8527  fi
8528else
8529  ac_cpp_err=yes
8530fi
8531if test -z "$ac_cpp_err"; then
8532  ac_header_preproc=yes
8533else
8534  echo "$as_me: failed program was:" >&5
8535sed 's/^/| /' conftest.$ac_ext >&5
8536
8537  ac_header_preproc=no
8538fi
8539rm -f conftest.err conftest.$ac_ext
8540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8541echo "${ECHO_T}$ac_header_preproc" >&6
8542
8543# So?  What about this header?
8544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8545  yes:no: )
8546    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8548    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8550    ac_header_preproc=yes
8551    ;;
8552  no:yes:* )
8553    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8555    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8556echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8557    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8559    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8560echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8561    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8563    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8565    (
8566      cat <<\_ASBOX
8567## ---------------------------------------------- ##
8568## Report this to orxonox-dev at mail.datacore.ch ##
8569## ---------------------------------------------- ##
8570_ASBOX
8571    ) |
8572      sed "s/^/$as_me: WARNING:     /" >&2
8573    ;;
8574esac
8575echo "$as_me:$LINENO: checking for $ac_header" >&5
8576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8577if eval "test \"\${$as_ac_Header+set}\" = set"; then
8578  echo $ECHO_N "(cached) $ECHO_C" >&6
8579else
8580  eval "$as_ac_Header=\$ac_header_preproc"
8581fi
8582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8584
8585fi
8586if test `eval echo '${'$as_ac_Header'}'` = yes; then
8587  cat >>confdefs.h <<_ACEOF
8588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8589_ACEOF
8590
8591else
8592  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8593echo "$as_me: error: cannot find vorbisfile header." >&2;}
8594   { (exit 1); exit 1; }; }
8595fi
8596
8597done
8598
8599# checking for vorbisfile-lib
8600  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8601echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8602if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8603  echo $ECHO_N "(cached) $ECHO_C" >&6
8604else
8605  ac_check_lib_save_LIBS=$LIBS
8606LIBS="-lvorbisfile  $LIBS"
8607cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h.  */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h.  */
8613
8614
8615int
8616main ()
8617{
8618main ();
8619  ;
8620  return 0;
8621}
8622_ACEOF
8623rm -f conftest.$ac_objext conftest$ac_exeext
8624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625  (eval $ac_link) 2>conftest.er1
8626  ac_status=$?
8627  grep -v '^ *+' conftest.er1 >conftest.err
8628  rm -f conftest.er1
8629  cat conftest.err >&5
8630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631  (exit $ac_status); } &&
8632         { ac_try='test -z "$ac_c_werror_flag"
8633                         || test ! -s conftest.err'
8634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635  (eval $ac_try) 2>&5
8636  ac_status=$?
8637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638  (exit $ac_status); }; } &&
8639         { ac_try='test -s conftest$ac_exeext'
8640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641  (eval $ac_try) 2>&5
8642  ac_status=$?
8643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644  (exit $ac_status); }; }; then
8645  ac_cv_lib_vorbisfile_main=yes
8646else
8647  echo "$as_me: failed program was:" >&5
8648sed 's/^/| /' conftest.$ac_ext >&5
8649
8650ac_cv_lib_vorbisfile_main=no
8651fi
8652rm -f conftest.err conftest.$ac_objext \
8653      conftest$ac_exeext conftest.$ac_ext
8654LIBS=$ac_check_lib_save_LIBS
8655fi
8656echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8657echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8658if test $ac_cv_lib_vorbisfile_main = yes; then
8659  FOUND_vorbisfile=yes
8660fi
8661
8662     if test x$FOUND_vorbisfile = xyes ; then
8663       LIBS="$LIBS -lvorbisfile"
8664     else
8665        echo "------------------"
8666        echo "vorbisfile library not found."
8667        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8668        echo "------------------"
8669        exit -1
8670     fi
8671
8672#-----#
8673# GTK #
8674#-----#
8675if test x$def_gtk = xyes; then
8676        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
8677        echo "$as_me:$LINENO: checking for gtk2.0" >&5
8678echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
8679        if `$PKG_CONFIG --exists gtk+-2.0`; then
8680                echo "yes"
8681                have_gtk2=yes
8682                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8683                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8684
8685cat >>confdefs.h <<_ACEOF
8686#define HAVE_GTK2 1
8687_ACEOF
8688
8689                if test $DEBUG -ge 3; then
8690                 echo "cflags: $GTK2_CFLAGS"
8691                 echo "libs: $GTK2_LIBS"
8692                fi
8693        else
8694                echo "no"
8695        fi
8696
8697fi
8698
8699
8700
8701
8702if test x$have_gtk2 = xyes; then
8703  HAVE_GTK2_TRUE=
8704  HAVE_GTK2_FALSE='#'
8705else
8706  HAVE_GTK2_TRUE='#'
8707  HAVE_GTK2_FALSE=
8708fi
8709
8710
8711#---------#
8712# libcURL #
8713#---------#
8714if test x$def_curl = xyes; then
8715
8716
8717for ac_header in curl/curl.h
8718do
8719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8720if eval "test \"\${$as_ac_Header+set}\" = set"; then
8721  echo "$as_me:$LINENO: checking for $ac_header" >&5
8722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8723if eval "test \"\${$as_ac_Header+set}\" = set"; then
8724  echo $ECHO_N "(cached) $ECHO_C" >&6
8725fi
8726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8728else
8729  # Is the header compilable?
8730echo "$as_me:$LINENO: checking $ac_header usability" >&5
8731echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8732cat >conftest.$ac_ext <<_ACEOF
8733/* confdefs.h.  */
8734_ACEOF
8735cat confdefs.h >>conftest.$ac_ext
8736cat >>conftest.$ac_ext <<_ACEOF
8737/* end confdefs.h.  */
8738$ac_includes_default
8739#include <$ac_header>
8740_ACEOF
8741rm -f conftest.$ac_objext
8742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743  (eval $ac_compile) 2>conftest.er1
8744  ac_status=$?
8745  grep -v '^ *+' conftest.er1 >conftest.err
8746  rm -f conftest.er1
8747  cat conftest.err >&5
8748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); } &&
8750         { ac_try='test -z "$ac_c_werror_flag"
8751                         || test ! -s conftest.err'
8752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753  (eval $ac_try) 2>&5
8754  ac_status=$?
8755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756  (exit $ac_status); }; } &&
8757         { ac_try='test -s conftest.$ac_objext'
8758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759  (eval $ac_try) 2>&5
8760  ac_status=$?
8761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762  (exit $ac_status); }; }; then
8763  ac_header_compiler=yes
8764else
8765  echo "$as_me: failed program was:" >&5
8766sed 's/^/| /' conftest.$ac_ext >&5
8767
8768ac_header_compiler=no
8769fi
8770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8772echo "${ECHO_T}$ac_header_compiler" >&6
8773
8774# Is the header present?
8775echo "$as_me:$LINENO: checking $ac_header presence" >&5
8776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8777cat >conftest.$ac_ext <<_ACEOF
8778/* confdefs.h.  */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
8782/* end confdefs.h.  */
8783#include <$ac_header>
8784_ACEOF
8785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8787  ac_status=$?
8788  grep -v '^ *+' conftest.er1 >conftest.err
8789  rm -f conftest.er1
8790  cat conftest.err >&5
8791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792  (exit $ac_status); } >/dev/null; then
8793  if test -s conftest.err; then
8794    ac_cpp_err=$ac_c_preproc_warn_flag
8795    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8796  else
8797    ac_cpp_err=
8798  fi
8799else
8800  ac_cpp_err=yes
8801fi
8802if test -z "$ac_cpp_err"; then
8803  ac_header_preproc=yes
8804else
8805  echo "$as_me: failed program was:" >&5
8806sed 's/^/| /' conftest.$ac_ext >&5
8807
8808  ac_header_preproc=no
8809fi
8810rm -f conftest.err conftest.$ac_ext
8811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8812echo "${ECHO_T}$ac_header_preproc" >&6
8813
8814# So?  What about this header?
8815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8816  yes:no: )
8817    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8819    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8821    ac_header_preproc=yes
8822    ;;
8823  no:yes:* )
8824    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8826    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8827echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8828    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8830    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8831echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8832    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8834    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8836    (
8837      cat <<\_ASBOX
8838## ---------------------------------------------- ##
8839## Report this to orxonox-dev at mail.datacore.ch ##
8840## ---------------------------------------------- ##
8841_ASBOX
8842    ) |
8843      sed "s/^/$as_me: WARNING:     /" >&2
8844    ;;
8845esac
8846echo "$as_me:$LINENO: checking for $ac_header" >&5
8847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8848if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849  echo $ECHO_N "(cached) $ECHO_C" >&6
8850else
8851  eval "$as_ac_Header=\$ac_header_preproc"
8852fi
8853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8855
8856fi
8857if test `eval echo '${'$as_ac_Header'}'` = yes; then
8858  cat >>confdefs.h <<_ACEOF
8859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8860_ACEOF
8861 curlHeader="yes"
8862else
8863  curlHeader="no"
8864fi
8865
8866done
8867
8868 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
8869echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
8870if test "${ac_cv_lib_curl_main+set}" = set; then
8871  echo $ECHO_N "(cached) $ECHO_C" >&6
8872else
8873  ac_check_lib_save_LIBS=$LIBS
8874LIBS="-lcurl  $LIBS"
8875cat >conftest.$ac_ext <<_ACEOF
8876/* confdefs.h.  */
8877_ACEOF
8878cat confdefs.h >>conftest.$ac_ext
8879cat >>conftest.$ac_ext <<_ACEOF
8880/* end confdefs.h.  */
8881
8882
8883int
8884main ()
8885{
8886main ();
8887  ;
8888  return 0;
8889}
8890_ACEOF
8891rm -f conftest.$ac_objext conftest$ac_exeext
8892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893  (eval $ac_link) 2>conftest.er1
8894  ac_status=$?
8895  grep -v '^ *+' conftest.er1 >conftest.err
8896  rm -f conftest.er1
8897  cat conftest.err >&5
8898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899  (exit $ac_status); } &&
8900         { ac_try='test -z "$ac_c_werror_flag"
8901                         || test ! -s conftest.err'
8902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903  (eval $ac_try) 2>&5
8904  ac_status=$?
8905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906  (exit $ac_status); }; } &&
8907         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8913  ac_cv_lib_curl_main=yes
8914else
8915  echo "$as_me: failed program was:" >&5
8916sed 's/^/| /' conftest.$ac_ext >&5
8917
8918ac_cv_lib_curl_main=no
8919fi
8920rm -f conftest.err conftest.$ac_objext \
8921      conftest$ac_exeext conftest.$ac_ext
8922LIBS=$ac_check_lib_save_LIBS
8923fi
8924echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
8925echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
8926if test $ac_cv_lib_curl_main = yes; then
8927  FOUND_curl=yes
8928fi
8929
8930 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
8931  have_curl=yes
8932  CURL_LIBS=`curl-config --libs`
8933  CURLCFLAGS=`curl-config --cflags`
8934
8935cat >>confdefs.h <<_ACEOF
8936#define HAVE_CURL 1
8937_ACEOF
8938
8939 else
8940  have_curl=no
8941 fi
8942
8943fi
8944
8945
8946
8947
8948if test x$have_curl = xyes; then
8949  HAVE_CURL_TRUE=
8950  HAVE_CURL_FALSE='#'
8951else
8952  HAVE_CURL_TRUE='#'
8953  HAVE_CURL_FALSE=
8954fi
8955
8956
8957#--------#
8958# efence #
8959#--------#
8960if test x$def_efence = xyes ; then
8961  echo "$as_me:$LINENO: checking for main in -lefence" >&5
8962echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8963if test "${ac_cv_lib_efence_main+set}" = set; then
8964  echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966  ac_check_lib_save_LIBS=$LIBS
8967LIBS="-lefence  $LIBS"
8968cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h.  */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h.  */
8974
8975
8976int
8977main ()
8978{
8979main ();
8980  ;
8981  return 0;
8982}
8983_ACEOF
8984rm -f conftest.$ac_objext conftest$ac_exeext
8985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986  (eval $ac_link) 2>conftest.er1
8987  ac_status=$?
8988  grep -v '^ *+' conftest.er1 >conftest.err
8989  rm -f conftest.er1
8990  cat conftest.err >&5
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); } &&
8993         { ac_try='test -z "$ac_c_werror_flag"
8994                         || test ! -s conftest.err'
8995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996  (eval $ac_try) 2>&5
8997  ac_status=$?
8998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999  (exit $ac_status); }; } &&
9000         { ac_try='test -s conftest$ac_exeext'
9001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002  (eval $ac_try) 2>&5
9003  ac_status=$?
9004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005  (exit $ac_status); }; }; then
9006  ac_cv_lib_efence_main=yes
9007else
9008  echo "$as_me: failed program was:" >&5
9009sed 's/^/| /' conftest.$ac_ext >&5
9010
9011ac_cv_lib_efence_main=no
9012fi
9013rm -f conftest.err conftest.$ac_objext \
9014      conftest$ac_exeext conftest.$ac_ext
9015LIBS=$ac_check_lib_save_LIBS
9016fi
9017echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9018echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9019if test $ac_cv_lib_efence_main = yes; then
9020  FOUND_efence=yes
9021fi
9022
9023   if test x$FOUND_efence = xyes ; then
9024      LIBS="$LIBS -lefence"
9025   fi
9026
9027fi
9028
9029# FIXME: Replace `main' with a function in `-lm':
9030
9031echo "$as_me:$LINENO: checking for main in -lm" >&5
9032echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9033if test "${ac_cv_lib_m_main+set}" = set; then
9034  echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036  ac_check_lib_save_LIBS=$LIBS
9037LIBS="-lm  $LIBS"
9038cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h.  */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h.  */
9044
9045
9046int
9047main ()
9048{
9049main ();
9050  ;
9051  return 0;
9052}
9053_ACEOF
9054rm -f conftest.$ac_objext conftest$ac_exeext
9055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056  (eval $ac_link) 2>conftest.er1
9057  ac_status=$?
9058  grep -v '^ *+' conftest.er1 >conftest.err
9059  rm -f conftest.er1
9060  cat conftest.err >&5
9061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062  (exit $ac_status); } &&
9063         { ac_try='test -z "$ac_c_werror_flag"
9064                         || test ! -s conftest.err'
9065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066  (eval $ac_try) 2>&5
9067  ac_status=$?
9068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069  (exit $ac_status); }; } &&
9070         { ac_try='test -s conftest$ac_exeext'
9071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072  (eval $ac_try) 2>&5
9073  ac_status=$?
9074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075  (exit $ac_status); }; }; then
9076  ac_cv_lib_m_main=yes
9077else
9078  echo "$as_me: failed program was:" >&5
9079sed 's/^/| /' conftest.$ac_ext >&5
9080
9081ac_cv_lib_m_main=no
9082fi
9083rm -f conftest.err conftest.$ac_objext \
9084      conftest$ac_exeext conftest.$ac_ext
9085LIBS=$ac_check_lib_save_LIBS
9086fi
9087echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9088echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9089if test $ac_cv_lib_m_main = yes; then
9090  cat >>confdefs.h <<_ACEOF
9091#define HAVE_LIBM 1
9092_ACEOF
9093
9094  LIBS="-lm $LIBS"
9095
9096fi
9097
9098
9099
9100# Checks for header files.
9101echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9102echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9103if test "${ac_cv_header_stdc+set}" = set; then
9104  echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106  cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h.  */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h.  */
9112#include <stdlib.h>
9113#include <stdarg.h>
9114#include <string.h>
9115#include <float.h>
9116
9117int
9118main ()
9119{
9120
9121  ;
9122  return 0;
9123}
9124_ACEOF
9125rm -f conftest.$ac_objext
9126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127  (eval $ac_compile) 2>conftest.er1
9128  ac_status=$?
9129  grep -v '^ *+' conftest.er1 >conftest.err
9130  rm -f conftest.er1
9131  cat conftest.err >&5
9132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133  (exit $ac_status); } &&
9134         { ac_try='test -z "$ac_c_werror_flag"
9135                         || test ! -s conftest.err'
9136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137  (eval $ac_try) 2>&5
9138  ac_status=$?
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }; } &&
9141         { ac_try='test -s conftest.$ac_objext'
9142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143  (eval $ac_try) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); }; }; then
9147  ac_cv_header_stdc=yes
9148else
9149  echo "$as_me: failed program was:" >&5
9150sed 's/^/| /' conftest.$ac_ext >&5
9151
9152ac_cv_header_stdc=no
9153fi
9154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9155
9156if test $ac_cv_header_stdc = yes; then
9157  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9158  cat >conftest.$ac_ext <<_ACEOF
9159/* confdefs.h.  */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h.  */
9164#include <string.h>
9165
9166_ACEOF
9167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9168  $EGREP "memchr" >/dev/null 2>&1; then
9169  :
9170else
9171  ac_cv_header_stdc=no
9172fi
9173rm -f conftest*
9174
9175fi
9176
9177if test $ac_cv_header_stdc = yes; then
9178  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9179  cat >conftest.$ac_ext <<_ACEOF
9180/* confdefs.h.  */
9181_ACEOF
9182cat confdefs.h >>conftest.$ac_ext
9183cat >>conftest.$ac_ext <<_ACEOF
9184/* end confdefs.h.  */
9185#include <stdlib.h>
9186
9187_ACEOF
9188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9189  $EGREP "free" >/dev/null 2>&1; then
9190  :
9191else
9192  ac_cv_header_stdc=no
9193fi
9194rm -f conftest*
9195
9196fi
9197
9198if test $ac_cv_header_stdc = yes; then
9199  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9200  if test "$cross_compiling" = yes; then
9201  :
9202else
9203  cat >conftest.$ac_ext <<_ACEOF
9204/* confdefs.h.  */
9205_ACEOF
9206cat confdefs.h >>conftest.$ac_ext
9207cat >>conftest.$ac_ext <<_ACEOF
9208/* end confdefs.h.  */
9209#include <ctype.h>
9210#if ((' ' & 0x0FF) == 0x020)
9211# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9212# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9213#else
9214# define ISLOWER(c) \
9215                   (('a' <= (c) && (c) <= 'i') \
9216                     || ('j' <= (c) && (c) <= 'r') \
9217                     || ('s' <= (c) && (c) <= 'z'))
9218# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9219#endif
9220
9221#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9222int
9223main ()
9224{
9225  int i;
9226  for (i = 0; i < 256; i++)
9227    if (XOR (islower (i), ISLOWER (i))
9228        || toupper (i) != TOUPPER (i))
9229      exit(2);
9230  exit (0);
9231}
9232_ACEOF
9233rm -f conftest$ac_exeext
9234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235  (eval $ac_link) 2>&5
9236  ac_status=$?
9237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240  (eval $ac_try) 2>&5
9241  ac_status=$?
9242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243  (exit $ac_status); }; }; then
9244  :
9245else
9246  echo "$as_me: program exited with status $ac_status" >&5
9247echo "$as_me: failed program was:" >&5
9248sed 's/^/| /' conftest.$ac_ext >&5
9249
9250( exit $ac_status )
9251ac_cv_header_stdc=no
9252fi
9253rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9254fi
9255fi
9256fi
9257echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9258echo "${ECHO_T}$ac_cv_header_stdc" >&6
9259if test $ac_cv_header_stdc = yes; then
9260
9261cat >>confdefs.h <<\_ACEOF
9262#define STDC_HEADERS 1
9263_ACEOF
9264
9265fi
9266
9267
9268
9269for ac_header in stdlib.h string.h
9270do
9271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9272if eval "test \"\${$as_ac_Header+set}\" = set"; then
9273  echo "$as_me:$LINENO: checking for $ac_header" >&5
9274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9275if eval "test \"\${$as_ac_Header+set}\" = set"; then
9276  echo $ECHO_N "(cached) $ECHO_C" >&6
9277fi
9278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9280else
9281  # Is the header compilable?
9282echo "$as_me:$LINENO: checking $ac_header usability" >&5
9283echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9284cat >conftest.$ac_ext <<_ACEOF
9285/* confdefs.h.  */
9286_ACEOF
9287cat confdefs.h >>conftest.$ac_ext
9288cat >>conftest.$ac_ext <<_ACEOF
9289/* end confdefs.h.  */
9290$ac_includes_default
9291#include <$ac_header>
9292_ACEOF
9293rm -f conftest.$ac_objext
9294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9295  (eval $ac_compile) 2>conftest.er1
9296  ac_status=$?
9297  grep -v '^ *+' conftest.er1 >conftest.err
9298  rm -f conftest.er1
9299  cat conftest.err >&5
9300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301  (exit $ac_status); } &&
9302         { ac_try='test -z "$ac_c_werror_flag"
9303                         || test ! -s conftest.err'
9304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305  (eval $ac_try) 2>&5
9306  ac_status=$?
9307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308  (exit $ac_status); }; } &&
9309         { ac_try='test -s conftest.$ac_objext'
9310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311  (eval $ac_try) 2>&5
9312  ac_status=$?
9313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314  (exit $ac_status); }; }; then
9315  ac_header_compiler=yes
9316else
9317  echo "$as_me: failed program was:" >&5
9318sed 's/^/| /' conftest.$ac_ext >&5
9319
9320ac_header_compiler=no
9321fi
9322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9323echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324echo "${ECHO_T}$ac_header_compiler" >&6
9325
9326# Is the header present?
9327echo "$as_me:$LINENO: checking $ac_header presence" >&5
9328echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9329cat >conftest.$ac_ext <<_ACEOF
9330/* confdefs.h.  */
9331_ACEOF
9332cat confdefs.h >>conftest.$ac_ext
9333cat >>conftest.$ac_ext <<_ACEOF
9334/* end confdefs.h.  */
9335#include <$ac_header>
9336_ACEOF
9337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9339  ac_status=$?
9340  grep -v '^ *+' conftest.er1 >conftest.err
9341  rm -f conftest.er1
9342  cat conftest.err >&5
9343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344  (exit $ac_status); } >/dev/null; then
9345  if test -s conftest.err; then
9346    ac_cpp_err=$ac_c_preproc_warn_flag
9347    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9348  else
9349    ac_cpp_err=
9350  fi
9351else
9352  ac_cpp_err=yes
9353fi
9354if test -z "$ac_cpp_err"; then
9355  ac_header_preproc=yes
9356else
9357  echo "$as_me: failed program was:" >&5
9358sed 's/^/| /' conftest.$ac_ext >&5
9359
9360  ac_header_preproc=no
9361fi
9362rm -f conftest.err conftest.$ac_ext
9363echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9364echo "${ECHO_T}$ac_header_preproc" >&6
9365
9366# So?  What about this header?
9367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9368  yes:no: )
9369    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9371    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9373    ac_header_preproc=yes
9374    ;;
9375  no:yes:* )
9376    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9378    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9379echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9380    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9382    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9383echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9384    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9386    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9388    (
9389      cat <<\_ASBOX
9390## ---------------------------------------------- ##
9391## Report this to orxonox-dev at mail.datacore.ch ##
9392## ---------------------------------------------- ##
9393_ASBOX
9394    ) |
9395      sed "s/^/$as_me: WARNING:     /" >&2
9396    ;;
9397esac
9398echo "$as_me:$LINENO: checking for $ac_header" >&5
9399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9400if eval "test \"\${$as_ac_Header+set}\" = set"; then
9401  echo $ECHO_N "(cached) $ECHO_C" >&6
9402else
9403  eval "$as_ac_Header=\$ac_header_preproc"
9404fi
9405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9407
9408fi
9409if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410  cat >>confdefs.h <<_ACEOF
9411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9412_ACEOF
9413
9414fi
9415
9416done
9417
9418
9419# Checks for typedefs, structures, and compiler characteristics.
9420echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9421echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9422if test "${ac_cv_header_stdbool_h+set}" = set; then
9423  echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425  cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h.  */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h.  */
9431
9432#include <stdbool.h>
9433#ifndef bool
9434# error bool is not defined
9435#endif
9436#ifndef false
9437# error false is not defined
9438#endif
9439#if false
9440# error false is not 0
9441#endif
9442#ifndef true
9443# error true is not defined
9444#endif
9445#if true != 1
9446# error true is not 1
9447#endif
9448#ifndef __bool_true_false_are_defined
9449# error __bool_true_false_are_defined is not defined
9450#endif
9451
9452        struct s { _Bool s: 1; _Bool t; } s;
9453
9454        char a[true == 1 ? 1 : -1];
9455        char b[false == 0 ? 1 : -1];
9456        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9457        char d[(bool) -0.5 == true ? 1 : -1];
9458        bool e = &s;
9459        char f[(_Bool) -0.0 == false ? 1 : -1];
9460        char g[true];
9461        char h[sizeof (_Bool)];
9462        char i[sizeof s.t];
9463
9464int
9465main ()
9466{
9467 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9468  ;
9469  return 0;
9470}
9471_ACEOF
9472rm -f conftest.$ac_objext
9473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474  (eval $ac_compile) 2>conftest.er1
9475  ac_status=$?
9476  grep -v '^ *+' conftest.er1 >conftest.err
9477  rm -f conftest.er1
9478  cat conftest.err >&5
9479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480  (exit $ac_status); } &&
9481         { ac_try='test -z "$ac_c_werror_flag"
9482                         || test ! -s conftest.err'
9483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484  (eval $ac_try) 2>&5
9485  ac_status=$?
9486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487  (exit $ac_status); }; } &&
9488         { ac_try='test -s conftest.$ac_objext'
9489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490  (eval $ac_try) 2>&5
9491  ac_status=$?
9492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493  (exit $ac_status); }; }; then
9494  ac_cv_header_stdbool_h=yes
9495else
9496  echo "$as_me: failed program was:" >&5
9497sed 's/^/| /' conftest.$ac_ext >&5
9498
9499ac_cv_header_stdbool_h=no
9500fi
9501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9502fi
9503echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9504echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9505echo "$as_me:$LINENO: checking for _Bool" >&5
9506echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9507if test "${ac_cv_type__Bool+set}" = set; then
9508  echo $ECHO_N "(cached) $ECHO_C" >&6
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$ac_includes_default
9517int
9518main ()
9519{
9520if ((_Bool *) 0)
9521  return 0;
9522if (sizeof (_Bool))
9523  return 0;
9524  ;
9525  return 0;
9526}
9527_ACEOF
9528rm -f conftest.$ac_objext
9529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9530  (eval $ac_compile) 2>conftest.er1
9531  ac_status=$?
9532  grep -v '^ *+' conftest.er1 >conftest.err
9533  rm -f conftest.er1
9534  cat conftest.err >&5
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); } &&
9537         { ac_try='test -z "$ac_c_werror_flag"
9538                         || test ! -s conftest.err'
9539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540  (eval $ac_try) 2>&5
9541  ac_status=$?
9542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543  (exit $ac_status); }; } &&
9544         { ac_try='test -s conftest.$ac_objext'
9545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546  (eval $ac_try) 2>&5
9547  ac_status=$?
9548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549  (exit $ac_status); }; }; then
9550  ac_cv_type__Bool=yes
9551else
9552  echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
9555ac_cv_type__Bool=no
9556fi
9557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9558fi
9559echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9560echo "${ECHO_T}$ac_cv_type__Bool" >&6
9561if test $ac_cv_type__Bool = yes; then
9562
9563cat >>confdefs.h <<_ACEOF
9564#define HAVE__BOOL 1
9565_ACEOF
9566
9567
9568fi
9569
9570if test $ac_cv_header_stdbool_h = yes; then
9571
9572cat >>confdefs.h <<\_ACEOF
9573#define HAVE_STDBOOL_H 1
9574_ACEOF
9575
9576fi
9577
9578
9579# Checks for library functions.
9580
9581for ac_header in stdlib.h
9582do
9583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584if eval "test \"\${$as_ac_Header+set}\" = set"; then
9585  echo "$as_me:$LINENO: checking for $ac_header" >&5
9586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9587if eval "test \"\${$as_ac_Header+set}\" = set"; then
9588  echo $ECHO_N "(cached) $ECHO_C" >&6
9589fi
9590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9592else
9593  # Is the header compilable?
9594echo "$as_me:$LINENO: checking $ac_header usability" >&5
9595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9596cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h.  */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h.  */
9602$ac_includes_default
9603#include <$ac_header>
9604_ACEOF
9605rm -f conftest.$ac_objext
9606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9607  (eval $ac_compile) 2>conftest.er1
9608  ac_status=$?
9609  grep -v '^ *+' conftest.er1 >conftest.err
9610  rm -f conftest.er1
9611  cat conftest.err >&5
9612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613  (exit $ac_status); } &&
9614         { ac_try='test -z "$ac_c_werror_flag"
9615                         || test ! -s conftest.err'
9616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617  (eval $ac_try) 2>&5
9618  ac_status=$?
9619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620  (exit $ac_status); }; } &&
9621         { ac_try='test -s conftest.$ac_objext'
9622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623  (eval $ac_try) 2>&5
9624  ac_status=$?
9625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626  (exit $ac_status); }; }; then
9627  ac_header_compiler=yes
9628else
9629  echo "$as_me: failed program was:" >&5
9630sed 's/^/| /' conftest.$ac_ext >&5
9631
9632ac_header_compiler=no
9633fi
9634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9636echo "${ECHO_T}$ac_header_compiler" >&6
9637
9638# Is the header present?
9639echo "$as_me:$LINENO: checking $ac_header presence" >&5
9640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9641cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h.  */
9643_ACEOF
9644cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF
9646/* end confdefs.h.  */
9647#include <$ac_header>
9648_ACEOF
9649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9650  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9651  ac_status=$?
9652  grep -v '^ *+' conftest.er1 >conftest.err
9653  rm -f conftest.er1
9654  cat conftest.err >&5
9655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656  (exit $ac_status); } >/dev/null; then
9657  if test -s conftest.err; then
9658    ac_cpp_err=$ac_c_preproc_warn_flag
9659    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9660  else
9661    ac_cpp_err=
9662  fi
9663else
9664  ac_cpp_err=yes
9665fi
9666if test -z "$ac_cpp_err"; then
9667  ac_header_preproc=yes
9668else
9669  echo "$as_me: failed program was:" >&5
9670sed 's/^/| /' conftest.$ac_ext >&5
9671
9672  ac_header_preproc=no
9673fi
9674rm -f conftest.err conftest.$ac_ext
9675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9676echo "${ECHO_T}$ac_header_preproc" >&6
9677
9678# So?  What about this header?
9679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9680  yes:no: )
9681    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9683    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9685    ac_header_preproc=yes
9686    ;;
9687  no:yes:* )
9688    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9690    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9691echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9692    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9694    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9695echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9696    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9698    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9700    (
9701      cat <<\_ASBOX
9702## ---------------------------------------------- ##
9703## Report this to orxonox-dev at mail.datacore.ch ##
9704## ---------------------------------------------- ##
9705_ASBOX
9706    ) |
9707      sed "s/^/$as_me: WARNING:     /" >&2
9708    ;;
9709esac
9710echo "$as_me:$LINENO: checking for $ac_header" >&5
9711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9712if eval "test \"\${$as_ac_Header+set}\" = set"; then
9713  echo $ECHO_N "(cached) $ECHO_C" >&6
9714else
9715  eval "$as_ac_Header=\$ac_header_preproc"
9716fi
9717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9719
9720fi
9721if test `eval echo '${'$as_ac_Header'}'` = yes; then
9722  cat >>confdefs.h <<_ACEOF
9723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9724_ACEOF
9725
9726fi
9727
9728done
9729
9730echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9731echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9732if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9733  echo $ECHO_N "(cached) $ECHO_C" >&6
9734else
9735  if test "$cross_compiling" = yes; then
9736  ac_cv_func_malloc_0_nonnull=no
9737else
9738  cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h.  */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h.  */
9744#if STDC_HEADERS || HAVE_STDLIB_H
9745# include <stdlib.h>
9746#else
9747char *malloc ();
9748#endif
9749
9750int
9751main ()
9752{
9753exit (malloc (0) ? 0 : 1);
9754  ;
9755  return 0;
9756}
9757_ACEOF
9758rm -f conftest$ac_exeext
9759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760  (eval $ac_link) 2>&5
9761  ac_status=$?
9762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765  (eval $ac_try) 2>&5
9766  ac_status=$?
9767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768  (exit $ac_status); }; }; then
9769  ac_cv_func_malloc_0_nonnull=yes
9770else
9771  echo "$as_me: program exited with status $ac_status" >&5
9772echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775( exit $ac_status )
9776ac_cv_func_malloc_0_nonnull=no
9777fi
9778rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9779fi
9780fi
9781echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9782echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9783if test $ac_cv_func_malloc_0_nonnull = yes; then
9784
9785cat >>confdefs.h <<\_ACEOF
9786#define HAVE_MALLOC 1
9787_ACEOF
9788
9789else
9790  cat >>confdefs.h <<\_ACEOF
9791#define HAVE_MALLOC 0
9792_ACEOF
9793
9794   case $LIBOBJS in
9795    "malloc.$ac_objext"   | \
9796  *" malloc.$ac_objext"   | \
9797    "malloc.$ac_objext "* | \
9798  *" malloc.$ac_objext "* ) ;;
9799  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9800esac
9801
9802
9803cat >>confdefs.h <<\_ACEOF
9804#define malloc rpl_malloc
9805_ACEOF
9806
9807fi
9808
9809
9810
9811
9812
9813for ac_func in bzero sqrt
9814do
9815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9816echo "$as_me:$LINENO: checking for $ac_func" >&5
9817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9818if eval "test \"\${$as_ac_var+set}\" = set"; then
9819  echo $ECHO_N "(cached) $ECHO_C" >&6
9820else
9821  cat >conftest.$ac_ext <<_ACEOF
9822/* confdefs.h.  */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h.  */
9827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9828   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9829#define $ac_func innocuous_$ac_func
9830
9831/* System header to define __stub macros and hopefully few prototypes,
9832    which can conflict with char $ac_func (); below.
9833    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834    <limits.h> exists even on freestanding compilers.  */
9835
9836#ifdef __STDC__
9837# include <limits.h>
9838#else
9839# include <assert.h>
9840#endif
9841
9842#undef $ac_func
9843
9844/* Override any gcc2 internal prototype to avoid an error.  */
9845#ifdef __cplusplus
9846extern "C"
9847{
9848#endif
9849/* We use char because int might match the return type of a gcc2
9850   builtin and then its argument prototype would still apply.  */
9851char $ac_func ();
9852/* The GNU C library defines this for functions which it implements
9853    to always fail with ENOSYS.  Some functions are actually named
9854    something starting with __ and the normal name is an alias.  */
9855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9856choke me
9857#else
9858char (*f) () = $ac_func;
9859#endif
9860#ifdef __cplusplus
9861}
9862#endif
9863
9864int
9865main ()
9866{
9867return f != $ac_func;
9868  ;
9869  return 0;
9870}
9871_ACEOF
9872rm -f conftest.$ac_objext conftest$ac_exeext
9873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9874  (eval $ac_link) 2>conftest.er1
9875  ac_status=$?
9876  grep -v '^ *+' conftest.er1 >conftest.err
9877  rm -f conftest.er1
9878  cat conftest.err >&5
9879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880  (exit $ac_status); } &&
9881         { ac_try='test -z "$ac_c_werror_flag"
9882                         || test ! -s conftest.err'
9883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884  (eval $ac_try) 2>&5
9885  ac_status=$?
9886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887  (exit $ac_status); }; } &&
9888         { ac_try='test -s conftest$ac_exeext'
9889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890  (eval $ac_try) 2>&5
9891  ac_status=$?
9892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893  (exit $ac_status); }; }; then
9894  eval "$as_ac_var=yes"
9895else
9896  echo "$as_me: failed program was:" >&5
9897sed 's/^/| /' conftest.$ac_ext >&5
9898
9899eval "$as_ac_var=no"
9900fi
9901rm -f conftest.err conftest.$ac_objext \
9902      conftest$ac_exeext conftest.$ac_ext
9903fi
9904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9906if test `eval echo '${'$as_ac_var'}'` = yes; then
9907  cat >>confdefs.h <<_ACEOF
9908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9909_ACEOF
9910
9911fi
9912done
9913
9914
9915######################
9916## OUTPUT CONFIGURE ##
9917######################
9918                                                                                                                                                                                              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"
9919
9920
9921cat >confcache <<\_ACEOF
9922# This file is a shell script that caches the results of configure
9923# tests run on this system so they can be shared between configure
9924# scripts and configure runs, see configure's option --config-cache.
9925# It is not useful on other systems.  If it contains results you don't
9926# want to keep, you may remove or edit it.
9927#
9928# config.status only pays attention to the cache file if you give it
9929# the --recheck option to rerun configure.
9930#
9931# `ac_cv_env_foo' variables (set or unset) will be overridden when
9932# loading this file, other *unset* `ac_cv_foo' will be assigned the
9933# following values.
9934
9935_ACEOF
9936
9937# The following way of writing the cache mishandles newlines in values,
9938# but we know of no workaround that is simple, portable, and efficient.
9939# So, don't put newlines in cache variables' values.
9940# Ultrix sh set writes to stderr and can't be redirected directly,
9941# and sets the high bit in the cache file unless we assign to the vars.
9942{
9943  (set) 2>&1 |
9944    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9945    *ac_space=\ *)
9946      # `set' does not quote correctly, so add quotes (double-quote
9947      # substitution turns \\\\ into \\, and sed turns \\ into \).
9948      sed -n \
9949        "s/'/'\\\\''/g;
9950          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9951      ;;
9952    *)
9953      # `set' quotes correctly as required by POSIX, so do not add quotes.
9954      sed -n \
9955        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9956      ;;
9957    esac;
9958} |
9959  sed '
9960     t clear
9961     : clear
9962     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9963     t end
9964     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9965     : end' >>confcache
9966if diff $cache_file confcache >/dev/null 2>&1; then :; else
9967  if test -w $cache_file; then
9968    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9969    cat confcache >$cache_file
9970  else
9971    echo "not updating unwritable cache $cache_file"
9972  fi
9973fi
9974rm -f confcache
9975
9976test "x$prefix" = xNONE && prefix=$ac_default_prefix
9977# Let make expand exec_prefix.
9978test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9979
9980# VPATH may cause trouble with some makes, so we remove $(srcdir),
9981# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9982# trailing colons and then remove the whole line if VPATH becomes empty
9983# (actually we leave an empty line to preserve line numbers).
9984if test "x$srcdir" = x.; then
9985  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9986s/:*\$(srcdir):*/:/;
9987s/:*\${srcdir}:*/:/;
9988s/:*@srcdir@:*/:/;
9989s/^\([^=]*=[     ]*\):*/\1/;
9990s/:*$//;
9991s/^[^=]*=[       ]*$//;
9992}'
9993fi
9994
9995DEFS=-DHAVE_CONFIG_H
9996
9997ac_libobjs=
9998ac_ltlibobjs=
9999for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10000  # 1. Remove the extension, and $U if already installed.
10001  ac_i=`echo "$ac_i" |
10002         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10003  # 2. Add them.
10004  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10005  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10006done
10007LIBOBJS=$ac_libobjs
10008
10009LTLIBOBJS=$ac_ltlibobjs
10010
10011
10012if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10013  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10014Usually this means the macro was only invoked conditionally." >&5
10015echo "$as_me: error: conditional \"AMDEP\" was never defined.
10016Usually this means the macro was only invoked conditionally." >&2;}
10017   { (exit 1); exit 1; }; }
10018fi
10019if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10020  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10021Usually this means the macro was only invoked conditionally." >&5
10022echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10023Usually this means the macro was only invoked conditionally." >&2;}
10024   { (exit 1); exit 1; }; }
10025fi
10026if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10027  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10028Usually this means the macro was only invoked conditionally." >&5
10029echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10030Usually this means the macro was only invoked conditionally." >&2;}
10031   { (exit 1); exit 1; }; }
10032fi
10033if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10034  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10035Usually this means the macro was only invoked conditionally." >&5
10036echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10037Usually this means the macro was only invoked conditionally." >&2;}
10038   { (exit 1); exit 1; }; }
10039fi
10040if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10041  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10042Usually this means the macro was only invoked conditionally." >&5
10043echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10044Usually this means the macro was only invoked conditionally." >&2;}
10045   { (exit 1); exit 1; }; }
10046fi
10047if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10048  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10049Usually this means the macro was only invoked conditionally." >&5
10050echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10051Usually this means the macro was only invoked conditionally." >&2;}
10052   { (exit 1); exit 1; }; }
10053fi
10054if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10055  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
10056Usually this means the macro was only invoked conditionally." >&5
10057echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
10058Usually this means the macro was only invoked conditionally." >&2;}
10059   { (exit 1); exit 1; }; }
10060fi
10061if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10062  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
10063Usually this means the macro was only invoked conditionally." >&5
10064echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
10065Usually this means the macro was only invoked conditionally." >&2;}
10066   { (exit 1); exit 1; }; }
10067fi
10068
10069: ${CONFIG_STATUS=./config.status}
10070ac_clean_files_save=$ac_clean_files
10071ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10072{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10073echo "$as_me: creating $CONFIG_STATUS" >&6;}
10074cat >$CONFIG_STATUS <<_ACEOF
10075#! $SHELL
10076# Generated by $as_me.
10077# Run this file to recreate the current configuration.
10078# Compiler output produced by configure, useful for debugging
10079# configure, is in config.log if it exists.
10080
10081debug=false
10082ac_cs_recheck=false
10083ac_cs_silent=false
10084SHELL=\${CONFIG_SHELL-$SHELL}
10085_ACEOF
10086
10087cat >>$CONFIG_STATUS <<\_ACEOF
10088## --------------------- ##
10089## M4sh Initialization.  ##
10090## --------------------- ##
10091
10092# Be Bourne compatible
10093if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10094  emulate sh
10095  NULLCMD=:
10096  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10097  # is contrary to our usage.  Disable this feature.
10098  alias -g '${1+"$@"}'='"$@"'
10099elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10100  set -o posix
10101fi
10102DUALCASE=1; export DUALCASE # for MKS sh
10103
10104# Support unset when possible.
10105if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10106  as_unset=unset
10107else
10108  as_unset=false
10109fi
10110
10111
10112# Work around bugs in pre-3.0 UWIN ksh.
10113$as_unset ENV MAIL MAILPATH
10114PS1='$ '
10115PS2='> '
10116PS4='+ '
10117
10118# NLS nuisances.
10119for as_var in \
10120  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10121  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10122  LC_TELEPHONE LC_TIME
10123do
10124  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10125    eval $as_var=C; export $as_var
10126  else
10127    $as_unset $as_var
10128  fi
10129done
10130
10131# Required to use basename.
10132if expr a : '\(a\)' >/dev/null 2>&1; then
10133  as_expr=expr
10134else
10135  as_expr=false
10136fi
10137
10138if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10139  as_basename=basename
10140else
10141  as_basename=false
10142fi
10143
10144
10145# Name of the executable.
10146as_me=`$as_basename "$0" ||
10147$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10148         X"$0" : 'X\(//\)$' \| \
10149         X"$0" : 'X\(/\)$' \| \
10150         .     : '\(.\)' 2>/dev/null ||
10151echo X/"$0" |
10152    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10153          /^X\/\(\/\/\)$/{ s//\1/; q; }
10154          /^X\/\(\/\).*/{ s//\1/; q; }
10155          s/.*/./; q'`
10156
10157
10158# PATH needs CR, and LINENO needs CR and PATH.
10159# Avoid depending upon Character Ranges.
10160as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10161as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10162as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10163as_cr_digits='0123456789'
10164as_cr_alnum=$as_cr_Letters$as_cr_digits
10165
10166# The user is always right.
10167if test "${PATH_SEPARATOR+set}" != set; then
10168  echo "#! /bin/sh" >conf$$.sh
10169  echo  "exit 0"   >>conf$$.sh
10170  chmod +x conf$$.sh
10171  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10172    PATH_SEPARATOR=';'
10173  else
10174    PATH_SEPARATOR=:
10175  fi
10176  rm -f conf$$.sh
10177fi
10178
10179
10180  as_lineno_1=$LINENO
10181  as_lineno_2=$LINENO
10182  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10183  test "x$as_lineno_1" != "x$as_lineno_2" &&
10184  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10185  # Find who we are.  Look in the path if we contain no path at all
10186  # relative or not.
10187  case $0 in
10188    *[\\/]* ) as_myself=$0 ;;
10189    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192  IFS=$as_save_IFS
10193  test -z "$as_dir" && as_dir=.
10194  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10195done
10196
10197       ;;
10198  esac
10199  # We did not find ourselves, most probably we were run as `sh COMMAND'
10200  # in which case we are not to be found in the path.
10201  if test "x$as_myself" = x; then
10202    as_myself=$0
10203  fi
10204  if test ! -f "$as_myself"; then
10205    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10206echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10207   { (exit 1); exit 1; }; }
10208  fi
10209  case $CONFIG_SHELL in
10210  '')
10211    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10213do
10214  IFS=$as_save_IFS
10215  test -z "$as_dir" && as_dir=.
10216  for as_base in sh bash ksh sh5; do
10217         case $as_dir in
10218         /*)
10219           if ("$as_dir/$as_base" -c '
10220  as_lineno_1=$LINENO
10221  as_lineno_2=$LINENO
10222  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10223  test "x$as_lineno_1" != "x$as_lineno_2" &&
10224  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10225             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10226             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10227             CONFIG_SHELL=$as_dir/$as_base
10228             export CONFIG_SHELL
10229             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10230           fi;;
10231         esac
10232       done
10233done
10234;;
10235  esac
10236
10237  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10238  # uniformly replaced by the line number.  The first 'sed' inserts a
10239  # line-number line before each line; the second 'sed' does the real
10240  # work.  The second script uses 'N' to pair each line-number line
10241  # with the numbered line, and appends trailing '-' during
10242  # substitution so that $LINENO is not a special case at line end.
10243  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10244  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10245  sed '=' <$as_myself |
10246    sed '
10247      N
10248      s,$,-,
10249      : loop
10250      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10251      t loop
10252      s,-$,,
10253      s,^['$as_cr_digits']*\n,,
10254    ' >$as_me.lineno &&
10255  chmod +x $as_me.lineno ||
10256    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10257echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10258   { (exit 1); exit 1; }; }
10259
10260  # Don't try to exec as it changes $[0], causing all sort of problems
10261  # (the dirname of $[0] is not the place where we might find the
10262  # original and so on.  Autoconf is especially sensible to this).
10263  . ./$as_me.lineno
10264  # Exit status is that of the last command.
10265  exit
10266}
10267
10268
10269case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10270  *c*,-n*) ECHO_N= ECHO_C='
10271' ECHO_T='      ' ;;
10272  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10273  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10274esac
10275
10276if expr a : '\(a\)' >/dev/null 2>&1; then
10277  as_expr=expr
10278else
10279  as_expr=false
10280fi
10281
10282rm -f conf$$ conf$$.exe conf$$.file
10283echo >conf$$.file
10284if ln -s conf$$.file conf$$ 2>/dev/null; then
10285  # We could just check for DJGPP; but this test a) works b) is more generic
10286  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10287  if test -f conf$$.exe; then
10288    # Don't use ln at all; we don't have any links
10289    as_ln_s='cp -p'
10290  else
10291    as_ln_s='ln -s'
10292  fi
10293elif ln conf$$.file conf$$ 2>/dev/null; then
10294  as_ln_s=ln
10295else
10296  as_ln_s='cp -p'
10297fi
10298rm -f conf$$ conf$$.exe conf$$.file
10299
10300if mkdir -p . 2>/dev/null; then
10301  as_mkdir_p=:
10302else
10303  test -d ./-p && rmdir ./-p
10304  as_mkdir_p=false
10305fi
10306
10307as_executable_p="test -f"
10308
10309# Sed expression to map a string onto a valid CPP name.
10310as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10311
10312# Sed expression to map a string onto a valid variable name.
10313as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10314
10315
10316# IFS
10317# We need space, tab and new line, in precisely that order.
10318as_nl='
10319'
10320IFS="   $as_nl"
10321
10322# CDPATH.
10323$as_unset CDPATH
10324
10325exec 6>&1
10326
10327# Open the log real soon, to keep \$[0] and so on meaningful, and to
10328# report actual input values of CONFIG_FILES etc. instead of their
10329# values after options handling.  Logging --version etc. is OK.
10330exec 5>>config.log
10331{
10332  echo
10333  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10334## Running $as_me. ##
10335_ASBOX
10336} >&5
10337cat >&5 <<_CSEOF
10338
10339This file was extended by orxonox $as_me 0.3.1_alpha, which was
10340generated by GNU Autoconf 2.59.  Invocation command line was
10341
10342  CONFIG_FILES    = $CONFIG_FILES
10343  CONFIG_HEADERS  = $CONFIG_HEADERS
10344  CONFIG_LINKS    = $CONFIG_LINKS
10345  CONFIG_COMMANDS = $CONFIG_COMMANDS
10346  $ $0 $@
10347
10348_CSEOF
10349echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10350echo >&5
10351_ACEOF
10352
10353# Files that config.status was made for.
10354if test -n "$ac_config_files"; then
10355  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10356fi
10357
10358if test -n "$ac_config_headers"; then
10359  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10360fi
10361
10362if test -n "$ac_config_links"; then
10363  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10364fi
10365
10366if test -n "$ac_config_commands"; then
10367  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10368fi
10369
10370cat >>$CONFIG_STATUS <<\_ACEOF
10371
10372ac_cs_usage="\
10373\`$as_me' instantiates files from templates according to the
10374current configuration.
10375
10376Usage: $0 [OPTIONS] [FILE]...
10377
10378  -h, --help       print this help, then exit
10379  -V, --version    print version number, then exit
10380  -q, --quiet      do not print progress messages
10381  -d, --debug      don't remove temporary files
10382      --recheck    update $as_me by reconfiguring in the same conditions
10383  --file=FILE[:TEMPLATE]
10384                   instantiate the configuration file FILE
10385  --header=FILE[:TEMPLATE]
10386                   instantiate the configuration header FILE
10387
10388Configuration files:
10389$config_files
10390
10391Configuration headers:
10392$config_headers
10393
10394Configuration commands:
10395$config_commands
10396
10397Report bugs to <bug-autoconf@gnu.org>."
10398_ACEOF
10399
10400cat >>$CONFIG_STATUS <<_ACEOF
10401ac_cs_version="\\
10402orxonox config.status 0.3.1_alpha
10403configured by $0, generated by GNU Autoconf 2.59,
10404  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10405
10406Copyright (C) 2003 Free Software Foundation, Inc.
10407This config.status script is free software; the Free Software Foundation
10408gives unlimited permission to copy, distribute and modify it."
10409srcdir=$srcdir
10410INSTALL="$INSTALL"
10411_ACEOF
10412
10413cat >>$CONFIG_STATUS <<\_ACEOF
10414# If no file are specified by the user, then we need to provide default
10415# value.  By we need to know if files were specified by the user.
10416ac_need_defaults=:
10417while test $# != 0
10418do
10419  case $1 in
10420  --*=*)
10421    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10422    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10423    ac_shift=:
10424    ;;
10425  -*)
10426    ac_option=$1
10427    ac_optarg=$2
10428    ac_shift=shift
10429    ;;
10430  *) # This is not an option, so the user has probably given explicit
10431     # arguments.
10432     ac_option=$1
10433     ac_need_defaults=false;;
10434  esac
10435
10436  case $ac_option in
10437  # Handling of the options.
10438_ACEOF
10439cat >>$CONFIG_STATUS <<\_ACEOF
10440  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10441    ac_cs_recheck=: ;;
10442  --version | --vers* | -V )
10443    echo "$ac_cs_version"; exit 0 ;;
10444  --he | --h)
10445    # Conflict between --help and --header
10446    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10447Try \`$0 --help' for more information." >&5
10448echo "$as_me: error: ambiguous option: $1
10449Try \`$0 --help' for more information." >&2;}
10450   { (exit 1); exit 1; }; };;
10451  --help | --hel | -h )
10452    echo "$ac_cs_usage"; exit 0 ;;
10453  --debug | --d* | -d )
10454    debug=: ;;
10455  --file | --fil | --fi | --f )
10456    $ac_shift
10457    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10458    ac_need_defaults=false;;
10459  --header | --heade | --head | --hea )
10460    $ac_shift
10461    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10462    ac_need_defaults=false;;
10463  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10464  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10465    ac_cs_silent=: ;;
10466
10467  # This is an error.
10468  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10469Try \`$0 --help' for more information." >&5
10470echo "$as_me: error: unrecognized option: $1
10471Try \`$0 --help' for more information." >&2;}
10472   { (exit 1); exit 1; }; } ;;
10473
10474  *) ac_config_targets="$ac_config_targets $1" ;;
10475
10476  esac
10477  shift
10478done
10479
10480ac_configure_extra_args=
10481
10482if $ac_cs_silent; then
10483  exec 6>/dev/null
10484  ac_configure_extra_args="$ac_configure_extra_args --silent"
10485fi
10486
10487_ACEOF
10488cat >>$CONFIG_STATUS <<_ACEOF
10489if \$ac_cs_recheck; then
10490  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10491  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10492fi
10493
10494_ACEOF
10495
10496cat >>$CONFIG_STATUS <<_ACEOF
10497#
10498# INIT-COMMANDS section.
10499#
10500
10501AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10502
10503_ACEOF
10504
10505
10506
10507cat >>$CONFIG_STATUS <<\_ACEOF
10508for ac_config_target in $ac_config_targets
10509do
10510  case "$ac_config_target" in
10511  # Handling of arguments.
10512  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10513  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10514  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10515  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
10516  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
10517  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
10518  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
10519  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
10520  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
10521  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
10522  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
10523  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
10524  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
10525  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
10526  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10527  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
10528  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
10529  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
10530  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
10531  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10532  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10533  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10534echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10535   { (exit 1); exit 1; }; };;
10536  esac
10537done
10538
10539# If the user did not use the arguments to specify the items to instantiate,
10540# then the envvar interface is used.  Set only those that are not.
10541# We use the long form for the default assignment because of an extremely
10542# bizarre bug on SunOS 4.1.3.
10543if $ac_need_defaults; then
10544  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10545  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10546  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10547fi
10548
10549# Have a temporary directory for convenience.  Make it in the build tree
10550# simply because there is no reason to put it here, and in addition,
10551# creating and moving files from /tmp can sometimes cause problems.
10552# Create a temporary directory, and hook for its removal unless debugging.
10553$debug ||
10554{
10555  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10556  trap '{ (exit 1); exit 1; }' 1 2 13 15
10557}
10558
10559# Create a (secure) tmp directory for tmp files.
10560
10561{
10562  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10563  test -n "$tmp" && test -d "$tmp"
10564}  ||
10565{
10566  tmp=./confstat$$-$RANDOM
10567  (umask 077 && mkdir $tmp)
10568} ||
10569{
10570   echo "$me: cannot create a temporary directory in ." >&2
10571   { (exit 1); exit 1; }
10572}
10573
10574_ACEOF
10575
10576cat >>$CONFIG_STATUS <<_ACEOF
10577
10578#
10579# CONFIG_FILES section.
10580#
10581
10582# No need to generate the scripts if there are no CONFIG_FILES.
10583# This happens for instance when ./config.status config.h
10584if test -n "\$CONFIG_FILES"; then
10585  # Protect against being on the right side of a sed subst in config.status.
10586  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10587   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10588s,@SHELL@,$SHELL,;t t
10589s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10590s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10591s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10592s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10593s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10594s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10595s,@exec_prefix@,$exec_prefix,;t t
10596s,@prefix@,$prefix,;t t
10597s,@program_transform_name@,$program_transform_name,;t t
10598s,@bindir@,$bindir,;t t
10599s,@sbindir@,$sbindir,;t t
10600s,@libexecdir@,$libexecdir,;t t
10601s,@datadir@,$datadir,;t t
10602s,@sysconfdir@,$sysconfdir,;t t
10603s,@sharedstatedir@,$sharedstatedir,;t t
10604s,@localstatedir@,$localstatedir,;t t
10605s,@libdir@,$libdir,;t t
10606s,@includedir@,$includedir,;t t
10607s,@oldincludedir@,$oldincludedir,;t t
10608s,@infodir@,$infodir,;t t
10609s,@mandir@,$mandir,;t t
10610s,@build_alias@,$build_alias,;t t
10611s,@host_alias@,$host_alias,;t t
10612s,@target_alias@,$target_alias,;t t
10613s,@DEFS@,$DEFS,;t t
10614s,@ECHO_C@,$ECHO_C,;t t
10615s,@ECHO_N@,$ECHO_N,;t t
10616s,@ECHO_T@,$ECHO_T,;t t
10617s,@LIBS@,$LIBS,;t t
10618s,@build@,$build,;t t
10619s,@build_cpu@,$build_cpu,;t t
10620s,@build_vendor@,$build_vendor,;t t
10621s,@build_os@,$build_os,;t t
10622s,@host@,$host,;t t
10623s,@host_cpu@,$host_cpu,;t t
10624s,@host_vendor@,$host_vendor,;t t
10625s,@host_os@,$host_os,;t t
10626s,@target@,$target,;t t
10627s,@target_cpu@,$target_cpu,;t t
10628s,@target_vendor@,$target_vendor,;t t
10629s,@target_os@,$target_os,;t t
10630s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10631s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10632s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10633s,@CYGPATH_W@,$CYGPATH_W,;t t
10634s,@PACKAGE@,$PACKAGE,;t t
10635s,@VERSION@,$VERSION,;t t
10636s,@ACLOCAL@,$ACLOCAL,;t t
10637s,@AUTOCONF@,$AUTOCONF,;t t
10638s,@AUTOMAKE@,$AUTOMAKE,;t t
10639s,@AUTOHEADER@,$AUTOHEADER,;t t
10640s,@MAKEINFO@,$MAKEINFO,;t t
10641s,@AMTAR@,$AMTAR,;t t
10642s,@install_sh@,$install_sh,;t t
10643s,@STRIP@,$STRIP,;t t
10644s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10645s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10646s,@mkdir_p@,$mkdir_p,;t t
10647s,@AWK@,$AWK,;t t
10648s,@SET_MAKE@,$SET_MAKE,;t t
10649s,@am__leading_dot@,$am__leading_dot,;t t
10650s,@CXX@,$CXX,;t t
10651s,@CXXFLAGS@,$CXXFLAGS,;t t
10652s,@LDFLAGS@,$LDFLAGS,;t t
10653s,@CPPFLAGS@,$CPPFLAGS,;t t
10654s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10655s,@EXEEXT@,$EXEEXT,;t t
10656s,@OBJEXT@,$OBJEXT,;t t
10657s,@DEPDIR@,$DEPDIR,;t t
10658s,@am__include@,$am__include,;t t
10659s,@am__quote@,$am__quote,;t t
10660s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10661s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10662s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10663s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10664s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10665s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10666s,@RANLIB@,$RANLIB,;t t
10667s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10668s,@CC@,$CC,;t t
10669s,@CFLAGS@,$CFLAGS,;t t
10670s,@ac_ct_CC@,$ac_ct_CC,;t t
10671s,@CCDEPMODE@,$CCDEPMODE,;t t
10672s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10673s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10674s,@CPP@,$CPP,;t t
10675s,@EGREP@,$EGREP,;t t
10676s,@DEBUG@,$DEBUG,;t t
10677s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10678s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
10679s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10680s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
10681s,@DOXYGEN@,$DOXYGEN,;t t
10682s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10683s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
10684s,@GPROF@,$GPROF,;t t
10685s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10686s,@MSBITFIELDS@,$MSBITFIELDS,;t t
10687s,@GTK2_LIBS@,$GTK2_LIBS,;t t
10688s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10689s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10690s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
10691s,@CURL_LIBS@,$CURL_LIBS,;t t
10692s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10693s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10694s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
10695s,@LIBOBJS@,$LIBOBJS,;t t
10696s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10697CEOF
10698
10699_ACEOF
10700
10701  cat >>$CONFIG_STATUS <<\_ACEOF
10702  # Split the substitutions into bite-sized pieces for seds with
10703  # small command number limits, like on Digital OSF/1 and HP-UX.
10704  ac_max_sed_lines=48
10705  ac_sed_frag=1 # Number of current file.
10706  ac_beg=1 # First line for current file.
10707  ac_end=$ac_max_sed_lines # Line after last line for current file.
10708  ac_more_lines=:
10709  ac_sed_cmds=
10710  while $ac_more_lines; do
10711    if test $ac_beg -gt 1; then
10712      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10713    else
10714      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10715    fi
10716    if test ! -s $tmp/subs.frag; then
10717      ac_more_lines=false
10718    else
10719      # The purpose of the label and of the branching condition is to
10720      # speed up the sed processing (if there are no `@' at all, there
10721      # is no need to browse any of the substitutions).
10722      # These are the two extra sed commands mentioned above.
10723      (echo ':t
10724  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10725      if test -z "$ac_sed_cmds"; then
10726        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10727      else
10728        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10729      fi
10730      ac_sed_frag=`expr $ac_sed_frag + 1`
10731      ac_beg=$ac_end
10732      ac_end=`expr $ac_end + $ac_max_sed_lines`
10733    fi
10734  done
10735  if test -z "$ac_sed_cmds"; then
10736    ac_sed_cmds=cat
10737  fi
10738fi # test -n "$CONFIG_FILES"
10739
10740_ACEOF
10741cat >>$CONFIG_STATUS <<\_ACEOF
10742for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10743  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10744  case $ac_file in
10745  - | *:- | *:-:* ) # input from stdin
10746        cat >$tmp/stdin
10747        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10748        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10749  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10750        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10751  * )   ac_file_in=$ac_file.in ;;
10752  esac
10753
10754  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10755  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10756$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10757         X"$ac_file" : 'X\(//\)[^/]' \| \
10758         X"$ac_file" : 'X\(//\)$' \| \
10759         X"$ac_file" : 'X\(/\)' \| \
10760         .     : '\(.\)' 2>/dev/null ||
10761echo X"$ac_file" |
10762    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10763          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10764          /^X\(\/\/\)$/{ s//\1/; q; }
10765          /^X\(\/\).*/{ s//\1/; q; }
10766          s/.*/./; q'`
10767  { if $as_mkdir_p; then
10768    mkdir -p "$ac_dir"
10769  else
10770    as_dir="$ac_dir"
10771    as_dirs=
10772    while test ! -d "$as_dir"; do
10773      as_dirs="$as_dir $as_dirs"
10774      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10776         X"$as_dir" : 'X\(//\)[^/]' \| \
10777         X"$as_dir" : 'X\(//\)$' \| \
10778         X"$as_dir" : 'X\(/\)' \| \
10779         .     : '\(.\)' 2>/dev/null ||
10780echo X"$as_dir" |
10781    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10782          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10783          /^X\(\/\/\)$/{ s//\1/; q; }
10784          /^X\(\/\).*/{ s//\1/; q; }
10785          s/.*/./; q'`
10786    done
10787    test ! -n "$as_dirs" || mkdir $as_dirs
10788  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10789echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10790   { (exit 1); exit 1; }; }; }
10791
10792  ac_builddir=.
10793
10794if test "$ac_dir" != .; then
10795  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10796  # A "../" for each directory in $ac_dir_suffix.
10797  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10798else
10799  ac_dir_suffix= ac_top_builddir=
10800fi
10801
10802case $srcdir in
10803  .)  # No --srcdir option.  We are building in place.
10804    ac_srcdir=.
10805    if test -z "$ac_top_builddir"; then
10806       ac_top_srcdir=.
10807    else
10808       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10809    fi ;;
10810  [\\/]* | ?:[\\/]* )  # Absolute path.
10811    ac_srcdir=$srcdir$ac_dir_suffix;
10812    ac_top_srcdir=$srcdir ;;
10813  *) # Relative path.
10814    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10815    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10816esac
10817
10818# Do not use `cd foo && pwd` to compute absolute paths, because
10819# the directories may not exist.
10820case `pwd` in
10821.) ac_abs_builddir="$ac_dir";;
10822*)
10823  case "$ac_dir" in
10824  .) ac_abs_builddir=`pwd`;;
10825  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10826  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10827  esac;;
10828esac
10829case $ac_abs_builddir in
10830.) ac_abs_top_builddir=${ac_top_builddir}.;;
10831*)
10832  case ${ac_top_builddir}. in
10833  .) ac_abs_top_builddir=$ac_abs_builddir;;
10834  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10835  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10836  esac;;
10837esac
10838case $ac_abs_builddir in
10839.) ac_abs_srcdir=$ac_srcdir;;
10840*)
10841  case $ac_srcdir in
10842  .) ac_abs_srcdir=$ac_abs_builddir;;
10843  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10844  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10845  esac;;
10846esac
10847case $ac_abs_builddir in
10848.) ac_abs_top_srcdir=$ac_top_srcdir;;
10849*)
10850  case $ac_top_srcdir in
10851  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10852  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10853  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10854  esac;;
10855esac
10856
10857
10858  case $INSTALL in
10859  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10860  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10861  esac
10862
10863  if test x"$ac_file" != x-; then
10864    { echo "$as_me:$LINENO: creating $ac_file" >&5
10865echo "$as_me: creating $ac_file" >&6;}
10866    rm -f "$ac_file"
10867  fi
10868  # Let's still pretend it is `configure' which instantiates (i.e., don't
10869  # use $as_me), people would be surprised to read:
10870  #    /* config.h.  Generated by config.status.  */
10871  if test x"$ac_file" = x-; then
10872    configure_input=
10873  else
10874    configure_input="$ac_file.  "
10875  fi
10876  configure_input=$configure_input"Generated from `echo $ac_file_in |
10877                                     sed 's,.*/,,'` by configure."
10878
10879  # First look for the input files in the build tree, otherwise in the
10880  # src tree.
10881  ac_file_inputs=`IFS=:
10882    for f in $ac_file_in; do
10883      case $f in
10884      -) echo $tmp/stdin ;;
10885      [\\/$]*)
10886         # Absolute (can't be DOS-style, as IFS=:)
10887         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10888echo "$as_me: error: cannot find input file: $f" >&2;}
10889   { (exit 1); exit 1; }; }
10890         echo "$f";;
10891      *) # Relative
10892         if test -f "$f"; then
10893           # Build tree
10894           echo "$f"
10895         elif test -f "$srcdir/$f"; then
10896           # Source tree
10897           echo "$srcdir/$f"
10898         else
10899           # /dev/null tree
10900           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10901echo "$as_me: error: cannot find input file: $f" >&2;}
10902   { (exit 1); exit 1; }; }
10903         fi;;
10904      esac
10905    done` || { (exit 1); exit 1; }
10906_ACEOF
10907cat >>$CONFIG_STATUS <<_ACEOF
10908  sed "$ac_vpsub
10909$extrasub
10910_ACEOF
10911cat >>$CONFIG_STATUS <<\_ACEOF
10912:t
10913/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10914s,@configure_input@,$configure_input,;t t
10915s,@srcdir@,$ac_srcdir,;t t
10916s,@abs_srcdir@,$ac_abs_srcdir,;t t
10917s,@top_srcdir@,$ac_top_srcdir,;t t
10918s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10919s,@builddir@,$ac_builddir,;t t
10920s,@abs_builddir@,$ac_abs_builddir,;t t
10921s,@top_builddir@,$ac_top_builddir,;t t
10922s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10923s,@INSTALL@,$ac_INSTALL,;t t
10924" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10925  rm -f $tmp/stdin
10926  if test x"$ac_file" != x-; then
10927    mv $tmp/out $ac_file
10928  else
10929    cat $tmp/out
10930    rm -f $tmp/out
10931  fi
10932
10933done
10934_ACEOF
10935cat >>$CONFIG_STATUS <<\_ACEOF
10936
10937#
10938# CONFIG_HEADER section.
10939#
10940
10941# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10942# NAME is the cpp macro being defined and VALUE is the value it is being given.
10943#
10944# ac_d sets the value in "#define NAME VALUE" lines.
10945ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10946ac_dB='[         ].*$,\1#\2'
10947ac_dC=' '
10948ac_dD=',;t'
10949# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10950ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10951ac_uB='$,\1#\2define\3'
10952ac_uC=' '
10953ac_uD=',;t'
10954
10955for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10956  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10957  case $ac_file in
10958  - | *:- | *:-:* ) # input from stdin
10959        cat >$tmp/stdin
10960        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10961        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10962  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10963        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10964  * )   ac_file_in=$ac_file.in ;;
10965  esac
10966
10967  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10968echo "$as_me: creating $ac_file" >&6;}
10969
10970  # First look for the input files in the build tree, otherwise in the
10971  # src tree.
10972  ac_file_inputs=`IFS=:
10973    for f in $ac_file_in; do
10974      case $f in
10975      -) echo $tmp/stdin ;;
10976      [\\/$]*)
10977         # Absolute (can't be DOS-style, as IFS=:)
10978         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10979echo "$as_me: error: cannot find input file: $f" >&2;}
10980   { (exit 1); exit 1; }; }
10981         # Do quote $f, to prevent DOS paths from being IFS'd.
10982         echo "$f";;
10983      *) # Relative
10984         if test -f "$f"; then
10985           # Build tree
10986           echo "$f"
10987         elif test -f "$srcdir/$f"; then
10988           # Source tree
10989           echo "$srcdir/$f"
10990         else
10991           # /dev/null tree
10992           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10993echo "$as_me: error: cannot find input file: $f" >&2;}
10994   { (exit 1); exit 1; }; }
10995         fi;;
10996      esac
10997    done` || { (exit 1); exit 1; }
10998  # Remove the trailing spaces.
10999  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11000
11001_ACEOF
11002
11003# Transform confdefs.h into two sed scripts, `conftest.defines' and
11004# `conftest.undefs', that substitutes the proper values into
11005# config.h.in to produce config.h.  The first handles `#define'
11006# templates, and the second `#undef' templates.
11007# And first: Protect against being on the right side of a sed subst in
11008# config.status.  Protect against being in an unquoted here document
11009# in config.status.
11010rm -f conftest.defines conftest.undefs
11011# Using a here document instead of a string reduces the quoting nightmare.
11012# Putting comments in sed scripts is not portable.
11013#
11014# `end' is used to avoid that the second main sed command (meant for
11015# 0-ary CPP macros) applies to n-ary macro definitions.
11016# See the Autoconf documentation for `clear'.
11017cat >confdef2sed.sed <<\_ACEOF
11018s/[\\&,]/\\&/g
11019s,[\\$`],\\&,g
11020t clear
11021: clear
11022s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11023t end
11024s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11025: end
11026_ACEOF
11027# If some macros were called several times there might be several times
11028# the same #defines, which is useless.  Nevertheless, we may not want to
11029# sort them, since we want the *last* AC-DEFINE to be honored.
11030uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11031sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11032rm -f confdef2sed.sed
11033
11034# This sed command replaces #undef with comments.  This is necessary, for
11035# example, in the case of _POSIX_SOURCE, which is predefined and required
11036# on some systems where configure will not decide to define it.
11037cat >>conftest.undefs <<\_ACEOF
11038s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11039_ACEOF
11040
11041# Break up conftest.defines because some shells have a limit on the size
11042# of here documents, and old seds have small limits too (100 cmds).
11043echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11044echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11045echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11046echo '  :' >>$CONFIG_STATUS
11047rm -f conftest.tail
11048while grep . conftest.defines >/dev/null
11049do
11050  # Write a limited-size here document to $tmp/defines.sed.
11051  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11052  # Speed up: don't consider the non `#define' lines.
11053  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11054  # Work around the forget-to-reset-the-flag bug.
11055  echo 't clr' >>$CONFIG_STATUS
11056  echo ': clr' >>$CONFIG_STATUS
11057  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11058  echo 'CEOF
11059  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11060  rm -f $tmp/in
11061  mv $tmp/out $tmp/in
11062' >>$CONFIG_STATUS
11063  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11064  rm -f conftest.defines
11065  mv conftest.tail conftest.defines
11066done
11067rm -f conftest.defines
11068echo '  fi # grep' >>$CONFIG_STATUS
11069echo >>$CONFIG_STATUS
11070
11071# Break up conftest.undefs because some shells have a limit on the size
11072# of here documents, and old seds have small limits too (100 cmds).
11073echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11074rm -f conftest.tail
11075while grep . conftest.undefs >/dev/null
11076do
11077  # Write a limited-size here document to $tmp/undefs.sed.
11078  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11079  # Speed up: don't consider the non `#undef'
11080  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11081  # Work around the forget-to-reset-the-flag bug.
11082  echo 't clr' >>$CONFIG_STATUS
11083  echo ': clr' >>$CONFIG_STATUS
11084  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11085  echo 'CEOF
11086  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11087  rm -f $tmp/in
11088  mv $tmp/out $tmp/in
11089' >>$CONFIG_STATUS
11090  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11091  rm -f conftest.undefs
11092  mv conftest.tail conftest.undefs
11093done
11094rm -f conftest.undefs
11095
11096cat >>$CONFIG_STATUS <<\_ACEOF
11097  # Let's still pretend it is `configure' which instantiates (i.e., don't
11098  # use $as_me), people would be surprised to read:
11099  #    /* config.h.  Generated by config.status.  */
11100  if test x"$ac_file" = x-; then
11101    echo "/* Generated by configure.  */" >$tmp/config.h
11102  else
11103    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11104  fi
11105  cat $tmp/in >>$tmp/config.h
11106  rm -f $tmp/in
11107  if test x"$ac_file" != x-; then
11108    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11109      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11110echo "$as_me: $ac_file is unchanged" >&6;}
11111    else
11112      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11113$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11114         X"$ac_file" : 'X\(//\)[^/]' \| \
11115         X"$ac_file" : 'X\(//\)$' \| \
11116         X"$ac_file" : 'X\(/\)' \| \
11117         .     : '\(.\)' 2>/dev/null ||
11118echo X"$ac_file" |
11119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11120          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11121          /^X\(\/\/\)$/{ s//\1/; q; }
11122          /^X\(\/\).*/{ s//\1/; q; }
11123          s/.*/./; q'`
11124      { if $as_mkdir_p; then
11125    mkdir -p "$ac_dir"
11126  else
11127    as_dir="$ac_dir"
11128    as_dirs=
11129    while test ! -d "$as_dir"; do
11130      as_dirs="$as_dir $as_dirs"
11131      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11132$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11133         X"$as_dir" : 'X\(//\)[^/]' \| \
11134         X"$as_dir" : 'X\(//\)$' \| \
11135         X"$as_dir" : 'X\(/\)' \| \
11136         .     : '\(.\)' 2>/dev/null ||
11137echo X"$as_dir" |
11138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11139          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11140          /^X\(\/\/\)$/{ s//\1/; q; }
11141          /^X\(\/\).*/{ s//\1/; q; }
11142          s/.*/./; q'`
11143    done
11144    test ! -n "$as_dirs" || mkdir $as_dirs
11145  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11146echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11147   { (exit 1); exit 1; }; }; }
11148
11149      rm -f $ac_file
11150      mv $tmp/config.h $ac_file
11151    fi
11152  else
11153    cat $tmp/config.h
11154    rm -f $tmp/config.h
11155  fi
11156# Compute $ac_file's index in $config_headers.
11157_am_stamp_count=1
11158for _am_header in $config_headers :; do
11159  case $_am_header in
11160    $ac_file | $ac_file:* )
11161      break ;;
11162    * )
11163      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11164  esac
11165done
11166echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11167$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11168         X$ac_file : 'X\(//\)[^/]' \| \
11169         X$ac_file : 'X\(//\)$' \| \
11170         X$ac_file : 'X\(/\)' \| \
11171         .     : '\(.\)' 2>/dev/null ||
11172echo X$ac_file |
11173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11174          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11175          /^X\(\/\/\)$/{ s//\1/; q; }
11176          /^X\(\/\).*/{ s//\1/; q; }
11177          s/.*/./; q'`/stamp-h$_am_stamp_count
11178done
11179_ACEOF
11180cat >>$CONFIG_STATUS <<\_ACEOF
11181
11182#
11183# CONFIG_COMMANDS section.
11184#
11185for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11186  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11187  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11188  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11189$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11190         X"$ac_dest" : 'X\(//\)[^/]' \| \
11191         X"$ac_dest" : 'X\(//\)$' \| \
11192         X"$ac_dest" : 'X\(/\)' \| \
11193         .     : '\(.\)' 2>/dev/null ||
11194echo X"$ac_dest" |
11195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11196          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11197          /^X\(\/\/\)$/{ s//\1/; q; }
11198          /^X\(\/\).*/{ s//\1/; q; }
11199          s/.*/./; q'`
11200  { if $as_mkdir_p; then
11201    mkdir -p "$ac_dir"
11202  else
11203    as_dir="$ac_dir"
11204    as_dirs=
11205    while test ! -d "$as_dir"; do
11206      as_dirs="$as_dir $as_dirs"
11207      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11209         X"$as_dir" : 'X\(//\)[^/]' \| \
11210         X"$as_dir" : 'X\(//\)$' \| \
11211         X"$as_dir" : 'X\(/\)' \| \
11212         .     : '\(.\)' 2>/dev/null ||
11213echo X"$as_dir" |
11214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11215          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11216          /^X\(\/\/\)$/{ s//\1/; q; }
11217          /^X\(\/\).*/{ s//\1/; q; }
11218          s/.*/./; q'`
11219    done
11220    test ! -n "$as_dirs" || mkdir $as_dirs
11221  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11222echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11223   { (exit 1); exit 1; }; }; }
11224
11225  ac_builddir=.
11226
11227if test "$ac_dir" != .; then
11228  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11229  # A "../" for each directory in $ac_dir_suffix.
11230  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11231else
11232  ac_dir_suffix= ac_top_builddir=
11233fi
11234
11235case $srcdir in
11236  .)  # No --srcdir option.  We are building in place.
11237    ac_srcdir=.
11238    if test -z "$ac_top_builddir"; then
11239       ac_top_srcdir=.
11240    else
11241       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11242    fi ;;
11243  [\\/]* | ?:[\\/]* )  # Absolute path.
11244    ac_srcdir=$srcdir$ac_dir_suffix;
11245    ac_top_srcdir=$srcdir ;;
11246  *) # Relative path.
11247    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11248    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11249esac
11250
11251# Do not use `cd foo && pwd` to compute absolute paths, because
11252# the directories may not exist.
11253case `pwd` in
11254.) ac_abs_builddir="$ac_dir";;
11255*)
11256  case "$ac_dir" in
11257  .) ac_abs_builddir=`pwd`;;
11258  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11259  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11260  esac;;
11261esac
11262case $ac_abs_builddir in
11263.) ac_abs_top_builddir=${ac_top_builddir}.;;
11264*)
11265  case ${ac_top_builddir}. in
11266  .) ac_abs_top_builddir=$ac_abs_builddir;;
11267  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11268  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11269  esac;;
11270esac
11271case $ac_abs_builddir in
11272.) ac_abs_srcdir=$ac_srcdir;;
11273*)
11274  case $ac_srcdir in
11275  .) ac_abs_srcdir=$ac_abs_builddir;;
11276  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11277  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11278  esac;;
11279esac
11280case $ac_abs_builddir in
11281.) ac_abs_top_srcdir=$ac_top_srcdir;;
11282*)
11283  case $ac_top_srcdir in
11284  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11285  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11286  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11287  esac;;
11288esac
11289
11290
11291  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11292echo "$as_me: executing $ac_dest commands" >&6;}
11293  case $ac_dest in
11294    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11295  # Strip MF so we end up with the name of the file.
11296  mf=`echo "$mf" | sed -e 's/:.*$//'`
11297  # Check whether this is an Automake generated Makefile or not.
11298  # We used to match only the files named `Makefile.in', but
11299  # some people rename them; so instead we look at the file content.
11300  # Grep'ing the first line is not enough: some people post-process
11301  # each Makefile.in and add a new line on top of each file to say so.
11302  # So let's grep whole file.
11303  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11304    dirpart=`(dirname "$mf") 2>/dev/null ||
11305$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11306         X"$mf" : 'X\(//\)[^/]' \| \
11307         X"$mf" : 'X\(//\)$' \| \
11308         X"$mf" : 'X\(/\)' \| \
11309         .     : '\(.\)' 2>/dev/null ||
11310echo X"$mf" |
11311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11312          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11313          /^X\(\/\/\)$/{ s//\1/; q; }
11314          /^X\(\/\).*/{ s//\1/; q; }
11315          s/.*/./; q'`
11316  else
11317    continue
11318  fi
11319  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11320  # Extract the definition of DEP_FILES from the Makefile without
11321  # running `make'.
11322  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11323  test -z "$DEPDIR" && continue
11324  # When using ansi2knr, U may be empty or an underscore; expand it
11325  U=`sed -n 's/^U = //p' < "$mf"`
11326  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11327  # We invoke sed twice because it is the simplest approach to
11328  # changing $(DEPDIR) to its actual value in the expansion.
11329  for file in `sed -n '
11330    /^DEP_FILES = .*\\\\$/ {
11331      s/^DEP_FILES = //
11332      :loop
11333        s/\\\\$//
11334        p
11335        n
11336        /\\\\$/ b loop
11337      p
11338    }
11339    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11340       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11341    # Make sure the directory exists.
11342    test -f "$dirpart/$file" && continue
11343    fdir=`(dirname "$file") 2>/dev/null ||
11344$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11345         X"$file" : 'X\(//\)[^/]' \| \
11346         X"$file" : 'X\(//\)$' \| \
11347         X"$file" : 'X\(/\)' \| \
11348         .     : '\(.\)' 2>/dev/null ||
11349echo X"$file" |
11350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11351          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11352          /^X\(\/\/\)$/{ s//\1/; q; }
11353          /^X\(\/\).*/{ s//\1/; q; }
11354          s/.*/./; q'`
11355    { if $as_mkdir_p; then
11356    mkdir -p $dirpart/$fdir
11357  else
11358    as_dir=$dirpart/$fdir
11359    as_dirs=
11360    while test ! -d "$as_dir"; do
11361      as_dirs="$as_dir $as_dirs"
11362      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11363$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11364         X"$as_dir" : 'X\(//\)[^/]' \| \
11365         X"$as_dir" : 'X\(//\)$' \| \
11366         X"$as_dir" : 'X\(/\)' \| \
11367         .     : '\(.\)' 2>/dev/null ||
11368echo X"$as_dir" |
11369    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11370          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11371          /^X\(\/\/\)$/{ s//\1/; q; }
11372          /^X\(\/\).*/{ s//\1/; q; }
11373          s/.*/./; q'`
11374    done
11375    test ! -n "$as_dirs" || mkdir $as_dirs
11376  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11377echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11378   { (exit 1); exit 1; }; }; }
11379
11380    # echo "creating $dirpart/$file"
11381    echo '# dummy' > "$dirpart/$file"
11382  done
11383done
11384 ;;
11385  esac
11386done
11387_ACEOF
11388
11389cat >>$CONFIG_STATUS <<\_ACEOF
11390
11391{ (exit 0); exit 0; }
11392_ACEOF
11393chmod +x $CONFIG_STATUS
11394ac_clean_files=$ac_clean_files_save
11395
11396
11397# configure is writing to config.log, and then calls config.status.
11398# config.status does its own redirection, appending to config.log.
11399# Unfortunately, on DOS this fails, as config.log is still kept open
11400# by configure, so config.status won't be able to write to it; its
11401# output is simply discarded.  So we exec the FD to /dev/null,
11402# effectively closing config.log, so it can be properly (re)opened and
11403# appended to by config.status.  When coming back to configure, we
11404# need to make the FD available again.
11405if test "$no_create" != yes; then
11406  ac_cs_success=:
11407  ac_config_status_args=
11408  test "$silent" = yes &&
11409    ac_config_status_args="$ac_config_status_args --quiet"
11410  exec 5>/dev/null
11411  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11412  exec 5>>config.log
11413  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11414  # would make configure fail if this is the last instruction.
11415  $ac_cs_success || { (exit 1); exit 1; }
11416fi
11417
Note: See TracBrowser for help on using the repository browser.