Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5158

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

orxonox/trunk: better drawing of the Shell

  • Property svn:executable set to *
File size: 330.1 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-sub-projects     also builds the subProjects while make from srcdir
882
883Some influential environment variables:
884  CXX         C++ compiler command
885  CXXFLAGS    C++ compiler flags
886  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887              nonstandard directory <lib dir>
888  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889              headers in a nonstandard directory <include dir>
890  CC          C compiler command
891  CFLAGS      C compiler flags
892  CPP         C preprocessor
893
894Use these variables to override the choices made by `configure' or to help
895it to find libraries and programs with nonstandard names/locations.
896
897Report bugs to <orxonox-dev at mail.datacore.ch>.
898_ACEOF
899fi
900
901if test "$ac_init_help" = "recursive"; then
902  # If there are subdirs, report their specific --help.
903  ac_popdir=`pwd`
904  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905    test -d $ac_dir || continue
906    ac_builddir=.
907
908if test "$ac_dir" != .; then
909  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910  # A "../" for each directory in $ac_dir_suffix.
911  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912else
913  ac_dir_suffix= ac_top_builddir=
914fi
915
916case $srcdir in
917  .)  # No --srcdir option.  We are building in place.
918    ac_srcdir=.
919    if test -z "$ac_top_builddir"; then
920       ac_top_srcdir=.
921    else
922       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923    fi ;;
924  [\\/]* | ?:[\\/]* )  # Absolute path.
925    ac_srcdir=$srcdir$ac_dir_suffix;
926    ac_top_srcdir=$srcdir ;;
927  *) # Relative path.
928    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929    ac_top_srcdir=$ac_top_builddir$srcdir ;;
930esac
931
932# Do not use `cd foo && pwd` to compute absolute paths, because
933# the directories may not exist.
934case `pwd` in
935.) ac_abs_builddir="$ac_dir";;
936*)
937  case "$ac_dir" in
938  .) ac_abs_builddir=`pwd`;;
939  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
940  *) ac_abs_builddir=`pwd`/"$ac_dir";;
941  esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_builddir=${ac_top_builddir}.;;
945*)
946  case ${ac_top_builddir}. in
947  .) ac_abs_top_builddir=$ac_abs_builddir;;
948  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
949  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950  esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_srcdir=$ac_srcdir;;
954*)
955  case $ac_srcdir in
956  .) ac_abs_srcdir=$ac_abs_builddir;;
957  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
958  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959  esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_srcdir=$ac_top_srcdir;;
963*)
964  case $ac_top_srcdir in
965  .) ac_abs_top_srcdir=$ac_abs_builddir;;
966  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
967  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968  esac;;
969esac
970
971    cd $ac_dir
972    # Check for guested configure; otherwise get Cygnus style configure.
973    if test -f $ac_srcdir/configure.gnu; then
974      echo
975      $SHELL $ac_srcdir/configure.gnu  --help=recursive
976    elif test -f $ac_srcdir/configure; then
977      echo
978      $SHELL $ac_srcdir/configure  --help=recursive
979    elif test -f $ac_srcdir/configure.ac ||
980           test -f $ac_srcdir/configure.in; then
981      echo
982      $ac_configure --help
983    else
984      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985    fi
986    cd $ac_popdir
987  done
988fi
989
990test -n "$ac_init_help" && exit 0
991if $ac_init_version; then
992  cat <<\_ACEOF
993orxonox configure 0.3.1_alpha
994generated by GNU Autoconf 2.59
995
996Copyright (C) 2003 Free Software Foundation, Inc.
997This configure script is free software; the Free Software Foundation
998gives unlimited permission to copy, distribute and modify it.
999_ACEOF
1000  exit 0
1001fi
1002exec 5>config.log
1003cat >&5 <<_ACEOF
1004This file contains any messages produced by compilers while
1005running configure, to aid debugging if configure makes a mistake.
1006
1007It was created by orxonox $as_me 0.3.1_alpha, which was
1008generated by GNU Autoconf 2.59.  Invocation command line was
1009
1010  $ $0 $@
1011
1012_ACEOF
1013{
1014cat <<_ASUNAME
1015## --------- ##
1016## Platform. ##
1017## --------- ##
1018
1019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1027
1028/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1029/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1032/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1033/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1034/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1035
1036_ASUNAME
1037
1038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039for as_dir in $PATH
1040do
1041  IFS=$as_save_IFS
1042  test -z "$as_dir" && as_dir=.
1043  echo "PATH: $as_dir"
1044done
1045
1046} >&5
1047
1048cat >&5 <<_ACEOF
1049
1050
1051## ----------- ##
1052## Core tests. ##
1053## ----------- ##
1054
1055_ACEOF
1056
1057
1058# Keep a trace of the command line.
1059# Strip out --no-create and --no-recursion so they do not pile up.
1060# Strip out --silent because we don't want to record it for future runs.
1061# Also quote any args containing shell meta-characters.
1062# Make two passes to allow for proper duplicate-argument suppression.
1063ac_configure_args=
1064ac_configure_args0=
1065ac_configure_args1=
1066ac_sep=
1067ac_must_keep_next=false
1068for ac_pass in 1 2
1069do
1070  for ac_arg
1071  do
1072    case $ac_arg in
1073    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075    | -silent | --silent | --silen | --sile | --sil)
1076      continue ;;
1077    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079    esac
1080    case $ac_pass in
1081    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082    2)
1083      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084      if test $ac_must_keep_next = true; then
1085        ac_must_keep_next=false # Got value, back to normal.
1086      else
1087        case $ac_arg in
1088          *=* | --config-cache | -C | -disable-* | --disable-* \
1089          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091          | -with-* | --with-* | -without-* | --without-* | --x)
1092            case "$ac_configure_args0 " in
1093              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094            esac
1095            ;;
1096          -* ) ac_must_keep_next=true ;;
1097        esac
1098      fi
1099      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100      # Get rid of the leading space.
1101      ac_sep=" "
1102      ;;
1103    esac
1104  done
1105done
1106$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109# When interrupted or exit'd, cleanup temporary files, and complete
1110# config.log.  We remove comments because anyway the quotes in there
1111# would cause problems or look ugly.
1112# WARNING: Be sure not to use single quotes in there, as some shells,
1113# such as our DU 5.0 friend, will then `close' the trap.
1114trap 'exit_status=$?
1115  # Save into config.log some information that might help in debugging.
1116  {
1117    echo
1118
1119    cat <<\_ASBOX
1120## ---------------- ##
1121## Cache variables. ##
1122## ---------------- ##
1123_ASBOX
1124    echo
1125    # The following way of writing the cache mishandles newlines in values,
1126{
1127  (set) 2>&1 |
1128    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129    *ac_space=\ *)
1130      sed -n \
1131        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133      ;;
1134    *)
1135      sed -n \
1136        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137      ;;
1138    esac;
1139}
1140    echo
1141
1142    cat <<\_ASBOX
1143## ----------------- ##
1144## Output variables. ##
1145## ----------------- ##
1146_ASBOX
1147    echo
1148    for ac_var in $ac_subst_vars
1149    do
1150      eval ac_val=$`echo $ac_var`
1151      echo "$ac_var='"'"'$ac_val'"'"'"
1152    done | sort
1153    echo
1154
1155    if test -n "$ac_subst_files"; then
1156      cat <<\_ASBOX
1157## ------------- ##
1158## Output files. ##
1159## ------------- ##
1160_ASBOX
1161      echo
1162      for ac_var in $ac_subst_files
1163      do
1164        eval ac_val=$`echo $ac_var`
1165        echo "$ac_var='"'"'$ac_val'"'"'"
1166      done | sort
1167      echo
1168    fi
1169
1170    if test -s confdefs.h; then
1171      cat <<\_ASBOX
1172## ----------- ##
1173## confdefs.h. ##
1174## ----------- ##
1175_ASBOX
1176      echo
1177      sed "/^$/d" confdefs.h | sort
1178      echo
1179    fi
1180    test "$ac_signal" != 0 &&
1181      echo "$as_me: caught signal $ac_signal"
1182    echo "$as_me: exit $exit_status"
1183  } >&5
1184  rm -f core *.core &&
1185  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186    exit $exit_status
1187     ' 0
1188for ac_signal in 1 2 13 15; do
1189  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190done
1191ac_signal=0
1192
1193# confdefs.h avoids OS command line length limits that DEFS can exceed.
1194rm -rf conftest* confdefs.h
1195# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196echo >confdefs.h
1197
1198# Predefined preprocessor variables.
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_NAME "$PACKAGE_NAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_VERSION "$PACKAGE_VERSION"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_STRING "$PACKAGE_STRING"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222_ACEOF
1223
1224
1225# Let the site file select an alternate cache file if it wants to.
1226# Prefer explicitly selected file to automatically selected ones.
1227if test -z "$CONFIG_SITE"; then
1228  if test "x$prefix" != xNONE; then
1229    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230  else
1231    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232  fi
1233fi
1234for ac_site_file in $CONFIG_SITE; do
1235  if test -r "$ac_site_file"; then
1236    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237echo "$as_me: loading site script $ac_site_file" >&6;}
1238    sed 's/^/| /' "$ac_site_file" >&5
1239    . "$ac_site_file"
1240  fi
1241done
1242
1243if test -r "$cache_file"; then
1244  # Some versions of bash will fail to source /dev/null (special
1245  # files actually), so we avoid doing that.
1246  if test -f "$cache_file"; then
1247    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248echo "$as_me: loading cache $cache_file" >&6;}
1249    case $cache_file in
1250      [\\/]* | ?:[\\/]* ) . $cache_file;;
1251      *)                      . ./$cache_file;;
1252    esac
1253  fi
1254else
1255  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256echo "$as_me: creating cache $cache_file" >&6;}
1257  >$cache_file
1258fi
1259
1260# Check that the precious variables saved in the cache have kept the same
1261# value.
1262ac_cache_corrupted=false
1263for ac_var in `(set) 2>&1 |
1264               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266  eval ac_new_set=\$ac_env_${ac_var}_set
1267  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268  eval ac_new_val="\$ac_env_${ac_var}_value"
1269  case $ac_old_set,$ac_new_set in
1270    set,)
1271      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273      ac_cache_corrupted=: ;;
1274    ,set)
1275      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277      ac_cache_corrupted=: ;;
1278    ,);;
1279    *)
1280      if test "x$ac_old_val" != "x$ac_new_val"; then
1281        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1284echo "$as_me:   former value:  $ac_old_val" >&2;}
1285        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1286echo "$as_me:   current value: $ac_new_val" >&2;}
1287        ac_cache_corrupted=:
1288      fi;;
1289  esac
1290  # Pass precious variables to config.status.
1291  if test "$ac_new_set" = set; then
1292    case $ac_new_val in
1293    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295    *) ac_arg=$ac_var=$ac_new_val ;;
1296    esac
1297    case " $ac_configure_args " in
1298      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1299      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300    esac
1301  fi
1302done
1303if $ac_cache_corrupted; then
1304  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308   { (exit 1); exit 1; }; }
1309fi
1310
1311ac_ext=c
1312ac_cpp='$CPP $CPPFLAGS'
1313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344## Detect the canonical host and target build environment.
1345ac_aux_dir=
1346for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1347  if test -f $ac_dir/install-sh; then
1348    ac_aux_dir=$ac_dir
1349    ac_install_sh="$ac_aux_dir/install-sh -c"
1350    break
1351  elif test -f $ac_dir/install.sh; then
1352    ac_aux_dir=$ac_dir
1353    ac_install_sh="$ac_aux_dir/install.sh -c"
1354    break
1355  elif test -f $ac_dir/shtool; then
1356    ac_aux_dir=$ac_dir
1357    ac_install_sh="$ac_aux_dir/shtool install -c"
1358    break
1359  fi
1360done
1361if test -z "$ac_aux_dir"; then
1362  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1363echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1367ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1368ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369
1370# Make sure we can run config.sub.
1371$ac_config_sub sun4 >/dev/null 2>&1 ||
1372  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1373echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1374   { (exit 1); exit 1; }; }
1375
1376echo "$as_me:$LINENO: checking build system type" >&5
1377echo $ECHO_N "checking build system type... $ECHO_C" >&6
1378if test "${ac_cv_build+set}" = set; then
1379  echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381  ac_cv_build_alias=$build_alias
1382test -z "$ac_cv_build_alias" &&
1383  ac_cv_build_alias=`$ac_config_guess`
1384test -z "$ac_cv_build_alias" &&
1385  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1386echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1387   { (exit 1); exit 1; }; }
1388ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1389  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1390echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1391   { (exit 1); exit 1; }; }
1392
1393fi
1394echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1395echo "${ECHO_T}$ac_cv_build" >&6
1396build=$ac_cv_build
1397build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402echo "$as_me:$LINENO: checking host system type" >&5
1403echo $ECHO_N "checking host system type... $ECHO_C" >&6
1404if test "${ac_cv_host+set}" = set; then
1405  echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407  ac_cv_host_alias=$host_alias
1408test -z "$ac_cv_host_alias" &&
1409  ac_cv_host_alias=$ac_cv_build_alias
1410ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1411  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1412echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1413   { (exit 1); exit 1; }; }
1414
1415fi
1416echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1417echo "${ECHO_T}$ac_cv_host" >&6
1418host=$ac_cv_host
1419host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424echo "$as_me:$LINENO: checking target system type" >&5
1425echo $ECHO_N "checking target system type... $ECHO_C" >&6
1426if test "${ac_cv_target+set}" = set; then
1427  echo $ECHO_N "(cached) $ECHO_C" >&6
1428else
1429  ac_cv_target_alias=$target_alias
1430test "x$ac_cv_target_alias" = "x" &&
1431  ac_cv_target_alias=$ac_cv_host_alias
1432ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1433  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1434echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1435   { (exit 1); exit 1; }; }
1436
1437fi
1438echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1439echo "${ECHO_T}$ac_cv_target" >&6
1440target=$ac_cv_target
1441target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444
1445
1446# The aliases save the names the user supplied, while $host etc.
1447# will get canonicalized.
1448test -n "$target_alias" &&
1449  test "$program_prefix$program_suffix$program_transform_name" = \
1450    NONENONEs,x,x, &&
1451  program_prefix=${target_alias}-
1452
1453am__api_version="1.8"
1454# Find a good install program.  We prefer a C program (faster),
1455# so one script is as good as another.  But avoid the broken or
1456# incompatible versions:
1457# SysV /etc/install, /usr/sbin/install
1458# SunOS /usr/etc/install
1459# IRIX /sbin/install
1460# AIX /bin/install
1461# AmigaOS /C/install, which installs bootblocks on floppy discs
1462# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1463# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465# OS/2's system install, which has a completely different semantic
1466# ./install, which can be erroneously created by make from ./install.sh.
1467echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469if test -z "$INSTALL"; then
1470if test "${ac_cv_path_install+set}" = set; then
1471  echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474for as_dir in $PATH
1475do
1476  IFS=$as_save_IFS
1477  test -z "$as_dir" && as_dir=.
1478  # Account for people who put trailing slashes in PATH elements.
1479case $as_dir/ in
1480  ./ | .// | /cC/* | \
1481  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1482  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1483  /usr/ucb/* ) ;;
1484  *)
1485    # OSF1 and SCO ODT 3.0 have their own names for install.
1486    # Don't use installbsd from OSF since it installs stuff as root
1487    # by default.
1488    for ac_prog in ginstall scoinst install; do
1489      for ac_exec_ext in '' $ac_executable_extensions; do
1490        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491          if test $ac_prog = install &&
1492            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1493            # AIX install.  It has an incompatible calling convention.
1494            :
1495          elif test $ac_prog = install &&
1496            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497            # program-specific install script used by HP pwplus--don't use.
1498            :
1499          else
1500            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1501            break 3
1502          fi
1503        fi
1504      done
1505    done
1506    ;;
1507esac
1508done
1509
1510
1511fi
1512  if test "${ac_cv_path_install+set}" = set; then
1513    INSTALL=$ac_cv_path_install
1514  else
1515    # As a last resort, use the slow shell script.  We don't cache a
1516    # path for INSTALL within a source directory, because that will
1517    # break other packages using the cache if that directory is
1518    # removed, or if the path is relative.
1519    INSTALL=$ac_install_sh
1520  fi
1521fi
1522echo "$as_me:$LINENO: result: $INSTALL" >&5
1523echo "${ECHO_T}$INSTALL" >&6
1524
1525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526# It thinks the first close brace ends the variable substitution.
1527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1528
1529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530
1531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1532
1533echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1535# Just in case
1536sleep 1
1537echo timestamp > conftest.file
1538# Do `set' in a subshell so we don't clobber the current shell's
1539# arguments.  Must try -L first in case configure is actually a
1540# symlink; some systems play weird games with the mod time of symlinks
1541# (eg FreeBSD returns the mod time of the symlink's containing
1542# directory).
1543if (
1544   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545   if test "$*" = "X"; then
1546      # -L didn't work.
1547      set X `ls -t $srcdir/configure conftest.file`
1548   fi
1549   rm -f conftest.file
1550   if test "$*" != "X $srcdir/configure conftest.file" \
1551      && test "$*" != "X conftest.file $srcdir/configure"; then
1552
1553      # If neither matched, then we have a broken ls.  This can happen
1554      # if, for instance, CONFIG_SHELL is bash and it inherits a
1555      # broken ls alias from the environment.  This has actually
1556      # happened.  Such a system could not be considered "sane".
1557      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1558alias in your environment" >&5
1559echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&2;}
1561   { (exit 1); exit 1; }; }
1562   fi
1563
1564   test "$2" = conftest.file
1565   )
1566then
1567   # Ok.
1568   :
1569else
1570   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571Check your system clock" >&5
1572echo "$as_me: error: newly created file is older than distributed files!
1573Check your system clock" >&2;}
1574   { (exit 1); exit 1; }; }
1575fi
1576echo "$as_me:$LINENO: result: yes" >&5
1577echo "${ECHO_T}yes" >&6
1578test "$program_prefix" != NONE &&
1579  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1580# Use a double $ so make ignores it.
1581test "$program_suffix" != NONE &&
1582  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1583# Double any \ or $.  echo might interpret backslashes.
1584# By default was `s,x,x', remove it if useless.
1585cat <<\_ACEOF >conftest.sed
1586s/[\\$]/&&/g;s/;s,x,x,$//
1587_ACEOF
1588program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1589rm conftest.sed
1590
1591# expand $ac_aux_dir to an absolute path
1592am_aux_dir=`cd $ac_aux_dir && pwd`
1593
1594test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1595# Use eval to expand $SHELL
1596if eval "$MISSING --run true"; then
1597  am_missing_run="$MISSING --run "
1598else
1599  am_missing_run=
1600  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1602fi
1603
1604if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1605  # Keeping the `.' argument allows $(mkdir_p) to be used without
1606  # argument.  Indeed, we sometimes output rules like
1607  #   $(mkdir_p) $(somedir)
1608  # where $(somedir) is conditionally defined.
1609  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1610  # expensive solution, as it forces Make to start a sub-shell.)
1611  mkdir_p='mkdir -p -- .'
1612else
1613  # On NextStep and OpenStep, the `mkdir' command does not
1614  # recognize any option.  It will interpret all options as
1615  # directories to create, and then abort because `.' already
1616  # exists.
1617  for d in ./-p ./--version;
1618  do
1619    test -d $d && rmdir $d
1620  done
1621  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1622  if test -f "$ac_aux_dir/mkinstalldirs"; then
1623    mkdir_p='$(mkinstalldirs)'
1624  else
1625    mkdir_p='$(install_sh) -d'
1626  fi
1627fi
1628
1629for ac_prog in gawk mawk nawk awk
1630do
1631  # Extract the first word of "$ac_prog", so it can be a program name with args.
1632set dummy $ac_prog; ac_word=$2
1633echo "$as_me:$LINENO: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_AWK+set}" = set; then
1636  echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638  if test -n "$AWK"; then
1639  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1640else
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644  IFS=$as_save_IFS
1645  test -z "$as_dir" && as_dir=.
1646  for ac_exec_ext in '' $ac_executable_extensions; do
1647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648    ac_cv_prog_AWK="$ac_prog"
1649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650    break 2
1651  fi
1652done
1653done
1654
1655fi
1656fi
1657AWK=$ac_cv_prog_AWK
1658if test -n "$AWK"; then
1659  echo "$as_me:$LINENO: result: $AWK" >&5
1660echo "${ECHO_T}$AWK" >&6
1661else
1662  echo "$as_me:$LINENO: result: no" >&5
1663echo "${ECHO_T}no" >&6
1664fi
1665
1666  test -n "$AWK" && break
1667done
1668
1669echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1670echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1671set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1672if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673  echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675  cat >conftest.make <<\_ACEOF
1676all:
1677        @echo 'ac_maketemp="$(MAKE)"'
1678_ACEOF
1679# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681if test -n "$ac_maketemp"; then
1682  eval ac_cv_prog_make_${ac_make}_set=yes
1683else
1684  eval ac_cv_prog_make_${ac_make}_set=no
1685fi
1686rm -f conftest.make
1687fi
1688if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689  echo "$as_me:$LINENO: result: yes" >&5
1690echo "${ECHO_T}yes" >&6
1691  SET_MAKE=
1692else
1693  echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695  SET_MAKE="MAKE=${MAKE-make}"
1696fi
1697
1698rm -rf .tst 2>/dev/null
1699mkdir .tst 2>/dev/null
1700if test -d .tst; then
1701  am__leading_dot=.
1702else
1703  am__leading_dot=_
1704fi
1705rmdir .tst 2>/dev/null
1706
1707# test to see if srcdir already configured
1708if test "`cd $srcdir && pwd`" != "`pwd`" &&
1709   test -f $srcdir/config.status; then
1710  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1711echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1712   { (exit 1); exit 1; }; }
1713fi
1714
1715# test whether we have cygpath
1716if test -z "$CYGPATH_W"; then
1717  if (cygpath --version) >/dev/null 2>/dev/null; then
1718    CYGPATH_W='cygpath -w'
1719  else
1720    CYGPATH_W=echo
1721  fi
1722fi
1723
1724
1725# Define the identity of the package.
1726 PACKAGE='orxonox'
1727 VERSION='0.3.1_alpha'
1728
1729
1730cat >>confdefs.h <<_ACEOF
1731#define PACKAGE "$PACKAGE"
1732_ACEOF
1733
1734
1735cat >>confdefs.h <<_ACEOF
1736#define VERSION "$VERSION"
1737_ACEOF
1738
1739# Some tools Automake needs.
1740
1741ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1742
1743
1744AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1745
1746
1747AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1748
1749
1750AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1751
1752
1753MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1754
1755
1756AMTAR=${AMTAR-"${am_missing_run}tar"}
1757
1758install_sh=${install_sh-"$am_aux_dir/install-sh"}
1759
1760# Installed binaries are usually stripped using `strip' when the user
1761# run `make install-strip'.  However `strip' might not be the right
1762# tool to use in cross-compilation environments, therefore Automake
1763# will honor the `STRIP' environment variable to overrule this program.
1764if test "$cross_compiling" != no; then
1765  if test -n "$ac_tool_prefix"; then
1766  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1767set dummy ${ac_tool_prefix}strip; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_STRIP+set}" = set; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  if test -n "$STRIP"; then
1774  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1775else
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779  IFS=$as_save_IFS
1780  test -z "$as_dir" && as_dir=.
1781  for ac_exec_ext in '' $ac_executable_extensions; do
1782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785    break 2
1786  fi
1787done
1788done
1789
1790fi
1791fi
1792STRIP=$ac_cv_prog_STRIP
1793if test -n "$STRIP"; then
1794  echo "$as_me:$LINENO: result: $STRIP" >&5
1795echo "${ECHO_T}$STRIP" >&6
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801fi
1802if test -z "$ac_cv_prog_STRIP"; then
1803  ac_ct_STRIP=$STRIP
1804  # Extract the first word of "strip", so it can be a program name with args.
1805set dummy strip; ac_word=$2
1806echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1809  echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811  if test -n "$ac_ct_STRIP"; then
1812  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817  IFS=$as_save_IFS
1818  test -z "$as_dir" && as_dir=.
1819  for ac_exec_ext in '' $ac_executable_extensions; do
1820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821    ac_cv_prog_ac_ct_STRIP="strip"
1822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823    break 2
1824  fi
1825done
1826done
1827
1828  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1829fi
1830fi
1831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1832if test -n "$ac_ct_STRIP"; then
1833  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1834echo "${ECHO_T}$ac_ct_STRIP" >&6
1835else
1836  echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840  STRIP=$ac_ct_STRIP
1841else
1842  STRIP="$ac_cv_prog_STRIP"
1843fi
1844
1845fi
1846INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1847
1848# We need awk for the "check" target.  The system "awk" is bad on
1849# some platforms.
1850
1851
1852
1853
1854
1855          ac_config_headers="$ac_config_headers config.h"
1856
1857
1858#########################
1859## Checks for programs ##
1860#########################
1861ac_ext=cc
1862ac_cpp='$CXXCPP $CPPFLAGS'
1863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1866if test -n "$ac_tool_prefix"; then
1867  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1868  do
1869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1871echo "$as_me:$LINENO: checking for $ac_word" >&5
1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873if test "${ac_cv_prog_CXX+set}" = set; then
1874  echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876  if test -n "$CXX"; then
1877  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1878else
1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880for as_dir in $PATH
1881do
1882  IFS=$as_save_IFS
1883  test -z "$as_dir" && as_dir=.
1884  for ac_exec_ext in '' $ac_executable_extensions; do
1885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888    break 2
1889  fi
1890done
1891done
1892
1893fi
1894fi
1895CXX=$ac_cv_prog_CXX
1896if test -n "$CXX"; then
1897  echo "$as_me:$LINENO: result: $CXX" >&5
1898echo "${ECHO_T}$CXX" >&6
1899else
1900  echo "$as_me:$LINENO: result: no" >&5
1901echo "${ECHO_T}no" >&6
1902fi
1903
1904    test -n "$CXX" && break
1905  done
1906fi
1907if test -z "$CXX"; then
1908  ac_ct_CXX=$CXX
1909  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1910do
1911  # Extract the first word of "$ac_prog", so it can be a program name with args.
1912set dummy $ac_prog; ac_word=$2
1913echo "$as_me:$LINENO: checking for $ac_word" >&5
1914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1916  echo $ECHO_N "(cached) $ECHO_C" >&6
1917else
1918  if test -n "$ac_ct_CXX"; then
1919  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1920else
1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922for as_dir in $PATH
1923do
1924  IFS=$as_save_IFS
1925  test -z "$as_dir" && as_dir=.
1926  for ac_exec_ext in '' $ac_executable_extensions; do
1927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928    ac_cv_prog_ac_ct_CXX="$ac_prog"
1929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930    break 2
1931  fi
1932done
1933done
1934
1935fi
1936fi
1937ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1938if test -n "$ac_ct_CXX"; then
1939  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1940echo "${ECHO_T}$ac_ct_CXX" >&6
1941else
1942  echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6
1944fi
1945
1946  test -n "$ac_ct_CXX" && break
1947done
1948test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1949
1950  CXX=$ac_ct_CXX
1951fi
1952
1953
1954# Provide some information about the compiler.
1955echo "$as_me:$LINENO:" \
1956     "checking for C++ compiler version" >&5
1957ac_compiler=`set X $ac_compile; echo $2`
1958{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1959  (eval $ac_compiler --version </dev/null >&5) 2>&5
1960  ac_status=$?
1961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962  (exit $ac_status); }
1963{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1964  (eval $ac_compiler -v </dev/null >&5) 2>&5
1965  ac_status=$?
1966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967  (exit $ac_status); }
1968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1969  (eval $ac_compiler -V </dev/null >&5) 2>&5
1970  ac_status=$?
1971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972  (exit $ac_status); }
1973
1974cat >conftest.$ac_ext <<_ACEOF
1975/* confdefs.h.  */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h.  */
1980
1981int
1982main ()
1983{
1984
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989ac_clean_files_save=$ac_clean_files
1990ac_clean_files="$ac_clean_files a.out a.exe b.out"
1991# Try to create an executable without -o first, disregard a.out.
1992# It will help us diagnose broken compilers, and finding out an intuition
1993# of exeext.
1994echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1995echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1996ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1997if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1998  (eval $ac_link_default) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }; then
2002  # Find the output, starting from the most likely.  This scheme is
2003# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2004# resort.
2005
2006# Be careful to initialize this variable, since it used to be cached.
2007# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008ac_cv_exeext=
2009# b.out is created by i960 compilers.
2010for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2011do
2012  test -f "$ac_file" || continue
2013  case $ac_file in
2014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2015        ;;
2016    conftest.$ac_ext )
2017        # This is the source file.
2018        ;;
2019    [ab].out )
2020        # We found the default executable, but exeext='' is most
2021        # certainly right.
2022        break;;
2023    *.* )
2024        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2025        # FIXME: I believe we export ac_cv_exeext for Libtool,
2026        # but it would be cool to find out if it's true.  Does anybody
2027        # maintain Libtool? --akim.
2028        export ac_cv_exeext
2029        break;;
2030    * )
2031        break;;
2032  esac
2033done
2034else
2035  echo "$as_me: failed program was:" >&5
2036sed 's/^/| /' conftest.$ac_ext >&5
2037
2038{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&2;}
2042   { (exit 77); exit 77; }; }
2043fi
2044
2045ac_exeext=$ac_cv_exeext
2046echo "$as_me:$LINENO: result: $ac_file" >&5
2047echo "${ECHO_T}$ac_file" >&6
2048
2049# Check the compiler produces executables we can run.  If not, either
2050# the compiler is broken, or we cross compile.
2051echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2052echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2053# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2054# If not cross compiling, check that we can run a simple program.
2055if test "$cross_compiling" != yes; then
2056  if { ac_try='./$ac_file'
2057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058  (eval $ac_try) 2>&5
2059  ac_status=$?
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); }; }; then
2062    cross_compiling=no
2063  else
2064    if test "$cross_compiling" = maybe; then
2065        cross_compiling=yes
2066    else
2067        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2068If you meant to cross compile, use \`--host'.
2069See \`config.log' for more details." >&5
2070echo "$as_me: error: cannot run C++ compiled programs.
2071If you meant to cross compile, use \`--host'.
2072See \`config.log' for more details." >&2;}
2073   { (exit 1); exit 1; }; }
2074    fi
2075  fi
2076fi
2077echo "$as_me:$LINENO: result: yes" >&5
2078echo "${ECHO_T}yes" >&6
2079
2080rm -f a.out a.exe conftest$ac_cv_exeext b.out
2081ac_clean_files=$ac_clean_files_save
2082# Check the compiler produces executables we can run.  If not, either
2083# the compiler is broken, or we cross compile.
2084echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2085echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2086echo "$as_me:$LINENO: result: $cross_compiling" >&5
2087echo "${ECHO_T}$cross_compiling" >&6
2088
2089echo "$as_me:$LINENO: checking for suffix of executables" >&5
2090echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2092  (eval $ac_link) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; then
2096  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2097# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2098# work properly (i.e., refer to `conftest.exe'), while it won't with
2099# `rm'.
2100for ac_file in conftest.exe conftest conftest.*; do
2101  test -f "$ac_file" || continue
2102  case $ac_file in
2103    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2104    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105          export ac_cv_exeext
2106          break;;
2107    * ) break;;
2108  esac
2109done
2110else
2111  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2112See \`config.log' for more details." >&5
2113echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&2;}
2115   { (exit 1); exit 1; }; }
2116fi
2117
2118rm -f conftest$ac_cv_exeext
2119echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2120echo "${ECHO_T}$ac_cv_exeext" >&6
2121
2122rm -f conftest.$ac_ext
2123EXEEXT=$ac_cv_exeext
2124ac_exeext=$EXEEXT
2125echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127if test "${ac_cv_objext+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  cat >conftest.$ac_ext <<_ACEOF
2131/* confdefs.h.  */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h.  */
2136
2137int
2138main ()
2139{
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145rm -f conftest.o conftest.obj
2146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147  (eval $ac_compile) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }; then
2151  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152  case $ac_file in
2153    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2155       break;;
2156  esac
2157done
2158else
2159  echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163See \`config.log' for more details." >&5
2164echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&2;}
2166   { (exit 1); exit 1; }; }
2167fi
2168
2169rm -f conftest.$ac_cv_objext conftest.$ac_ext
2170fi
2171echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172echo "${ECHO_T}$ac_cv_objext" >&6
2173OBJEXT=$ac_cv_objext
2174ac_objext=$OBJEXT
2175echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2176echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2177if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  cat >conftest.$ac_ext <<_ACEOF
2181/* confdefs.h.  */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h.  */
2186
2187int
2188main ()
2189{
2190#ifndef __GNUC__
2191       choke me
2192#endif
2193
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198rm -f conftest.$ac_objext
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200  (eval $ac_compile) 2>conftest.er1
2201  ac_status=$?
2202  grep -v '^ *+' conftest.er1 >conftest.err
2203  rm -f conftest.er1
2204  cat conftest.err >&5
2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206  (exit $ac_status); } &&
2207         { ac_try='test -z "$ac_cxx_werror_flag"
2208                         || test ! -s conftest.err'
2209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210  (eval $ac_try) 2>&5
2211  ac_status=$?
2212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213  (exit $ac_status); }; } &&
2214         { ac_try='test -s conftest.$ac_objext'
2215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216  (eval $ac_try) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }; }; then
2220  ac_compiler_gnu=yes
2221else
2222  echo "$as_me: failed program was:" >&5
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
2225ac_compiler_gnu=no
2226fi
2227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2229
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2232echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2233GXX=`test $ac_compiler_gnu = yes && echo yes`
2234ac_test_CXXFLAGS=${CXXFLAGS+set}
2235ac_save_CXXFLAGS=$CXXFLAGS
2236CXXFLAGS="-g"
2237echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2238echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2239if test "${ac_cv_prog_cxx_g+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  cat >conftest.$ac_ext <<_ACEOF
2243/* confdefs.h.  */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h.  */
2248
2249int
2250main ()
2251{
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259  (eval $ac_compile) 2>conftest.er1
2260  ac_status=$?
2261  grep -v '^ *+' conftest.er1 >conftest.err
2262  rm -f conftest.er1
2263  cat conftest.err >&5
2264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265  (exit $ac_status); } &&
2266         { ac_try='test -z "$ac_cxx_werror_flag"
2267                         || test ! -s conftest.err'
2268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269  (eval $ac_try) 2>&5
2270  ac_status=$?
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); }; } &&
2273         { ac_try='test -s conftest.$ac_objext'
2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275  (eval $ac_try) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; }; then
2279  ac_cv_prog_cxx_g=yes
2280else
2281  echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284ac_cv_prog_cxx_g=no
2285fi
2286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2289echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2290if test "$ac_test_CXXFLAGS" = set; then
2291  CXXFLAGS=$ac_save_CXXFLAGS
2292elif test $ac_cv_prog_cxx_g = yes; then
2293  if test "$GXX" = yes; then
2294    CXXFLAGS="-g -O2"
2295  else
2296    CXXFLAGS="-g"
2297  fi
2298else
2299  if test "$GXX" = yes; then
2300    CXXFLAGS="-O2"
2301  else
2302    CXXFLAGS=
2303  fi
2304fi
2305for ac_declaration in \
2306   '' \
2307   'extern "C" void std::exit (int) throw (); using std::exit;' \
2308   'extern "C" void std::exit (int); using std::exit;' \
2309   'extern "C" void exit (int) throw ();' \
2310   'extern "C" void exit (int);' \
2311   'void exit (int);'
2312do
2313  cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h.  */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h.  */
2319$ac_declaration
2320#include <stdlib.h>
2321int
2322main ()
2323{
2324exit (42);
2325  ;
2326  return 0;
2327}
2328_ACEOF
2329rm -f conftest.$ac_objext
2330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331  (eval $ac_compile) 2>conftest.er1
2332  ac_status=$?
2333  grep -v '^ *+' conftest.er1 >conftest.err
2334  rm -f conftest.er1
2335  cat conftest.err >&5
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); } &&
2338         { ac_try='test -z "$ac_cxx_werror_flag"
2339                         || test ! -s conftest.err'
2340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341  (eval $ac_try) 2>&5
2342  ac_status=$?
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); }; } &&
2345         { ac_try='test -s conftest.$ac_objext'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; }; then
2351  :
2352else
2353  echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356continue
2357fi
2358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359  cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365$ac_declaration
2366int
2367main ()
2368{
2369exit (42);
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376  (eval $ac_compile) 2>conftest.er1
2377  ac_status=$?
2378  grep -v '^ *+' conftest.er1 >conftest.err
2379  rm -f conftest.er1
2380  cat conftest.err >&5
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); } &&
2383         { ac_try='test -z "$ac_cxx_werror_flag"
2384                         || test ! -s conftest.err'
2385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386  (eval $ac_try) 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }; } &&
2390         { ac_try='test -s conftest.$ac_objext'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; }; then
2396  break
2397else
2398  echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403done
2404rm -f conftest*
2405if test -n "$ac_declaration"; then
2406  echo '#ifdef __cplusplus' >>confdefs.h
2407  echo $ac_declaration      >>confdefs.h
2408  echo '#endif'             >>confdefs.h
2409fi
2410
2411ac_ext=c
2412ac_cpp='$CPP $CPPFLAGS'
2413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416DEPDIR="${am__leading_dot}deps"
2417
2418          ac_config_commands="$ac_config_commands depfiles"
2419
2420
2421am_make=${MAKE-make}
2422cat > confinc << 'END'
2423am__doit:
2424        @echo done
2425.PHONY: am__doit
2426END
2427# If we don't find an include directive, just comment out the code.
2428echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2429echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2430am__include="#"
2431am__quote=
2432_am_result=none
2433# First try GNU make style include.
2434echo "include confinc" > confmf
2435# We grep out `Entering directory' and `Leaving directory'
2436# messages which can occur if `w' ends up in MAKEFLAGS.
2437# In particular we don't look at `^make:' because GNU make might
2438# be invoked under some other name (usually "gmake"), in which
2439# case it prints its new name instead of `make'.
2440if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2441   am__include=include
2442   am__quote=
2443   _am_result=GNU
2444fi
2445# Now try BSD make style include.
2446if test "$am__include" = "#"; then
2447   echo '.include "confinc"' > confmf
2448   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2449      am__include=.include
2450      am__quote="\""
2451      _am_result=BSD
2452   fi
2453fi
2454
2455
2456echo "$as_me:$LINENO: result: $_am_result" >&5
2457echo "${ECHO_T}$_am_result" >&6
2458rm -f confinc confmf
2459
2460# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2461if test "${enable_dependency_tracking+set}" = set; then
2462  enableval="$enable_dependency_tracking"
2463
2464fi;
2465if test "x$enable_dependency_tracking" != xno; then
2466  am_depcomp="$ac_aux_dir/depcomp"
2467  AMDEPBACKSLASH='\'
2468fi
2469
2470
2471if test "x$enable_dependency_tracking" != xno; then
2472  AMDEP_TRUE=
2473  AMDEP_FALSE='#'
2474else
2475  AMDEP_TRUE='#'
2476  AMDEP_FALSE=
2477fi
2478
2479
2480
2481
2482depcc="$CXX"  am_compiler_list=
2483
2484echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2485echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2486if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2490  # We make a subdir and do the tests there.  Otherwise we can end up
2491  # making bogus files that we don't know about and never remove.  For
2492  # instance it was reported that on HP-UX the gcc test will end up
2493  # making a dummy file named `D' -- because `-MD' means `put the output
2494  # in D'.
2495  mkdir conftest.dir
2496  # Copy depcomp to subdir because otherwise we won't find it if we're
2497  # using a relative directory.
2498  cp "$am_depcomp" conftest.dir
2499  cd conftest.dir
2500  # We will build objects and dependencies in a subdirectory because
2501  # it helps to detect inapplicable dependency modes.  For instance
2502  # both Tru64's cc and ICC support -MD to output dependencies as a
2503  # side effect of compilation, but ICC will put the dependencies in
2504  # the current directory while Tru64 will put them in the object
2505  # directory.
2506  mkdir sub
2507
2508  am_cv_CXX_dependencies_compiler_type=none
2509  if test "$am_compiler_list" = ""; then
2510     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2511  fi
2512  for depmode in $am_compiler_list; do
2513    # Setup a source with many dependencies, because some compilers
2514    # like to wrap large dependency lists on column 80 (with \), and
2515    # we should not choose a depcomp mode which is confused by this.
2516    #
2517    # We need to recreate these files for each test, as the compiler may
2518    # overwrite some of them when testing with obscure command lines.
2519    # This happens at least with the AIX C compiler.
2520    : > sub/conftest.c
2521    for i in 1 2 3 4 5 6; do
2522      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2523      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2524      # Solaris 8's {/usr,}/bin/sh.
2525      touch sub/conftst$i.h
2526    done
2527    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2528
2529    case $depmode in
2530    nosideeffect)
2531      # after this tag, mechanisms are not by side-effect, so they'll
2532      # only be used when explicitly requested
2533      if test "x$enable_dependency_tracking" = xyes; then
2534        continue
2535      else
2536        break
2537      fi
2538      ;;
2539    none) break ;;
2540    esac
2541    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2542    # mode.  It turns out that the SunPro C++ compiler does not properly
2543    # handle `-M -o', and we need to detect this.
2544    if depmode=$depmode \
2545       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2546       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2547       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2548         >/dev/null 2>conftest.err &&
2549       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2550       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2551       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2552      # icc doesn't choke on unknown options, it will just issue warnings
2553      # or remarks (even with -Werror).  So we grep stderr for any message
2554      # that says an option was ignored or not supported.
2555      # When given -MP, icc 7.0 and 7.1 complain thusly:
2556      #   icc: Command line warning: ignoring option '-M'; no argument required
2557      # The diagnosis changed in icc 8.0:
2558      #   icc: Command line remark: option '-MP' not supported
2559      if (grep 'ignoring option' conftest.err ||
2560          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2561        am_cv_CXX_dependencies_compiler_type=$depmode
2562        break
2563      fi
2564    fi
2565  done
2566
2567  cd ..
2568  rm -rf conftest.dir
2569else
2570  am_cv_CXX_dependencies_compiler_type=none
2571fi
2572
2573fi
2574echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2575echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2576CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2577
2578
2579
2580if
2581  test "x$enable_dependency_tracking" != xno \
2582  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2583  am__fastdepCXX_TRUE=
2584  am__fastdepCXX_FALSE='#'
2585else
2586  am__fastdepCXX_TRUE='#'
2587  am__fastdepCXX_FALSE=
2588fi
2589
2590
2591if test -n "$ac_tool_prefix"; then
2592  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2594echo "$as_me:$LINENO: checking for $ac_word" >&5
2595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2596if test "${ac_cv_prog_RANLIB+set}" = set; then
2597  echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599  if test -n "$RANLIB"; then
2600  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605  IFS=$as_save_IFS
2606  test -z "$as_dir" && as_dir=.
2607  for ac_exec_ext in '' $ac_executable_extensions; do
2608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611    break 2
2612  fi
2613done
2614done
2615
2616fi
2617fi
2618RANLIB=$ac_cv_prog_RANLIB
2619if test -n "$RANLIB"; then
2620  echo "$as_me:$LINENO: result: $RANLIB" >&5
2621echo "${ECHO_T}$RANLIB" >&6
2622else
2623  echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6
2625fi
2626
2627fi
2628if test -z "$ac_cv_prog_RANLIB"; then
2629  ac_ct_RANLIB=$RANLIB
2630  # Extract the first word of "ranlib", so it can be a program name with args.
2631set dummy ranlib; ac_word=$2
2632echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2635  echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637  if test -n "$ac_ct_RANLIB"; then
2638  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645  for ac_exec_ext in '' $ac_executable_extensions; do
2646  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647    ac_cv_prog_ac_ct_RANLIB="ranlib"
2648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652done
2653
2654  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2655fi
2656fi
2657ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2658if test -n "$ac_ct_RANLIB"; then
2659  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2660echo "${ECHO_T}$ac_ct_RANLIB" >&6
2661else
2662  echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
2664fi
2665
2666  RANLIB=$ac_ct_RANLIB
2667else
2668  RANLIB="$ac_cv_prog_RANLIB"
2669fi
2670
2671ac_ext=c
2672ac_cpp='$CPP $CPPFLAGS'
2673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676if test -n "$ac_tool_prefix"; then
2677  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679echo "$as_me:$LINENO: checking for $ac_word" >&5
2680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681if test "${ac_cv_prog_CC+set}" = set; then
2682  echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684  if test -n "$CC"; then
2685  ac_cv_prog_CC="$CC" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692  for ac_exec_ext in '' $ac_executable_extensions; do
2693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696    break 2
2697  fi
2698done
2699done
2700
2701fi
2702fi
2703CC=$ac_cv_prog_CC
2704if test -n "$CC"; then
2705  echo "$as_me:$LINENO: result: $CC" >&5
2706echo "${ECHO_T}$CC" >&6
2707else
2708  echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710fi
2711
2712fi
2713if test -z "$ac_cv_prog_CC"; then
2714  ac_ct_CC=$CC
2715  # Extract the first word of "gcc", so it can be a program name with args.
2716set dummy gcc; ac_word=$2
2717echo "$as_me:$LINENO: checking for $ac_word" >&5
2718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2719if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2720  echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722  if test -n "$ac_ct_CC"; then
2723  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728  IFS=$as_save_IFS
2729  test -z "$as_dir" && as_dir=.
2730  for ac_exec_ext in '' $ac_executable_extensions; do
2731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732    ac_cv_prog_ac_ct_CC="gcc"
2733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734    break 2
2735  fi
2736done
2737done
2738
2739fi
2740fi
2741ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742if test -n "$ac_ct_CC"; then
2743  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2744echo "${ECHO_T}$ac_ct_CC" >&6
2745else
2746  echo "$as_me:$LINENO: result: no" >&5
2747echo "${ECHO_T}no" >&6
2748fi
2749
2750  CC=$ac_ct_CC
2751else
2752  CC="$ac_cv_prog_CC"
2753fi
2754
2755if test -z "$CC"; then
2756  if test -n "$ac_tool_prefix"; then
2757  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2758set dummy ${ac_tool_prefix}cc; ac_word=$2
2759echo "$as_me:$LINENO: checking for $ac_word" >&5
2760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761if test "${ac_cv_prog_CC+set}" = set; then
2762  echo $ECHO_N "(cached) $ECHO_C" >&6
2763else
2764  if test -n "$CC"; then
2765  ac_cv_prog_CC="$CC" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770  IFS=$as_save_IFS
2771  test -z "$as_dir" && as_dir=.
2772  for ac_exec_ext in '' $ac_executable_extensions; do
2773  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774    ac_cv_prog_CC="${ac_tool_prefix}cc"
2775    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776    break 2
2777  fi
2778done
2779done
2780
2781fi
2782fi
2783CC=$ac_cv_prog_CC
2784if test -n "$CC"; then
2785  echo "$as_me:$LINENO: result: $CC" >&5
2786echo "${ECHO_T}$CC" >&6
2787else
2788  echo "$as_me:$LINENO: result: no" >&5
2789echo "${ECHO_T}no" >&6
2790fi
2791
2792fi
2793if test -z "$ac_cv_prog_CC"; then
2794  ac_ct_CC=$CC
2795  # Extract the first word of "cc", so it can be a program name with args.
2796set dummy cc; ac_word=$2
2797echo "$as_me:$LINENO: checking for $ac_word" >&5
2798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2800  echo $ECHO_N "(cached) $ECHO_C" >&6
2801else
2802  if test -n "$ac_ct_CC"; then
2803  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810  for ac_exec_ext in '' $ac_executable_extensions; do
2811  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812    ac_cv_prog_ac_ct_CC="cc"
2813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817done
2818
2819fi
2820fi
2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822if test -n "$ac_ct_CC"; then
2823  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824echo "${ECHO_T}$ac_ct_CC" >&6
2825else
2826  echo "$as_me:$LINENO: result: no" >&5
2827echo "${ECHO_T}no" >&6
2828fi
2829
2830  CC=$ac_ct_CC
2831else
2832  CC="$ac_cv_prog_CC"
2833fi
2834
2835fi
2836if test -z "$CC"; then
2837  # Extract the first word of "cc", so it can be a program name with args.
2838set dummy cc; ac_word=$2
2839echo "$as_me:$LINENO: checking for $ac_word" >&5
2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841if test "${ac_cv_prog_CC+set}" = set; then
2842  echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844  if test -n "$CC"; then
2845  ac_cv_prog_CC="$CC" # Let the user override the test.
2846else
2847  ac_prog_rejected=no
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851  IFS=$as_save_IFS
2852  test -z "$as_dir" && as_dir=.
2853  for ac_exec_ext in '' $ac_executable_extensions; do
2854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2856       ac_prog_rejected=yes
2857       continue
2858     fi
2859    ac_cv_prog_CC="cc"
2860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861    break 2
2862  fi
2863done
2864done
2865
2866if test $ac_prog_rejected = yes; then
2867  # We found a bogon in the path, so make sure we never use it.
2868  set dummy $ac_cv_prog_CC
2869  shift
2870  if test $# != 0; then
2871    # We chose a different compiler from the bogus one.
2872    # However, it has the same basename, so the bogon will be chosen
2873    # first if we set CC to just the basename; use the full file name.
2874    shift
2875    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2876  fi
2877fi
2878fi
2879fi
2880CC=$ac_cv_prog_CC
2881if test -n "$CC"; then
2882  echo "$as_me:$LINENO: result: $CC" >&5
2883echo "${ECHO_T}$CC" >&6
2884else
2885  echo "$as_me:$LINENO: result: no" >&5
2886echo "${ECHO_T}no" >&6
2887fi
2888
2889fi
2890if test -z "$CC"; then
2891  if test -n "$ac_tool_prefix"; then
2892  for ac_prog in cl
2893  do
2894    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896echo "$as_me:$LINENO: checking for $ac_word" >&5
2897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2898if test "${ac_cv_prog_CC+set}" = set; then
2899  echo $ECHO_N "(cached) $ECHO_C" >&6
2900else
2901  if test -n "$CC"; then
2902  ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  test -z "$as_dir" && as_dir=.
2909  for ac_exec_ext in '' $ac_executable_extensions; do
2910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916done
2917
2918fi
2919fi
2920CC=$ac_cv_prog_CC
2921if test -n "$CC"; then
2922  echo "$as_me:$LINENO: result: $CC" >&5
2923echo "${ECHO_T}$CC" >&6
2924else
2925  echo "$as_me:$LINENO: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927fi
2928
2929    test -n "$CC" && break
2930  done
2931fi
2932if test -z "$CC"; then
2933  ac_ct_CC=$CC
2934  for ac_prog in cl
2935do
2936  # Extract the first word of "$ac_prog", so it can be a program name with args.
2937set dummy $ac_prog; ac_word=$2
2938echo "$as_me:$LINENO: checking for $ac_word" >&5
2939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2941  echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
2943  if test -n "$ac_ct_CC"; then
2944  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  test -z "$as_dir" && as_dir=.
2951  for ac_exec_ext in '' $ac_executable_extensions; do
2952  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953    ac_cv_prog_ac_ct_CC="$ac_prog"
2954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955    break 2
2956  fi
2957done
2958done
2959
2960fi
2961fi
2962ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963if test -n "$ac_ct_CC"; then
2964  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2965echo "${ECHO_T}$ac_ct_CC" >&6
2966else
2967  echo "$as_me:$LINENO: result: no" >&5
2968echo "${ECHO_T}no" >&6
2969fi
2970
2971  test -n "$ac_ct_CC" && break
2972done
2973
2974  CC=$ac_ct_CC
2975fi
2976
2977fi
2978
2979
2980test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2981See \`config.log' for more details." >&5
2982echo "$as_me: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&2;}
2984   { (exit 1); exit 1; }; }
2985
2986# Provide some information about the compiler.
2987echo "$as_me:$LINENO:" \
2988     "checking for C compiler version" >&5
2989ac_compiler=`set X $ac_compile; echo $2`
2990{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2991  (eval $ac_compiler --version </dev/null >&5) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }
2995{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2996  (eval $ac_compiler -v </dev/null >&5) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }
3000{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3001  (eval $ac_compiler -V </dev/null >&5) 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }
3005
3006echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3008if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009  echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011  cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h.  */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h.  */
3017
3018int
3019main ()
3020{
3021#ifndef __GNUC__
3022       choke me
3023#endif
3024
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
3030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031  (eval $ac_compile) 2>conftest.er1
3032  ac_status=$?
3033  grep -v '^ *+' conftest.er1 >conftest.err
3034  rm -f conftest.er1
3035  cat conftest.err >&5
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); } &&
3038         { ac_try='test -z "$ac_c_werror_flag"
3039                         || test ! -s conftest.err'
3040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041  (eval $ac_try) 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; } &&
3045         { ac_try='test -s conftest.$ac_objext'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; }; then
3051  ac_compiler_gnu=yes
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056ac_compiler_gnu=no
3057fi
3058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059ac_cv_c_compiler_gnu=$ac_compiler_gnu
3060
3061fi
3062echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3063echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3064GCC=`test $ac_compiler_gnu = yes && echo yes`
3065ac_test_CFLAGS=${CFLAGS+set}
3066ac_save_CFLAGS=$CFLAGS
3067CFLAGS="-g"
3068echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3070if test "${ac_cv_prog_cc_g+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073  cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h.  */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h.  */
3079
3080int
3081main ()
3082{
3083
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090  (eval $ac_compile) 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } &&
3097         { ac_try='test -z "$ac_c_werror_flag"
3098                         || test ! -s conftest.err'
3099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100  (eval $ac_try) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; } &&
3104         { ac_try='test -s conftest.$ac_objext'
3105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106  (eval $ac_try) 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; }; then
3110  ac_cv_prog_cc_g=yes
3111else
3112  echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115ac_cv_prog_cc_g=no
3116fi
3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118fi
3119echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3120echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3121if test "$ac_test_CFLAGS" = set; then
3122  CFLAGS=$ac_save_CFLAGS
3123elif test $ac_cv_prog_cc_g = yes; then
3124  if test "$GCC" = yes; then
3125    CFLAGS="-g -O2"
3126  else
3127    CFLAGS="-g"
3128  fi
3129else
3130  if test "$GCC" = yes; then
3131    CFLAGS="-O2"
3132  else
3133    CFLAGS=
3134  fi
3135fi
3136echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3137echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3138if test "${ac_cv_prog_cc_stdc+set}" = set; then
3139  echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
3141  ac_cv_prog_cc_stdc=no
3142ac_save_CC=$CC
3143cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h.  */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h.  */
3149#include <stdarg.h>
3150#include <stdio.h>
3151#include <sys/types.h>
3152#include <sys/stat.h>
3153/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3154struct buf { int x; };
3155FILE * (*rcsopen) (struct buf *, struct stat *, int);
3156static char *e (p, i)
3157     char **p;
3158     int i;
3159{
3160  return p[i];
3161}
3162static char *f (char * (*g) (char **, int), char **p, ...)
3163{
3164  char *s;
3165  va_list v;
3166  va_start (v,p);
3167  s = g (p, va_arg (v,int));
3168  va_end (v);
3169  return s;
3170}
3171
3172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3173   function prototypes and stuff, but not '\xHH' hex character constants.
3174   These don't provoke an error unfortunately, instead are silently treated
3175   as 'x'.  The following induces an error, until -std1 is added to get
3176   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3177   array size at least.  It's necessary to write '\x00'==0 to get something
3178   that's true only with -std1.  */
3179int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3180
3181int test (int i, double x);
3182struct s1 {int (*f) (int a);};
3183struct s2 {int (*f) (double a);};
3184int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185int argc;
3186char **argv;
3187int
3188main ()
3189{
3190return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3191  ;
3192  return 0;
3193}
3194_ACEOF
3195# Don't try gcc -ansi; that turns off useful extensions and
3196# breaks some systems' header files.
3197# AIX                   -qlanglvl=ansi
3198# Ultrix and OSF/1      -std1
3199# HP-UX 10.20 and later -Ae
3200# HP-UX older versions  -Aa -D_HPUX_SOURCE
3201# SVR4                  -Xc -D__EXTENSIONS__
3202for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3203do
3204  CC="$ac_save_CC $ac_arg"
3205  rm -f conftest.$ac_objext
3206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207  (eval $ac_compile) 2>conftest.er1
3208  ac_status=$?
3209  grep -v '^ *+' conftest.er1 >conftest.err
3210  rm -f conftest.er1
3211  cat conftest.err >&5
3212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213  (exit $ac_status); } &&
3214         { ac_try='test -z "$ac_c_werror_flag"
3215                         || test ! -s conftest.err'
3216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217  (eval $ac_try) 2>&5
3218  ac_status=$?
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); }; } &&
3221         { ac_try='test -s conftest.$ac_objext'
3222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223  (eval $ac_try) 2>&5
3224  ac_status=$?
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); }; }; then
3227  ac_cv_prog_cc_stdc=$ac_arg
3228break
3229else
3230  echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233fi
3234rm -f conftest.err conftest.$ac_objext
3235done
3236rm -f conftest.$ac_ext conftest.$ac_objext
3237CC=$ac_save_CC
3238
3239fi
3240
3241case "x$ac_cv_prog_cc_stdc" in
3242  x|xno)
3243    echo "$as_me:$LINENO: result: none needed" >&5
3244echo "${ECHO_T}none needed" >&6 ;;
3245  *)
3246    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3247echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3248    CC="$CC $ac_cv_prog_cc_stdc" ;;
3249esac
3250
3251# Some people use a C++ compiler to compile C.  Since we use `exit',
3252# in C++ we need to declare it.  In case someone uses the same compiler
3253# for both compiling C and C++ we need to have the C++ compiler decide
3254# the declaration of exit, since it's the most demanding environment.
3255cat >conftest.$ac_ext <<_ACEOF
3256#ifndef __cplusplus
3257  choke me
3258#endif
3259_ACEOF
3260rm -f conftest.$ac_objext
3261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3262  (eval $ac_compile) 2>conftest.er1
3263  ac_status=$?
3264  grep -v '^ *+' conftest.er1 >conftest.err
3265  rm -f conftest.er1
3266  cat conftest.err >&5
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); } &&
3269         { ac_try='test -z "$ac_c_werror_flag"
3270                         || test ! -s conftest.err'
3271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272  (eval $ac_try) 2>&5
3273  ac_status=$?
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); }; } &&
3276         { ac_try='test -s conftest.$ac_objext'
3277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278  (eval $ac_try) 2>&5
3279  ac_status=$?
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); }; }; then
3282  for ac_declaration in \
3283   '' \
3284   'extern "C" void std::exit (int) throw (); using std::exit;' \
3285   'extern "C" void std::exit (int); using std::exit;' \
3286   'extern "C" void exit (int) throw ();' \
3287   'extern "C" void exit (int);' \
3288   'void exit (int);'
3289do
3290  cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h.  */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h.  */
3296$ac_declaration
3297#include <stdlib.h>
3298int
3299main ()
3300{
3301exit (42);
3302  ;
3303  return 0;
3304}
3305_ACEOF
3306rm -f conftest.$ac_objext
3307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308  (eval $ac_compile) 2>conftest.er1
3309  ac_status=$?
3310  grep -v '^ *+' conftest.er1 >conftest.err
3311  rm -f conftest.er1
3312  cat conftest.err >&5
3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314  (exit $ac_status); } &&
3315         { ac_try='test -z "$ac_c_werror_flag"
3316                         || test ! -s conftest.err'
3317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318  (eval $ac_try) 2>&5
3319  ac_status=$?
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); }; } &&
3322         { ac_try='test -s conftest.$ac_objext'
3323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324  (eval $ac_try) 2>&5
3325  ac_status=$?
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; }; then
3328  :
3329else
3330  echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333continue
3334fi
3335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3336  cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h.  */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h.  */
3342$ac_declaration
3343int
3344main ()
3345{
3346exit (42);
3347  ;
3348  return 0;
3349}
3350_ACEOF
3351rm -f conftest.$ac_objext
3352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353  (eval $ac_compile) 2>conftest.er1
3354  ac_status=$?
3355  grep -v '^ *+' conftest.er1 >conftest.err
3356  rm -f conftest.er1
3357  cat conftest.err >&5
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); } &&
3360         { ac_try='test -z "$ac_c_werror_flag"
3361                         || test ! -s conftest.err'
3362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363  (eval $ac_try) 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; } &&
3367         { ac_try='test -s conftest.$ac_objext'
3368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369  (eval $ac_try) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); }; }; then
3373  break
3374else
3375  echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378fi
3379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3380done
3381rm -f conftest*
3382if test -n "$ac_declaration"; then
3383  echo '#ifdef __cplusplus' >>confdefs.h
3384  echo $ac_declaration      >>confdefs.h
3385  echo '#endif'             >>confdefs.h
3386fi
3387
3388else
3389  echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392fi
3393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394ac_ext=c
3395ac_cpp='$CPP $CPPFLAGS'
3396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
3400depcc="$CC"   am_compiler_list=
3401
3402echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3403echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3404if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3408  # We make a subdir and do the tests there.  Otherwise we can end up
3409  # making bogus files that we don't know about and never remove.  For
3410  # instance it was reported that on HP-UX the gcc test will end up
3411  # making a dummy file named `D' -- because `-MD' means `put the output
3412  # in D'.
3413  mkdir conftest.dir
3414  # Copy depcomp to subdir because otherwise we won't find it if we're
3415  # using a relative directory.
3416  cp "$am_depcomp" conftest.dir
3417  cd conftest.dir
3418  # We will build objects and dependencies in a subdirectory because
3419  # it helps to detect inapplicable dependency modes.  For instance
3420  # both Tru64's cc and ICC support -MD to output dependencies as a
3421  # side effect of compilation, but ICC will put the dependencies in
3422  # the current directory while Tru64 will put them in the object
3423  # directory.
3424  mkdir sub
3425
3426  am_cv_CC_dependencies_compiler_type=none
3427  if test "$am_compiler_list" = ""; then
3428     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3429  fi
3430  for depmode in $am_compiler_list; do
3431    # Setup a source with many dependencies, because some compilers
3432    # like to wrap large dependency lists on column 80 (with \), and
3433    # we should not choose a depcomp mode which is confused by this.
3434    #
3435    # We need to recreate these files for each test, as the compiler may
3436    # overwrite some of them when testing with obscure command lines.
3437    # This happens at least with the AIX C compiler.
3438    : > sub/conftest.c
3439    for i in 1 2 3 4 5 6; do
3440      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3441      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3442      # Solaris 8's {/usr,}/bin/sh.
3443      touch sub/conftst$i.h
3444    done
3445    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3446
3447    case $depmode in
3448    nosideeffect)
3449      # after this tag, mechanisms are not by side-effect, so they'll
3450      # only be used when explicitly requested
3451      if test "x$enable_dependency_tracking" = xyes; then
3452        continue
3453      else
3454        break
3455      fi
3456      ;;
3457    none) break ;;
3458    esac
3459    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3460    # mode.  It turns out that the SunPro C++ compiler does not properly
3461    # handle `-M -o', and we need to detect this.
3462    if depmode=$depmode \
3463       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3464       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3465       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3466         >/dev/null 2>conftest.err &&
3467       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3468       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3469       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3470      # icc doesn't choke on unknown options, it will just issue warnings
3471      # or remarks (even with -Werror).  So we grep stderr for any message
3472      # that says an option was ignored or not supported.
3473      # When given -MP, icc 7.0 and 7.1 complain thusly:
3474      #   icc: Command line warning: ignoring option '-M'; no argument required
3475      # The diagnosis changed in icc 8.0:
3476      #   icc: Command line remark: option '-MP' not supported
3477      if (grep 'ignoring option' conftest.err ||
3478          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3479        am_cv_CC_dependencies_compiler_type=$depmode
3480        break
3481      fi
3482    fi
3483  done
3484
3485  cd ..
3486  rm -rf conftest.dir
3487else
3488  am_cv_CC_dependencies_compiler_type=none
3489fi
3490
3491fi
3492echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3493echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3494CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3495
3496
3497
3498if
3499  test "x$enable_dependency_tracking" != xno \
3500  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3501  am__fastdepCC_TRUE=
3502  am__fastdepCC_FALSE='#'
3503else
3504  am__fastdepCC_TRUE='#'
3505  am__fastdepCC_FALSE=
3506fi
3507
3508
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3517# On Suns, sometimes $CPP names a directory.
3518if test -n "$CPP" && test -d "$CPP"; then
3519  CPP=
3520fi
3521if test -z "$CPP"; then
3522  if test "${ac_cv_prog_CPP+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525      # Double quotes because CPP needs to be expanded
3526    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3527    do
3528      ac_preproc_ok=false
3529for ac_c_preproc_warn_flag in '' yes
3530do
3531  # Use a header file that comes with gcc, so configuring glibc
3532  # with a fresh cross-compiler works.
3533  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534  # <limits.h> exists even on freestanding compilers.
3535  # On the NeXT, cc -E runs the code through the compiler's parser,
3536  # not just through cpp. "Syntax error" is here to catch this case.
3537  cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h.  */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h.  */
3543#ifdef __STDC__
3544# include <limits.h>
3545#else
3546# include <assert.h>
3547#endif
3548                     Syntax error
3549_ACEOF
3550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3551  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3552  ac_status=$?
3553  grep -v '^ *+' conftest.er1 >conftest.err
3554  rm -f conftest.er1
3555  cat conftest.err >&5
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); } >/dev/null; then
3558  if test -s conftest.err; then
3559    ac_cpp_err=$ac_c_preproc_warn_flag
3560    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561  else
3562    ac_cpp_err=
3563  fi
3564else
3565  ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
3568  :
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573  # Broken: fails on valid input.
3574continue
3575fi
3576rm -f conftest.err conftest.$ac_ext
3577
3578  # OK, works on sane cases.  Now check whether non-existent headers
3579  # can be detected and how.
3580  cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h.  */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h.  */
3586#include <ac_nonexistent.h>
3587_ACEOF
3588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3590  ac_status=$?
3591  grep -v '^ *+' conftest.er1 >conftest.err
3592  rm -f conftest.er1
3593  cat conftest.err >&5
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); } >/dev/null; then
3596  if test -s conftest.err; then
3597    ac_cpp_err=$ac_c_preproc_warn_flag
3598    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599  else
3600    ac_cpp_err=
3601  fi
3602else
3603  ac_cpp_err=yes
3604fi
3605if test -z "$ac_cpp_err"; then
3606  # Broken: success on invalid input.
3607continue
3608else
3609  echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612  # Passes both tests.
3613ac_preproc_ok=:
3614break
3615fi
3616rm -f conftest.err conftest.$ac_ext
3617
3618done
3619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620rm -f conftest.err conftest.$ac_ext
3621if $ac_preproc_ok; then
3622  break
3623fi
3624
3625    done
3626    ac_cv_prog_CPP=$CPP
3627
3628fi
3629  CPP=$ac_cv_prog_CPP
3630else
3631  ac_cv_prog_CPP=$CPP
3632fi
3633echo "$as_me:$LINENO: result: $CPP" >&5
3634echo "${ECHO_T}$CPP" >&6
3635ac_preproc_ok=false
3636for ac_c_preproc_warn_flag in '' yes
3637do
3638  # Use a header file that comes with gcc, so configuring glibc
3639  # with a fresh cross-compiler works.
3640  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3641  # <limits.h> exists even on freestanding compilers.
3642  # On the NeXT, cc -E runs the code through the compiler's parser,
3643  # not just through cpp. "Syntax error" is here to catch this case.
3644  cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h.  */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h.  */
3650#ifdef __STDC__
3651# include <limits.h>
3652#else
3653# include <assert.h>
3654#endif
3655                     Syntax error
3656_ACEOF
3657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659  ac_status=$?
3660  grep -v '^ *+' conftest.er1 >conftest.err
3661  rm -f conftest.er1
3662  cat conftest.err >&5
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); } >/dev/null; then
3665  if test -s conftest.err; then
3666    ac_cpp_err=$ac_c_preproc_warn_flag
3667    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3668  else
3669    ac_cpp_err=
3670  fi
3671else
3672  ac_cpp_err=yes
3673fi
3674if test -z "$ac_cpp_err"; then
3675  :
3676else
3677  echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680  # Broken: fails on valid input.
3681continue
3682fi
3683rm -f conftest.err conftest.$ac_ext
3684
3685  # OK, works on sane cases.  Now check whether non-existent headers
3686  # can be detected and how.
3687  cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h.  */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h.  */
3693#include <ac_nonexistent.h>
3694_ACEOF
3695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3697  ac_status=$?
3698  grep -v '^ *+' conftest.er1 >conftest.err
3699  rm -f conftest.er1
3700  cat conftest.err >&5
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); } >/dev/null; then
3703  if test -s conftest.err; then
3704    ac_cpp_err=$ac_c_preproc_warn_flag
3705    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706  else
3707    ac_cpp_err=
3708  fi
3709else
3710  ac_cpp_err=yes
3711fi
3712if test -z "$ac_cpp_err"; then
3713  # Broken: success on invalid input.
3714continue
3715else
3716  echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719  # Passes both tests.
3720ac_preproc_ok=:
3721break
3722fi
3723rm -f conftest.err conftest.$ac_ext
3724
3725done
3726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727rm -f conftest.err conftest.$ac_ext
3728if $ac_preproc_ok; then
3729  :
3730else
3731  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732See \`config.log' for more details." >&5
3733echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&2;}
3735   { (exit 1); exit 1; }; }
3736fi
3737
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745echo "$as_me:$LINENO: checking for egrep" >&5
3746echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3747if test "${ac_cv_prog_egrep+set}" = set; then
3748  echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3751    then ac_cv_prog_egrep='grep -E'
3752    else ac_cv_prog_egrep='egrep'
3753    fi
3754fi
3755echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3756echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3757 EGREP=$ac_cv_prog_egrep
3758
3759
3760echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3762if test "${ac_cv_header_stdc+set}" = set; then
3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765  cat >conftest.$ac_ext <<_ACEOF
3766/* confdefs.h.  */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h.  */
3771#include <stdlib.h>
3772#include <stdarg.h>
3773#include <string.h>
3774#include <float.h>
3775
3776int
3777main ()
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786  (eval $ac_compile) 2>conftest.er1
3787  ac_status=$?
3788  grep -v '^ *+' conftest.er1 >conftest.err
3789  rm -f conftest.er1
3790  cat conftest.err >&5
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); } &&
3793         { ac_try='test -z "$ac_c_werror_flag"
3794                         || test ! -s conftest.err'
3795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796  (eval $ac_try) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); }; } &&
3800         { ac_try='test -s conftest.$ac_objext'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; }; then
3806  ac_cv_header_stdc=yes
3807else
3808  echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811ac_cv_header_stdc=no
3812fi
3813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814
3815if test $ac_cv_header_stdc = yes; then
3816  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817  cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h.  */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h.  */
3823#include <string.h>
3824
3825_ACEOF
3826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827  $EGREP "memchr" >/dev/null 2>&1; then
3828  :
3829else
3830  ac_cv_header_stdc=no
3831fi
3832rm -f conftest*
3833
3834fi
3835
3836if test $ac_cv_header_stdc = yes; then
3837  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838  cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h.  */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h.  */
3844#include <stdlib.h>
3845
3846_ACEOF
3847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848  $EGREP "free" >/dev/null 2>&1; then
3849  :
3850else
3851  ac_cv_header_stdc=no
3852fi
3853rm -f conftest*
3854
3855fi
3856
3857if test $ac_cv_header_stdc = yes; then
3858  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859  if test "$cross_compiling" = yes; then
3860  :
3861else
3862  cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h.  */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h.  */
3868#include <ctype.h>
3869#if ((' ' & 0x0FF) == 0x020)
3870# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872#else
3873# define ISLOWER(c) \
3874                   (('a' <= (c) && (c) <= 'i') \
3875                     || ('j' <= (c) && (c) <= 'r') \
3876                     || ('s' <= (c) && (c) <= 'z'))
3877# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3878#endif
3879
3880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3881int
3882main ()
3883{
3884  int i;
3885  for (i = 0; i < 256; i++)
3886    if (XOR (islower (i), ISLOWER (i))
3887        || toupper (i) != TOUPPER (i))
3888      exit(2);
3889  exit (0);
3890}
3891_ACEOF
3892rm -f conftest$ac_exeext
3893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894  (eval $ac_link) 2>&5
3895  ac_status=$?
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899  (eval $ac_try) 2>&5
3900  ac_status=$?
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); }; }; then
3903  :
3904else
3905  echo "$as_me: program exited with status $ac_status" >&5
3906echo "$as_me: failed program was:" >&5
3907sed 's/^/| /' conftest.$ac_ext >&5
3908
3909( exit $ac_status )
3910ac_cv_header_stdc=no
3911fi
3912rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3913fi
3914fi
3915fi
3916echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3917echo "${ECHO_T}$ac_cv_header_stdc" >&6
3918if test $ac_cv_header_stdc = yes; then
3919
3920cat >>confdefs.h <<\_ACEOF
3921#define STDC_HEADERS 1
3922_ACEOF
3923
3924fi
3925
3926
3927## THIS IS OUR DEFAULT-DATA-DIRECTORY
3928
3929##################################
3930## CHECKING  OPTIONAL ARGUMENTS ##
3931##################################
3932#----------------#
3933# Data-Directory #
3934#----------------#
3935DATA_DIR=$datadir
3936echo \$\{prefix\}
3937if test $DATA_DIR = \$\{prefix\}/share ; then
3938        echo "not given"
3939        DATA_DIR=/usr/share
3940else
3941        echo "given: $DATA_DIR"
3942fi
3943
3944cat >>confdefs.h <<_ACEOF
3945#define DATADIR "$DATA_DIR"
3946_ACEOF
3947
3948
3949#-----------------#
3950# DEBUG-statement #
3951#-----------------#
3952DEBUG=no
3953echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3954echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3955# Check whether --enable-debug or --disable-debug was given.
3956if test "${enable_debug+set}" = set; then
3957  enableval="$enable_debug"
3958  DEBUG=$enableval
3959fi;
3960
3961if test x$DEBUG = xno; then
3962        echo "no"
3963        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3964        DEBUG=4
3965elif test x$DEBUG = xyes; then
3966        echo "yes"
3967        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3968        DEBUG=4
3969else
3970        echo "yes: setting debuglevel to to $DEBUG"
3971fi
3972
3973cat >>confdefs.h <<_ACEOF
3974#define DEBUG $DEBUG
3975_ACEOF
3976
3977
3978
3979
3980#---------------#
3981# Modular Debug #
3982#---------------#
3983MODULAR_DEBUG=yes
3984echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
3985echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
3986# Check whether --enable-modular-debug or --disable-modular-debug was given.
3987if test "${enable_modular_debug+set}" = set; then
3988  enableval="$enable_modular_debug"
3989  MODULAR_DEBUG=$enableval
3990fi;
3991
3992if test x$MODULAR_DEBUG = xno; then
3993        echo "no"
3994elif test x$MODULAR_DEBUG = xyes; then
3995        echo "yes"
3996
3997cat >>confdefs.h <<_ACEOF
3998#define MODULAR_DEBUG 1
3999_ACEOF
4000
4001fi
4002
4003#--------------#
4004# GTK-disabled #
4005#--------------#
4006echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4007echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4008# Check whether --enable-gtk or --disable-gtk was given.
4009if test "${enable_gtk+set}" = set; then
4010  enableval="$enable_gtk"
4011  def_gtk=no
4012else
4013  def_gtk=yes
4014fi;
4015if test x$def_gtk = xyes; then
4016  echo "yes"
4017fi
4018if test x$def_gtk = xno; then
4019  echo "no"
4020fi
4021
4022#------------------#
4023# libCurl-disabled #
4024#------------------#
4025echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4026echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4027# Check whether --enable-curl or --disable-curl was given.
4028if test "${enable_curl+set}" = set; then
4029  enableval="$enable_curl"
4030  def_curl=no
4031else
4032  def_curl=yes
4033fi;
4034if test x$def_curl = xyes; then
4035  echo "yes"
4036fi
4037if test x$def_curl = xno; then
4038  echo "no"
4039fi
4040
4041#-------------------#
4042# SubProject-enable #
4043#-------------------#
4044def_sub_projects=no
4045echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4046echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4047
4048# Check whether --with-sub-projects or --without-sub-projects was given.
4049if test "${with_sub_projects+set}" = set; then
4050  withval="$with_sub_projects"
4051  def_sub_projects=yes
4052fi;
4053if test x$def_sub_projects = xyes; then
4054  echo "yes"
4055fi
4056if test x$def_sub_projects = xno; then
4057  echo "no"
4058fi
4059
4060
4061if test x$def_sub_projects = xyes; then
4062  SUB_PROJECTS_TRUE=
4063  SUB_PROJECTS_FALSE='#'
4064else
4065  SUB_PROJECTS_TRUE='#'
4066  SUB_PROJECTS_FALSE=
4067fi
4068
4069
4070#-------------------#
4071# Profiling Enabled #
4072#-------------------#
4073def_profiling=no
4074echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4075echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4076# Check whether --enable-profile or --disable-profile was given.
4077if test "${enable_profile+set}" = set; then
4078  enableval="$enable_profile"
4079  def_profiling=yes
4080fi;
4081if test x$def_profiling = xyes; then
4082  echo "yes"
4083  CXXFLAGS="$CXXFLAGS -pg"
4084fi
4085if test x$def_profiling = xno; then
4086  echo "no"
4087fi
4088
4089#----------------#
4090# efence Enabled #
4091#----------------#
4092def_efence=no
4093echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4094echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4095# Check whether --enable-efence or --disable-efence was given.
4096if test "${enable_efence+set}" = set; then
4097  enableval="$enable_efence"
4098  def_efence=yes
4099fi;
4100if test x$def_efence = xyes; then
4101  echo "yes"
4102fi
4103if test x$def_efence = xno; then
4104  echo "no"
4105fi
4106
4107#----------------------#
4108# Documentation-enable #
4109#----------------------#
4110def_documentation=no
4111echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4112echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4113# Check whether --enable-documentation or --disable-documentation was given.
4114if test "${enable_documentation+set}" = set; then
4115  enableval="$enable_documentation"
4116  def_documentation=yes
4117fi;
4118if test x$def_documentation = xyes; then
4119  echo "yes"
4120fi
4121if test x$def_documentation = xno; then
4122  echo "no"
4123fi
4124
4125
4126if test x$def_documentation = xyes; then
4127  DOCUMENTATION_TRUE=
4128  DOCUMENTATION_FALSE='#'
4129else
4130  DOCUMENTATION_TRUE='#'
4131  DOCUMENTATION_FALSE=
4132fi
4133
4134
4135#######################
4136## PROGRAMM CHECKING ##
4137## 3. party Programs ##
4138#######################
4139
4140#----------------------#
4141# checking for Doxygen #
4142#----------------------#
4143# Extract the first word of "doxygen", so it can be a program name with args.
4144set dummy doxygen; ac_word=$2
4145echo "$as_me:$LINENO: checking for $ac_word" >&5
4146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147if test "${ac_cv_path_DOXYGEN+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  case $DOXYGEN in
4151  [\\/]* | ?:[\\/]*)
4152  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4153  ;;
4154  *)
4155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158  IFS=$as_save_IFS
4159  test -z "$as_dir" && as_dir=.
4160  for ac_exec_ext in '' $ac_executable_extensions; do
4161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164    break 2
4165  fi
4166done
4167done
4168
4169  ;;
4170esac
4171fi
4172DOXYGEN=$ac_cv_path_DOXYGEN
4173
4174if test -n "$DOXYGEN"; then
4175  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4176echo "${ECHO_T}$DOXYGEN" >&6
4177else
4178  echo "$as_me:$LINENO: result: no" >&5
4179echo "${ECHO_T}no" >&6
4180fi
4181
4182
4183
4184if test $DOXYGEN; then
4185  DOXYGEN_TRUE=
4186  DOXYGEN_FALSE='#'
4187else
4188  DOXYGEN_TRUE='#'
4189  DOXYGEN_FALSE=
4190fi
4191
4192
4193#--------------------#
4194# checking for gprof #
4195#--------------------#
4196# Extract the first word of "gprof", so it can be a program name with args.
4197set dummy gprof; ac_word=$2
4198echo "$as_me:$LINENO: checking for $ac_word" >&5
4199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200if test "${ac_cv_path_GPROF+set}" = set; then
4201  echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203  case $GPROF in
4204  [\\/]* | ?:[\\/]*)
4205  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4206  ;;
4207  *)
4208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211  IFS=$as_save_IFS
4212  test -z "$as_dir" && as_dir=.
4213  for ac_exec_ext in '' $ac_executable_extensions; do
4214  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217    break 2
4218  fi
4219done
4220done
4221
4222  ;;
4223esac
4224fi
4225GPROF=$ac_cv_path_GPROF
4226
4227if test -n "$GPROF"; then
4228  echo "$as_me:$LINENO: result: $GPROF" >&5
4229echo "${ECHO_T}$GPROF" >&6
4230else
4231  echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
4233fi
4234
4235
4236#-------------------------#
4237# checking for pkg-config #
4238#-------------------------#
4239if test x$def_gtk = xyes; then
4240 # Extract the first word of "pkg-config", so it can be a program name with args.
4241set dummy pkg-config; ac_word=$2
4242echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247  case $PKG_CONFIG in
4248  [\\/]* | ?:[\\/]*)
4249  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4250  ;;
4251  *)
4252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255  IFS=$as_save_IFS
4256  test -z "$as_dir" && as_dir=.
4257  for ac_exec_ext in '' $ac_executable_extensions; do
4258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261    break 2
4262  fi
4263done
4264done
4265
4266  ;;
4267esac
4268fi
4269PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4270
4271if test -n "$PKG_CONFIG"; then
4272  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4273echo "${ECHO_T}$PKG_CONFIG" >&6
4274else
4275  echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277fi
4278
4279fi
4280
4281
4282#########################
4283## CHECKING FOR SYSTEM ##
4284#########################
4285## here the system is checked, and openGL is included
4286## also checking for SDL on differen Systems
4287
4288echo "$as_me:$LINENO: checking for System" >&5
4289echo $ECHO_N "checking for System... $ECHO_C" >&6
4290## checking for openGL-environment and other sys-specific parameters
4291case "$target" in
4292
4293###########
4294#---------#
4295# WINDOWS #
4296#---------#
4297###########
4298  *-*-mingw32*)
4299echo "mingw-WINDOWS detected"
4300
4301CPPFLAGS="-I/usr/include -I/mingw/include"
4302
4303    mingw="yes"
4304    MSBITFIELDS="-mms-bitfields"
4305    MWINDOWS="-mwindows"
4306
4307
4308
4309# checking for mingw32
4310    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4311echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4312if test "${ac_cv_lib_mingw32_main+set}" = set; then
4313  echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315  ac_check_lib_save_LIBS=$LIBS
4316LIBS="-lmingw32  $LIBS"
4317cat >conftest.$ac_ext <<_ACEOF
4318/* confdefs.h.  */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h.  */
4323
4324
4325int
4326main ()
4327{
4328main ();
4329  ;
4330  return 0;
4331}
4332_ACEOF
4333rm -f conftest.$ac_objext conftest$ac_exeext
4334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335  (eval $ac_link) 2>conftest.er1
4336  ac_status=$?
4337  grep -v '^ *+' conftest.er1 >conftest.err
4338  rm -f conftest.er1
4339  cat conftest.err >&5
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } &&
4342         { ac_try='test -z "$ac_c_werror_flag"
4343                         || test ! -s conftest.err'
4344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345  (eval $ac_try) 2>&5
4346  ac_status=$?
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); }; } &&
4349         { ac_try='test -s conftest$ac_exeext'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; }; then
4355  ac_cv_lib_mingw32_main=yes
4356else
4357  echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360ac_cv_lib_mingw32_main=no
4361fi
4362rm -f conftest.err conftest.$ac_objext \
4363      conftest$ac_exeext conftest.$ac_ext
4364LIBS=$ac_check_lib_save_LIBS
4365fi
4366echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4367echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4368if test $ac_cv_lib_mingw32_main = yes; then
4369  FOUND_mingw32=yes
4370fi
4371
4372    if test x$FOUND_mingw32 = xyes; then
4373        LIBS="$LIBS -lmingw32"
4374    fi
4375
4376#-----------#
4377# SDL (win) #
4378#-----------#
4379# checking for SDL-headers
4380    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4391                  inttypes.h stdint.h unistd.h
4392do
4393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394echo "$as_me:$LINENO: checking for $ac_header" >&5
4395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4396if eval "test \"\${$as_ac_Header+set}\" = set"; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399  cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h.  */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h.  */
4405$ac_includes_default
4406
4407#include <$ac_header>
4408_ACEOF
4409rm -f conftest.$ac_objext
4410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411  (eval $ac_compile) 2>conftest.er1
4412  ac_status=$?
4413  grep -v '^ *+' conftest.er1 >conftest.err
4414  rm -f conftest.er1
4415  cat conftest.err >&5
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); } &&
4418         { ac_try='test -z "$ac_c_werror_flag"
4419                         || test ! -s conftest.err'
4420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421  (eval $ac_try) 2>&5
4422  ac_status=$?
4423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424  (exit $ac_status); }; } &&
4425         { ac_try='test -s conftest.$ac_objext'
4426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427  (eval $ac_try) 2>&5
4428  ac_status=$?
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); }; }; then
4431  eval "$as_ac_Header=yes"
4432else
4433  echo "$as_me: failed program was:" >&5
4434sed 's/^/| /' conftest.$ac_ext >&5
4435
4436eval "$as_ac_Header=no"
4437fi
4438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439fi
4440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4442if test `eval echo '${'$as_ac_Header'}'` = yes; then
4443  cat >>confdefs.h <<_ACEOF
4444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4445_ACEOF
4446
4447fi
4448
4449done
4450
4451
4452
4453for ac_header in SDL/SDL.h
4454do
4455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4456if eval "test \"\${$as_ac_Header+set}\" = set"; then
4457  echo "$as_me:$LINENO: checking for $ac_header" >&5
4458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4459if eval "test \"\${$as_ac_Header+set}\" = set"; then
4460  echo $ECHO_N "(cached) $ECHO_C" >&6
4461fi
4462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4464else
4465  # Is the header compilable?
4466echo "$as_me:$LINENO: checking $ac_header usability" >&5
4467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4468cat >conftest.$ac_ext <<_ACEOF
4469/* confdefs.h.  */
4470_ACEOF
4471cat confdefs.h >>conftest.$ac_ext
4472cat >>conftest.$ac_ext <<_ACEOF
4473/* end confdefs.h.  */
4474$ac_includes_default
4475#include <$ac_header>
4476_ACEOF
4477rm -f conftest.$ac_objext
4478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479  (eval $ac_compile) 2>conftest.er1
4480  ac_status=$?
4481  grep -v '^ *+' conftest.er1 >conftest.err
4482  rm -f conftest.er1
4483  cat conftest.err >&5
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); } &&
4486         { ac_try='test -z "$ac_c_werror_flag"
4487                         || test ! -s conftest.err'
4488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489  (eval $ac_try) 2>&5
4490  ac_status=$?
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); }; } &&
4493         { ac_try='test -s conftest.$ac_objext'
4494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495  (eval $ac_try) 2>&5
4496  ac_status=$?
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); }; }; then
4499  ac_header_compiler=yes
4500else
4501  echo "$as_me: failed program was:" >&5
4502sed 's/^/| /' conftest.$ac_ext >&5
4503
4504ac_header_compiler=no
4505fi
4506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4508echo "${ECHO_T}$ac_header_compiler" >&6
4509
4510# Is the header present?
4511echo "$as_me:$LINENO: checking $ac_header presence" >&5
4512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4513cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h.  */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h.  */
4519#include <$ac_header>
4520_ACEOF
4521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4522  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4523  ac_status=$?
4524  grep -v '^ *+' conftest.er1 >conftest.err
4525  rm -f conftest.er1
4526  cat conftest.err >&5
4527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528  (exit $ac_status); } >/dev/null; then
4529  if test -s conftest.err; then
4530    ac_cpp_err=$ac_c_preproc_warn_flag
4531    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4532  else
4533    ac_cpp_err=
4534  fi
4535else
4536  ac_cpp_err=yes
4537fi
4538if test -z "$ac_cpp_err"; then
4539  ac_header_preproc=yes
4540else
4541  echo "$as_me: failed program was:" >&5
4542sed 's/^/| /' conftest.$ac_ext >&5
4543
4544  ac_header_preproc=no
4545fi
4546rm -f conftest.err conftest.$ac_ext
4547echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4548echo "${ECHO_T}$ac_header_preproc" >&6
4549
4550# So?  What about this header?
4551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4552  yes:no: )
4553    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4555    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4557    ac_header_preproc=yes
4558    ;;
4559  no:yes:* )
4560    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4562    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4563echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4564    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4566    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4567echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4568    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4570    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4572    (
4573      cat <<\_ASBOX
4574## ---------------------------------------------- ##
4575## Report this to orxonox-dev at mail.datacore.ch ##
4576## ---------------------------------------------- ##
4577_ASBOX
4578    ) |
4579      sed "s/^/$as_me: WARNING:     /" >&2
4580    ;;
4581esac
4582echo "$as_me:$LINENO: checking for $ac_header" >&5
4583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4584if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585  echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587  eval "$as_ac_Header=\$ac_header_preproc"
4588fi
4589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4591
4592fi
4593if test `eval echo '${'$as_ac_Header'}'` = yes; then
4594  cat >>confdefs.h <<_ACEOF
4595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4596_ACEOF
4597
4598else
4599  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4600echo "$as_me: error: cannot find SDL headers" >&2;}
4601   { (exit 1); exit 1; }; }
4602fi
4603
4604done
4605
4606
4607#checking for libSDL
4608    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4609echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4610if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4611  echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613  ac_check_lib_save_LIBS=$LIBS
4614LIBS="-lsdlmain  $LIBS"
4615cat >conftest.$ac_ext <<_ACEOF
4616/* confdefs.h.  */
4617_ACEOF
4618cat confdefs.h >>conftest.$ac_ext
4619cat >>conftest.$ac_ext <<_ACEOF
4620/* end confdefs.h.  */
4621
4622
4623int
4624main ()
4625{
4626main ();
4627  ;
4628  return 0;
4629}
4630_ACEOF
4631rm -f conftest.$ac_objext conftest$ac_exeext
4632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4633  (eval $ac_link) 2>conftest.er1
4634  ac_status=$?
4635  grep -v '^ *+' conftest.er1 >conftest.err
4636  rm -f conftest.er1
4637  cat conftest.err >&5
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); } &&
4640         { ac_try='test -z "$ac_c_werror_flag"
4641                         || test ! -s conftest.err'
4642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643  (eval $ac_try) 2>&5
4644  ac_status=$?
4645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646  (exit $ac_status); }; } &&
4647         { ac_try='test -s conftest$ac_exeext'
4648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649  (eval $ac_try) 2>&5
4650  ac_status=$?
4651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652  (exit $ac_status); }; }; then
4653  ac_cv_lib_sdlmain_main=yes
4654else
4655  echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
4658ac_cv_lib_sdlmain_main=no
4659fi
4660rm -f conftest.err conftest.$ac_objext \
4661      conftest$ac_exeext conftest.$ac_ext
4662LIBS=$ac_check_lib_save_LIBS
4663fi
4664echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4665echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4666if test $ac_cv_lib_sdlmain_main = yes; then
4667  FOUND_sdlmain=yes
4668fi
4669
4670    if test x$FOUND_sdlmain = xyes ; then
4671       LIBS="$LIBS -lsdlmain"
4672    else
4673        echo "------------------"
4674        echo "SDL library not found."
4675        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4676        echo "------------------"
4677        exit 1
4678    fi
4679    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4680echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4681if test "${ac_cv_lib_sdl_main+set}" = set; then
4682  echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684  ac_check_lib_save_LIBS=$LIBS
4685LIBS="-lsdl  $LIBS"
4686cat >conftest.$ac_ext <<_ACEOF
4687/* confdefs.h.  */
4688_ACEOF
4689cat confdefs.h >>conftest.$ac_ext
4690cat >>conftest.$ac_ext <<_ACEOF
4691/* end confdefs.h.  */
4692
4693
4694int
4695main ()
4696{
4697main ();
4698  ;
4699  return 0;
4700}
4701_ACEOF
4702rm -f conftest.$ac_objext conftest$ac_exeext
4703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704  (eval $ac_link) 2>conftest.er1
4705  ac_status=$?
4706  grep -v '^ *+' conftest.er1 >conftest.err
4707  rm -f conftest.er1
4708  cat conftest.err >&5
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); } &&
4711         { ac_try='test -z "$ac_c_werror_flag"
4712                         || test ! -s conftest.err'
4713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714  (eval $ac_try) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }; } &&
4718         { ac_try='test -s conftest$ac_exeext'
4719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720  (eval $ac_try) 2>&5
4721  ac_status=$?
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); }; }; then
4724  ac_cv_lib_sdl_main=yes
4725else
4726  echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729ac_cv_lib_sdl_main=no
4730fi
4731rm -f conftest.err conftest.$ac_objext \
4732      conftest$ac_exeext conftest.$ac_ext
4733LIBS=$ac_check_lib_save_LIBS
4734fi
4735echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4736echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4737if test $ac_cv_lib_sdl_main = yes; then
4738  FOUND_sdl=yes
4739fi
4740
4741    if test x$FOUND_sdl = xyes ; then
4742       LIBS="$LIBS -lsdl"
4743    else
4744        echo "------------------"
4745        echo "SDL library not found."
4746        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4747        echo "------------------"
4748        exit -1
4749    fi
4750
4751#---------------#
4752# open-GL (win) #
4753#---------------#
4754# checking gl header
4755
4756for ac_header in GL/gl.h
4757do
4758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4759if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760  echo "$as_me:$LINENO: checking for $ac_header" >&5
4761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763  echo $ECHO_N "(cached) $ECHO_C" >&6
4764fi
4765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767else
4768  # Is the header compilable?
4769echo "$as_me:$LINENO: checking $ac_header usability" >&5
4770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4771cat >conftest.$ac_ext <<_ACEOF
4772/* confdefs.h.  */
4773_ACEOF
4774cat confdefs.h >>conftest.$ac_ext
4775cat >>conftest.$ac_ext <<_ACEOF
4776/* end confdefs.h.  */
4777$ac_includes_default
4778#include <$ac_header>
4779_ACEOF
4780rm -f conftest.$ac_objext
4781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782  (eval $ac_compile) 2>conftest.er1
4783  ac_status=$?
4784  grep -v '^ *+' conftest.er1 >conftest.err
4785  rm -f conftest.er1
4786  cat conftest.err >&5
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); } &&
4789         { ac_try='test -z "$ac_c_werror_flag"
4790                         || test ! -s conftest.err'
4791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792  (eval $ac_try) 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); }; } &&
4796         { ac_try='test -s conftest.$ac_objext'
4797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798  (eval $ac_try) 2>&5
4799  ac_status=$?
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); }; }; then
4802  ac_header_compiler=yes
4803else
4804  echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807ac_header_compiler=no
4808fi
4809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4811echo "${ECHO_T}$ac_header_compiler" >&6
4812
4813# Is the header present?
4814echo "$as_me:$LINENO: checking $ac_header presence" >&5
4815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4816cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822#include <$ac_header>
4823_ACEOF
4824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4825  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4826  ac_status=$?
4827  grep -v '^ *+' conftest.er1 >conftest.err
4828  rm -f conftest.er1
4829  cat conftest.err >&5
4830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831  (exit $ac_status); } >/dev/null; then
4832  if test -s conftest.err; then
4833    ac_cpp_err=$ac_c_preproc_warn_flag
4834    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4835  else
4836    ac_cpp_err=
4837  fi
4838else
4839  ac_cpp_err=yes
4840fi
4841if test -z "$ac_cpp_err"; then
4842  ac_header_preproc=yes
4843else
4844  echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
4847  ac_header_preproc=no
4848fi
4849rm -f conftest.err conftest.$ac_ext
4850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4851echo "${ECHO_T}$ac_header_preproc" >&6
4852
4853# So?  What about this header?
4854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4855  yes:no: )
4856    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4858    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4860    ac_header_preproc=yes
4861    ;;
4862  no:yes:* )
4863    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4866echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4867    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4869    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4870echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4871    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4875    (
4876      cat <<\_ASBOX
4877## ---------------------------------------------- ##
4878## Report this to orxonox-dev at mail.datacore.ch ##
4879## ---------------------------------------------- ##
4880_ASBOX
4881    ) |
4882      sed "s/^/$as_me: WARNING:     /" >&2
4883    ;;
4884esac
4885echo "$as_me:$LINENO: checking for $ac_header" >&5
4886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4887if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888  echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890  eval "$as_ac_Header=\$ac_header_preproc"
4891fi
4892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4894
4895fi
4896if test `eval echo '${'$as_ac_Header'}'` = yes; then
4897  cat >>confdefs.h <<_ACEOF
4898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4899_ACEOF
4900
4901else
4902  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4903echo "$as_me: error: cannot find opengl headers" >&2;}
4904   { (exit 1); exit 1; }; }
4905fi
4906
4907done
4908
4909#   checking for Windows openGl library
4910    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4911echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4912if test "${ac_cv_lib_opengl32_main+set}" = set; then
4913  echo $ECHO_N "(cached) $ECHO_C" >&6
4914else
4915  ac_check_lib_save_LIBS=$LIBS
4916LIBS="-lopengl32  $LIBS"
4917cat >conftest.$ac_ext <<_ACEOF
4918/* confdefs.h.  */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h.  */
4923
4924
4925int
4926main ()
4927{
4928main ();
4929  ;
4930  return 0;
4931}
4932_ACEOF
4933rm -f conftest.$ac_objext conftest$ac_exeext
4934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935  (eval $ac_link) 2>conftest.er1
4936  ac_status=$?
4937  grep -v '^ *+' conftest.er1 >conftest.err
4938  rm -f conftest.er1
4939  cat conftest.err >&5
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); } &&
4942         { ac_try='test -z "$ac_c_werror_flag"
4943                         || test ! -s conftest.err'
4944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945  (eval $ac_try) 2>&5
4946  ac_status=$?
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); }; } &&
4949         { ac_try='test -s conftest$ac_exeext'
4950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951  (eval $ac_try) 2>&5
4952  ac_status=$?
4953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  (exit $ac_status); }; }; then
4955  ac_cv_lib_opengl32_main=yes
4956else
4957  echo "$as_me: failed program was:" >&5
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960ac_cv_lib_opengl32_main=no
4961fi
4962rm -f conftest.err conftest.$ac_objext \
4963      conftest$ac_exeext conftest.$ac_ext
4964LIBS=$ac_check_lib_save_LIBS
4965fi
4966echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4967echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4968if test $ac_cv_lib_opengl32_main = yes; then
4969  FOUND_opengl32=yes
4970else
4971  "gl/gl.h"
4972fi
4973
4974    if test x$FOUND_opengl32 = xyes ; then
4975        LIBS="$LIBS -lopengl32"
4976    else
4977         echo "------------------"
4978         echo "opengl not found."
4979         echo "please install the opengl package which can be found at http://www.opengl.org"
4980         echo "------------------"
4981         exit -1
4982    fi
4983
4984# cheking for GLU-header
4985
4986for ac_header in GL/glu.h
4987do
4988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990  echo "$as_me:$LINENO: checking for $ac_header" >&5
4991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4992if eval "test \"\${$as_ac_Header+set}\" = set"; then
4993  echo $ECHO_N "(cached) $ECHO_C" >&6
4994fi
4995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4997else
4998  # Is the header compilable?
4999echo "$as_me:$LINENO: checking $ac_header usability" >&5
5000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5001cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h.  */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h.  */
5007$ac_includes_default
5008#include <$ac_header>
5009_ACEOF
5010rm -f conftest.$ac_objext
5011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012  (eval $ac_compile) 2>conftest.er1
5013  ac_status=$?
5014  grep -v '^ *+' conftest.er1 >conftest.err
5015  rm -f conftest.er1
5016  cat conftest.err >&5
5017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018  (exit $ac_status); } &&
5019         { ac_try='test -z "$ac_c_werror_flag"
5020                         || test ! -s conftest.err'
5021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022  (eval $ac_try) 2>&5
5023  ac_status=$?
5024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025  (exit $ac_status); }; } &&
5026         { ac_try='test -s conftest.$ac_objext'
5027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028  (eval $ac_try) 2>&5
5029  ac_status=$?
5030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031  (exit $ac_status); }; }; then
5032  ac_header_compiler=yes
5033else
5034  echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
5037ac_header_compiler=no
5038fi
5039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5041echo "${ECHO_T}$ac_header_compiler" >&6
5042
5043# Is the header present?
5044echo "$as_me:$LINENO: checking $ac_header presence" >&5
5045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5046cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h.  */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h.  */
5052#include <$ac_header>
5053_ACEOF
5054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056  ac_status=$?
5057  grep -v '^ *+' conftest.er1 >conftest.err
5058  rm -f conftest.er1
5059  cat conftest.err >&5
5060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061  (exit $ac_status); } >/dev/null; then
5062  if test -s conftest.err; then
5063    ac_cpp_err=$ac_c_preproc_warn_flag
5064    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5065  else
5066    ac_cpp_err=
5067  fi
5068else
5069  ac_cpp_err=yes
5070fi
5071if test -z "$ac_cpp_err"; then
5072  ac_header_preproc=yes
5073else
5074  echo "$as_me: failed program was:" >&5
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
5077  ac_header_preproc=no
5078fi
5079rm -f conftest.err conftest.$ac_ext
5080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5081echo "${ECHO_T}$ac_header_preproc" >&6
5082
5083# So?  What about this header?
5084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5085  yes:no: )
5086    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5090    ac_header_preproc=yes
5091    ;;
5092  no:yes:* )
5093    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5095    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5096echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5097    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5099    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5100echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5101    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5103    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5105    (
5106      cat <<\_ASBOX
5107## ---------------------------------------------- ##
5108## Report this to orxonox-dev at mail.datacore.ch ##
5109## ---------------------------------------------- ##
5110_ASBOX
5111    ) |
5112      sed "s/^/$as_me: WARNING:     /" >&2
5113    ;;
5114esac
5115echo "$as_me:$LINENO: checking for $ac_header" >&5
5116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5117if eval "test \"\${$as_ac_Header+set}\" = set"; then
5118  echo $ECHO_N "(cached) $ECHO_C" >&6
5119else
5120  eval "$as_ac_Header=\$ac_header_preproc"
5121fi
5122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5124
5125fi
5126if test `eval echo '${'$as_ac_Header'}'` = yes; then
5127  cat >>confdefs.h <<_ACEOF
5128#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5129_ACEOF
5130
5131else
5132  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5133echo "$as_me: error: cannot find opengl headers" >&2;}
5134   { (exit 1); exit 1; }; }
5135fi
5136
5137done
5138
5139
5140# checking for libGLU
5141    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
5142echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
5143if test "${ac_cv_lib_glu32_main+set}" = set; then
5144  echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146  ac_check_lib_save_LIBS=$LIBS
5147LIBS="-lglu32  $LIBS"
5148cat >conftest.$ac_ext <<_ACEOF
5149/* confdefs.h.  */
5150_ACEOF
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h.  */
5154
5155
5156int
5157main ()
5158{
5159main ();
5160  ;
5161  return 0;
5162}
5163_ACEOF
5164rm -f conftest.$ac_objext conftest$ac_exeext
5165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5166  (eval $ac_link) 2>conftest.er1
5167  ac_status=$?
5168  grep -v '^ *+' conftest.er1 >conftest.err
5169  rm -f conftest.er1
5170  cat conftest.err >&5
5171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); } &&
5173         { ac_try='test -z "$ac_c_werror_flag"
5174                         || test ! -s conftest.err'
5175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176  (eval $ac_try) 2>&5
5177  ac_status=$?
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); }; } &&
5180         { ac_try='test -s conftest$ac_exeext'
5181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182  (eval $ac_try) 2>&5
5183  ac_status=$?
5184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185  (exit $ac_status); }; }; then
5186  ac_cv_lib_glu32_main=yes
5187else
5188  echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5
5190
5191ac_cv_lib_glu32_main=no
5192fi
5193rm -f conftest.err conftest.$ac_objext \
5194      conftest$ac_exeext conftest.$ac_ext
5195LIBS=$ac_check_lib_save_LIBS
5196fi
5197echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
5198echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5199if test $ac_cv_lib_glu32_main = yes; then
5200  FOUND_glu32=yes
5201fi
5202
5203    if test x$FOUND_glu32 = xyes ; then
5204        LIBS="$LIBS -lGLU32"
5205    else
5206         echo "------------------"
5207         echo "GLU library not found."
5208         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5209         echo "------------------"
5210         exit -1
5211    fi
5212
5213#--------#
5214# openAL #
5215#--------#
5216# checking for openAL-headers
5217
5218for ac_header in AL/al.h
5219do
5220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5221if eval "test \"\${$as_ac_Header+set}\" = set"; then
5222  echo "$as_me:$LINENO: checking for $ac_header" >&5
5223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5224if eval "test \"\${$as_ac_Header+set}\" = set"; then
5225  echo $ECHO_N "(cached) $ECHO_C" >&6
5226fi
5227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5229else
5230  # Is the header compilable?
5231echo "$as_me:$LINENO: checking $ac_header usability" >&5
5232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5233cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h.  */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h.  */
5239$ac_includes_default
5240#include <$ac_header>
5241_ACEOF
5242rm -f conftest.$ac_objext
5243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244  (eval $ac_compile) 2>conftest.er1
5245  ac_status=$?
5246  grep -v '^ *+' conftest.er1 >conftest.err
5247  rm -f conftest.er1
5248  cat conftest.err >&5
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); } &&
5251         { ac_try='test -z "$ac_c_werror_flag"
5252                         || test ! -s conftest.err'
5253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254  (eval $ac_try) 2>&5
5255  ac_status=$?
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); }; } &&
5258         { ac_try='test -s conftest.$ac_objext'
5259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260  (eval $ac_try) 2>&5
5261  ac_status=$?
5262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263  (exit $ac_status); }; }; then
5264  ac_header_compiler=yes
5265else
5266  echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
5269ac_header_compiler=no
5270fi
5271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5273echo "${ECHO_T}$ac_header_compiler" >&6
5274
5275# Is the header present?
5276echo "$as_me:$LINENO: checking $ac_header presence" >&5
5277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5278cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h.  */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h.  */
5284#include <$ac_header>
5285_ACEOF
5286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5287  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5288  ac_status=$?
5289  grep -v '^ *+' conftest.er1 >conftest.err
5290  rm -f conftest.er1
5291  cat conftest.err >&5
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); } >/dev/null; then
5294  if test -s conftest.err; then
5295    ac_cpp_err=$ac_c_preproc_warn_flag
5296    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5297  else
5298    ac_cpp_err=
5299  fi
5300else
5301  ac_cpp_err=yes
5302fi
5303if test -z "$ac_cpp_err"; then
5304  ac_header_preproc=yes
5305else
5306  echo "$as_me: failed program was:" >&5
5307sed 's/^/| /' conftest.$ac_ext >&5
5308
5309  ac_header_preproc=no
5310fi
5311rm -f conftest.err conftest.$ac_ext
5312echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5313echo "${ECHO_T}$ac_header_preproc" >&6
5314
5315# So?  What about this header?
5316case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5317  yes:no: )
5318    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5320    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5321echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5322    ac_header_preproc=yes
5323    ;;
5324  no:yes:* )
5325    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5326echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5327    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5328echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5329    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5330echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5331    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5332echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5333    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5335    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5336echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5337    (
5338      cat <<\_ASBOX
5339## ---------------------------------------------- ##
5340## Report this to orxonox-dev at mail.datacore.ch ##
5341## ---------------------------------------------- ##
5342_ASBOX
5343    ) |
5344      sed "s/^/$as_me: WARNING:     /" >&2
5345    ;;
5346esac
5347echo "$as_me:$LINENO: checking for $ac_header" >&5
5348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5349if eval "test \"\${$as_ac_Header+set}\" = set"; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  eval "$as_ac_Header=\$ac_header_preproc"
5353fi
5354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5356
5357fi
5358if test `eval echo '${'$as_ac_Header'}'` = yes; then
5359  cat >>confdefs.h <<_ACEOF
5360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361_ACEOF
5362
5363else
5364  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5365echo "$as_me: error: cannot find openAL header." >&2;}
5366   { (exit 1); exit 1; }; }
5367fi
5368
5369done
5370
5371# checking for openAL-lib
5372  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5373echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5374if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  ac_check_lib_save_LIBS=$LIBS
5378LIBS="-lOpenAL32  $LIBS"
5379cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h.  */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h.  */
5385
5386
5387int
5388main ()
5389{
5390main ();
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397  (eval $ac_link) 2>conftest.er1
5398  ac_status=$?
5399  grep -v '^ *+' conftest.er1 >conftest.err
5400  rm -f conftest.er1
5401  cat conftest.err >&5
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); } &&
5404         { ac_try='test -z "$ac_c_werror_flag"
5405                         || test ! -s conftest.err'
5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407  (eval $ac_try) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; } &&
5411         { ac_try='test -s conftest$ac_exeext'
5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413  (eval $ac_try) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; }; then
5417  ac_cv_lib_OpenAL32_main=yes
5418else
5419  echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422ac_cv_lib_OpenAL32_main=no
5423fi
5424rm -f conftest.err conftest.$ac_objext \
5425      conftest$ac_exeext conftest.$ac_ext
5426LIBS=$ac_check_lib_save_LIBS
5427fi
5428echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5429echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5430if test $ac_cv_lib_OpenAL32_main = yes; then
5431  FOUND_openal=yes
5432fi
5433
5434  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5435echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5436if test "${ac_cv_lib_ALut_main+set}" = set; then
5437  echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439  ac_check_lib_save_LIBS=$LIBS
5440LIBS="-lALut  $LIBS"
5441cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h.  */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h.  */
5447
5448
5449int
5450main ()
5451{
5452main ();
5453  ;
5454  return 0;
5455}
5456_ACEOF
5457rm -f conftest.$ac_objext conftest$ac_exeext
5458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5459  (eval $ac_link) 2>conftest.er1
5460  ac_status=$?
5461  grep -v '^ *+' conftest.er1 >conftest.err
5462  rm -f conftest.er1
5463  cat conftest.err >&5
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); } &&
5466         { ac_try='test -z "$ac_c_werror_flag"
5467                         || test ! -s conftest.err'
5468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469  (eval $ac_try) 2>&5
5470  ac_status=$?
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); }; } &&
5473         { ac_try='test -s conftest$ac_exeext'
5474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475  (eval $ac_try) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; }; then
5479  ac_cv_lib_ALut_main=yes
5480else
5481  echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484ac_cv_lib_ALut_main=no
5485fi
5486rm -f conftest.err conftest.$ac_objext \
5487      conftest$ac_exeext conftest.$ac_ext
5488LIBS=$ac_check_lib_save_LIBS
5489fi
5490echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5491echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5492if test $ac_cv_lib_ALut_main = yes; then
5493  FOUND_ALut=yes
5494fi
5495
5496     if test x$FOUND_openal = xyes ; then
5497      if test x$FOUND_ALut = xyes ; then
5498       LIBS="$LIBS -lALut -lOpenAL32"
5499     else
5500        echo "------------------"
5501        echo "openal library not found."
5502        echo "please install the openal library, which can be found at http://www.openal.org"
5503        echo "------------------"
5504        exit -1
5505      fi
5506     fi
5507    ;;
5508
5509#########
5510#-------#
5511# LINUX #
5512#-------#
5513#########
5514 *-*-linux*)
5515echo "Linux detected"
5516
5517 Linux="yes"
5518
5519CPPFLAGS="-I/usr/X11R6/include -I/usr/include"
5520##LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
5521# checking gl header
5522
5523for ac_header in GL/gl.h
5524do
5525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5526if eval "test \"\${$as_ac_Header+set}\" = set"; then
5527  echo "$as_me:$LINENO: checking for $ac_header" >&5
5528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5529if eval "test \"\${$as_ac_Header+set}\" = set"; then
5530  echo $ECHO_N "(cached) $ECHO_C" >&6
5531fi
5532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534else
5535  # Is the header compilable?
5536echo "$as_me:$LINENO: checking $ac_header usability" >&5
5537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5538cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h.  */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h.  */
5544$ac_includes_default
5545#include <$ac_header>
5546_ACEOF
5547rm -f conftest.$ac_objext
5548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549  (eval $ac_compile) 2>conftest.er1
5550  ac_status=$?
5551  grep -v '^ *+' conftest.er1 >conftest.err
5552  rm -f conftest.er1
5553  cat conftest.err >&5
5554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } &&
5556         { ac_try='test -z "$ac_c_werror_flag"
5557                         || test ! -s conftest.err'
5558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559  (eval $ac_try) 2>&5
5560  ac_status=$?
5561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562  (exit $ac_status); }; } &&
5563         { ac_try='test -s conftest.$ac_objext'
5564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565  (eval $ac_try) 2>&5
5566  ac_status=$?
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); }; }; then
5569  ac_header_compiler=yes
5570else
5571  echo "$as_me: failed program was:" >&5
5572sed 's/^/| /' conftest.$ac_ext >&5
5573
5574ac_header_compiler=no
5575fi
5576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5578echo "${ECHO_T}$ac_header_compiler" >&6
5579
5580# Is the header present?
5581echo "$as_me:$LINENO: checking $ac_header presence" >&5
5582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5583cat >conftest.$ac_ext <<_ACEOF
5584/* confdefs.h.  */
5585_ACEOF
5586cat confdefs.h >>conftest.$ac_ext
5587cat >>conftest.$ac_ext <<_ACEOF
5588/* end confdefs.h.  */
5589#include <$ac_header>
5590_ACEOF
5591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5592  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5593  ac_status=$?
5594  grep -v '^ *+' conftest.er1 >conftest.err
5595  rm -f conftest.er1
5596  cat conftest.err >&5
5597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598  (exit $ac_status); } >/dev/null; then
5599  if test -s conftest.err; then
5600    ac_cpp_err=$ac_c_preproc_warn_flag
5601    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5602  else
5603    ac_cpp_err=
5604  fi
5605else
5606  ac_cpp_err=yes
5607fi
5608if test -z "$ac_cpp_err"; then
5609  ac_header_preproc=yes
5610else
5611  echo "$as_me: failed program was:" >&5
5612sed 's/^/| /' conftest.$ac_ext >&5
5613
5614  ac_header_preproc=no
5615fi
5616rm -f conftest.err conftest.$ac_ext
5617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5618echo "${ECHO_T}$ac_header_preproc" >&6
5619
5620# So?  What about this header?
5621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5622  yes:no: )
5623    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5625    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5627    ac_header_preproc=yes
5628    ;;
5629  no:yes:* )
5630    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5632    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5633echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5634    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5636    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5637echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5638    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5640    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5642    (
5643      cat <<\_ASBOX
5644## ---------------------------------------------- ##
5645## Report this to orxonox-dev at mail.datacore.ch ##
5646## ---------------------------------------------- ##
5647_ASBOX
5648    ) |
5649      sed "s/^/$as_me: WARNING:     /" >&2
5650    ;;
5651esac
5652echo "$as_me:$LINENO: checking for $ac_header" >&5
5653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5654if eval "test \"\${$as_ac_Header+set}\" = set"; then
5655  echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657  eval "$as_ac_Header=\$ac_header_preproc"
5658fi
5659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5661
5662fi
5663if test `eval echo '${'$as_ac_Header'}'` = yes; then
5664  cat >>confdefs.h <<_ACEOF
5665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5666_ACEOF
5667
5668else
5669  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5670echo "$as_me: error: cannot find opengl headers" >&2;}
5671   { (exit 1); exit 1; }; }
5672fi
5673
5674done
5675
5676
5677#  checking for Unix GL
5678   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5679echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5680if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5681  echo $ECHO_N "(cached) $ECHO_C" >&6
5682else
5683  ac_check_lib_save_LIBS=$LIBS
5684LIBS="-lGL  $LIBS"
5685cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h.  */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h.  */
5691
5692/* Override any gcc2 internal prototype to avoid an error.  */
5693#ifdef __cplusplus
5694extern "C"
5695#endif
5696/* We use char because int might match the return type of a gcc2
5697   builtin and then its argument prototype would still apply.  */
5698char glLoadIdentity ();
5699int
5700main ()
5701{
5702glLoadIdentity ();
5703  ;
5704  return 0;
5705}
5706_ACEOF
5707rm -f conftest.$ac_objext conftest$ac_exeext
5708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5709  (eval $ac_link) 2>conftest.er1
5710  ac_status=$?
5711  grep -v '^ *+' conftest.er1 >conftest.err
5712  rm -f conftest.er1
5713  cat conftest.err >&5
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); } &&
5716         { ac_try='test -z "$ac_c_werror_flag"
5717                         || test ! -s conftest.err'
5718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719  (eval $ac_try) 2>&5
5720  ac_status=$?
5721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722  (exit $ac_status); }; } &&
5723         { ac_try='test -s conftest$ac_exeext'
5724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725  (eval $ac_try) 2>&5
5726  ac_status=$?
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); }; }; then
5729  ac_cv_lib_GL_glLoadIdentity=yes
5730else
5731  echo "$as_me: failed program was:" >&5
5732sed 's/^/| /' conftest.$ac_ext >&5
5733
5734ac_cv_lib_GL_glLoadIdentity=no
5735fi
5736rm -f conftest.err conftest.$ac_objext \
5737      conftest$ac_exeext conftest.$ac_ext
5738LIBS=$ac_check_lib_save_LIBS
5739fi
5740echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5741echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5742if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5743  FOUND_GL=yes
5744fi
5745
5746   if test x$FOUND_GL = xyes ; then
5747     LIBS="$LIBS -lGL"
5748   else
5749         echo "------------------"
5750         echo "opengl not found."
5751         echo "please install the opengl package which can be found at http://www.opengl.org"
5752         echo "------------------"
5753         exit -1
5754   fi
5755
5756# cheking for GLU-header
5757
5758for ac_header in GL/glu.h
5759do
5760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5761if eval "test \"\${$as_ac_Header+set}\" = set"; then
5762  echo "$as_me:$LINENO: checking for $ac_header" >&5
5763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5764if eval "test \"\${$as_ac_Header+set}\" = set"; then
5765  echo $ECHO_N "(cached) $ECHO_C" >&6
5766fi
5767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5769else
5770  # Is the header compilable?
5771echo "$as_me:$LINENO: checking $ac_header usability" >&5
5772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5773cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h.  */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h.  */
5779$ac_includes_default
5780#include <$ac_header>
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784  (eval $ac_compile) 2>conftest.er1
5785  ac_status=$?
5786  grep -v '^ *+' conftest.er1 >conftest.err
5787  rm -f conftest.er1
5788  cat conftest.err >&5
5789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790  (exit $ac_status); } &&
5791         { ac_try='test -z "$ac_c_werror_flag"
5792                         || test ! -s conftest.err'
5793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794  (eval $ac_try) 2>&5
5795  ac_status=$?
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); }; } &&
5798         { ac_try='test -s conftest.$ac_objext'
5799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800  (eval $ac_try) 2>&5
5801  ac_status=$?
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); }; }; then
5804  ac_header_compiler=yes
5805else
5806  echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_header_compiler=no
5810fi
5811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813echo "${ECHO_T}$ac_header_compiler" >&6
5814
5815# Is the header present?
5816echo "$as_me:$LINENO: checking $ac_header presence" >&5
5817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5818cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h.  */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h.  */
5824#include <$ac_header>
5825_ACEOF
5826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5827  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5828  ac_status=$?
5829  grep -v '^ *+' conftest.er1 >conftest.err
5830  rm -f conftest.er1
5831  cat conftest.err >&5
5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833  (exit $ac_status); } >/dev/null; then
5834  if test -s conftest.err; then
5835    ac_cpp_err=$ac_c_preproc_warn_flag
5836    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5837  else
5838    ac_cpp_err=
5839  fi
5840else
5841  ac_cpp_err=yes
5842fi
5843if test -z "$ac_cpp_err"; then
5844  ac_header_preproc=yes
5845else
5846  echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849  ac_header_preproc=no
5850fi
5851rm -f conftest.err conftest.$ac_ext
5852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853echo "${ECHO_T}$ac_header_preproc" >&6
5854
5855# So?  What about this header?
5856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857  yes:no: )
5858    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5862    ac_header_preproc=yes
5863    ;;
5864  no:yes:* )
5865    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5867    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5868echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5869    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5871    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5872echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5873    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5875    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5877    (
5878      cat <<\_ASBOX
5879## ---------------------------------------------- ##
5880## Report this to orxonox-dev at mail.datacore.ch ##
5881## ---------------------------------------------- ##
5882_ASBOX
5883    ) |
5884      sed "s/^/$as_me: WARNING:     /" >&2
5885    ;;
5886esac
5887echo "$as_me:$LINENO: checking for $ac_header" >&5
5888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5889if eval "test \"\${$as_ac_Header+set}\" = set"; then
5890  echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892  eval "$as_ac_Header=\$ac_header_preproc"
5893fi
5894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5896
5897fi
5898if test `eval echo '${'$as_ac_Header'}'` = yes; then
5899  cat >>confdefs.h <<_ACEOF
5900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901_ACEOF
5902
5903else
5904  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5905echo "$as_me: error: cannot find opengl headers" >&2;}
5906   { (exit 1); exit 1; }; }
5907fi
5908
5909done
5910
5911
5912    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5913echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5914if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5915  echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917  ac_check_lib_save_LIBS=$LIBS
5918LIBS="-lGLU  $LIBS"
5919cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h.  */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h.  */
5925
5926/* Override any gcc2 internal prototype to avoid an error.  */
5927#ifdef __cplusplus
5928extern "C"
5929#endif
5930/* We use char because int might match the return type of a gcc2
5931   builtin and then its argument prototype would still apply.  */
5932char gluProject ();
5933int
5934main ()
5935{
5936gluProject ();
5937  ;
5938  return 0;
5939}
5940_ACEOF
5941rm -f conftest.$ac_objext conftest$ac_exeext
5942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943  (eval $ac_link) 2>conftest.er1
5944  ac_status=$?
5945  grep -v '^ *+' conftest.er1 >conftest.err
5946  rm -f conftest.er1
5947  cat conftest.err >&5
5948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949  (exit $ac_status); } &&
5950         { ac_try='test -z "$ac_c_werror_flag"
5951                         || test ! -s conftest.err'
5952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953  (eval $ac_try) 2>&5
5954  ac_status=$?
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); }; } &&
5957         { ac_try='test -s conftest$ac_exeext'
5958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959  (eval $ac_try) 2>&5
5960  ac_status=$?
5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962  (exit $ac_status); }; }; then
5963  ac_cv_lib_GLU_gluProject=yes
5964else
5965  echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968ac_cv_lib_GLU_gluProject=no
5969fi
5970rm -f conftest.err conftest.$ac_objext \
5971      conftest$ac_exeext conftest.$ac_ext
5972LIBS=$ac_check_lib_save_LIBS
5973fi
5974echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5975echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5976if test $ac_cv_lib_GLU_gluProject = yes; then
5977  FOUND_GLU=yes
5978fi
5979
5980    if test x$FOUND_GLU = xyes ; then
5981      LIBS="$LIBS -lGLU"
5982    else
5983         echo "------------------"
5984         echo "GLU library not found."
5985         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5986         echo "------------------"
5987         exit -1
5988    fi
5989
5990#--------#
5991# openAL #
5992#--------#
5993# checking for openAL-headers
5994
5995for ac_header in AL/al.h
5996do
5997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999  echo "$as_me:$LINENO: checking for $ac_header" >&5
6000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002  echo $ECHO_N "(cached) $ECHO_C" >&6
6003fi
6004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6006else
6007  # Is the header compilable?
6008echo "$as_me:$LINENO: checking $ac_header usability" >&5
6009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6010cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h.  */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h.  */
6016$ac_includes_default
6017#include <$ac_header>
6018_ACEOF
6019rm -f conftest.$ac_objext
6020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021  (eval $ac_compile) 2>conftest.er1
6022  ac_status=$?
6023  grep -v '^ *+' conftest.er1 >conftest.err
6024  rm -f conftest.er1
6025  cat conftest.err >&5
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); } &&
6028         { ac_try='test -z "$ac_c_werror_flag"
6029                         || test ! -s conftest.err'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; } &&
6035         { ac_try='test -s conftest.$ac_objext'
6036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037  (eval $ac_try) 2>&5
6038  ac_status=$?
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); }; }; then
6041  ac_header_compiler=yes
6042else
6043  echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046ac_header_compiler=no
6047fi
6048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6050echo "${ECHO_T}$ac_header_compiler" >&6
6051
6052# Is the header present?
6053echo "$as_me:$LINENO: checking $ac_header presence" >&5
6054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6055cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h.  */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h.  */
6061#include <$ac_header>
6062_ACEOF
6063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6065  ac_status=$?
6066  grep -v '^ *+' conftest.er1 >conftest.err
6067  rm -f conftest.er1
6068  cat conftest.err >&5
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); } >/dev/null; then
6071  if test -s conftest.err; then
6072    ac_cpp_err=$ac_c_preproc_warn_flag
6073    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6074  else
6075    ac_cpp_err=
6076  fi
6077else
6078  ac_cpp_err=yes
6079fi
6080if test -z "$ac_cpp_err"; then
6081  ac_header_preproc=yes
6082else
6083  echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086  ac_header_preproc=no
6087fi
6088rm -f conftest.err conftest.$ac_ext
6089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6090echo "${ECHO_T}$ac_header_preproc" >&6
6091
6092# So?  What about this header?
6093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6094  yes:no: )
6095    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6097    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6099    ac_header_preproc=yes
6100    ;;
6101  no:yes:* )
6102    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6104    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6105echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6106    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6108    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6109echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6110    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6112    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6114    (
6115      cat <<\_ASBOX
6116## ---------------------------------------------- ##
6117## Report this to orxonox-dev at mail.datacore.ch ##
6118## ---------------------------------------------- ##
6119_ASBOX
6120    ) |
6121      sed "s/^/$as_me: WARNING:     /" >&2
6122    ;;
6123esac
6124echo "$as_me:$LINENO: checking for $ac_header" >&5
6125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6126if eval "test \"\${$as_ac_Header+set}\" = set"; then
6127  echo $ECHO_N "(cached) $ECHO_C" >&6
6128else
6129  eval "$as_ac_Header=\$ac_header_preproc"
6130fi
6131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6133
6134fi
6135if test `eval echo '${'$as_ac_Header'}'` = yes; then
6136  cat >>confdefs.h <<_ACEOF
6137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6138_ACEOF
6139
6140else
6141  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6142echo "$as_me: error: cannot find openAL header." >&2;}
6143   { (exit 1); exit 1; }; }
6144fi
6145
6146done
6147
6148# checking for openAL-lib
6149  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6150echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6151if test "${ac_cv_lib_openal_main+set}" = set; then
6152  echo $ECHO_N "(cached) $ECHO_C" >&6
6153else
6154  ac_check_lib_save_LIBS=$LIBS
6155LIBS="-lopenal  $LIBS"
6156cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h.  */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h.  */
6162
6163
6164int
6165main ()
6166{
6167main ();
6168  ;
6169  return 0;
6170}
6171_ACEOF
6172rm -f conftest.$ac_objext conftest$ac_exeext
6173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174  (eval $ac_link) 2>conftest.er1
6175  ac_status=$?
6176  grep -v '^ *+' conftest.er1 >conftest.err
6177  rm -f conftest.er1
6178  cat conftest.err >&5
6179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180  (exit $ac_status); } &&
6181         { ac_try='test -z "$ac_c_werror_flag"
6182                         || test ! -s conftest.err'
6183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184  (eval $ac_try) 2>&5
6185  ac_status=$?
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); }; } &&
6188         { ac_try='test -s conftest$ac_exeext'
6189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190  (eval $ac_try) 2>&5
6191  ac_status=$?
6192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193  (exit $ac_status); }; }; then
6194  ac_cv_lib_openal_main=yes
6195else
6196  echo "$as_me: failed program was:" >&5
6197sed 's/^/| /' conftest.$ac_ext >&5
6198
6199ac_cv_lib_openal_main=no
6200fi
6201rm -f conftest.err conftest.$ac_objext \
6202      conftest$ac_exeext conftest.$ac_ext
6203LIBS=$ac_check_lib_save_LIBS
6204fi
6205echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6206echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6207if test $ac_cv_lib_openal_main = yes; then
6208  FOUND_openal=yes
6209fi
6210
6211     if test x$FOUND_openal = xyes ; then
6212       LIBS="$LIBS -lopenal"
6213     else
6214        echo "------------------"
6215        echo "openal library not found."
6216        echo "please install the openal library, which can be found at http://www.openal.org"
6217        echo "------------------"
6218        exit -1
6219     fi
6220
6221# checking for SDL
6222  echo "$as_me:$LINENO: checking for SDL-version" >&5
6223echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6224  SDL_VERSION=`sdl-config --version`
6225  echo $SDL_VERSION
6226
6227   CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
6228
6229for ac_header in SDL.h
6230do
6231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6232if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233  echo "$as_me:$LINENO: checking for $ac_header" >&5
6234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6235if eval "test \"\${$as_ac_Header+set}\" = set"; then
6236  echo $ECHO_N "(cached) $ECHO_C" >&6
6237fi
6238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6240else
6241  # Is the header compilable?
6242echo "$as_me:$LINENO: checking $ac_header usability" >&5
6243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6244cat >conftest.$ac_ext <<_ACEOF
6245/* confdefs.h.  */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
6249/* end confdefs.h.  */
6250$ac_includes_default
6251#include <$ac_header>
6252_ACEOF
6253rm -f conftest.$ac_objext
6254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255  (eval $ac_compile) 2>conftest.er1
6256  ac_status=$?
6257  grep -v '^ *+' conftest.er1 >conftest.err
6258  rm -f conftest.er1
6259  cat conftest.err >&5
6260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261  (exit $ac_status); } &&
6262         { ac_try='test -z "$ac_c_werror_flag"
6263                         || test ! -s conftest.err'
6264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265  (eval $ac_try) 2>&5
6266  ac_status=$?
6267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268  (exit $ac_status); }; } &&
6269         { ac_try='test -s conftest.$ac_objext'
6270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271  (eval $ac_try) 2>&5
6272  ac_status=$?
6273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274  (exit $ac_status); }; }; then
6275  ac_header_compiler=yes
6276else
6277  echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280ac_header_compiler=no
6281fi
6282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6284echo "${ECHO_T}$ac_header_compiler" >&6
6285
6286# Is the header present?
6287echo "$as_me:$LINENO: checking $ac_header presence" >&5
6288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6289cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h.  */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h.  */
6295#include <$ac_header>
6296_ACEOF
6297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6299  ac_status=$?
6300  grep -v '^ *+' conftest.er1 >conftest.err
6301  rm -f conftest.er1
6302  cat conftest.err >&5
6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304  (exit $ac_status); } >/dev/null; then
6305  if test -s conftest.err; then
6306    ac_cpp_err=$ac_c_preproc_warn_flag
6307    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6308  else
6309    ac_cpp_err=
6310  fi
6311else
6312  ac_cpp_err=yes
6313fi
6314if test -z "$ac_cpp_err"; then
6315  ac_header_preproc=yes
6316else
6317  echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320  ac_header_preproc=no
6321fi
6322rm -f conftest.err conftest.$ac_ext
6323echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6324echo "${ECHO_T}$ac_header_preproc" >&6
6325
6326# So?  What about this header?
6327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6328  yes:no: )
6329    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6331    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6333    ac_header_preproc=yes
6334    ;;
6335  no:yes:* )
6336    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6338    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6339echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6340    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6342    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6343echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6344    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6346    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6348    (
6349      cat <<\_ASBOX
6350## ---------------------------------------------- ##
6351## Report this to orxonox-dev at mail.datacore.ch ##
6352## ---------------------------------------------- ##
6353_ASBOX
6354    ) |
6355      sed "s/^/$as_me: WARNING:     /" >&2
6356    ;;
6357esac
6358echo "$as_me:$LINENO: checking for $ac_header" >&5
6359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6360if eval "test \"\${$as_ac_Header+set}\" = set"; then
6361  echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363  eval "$as_ac_Header=\$ac_header_preproc"
6364fi
6365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6367
6368fi
6369if test `eval echo '${'$as_ac_Header'}'` = yes; then
6370  cat >>confdefs.h <<_ACEOF
6371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6372_ACEOF
6373
6374else
6375
6376for ac_header in SDL/SDL.h
6377do
6378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6379if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380  echo "$as_me:$LINENO: checking for $ac_header" >&5
6381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6382if eval "test \"\${$as_ac_Header+set}\" = set"; then
6383  echo $ECHO_N "(cached) $ECHO_C" >&6
6384fi
6385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387else
6388  # Is the header compilable?
6389echo "$as_me:$LINENO: checking $ac_header usability" >&5
6390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6391cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h.  */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h.  */
6397$ac_includes_default
6398#include <$ac_header>
6399_ACEOF
6400rm -f conftest.$ac_objext
6401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402  (eval $ac_compile) 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } &&
6409         { ac_try='test -z "$ac_c_werror_flag"
6410                         || test ! -s conftest.err'
6411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412  (eval $ac_try) 2>&5
6413  ac_status=$?
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); }; } &&
6416         { ac_try='test -s conftest.$ac_objext'
6417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418  (eval $ac_try) 2>&5
6419  ac_status=$?
6420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421  (exit $ac_status); }; }; then
6422  ac_header_compiler=yes
6423else
6424  echo "$as_me: failed program was:" >&5
6425sed 's/^/| /' conftest.$ac_ext >&5
6426
6427ac_header_compiler=no
6428fi
6429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6431echo "${ECHO_T}$ac_header_compiler" >&6
6432
6433# Is the header present?
6434echo "$as_me:$LINENO: checking $ac_header presence" >&5
6435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6436cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h.  */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h.  */
6442#include <$ac_header>
6443_ACEOF
6444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6445  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6446  ac_status=$?
6447  grep -v '^ *+' conftest.er1 >conftest.err
6448  rm -f conftest.er1
6449  cat conftest.err >&5
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); } >/dev/null; then
6452  if test -s conftest.err; then
6453    ac_cpp_err=$ac_c_preproc_warn_flag
6454    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6455  else
6456    ac_cpp_err=
6457  fi
6458else
6459  ac_cpp_err=yes
6460fi
6461if test -z "$ac_cpp_err"; then
6462  ac_header_preproc=yes
6463else
6464  echo "$as_me: failed program was:" >&5
6465sed 's/^/| /' conftest.$ac_ext >&5
6466
6467  ac_header_preproc=no
6468fi
6469rm -f conftest.err conftest.$ac_ext
6470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6471echo "${ECHO_T}$ac_header_preproc" >&6
6472
6473# So?  What about this header?
6474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6475  yes:no: )
6476    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6478    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6480    ac_header_preproc=yes
6481    ;;
6482  no:yes:* )
6483    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6485    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6486echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6487    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6489    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6490echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6491    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6493    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495    (
6496      cat <<\_ASBOX
6497## ---------------------------------------------- ##
6498## Report this to orxonox-dev at mail.datacore.ch ##
6499## ---------------------------------------------- ##
6500_ASBOX
6501    ) |
6502      sed "s/^/$as_me: WARNING:     /" >&2
6503    ;;
6504esac
6505echo "$as_me:$LINENO: checking for $ac_header" >&5
6506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510  eval "$as_ac_Header=\$ac_header_preproc"
6511fi
6512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514
6515fi
6516if test `eval echo '${'$as_ac_Header'}'` = yes; then
6517  cat >>confdefs.h <<_ACEOF
6518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519_ACEOF
6520
6521else
6522  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
6523echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
6524   { (exit 1); exit 1; }; }
6525fi
6526
6527done
6528
6529fi
6530
6531done
6532
6533
6534   LIBS="`sdl-config --libs` $LIBS"
6535    ;;
6536
6537#############
6538#-----------#
6539# MAC -OS X #
6540#-----------#
6541#############
6542 *darwin*)
6543 echo "OS X detected"
6544
6545 osX="yes"
6546
6547 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
6548# checking gl header
6549
6550for ac_header in OpenGL/gl.h
6551do
6552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6553if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554  echo "$as_me:$LINENO: checking for $ac_header" >&5
6555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6556if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557  echo $ECHO_N "(cached) $ECHO_C" >&6
6558fi
6559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6561else
6562  # Is the header compilable?
6563echo "$as_me:$LINENO: checking $ac_header usability" >&5
6564echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6565cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h.  */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h.  */
6571$ac_includes_default
6572#include <$ac_header>
6573_ACEOF
6574rm -f conftest.$ac_objext
6575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576  (eval $ac_compile) 2>conftest.er1
6577  ac_status=$?
6578  grep -v '^ *+' conftest.er1 >conftest.err
6579  rm -f conftest.er1
6580  cat conftest.err >&5
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); } &&
6583         { ac_try='test -z "$ac_c_werror_flag"
6584                         || test ! -s conftest.err'
6585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586  (eval $ac_try) 2>&5
6587  ac_status=$?
6588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589  (exit $ac_status); }; } &&
6590         { ac_try='test -s conftest.$ac_objext'
6591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592  (eval $ac_try) 2>&5
6593  ac_status=$?
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); }; }; then
6596  ac_header_compiler=yes
6597else
6598  echo "$as_me: failed program was:" >&5
6599sed 's/^/| /' conftest.$ac_ext >&5
6600
6601ac_header_compiler=no
6602fi
6603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6604echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6605echo "${ECHO_T}$ac_header_compiler" >&6
6606
6607# Is the header present?
6608echo "$as_me:$LINENO: checking $ac_header presence" >&5
6609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6610cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h.  */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h.  */
6616#include <$ac_header>
6617_ACEOF
6618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6619  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6620  ac_status=$?
6621  grep -v '^ *+' conftest.er1 >conftest.err
6622  rm -f conftest.er1
6623  cat conftest.err >&5
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); } >/dev/null; then
6626  if test -s conftest.err; then
6627    ac_cpp_err=$ac_c_preproc_warn_flag
6628    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6629  else
6630    ac_cpp_err=
6631  fi
6632else
6633  ac_cpp_err=yes
6634fi
6635if test -z "$ac_cpp_err"; then
6636  ac_header_preproc=yes
6637else
6638  echo "$as_me: failed program was:" >&5
6639sed 's/^/| /' conftest.$ac_ext >&5
6640
6641  ac_header_preproc=no
6642fi
6643rm -f conftest.err conftest.$ac_ext
6644echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6645echo "${ECHO_T}$ac_header_preproc" >&6
6646
6647# So?  What about this header?
6648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6649  yes:no: )
6650    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6652    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6654    ac_header_preproc=yes
6655    ;;
6656  no:yes:* )
6657    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6659    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6660echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6661    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6663    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6664echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6665    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6667    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6669    (
6670      cat <<\_ASBOX
6671## ---------------------------------------------- ##
6672## Report this to orxonox-dev at mail.datacore.ch ##
6673## ---------------------------------------------- ##
6674_ASBOX
6675    ) |
6676      sed "s/^/$as_me: WARNING:     /" >&2
6677    ;;
6678esac
6679echo "$as_me:$LINENO: checking for $ac_header" >&5
6680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6681if eval "test \"\${$as_ac_Header+set}\" = set"; then
6682  echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684  eval "$as_ac_Header=\$ac_header_preproc"
6685fi
6686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6688
6689fi
6690if test `eval echo '${'$as_ac_Header'}'` = yes; then
6691  cat >>confdefs.h <<_ACEOF
6692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6693_ACEOF
6694
6695else
6696  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6697echo "$as_me: error: cannot find opengl headers" >&2;}
6698   { (exit 1); exit 1; }; }
6699fi
6700
6701done
6702
6703# cheking for GLU-header
6704
6705for ac_header in OpenGL/glu.h
6706do
6707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6708if eval "test \"\${$as_ac_Header+set}\" = set"; then
6709  echo "$as_me:$LINENO: checking for $ac_header" >&5
6710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6711if eval "test \"\${$as_ac_Header+set}\" = set"; then
6712  echo $ECHO_N "(cached) $ECHO_C" >&6
6713fi
6714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6716else
6717  # Is the header compilable?
6718echo "$as_me:$LINENO: checking $ac_header usability" >&5
6719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6720cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h.  */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h.  */
6726$ac_includes_default
6727#include <$ac_header>
6728_ACEOF
6729rm -f conftest.$ac_objext
6730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731  (eval $ac_compile) 2>conftest.er1
6732  ac_status=$?
6733  grep -v '^ *+' conftest.er1 >conftest.err
6734  rm -f conftest.er1
6735  cat conftest.err >&5
6736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737  (exit $ac_status); } &&
6738         { ac_try='test -z "$ac_c_werror_flag"
6739                         || test ! -s conftest.err'
6740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741  (eval $ac_try) 2>&5
6742  ac_status=$?
6743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744  (exit $ac_status); }; } &&
6745         { ac_try='test -s conftest.$ac_objext'
6746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747  (eval $ac_try) 2>&5
6748  ac_status=$?
6749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750  (exit $ac_status); }; }; then
6751  ac_header_compiler=yes
6752else
6753  echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756ac_header_compiler=no
6757fi
6758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760echo "${ECHO_T}$ac_header_compiler" >&6
6761
6762# Is the header present?
6763echo "$as_me:$LINENO: checking $ac_header presence" >&5
6764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6765cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h.  */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h.  */
6771#include <$ac_header>
6772_ACEOF
6773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6774  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6775  ac_status=$?
6776  grep -v '^ *+' conftest.er1 >conftest.err
6777  rm -f conftest.er1
6778  cat conftest.err >&5
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); } >/dev/null; then
6781  if test -s conftest.err; then
6782    ac_cpp_err=$ac_c_preproc_warn_flag
6783    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6784  else
6785    ac_cpp_err=
6786  fi
6787else
6788  ac_cpp_err=yes
6789fi
6790if test -z "$ac_cpp_err"; then
6791  ac_header_preproc=yes
6792else
6793  echo "$as_me: failed program was:" >&5
6794sed 's/^/| /' conftest.$ac_ext >&5
6795
6796  ac_header_preproc=no
6797fi
6798rm -f conftest.err conftest.$ac_ext
6799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6800echo "${ECHO_T}$ac_header_preproc" >&6
6801
6802# So?  What about this header?
6803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6804  yes:no: )
6805    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6807    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6809    ac_header_preproc=yes
6810    ;;
6811  no:yes:* )
6812    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6814    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6815echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6816    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6818    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6819echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6820    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6822    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6824    (
6825      cat <<\_ASBOX
6826## ---------------------------------------------- ##
6827## Report this to orxonox-dev at mail.datacore.ch ##
6828## ---------------------------------------------- ##
6829_ASBOX
6830    ) |
6831      sed "s/^/$as_me: WARNING:     /" >&2
6832    ;;
6833esac
6834echo "$as_me:$LINENO: checking for $ac_header" >&5
6835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6836if eval "test \"\${$as_ac_Header+set}\" = set"; then
6837  echo $ECHO_N "(cached) $ECHO_C" >&6
6838else
6839  eval "$as_ac_Header=\$ac_header_preproc"
6840fi
6841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6843
6844fi
6845if test `eval echo '${'$as_ac_Header'}'` = yes; then
6846  cat >>confdefs.h <<_ACEOF
6847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6848_ACEOF
6849
6850else
6851  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6852echo "$as_me: error: cannot find opengl headers" >&2;}
6853   { (exit 1); exit 1; }; }
6854fi
6855
6856done
6857
6858
6859   LIBS="$LIBS -framework OpenGL"
6860
6861
6862## SDL-check
6863       SDL_CFLAGS=`sdl-config --cflags`
6864       SDL_LIBS=`sdl-config --libs`
6865       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6866       LIBS="$LIBS $SDL_LIBS"
6867
6868
6869# checking for SDL-headers
6870#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6871#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6872
6873## checking for SDL
6874#    SDL_VERSION=1.2.7
6875#    AM_PATH_SDL($SDL_VERSION,
6876#      :,
6877#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6878#      )
6879
6880
6881    ;;
6882
6883  *)
6884    ;;
6885esac
6886
6887
6888
6889###################################
6890## CHECKING FOR HEADERS AND LIBS ##
6891###################################
6892
6893#---------#
6894# SDL_ttf #
6895#---------#
6896# checking for SDL_ttf-headers
6897
6898for ac_header in SDL_ttf.h
6899do
6900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6901if eval "test \"\${$as_ac_Header+set}\" = set"; then
6902  echo "$as_me:$LINENO: checking for $ac_header" >&5
6903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6904if eval "test \"\${$as_ac_Header+set}\" = set"; then
6905  echo $ECHO_N "(cached) $ECHO_C" >&6
6906fi
6907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6909else
6910  # Is the header compilable?
6911echo "$as_me:$LINENO: checking $ac_header usability" >&5
6912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6913cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h.  */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h.  */
6919$ac_includes_default
6920#include <$ac_header>
6921_ACEOF
6922rm -f conftest.$ac_objext
6923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924  (eval $ac_compile) 2>conftest.er1
6925  ac_status=$?
6926  grep -v '^ *+' conftest.er1 >conftest.err
6927  rm -f conftest.er1
6928  cat conftest.err >&5
6929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930  (exit $ac_status); } &&
6931         { ac_try='test -z "$ac_c_werror_flag"
6932                         || test ! -s conftest.err'
6933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934  (eval $ac_try) 2>&5
6935  ac_status=$?
6936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937  (exit $ac_status); }; } &&
6938         { ac_try='test -s conftest.$ac_objext'
6939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940  (eval $ac_try) 2>&5
6941  ac_status=$?
6942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943  (exit $ac_status); }; }; then
6944  ac_header_compiler=yes
6945else
6946  echo "$as_me: failed program was:" >&5
6947sed 's/^/| /' conftest.$ac_ext >&5
6948
6949ac_header_compiler=no
6950fi
6951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6953echo "${ECHO_T}$ac_header_compiler" >&6
6954
6955# Is the header present?
6956echo "$as_me:$LINENO: checking $ac_header presence" >&5
6957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6958cat >conftest.$ac_ext <<_ACEOF
6959/* confdefs.h.  */
6960_ACEOF
6961cat confdefs.h >>conftest.$ac_ext
6962cat >>conftest.$ac_ext <<_ACEOF
6963/* end confdefs.h.  */
6964#include <$ac_header>
6965_ACEOF
6966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6967  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6968  ac_status=$?
6969  grep -v '^ *+' conftest.er1 >conftest.err
6970  rm -f conftest.er1
6971  cat conftest.err >&5
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); } >/dev/null; then
6974  if test -s conftest.err; then
6975    ac_cpp_err=$ac_c_preproc_warn_flag
6976    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6977  else
6978    ac_cpp_err=
6979  fi
6980else
6981  ac_cpp_err=yes
6982fi
6983if test -z "$ac_cpp_err"; then
6984  ac_header_preproc=yes
6985else
6986  echo "$as_me: failed program was:" >&5
6987sed 's/^/| /' conftest.$ac_ext >&5
6988
6989  ac_header_preproc=no
6990fi
6991rm -f conftest.err conftest.$ac_ext
6992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6993echo "${ECHO_T}$ac_header_preproc" >&6
6994
6995# So?  What about this header?
6996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6997  yes:no: )
6998    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7000    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7002    ac_header_preproc=yes
7003    ;;
7004  no:yes:* )
7005    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7007    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7008echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7009    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7011    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7012echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7015    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7017    (
7018      cat <<\_ASBOX
7019## ---------------------------------------------- ##
7020## Report this to orxonox-dev at mail.datacore.ch ##
7021## ---------------------------------------------- ##
7022_ASBOX
7023    ) |
7024      sed "s/^/$as_me: WARNING:     /" >&2
7025    ;;
7026esac
7027echo "$as_me:$LINENO: checking for $ac_header" >&5
7028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7029if eval "test \"\${$as_ac_Header+set}\" = set"; then
7030  echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032  eval "$as_ac_Header=\$ac_header_preproc"
7033fi
7034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7036
7037fi
7038if test `eval echo '${'$as_ac_Header'}'` = yes; then
7039  cat >>confdefs.h <<_ACEOF
7040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7041_ACEOF
7042
7043else
7044
7045for ac_header in SDL/SDL_ttf.h
7046do
7047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7048if eval "test \"\${$as_ac_Header+set}\" = set"; then
7049  echo "$as_me:$LINENO: checking for $ac_header" >&5
7050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7051if eval "test \"\${$as_ac_Header+set}\" = set"; then
7052  echo $ECHO_N "(cached) $ECHO_C" >&6
7053fi
7054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7056else
7057  # Is the header compilable?
7058echo "$as_me:$LINENO: checking $ac_header usability" >&5
7059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7060cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h.  */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h.  */
7066$ac_includes_default
7067#include <$ac_header>
7068_ACEOF
7069rm -f conftest.$ac_objext
7070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071  (eval $ac_compile) 2>conftest.er1
7072  ac_status=$?
7073  grep -v '^ *+' conftest.er1 >conftest.err
7074  rm -f conftest.er1
7075  cat conftest.err >&5
7076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); } &&
7078         { ac_try='test -z "$ac_c_werror_flag"
7079                         || test ! -s conftest.err'
7080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081  (eval $ac_try) 2>&5
7082  ac_status=$?
7083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084  (exit $ac_status); }; } &&
7085         { ac_try='test -s conftest.$ac_objext'
7086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087  (eval $ac_try) 2>&5
7088  ac_status=$?
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); }; }; then
7091  ac_header_compiler=yes
7092else
7093  echo "$as_me: failed program was:" >&5
7094sed 's/^/| /' conftest.$ac_ext >&5
7095
7096ac_header_compiler=no
7097fi
7098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7100echo "${ECHO_T}$ac_header_compiler" >&6
7101
7102# Is the header present?
7103echo "$as_me:$LINENO: checking $ac_header presence" >&5
7104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7105cat >conftest.$ac_ext <<_ACEOF
7106/* confdefs.h.  */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h.  */
7111#include <$ac_header>
7112_ACEOF
7113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7114  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7115  ac_status=$?
7116  grep -v '^ *+' conftest.er1 >conftest.err
7117  rm -f conftest.er1
7118  cat conftest.err >&5
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); } >/dev/null; then
7121  if test -s conftest.err; then
7122    ac_cpp_err=$ac_c_preproc_warn_flag
7123    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7124  else
7125    ac_cpp_err=
7126  fi
7127else
7128  ac_cpp_err=yes
7129fi
7130if test -z "$ac_cpp_err"; then
7131  ac_header_preproc=yes
7132else
7133  echo "$as_me: failed program was:" >&5
7134sed 's/^/| /' conftest.$ac_ext >&5
7135
7136  ac_header_preproc=no
7137fi
7138rm -f conftest.err conftest.$ac_ext
7139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7140echo "${ECHO_T}$ac_header_preproc" >&6
7141
7142# So?  What about this header?
7143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7144  yes:no: )
7145    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7149    ac_header_preproc=yes
7150    ;;
7151  no:yes:* )
7152    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7154    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7155echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7156    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7158    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7159echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7160    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7162    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7164    (
7165      cat <<\_ASBOX
7166## ---------------------------------------------- ##
7167## Report this to orxonox-dev at mail.datacore.ch ##
7168## ---------------------------------------------- ##
7169_ASBOX
7170    ) |
7171      sed "s/^/$as_me: WARNING:     /" >&2
7172    ;;
7173esac
7174echo "$as_me:$LINENO: checking for $ac_header" >&5
7175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7176if eval "test \"\${$as_ac_Header+set}\" = set"; then
7177  echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179  eval "$as_ac_Header=\$ac_header_preproc"
7180fi
7181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7183
7184fi
7185if test `eval echo '${'$as_ac_Header'}'` = yes; then
7186  cat >>confdefs.h <<_ACEOF
7187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7188_ACEOF
7189
7190else
7191  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7192echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7193   { (exit 1); exit 1; }; }
7194fi
7195
7196done
7197
7198fi
7199
7200done
7201
7202# checking for SDL_ttf-lib
7203  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7204echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7205if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7206  echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208  ac_check_lib_save_LIBS=$LIBS
7209LIBS="-lSDL_ttf  $LIBS"
7210cat >conftest.$ac_ext <<_ACEOF
7211/* confdefs.h.  */
7212_ACEOF
7213cat confdefs.h >>conftest.$ac_ext
7214cat >>conftest.$ac_ext <<_ACEOF
7215/* end confdefs.h.  */
7216
7217/* Override any gcc2 internal prototype to avoid an error.  */
7218#ifdef __cplusplus
7219extern "C"
7220#endif
7221/* We use char because int might match the return type of a gcc2
7222   builtin and then its argument prototype would still apply.  */
7223char TTF_OpenFont ();
7224int
7225main ()
7226{
7227TTF_OpenFont ();
7228  ;
7229  return 0;
7230}
7231_ACEOF
7232rm -f conftest.$ac_objext conftest$ac_exeext
7233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7234  (eval $ac_link) 2>conftest.er1
7235  ac_status=$?
7236  grep -v '^ *+' conftest.er1 >conftest.err
7237  rm -f conftest.er1
7238  cat conftest.err >&5
7239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240  (exit $ac_status); } &&
7241         { ac_try='test -z "$ac_c_werror_flag"
7242                         || test ! -s conftest.err'
7243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244  (eval $ac_try) 2>&5
7245  ac_status=$?
7246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247  (exit $ac_status); }; } &&
7248         { ac_try='test -s conftest$ac_exeext'
7249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250  (eval $ac_try) 2>&5
7251  ac_status=$?
7252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253  (exit $ac_status); }; }; then
7254  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7255else
7256  echo "$as_me: failed program was:" >&5
7257sed 's/^/| /' conftest.$ac_ext >&5
7258
7259ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7260fi
7261rm -f conftest.err conftest.$ac_objext \
7262      conftest$ac_exeext conftest.$ac_ext
7263LIBS=$ac_check_lib_save_LIBS
7264fi
7265echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7266echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7267if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7268  FOUND_SDL_ttf=yes
7269fi
7270
7271     if test x$FOUND_SDL_ttf = xyes ; then
7272       LIBS="$LIBS -lSDL_ttf"
7273     else
7274        echo "------------------"
7275        echo "SDL_ttf library not found."
7276        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7277        echo "------------------"
7278        exit -1
7279     fi
7280
7281
7282#-----------#
7283# SDL_Image #
7284#-----------#
7285# checking for SDL_image-headers
7286
7287for ac_header in SDL_image.h
7288do
7289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291  echo "$as_me:$LINENO: checking for $ac_header" >&5
7292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7293if eval "test \"\${$as_ac_Header+set}\" = set"; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295fi
7296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7298else
7299  # Is the header compilable?
7300echo "$as_me:$LINENO: checking $ac_header usability" >&5
7301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7302cat >conftest.$ac_ext <<_ACEOF
7303/* confdefs.h.  */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h.  */
7308$ac_includes_default
7309#include <$ac_header>
7310_ACEOF
7311rm -f conftest.$ac_objext
7312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313  (eval $ac_compile) 2>conftest.er1
7314  ac_status=$?
7315  grep -v '^ *+' conftest.er1 >conftest.err
7316  rm -f conftest.er1
7317  cat conftest.err >&5
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); } &&
7320         { ac_try='test -z "$ac_c_werror_flag"
7321                         || test ! -s conftest.err'
7322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323  (eval $ac_try) 2>&5
7324  ac_status=$?
7325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326  (exit $ac_status); }; } &&
7327         { ac_try='test -s conftest.$ac_objext'
7328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329  (eval $ac_try) 2>&5
7330  ac_status=$?
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); }; }; then
7333  ac_header_compiler=yes
7334else
7335  echo "$as_me: failed program was:" >&5
7336sed 's/^/| /' conftest.$ac_ext >&5
7337
7338ac_header_compiler=no
7339fi
7340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7342echo "${ECHO_T}$ac_header_compiler" >&6
7343
7344# Is the header present?
7345echo "$as_me:$LINENO: checking $ac_header presence" >&5
7346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7347cat >conftest.$ac_ext <<_ACEOF
7348/* confdefs.h.  */
7349_ACEOF
7350cat confdefs.h >>conftest.$ac_ext
7351cat >>conftest.$ac_ext <<_ACEOF
7352/* end confdefs.h.  */
7353#include <$ac_header>
7354_ACEOF
7355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7356  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7357  ac_status=$?
7358  grep -v '^ *+' conftest.er1 >conftest.err
7359  rm -f conftest.er1
7360  cat conftest.err >&5
7361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362  (exit $ac_status); } >/dev/null; then
7363  if test -s conftest.err; then
7364    ac_cpp_err=$ac_c_preproc_warn_flag
7365    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7366  else
7367    ac_cpp_err=
7368  fi
7369else
7370  ac_cpp_err=yes
7371fi
7372if test -z "$ac_cpp_err"; then
7373  ac_header_preproc=yes
7374else
7375  echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
7378  ac_header_preproc=no
7379fi
7380rm -f conftest.err conftest.$ac_ext
7381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7382echo "${ECHO_T}$ac_header_preproc" >&6
7383
7384# So?  What about this header?
7385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7386  yes:no: )
7387    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7389    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7391    ac_header_preproc=yes
7392    ;;
7393  no:yes:* )
7394    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7396    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7397echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7398    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7400    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7401echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7402    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7404    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7406    (
7407      cat <<\_ASBOX
7408## ---------------------------------------------- ##
7409## Report this to orxonox-dev at mail.datacore.ch ##
7410## ---------------------------------------------- ##
7411_ASBOX
7412    ) |
7413      sed "s/^/$as_me: WARNING:     /" >&2
7414    ;;
7415esac
7416echo "$as_me:$LINENO: checking for $ac_header" >&5
7417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7418if eval "test \"\${$as_ac_Header+set}\" = set"; then
7419  echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421  eval "$as_ac_Header=\$ac_header_preproc"
7422fi
7423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7425
7426fi
7427if test `eval echo '${'$as_ac_Header'}'` = yes; then
7428  cat >>confdefs.h <<_ACEOF
7429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7430_ACEOF
7431
7432else
7433
7434for ac_header in SDL/SDL_image.h
7435do
7436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7437if eval "test \"\${$as_ac_Header+set}\" = set"; then
7438  echo "$as_me:$LINENO: checking for $ac_header" >&5
7439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7440if eval "test \"\${$as_ac_Header+set}\" = set"; then
7441  echo $ECHO_N "(cached) $ECHO_C" >&6
7442fi
7443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7445else
7446  # Is the header compilable?
7447echo "$as_me:$LINENO: checking $ac_header usability" >&5
7448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7449cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h.  */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h.  */
7455$ac_includes_default
7456#include <$ac_header>
7457_ACEOF
7458rm -f conftest.$ac_objext
7459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460  (eval $ac_compile) 2>conftest.er1
7461  ac_status=$?
7462  grep -v '^ *+' conftest.er1 >conftest.err
7463  rm -f conftest.er1
7464  cat conftest.err >&5
7465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466  (exit $ac_status); } &&
7467         { ac_try='test -z "$ac_c_werror_flag"
7468                         || test ! -s conftest.err'
7469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470  (eval $ac_try) 2>&5
7471  ac_status=$?
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); }; } &&
7474         { ac_try='test -s conftest.$ac_objext'
7475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476  (eval $ac_try) 2>&5
7477  ac_status=$?
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); }; }; then
7480  ac_header_compiler=yes
7481else
7482  echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
7485ac_header_compiler=no
7486fi
7487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7489echo "${ECHO_T}$ac_header_compiler" >&6
7490
7491# Is the header present?
7492echo "$as_me:$LINENO: checking $ac_header presence" >&5
7493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7494cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h.  */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h.  */
7500#include <$ac_header>
7501_ACEOF
7502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7503  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7504  ac_status=$?
7505  grep -v '^ *+' conftest.er1 >conftest.err
7506  rm -f conftest.er1
7507  cat conftest.err >&5
7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509  (exit $ac_status); } >/dev/null; then
7510  if test -s conftest.err; then
7511    ac_cpp_err=$ac_c_preproc_warn_flag
7512    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7513  else
7514    ac_cpp_err=
7515  fi
7516else
7517  ac_cpp_err=yes
7518fi
7519if test -z "$ac_cpp_err"; then
7520  ac_header_preproc=yes
7521else
7522  echo "$as_me: failed program was:" >&5
7523sed 's/^/| /' conftest.$ac_ext >&5
7524
7525  ac_header_preproc=no
7526fi
7527rm -f conftest.err conftest.$ac_ext
7528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7529echo "${ECHO_T}$ac_header_preproc" >&6
7530
7531# So?  What about this header?
7532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7533  yes:no: )
7534    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7536    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7538    ac_header_preproc=yes
7539    ;;
7540  no:yes:* )
7541    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7543    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7544echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7545    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7547    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7548echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7549    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7551    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7553    (
7554      cat <<\_ASBOX
7555## ---------------------------------------------- ##
7556## Report this to orxonox-dev at mail.datacore.ch ##
7557## ---------------------------------------------- ##
7558_ASBOX
7559    ) |
7560      sed "s/^/$as_me: WARNING:     /" >&2
7561    ;;
7562esac
7563echo "$as_me:$LINENO: checking for $ac_header" >&5
7564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7565if eval "test \"\${$as_ac_Header+set}\" = set"; then
7566  echo $ECHO_N "(cached) $ECHO_C" >&6
7567else
7568  eval "$as_ac_Header=\$ac_header_preproc"
7569fi
7570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7572
7573fi
7574if test `eval echo '${'$as_ac_Header'}'` = yes; then
7575  cat >>confdefs.h <<_ACEOF
7576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7577_ACEOF
7578
7579else
7580  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
7581echo "$as_me: error: SDL_image header not found." >&2;}
7582   { (exit 1); exit 1; }; }
7583fi
7584
7585done
7586
7587fi
7588
7589done
7590
7591# checking for SDL_image-lib
7592echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
7593echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
7594if test "${ac_cv_lib_SDL_image_main+set}" = set; then
7595  echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597  ac_check_lib_save_LIBS=$LIBS
7598LIBS="-lSDL_image  $LIBS"
7599cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h.  */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h.  */
7605
7606
7607int
7608main ()
7609{
7610main ();
7611  ;
7612  return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext conftest$ac_exeext
7616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617  (eval $ac_link) 2>conftest.er1
7618  ac_status=$?
7619  grep -v '^ *+' conftest.er1 >conftest.err
7620  rm -f conftest.er1
7621  cat conftest.err >&5
7622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623  (exit $ac_status); } &&
7624         { ac_try='test -z "$ac_c_werror_flag"
7625                         || test ! -s conftest.err'
7626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627  (eval $ac_try) 2>&5
7628  ac_status=$?
7629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630  (exit $ac_status); }; } &&
7631         { ac_try='test -s conftest$ac_exeext'
7632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633  (eval $ac_try) 2>&5
7634  ac_status=$?
7635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636  (exit $ac_status); }; }; then
7637  ac_cv_lib_SDL_image_main=yes
7638else
7639  echo "$as_me: failed program was:" >&5
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
7642ac_cv_lib_SDL_image_main=no
7643fi
7644rm -f conftest.err conftest.$ac_objext \
7645      conftest$ac_exeext conftest.$ac_ext
7646LIBS=$ac_check_lib_save_LIBS
7647fi
7648echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
7649echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
7650if test $ac_cv_lib_SDL_image_main = yes; then
7651  FOUND_SDL_image=yes
7652fi
7653
7654   if test x$FOUND_SDL_image = xyes ; then
7655     LIBS="$LIBS -lSDL_image"
7656   else
7657      echo "------------------"
7658      echo "SDL_image library not found."
7659      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
7660      echo "------------------"
7661      exit -1
7662   fi
7663
7664#-----#
7665# ogg #
7666#-----#
7667# checking for ogg-headers
7668
7669for ac_header in ogg/ogg.h
7670do
7671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672if eval "test \"\${$as_ac_Header+set}\" = set"; then
7673  echo "$as_me:$LINENO: checking for $ac_header" >&5
7674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7675if eval "test \"\${$as_ac_Header+set}\" = set"; then
7676  echo $ECHO_N "(cached) $ECHO_C" >&6
7677fi
7678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7680else
7681  # Is the header compilable?
7682echo "$as_me:$LINENO: checking $ac_header usability" >&5
7683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7684cat >conftest.$ac_ext <<_ACEOF
7685/* confdefs.h.  */
7686_ACEOF
7687cat confdefs.h >>conftest.$ac_ext
7688cat >>conftest.$ac_ext <<_ACEOF
7689/* end confdefs.h.  */
7690$ac_includes_default
7691#include <$ac_header>
7692_ACEOF
7693rm -f conftest.$ac_objext
7694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695  (eval $ac_compile) 2>conftest.er1
7696  ac_status=$?
7697  grep -v '^ *+' conftest.er1 >conftest.err
7698  rm -f conftest.er1
7699  cat conftest.err >&5
7700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701  (exit $ac_status); } &&
7702         { ac_try='test -z "$ac_c_werror_flag"
7703                         || test ! -s conftest.err'
7704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705  (eval $ac_try) 2>&5
7706  ac_status=$?
7707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); }; } &&
7709         { ac_try='test -s conftest.$ac_objext'
7710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711  (eval $ac_try) 2>&5
7712  ac_status=$?
7713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714  (exit $ac_status); }; }; then
7715  ac_header_compiler=yes
7716else
7717  echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720ac_header_compiler=no
7721fi
7722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7724echo "${ECHO_T}$ac_header_compiler" >&6
7725
7726# Is the header present?
7727echo "$as_me:$LINENO: checking $ac_header presence" >&5
7728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7729cat >conftest.$ac_ext <<_ACEOF
7730/* confdefs.h.  */
7731_ACEOF
7732cat confdefs.h >>conftest.$ac_ext
7733cat >>conftest.$ac_ext <<_ACEOF
7734/* end confdefs.h.  */
7735#include <$ac_header>
7736_ACEOF
7737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7738  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7739  ac_status=$?
7740  grep -v '^ *+' conftest.er1 >conftest.err
7741  rm -f conftest.er1
7742  cat conftest.err >&5
7743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744  (exit $ac_status); } >/dev/null; then
7745  if test -s conftest.err; then
7746    ac_cpp_err=$ac_c_preproc_warn_flag
7747    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7748  else
7749    ac_cpp_err=
7750  fi
7751else
7752  ac_cpp_err=yes
7753fi
7754if test -z "$ac_cpp_err"; then
7755  ac_header_preproc=yes
7756else
7757  echo "$as_me: failed program was:" >&5
7758sed 's/^/| /' conftest.$ac_ext >&5
7759
7760  ac_header_preproc=no
7761fi
7762rm -f conftest.err conftest.$ac_ext
7763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7764echo "${ECHO_T}$ac_header_preproc" >&6
7765
7766# So?  What about this header?
7767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7768  yes:no: )
7769    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7771    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7773    ac_header_preproc=yes
7774    ;;
7775  no:yes:* )
7776    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7778    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7779echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7780    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7782    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7783echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7786    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7788    (
7789      cat <<\_ASBOX
7790## ---------------------------------------------- ##
7791## Report this to orxonox-dev at mail.datacore.ch ##
7792## ---------------------------------------------- ##
7793_ASBOX
7794    ) |
7795      sed "s/^/$as_me: WARNING:     /" >&2
7796    ;;
7797esac
7798echo "$as_me:$LINENO: checking for $ac_header" >&5
7799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7800if eval "test \"\${$as_ac_Header+set}\" = set"; then
7801  echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803  eval "$as_ac_Header=\$ac_header_preproc"
7804fi
7805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7807
7808fi
7809if test `eval echo '${'$as_ac_Header'}'` = yes; then
7810  cat >>confdefs.h <<_ACEOF
7811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7812_ACEOF
7813
7814else
7815  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
7816echo "$as_me: error: cannot find ogg header." >&2;}
7817   { (exit 1); exit 1; }; }
7818fi
7819
7820done
7821
7822# checking for ogg-lib
7823  echo "$as_me:$LINENO: checking for main in -logg" >&5
7824echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
7825if test "${ac_cv_lib_ogg_main+set}" = set; then
7826  echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828  ac_check_lib_save_LIBS=$LIBS
7829LIBS="-logg  $LIBS"
7830cat >conftest.$ac_ext <<_ACEOF
7831/* confdefs.h.  */
7832_ACEOF
7833cat confdefs.h >>conftest.$ac_ext
7834cat >>conftest.$ac_ext <<_ACEOF
7835/* end confdefs.h.  */
7836
7837
7838int
7839main ()
7840{
7841main ();
7842  ;
7843  return 0;
7844}
7845_ACEOF
7846rm -f conftest.$ac_objext conftest$ac_exeext
7847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848  (eval $ac_link) 2>conftest.er1
7849  ac_status=$?
7850  grep -v '^ *+' conftest.er1 >conftest.err
7851  rm -f conftest.er1
7852  cat conftest.err >&5
7853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854  (exit $ac_status); } &&
7855         { ac_try='test -z "$ac_c_werror_flag"
7856                         || test ! -s conftest.err'
7857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858  (eval $ac_try) 2>&5
7859  ac_status=$?
7860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861  (exit $ac_status); }; } &&
7862         { ac_try='test -s conftest$ac_exeext'
7863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864  (eval $ac_try) 2>&5
7865  ac_status=$?
7866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867  (exit $ac_status); }; }; then
7868  ac_cv_lib_ogg_main=yes
7869else
7870  echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873ac_cv_lib_ogg_main=no
7874fi
7875rm -f conftest.err conftest.$ac_objext \
7876      conftest$ac_exeext conftest.$ac_ext
7877LIBS=$ac_check_lib_save_LIBS
7878fi
7879echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
7880echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
7881if test $ac_cv_lib_ogg_main = yes; then
7882  FOUND_ogg=yes
7883fi
7884
7885     if test x$FOUND_ogg = xyes ; then
7886       LIBS="$LIBS -logg"
7887     else
7888        echo "------------------"
7889        echo "ogg library not found."
7890        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7891        echo "------------------"
7892        exit -1
7893     fi
7894
7895#--------#
7896# vorbis #
7897#--------#
7898# checking for vorbis-lib
7899  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
7900echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
7901if test "${ac_cv_lib_vorbis_main+set}" = set; then
7902  echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904  ac_check_lib_save_LIBS=$LIBS
7905LIBS="-lvorbis  $LIBS"
7906cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h.  */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h.  */
7912
7913
7914int
7915main ()
7916{
7917main ();
7918  ;
7919  return 0;
7920}
7921_ACEOF
7922rm -f conftest.$ac_objext conftest$ac_exeext
7923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7924  (eval $ac_link) 2>conftest.er1
7925  ac_status=$?
7926  grep -v '^ *+' conftest.er1 >conftest.err
7927  rm -f conftest.er1
7928  cat conftest.err >&5
7929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930  (exit $ac_status); } &&
7931         { ac_try='test -z "$ac_c_werror_flag"
7932                         || test ! -s conftest.err'
7933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934  (eval $ac_try) 2>&5
7935  ac_status=$?
7936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937  (exit $ac_status); }; } &&
7938         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7944  ac_cv_lib_vorbis_main=yes
7945else
7946  echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949ac_cv_lib_vorbis_main=no
7950fi
7951rm -f conftest.err conftest.$ac_objext \
7952      conftest$ac_exeext conftest.$ac_ext
7953LIBS=$ac_check_lib_save_LIBS
7954fi
7955echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
7956echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
7957if test $ac_cv_lib_vorbis_main = yes; then
7958  FOUND_vorbis=yes
7959fi
7960
7961     if test x$FOUND_vorbis = xyes ; then
7962       LIBS="$LIBS -lvorbis"
7963     else
7964        echo "------------------"
7965        echo "vorbis library not found."
7966        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7967        echo "------------------"
7968        exit -1
7969     fi
7970
7971#------------#
7972# vorbisfile #
7973#------------#
7974# checking for vorbis-headers
7975
7976for ac_header in vorbis/vorbisfile.h
7977do
7978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7979if eval "test \"\${$as_ac_Header+set}\" = set"; then
7980  echo "$as_me:$LINENO: checking for $ac_header" >&5
7981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7982if eval "test \"\${$as_ac_Header+set}\" = set"; then
7983  echo $ECHO_N "(cached) $ECHO_C" >&6
7984fi
7985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7987else
7988  # Is the header compilable?
7989echo "$as_me:$LINENO: checking $ac_header usability" >&5
7990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7991cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h.  */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h.  */
7997$ac_includes_default
7998#include <$ac_header>
7999_ACEOF
8000rm -f conftest.$ac_objext
8001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002  (eval $ac_compile) 2>conftest.er1
8003  ac_status=$?
8004  grep -v '^ *+' conftest.er1 >conftest.err
8005  rm -f conftest.er1
8006  cat conftest.err >&5
8007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008  (exit $ac_status); } &&
8009         { ac_try='test -z "$ac_c_werror_flag"
8010                         || test ! -s conftest.err'
8011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012  (eval $ac_try) 2>&5
8013  ac_status=$?
8014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015  (exit $ac_status); }; } &&
8016         { ac_try='test -s conftest.$ac_objext'
8017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018  (eval $ac_try) 2>&5
8019  ac_status=$?
8020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021  (exit $ac_status); }; }; then
8022  ac_header_compiler=yes
8023else
8024  echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027ac_header_compiler=no
8028fi
8029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8030echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8031echo "${ECHO_T}$ac_header_compiler" >&6
8032
8033# Is the header present?
8034echo "$as_me:$LINENO: checking $ac_header presence" >&5
8035echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8036cat >conftest.$ac_ext <<_ACEOF
8037/* confdefs.h.  */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h.  */
8042#include <$ac_header>
8043_ACEOF
8044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8046  ac_status=$?
8047  grep -v '^ *+' conftest.er1 >conftest.err
8048  rm -f conftest.er1
8049  cat conftest.err >&5
8050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); } >/dev/null; then
8052  if test -s conftest.err; then
8053    ac_cpp_err=$ac_c_preproc_warn_flag
8054    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8055  else
8056    ac_cpp_err=
8057  fi
8058else
8059  ac_cpp_err=yes
8060fi
8061if test -z "$ac_cpp_err"; then
8062  ac_header_preproc=yes
8063else
8064  echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067  ac_header_preproc=no
8068fi
8069rm -f conftest.err conftest.$ac_ext
8070echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8071echo "${ECHO_T}$ac_header_preproc" >&6
8072
8073# So?  What about this header?
8074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8075  yes:no: )
8076    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8078    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8080    ac_header_preproc=yes
8081    ;;
8082  no:yes:* )
8083    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8085    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8086echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8087    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8089    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8090echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8091    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8093    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8095    (
8096      cat <<\_ASBOX
8097## ---------------------------------------------- ##
8098## Report this to orxonox-dev at mail.datacore.ch ##
8099## ---------------------------------------------- ##
8100_ASBOX
8101    ) |
8102      sed "s/^/$as_me: WARNING:     /" >&2
8103    ;;
8104esac
8105echo "$as_me:$LINENO: checking for $ac_header" >&5
8106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8107if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108  echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110  eval "$as_ac_Header=\$ac_header_preproc"
8111fi
8112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8114
8115fi
8116if test `eval echo '${'$as_ac_Header'}'` = yes; then
8117  cat >>confdefs.h <<_ACEOF
8118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8119_ACEOF
8120
8121else
8122  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8123echo "$as_me: error: cannot find vorbisfile header." >&2;}
8124   { (exit 1); exit 1; }; }
8125fi
8126
8127done
8128
8129# checking for vorbisfile-lib
8130  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8131echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8132if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8133  echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135  ac_check_lib_save_LIBS=$LIBS
8136LIBS="-lvorbisfile  $LIBS"
8137cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h.  */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h.  */
8143
8144
8145int
8146main ()
8147{
8148main ();
8149  ;
8150  return 0;
8151}
8152_ACEOF
8153rm -f conftest.$ac_objext conftest$ac_exeext
8154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155  (eval $ac_link) 2>conftest.er1
8156  ac_status=$?
8157  grep -v '^ *+' conftest.er1 >conftest.err
8158  rm -f conftest.er1
8159  cat conftest.err >&5
8160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161  (exit $ac_status); } &&
8162         { ac_try='test -z "$ac_c_werror_flag"
8163                         || test ! -s conftest.err'
8164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165  (eval $ac_try) 2>&5
8166  ac_status=$?
8167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168  (exit $ac_status); }; } &&
8169         { ac_try='test -s conftest$ac_exeext'
8170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171  (eval $ac_try) 2>&5
8172  ac_status=$?
8173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174  (exit $ac_status); }; }; then
8175  ac_cv_lib_vorbisfile_main=yes
8176else
8177  echo "$as_me: failed program was:" >&5
8178sed 's/^/| /' conftest.$ac_ext >&5
8179
8180ac_cv_lib_vorbisfile_main=no
8181fi
8182rm -f conftest.err conftest.$ac_objext \
8183      conftest$ac_exeext conftest.$ac_ext
8184LIBS=$ac_check_lib_save_LIBS
8185fi
8186echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8187echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8188if test $ac_cv_lib_vorbisfile_main = yes; then
8189  FOUND_vorbisfile=yes
8190fi
8191
8192     if test x$FOUND_vorbisfile = xyes ; then
8193       LIBS="$LIBS -lvorbisfile"
8194     else
8195        echo "------------------"
8196        echo "vorbisfile library not found."
8197        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8198        echo "------------------"
8199        exit -1
8200     fi
8201
8202#-----#
8203# GTK #
8204#-----#
8205if test x$def_gtk = xyes; then
8206        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
8207        echo "$as_me:$LINENO: checking for gtk2.0" >&5
8208echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
8209        if `$PKG_CONFIG --exists gtk+-2.0`; then
8210                echo "yes"
8211                have_gtk2=yes
8212                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8213                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8214
8215cat >>confdefs.h <<_ACEOF
8216#define HAVE_GTK2 1
8217_ACEOF
8218
8219                if test $DEBUG -ge 3; then
8220                 echo "cflags: $GTK2_CFLAGS"
8221                 echo "libs: $GTK2_LIBS"
8222                fi
8223        else
8224                echo "no"
8225        fi
8226
8227fi
8228
8229
8230
8231
8232if test x$have_gtk2 = xyes; then
8233  HAVE_GTK2_TRUE=
8234  HAVE_GTK2_FALSE='#'
8235else
8236  HAVE_GTK2_TRUE='#'
8237  HAVE_GTK2_FALSE=
8238fi
8239
8240
8241#---------#
8242# libcURL #
8243#---------#
8244if test x$def_curl = xyes; then
8245
8246
8247for ac_header in curl/curl.h
8248do
8249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8250if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251  echo "$as_me:$LINENO: checking for $ac_header" >&5
8252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254  echo $ECHO_N "(cached) $ECHO_C" >&6
8255fi
8256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8258else
8259  # Is the header compilable?
8260echo "$as_me:$LINENO: checking $ac_header usability" >&5
8261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8262cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h.  */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h.  */
8268$ac_includes_default
8269#include <$ac_header>
8270_ACEOF
8271rm -f conftest.$ac_objext
8272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273  (eval $ac_compile) 2>conftest.er1
8274  ac_status=$?
8275  grep -v '^ *+' conftest.er1 >conftest.err
8276  rm -f conftest.er1
8277  cat conftest.err >&5
8278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279  (exit $ac_status); } &&
8280         { ac_try='test -z "$ac_c_werror_flag"
8281                         || test ! -s conftest.err'
8282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283  (eval $ac_try) 2>&5
8284  ac_status=$?
8285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286  (exit $ac_status); }; } &&
8287         { ac_try='test -s conftest.$ac_objext'
8288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289  (eval $ac_try) 2>&5
8290  ac_status=$?
8291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292  (exit $ac_status); }; }; then
8293  ac_header_compiler=yes
8294else
8295  echo "$as_me: failed program was:" >&5
8296sed 's/^/| /' conftest.$ac_ext >&5
8297
8298ac_header_compiler=no
8299fi
8300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8302echo "${ECHO_T}$ac_header_compiler" >&6
8303
8304# Is the header present?
8305echo "$as_me:$LINENO: checking $ac_header presence" >&5
8306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8307cat >conftest.$ac_ext <<_ACEOF
8308/* confdefs.h.  */
8309_ACEOF
8310cat confdefs.h >>conftest.$ac_ext
8311cat >>conftest.$ac_ext <<_ACEOF
8312/* end confdefs.h.  */
8313#include <$ac_header>
8314_ACEOF
8315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8316  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8317  ac_status=$?
8318  grep -v '^ *+' conftest.er1 >conftest.err
8319  rm -f conftest.er1
8320  cat conftest.err >&5
8321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322  (exit $ac_status); } >/dev/null; then
8323  if test -s conftest.err; then
8324    ac_cpp_err=$ac_c_preproc_warn_flag
8325    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8326  else
8327    ac_cpp_err=
8328  fi
8329else
8330  ac_cpp_err=yes
8331fi
8332if test -z "$ac_cpp_err"; then
8333  ac_header_preproc=yes
8334else
8335  echo "$as_me: failed program was:" >&5
8336sed 's/^/| /' conftest.$ac_ext >&5
8337
8338  ac_header_preproc=no
8339fi
8340rm -f conftest.err conftest.$ac_ext
8341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8342echo "${ECHO_T}$ac_header_preproc" >&6
8343
8344# So?  What about this header?
8345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8346  yes:no: )
8347    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8351    ac_header_preproc=yes
8352    ;;
8353  no:yes:* )
8354    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8356    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8357echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8358    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8360    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8361echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8362    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8364    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8366    (
8367      cat <<\_ASBOX
8368## ---------------------------------------------- ##
8369## Report this to orxonox-dev at mail.datacore.ch ##
8370## ---------------------------------------------- ##
8371_ASBOX
8372    ) |
8373      sed "s/^/$as_me: WARNING:     /" >&2
8374    ;;
8375esac
8376echo "$as_me:$LINENO: checking for $ac_header" >&5
8377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8378if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379  echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381  eval "$as_ac_Header=\$ac_header_preproc"
8382fi
8383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8385
8386fi
8387if test `eval echo '${'$as_ac_Header'}'` = yes; then
8388  cat >>confdefs.h <<_ACEOF
8389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8390_ACEOF
8391 curlHeader="yes"
8392else
8393  curlHeader="no"
8394fi
8395
8396done
8397
8398 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
8399echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
8400if test "${ac_cv_lib_curl_main+set}" = set; then
8401  echo $ECHO_N "(cached) $ECHO_C" >&6
8402else
8403  ac_check_lib_save_LIBS=$LIBS
8404LIBS="-lcurl  $LIBS"
8405cat >conftest.$ac_ext <<_ACEOF
8406/* confdefs.h.  */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h.  */
8411
8412
8413int
8414main ()
8415{
8416main ();
8417  ;
8418  return 0;
8419}
8420_ACEOF
8421rm -f conftest.$ac_objext conftest$ac_exeext
8422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423  (eval $ac_link) 2>conftest.er1
8424  ac_status=$?
8425  grep -v '^ *+' conftest.er1 >conftest.err
8426  rm -f conftest.er1
8427  cat conftest.err >&5
8428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429  (exit $ac_status); } &&
8430         { ac_try='test -z "$ac_c_werror_flag"
8431                         || test ! -s conftest.err'
8432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433  (eval $ac_try) 2>&5
8434  ac_status=$?
8435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436  (exit $ac_status); }; } &&
8437         { ac_try='test -s conftest$ac_exeext'
8438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439  (eval $ac_try) 2>&5
8440  ac_status=$?
8441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442  (exit $ac_status); }; }; then
8443  ac_cv_lib_curl_main=yes
8444else
8445  echo "$as_me: failed program was:" >&5
8446sed 's/^/| /' conftest.$ac_ext >&5
8447
8448ac_cv_lib_curl_main=no
8449fi
8450rm -f conftest.err conftest.$ac_objext \
8451      conftest$ac_exeext conftest.$ac_ext
8452LIBS=$ac_check_lib_save_LIBS
8453fi
8454echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
8455echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
8456if test $ac_cv_lib_curl_main = yes; then
8457  FOUND_curl=yes
8458fi
8459
8460 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
8461  have_curl=yes
8462  CURL_LIBS=`curl-config --libs`
8463  CURLCFLAGS=`curl-config --cflags`
8464
8465cat >>confdefs.h <<_ACEOF
8466#define HAVE_CURL 1
8467_ACEOF
8468
8469 else
8470  have_curl=no
8471 fi
8472
8473fi
8474
8475
8476
8477
8478if test x$have_curl = xyes; then
8479  HAVE_CURL_TRUE=
8480  HAVE_CURL_FALSE='#'
8481else
8482  HAVE_CURL_TRUE='#'
8483  HAVE_CURL_FALSE=
8484fi
8485
8486
8487#--------#
8488# efence #
8489#--------#
8490if test x$def_efence = xyes ; then
8491  echo "$as_me:$LINENO: checking for main in -lefence" >&5
8492echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8493if test "${ac_cv_lib_efence_main+set}" = set; then
8494  echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496  ac_check_lib_save_LIBS=$LIBS
8497LIBS="-lefence  $LIBS"
8498cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h.  */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h.  */
8504
8505
8506int
8507main ()
8508{
8509main ();
8510  ;
8511  return 0;
8512}
8513_ACEOF
8514rm -f conftest.$ac_objext conftest$ac_exeext
8515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516  (eval $ac_link) 2>conftest.er1
8517  ac_status=$?
8518  grep -v '^ *+' conftest.er1 >conftest.err
8519  rm -f conftest.er1
8520  cat conftest.err >&5
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); } &&
8523         { ac_try='test -z "$ac_c_werror_flag"
8524                         || test ! -s conftest.err'
8525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526  (eval $ac_try) 2>&5
8527  ac_status=$?
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); }; } &&
8530         { ac_try='test -s conftest$ac_exeext'
8531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532  (eval $ac_try) 2>&5
8533  ac_status=$?
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); }; }; then
8536  ac_cv_lib_efence_main=yes
8537else
8538  echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541ac_cv_lib_efence_main=no
8542fi
8543rm -f conftest.err conftest.$ac_objext \
8544      conftest$ac_exeext conftest.$ac_ext
8545LIBS=$ac_check_lib_save_LIBS
8546fi
8547echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8548echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8549if test $ac_cv_lib_efence_main = yes; then
8550  FOUND_efence=yes
8551fi
8552
8553   if test x$FOUND_efence = xyes ; then
8554      LIBS="$LIBS -lefence"
8555   fi
8556
8557fi
8558
8559# FIXME: Replace `main' with a function in `-lm':
8560
8561echo "$as_me:$LINENO: checking for main in -lm" >&5
8562echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8563if test "${ac_cv_lib_m_main+set}" = set; then
8564  echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566  ac_check_lib_save_LIBS=$LIBS
8567LIBS="-lm  $LIBS"
8568cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h.  */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h.  */
8574
8575
8576int
8577main ()
8578{
8579main ();
8580  ;
8581  return 0;
8582}
8583_ACEOF
8584rm -f conftest.$ac_objext conftest$ac_exeext
8585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586  (eval $ac_link) 2>conftest.er1
8587  ac_status=$?
8588  grep -v '^ *+' conftest.er1 >conftest.err
8589  rm -f conftest.er1
8590  cat conftest.err >&5
8591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592  (exit $ac_status); } &&
8593         { ac_try='test -z "$ac_c_werror_flag"
8594                         || test ! -s conftest.err'
8595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596  (eval $ac_try) 2>&5
8597  ac_status=$?
8598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599  (exit $ac_status); }; } &&
8600         { ac_try='test -s conftest$ac_exeext'
8601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602  (eval $ac_try) 2>&5
8603  ac_status=$?
8604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605  (exit $ac_status); }; }; then
8606  ac_cv_lib_m_main=yes
8607else
8608  echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611ac_cv_lib_m_main=no
8612fi
8613rm -f conftest.err conftest.$ac_objext \
8614      conftest$ac_exeext conftest.$ac_ext
8615LIBS=$ac_check_lib_save_LIBS
8616fi
8617echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8618echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8619if test $ac_cv_lib_m_main = yes; then
8620  cat >>confdefs.h <<_ACEOF
8621#define HAVE_LIBM 1
8622_ACEOF
8623
8624  LIBS="-lm $LIBS"
8625
8626fi
8627
8628
8629
8630# Checks for header files.
8631echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8632echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8633if test "${ac_cv_header_stdc+set}" = set; then
8634  echo $ECHO_N "(cached) $ECHO_C" >&6
8635else
8636  cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h.  */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h.  */
8642#include <stdlib.h>
8643#include <stdarg.h>
8644#include <string.h>
8645#include <float.h>
8646
8647int
8648main ()
8649{
8650
8651  ;
8652  return 0;
8653}
8654_ACEOF
8655rm -f conftest.$ac_objext
8656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657  (eval $ac_compile) 2>conftest.er1
8658  ac_status=$?
8659  grep -v '^ *+' conftest.er1 >conftest.err
8660  rm -f conftest.er1
8661  cat conftest.err >&5
8662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663  (exit $ac_status); } &&
8664         { ac_try='test -z "$ac_c_werror_flag"
8665                         || test ! -s conftest.err'
8666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667  (eval $ac_try) 2>&5
8668  ac_status=$?
8669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670  (exit $ac_status); }; } &&
8671         { ac_try='test -s conftest.$ac_objext'
8672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673  (eval $ac_try) 2>&5
8674  ac_status=$?
8675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676  (exit $ac_status); }; }; then
8677  ac_cv_header_stdc=yes
8678else
8679  echo "$as_me: failed program was:" >&5
8680sed 's/^/| /' conftest.$ac_ext >&5
8681
8682ac_cv_header_stdc=no
8683fi
8684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8685
8686if test $ac_cv_header_stdc = yes; then
8687  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8688  cat >conftest.$ac_ext <<_ACEOF
8689/* confdefs.h.  */
8690_ACEOF
8691cat confdefs.h >>conftest.$ac_ext
8692cat >>conftest.$ac_ext <<_ACEOF
8693/* end confdefs.h.  */
8694#include <string.h>
8695
8696_ACEOF
8697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8698  $EGREP "memchr" >/dev/null 2>&1; then
8699  :
8700else
8701  ac_cv_header_stdc=no
8702fi
8703rm -f conftest*
8704
8705fi
8706
8707if test $ac_cv_header_stdc = yes; then
8708  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8709  cat >conftest.$ac_ext <<_ACEOF
8710/* confdefs.h.  */
8711_ACEOF
8712cat confdefs.h >>conftest.$ac_ext
8713cat >>conftest.$ac_ext <<_ACEOF
8714/* end confdefs.h.  */
8715#include <stdlib.h>
8716
8717_ACEOF
8718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719  $EGREP "free" >/dev/null 2>&1; then
8720  :
8721else
8722  ac_cv_header_stdc=no
8723fi
8724rm -f conftest*
8725
8726fi
8727
8728if test $ac_cv_header_stdc = yes; then
8729  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8730  if test "$cross_compiling" = yes; then
8731  :
8732else
8733  cat >conftest.$ac_ext <<_ACEOF
8734/* confdefs.h.  */
8735_ACEOF
8736cat confdefs.h >>conftest.$ac_ext
8737cat >>conftest.$ac_ext <<_ACEOF
8738/* end confdefs.h.  */
8739#include <ctype.h>
8740#if ((' ' & 0x0FF) == 0x020)
8741# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8742# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8743#else
8744# define ISLOWER(c) \
8745                   (('a' <= (c) && (c) <= 'i') \
8746                     || ('j' <= (c) && (c) <= 'r') \
8747                     || ('s' <= (c) && (c) <= 'z'))
8748# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8749#endif
8750
8751#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8752int
8753main ()
8754{
8755  int i;
8756  for (i = 0; i < 256; i++)
8757    if (XOR (islower (i), ISLOWER (i))
8758        || toupper (i) != TOUPPER (i))
8759      exit(2);
8760  exit (0);
8761}
8762_ACEOF
8763rm -f conftest$ac_exeext
8764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765  (eval $ac_link) 2>&5
8766  ac_status=$?
8767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770  (eval $ac_try) 2>&5
8771  ac_status=$?
8772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773  (exit $ac_status); }; }; then
8774  :
8775else
8776  echo "$as_me: program exited with status $ac_status" >&5
8777echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
8780( exit $ac_status )
8781ac_cv_header_stdc=no
8782fi
8783rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8784fi
8785fi
8786fi
8787echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8788echo "${ECHO_T}$ac_cv_header_stdc" >&6
8789if test $ac_cv_header_stdc = yes; then
8790
8791cat >>confdefs.h <<\_ACEOF
8792#define STDC_HEADERS 1
8793_ACEOF
8794
8795fi
8796
8797
8798
8799for ac_header in stdlib.h string.h
8800do
8801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8802if eval "test \"\${$as_ac_Header+set}\" = set"; then
8803  echo "$as_me:$LINENO: checking for $ac_header" >&5
8804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8805if eval "test \"\${$as_ac_Header+set}\" = set"; then
8806  echo $ECHO_N "(cached) $ECHO_C" >&6
8807fi
8808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8810else
8811  # Is the header compilable?
8812echo "$as_me:$LINENO: checking $ac_header usability" >&5
8813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8814cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h.  */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h.  */
8820$ac_includes_default
8821#include <$ac_header>
8822_ACEOF
8823rm -f conftest.$ac_objext
8824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8825  (eval $ac_compile) 2>conftest.er1
8826  ac_status=$?
8827  grep -v '^ *+' conftest.er1 >conftest.err
8828  rm -f conftest.er1
8829  cat conftest.err >&5
8830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831  (exit $ac_status); } &&
8832         { ac_try='test -z "$ac_c_werror_flag"
8833                         || test ! -s conftest.err'
8834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835  (eval $ac_try) 2>&5
8836  ac_status=$?
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); }; } &&
8839         { ac_try='test -s conftest.$ac_objext'
8840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841  (eval $ac_try) 2>&5
8842  ac_status=$?
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); }; }; then
8845  ac_header_compiler=yes
8846else
8847  echo "$as_me: failed program was:" >&5
8848sed 's/^/| /' conftest.$ac_ext >&5
8849
8850ac_header_compiler=no
8851fi
8852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8854echo "${ECHO_T}$ac_header_compiler" >&6
8855
8856# Is the header present?
8857echo "$as_me:$LINENO: checking $ac_header presence" >&5
8858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8859cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h.  */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h.  */
8865#include <$ac_header>
8866_ACEOF
8867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8868  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8869  ac_status=$?
8870  grep -v '^ *+' conftest.er1 >conftest.err
8871  rm -f conftest.er1
8872  cat conftest.err >&5
8873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874  (exit $ac_status); } >/dev/null; then
8875  if test -s conftest.err; then
8876    ac_cpp_err=$ac_c_preproc_warn_flag
8877    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8878  else
8879    ac_cpp_err=
8880  fi
8881else
8882  ac_cpp_err=yes
8883fi
8884if test -z "$ac_cpp_err"; then
8885  ac_header_preproc=yes
8886else
8887  echo "$as_me: failed program was:" >&5
8888sed 's/^/| /' conftest.$ac_ext >&5
8889
8890  ac_header_preproc=no
8891fi
8892rm -f conftest.err conftest.$ac_ext
8893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8894echo "${ECHO_T}$ac_header_preproc" >&6
8895
8896# So?  What about this header?
8897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8898  yes:no: )
8899    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8903    ac_header_preproc=yes
8904    ;;
8905  no:yes:* )
8906    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8908    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8909echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8910    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8912    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8913echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8914    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8916    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8918    (
8919      cat <<\_ASBOX
8920## ---------------------------------------------- ##
8921## Report this to orxonox-dev at mail.datacore.ch ##
8922## ---------------------------------------------- ##
8923_ASBOX
8924    ) |
8925      sed "s/^/$as_me: WARNING:     /" >&2
8926    ;;
8927esac
8928echo "$as_me:$LINENO: checking for $ac_header" >&5
8929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931  echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933  eval "$as_ac_Header=\$ac_header_preproc"
8934fi
8935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8937
8938fi
8939if test `eval echo '${'$as_ac_Header'}'` = yes; then
8940  cat >>confdefs.h <<_ACEOF
8941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8942_ACEOF
8943
8944fi
8945
8946done
8947
8948
8949# Checks for typedefs, structures, and compiler characteristics.
8950echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8951echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8952if test "${ac_cv_header_stdbool_h+set}" = set; then
8953  echo $ECHO_N "(cached) $ECHO_C" >&6
8954else
8955  cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h.  */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h.  */
8961
8962#include <stdbool.h>
8963#ifndef bool
8964# error bool is not defined
8965#endif
8966#ifndef false
8967# error false is not defined
8968#endif
8969#if false
8970# error false is not 0
8971#endif
8972#ifndef true
8973# error true is not defined
8974#endif
8975#if true != 1
8976# error true is not 1
8977#endif
8978#ifndef __bool_true_false_are_defined
8979# error __bool_true_false_are_defined is not defined
8980#endif
8981
8982        struct s { _Bool s: 1; _Bool t; } s;
8983
8984        char a[true == 1 ? 1 : -1];
8985        char b[false == 0 ? 1 : -1];
8986        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8987        char d[(bool) -0.5 == true ? 1 : -1];
8988        bool e = &s;
8989        char f[(_Bool) -0.0 == false ? 1 : -1];
8990        char g[true];
8991        char h[sizeof (_Bool)];
8992        char i[sizeof s.t];
8993
8994int
8995main ()
8996{
8997 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8998  ;
8999  return 0;
9000}
9001_ACEOF
9002rm -f conftest.$ac_objext
9003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9004  (eval $ac_compile) 2>conftest.er1
9005  ac_status=$?
9006  grep -v '^ *+' conftest.er1 >conftest.err
9007  rm -f conftest.er1
9008  cat conftest.err >&5
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); } &&
9011         { ac_try='test -z "$ac_c_werror_flag"
9012                         || test ! -s conftest.err'
9013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014  (eval $ac_try) 2>&5
9015  ac_status=$?
9016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017  (exit $ac_status); }; } &&
9018         { ac_try='test -s conftest.$ac_objext'
9019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020  (eval $ac_try) 2>&5
9021  ac_status=$?
9022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023  (exit $ac_status); }; }; then
9024  ac_cv_header_stdbool_h=yes
9025else
9026  echo "$as_me: failed program was:" >&5
9027sed 's/^/| /' conftest.$ac_ext >&5
9028
9029ac_cv_header_stdbool_h=no
9030fi
9031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9032fi
9033echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9034echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9035echo "$as_me:$LINENO: checking for _Bool" >&5
9036echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9037if test "${ac_cv_type__Bool+set}" = set; then
9038  echo $ECHO_N "(cached) $ECHO_C" >&6
9039else
9040  cat >conftest.$ac_ext <<_ACEOF
9041/* confdefs.h.  */
9042_ACEOF
9043cat confdefs.h >>conftest.$ac_ext
9044cat >>conftest.$ac_ext <<_ACEOF
9045/* end confdefs.h.  */
9046$ac_includes_default
9047int
9048main ()
9049{
9050if ((_Bool *) 0)
9051  return 0;
9052if (sizeof (_Bool))
9053  return 0;
9054  ;
9055  return 0;
9056}
9057_ACEOF
9058rm -f conftest.$ac_objext
9059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9060  (eval $ac_compile) 2>conftest.er1
9061  ac_status=$?
9062  grep -v '^ *+' conftest.er1 >conftest.err
9063  rm -f conftest.er1
9064  cat conftest.err >&5
9065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066  (exit $ac_status); } &&
9067         { ac_try='test -z "$ac_c_werror_flag"
9068                         || test ! -s conftest.err'
9069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070  (eval $ac_try) 2>&5
9071  ac_status=$?
9072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073  (exit $ac_status); }; } &&
9074         { ac_try='test -s conftest.$ac_objext'
9075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076  (eval $ac_try) 2>&5
9077  ac_status=$?
9078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079  (exit $ac_status); }; }; then
9080  ac_cv_type__Bool=yes
9081else
9082  echo "$as_me: failed program was:" >&5
9083sed 's/^/| /' conftest.$ac_ext >&5
9084
9085ac_cv_type__Bool=no
9086fi
9087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9088fi
9089echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9090echo "${ECHO_T}$ac_cv_type__Bool" >&6
9091if test $ac_cv_type__Bool = yes; then
9092
9093cat >>confdefs.h <<_ACEOF
9094#define HAVE__BOOL 1
9095_ACEOF
9096
9097
9098fi
9099
9100if test $ac_cv_header_stdbool_h = yes; then
9101
9102cat >>confdefs.h <<\_ACEOF
9103#define HAVE_STDBOOL_H 1
9104_ACEOF
9105
9106fi
9107
9108
9109# Checks for library functions.
9110
9111for ac_header in stdlib.h
9112do
9113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115  echo "$as_me:$LINENO: checking for $ac_header" >&5
9116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9117if eval "test \"\${$as_ac_Header+set}\" = set"; then
9118  echo $ECHO_N "(cached) $ECHO_C" >&6
9119fi
9120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9122else
9123  # Is the header compilable?
9124echo "$as_me:$LINENO: checking $ac_header usability" >&5
9125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h.  */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h.  */
9132$ac_includes_default
9133#include <$ac_header>
9134_ACEOF
9135rm -f conftest.$ac_objext
9136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137  (eval $ac_compile) 2>conftest.er1
9138  ac_status=$?
9139  grep -v '^ *+' conftest.er1 >conftest.err
9140  rm -f conftest.er1
9141  cat conftest.err >&5
9142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143  (exit $ac_status); } &&
9144         { ac_try='test -z "$ac_c_werror_flag"
9145                         || test ! -s conftest.err'
9146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147  (eval $ac_try) 2>&5
9148  ac_status=$?
9149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150  (exit $ac_status); }; } &&
9151         { ac_try='test -s conftest.$ac_objext'
9152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153  (eval $ac_try) 2>&5
9154  ac_status=$?
9155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156  (exit $ac_status); }; }; then
9157  ac_header_compiler=yes
9158else
9159  echo "$as_me: failed program was:" >&5
9160sed 's/^/| /' conftest.$ac_ext >&5
9161
9162ac_header_compiler=no
9163fi
9164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9166echo "${ECHO_T}$ac_header_compiler" >&6
9167
9168# Is the header present?
9169echo "$as_me:$LINENO: checking $ac_header presence" >&5
9170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9171cat >conftest.$ac_ext <<_ACEOF
9172/* confdefs.h.  */
9173_ACEOF
9174cat confdefs.h >>conftest.$ac_ext
9175cat >>conftest.$ac_ext <<_ACEOF
9176/* end confdefs.h.  */
9177#include <$ac_header>
9178_ACEOF
9179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9180  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9181  ac_status=$?
9182  grep -v '^ *+' conftest.er1 >conftest.err
9183  rm -f conftest.er1
9184  cat conftest.err >&5
9185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186  (exit $ac_status); } >/dev/null; then
9187  if test -s conftest.err; then
9188    ac_cpp_err=$ac_c_preproc_warn_flag
9189    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190  else
9191    ac_cpp_err=
9192  fi
9193else
9194  ac_cpp_err=yes
9195fi
9196if test -z "$ac_cpp_err"; then
9197  ac_header_preproc=yes
9198else
9199  echo "$as_me: failed program was:" >&5
9200sed 's/^/| /' conftest.$ac_ext >&5
9201
9202  ac_header_preproc=no
9203fi
9204rm -f conftest.err conftest.$ac_ext
9205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9206echo "${ECHO_T}$ac_header_preproc" >&6
9207
9208# So?  What about this header?
9209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9210  yes:no: )
9211    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9213    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9215    ac_header_preproc=yes
9216    ;;
9217  no:yes:* )
9218    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9220    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9221echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9222    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9224    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9225echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9226    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9228    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9230    (
9231      cat <<\_ASBOX
9232## ---------------------------------------------- ##
9233## Report this to orxonox-dev at mail.datacore.ch ##
9234## ---------------------------------------------- ##
9235_ASBOX
9236    ) |
9237      sed "s/^/$as_me: WARNING:     /" >&2
9238    ;;
9239esac
9240echo "$as_me:$LINENO: checking for $ac_header" >&5
9241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9242if eval "test \"\${$as_ac_Header+set}\" = set"; then
9243  echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245  eval "$as_ac_Header=\$ac_header_preproc"
9246fi
9247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9249
9250fi
9251if test `eval echo '${'$as_ac_Header'}'` = yes; then
9252  cat >>confdefs.h <<_ACEOF
9253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9254_ACEOF
9255
9256fi
9257
9258done
9259
9260echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9261echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9262if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9263  echo $ECHO_N "(cached) $ECHO_C" >&6
9264else
9265  if test "$cross_compiling" = yes; then
9266  ac_cv_func_malloc_0_nonnull=no
9267else
9268  cat >conftest.$ac_ext <<_ACEOF
9269/* confdefs.h.  */
9270_ACEOF
9271cat confdefs.h >>conftest.$ac_ext
9272cat >>conftest.$ac_ext <<_ACEOF
9273/* end confdefs.h.  */
9274#if STDC_HEADERS || HAVE_STDLIB_H
9275# include <stdlib.h>
9276#else
9277char *malloc ();
9278#endif
9279
9280int
9281main ()
9282{
9283exit (malloc (0) ? 0 : 1);
9284  ;
9285  return 0;
9286}
9287_ACEOF
9288rm -f conftest$ac_exeext
9289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290  (eval $ac_link) 2>&5
9291  ac_status=$?
9292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295  (eval $ac_try) 2>&5
9296  ac_status=$?
9297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298  (exit $ac_status); }; }; then
9299  ac_cv_func_malloc_0_nonnull=yes
9300else
9301  echo "$as_me: program exited with status $ac_status" >&5
9302echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305( exit $ac_status )
9306ac_cv_func_malloc_0_nonnull=no
9307fi
9308rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9309fi
9310fi
9311echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9312echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9313if test $ac_cv_func_malloc_0_nonnull = yes; then
9314
9315cat >>confdefs.h <<\_ACEOF
9316#define HAVE_MALLOC 1
9317_ACEOF
9318
9319else
9320  cat >>confdefs.h <<\_ACEOF
9321#define HAVE_MALLOC 0
9322_ACEOF
9323
9324   case $LIBOBJS in
9325    "malloc.$ac_objext"   | \
9326  *" malloc.$ac_objext"   | \
9327    "malloc.$ac_objext "* | \
9328  *" malloc.$ac_objext "* ) ;;
9329  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9330esac
9331
9332
9333cat >>confdefs.h <<\_ACEOF
9334#define malloc rpl_malloc
9335_ACEOF
9336
9337fi
9338
9339
9340
9341
9342
9343for ac_func in bzero sqrt
9344do
9345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9346echo "$as_me:$LINENO: checking for $ac_func" >&5
9347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9348if eval "test \"\${$as_ac_var+set}\" = set"; then
9349  echo $ECHO_N "(cached) $ECHO_C" >&6
9350else
9351  cat >conftest.$ac_ext <<_ACEOF
9352/* confdefs.h.  */
9353_ACEOF
9354cat confdefs.h >>conftest.$ac_ext
9355cat >>conftest.$ac_ext <<_ACEOF
9356/* end confdefs.h.  */
9357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9358   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9359#define $ac_func innocuous_$ac_func
9360
9361/* System header to define __stub macros and hopefully few prototypes,
9362    which can conflict with char $ac_func (); below.
9363    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9364    <limits.h> exists even on freestanding compilers.  */
9365
9366#ifdef __STDC__
9367# include <limits.h>
9368#else
9369# include <assert.h>
9370#endif
9371
9372#undef $ac_func
9373
9374/* Override any gcc2 internal prototype to avoid an error.  */
9375#ifdef __cplusplus
9376extern "C"
9377{
9378#endif
9379/* We use char because int might match the return type of a gcc2
9380   builtin and then its argument prototype would still apply.  */
9381char $ac_func ();
9382/* The GNU C library defines this for functions which it implements
9383    to always fail with ENOSYS.  Some functions are actually named
9384    something starting with __ and the normal name is an alias.  */
9385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9386choke me
9387#else
9388char (*f) () = $ac_func;
9389#endif
9390#ifdef __cplusplus
9391}
9392#endif
9393
9394int
9395main ()
9396{
9397return f != $ac_func;
9398  ;
9399  return 0;
9400}
9401_ACEOF
9402rm -f conftest.$ac_objext conftest$ac_exeext
9403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404  (eval $ac_link) 2>conftest.er1
9405  ac_status=$?
9406  grep -v '^ *+' conftest.er1 >conftest.err
9407  rm -f conftest.er1
9408  cat conftest.err >&5
9409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410  (exit $ac_status); } &&
9411         { ac_try='test -z "$ac_c_werror_flag"
9412                         || test ! -s conftest.err'
9413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414  (eval $ac_try) 2>&5
9415  ac_status=$?
9416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417  (exit $ac_status); }; } &&
9418         { ac_try='test -s conftest$ac_exeext'
9419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420  (eval $ac_try) 2>&5
9421  ac_status=$?
9422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423  (exit $ac_status); }; }; then
9424  eval "$as_ac_var=yes"
9425else
9426  echo "$as_me: failed program was:" >&5
9427sed 's/^/| /' conftest.$ac_ext >&5
9428
9429eval "$as_ac_var=no"
9430fi
9431rm -f conftest.err conftest.$ac_objext \
9432      conftest$ac_exeext conftest.$ac_ext
9433fi
9434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9436if test `eval echo '${'$as_ac_var'}'` = yes; then
9437  cat >>confdefs.h <<_ACEOF
9438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9439_ACEOF
9440
9441fi
9442done
9443
9444
9445######################
9446## OUTPUT CONFIGURE ##
9447######################
9448                                                                                                                                                                                    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/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"
9449
9450
9451cat >confcache <<\_ACEOF
9452# This file is a shell script that caches the results of configure
9453# tests run on this system so they can be shared between configure
9454# scripts and configure runs, see configure's option --config-cache.
9455# It is not useful on other systems.  If it contains results you don't
9456# want to keep, you may remove or edit it.
9457#
9458# config.status only pays attention to the cache file if you give it
9459# the --recheck option to rerun configure.
9460#
9461# `ac_cv_env_foo' variables (set or unset) will be overridden when
9462# loading this file, other *unset* `ac_cv_foo' will be assigned the
9463# following values.
9464
9465_ACEOF
9466
9467# The following way of writing the cache mishandles newlines in values,
9468# but we know of no workaround that is simple, portable, and efficient.
9469# So, don't put newlines in cache variables' values.
9470# Ultrix sh set writes to stderr and can't be redirected directly,
9471# and sets the high bit in the cache file unless we assign to the vars.
9472{
9473  (set) 2>&1 |
9474    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9475    *ac_space=\ *)
9476      # `set' does not quote correctly, so add quotes (double-quote
9477      # substitution turns \\\\ into \\, and sed turns \\ into \).
9478      sed -n \
9479        "s/'/'\\\\''/g;
9480          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9481      ;;
9482    *)
9483      # `set' quotes correctly as required by POSIX, so do not add quotes.
9484      sed -n \
9485        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9486      ;;
9487    esac;
9488} |
9489  sed '
9490     t clear
9491     : clear
9492     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9493     t end
9494     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9495     : end' >>confcache
9496if diff $cache_file confcache >/dev/null 2>&1; then :; else
9497  if test -w $cache_file; then
9498    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9499    cat confcache >$cache_file
9500  else
9501    echo "not updating unwritable cache $cache_file"
9502  fi
9503fi
9504rm -f confcache
9505
9506test "x$prefix" = xNONE && prefix=$ac_default_prefix
9507# Let make expand exec_prefix.
9508test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9509
9510# VPATH may cause trouble with some makes, so we remove $(srcdir),
9511# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9512# trailing colons and then remove the whole line if VPATH becomes empty
9513# (actually we leave an empty line to preserve line numbers).
9514if test "x$srcdir" = x.; then
9515  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9516s/:*\$(srcdir):*/:/;
9517s/:*\${srcdir}:*/:/;
9518s/:*@srcdir@:*/:/;
9519s/^\([^=]*=[     ]*\):*/\1/;
9520s/:*$//;
9521s/^[^=]*=[       ]*$//;
9522}'
9523fi
9524
9525DEFS=-DHAVE_CONFIG_H
9526
9527ac_libobjs=
9528ac_ltlibobjs=
9529for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9530  # 1. Remove the extension, and $U if already installed.
9531  ac_i=`echo "$ac_i" |
9532         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9533  # 2. Add them.
9534  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9535  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9536done
9537LIBOBJS=$ac_libobjs
9538
9539LTLIBOBJS=$ac_ltlibobjs
9540
9541
9542if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9543  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9544Usually this means the macro was only invoked conditionally." >&5
9545echo "$as_me: error: conditional \"AMDEP\" was never defined.
9546Usually this means the macro was only invoked conditionally." >&2;}
9547   { (exit 1); exit 1; }; }
9548fi
9549if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9550  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9551Usually this means the macro was only invoked conditionally." >&5
9552echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9553Usually this means the macro was only invoked conditionally." >&2;}
9554   { (exit 1); exit 1; }; }
9555fi
9556if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9557  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9558Usually this means the macro was only invoked conditionally." >&5
9559echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9560Usually this means the macro was only invoked conditionally." >&2;}
9561   { (exit 1); exit 1; }; }
9562fi
9563if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
9564  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
9565Usually this means the macro was only invoked conditionally." >&5
9566echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
9567Usually this means the macro was only invoked conditionally." >&2;}
9568   { (exit 1); exit 1; }; }
9569fi
9570if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
9571  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
9572Usually this means the macro was only invoked conditionally." >&5
9573echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
9574Usually this means the macro was only invoked conditionally." >&2;}
9575   { (exit 1); exit 1; }; }
9576fi
9577if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
9578  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
9579Usually this means the macro was only invoked conditionally." >&5
9580echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
9581Usually this means the macro was only invoked conditionally." >&2;}
9582   { (exit 1); exit 1; }; }
9583fi
9584if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
9585  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
9586Usually this means the macro was only invoked conditionally." >&5
9587echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
9588Usually this means the macro was only invoked conditionally." >&2;}
9589   { (exit 1); exit 1; }; }
9590fi
9591if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
9592  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
9593Usually this means the macro was only invoked conditionally." >&5
9594echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
9595Usually this means the macro was only invoked conditionally." >&2;}
9596   { (exit 1); exit 1; }; }
9597fi
9598
9599: ${CONFIG_STATUS=./config.status}
9600ac_clean_files_save=$ac_clean_files
9601ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9602{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9603echo "$as_me: creating $CONFIG_STATUS" >&6;}
9604cat >$CONFIG_STATUS <<_ACEOF
9605#! $SHELL
9606# Generated by $as_me.
9607# Run this file to recreate the current configuration.
9608# Compiler output produced by configure, useful for debugging
9609# configure, is in config.log if it exists.
9610
9611debug=false
9612ac_cs_recheck=false
9613ac_cs_silent=false
9614SHELL=\${CONFIG_SHELL-$SHELL}
9615_ACEOF
9616
9617cat >>$CONFIG_STATUS <<\_ACEOF
9618## --------------------- ##
9619## M4sh Initialization.  ##
9620## --------------------- ##
9621
9622# Be Bourne compatible
9623if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9624  emulate sh
9625  NULLCMD=:
9626  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9627  # is contrary to our usage.  Disable this feature.
9628  alias -g '${1+"$@"}'='"$@"'
9629elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9630  set -o posix
9631fi
9632DUALCASE=1; export DUALCASE # for MKS sh
9633
9634# Support unset when possible.
9635if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9636  as_unset=unset
9637else
9638  as_unset=false
9639fi
9640
9641
9642# Work around bugs in pre-3.0 UWIN ksh.
9643$as_unset ENV MAIL MAILPATH
9644PS1='$ '
9645PS2='> '
9646PS4='+ '
9647
9648# NLS nuisances.
9649for as_var in \
9650  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9651  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9652  LC_TELEPHONE LC_TIME
9653do
9654  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9655    eval $as_var=C; export $as_var
9656  else
9657    $as_unset $as_var
9658  fi
9659done
9660
9661# Required to use basename.
9662if expr a : '\(a\)' >/dev/null 2>&1; then
9663  as_expr=expr
9664else
9665  as_expr=false
9666fi
9667
9668if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9669  as_basename=basename
9670else
9671  as_basename=false
9672fi
9673
9674
9675# Name of the executable.
9676as_me=`$as_basename "$0" ||
9677$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9678         X"$0" : 'X\(//\)$' \| \
9679         X"$0" : 'X\(/\)$' \| \
9680         .     : '\(.\)' 2>/dev/null ||
9681echo X/"$0" |
9682    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9683          /^X\/\(\/\/\)$/{ s//\1/; q; }
9684          /^X\/\(\/\).*/{ s//\1/; q; }
9685          s/.*/./; q'`
9686
9687
9688# PATH needs CR, and LINENO needs CR and PATH.
9689# Avoid depending upon Character Ranges.
9690as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9691as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9692as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9693as_cr_digits='0123456789'
9694as_cr_alnum=$as_cr_Letters$as_cr_digits
9695
9696# The user is always right.
9697if test "${PATH_SEPARATOR+set}" != set; then
9698  echo "#! /bin/sh" >conf$$.sh
9699  echo  "exit 0"   >>conf$$.sh
9700  chmod +x conf$$.sh
9701  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9702    PATH_SEPARATOR=';'
9703  else
9704    PATH_SEPARATOR=:
9705  fi
9706  rm -f conf$$.sh
9707fi
9708
9709
9710  as_lineno_1=$LINENO
9711  as_lineno_2=$LINENO
9712  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9713  test "x$as_lineno_1" != "x$as_lineno_2" &&
9714  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9715  # Find who we are.  Look in the path if we contain no path at all
9716  # relative or not.
9717  case $0 in
9718    *[\\/]* ) as_myself=$0 ;;
9719    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720for as_dir in $PATH
9721do
9722  IFS=$as_save_IFS
9723  test -z "$as_dir" && as_dir=.
9724  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9725done
9726
9727       ;;
9728  esac
9729  # We did not find ourselves, most probably we were run as `sh COMMAND'
9730  # in which case we are not to be found in the path.
9731  if test "x$as_myself" = x; then
9732    as_myself=$0
9733  fi
9734  if test ! -f "$as_myself"; then
9735    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9736echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9737   { (exit 1); exit 1; }; }
9738  fi
9739  case $CONFIG_SHELL in
9740  '')
9741    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9743do
9744  IFS=$as_save_IFS
9745  test -z "$as_dir" && as_dir=.
9746  for as_base in sh bash ksh sh5; do
9747         case $as_dir in
9748         /*)
9749           if ("$as_dir/$as_base" -c '
9750  as_lineno_1=$LINENO
9751  as_lineno_2=$LINENO
9752  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9753  test "x$as_lineno_1" != "x$as_lineno_2" &&
9754  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9755             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9756             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9757             CONFIG_SHELL=$as_dir/$as_base
9758             export CONFIG_SHELL
9759             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9760           fi;;
9761         esac
9762       done
9763done
9764;;
9765  esac
9766
9767  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9768  # uniformly replaced by the line number.  The first 'sed' inserts a
9769  # line-number line before each line; the second 'sed' does the real
9770  # work.  The second script uses 'N' to pair each line-number line
9771  # with the numbered line, and appends trailing '-' during
9772  # substitution so that $LINENO is not a special case at line end.
9773  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9774  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9775  sed '=' <$as_myself |
9776    sed '
9777      N
9778      s,$,-,
9779      : loop
9780      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9781      t loop
9782      s,-$,,
9783      s,^['$as_cr_digits']*\n,,
9784    ' >$as_me.lineno &&
9785  chmod +x $as_me.lineno ||
9786    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9787echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9788   { (exit 1); exit 1; }; }
9789
9790  # Don't try to exec as it changes $[0], causing all sort of problems
9791  # (the dirname of $[0] is not the place where we might find the
9792  # original and so on.  Autoconf is especially sensible to this).
9793  . ./$as_me.lineno
9794  # Exit status is that of the last command.
9795  exit
9796}
9797
9798
9799case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9800  *c*,-n*) ECHO_N= ECHO_C='
9801' ECHO_T='      ' ;;
9802  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9803  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9804esac
9805
9806if expr a : '\(a\)' >/dev/null 2>&1; then
9807  as_expr=expr
9808else
9809  as_expr=false
9810fi
9811
9812rm -f conf$$ conf$$.exe conf$$.file
9813echo >conf$$.file
9814if ln -s conf$$.file conf$$ 2>/dev/null; then
9815  # We could just check for DJGPP; but this test a) works b) is more generic
9816  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9817  if test -f conf$$.exe; then
9818    # Don't use ln at all; we don't have any links
9819    as_ln_s='cp -p'
9820  else
9821    as_ln_s='ln -s'
9822  fi
9823elif ln conf$$.file conf$$ 2>/dev/null; then
9824  as_ln_s=ln
9825else
9826  as_ln_s='cp -p'
9827fi
9828rm -f conf$$ conf$$.exe conf$$.file
9829
9830if mkdir -p . 2>/dev/null; then
9831  as_mkdir_p=:
9832else
9833  test -d ./-p && rmdir ./-p
9834  as_mkdir_p=false
9835fi
9836
9837as_executable_p="test -f"
9838
9839# Sed expression to map a string onto a valid CPP name.
9840as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9841
9842# Sed expression to map a string onto a valid variable name.
9843as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9844
9845
9846# IFS
9847# We need space, tab and new line, in precisely that order.
9848as_nl='
9849'
9850IFS="   $as_nl"
9851
9852# CDPATH.
9853$as_unset CDPATH
9854
9855exec 6>&1
9856
9857# Open the log real soon, to keep \$[0] and so on meaningful, and to
9858# report actual input values of CONFIG_FILES etc. instead of their
9859# values after options handling.  Logging --version etc. is OK.
9860exec 5>>config.log
9861{
9862  echo
9863  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9864## Running $as_me. ##
9865_ASBOX
9866} >&5
9867cat >&5 <<_CSEOF
9868
9869This file was extended by orxonox $as_me 0.3.1_alpha, which was
9870generated by GNU Autoconf 2.59.  Invocation command line was
9871
9872  CONFIG_FILES    = $CONFIG_FILES
9873  CONFIG_HEADERS  = $CONFIG_HEADERS
9874  CONFIG_LINKS    = $CONFIG_LINKS
9875  CONFIG_COMMANDS = $CONFIG_COMMANDS
9876  $ $0 $@
9877
9878_CSEOF
9879echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9880echo >&5
9881_ACEOF
9882
9883# Files that config.status was made for.
9884if test -n "$ac_config_files"; then
9885  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9886fi
9887
9888if test -n "$ac_config_headers"; then
9889  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9890fi
9891
9892if test -n "$ac_config_links"; then
9893  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9894fi
9895
9896if test -n "$ac_config_commands"; then
9897  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9898fi
9899
9900cat >>$CONFIG_STATUS <<\_ACEOF
9901
9902ac_cs_usage="\
9903\`$as_me' instantiates files from templates according to the
9904current configuration.
9905
9906Usage: $0 [OPTIONS] [FILE]...
9907
9908  -h, --help       print this help, then exit
9909  -V, --version    print version number, then exit
9910  -q, --quiet      do not print progress messages
9911  -d, --debug      don't remove temporary files
9912      --recheck    update $as_me by reconfiguring in the same conditions
9913  --file=FILE[:TEMPLATE]
9914                   instantiate the configuration file FILE
9915  --header=FILE[:TEMPLATE]
9916                   instantiate the configuration header FILE
9917
9918Configuration files:
9919$config_files
9920
9921Configuration headers:
9922$config_headers
9923
9924Configuration commands:
9925$config_commands
9926
9927Report bugs to <bug-autoconf@gnu.org>."
9928_ACEOF
9929
9930cat >>$CONFIG_STATUS <<_ACEOF
9931ac_cs_version="\\
9932orxonox config.status 0.3.1_alpha
9933configured by $0, generated by GNU Autoconf 2.59,
9934  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9935
9936Copyright (C) 2003 Free Software Foundation, Inc.
9937This config.status script is free software; the Free Software Foundation
9938gives unlimited permission to copy, distribute and modify it."
9939srcdir=$srcdir
9940INSTALL="$INSTALL"
9941_ACEOF
9942
9943cat >>$CONFIG_STATUS <<\_ACEOF
9944# If no file are specified by the user, then we need to provide default
9945# value.  By we need to know if files were specified by the user.
9946ac_need_defaults=:
9947while test $# != 0
9948do
9949  case $1 in
9950  --*=*)
9951    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9952    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9953    ac_shift=:
9954    ;;
9955  -*)
9956    ac_option=$1
9957    ac_optarg=$2
9958    ac_shift=shift
9959    ;;
9960  *) # This is not an option, so the user has probably given explicit
9961     # arguments.
9962     ac_option=$1
9963     ac_need_defaults=false;;
9964  esac
9965
9966  case $ac_option in
9967  # Handling of the options.
9968_ACEOF
9969cat >>$CONFIG_STATUS <<\_ACEOF
9970  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9971    ac_cs_recheck=: ;;
9972  --version | --vers* | -V )
9973    echo "$ac_cs_version"; exit 0 ;;
9974  --he | --h)
9975    # Conflict between --help and --header
9976    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9977Try \`$0 --help' for more information." >&5
9978echo "$as_me: error: ambiguous option: $1
9979Try \`$0 --help' for more information." >&2;}
9980   { (exit 1); exit 1; }; };;
9981  --help | --hel | -h )
9982    echo "$ac_cs_usage"; exit 0 ;;
9983  --debug | --d* | -d )
9984    debug=: ;;
9985  --file | --fil | --fi | --f )
9986    $ac_shift
9987    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9988    ac_need_defaults=false;;
9989  --header | --heade | --head | --hea )
9990    $ac_shift
9991    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9992    ac_need_defaults=false;;
9993  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9994  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9995    ac_cs_silent=: ;;
9996
9997  # This is an error.
9998  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9999Try \`$0 --help' for more information." >&5
10000echo "$as_me: error: unrecognized option: $1
10001Try \`$0 --help' for more information." >&2;}
10002   { (exit 1); exit 1; }; } ;;
10003
10004  *) ac_config_targets="$ac_config_targets $1" ;;
10005
10006  esac
10007  shift
10008done
10009
10010ac_configure_extra_args=
10011
10012if $ac_cs_silent; then
10013  exec 6>/dev/null
10014  ac_configure_extra_args="$ac_configure_extra_args --silent"
10015fi
10016
10017_ACEOF
10018cat >>$CONFIG_STATUS <<_ACEOF
10019if \$ac_cs_recheck; then
10020  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10021  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10022fi
10023
10024_ACEOF
10025
10026cat >>$CONFIG_STATUS <<_ACEOF
10027#
10028# INIT-COMMANDS section.
10029#
10030
10031AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10032
10033_ACEOF
10034
10035
10036
10037cat >>$CONFIG_STATUS <<\_ACEOF
10038for ac_config_target in $ac_config_targets
10039do
10040  case "$ac_config_target" in
10041  # Handling of arguments.
10042  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10043  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10044  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10045  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
10046  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
10047  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
10048  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
10049  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
10050  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
10051  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
10052  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
10053  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
10054  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
10055  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10056  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
10057  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
10058  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
10059  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
10060  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10061  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10062  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10063echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10064   { (exit 1); exit 1; }; };;
10065  esac
10066done
10067
10068# If the user did not use the arguments to specify the items to instantiate,
10069# then the envvar interface is used.  Set only those that are not.
10070# We use the long form for the default assignment because of an extremely
10071# bizarre bug on SunOS 4.1.3.
10072if $ac_need_defaults; then
10073  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10074  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10075  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10076fi
10077
10078# Have a temporary directory for convenience.  Make it in the build tree
10079# simply because there is no reason to put it here, and in addition,
10080# creating and moving files from /tmp can sometimes cause problems.
10081# Create a temporary directory, and hook for its removal unless debugging.
10082$debug ||
10083{
10084  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10085  trap '{ (exit 1); exit 1; }' 1 2 13 15
10086}
10087
10088# Create a (secure) tmp directory for tmp files.
10089
10090{
10091  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10092  test -n "$tmp" && test -d "$tmp"
10093}  ||
10094{
10095  tmp=./confstat$$-$RANDOM
10096  (umask 077 && mkdir $tmp)
10097} ||
10098{
10099   echo "$me: cannot create a temporary directory in ." >&2
10100   { (exit 1); exit 1; }
10101}
10102
10103_ACEOF
10104
10105cat >>$CONFIG_STATUS <<_ACEOF
10106
10107#
10108# CONFIG_FILES section.
10109#
10110
10111# No need to generate the scripts if there are no CONFIG_FILES.
10112# This happens for instance when ./config.status config.h
10113if test -n "\$CONFIG_FILES"; then
10114  # Protect against being on the right side of a sed subst in config.status.
10115  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10116   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10117s,@SHELL@,$SHELL,;t t
10118s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10119s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10120s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10121s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10122s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10123s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10124s,@exec_prefix@,$exec_prefix,;t t
10125s,@prefix@,$prefix,;t t
10126s,@program_transform_name@,$program_transform_name,;t t
10127s,@bindir@,$bindir,;t t
10128s,@sbindir@,$sbindir,;t t
10129s,@libexecdir@,$libexecdir,;t t
10130s,@datadir@,$datadir,;t t
10131s,@sysconfdir@,$sysconfdir,;t t
10132s,@sharedstatedir@,$sharedstatedir,;t t
10133s,@localstatedir@,$localstatedir,;t t
10134s,@libdir@,$libdir,;t t
10135s,@includedir@,$includedir,;t t
10136s,@oldincludedir@,$oldincludedir,;t t
10137s,@infodir@,$infodir,;t t
10138s,@mandir@,$mandir,;t t
10139s,@build_alias@,$build_alias,;t t
10140s,@host_alias@,$host_alias,;t t
10141s,@target_alias@,$target_alias,;t t
10142s,@DEFS@,$DEFS,;t t
10143s,@ECHO_C@,$ECHO_C,;t t
10144s,@ECHO_N@,$ECHO_N,;t t
10145s,@ECHO_T@,$ECHO_T,;t t
10146s,@LIBS@,$LIBS,;t t
10147s,@build@,$build,;t t
10148s,@build_cpu@,$build_cpu,;t t
10149s,@build_vendor@,$build_vendor,;t t
10150s,@build_os@,$build_os,;t t
10151s,@host@,$host,;t t
10152s,@host_cpu@,$host_cpu,;t t
10153s,@host_vendor@,$host_vendor,;t t
10154s,@host_os@,$host_os,;t t
10155s,@target@,$target,;t t
10156s,@target_cpu@,$target_cpu,;t t
10157s,@target_vendor@,$target_vendor,;t t
10158s,@target_os@,$target_os,;t t
10159s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10160s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10161s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10162s,@CYGPATH_W@,$CYGPATH_W,;t t
10163s,@PACKAGE@,$PACKAGE,;t t
10164s,@VERSION@,$VERSION,;t t
10165s,@ACLOCAL@,$ACLOCAL,;t t
10166s,@AUTOCONF@,$AUTOCONF,;t t
10167s,@AUTOMAKE@,$AUTOMAKE,;t t
10168s,@AUTOHEADER@,$AUTOHEADER,;t t
10169s,@MAKEINFO@,$MAKEINFO,;t t
10170s,@AMTAR@,$AMTAR,;t t
10171s,@install_sh@,$install_sh,;t t
10172s,@STRIP@,$STRIP,;t t
10173s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10174s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10175s,@mkdir_p@,$mkdir_p,;t t
10176s,@AWK@,$AWK,;t t
10177s,@SET_MAKE@,$SET_MAKE,;t t
10178s,@am__leading_dot@,$am__leading_dot,;t t
10179s,@CXX@,$CXX,;t t
10180s,@CXXFLAGS@,$CXXFLAGS,;t t
10181s,@LDFLAGS@,$LDFLAGS,;t t
10182s,@CPPFLAGS@,$CPPFLAGS,;t t
10183s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10184s,@EXEEXT@,$EXEEXT,;t t
10185s,@OBJEXT@,$OBJEXT,;t t
10186s,@DEPDIR@,$DEPDIR,;t t
10187s,@am__include@,$am__include,;t t
10188s,@am__quote@,$am__quote,;t t
10189s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10190s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10191s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10192s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10193s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10194s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10195s,@RANLIB@,$RANLIB,;t t
10196s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10197s,@CC@,$CC,;t t
10198s,@CFLAGS@,$CFLAGS,;t t
10199s,@ac_ct_CC@,$ac_ct_CC,;t t
10200s,@CCDEPMODE@,$CCDEPMODE,;t t
10201s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10202s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10203s,@CPP@,$CPP,;t t
10204s,@EGREP@,$EGREP,;t t
10205s,@DEBUG@,$DEBUG,;t t
10206s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10207s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
10208s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10209s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
10210s,@DOXYGEN@,$DOXYGEN,;t t
10211s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10212s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
10213s,@GPROF@,$GPROF,;t t
10214s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10215s,@MSBITFIELDS@,$MSBITFIELDS,;t t
10216s,@GTK2_LIBS@,$GTK2_LIBS,;t t
10217s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10218s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10219s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
10220s,@CURL_LIBS@,$CURL_LIBS,;t t
10221s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10222s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10223s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
10224s,@LIBOBJS@,$LIBOBJS,;t t
10225s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10226CEOF
10227
10228_ACEOF
10229
10230  cat >>$CONFIG_STATUS <<\_ACEOF
10231  # Split the substitutions into bite-sized pieces for seds with
10232  # small command number limits, like on Digital OSF/1 and HP-UX.
10233  ac_max_sed_lines=48
10234  ac_sed_frag=1 # Number of current file.
10235  ac_beg=1 # First line for current file.
10236  ac_end=$ac_max_sed_lines # Line after last line for current file.
10237  ac_more_lines=:
10238  ac_sed_cmds=
10239  while $ac_more_lines; do
10240    if test $ac_beg -gt 1; then
10241      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10242    else
10243      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10244    fi
10245    if test ! -s $tmp/subs.frag; then
10246      ac_more_lines=false
10247    else
10248      # The purpose of the label and of the branching condition is to
10249      # speed up the sed processing (if there are no `@' at all, there
10250      # is no need to browse any of the substitutions).
10251      # These are the two extra sed commands mentioned above.
10252      (echo ':t
10253  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10254      if test -z "$ac_sed_cmds"; then
10255        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10256      else
10257        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10258      fi
10259      ac_sed_frag=`expr $ac_sed_frag + 1`
10260      ac_beg=$ac_end
10261      ac_end=`expr $ac_end + $ac_max_sed_lines`
10262    fi
10263  done
10264  if test -z "$ac_sed_cmds"; then
10265    ac_sed_cmds=cat
10266  fi
10267fi # test -n "$CONFIG_FILES"
10268
10269_ACEOF
10270cat >>$CONFIG_STATUS <<\_ACEOF
10271for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10272  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10273  case $ac_file in
10274  - | *:- | *:-:* ) # input from stdin
10275        cat >$tmp/stdin
10276        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10277        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10278  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10279        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10280  * )   ac_file_in=$ac_file.in ;;
10281  esac
10282
10283  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10284  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10285$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10286         X"$ac_file" : 'X\(//\)[^/]' \| \
10287         X"$ac_file" : 'X\(//\)$' \| \
10288         X"$ac_file" : 'X\(/\)' \| \
10289         .     : '\(.\)' 2>/dev/null ||
10290echo X"$ac_file" |
10291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10292          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10293          /^X\(\/\/\)$/{ s//\1/; q; }
10294          /^X\(\/\).*/{ s//\1/; q; }
10295          s/.*/./; q'`
10296  { if $as_mkdir_p; then
10297    mkdir -p "$ac_dir"
10298  else
10299    as_dir="$ac_dir"
10300    as_dirs=
10301    while test ! -d "$as_dir"; do
10302      as_dirs="$as_dir $as_dirs"
10303      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10305         X"$as_dir" : 'X\(//\)[^/]' \| \
10306         X"$as_dir" : 'X\(//\)$' \| \
10307         X"$as_dir" : 'X\(/\)' \| \
10308         .     : '\(.\)' 2>/dev/null ||
10309echo X"$as_dir" |
10310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10311          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10312          /^X\(\/\/\)$/{ s//\1/; q; }
10313          /^X\(\/\).*/{ s//\1/; q; }
10314          s/.*/./; q'`
10315    done
10316    test ! -n "$as_dirs" || mkdir $as_dirs
10317  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10318echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10319   { (exit 1); exit 1; }; }; }
10320
10321  ac_builddir=.
10322
10323if test "$ac_dir" != .; then
10324  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10325  # A "../" for each directory in $ac_dir_suffix.
10326  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10327else
10328  ac_dir_suffix= ac_top_builddir=
10329fi
10330
10331case $srcdir in
10332  .)  # No --srcdir option.  We are building in place.
10333    ac_srcdir=.
10334    if test -z "$ac_top_builddir"; then
10335       ac_top_srcdir=.
10336    else
10337       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10338    fi ;;
10339  [\\/]* | ?:[\\/]* )  # Absolute path.
10340    ac_srcdir=$srcdir$ac_dir_suffix;
10341    ac_top_srcdir=$srcdir ;;
10342  *) # Relative path.
10343    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10344    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10345esac
10346
10347# Do not use `cd foo && pwd` to compute absolute paths, because
10348# the directories may not exist.
10349case `pwd` in
10350.) ac_abs_builddir="$ac_dir";;
10351*)
10352  case "$ac_dir" in
10353  .) ac_abs_builddir=`pwd`;;
10354  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10355  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10356  esac;;
10357esac
10358case $ac_abs_builddir in
10359.) ac_abs_top_builddir=${ac_top_builddir}.;;
10360*)
10361  case ${ac_top_builddir}. in
10362  .) ac_abs_top_builddir=$ac_abs_builddir;;
10363  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10364  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10365  esac;;
10366esac
10367case $ac_abs_builddir in
10368.) ac_abs_srcdir=$ac_srcdir;;
10369*)
10370  case $ac_srcdir in
10371  .) ac_abs_srcdir=$ac_abs_builddir;;
10372  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10373  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10374  esac;;
10375esac
10376case $ac_abs_builddir in
10377.) ac_abs_top_srcdir=$ac_top_srcdir;;
10378*)
10379  case $ac_top_srcdir in
10380  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10381  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10382  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10383  esac;;
10384esac
10385
10386
10387  case $INSTALL in
10388  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10389  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10390  esac
10391
10392  if test x"$ac_file" != x-; then
10393    { echo "$as_me:$LINENO: creating $ac_file" >&5
10394echo "$as_me: creating $ac_file" >&6;}
10395    rm -f "$ac_file"
10396  fi
10397  # Let's still pretend it is `configure' which instantiates (i.e., don't
10398  # use $as_me), people would be surprised to read:
10399  #    /* config.h.  Generated by config.status.  */
10400  if test x"$ac_file" = x-; then
10401    configure_input=
10402  else
10403    configure_input="$ac_file.  "
10404  fi
10405  configure_input=$configure_input"Generated from `echo $ac_file_in |
10406                                     sed 's,.*/,,'` by configure."
10407
10408  # First look for the input files in the build tree, otherwise in the
10409  # src tree.
10410  ac_file_inputs=`IFS=:
10411    for f in $ac_file_in; do
10412      case $f in
10413      -) echo $tmp/stdin ;;
10414      [\\/$]*)
10415         # Absolute (can't be DOS-style, as IFS=:)
10416         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10417echo "$as_me: error: cannot find input file: $f" >&2;}
10418   { (exit 1); exit 1; }; }
10419         echo "$f";;
10420      *) # Relative
10421         if test -f "$f"; then
10422           # Build tree
10423           echo "$f"
10424         elif test -f "$srcdir/$f"; then
10425           # Source tree
10426           echo "$srcdir/$f"
10427         else
10428           # /dev/null tree
10429           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10430echo "$as_me: error: cannot find input file: $f" >&2;}
10431   { (exit 1); exit 1; }; }
10432         fi;;
10433      esac
10434    done` || { (exit 1); exit 1; }
10435_ACEOF
10436cat >>$CONFIG_STATUS <<_ACEOF
10437  sed "$ac_vpsub
10438$extrasub
10439_ACEOF
10440cat >>$CONFIG_STATUS <<\_ACEOF
10441:t
10442/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10443s,@configure_input@,$configure_input,;t t
10444s,@srcdir@,$ac_srcdir,;t t
10445s,@abs_srcdir@,$ac_abs_srcdir,;t t
10446s,@top_srcdir@,$ac_top_srcdir,;t t
10447s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10448s,@builddir@,$ac_builddir,;t t
10449s,@abs_builddir@,$ac_abs_builddir,;t t
10450s,@top_builddir@,$ac_top_builddir,;t t
10451s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10452s,@INSTALL@,$ac_INSTALL,;t t
10453" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10454  rm -f $tmp/stdin
10455  if test x"$ac_file" != x-; then
10456    mv $tmp/out $ac_file
10457  else
10458    cat $tmp/out
10459    rm -f $tmp/out
10460  fi
10461
10462done
10463_ACEOF
10464cat >>$CONFIG_STATUS <<\_ACEOF
10465
10466#
10467# CONFIG_HEADER section.
10468#
10469
10470# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10471# NAME is the cpp macro being defined and VALUE is the value it is being given.
10472#
10473# ac_d sets the value in "#define NAME VALUE" lines.
10474ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10475ac_dB='[         ].*$,\1#\2'
10476ac_dC=' '
10477ac_dD=',;t'
10478# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10479ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10480ac_uB='$,\1#\2define\3'
10481ac_uC=' '
10482ac_uD=',;t'
10483
10484for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10485  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10486  case $ac_file in
10487  - | *:- | *:-:* ) # input from stdin
10488        cat >$tmp/stdin
10489        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10490        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10491  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10492        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10493  * )   ac_file_in=$ac_file.in ;;
10494  esac
10495
10496  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10497echo "$as_me: creating $ac_file" >&6;}
10498
10499  # First look for the input files in the build tree, otherwise in the
10500  # src tree.
10501  ac_file_inputs=`IFS=:
10502    for f in $ac_file_in; do
10503      case $f in
10504      -) echo $tmp/stdin ;;
10505      [\\/$]*)
10506         # Absolute (can't be DOS-style, as IFS=:)
10507         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10508echo "$as_me: error: cannot find input file: $f" >&2;}
10509   { (exit 1); exit 1; }; }
10510         # Do quote $f, to prevent DOS paths from being IFS'd.
10511         echo "$f";;
10512      *) # Relative
10513         if test -f "$f"; then
10514           # Build tree
10515           echo "$f"
10516         elif test -f "$srcdir/$f"; then
10517           # Source tree
10518           echo "$srcdir/$f"
10519         else
10520           # /dev/null tree
10521           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10522echo "$as_me: error: cannot find input file: $f" >&2;}
10523   { (exit 1); exit 1; }; }
10524         fi;;
10525      esac
10526    done` || { (exit 1); exit 1; }
10527  # Remove the trailing spaces.
10528  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10529
10530_ACEOF
10531
10532# Transform confdefs.h into two sed scripts, `conftest.defines' and
10533# `conftest.undefs', that substitutes the proper values into
10534# config.h.in to produce config.h.  The first handles `#define'
10535# templates, and the second `#undef' templates.
10536# And first: Protect against being on the right side of a sed subst in
10537# config.status.  Protect against being in an unquoted here document
10538# in config.status.
10539rm -f conftest.defines conftest.undefs
10540# Using a here document instead of a string reduces the quoting nightmare.
10541# Putting comments in sed scripts is not portable.
10542#
10543# `end' is used to avoid that the second main sed command (meant for
10544# 0-ary CPP macros) applies to n-ary macro definitions.
10545# See the Autoconf documentation for `clear'.
10546cat >confdef2sed.sed <<\_ACEOF
10547s/[\\&,]/\\&/g
10548s,[\\$`],\\&,g
10549t clear
10550: clear
10551s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10552t end
10553s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10554: end
10555_ACEOF
10556# If some macros were called several times there might be several times
10557# the same #defines, which is useless.  Nevertheless, we may not want to
10558# sort them, since we want the *last* AC-DEFINE to be honored.
10559uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10560sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10561rm -f confdef2sed.sed
10562
10563# This sed command replaces #undef with comments.  This is necessary, for
10564# example, in the case of _POSIX_SOURCE, which is predefined and required
10565# on some systems where configure will not decide to define it.
10566cat >>conftest.undefs <<\_ACEOF
10567s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10568_ACEOF
10569
10570# Break up conftest.defines because some shells have a limit on the size
10571# of here documents, and old seds have small limits too (100 cmds).
10572echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10573echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10574echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10575echo '  :' >>$CONFIG_STATUS
10576rm -f conftest.tail
10577while grep . conftest.defines >/dev/null
10578do
10579  # Write a limited-size here document to $tmp/defines.sed.
10580  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10581  # Speed up: don't consider the non `#define' lines.
10582  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10583  # Work around the forget-to-reset-the-flag bug.
10584  echo 't clr' >>$CONFIG_STATUS
10585  echo ': clr' >>$CONFIG_STATUS
10586  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10587  echo 'CEOF
10588  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10589  rm -f $tmp/in
10590  mv $tmp/out $tmp/in
10591' >>$CONFIG_STATUS
10592  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10593  rm -f conftest.defines
10594  mv conftest.tail conftest.defines
10595done
10596rm -f conftest.defines
10597echo '  fi # grep' >>$CONFIG_STATUS
10598echo >>$CONFIG_STATUS
10599
10600# Break up conftest.undefs because some shells have a limit on the size
10601# of here documents, and old seds have small limits too (100 cmds).
10602echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10603rm -f conftest.tail
10604while grep . conftest.undefs >/dev/null
10605do
10606  # Write a limited-size here document to $tmp/undefs.sed.
10607  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10608  # Speed up: don't consider the non `#undef'
10609  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10610  # Work around the forget-to-reset-the-flag bug.
10611  echo 't clr' >>$CONFIG_STATUS
10612  echo ': clr' >>$CONFIG_STATUS
10613  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10614  echo 'CEOF
10615  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10616  rm -f $tmp/in
10617  mv $tmp/out $tmp/in
10618' >>$CONFIG_STATUS
10619  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10620  rm -f conftest.undefs
10621  mv conftest.tail conftest.undefs
10622done
10623rm -f conftest.undefs
10624
10625cat >>$CONFIG_STATUS <<\_ACEOF
10626  # Let's still pretend it is `configure' which instantiates (i.e., don't
10627  # use $as_me), people would be surprised to read:
10628  #    /* config.h.  Generated by config.status.  */
10629  if test x"$ac_file" = x-; then
10630    echo "/* Generated by configure.  */" >$tmp/config.h
10631  else
10632    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10633  fi
10634  cat $tmp/in >>$tmp/config.h
10635  rm -f $tmp/in
10636  if test x"$ac_file" != x-; then
10637    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10638      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10639echo "$as_me: $ac_file is unchanged" >&6;}
10640    else
10641      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10643         X"$ac_file" : 'X\(//\)[^/]' \| \
10644         X"$ac_file" : 'X\(//\)$' \| \
10645         X"$ac_file" : 'X\(/\)' \| \
10646         .     : '\(.\)' 2>/dev/null ||
10647echo X"$ac_file" |
10648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10649          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10650          /^X\(\/\/\)$/{ s//\1/; q; }
10651          /^X\(\/\).*/{ s//\1/; q; }
10652          s/.*/./; q'`
10653      { if $as_mkdir_p; then
10654    mkdir -p "$ac_dir"
10655  else
10656    as_dir="$ac_dir"
10657    as_dirs=
10658    while test ! -d "$as_dir"; do
10659      as_dirs="$as_dir $as_dirs"
10660      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10662         X"$as_dir" : 'X\(//\)[^/]' \| \
10663         X"$as_dir" : 'X\(//\)$' \| \
10664         X"$as_dir" : 'X\(/\)' \| \
10665         .     : '\(.\)' 2>/dev/null ||
10666echo X"$as_dir" |
10667    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10668          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10669          /^X\(\/\/\)$/{ s//\1/; q; }
10670          /^X\(\/\).*/{ s//\1/; q; }
10671          s/.*/./; q'`
10672    done
10673    test ! -n "$as_dirs" || mkdir $as_dirs
10674  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10675echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10676   { (exit 1); exit 1; }; }; }
10677
10678      rm -f $ac_file
10679      mv $tmp/config.h $ac_file
10680    fi
10681  else
10682    cat $tmp/config.h
10683    rm -f $tmp/config.h
10684  fi
10685# Compute $ac_file's index in $config_headers.
10686_am_stamp_count=1
10687for _am_header in $config_headers :; do
10688  case $_am_header in
10689    $ac_file | $ac_file:* )
10690      break ;;
10691    * )
10692      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10693  esac
10694done
10695echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10696$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10697         X$ac_file : 'X\(//\)[^/]' \| \
10698         X$ac_file : 'X\(//\)$' \| \
10699         X$ac_file : 'X\(/\)' \| \
10700         .     : '\(.\)' 2>/dev/null ||
10701echo X$ac_file |
10702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10703          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10704          /^X\(\/\/\)$/{ s//\1/; q; }
10705          /^X\(\/\).*/{ s//\1/; q; }
10706          s/.*/./; q'`/stamp-h$_am_stamp_count
10707done
10708_ACEOF
10709cat >>$CONFIG_STATUS <<\_ACEOF
10710
10711#
10712# CONFIG_COMMANDS section.
10713#
10714for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10715  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10716  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10717  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10718$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10719         X"$ac_dest" : 'X\(//\)[^/]' \| \
10720         X"$ac_dest" : 'X\(//\)$' \| \
10721         X"$ac_dest" : 'X\(/\)' \| \
10722         .     : '\(.\)' 2>/dev/null ||
10723echo X"$ac_dest" |
10724    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10725          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10726          /^X\(\/\/\)$/{ s//\1/; q; }
10727          /^X\(\/\).*/{ s//\1/; q; }
10728          s/.*/./; q'`
10729  { if $as_mkdir_p; then
10730    mkdir -p "$ac_dir"
10731  else
10732    as_dir="$ac_dir"
10733    as_dirs=
10734    while test ! -d "$as_dir"; do
10735      as_dirs="$as_dir $as_dirs"
10736      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10738         X"$as_dir" : 'X\(//\)[^/]' \| \
10739         X"$as_dir" : 'X\(//\)$' \| \
10740         X"$as_dir" : 'X\(/\)' \| \
10741         .     : '\(.\)' 2>/dev/null ||
10742echo X"$as_dir" |
10743    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10744          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10745          /^X\(\/\/\)$/{ s//\1/; q; }
10746          /^X\(\/\).*/{ s//\1/; q; }
10747          s/.*/./; q'`
10748    done
10749    test ! -n "$as_dirs" || mkdir $as_dirs
10750  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10751echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10752   { (exit 1); exit 1; }; }; }
10753
10754  ac_builddir=.
10755
10756if test "$ac_dir" != .; then
10757  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10758  # A "../" for each directory in $ac_dir_suffix.
10759  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10760else
10761  ac_dir_suffix= ac_top_builddir=
10762fi
10763
10764case $srcdir in
10765  .)  # No --srcdir option.  We are building in place.
10766    ac_srcdir=.
10767    if test -z "$ac_top_builddir"; then
10768       ac_top_srcdir=.
10769    else
10770       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10771    fi ;;
10772  [\\/]* | ?:[\\/]* )  # Absolute path.
10773    ac_srcdir=$srcdir$ac_dir_suffix;
10774    ac_top_srcdir=$srcdir ;;
10775  *) # Relative path.
10776    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10777    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10778esac
10779
10780# Do not use `cd foo && pwd` to compute absolute paths, because
10781# the directories may not exist.
10782case `pwd` in
10783.) ac_abs_builddir="$ac_dir";;
10784*)
10785  case "$ac_dir" in
10786  .) ac_abs_builddir=`pwd`;;
10787  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10788  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10789  esac;;
10790esac
10791case $ac_abs_builddir in
10792.) ac_abs_top_builddir=${ac_top_builddir}.;;
10793*)
10794  case ${ac_top_builddir}. in
10795  .) ac_abs_top_builddir=$ac_abs_builddir;;
10796  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10797  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10798  esac;;
10799esac
10800case $ac_abs_builddir in
10801.) ac_abs_srcdir=$ac_srcdir;;
10802*)
10803  case $ac_srcdir in
10804  .) ac_abs_srcdir=$ac_abs_builddir;;
10805  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10806  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10807  esac;;
10808esac
10809case $ac_abs_builddir in
10810.) ac_abs_top_srcdir=$ac_top_srcdir;;
10811*)
10812  case $ac_top_srcdir in
10813  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10814  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10815  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10816  esac;;
10817esac
10818
10819
10820  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10821echo "$as_me: executing $ac_dest commands" >&6;}
10822  case $ac_dest in
10823    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10824  # Strip MF so we end up with the name of the file.
10825  mf=`echo "$mf" | sed -e 's/:.*$//'`
10826  # Check whether this is an Automake generated Makefile or not.
10827  # We used to match only the files named `Makefile.in', but
10828  # some people rename them; so instead we look at the file content.
10829  # Grep'ing the first line is not enough: some people post-process
10830  # each Makefile.in and add a new line on top of each file to say so.
10831  # So let's grep whole file.
10832  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10833    dirpart=`(dirname "$mf") 2>/dev/null ||
10834$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10835         X"$mf" : 'X\(//\)[^/]' \| \
10836         X"$mf" : 'X\(//\)$' \| \
10837         X"$mf" : 'X\(/\)' \| \
10838         .     : '\(.\)' 2>/dev/null ||
10839echo X"$mf" |
10840    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10841          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10842          /^X\(\/\/\)$/{ s//\1/; q; }
10843          /^X\(\/\).*/{ s//\1/; q; }
10844          s/.*/./; q'`
10845  else
10846    continue
10847  fi
10848  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10849  # Extract the definition of DEP_FILES from the Makefile without
10850  # running `make'.
10851  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10852  test -z "$DEPDIR" && continue
10853  # When using ansi2knr, U may be empty or an underscore; expand it
10854  U=`sed -n 's/^U = //p' < "$mf"`
10855  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10856  # We invoke sed twice because it is the simplest approach to
10857  # changing $(DEPDIR) to its actual value in the expansion.
10858  for file in `sed -n '
10859    /^DEP_FILES = .*\\\\$/ {
10860      s/^DEP_FILES = //
10861      :loop
10862        s/\\\\$//
10863        p
10864        n
10865        /\\\\$/ b loop
10866      p
10867    }
10868    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10869       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10870    # Make sure the directory exists.
10871    test -f "$dirpart/$file" && continue
10872    fdir=`(dirname "$file") 2>/dev/null ||
10873$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10874         X"$file" : 'X\(//\)[^/]' \| \
10875         X"$file" : 'X\(//\)$' \| \
10876         X"$file" : 'X\(/\)' \| \
10877         .     : '\(.\)' 2>/dev/null ||
10878echo X"$file" |
10879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10881          /^X\(\/\/\)$/{ s//\1/; q; }
10882          /^X\(\/\).*/{ s//\1/; q; }
10883          s/.*/./; q'`
10884    { if $as_mkdir_p; then
10885    mkdir -p $dirpart/$fdir
10886  else
10887    as_dir=$dirpart/$fdir
10888    as_dirs=
10889    while test ! -d "$as_dir"; do
10890      as_dirs="$as_dir $as_dirs"
10891      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10893         X"$as_dir" : 'X\(//\)[^/]' \| \
10894         X"$as_dir" : 'X\(//\)$' \| \
10895         X"$as_dir" : 'X\(/\)' \| \
10896         .     : '\(.\)' 2>/dev/null ||
10897echo X"$as_dir" |
10898    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10899          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10900          /^X\(\/\/\)$/{ s//\1/; q; }
10901          /^X\(\/\).*/{ s//\1/; q; }
10902          s/.*/./; q'`
10903    done
10904    test ! -n "$as_dirs" || mkdir $as_dirs
10905  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10906echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10907   { (exit 1); exit 1; }; }; }
10908
10909    # echo "creating $dirpart/$file"
10910    echo '# dummy' > "$dirpart/$file"
10911  done
10912done
10913 ;;
10914  esac
10915done
10916_ACEOF
10917
10918cat >>$CONFIG_STATUS <<\_ACEOF
10919
10920{ (exit 0); exit 0; }
10921_ACEOF
10922chmod +x $CONFIG_STATUS
10923ac_clean_files=$ac_clean_files_save
10924
10925
10926# configure is writing to config.log, and then calls config.status.
10927# config.status does its own redirection, appending to config.log.
10928# Unfortunately, on DOS this fails, as config.log is still kept open
10929# by configure, so config.status won't be able to write to it; its
10930# output is simply discarded.  So we exec the FD to /dev/null,
10931# effectively closing config.log, so it can be properly (re)opened and
10932# appended to by config.status.  When coming back to configure, we
10933# need to make the FD available again.
10934if test "$no_create" != yes; then
10935  ac_cs_success=:
10936  ac_config_status_args=
10937  test "$silent" = yes &&
10938    ac_config_status_args="$ac_config_status_args --quiet"
10939  exec 5>/dev/null
10940  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10941  exec 5>>config.log
10942  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10943  # would make configure fail if this is the last instruction.
10944  $ac_cs_success || { (exit 1); exit 1; }
10945fi
10946
Note: See TracBrowser for help on using the repository browser.