Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5221

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

orxonox/trunk: configure.ac path, so now one can append a path for the shared-lib's dir

  • Property svn:executable set to *
File size: 332.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.3.1_alpha.
4#
5# Report bugs to <orxonox-dev at mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.3.1_alpha'
273PACKAGE_STRING='orxonox 0.3.1_alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.3.1_alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
871  --disable-gtk           Prevents GTK from being loaded
872  --disable-curl          Prevents libcURL from being loaded
873  --enable-profile        builds orxonox with profiling support
874  --enable-efence         builds orxonox with efence support
875  --enable-documentation  also builds the sDocumentation while make from
876                          srcdir
877
878Optional Packages:
879  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
881  --with-shared-lib-path  Tells the executable, where to look for the shared
882                          libraries.
883  --with-sub-projects     also builds the subProjects while make from srcdir
884
885Some influential environment variables:
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CC          C compiler command
893  CFLAGS      C compiler flags
894  CPP         C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899Report bugs to <orxonox-dev at mail.datacore.ch>.
900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904  # If there are subdirs, report their specific --help.
905  ac_popdir=`pwd`
906  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907    test -d $ac_dir || continue
908    ac_builddir=.
909
910if test "$ac_dir" != .; then
911  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912  # A "../" for each directory in $ac_dir_suffix.
913  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915  ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919  .)  # No --srcdir option.  We are building in place.
920    ac_srcdir=.
921    if test -z "$ac_top_builddir"; then
922       ac_top_srcdir=.
923    else
924       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925    fi ;;
926  [\\/]* | ?:[\\/]* )  # Absolute path.
927    ac_srcdir=$srcdir$ac_dir_suffix;
928    ac_top_srcdir=$srcdir ;;
929  *) # Relative path.
930    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939  case "$ac_dir" in
940  .) ac_abs_builddir=`pwd`;;
941  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942  *) ac_abs_builddir=`pwd`/"$ac_dir";;
943  esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948  case ${ac_top_builddir}. in
949  .) ac_abs_top_builddir=$ac_abs_builddir;;
950  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957  case $ac_srcdir in
958  .) ac_abs_srcdir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966  case $ac_top_srcdir in
967  .) ac_abs_top_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970  esac;;
971esac
972
973    cd $ac_dir
974    # Check for guested configure; otherwise get Cygnus style configure.
975    if test -f $ac_srcdir/configure.gnu; then
976      echo
977      $SHELL $ac_srcdir/configure.gnu  --help=recursive
978    elif test -f $ac_srcdir/configure; then
979      echo
980      $SHELL $ac_srcdir/configure  --help=recursive
981    elif test -f $ac_srcdir/configure.ac ||
982           test -f $ac_srcdir/configure.in; then
983      echo
984      $ac_configure --help
985    else
986      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987    fi
988    cd $ac_popdir
989  done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994  cat <<\_ACEOF
995orxonox configure 0.3.1_alpha
996generated by GNU Autoconf 2.59
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002  exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
1009It was created by orxonox $as_me 0.3.1_alpha, which was
1010generated by GNU Autoconf 2.59.  Invocation command line was
1011
1012  $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1029
1030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043  IFS=$as_save_IFS
1044  test -z "$as_dir" && as_dir=.
1045  echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072  for ac_arg
1073  do
1074    case $ac_arg in
1075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077    | -silent | --silent | --silen | --sile | --sil)
1078      continue ;;
1079    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081    esac
1082    case $ac_pass in
1083    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084    2)
1085      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086      if test $ac_must_keep_next = true; then
1087        ac_must_keep_next=false # Got value, back to normal.
1088      else
1089        case $ac_arg in
1090          *=* | --config-cache | -C | -disable-* | --disable-* \
1091          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093          | -with-* | --with-* | -without-* | --without-* | --x)
1094            case "$ac_configure_args0 " in
1095              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096            esac
1097            ;;
1098          -* ) ac_must_keep_next=true ;;
1099        esac
1100      fi
1101      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102      # Get rid of the leading space.
1103      ac_sep=" "
1104      ;;
1105    esac
1106  done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log.  We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117  # Save into config.log some information that might help in debugging.
1118  {
1119    echo
1120
1121    cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126    echo
1127    # The following way of writing the cache mishandles newlines in values,
1128{
1129  (set) 2>&1 |
1130    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131    *ac_space=\ *)
1132      sed -n \
1133        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135      ;;
1136    *)
1137      sed -n \
1138        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139      ;;
1140    esac;
1141}
1142    echo
1143
1144    cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149    echo
1150    for ac_var in $ac_subst_vars
1151    do
1152      eval ac_val=$`echo $ac_var`
1153      echo "$ac_var='"'"'$ac_val'"'"'"
1154    done | sort
1155    echo
1156
1157    if test -n "$ac_subst_files"; then
1158      cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163      echo
1164      for ac_var in $ac_subst_files
1165      do
1166        eval ac_val=$`echo $ac_var`
1167        echo "$ac_var='"'"'$ac_val'"'"'"
1168      done | sort
1169      echo
1170    fi
1171
1172    if test -s confdefs.h; then
1173      cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178      echo
1179      sed "/^$/d" confdefs.h | sort
1180      echo
1181    fi
1182    test "$ac_signal" != 0 &&
1183      echo "$as_me: caught signal $ac_signal"
1184    echo "$as_me: exit $exit_status"
1185  } >&5
1186  rm -f core *.core &&
1187  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188    exit $exit_status
1189     ' 0
1190for ac_signal in 1 2 13 15; do
1191  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230  if test "x$prefix" != xNONE; then
1231    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232  else
1233    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234  fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237  if test -r "$ac_site_file"; then
1238    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240    sed 's/^/| /' "$ac_site_file" >&5
1241    . "$ac_site_file"
1242  fi
1243done
1244
1245if test -r "$cache_file"; then
1246  # Some versions of bash will fail to source /dev/null (special
1247  # files actually), so we avoid doing that.
1248  if test -f "$cache_file"; then
1249    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251    case $cache_file in
1252      [\\/]* | ?:[\\/]* ) . $cache_file;;
1253      *)                      . ./$cache_file;;
1254    esac
1255  fi
1256else
1257  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259  >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268  eval ac_new_set=\$ac_env_${ac_var}_set
1269  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270  eval ac_new_val="\$ac_env_${ac_var}_value"
1271  case $ac_old_set,$ac_new_set in
1272    set,)
1273      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275      ac_cache_corrupted=: ;;
1276    ,set)
1277      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279      ac_cache_corrupted=: ;;
1280    ,);;
1281    *)
1282      if test "x$ac_old_val" != "x$ac_new_val"; then
1283        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286echo "$as_me:   former value:  $ac_old_val" >&2;}
1287        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288echo "$as_me:   current value: $ac_new_val" >&2;}
1289        ac_cache_corrupted=:
1290      fi;;
1291  esac
1292  # Pass precious variables to config.status.
1293  if test "$ac_new_set" = set; then
1294    case $ac_new_val in
1295    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297    *) ac_arg=$ac_var=$ac_new_val ;;
1298    esac
1299    case " $ac_configure_args " in
1300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1301      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302    esac
1303  fi
1304done
1305if $ac_cache_corrupted; then
1306  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346## Detect the canonical host and target build environment.
1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372# Make sure we can run config.sub.
1373$ac_config_sub sun4 >/dev/null 2>&1 ||
1374  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1375echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1376   { (exit 1); exit 1; }; }
1377
1378echo "$as_me:$LINENO: checking build system type" >&5
1379echo $ECHO_N "checking build system type... $ECHO_C" >&6
1380if test "${ac_cv_build+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_build_alias=$build_alias
1384test -z "$ac_cv_build_alias" &&
1385  ac_cv_build_alias=`$ac_config_guess`
1386test -z "$ac_cv_build_alias" &&
1387  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1389   { (exit 1); exit 1; }; }
1390ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1391  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1393   { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1397echo "${ECHO_T}$ac_cv_build" >&6
1398build=$ac_cv_build
1399build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking host system type" >&5
1405echo $ECHO_N "checking host system type... $ECHO_C" >&6
1406if test "${ac_cv_host+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  ac_cv_host_alias=$host_alias
1410test -z "$ac_cv_host_alias" &&
1411  ac_cv_host_alias=$ac_cv_build_alias
1412ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1413  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1415   { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1419echo "${ECHO_T}$ac_cv_host" >&6
1420host=$ac_cv_host
1421host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426echo "$as_me:$LINENO: checking target system type" >&5
1427echo $ECHO_N "checking target system type... $ECHO_C" >&6
1428if test "${ac_cv_target+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  ac_cv_target_alias=$target_alias
1432test "x$ac_cv_target_alias" = "x" &&
1433  ac_cv_target_alias=$ac_cv_host_alias
1434ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1435  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1436echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1437   { (exit 1); exit 1; }; }
1438
1439fi
1440echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1441echo "${ECHO_T}$ac_cv_target" >&6
1442target=$ac_cv_target
1443target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448# The aliases save the names the user supplied, while $host etc.
1449# will get canonicalized.
1450test -n "$target_alias" &&
1451  test "$program_prefix$program_suffix$program_transform_name" = \
1452    NONENONEs,x,x, &&
1453  program_prefix=${target_alias}-
1454
1455am__api_version="1.8"
1456# Find a good install program.  We prefer a C program (faster),
1457# so one script is as good as another.  But avoid the broken or
1458# incompatible versions:
1459# SysV /etc/install, /usr/sbin/install
1460# SunOS /usr/etc/install
1461# IRIX /sbin/install
1462# AIX /bin/install
1463# AmigaOS /C/install, which installs bootblocks on floppy discs
1464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467# OS/2's system install, which has a completely different semantic
1468# ./install, which can be erroneously created by make from ./install.sh.
1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471if test -z "$INSTALL"; then
1472if test "${ac_cv_path_install+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  # Account for people who put trailing slashes in PATH elements.
1481case $as_dir/ in
1482  ./ | .// | /cC/* | \
1483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485  /usr/ucb/* ) ;;
1486  *)
1487    # OSF1 and SCO ODT 3.0 have their own names for install.
1488    # Don't use installbsd from OSF since it installs stuff as root
1489    # by default.
1490    for ac_prog in ginstall scoinst install; do
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493          if test $ac_prog = install &&
1494            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # AIX install.  It has an incompatible calling convention.
1496            :
1497          elif test $ac_prog = install &&
1498            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499            # program-specific install script used by HP pwplus--don't use.
1500            :
1501          else
1502            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503            break 3
1504          fi
1505        fi
1506      done
1507    done
1508    ;;
1509esac
1510done
1511
1512
1513fi
1514  if test "${ac_cv_path_install+set}" = set; then
1515    INSTALL=$ac_cv_path_install
1516  else
1517    # As a last resort, use the slow shell script.  We don't cache a
1518    # path for INSTALL within a source directory, because that will
1519    # break other packages using the cache if that directory is
1520    # removed, or if the path is relative.
1521    INSTALL=$ac_install_sh
1522  fi
1523fi
1524echo "$as_me:$LINENO: result: $INSTALL" >&5
1525echo "${ECHO_T}$INSTALL" >&6
1526
1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528# It thinks the first close brace ends the variable substitution.
1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530
1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532
1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534
1535echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537# Just in case
1538sleep 1
1539echo timestamp > conftest.file
1540# Do `set' in a subshell so we don't clobber the current shell's
1541# arguments.  Must try -L first in case configure is actually a
1542# symlink; some systems play weird games with the mod time of symlinks
1543# (eg FreeBSD returns the mod time of the symlink's containing
1544# directory).
1545if (
1546   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547   if test "$*" = "X"; then
1548      # -L didn't work.
1549      set X `ls -t $srcdir/configure conftest.file`
1550   fi
1551   rm -f conftest.file
1552   if test "$*" != "X $srcdir/configure conftest.file" \
1553      && test "$*" != "X conftest.file $srcdir/configure"; then
1554
1555      # If neither matched, then we have a broken ls.  This can happen
1556      # if, for instance, CONFIG_SHELL is bash and it inherits a
1557      # broken ls alias from the environment.  This has actually
1558      # happened.  Such a system could not be considered "sane".
1559      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&5
1561echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&2;}
1563   { (exit 1); exit 1; }; }
1564   fi
1565
1566   test "$2" = conftest.file
1567   )
1568then
1569   # Ok.
1570   :
1571else
1572   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573Check your system clock" >&5
1574echo "$as_me: error: newly created file is older than distributed files!
1575Check your system clock" >&2;}
1576   { (exit 1); exit 1; }; }
1577fi
1578echo "$as_me:$LINENO: result: yes" >&5
1579echo "${ECHO_T}yes" >&6
1580test "$program_prefix" != NONE &&
1581  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582# Use a double $ so make ignores it.
1583test "$program_suffix" != NONE &&
1584  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585# Double any \ or $.  echo might interpret backslashes.
1586# By default was `s,x,x', remove it if useless.
1587cat <<\_ACEOF >conftest.sed
1588s/[\\$]/&&/g;s/;s,x,x,$//
1589_ACEOF
1590program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591rm conftest.sed
1592
1593# expand $ac_aux_dir to an absolute path
1594am_aux_dir=`cd $ac_aux_dir && pwd`
1595
1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597# Use eval to expand $SHELL
1598if eval "$MISSING --run true"; then
1599  am_missing_run="$MISSING --run "
1600else
1601  am_missing_run=
1602  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604fi
1605
1606if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1607  # Keeping the `.' argument allows $(mkdir_p) to be used without
1608  # argument.  Indeed, we sometimes output rules like
1609  #   $(mkdir_p) $(somedir)
1610  # where $(somedir) is conditionally defined.
1611  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1612  # expensive solution, as it forces Make to start a sub-shell.)
1613  mkdir_p='mkdir -p -- .'
1614else
1615  # On NextStep and OpenStep, the `mkdir' command does not
1616  # recognize any option.  It will interpret all options as
1617  # directories to create, and then abort because `.' already
1618  # exists.
1619  for d in ./-p ./--version;
1620  do
1621    test -d $d && rmdir $d
1622  done
1623  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1624  if test -f "$ac_aux_dir/mkinstalldirs"; then
1625    mkdir_p='$(mkinstalldirs)'
1626  else
1627    mkdir_p='$(install_sh) -d'
1628  fi
1629fi
1630
1631for ac_prog in gawk mawk nawk awk
1632do
1633  # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_AWK+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$AWK"; then
1641  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_AWK="$ac_prog"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657fi
1658fi
1659AWK=$ac_cv_prog_AWK
1660if test -n "$AWK"; then
1661  echo "$as_me:$LINENO: result: $AWK" >&5
1662echo "${ECHO_T}$AWK" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  test -n "$AWK" && break
1669done
1670
1671echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1672echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1673set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1674if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  cat >conftest.make <<\_ACEOF
1678all:
1679        @echo 'ac_maketemp="$(MAKE)"'
1680_ACEOF
1681# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683if test -n "$ac_maketemp"; then
1684  eval ac_cv_prog_make_${ac_make}_set=yes
1685else
1686  eval ac_cv_prog_make_${ac_make}_set=no
1687fi
1688rm -f conftest.make
1689fi
1690if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693  SET_MAKE=
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697  SET_MAKE="MAKE=${MAKE-make}"
1698fi
1699
1700rm -rf .tst 2>/dev/null
1701mkdir .tst 2>/dev/null
1702if test -d .tst; then
1703  am__leading_dot=.
1704else
1705  am__leading_dot=_
1706fi
1707rmdir .tst 2>/dev/null
1708
1709# test to see if srcdir already configured
1710if test "`cd $srcdir && pwd`" != "`pwd`" &&
1711   test -f $srcdir/config.status; then
1712  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716
1717# test whether we have cygpath
1718if test -z "$CYGPATH_W"; then
1719  if (cygpath --version) >/dev/null 2>/dev/null; then
1720    CYGPATH_W='cygpath -w'
1721  else
1722    CYGPATH_W=echo
1723  fi
1724fi
1725
1726
1727# Define the identity of the package.
1728 PACKAGE='orxonox'
1729 VERSION='0.3.1_alpha'
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741# Some tools Automake needs.
1742
1743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744
1745
1746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747
1748
1749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750
1751
1752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753
1754
1755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1756
1757
1758AMTAR=${AMTAR-"${am_missing_run}tar"}
1759
1760install_sh=${install_sh-"$am_aux_dir/install-sh"}
1761
1762# Installed binaries are usually stripped using `strip' when the user
1763# run `make install-strip'.  However `strip' might not be the right
1764# tool to use in cross-compilation environments, therefore Automake
1765# will honor the `STRIP' environment variable to overrule this program.
1766if test "$cross_compiling" != no; then
1767  if test -n "$ac_tool_prefix"; then
1768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}strip; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_STRIP+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$STRIP"; then
1776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794STRIP=$ac_cv_prog_STRIP
1795if test -n "$STRIP"; then
1796  echo "$as_me:$LINENO: result: $STRIP" >&5
1797echo "${ECHO_T}$STRIP" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_STRIP"; then
1805  ac_ct_STRIP=$STRIP
1806  # Extract the first word of "strip", so it can be a program name with args.
1807set dummy strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$ac_ct_STRIP"; then
1814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823    ac_cv_prog_ac_ct_STRIP="strip"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829
1830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1831fi
1832fi
1833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834if test -n "$ac_ct_STRIP"; then
1835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836echo "${ECHO_T}$ac_ct_STRIP" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842  STRIP=$ac_ct_STRIP
1843else
1844  STRIP="$ac_cv_prog_STRIP"
1845fi
1846
1847fi
1848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1849
1850# We need awk for the "check" target.  The system "awk" is bad on
1851# some platforms.
1852
1853
1854
1855
1856
1857          ac_config_headers="$ac_config_headers config.h"
1858
1859
1860#########################
1861## Checks for programs ##
1862#########################
1863ac_ext=cc
1864ac_cpp='$CXXCPP $CPPFLAGS'
1865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1868if test -n "$ac_tool_prefix"; then
1869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1870  do
1871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CXX+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$CXX"; then
1879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897CXX=$ac_cv_prog_CXX
1898if test -n "$CXX"; then
1899  echo "$as_me:$LINENO: result: $CXX" >&5
1900echo "${ECHO_T}$CXX" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906    test -n "$CXX" && break
1907  done
1908fi
1909if test -z "$CXX"; then
1910  ac_ct_CXX=$CXX
1911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912do
1913  # Extract the first word of "$ac_prog", so it can be a program name with args.
1914set dummy $ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_CXX"; then
1921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_CXX="$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1940if test -n "$ac_ct_CXX"; then
1941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1942echo "${ECHO_T}$ac_ct_CXX" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948  test -n "$ac_ct_CXX" && break
1949done
1950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1951
1952  CXX=$ac_ct_CXX
1953fi
1954
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C++ compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991ac_clean_files_save=$ac_clean_files
1992ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993# Try to create an executable without -o first, disregard a.out.
1994# It will help us diagnose broken compilers, and finding out an intuition
1995# of exeext.
1996echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1997echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1998ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000  (eval $ac_link_default) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; then
2004  # Find the output, starting from the most likely.  This scheme is
2005# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006# resort.
2007
2008# Be careful to initialize this variable, since it used to be cached.
2009# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010ac_cv_exeext=
2011# b.out is created by i960 compilers.
2012for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013do
2014  test -f "$ac_file" || continue
2015  case $ac_file in
2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2017        ;;
2018    conftest.$ac_ext )
2019        # This is the source file.
2020        ;;
2021    [ab].out )
2022        # We found the default executable, but exeext='' is most
2023        # certainly right.
2024        break;;
2025    *.* )
2026        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027        # FIXME: I believe we export ac_cv_exeext for Libtool,
2028        # but it would be cool to find out if it's true.  Does anybody
2029        # maintain Libtool? --akim.
2030        export ac_cv_exeext
2031        break;;
2032    * )
2033        break;;
2034  esac
2035done
2036else
2037  echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&2;}
2044   { (exit 77); exit 77; }; }
2045fi
2046
2047ac_exeext=$ac_cv_exeext
2048echo "$as_me:$LINENO: result: $ac_file" >&5
2049echo "${ECHO_T}$ac_file" >&6
2050
2051# Check the compiler produces executables we can run.  If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2054echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2055# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2056# If not cross compiling, check that we can run a simple program.
2057if test "$cross_compiling" != yes; then
2058  if { ac_try='./$ac_file'
2059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060  (eval $ac_try) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; }; then
2064    cross_compiling=no
2065  else
2066    if test "$cross_compiling" = maybe; then
2067        cross_compiling=yes
2068    else
2069        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: cannot run C++ compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076    fi
2077  fi
2078fi
2079echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6
2081
2082rm -f a.out a.exe conftest$ac_cv_exeext b.out
2083ac_clean_files=$ac_clean_files_save
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2087echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2088echo "$as_me:$LINENO: result: $cross_compiling" >&5
2089echo "${ECHO_T}$cross_compiling" >&6
2090
2091echo "$as_me:$LINENO: checking for suffix of executables" >&5
2092echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2094  (eval $ac_link) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2100# work properly (i.e., refer to `conftest.exe'), while it won't with
2101# `rm'.
2102for ac_file in conftest.exe conftest conftest.*; do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107          export ac_cv_exeext
2108          break;;
2109    * ) break;;
2110  esac
2111done
2112else
2113  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest$ac_cv_exeext
2121echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2122echo "${ECHO_T}$ac_cv_exeext" >&6
2123
2124rm -f conftest.$ac_ext
2125EXEEXT=$ac_cv_exeext
2126ac_exeext=$EXEEXT
2127echo "$as_me:$LINENO: checking for suffix of object files" >&5
2128echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2129if test "${ac_cv_objext+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147rm -f conftest.o conftest.obj
2148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149  (eval $ac_compile) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157       break;;
2158  esac
2159done
2160else
2161  echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2174echo "${ECHO_T}$ac_cv_objext" >&6
2175OBJEXT=$ac_cv_objext
2176ac_objext=$OBJEXT
2177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188
2189int
2190main ()
2191{
2192#ifndef __GNUC__
2193       choke me
2194#endif
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209         { ac_try='test -z "$ac_cxx_werror_flag"
2210                         || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216         { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_compiler_gnu=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_compiler_gnu=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2234echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2235GXX=`test $ac_compiler_gnu = yes && echo yes`
2236ac_test_CXXFLAGS=${CXXFLAGS+set}
2237ac_save_CXXFLAGS=$CXXFLAGS
2238CXXFLAGS="-g"
2239echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2240echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2241if test "${ac_cv_prog_cxx_g+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  ac_cv_prog_cxx_g=yes
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286ac_cv_prog_cxx_g=no
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2292if test "$ac_test_CXXFLAGS" = set; then
2293  CXXFLAGS=$ac_save_CXXFLAGS
2294elif test $ac_cv_prog_cxx_g = yes; then
2295  if test "$GXX" = yes; then
2296    CXXFLAGS="-g -O2"
2297  else
2298    CXXFLAGS="-g"
2299  fi
2300else
2301  if test "$GXX" = yes; then
2302    CXXFLAGS="-O2"
2303  else
2304    CXXFLAGS=
2305  fi
2306fi
2307for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  :
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358continue
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367$ac_declaration
2368int
2369main ()
2370{
2371exit (42);
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_cxx_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418DEPDIR="${am__leading_dot}deps"
2419
2420          ac_config_commands="$ac_config_commands depfiles"
2421
2422
2423am_make=${MAKE-make}
2424cat > confinc << 'END'
2425am__doit:
2426        @echo done
2427.PHONY: am__doit
2428END
2429# If we don't find an include directive, just comment out the code.
2430echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2431echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2432am__include="#"
2433am__quote=
2434_am_result=none
2435# First try GNU make style include.
2436echo "include confinc" > confmf
2437# We grep out `Entering directory' and `Leaving directory'
2438# messages which can occur if `w' ends up in MAKEFLAGS.
2439# In particular we don't look at `^make:' because GNU make might
2440# be invoked under some other name (usually "gmake"), in which
2441# case it prints its new name instead of `make'.
2442if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2443   am__include=include
2444   am__quote=
2445   _am_result=GNU
2446fi
2447# Now try BSD make style include.
2448if test "$am__include" = "#"; then
2449   echo '.include "confinc"' > confmf
2450   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2451      am__include=.include
2452      am__quote="\""
2453      _am_result=BSD
2454   fi
2455fi
2456
2457
2458echo "$as_me:$LINENO: result: $_am_result" >&5
2459echo "${ECHO_T}$_am_result" >&6
2460rm -f confinc confmf
2461
2462# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2463if test "${enable_dependency_tracking+set}" = set; then
2464  enableval="$enable_dependency_tracking"
2465
2466fi;
2467if test "x$enable_dependency_tracking" != xno; then
2468  am_depcomp="$ac_aux_dir/depcomp"
2469  AMDEPBACKSLASH='\'
2470fi
2471
2472
2473if test "x$enable_dependency_tracking" != xno; then
2474  AMDEP_TRUE=
2475  AMDEP_FALSE='#'
2476else
2477  AMDEP_TRUE='#'
2478  AMDEP_FALSE=
2479fi
2480
2481
2482
2483
2484depcc="$CXX"  am_compiler_list=
2485
2486echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2488if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2492  # We make a subdir and do the tests there.  Otherwise we can end up
2493  # making bogus files that we don't know about and never remove.  For
2494  # instance it was reported that on HP-UX the gcc test will end up
2495  # making a dummy file named `D' -- because `-MD' means `put the output
2496  # in D'.
2497  mkdir conftest.dir
2498  # Copy depcomp to subdir because otherwise we won't find it if we're
2499  # using a relative directory.
2500  cp "$am_depcomp" conftest.dir
2501  cd conftest.dir
2502  # We will build objects and dependencies in a subdirectory because
2503  # it helps to detect inapplicable dependency modes.  For instance
2504  # both Tru64's cc and ICC support -MD to output dependencies as a
2505  # side effect of compilation, but ICC will put the dependencies in
2506  # the current directory while Tru64 will put them in the object
2507  # directory.
2508  mkdir sub
2509
2510  am_cv_CXX_dependencies_compiler_type=none
2511  if test "$am_compiler_list" = ""; then
2512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2513  fi
2514  for depmode in $am_compiler_list; do
2515    # Setup a source with many dependencies, because some compilers
2516    # like to wrap large dependency lists on column 80 (with \), and
2517    # we should not choose a depcomp mode which is confused by this.
2518    #
2519    # We need to recreate these files for each test, as the compiler may
2520    # overwrite some of them when testing with obscure command lines.
2521    # This happens at least with the AIX C compiler.
2522    : > sub/conftest.c
2523    for i in 1 2 3 4 5 6; do
2524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2526      # Solaris 8's {/usr,}/bin/sh.
2527      touch sub/conftst$i.h
2528    done
2529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2530
2531    case $depmode in
2532    nosideeffect)
2533      # after this tag, mechanisms are not by side-effect, so they'll
2534      # only be used when explicitly requested
2535      if test "x$enable_dependency_tracking" = xyes; then
2536        continue
2537      else
2538        break
2539      fi
2540      ;;
2541    none) break ;;
2542    esac
2543    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2544    # mode.  It turns out that the SunPro C++ compiler does not properly
2545    # handle `-M -o', and we need to detect this.
2546    if depmode=$depmode \
2547       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2549       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2550         >/dev/null 2>conftest.err &&
2551       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2552       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2553       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2554      # icc doesn't choke on unknown options, it will just issue warnings
2555      # or remarks (even with -Werror).  So we grep stderr for any message
2556      # that says an option was ignored or not supported.
2557      # When given -MP, icc 7.0 and 7.1 complain thusly:
2558      #   icc: Command line warning: ignoring option '-M'; no argument required
2559      # The diagnosis changed in icc 8.0:
2560      #   icc: Command line remark: option '-MP' not supported
2561      if (grep 'ignoring option' conftest.err ||
2562          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2563        am_cv_CXX_dependencies_compiler_type=$depmode
2564        break
2565      fi
2566    fi
2567  done
2568
2569  cd ..
2570  rm -rf conftest.dir
2571else
2572  am_cv_CXX_dependencies_compiler_type=none
2573fi
2574
2575fi
2576echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2577echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2579
2580
2581
2582if
2583  test "x$enable_dependency_tracking" != xno \
2584  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2585  am__fastdepCXX_TRUE=
2586  am__fastdepCXX_FALSE='#'
2587else
2588  am__fastdepCXX_TRUE='#'
2589  am__fastdepCXX_FALSE=
2590fi
2591
2592
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_RANLIB+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$RANLIB"; then
2602  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620RANLIB=$ac_cv_prog_RANLIB
2621if test -n "$RANLIB"; then
2622  echo "$as_me:$LINENO: result: $RANLIB" >&5
2623echo "${ECHO_T}$RANLIB" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_RANLIB"; then
2631  ac_ct_RANLIB=$RANLIB
2632  # Extract the first word of "ranlib", so it can be a program name with args.
2633set dummy ranlib; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_RANLIB"; then
2640  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_RANLIB="ranlib"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2657fi
2658fi
2659ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2660if test -n "$ac_ct_RANLIB"; then
2661  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2662echo "${ECHO_T}$ac_ct_RANLIB" >&6
2663else
2664  echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666fi
2667
2668  RANLIB=$ac_ct_RANLIB
2669else
2670  RANLIB="$ac_cv_prog_RANLIB"
2671fi
2672
2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
2709else
2710  echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746echo "${ECHO_T}$ac_ct_CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752  CC=$ac_ct_CC
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757if test -z "$CC"; then
2758  if test -n "$ac_tool_prefix"; then
2759  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760set dummy ${ac_tool_prefix}cc; ac_word=$2
2761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776    ac_cv_prog_CC="${ac_tool_prefix}cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  echo "$as_me:$LINENO: result: $CC" >&5
2788echo "${ECHO_T}$CC" >&6
2789else
2790  echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792fi
2793
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796  ac_ct_CC=$CC
2797  # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_ac_ct_CC="cc"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2826echo "${ECHO_T}$ac_ct_CC" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832  CC=$ac_ct_CC
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837fi
2838if test -z "$CC"; then
2839  # Extract the first word of "cc", so it can be a program name with args.
2840set dummy cc; ac_word=$2
2841echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843if test "${ac_cv_prog_CC+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849  ac_prog_rejected=no
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858       ac_prog_rejected=yes
2859       continue
2860     fi
2861    ac_cv_prog_CC="cc"
2862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  echo "$as_me:$LINENO: result: $CC" >&5
2885echo "${ECHO_T}$CC" >&6
2886else
2887  echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$CC"; then
2893  if test -n "$ac_tool_prefix"; then
2894  for ac_prog in cl
2895  do
2896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900if test "${ac_cv_prog_CC+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
2924  echo "$as_me:$LINENO: result: $CC" >&5
2925echo "${ECHO_T}$CC" >&6
2926else
2927  echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929fi
2930
2931    test -n "$CC" && break
2932  done
2933fi
2934if test -z "$CC"; then
2935  ac_ct_CC=$CC
2936  for ac_prog in cl
2937do
2938  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939set dummy $ac_prog; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$ac_ct_CC"; then
2946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_CC="$ac_prog"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969  echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973  test -n "$ac_ct_CC" && break
2974done
2975
2976  CC=$ac_ct_CC
2977fi
2978
2979fi
2980
2981
2982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&5
2984echo "$as_me: error: no acceptable C compiler found in \$PATH
2985See \`config.log' for more details." >&2;}
2986   { (exit 1); exit 1; }; }
2987
2988# Provide some information about the compiler.
2989echo "$as_me:$LINENO:" \
2990     "checking for C compiler version" >&5
2991ac_compiler=`set X $ac_compile; echo $2`
2992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2993  (eval $ac_compiler --version </dev/null >&5) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }
2997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2998  (eval $ac_compiler -v </dev/null >&5) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }
3002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3003  (eval $ac_compiler -V </dev/null >&5) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }
3007
3008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest.$ac_objext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_compiler_gnu=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058ac_compiler_gnu=no
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
3069CFLAGS="-g"
3070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3072if test "${ac_cv_prog_cc_g+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092  (eval $ac_compile) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  ac_cv_prog_cc_g=yes
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_cv_prog_cc_g=no
3118fi
3119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3123if test "$ac_test_CFLAGS" = set; then
3124  CFLAGS=$ac_save_CFLAGS
3125elif test $ac_cv_prog_cc_g = yes; then
3126  if test "$GCC" = yes; then
3127    CFLAGS="-g -O2"
3128  else
3129    CFLAGS="-g"
3130  fi
3131else
3132  if test "$GCC" = yes; then
3133    CFLAGS="-O2"
3134  else
3135    CFLAGS=
3136  fi
3137fi
3138echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3139echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3140if test "${ac_cv_prog_cc_stdc+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_cv_prog_cc_stdc=no
3144ac_save_CC=$CC
3145cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151#include <stdarg.h>
3152#include <stdio.h>
3153#include <sys/types.h>
3154#include <sys/stat.h>
3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3156struct buf { int x; };
3157FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158static char *e (p, i)
3159     char **p;
3160     int i;
3161{
3162  return p[i];
3163}
3164static char *f (char * (*g) (char **, int), char **p, ...)
3165{
3166  char *s;
3167  va_list v;
3168  va_start (v,p);
3169  s = g (p, va_arg (v,int));
3170  va_end (v);
3171  return s;
3172}
3173
3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3175   function prototypes and stuff, but not '\xHH' hex character constants.
3176   These don't provoke an error unfortunately, instead are silently treated
3177   as 'x'.  The following induces an error, until -std1 is added to get
3178   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3179   array size at least.  It's necessary to write '\x00'==0 to get something
3180   that's true only with -std1.  */
3181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182
3183int test (int i, double x);
3184struct s1 {int (*f) (int a);};
3185struct s2 {int (*f) (double a);};
3186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187int argc;
3188char **argv;
3189int
3190main ()
3191{
3192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197# Don't try gcc -ansi; that turns off useful extensions and
3198# breaks some systems' header files.
3199# AIX                   -qlanglvl=ansi
3200# Ultrix and OSF/1      -std1
3201# HP-UX 10.20 and later -Ae
3202# HP-UX older versions  -Aa -D_HPUX_SOURCE
3203# SVR4                  -Xc -D__EXTENSIONS__
3204for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205do
3206  CC="$ac_save_CC $ac_arg"
3207  rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209  (eval $ac_compile) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest.$ac_objext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  ac_cv_prog_cc_stdc=$ac_arg
3230break
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235fi
3236rm -f conftest.err conftest.$ac_objext
3237done
3238rm -f conftest.$ac_ext conftest.$ac_objext
3239CC=$ac_save_CC
3240
3241fi
3242
3243case "x$ac_cv_prog_cc_stdc" in
3244  x|xno)
3245    echo "$as_me:$LINENO: result: none needed" >&5
3246echo "${ECHO_T}none needed" >&6 ;;
3247  *)
3248    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3250    CC="$CC $ac_cv_prog_cc_stdc" ;;
3251esac
3252
3253# Some people use a C++ compiler to compile C.  Since we use `exit',
3254# in C++ we need to declare it.  In case someone uses the same compiler
3255# for both compiling C and C++ we need to have the C++ compiler decide
3256# the declaration of exit, since it's the most demanding environment.
3257cat >conftest.$ac_ext <<_ACEOF
3258#ifndef __cplusplus
3259  choke me
3260#endif
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264  (eval $ac_compile) 2>conftest.er1
3265  ac_status=$?
3266  grep -v '^ *+' conftest.er1 >conftest.err
3267  rm -f conftest.er1
3268  cat conftest.err >&5
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); } &&
3271         { ac_try='test -z "$ac_c_werror_flag"
3272                         || test ! -s conftest.err'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; } &&
3278         { ac_try='test -s conftest.$ac_objext'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; }; then
3284  for ac_declaration in \
3285   '' \
3286   'extern "C" void std::exit (int) throw (); using std::exit;' \
3287   'extern "C" void std::exit (int); using std::exit;' \
3288   'extern "C" void exit (int) throw ();' \
3289   'extern "C" void exit (int);' \
3290   'void exit (int);'
3291do
3292  cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298$ac_declaration
3299#include <stdlib.h>
3300int
3301main ()
3302{
3303exit (42);
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310  (eval $ac_compile) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } &&
3317         { ac_try='test -z "$ac_c_werror_flag"
3318                         || test ! -s conftest.err'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324         { ac_try='test -s conftest.$ac_objext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  :
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335continue
3336fi
3337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344$ac_declaration
3345int
3346main ()
3347{
3348exit (42);
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355  (eval $ac_compile) 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } &&
3362         { ac_try='test -z "$ac_c_werror_flag"
3363                         || test ! -s conftest.err'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; } &&
3369         { ac_try='test -s conftest.$ac_objext'
3370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371  (eval $ac_try) 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }; }; then
3375  break
3376else
3377  echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380fi
3381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382done
3383rm -f conftest*
3384if test -n "$ac_declaration"; then
3385  echo '#ifdef __cplusplus' >>confdefs.h
3386  echo $ac_declaration      >>confdefs.h
3387  echo '#endif'             >>confdefs.h
3388fi
3389
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402depcc="$CC"   am_compiler_list=
3403
3404echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410  # We make a subdir and do the tests there.  Otherwise we can end up
3411  # making bogus files that we don't know about and never remove.  For
3412  # instance it was reported that on HP-UX the gcc test will end up
3413  # making a dummy file named `D' -- because `-MD' means `put the output
3414  # in D'.
3415  mkdir conftest.dir
3416  # Copy depcomp to subdir because otherwise we won't find it if we're
3417  # using a relative directory.
3418  cp "$am_depcomp" conftest.dir
3419  cd conftest.dir
3420  # We will build objects and dependencies in a subdirectory because
3421  # it helps to detect inapplicable dependency modes.  For instance
3422  # both Tru64's cc and ICC support -MD to output dependencies as a
3423  # side effect of compilation, but ICC will put the dependencies in
3424  # the current directory while Tru64 will put them in the object
3425  # directory.
3426  mkdir sub
3427
3428  am_cv_CC_dependencies_compiler_type=none
3429  if test "$am_compiler_list" = ""; then
3430     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431  fi
3432  for depmode in $am_compiler_list; do
3433    # Setup a source with many dependencies, because some compilers
3434    # like to wrap large dependency lists on column 80 (with \), and
3435    # we should not choose a depcomp mode which is confused by this.
3436    #
3437    # We need to recreate these files for each test, as the compiler may
3438    # overwrite some of them when testing with obscure command lines.
3439    # This happens at least with the AIX C compiler.
3440    : > sub/conftest.c
3441    for i in 1 2 3 4 5 6; do
3442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444      # Solaris 8's {/usr,}/bin/sh.
3445      touch sub/conftst$i.h
3446    done
3447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449    case $depmode in
3450    nosideeffect)
3451      # after this tag, mechanisms are not by side-effect, so they'll
3452      # only be used when explicitly requested
3453      if test "x$enable_dependency_tracking" = xyes; then
3454        continue
3455      else
3456        break
3457      fi
3458      ;;
3459    none) break ;;
3460    esac
3461    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462    # mode.  It turns out that the SunPro C++ compiler does not properly
3463    # handle `-M -o', and we need to detect this.
3464    if depmode=$depmode \
3465       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468         >/dev/null 2>conftest.err &&
3469       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472      # icc doesn't choke on unknown options, it will just issue warnings
3473      # or remarks (even with -Werror).  So we grep stderr for any message
3474      # that says an option was ignored or not supported.
3475      # When given -MP, icc 7.0 and 7.1 complain thusly:
3476      #   icc: Command line warning: ignoring option '-M'; no argument required
3477      # The diagnosis changed in icc 8.0:
3478      #   icc: Command line remark: option '-MP' not supported
3479      if (grep 'ignoring option' conftest.err ||
3480          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481        am_cv_CC_dependencies_compiler_type=$depmode
3482        break
3483      fi
3484    fi
3485  done
3486
3487  cd ..
3488  rm -rf conftest.dir
3489else
3490  am_cv_CC_dependencies_compiler_type=none
3491fi
3492
3493fi
3494echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498
3499
3500if
3501  test "x$enable_dependency_tracking" != xno \
3502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503  am__fastdepCC_TRUE=
3504  am__fastdepCC_FALSE='#'
3505else
3506  am__fastdepCC_TRUE='#'
3507  am__fastdepCC_FALSE=
3508fi
3509
3510
3511
3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3518echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3519# On Suns, sometimes $CPP names a directory.
3520if test -n "$CPP" && test -d "$CPP"; then
3521  CPP=
3522fi
3523if test -z "$CPP"; then
3524  if test "${ac_cv_prog_CPP+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527      # Double quotes because CPP needs to be expanded
3528    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529    do
3530      ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550                     Syntax error
3551_ACEOF
3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } >/dev/null; then
3560  if test -s conftest.err; then
3561    ac_cpp_err=$ac_c_preproc_warn_flag
3562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563  else
3564    ac_cpp_err=
3565  fi
3566else
3567  ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575  # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_ext
3579
3580  # OK, works on sane cases.  Now check whether non-existent headers
3581  # can be detected and how.
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <ac_nonexistent.h>
3589_ACEOF
3590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } >/dev/null; then
3598  if test -s conftest.err; then
3599    ac_cpp_err=$ac_c_preproc_warn_flag
3600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601  else
3602    ac_cpp_err=
3603  fi
3604else
3605  ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608  # Broken: success on invalid input.
3609continue
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614  # Passes both tests.
3615ac_preproc_ok=:
3616break
3617fi
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624  break
3625fi
3626
3627    done
3628    ac_cv_prog_CPP=$CPP
3629
3630fi
3631  CPP=$ac_cv_prog_CPP
3632else
3633  ac_cv_prog_CPP=$CPP
3634fi
3635echo "$as_me:$LINENO: result: $CPP" >&5
3636echo "${ECHO_T}$CPP" >&6
3637ac_preproc_ok=false
3638for ac_c_preproc_warn_flag in '' yes
3639do
3640  # Use a header file that comes with gcc, so configuring glibc
3641  # with a fresh cross-compiler works.
3642  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643  # <limits.h> exists even on freestanding compilers.
3644  # On the NeXT, cc -E runs the code through the compiler's parser,
3645  # not just through cpp. "Syntax error" is here to catch this case.
3646  cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#ifdef __STDC__
3653# include <limits.h>
3654#else
3655# include <assert.h>
3656#endif
3657                     Syntax error
3658_ACEOF
3659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } >/dev/null; then
3667  if test -s conftest.err; then
3668    ac_cpp_err=$ac_c_preproc_warn_flag
3669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670  else
3671    ac_cpp_err=
3672  fi
3673else
3674  ac_cpp_err=yes
3675fi
3676if test -z "$ac_cpp_err"; then
3677  :
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682  # Broken: fails on valid input.
3683continue
3684fi
3685rm -f conftest.err conftest.$ac_ext
3686
3687  # OK, works on sane cases.  Now check whether non-existent headers
3688  # can be detected and how.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <ac_nonexistent.h>
3696_ACEOF
3697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } >/dev/null; then
3705  if test -s conftest.err; then
3706    ac_cpp_err=$ac_c_preproc_warn_flag
3707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708  else
3709    ac_cpp_err=
3710  fi
3711else
3712  ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
3715  # Broken: success on invalid input.
3716continue
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721  # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731  :
3732else
3733  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737   { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747echo "$as_me:$LINENO: checking for egrep" >&5
3748echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3749if test "${ac_cv_prog_egrep+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3753    then ac_cv_prog_egrep='grep -E'
3754    else ac_cv_prog_egrep='egrep'
3755    fi
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3758echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3759 EGREP=$ac_cv_prog_egrep
3760
3761
3762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3764if test "${ac_cv_header_stdc+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773#include <stdlib.h>
3774#include <stdarg.h>
3775#include <string.h>
3776#include <float.h>
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_c_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest.$ac_objext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  ac_cv_header_stdc=yes
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_cv_header_stdc=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816
3817if test $ac_cv_header_stdc = yes; then
3818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <string.h>
3826
3827_ACEOF
3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829  $EGREP "memchr" >/dev/null 2>&1; then
3830  :
3831else
3832  ac_cv_header_stdc=no
3833fi
3834rm -f conftest*
3835
3836fi
3837
3838if test $ac_cv_header_stdc = yes; then
3839  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <stdlib.h>
3847
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850  $EGREP "free" >/dev/null 2>&1; then
3851  :
3852else
3853  ac_cv_header_stdc=no
3854fi
3855rm -f conftest*
3856
3857fi
3858
3859if test $ac_cv_header_stdc = yes; then
3860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3861  if test "$cross_compiling" = yes; then
3862  :
3863else
3864  cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h.  */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h.  */
3870#include <ctype.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876                   (('a' <= (c) && (c) <= 'i') \
3877                     || ('j' <= (c) && (c) <= 'r') \
3878                     || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886  int i;
3887  for (i = 0; i < 256; i++)
3888    if (XOR (islower (i), ISLOWER (i))
3889        || toupper (i) != TOUPPER (i))
3890      exit(2);
3891  exit (0);
3892}
3893_ACEOF
3894rm -f conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; }; then
3905  :
3906else
3907  echo "$as_me: program exited with status $ac_status" >&5
3908echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911( exit $ac_status )
3912ac_cv_header_stdc=no
3913fi
3914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915fi
3916fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919echo "${ECHO_T}$ac_cv_header_stdc" >&6
3920if test $ac_cv_header_stdc = yes; then
3921
3922cat >>confdefs.h <<\_ACEOF
3923#define STDC_HEADERS 1
3924_ACEOF
3925
3926fi
3927
3928
3929## THIS IS OUR DEFAULT-DATA-DIRECTORY
3930
3931##################################
3932## CHECKING  OPTIONAL ARGUMENTS ##
3933##################################
3934#----------------#
3935# Data-Directory #
3936#----------------#
3937DATA_DIR=$datadir
3938echo \$\{prefix\}
3939if test $DATA_DIR = \$\{prefix\}/share ; then
3940        echo "not given"
3941        DATA_DIR=/usr/share
3942else
3943        echo "given: $DATA_DIR"
3944fi
3945
3946cat >>confdefs.h <<_ACEOF
3947#define DATADIR "$DATA_DIR"
3948_ACEOF
3949
3950
3951#-----------------#
3952# shared-lib-path #
3953#-----------------#
3954SHARED_LIB_PATH=no
3955echo "$as_me:$LINENO: checking shared lib path" >&5
3956echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3957
3958# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3959if test "${with_shared_lib_path+set}" = set; then
3960  withval="$with_shared_lib_path"
3961  SHARED_LIB_PATH=$enableval
3962fi;
3963
3964if test x$SHARED_LIB_PATH = xno; then
3965        echo "no"
3966else
3967        echo $SHARED_LIB_PATH
3968fi
3969
3970
3971#-----------------#
3972# DEBUG-statement #
3973#-----------------#
3974DEBUG=no
3975echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3976echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3977# Check whether --enable-debug or --disable-debug was given.
3978if test "${enable_debug+set}" = set; then
3979  enableval="$enable_debug"
3980  DEBUG=$enableval
3981fi;
3982
3983if test x$DEBUG = xno; then
3984        echo "no"
3985        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3986        DEBUG=4
3987elif test x$DEBUG = xyes; then
3988        echo "yes"
3989        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3990        DEBUG=4
3991else
3992        echo "yes: setting debuglevel to to $DEBUG"
3993fi
3994
3995cat >>confdefs.h <<_ACEOF
3996#define DEBUG $DEBUG
3997_ACEOF
3998
3999
4000
4001
4002#---------------#
4003# Modular Debug #
4004#---------------#
4005MODULAR_DEBUG=yes
4006echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4007echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4008# Check whether --enable-modular-debug or --disable-modular-debug was given.
4009if test "${enable_modular_debug+set}" = set; then
4010  enableval="$enable_modular_debug"
4011  MODULAR_DEBUG=$enableval
4012fi;
4013
4014if test x$MODULAR_DEBUG = xno; then
4015        echo "no"
4016elif test x$MODULAR_DEBUG = xyes; then
4017        echo "yes"
4018
4019cat >>confdefs.h <<_ACEOF
4020#define MODULAR_DEBUG 1
4021_ACEOF
4022
4023fi
4024
4025#--------------#
4026# GTK-disabled #
4027#--------------#
4028echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4029echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4030# Check whether --enable-gtk or --disable-gtk was given.
4031if test "${enable_gtk+set}" = set; then
4032  enableval="$enable_gtk"
4033  def_gtk=no
4034else
4035  def_gtk=yes
4036fi;
4037if test x$def_gtk = xyes; then
4038  echo "yes"
4039fi
4040if test x$def_gtk = xno; then
4041  echo "no"
4042fi
4043
4044#------------------#
4045# libCurl-disabled #
4046#------------------#
4047echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4048echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4049# Check whether --enable-curl or --disable-curl was given.
4050if test "${enable_curl+set}" = set; then
4051  enableval="$enable_curl"
4052  def_curl=no
4053else
4054  def_curl=yes
4055fi;
4056if test x$def_curl = xyes; then
4057  echo "yes"
4058fi
4059if test x$def_curl = xno; then
4060  echo "no"
4061fi
4062
4063#-------------------#
4064# SubProject-enable #
4065#-------------------#
4066def_sub_projects=no
4067echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4068echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4069
4070# Check whether --with-sub-projects or --without-sub-projects was given.
4071if test "${with_sub_projects+set}" = set; then
4072  withval="$with_sub_projects"
4073  def_sub_projects=yes
4074fi;
4075if test x$def_sub_projects = xyes; then
4076  echo "yes"
4077fi
4078if test x$def_sub_projects = xno; then
4079  echo "no"
4080fi
4081
4082
4083if test x$def_sub_projects = xyes; then
4084  SUB_PROJECTS_TRUE=
4085  SUB_PROJECTS_FALSE='#'
4086else
4087  SUB_PROJECTS_TRUE='#'
4088  SUB_PROJECTS_FALSE=
4089fi
4090
4091
4092#-------------------#
4093# Profiling Enabled #
4094#-------------------#
4095def_profiling=no
4096echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4097echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4098# Check whether --enable-profile or --disable-profile was given.
4099if test "${enable_profile+set}" = set; then
4100  enableval="$enable_profile"
4101  def_profiling=yes
4102fi;
4103if test x$def_profiling = xyes; then
4104  echo "yes"
4105  CXXFLAGS="$CXXFLAGS -pg"
4106fi
4107if test x$def_profiling = xno; then
4108  echo "no"
4109fi
4110
4111#----------------#
4112# efence Enabled #
4113#----------------#
4114def_efence=no
4115echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4116echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4117# Check whether --enable-efence or --disable-efence was given.
4118if test "${enable_efence+set}" = set; then
4119  enableval="$enable_efence"
4120  def_efence=yes
4121fi;
4122if test x$def_efence = xyes; then
4123  echo "yes"
4124fi
4125if test x$def_efence = xno; then
4126  echo "no"
4127fi
4128
4129#----------------------#
4130# Documentation-enable #
4131#----------------------#
4132def_documentation=no
4133echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4134echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4135# Check whether --enable-documentation or --disable-documentation was given.
4136if test "${enable_documentation+set}" = set; then
4137  enableval="$enable_documentation"
4138  def_documentation=yes
4139fi;
4140if test x$def_documentation = xyes; then
4141  echo "yes"
4142fi
4143if test x$def_documentation = xno; then
4144  echo "no"
4145fi
4146
4147
4148if test x$def_documentation = xyes; then
4149  DOCUMENTATION_TRUE=
4150  DOCUMENTATION_FALSE='#'
4151else
4152  DOCUMENTATION_TRUE='#'
4153  DOCUMENTATION_FALSE=
4154fi
4155
4156
4157#######################
4158## PROGRAMM CHECKING ##
4159## 3. party Programs ##
4160#######################
4161
4162#----------------------#
4163# checking for Doxygen #
4164#----------------------#
4165# Extract the first word of "doxygen", so it can be a program name with args.
4166set dummy doxygen; ac_word=$2
4167echo "$as_me:$LINENO: checking for $ac_word" >&5
4168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169if test "${ac_cv_path_DOXYGEN+set}" = set; then
4170  echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172  case $DOXYGEN in
4173  [\\/]* | ?:[\\/]*)
4174  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4175  ;;
4176  *)
4177  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180  IFS=$as_save_IFS
4181  test -z "$as_dir" && as_dir=.
4182  for ac_exec_ext in '' $ac_executable_extensions; do
4183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186    break 2
4187  fi
4188done
4189done
4190
4191  ;;
4192esac
4193fi
4194DOXYGEN=$ac_cv_path_DOXYGEN
4195
4196if test -n "$DOXYGEN"; then
4197  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4198echo "${ECHO_T}$DOXYGEN" >&6
4199else
4200  echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202fi
4203
4204
4205
4206if test $DOXYGEN; then
4207  DOXYGEN_TRUE=
4208  DOXYGEN_FALSE='#'
4209else
4210  DOXYGEN_TRUE='#'
4211  DOXYGEN_FALSE=
4212fi
4213
4214
4215#--------------------#
4216# checking for gprof #
4217#--------------------#
4218# Extract the first word of "gprof", so it can be a program name with args.
4219set dummy gprof; ac_word=$2
4220echo "$as_me:$LINENO: checking for $ac_word" >&5
4221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222if test "${ac_cv_path_GPROF+set}" = set; then
4223  echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225  case $GPROF in
4226  [\\/]* | ?:[\\/]*)
4227  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4228  ;;
4229  *)
4230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  test -z "$as_dir" && as_dir=.
4235  for ac_exec_ext in '' $ac_executable_extensions; do
4236  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239    break 2
4240  fi
4241done
4242done
4243
4244  ;;
4245esac
4246fi
4247GPROF=$ac_cv_path_GPROF
4248
4249if test -n "$GPROF"; then
4250  echo "$as_me:$LINENO: result: $GPROF" >&5
4251echo "${ECHO_T}$GPROF" >&6
4252else
4253  echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
4255fi
4256
4257
4258#-------------------------#
4259# checking for pkg-config #
4260#-------------------------#
4261if test x$def_gtk = xyes; then
4262 # Extract the first word of "pkg-config", so it can be a program name with args.
4263set dummy pkg-config; ac_word=$2
4264echo "$as_me:$LINENO: checking for $ac_word" >&5
4265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4267  echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269  case $PKG_CONFIG in
4270  [\\/]* | ?:[\\/]*)
4271  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4272  ;;
4273  *)
4274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279  for ac_exec_ext in '' $ac_executable_extensions; do
4280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283    break 2
4284  fi
4285done
4286done
4287
4288  ;;
4289esac
4290fi
4291PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4292
4293if test -n "$PKG_CONFIG"; then
4294  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4295echo "${ECHO_T}$PKG_CONFIG" >&6
4296else
4297  echo "$as_me:$LINENO: result: no" >&5
4298echo "${ECHO_T}no" >&6
4299fi
4300
4301fi
4302
4303
4304#########################
4305## CHECKING FOR SYSTEM ##
4306#########################
4307## here the system is checked, and openGL is included
4308## also checking for SDL on differen Systems
4309
4310echo "$as_me:$LINENO: checking for System" >&5
4311echo $ECHO_N "checking for System... $ECHO_C" >&6
4312## checking for openGL-environment and other sys-specific parameters
4313case "$target" in
4314
4315###########
4316#---------#
4317# WINDOWS #
4318#---------#
4319###########
4320  *-*-mingw32*)
4321echo "mingw-WINDOWS detected"
4322
4323CPPFLAGS="-I/usr/include -I/mingw/include"
4324
4325    mingw="yes"
4326    MSBITFIELDS="-mms-bitfields"
4327    MWINDOWS="-mwindows"
4328
4329
4330
4331# checking for mingw32
4332    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4333echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4334if test "${ac_cv_lib_mingw32_main+set}" = set; then
4335  echo $ECHO_N "(cached) $ECHO_C" >&6
4336else
4337  ac_check_lib_save_LIBS=$LIBS
4338LIBS="-lmingw32  $LIBS"
4339cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h.  */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h.  */
4345
4346
4347int
4348main ()
4349{
4350main ();
4351  ;
4352  return 0;
4353}
4354_ACEOF
4355rm -f conftest.$ac_objext conftest$ac_exeext
4356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4357  (eval $ac_link) 2>conftest.er1
4358  ac_status=$?
4359  grep -v '^ *+' conftest.er1 >conftest.err
4360  rm -f conftest.er1
4361  cat conftest.err >&5
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); } &&
4364         { ac_try='test -z "$ac_c_werror_flag"
4365                         || test ! -s conftest.err'
4366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367  (eval $ac_try) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); }; } &&
4371         { ac_try='test -s conftest$ac_exeext'
4372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373  (eval $ac_try) 2>&5
4374  ac_status=$?
4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376  (exit $ac_status); }; }; then
4377  ac_cv_lib_mingw32_main=yes
4378else
4379  echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382ac_cv_lib_mingw32_main=no
4383fi
4384rm -f conftest.err conftest.$ac_objext \
4385      conftest$ac_exeext conftest.$ac_ext
4386LIBS=$ac_check_lib_save_LIBS
4387fi
4388echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4389echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4390if test $ac_cv_lib_mingw32_main = yes; then
4391  FOUND_mingw32=yes
4392fi
4393
4394    if test x$FOUND_mingw32 = xyes; then
4395        LIBS="$LIBS -lmingw32"
4396    fi
4397
4398#-----------#
4399# SDL(win) #
4400#-----------#
4401# checking for SDL-headers
4402    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4413                  inttypes.h stdint.h unistd.h
4414do
4415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4416echo "$as_me:$LINENO: checking for $ac_header" >&5
4417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4418if eval "test \"\${$as_ac_Header+set}\" = set"; then
4419  echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421  cat >conftest.$ac_ext <<_ACEOF
4422/* confdefs.h.  */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
4426/* end confdefs.h.  */
4427$ac_includes_default
4428
4429#include <$ac_header>
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433  (eval $ac_compile) 2>conftest.er1
4434  ac_status=$?
4435  grep -v '^ *+' conftest.er1 >conftest.err
4436  rm -f conftest.er1
4437  cat conftest.err >&5
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); } &&
4440         { ac_try='test -z "$ac_c_werror_flag"
4441                         || test ! -s conftest.err'
4442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443  (eval $ac_try) 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); }; } &&
4447         { ac_try='test -s conftest.$ac_objext'
4448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449  (eval $ac_try) 2>&5
4450  ac_status=$?
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); }; }; then
4453  eval "$as_ac_Header=yes"
4454else
4455  echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458eval "$as_ac_Header=no"
4459fi
4460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4461fi
4462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4464if test `eval echo '${'$as_ac_Header'}'` = yes; then
4465  cat >>confdefs.h <<_ACEOF
4466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4467_ACEOF
4468
4469fi
4470
4471done
4472
4473
4474
4475for ac_header in SDL/SDL.h
4476do
4477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4478if eval "test \"\${$as_ac_Header+set}\" = set"; then
4479  echo "$as_me:$LINENO: checking for $ac_header" >&5
4480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4481if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483fi
4484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486else
4487  # Is the header compilable?
4488echo "$as_me:$LINENO: checking $ac_header usability" >&5
4489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4490cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h.  */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h.  */
4496$ac_includes_default
4497#include <$ac_header>
4498_ACEOF
4499rm -f conftest.$ac_objext
4500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501  (eval $ac_compile) 2>conftest.er1
4502  ac_status=$?
4503  grep -v '^ *+' conftest.er1 >conftest.err
4504  rm -f conftest.er1
4505  cat conftest.err >&5
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); } &&
4508         { ac_try='test -z "$ac_c_werror_flag"
4509                         || test ! -s conftest.err'
4510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511  (eval $ac_try) 2>&5
4512  ac_status=$?
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); }; } &&
4515         { ac_try='test -s conftest.$ac_objext'
4516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517  (eval $ac_try) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); }; }; then
4521  ac_header_compiler=yes
4522else
4523  echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5
4525
4526ac_header_compiler=no
4527fi
4528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4530echo "${ECHO_T}$ac_header_compiler" >&6
4531
4532# Is the header present?
4533echo "$as_me:$LINENO: checking $ac_header presence" >&5
4534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4535cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h.  */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h.  */
4541#include <$ac_header>
4542_ACEOF
4543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4545  ac_status=$?
4546  grep -v '^ *+' conftest.er1 >conftest.err
4547  rm -f conftest.er1
4548  cat conftest.err >&5
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); } >/dev/null; then
4551  if test -s conftest.err; then
4552    ac_cpp_err=$ac_c_preproc_warn_flag
4553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4554  else
4555    ac_cpp_err=
4556  fi
4557else
4558  ac_cpp_err=yes
4559fi
4560if test -z "$ac_cpp_err"; then
4561  ac_header_preproc=yes
4562else
4563  echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566  ac_header_preproc=no
4567fi
4568rm -f conftest.err conftest.$ac_ext
4569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4570echo "${ECHO_T}$ac_header_preproc" >&6
4571
4572# So?  What about this header?
4573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4574  yes:no: )
4575    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4577    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4579    ac_header_preproc=yes
4580    ;;
4581  no:yes:* )
4582    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4584    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4585echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4586    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4588    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4589echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4590    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4592    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4594    (
4595      cat <<\_ASBOX
4596## ---------------------------------------------- ##
4597## Report this to orxonox-dev at mail.datacore.ch ##
4598## ---------------------------------------------- ##
4599_ASBOX
4600    ) |
4601      sed "s/^/$as_me: WARNING:     /" >&2
4602    ;;
4603esac
4604echo "$as_me:$LINENO: checking for $ac_header" >&5
4605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4606if eval "test \"\${$as_ac_Header+set}\" = set"; then
4607  echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609  eval "$as_ac_Header=\$ac_header_preproc"
4610fi
4611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4613
4614fi
4615if test `eval echo '${'$as_ac_Header'}'` = yes; then
4616  cat >>confdefs.h <<_ACEOF
4617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4618_ACEOF
4619
4620else
4621  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4622echo "$as_me: error: cannot find SDL headers" >&2;}
4623   { (exit 1); exit 1; }; }
4624fi
4625
4626done
4627
4628
4629#checking for libSDL
4630    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4631echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4632if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4633  echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635  ac_check_lib_save_LIBS=$LIBS
4636LIBS="-lsdlmain  $LIBS"
4637cat >conftest.$ac_ext <<_ACEOF
4638/* confdefs.h.  */
4639_ACEOF
4640cat confdefs.h >>conftest.$ac_ext
4641cat >>conftest.$ac_ext <<_ACEOF
4642/* end confdefs.h.  */
4643
4644
4645int
4646main ()
4647{
4648main ();
4649  ;
4650  return 0;
4651}
4652_ACEOF
4653rm -f conftest.$ac_objext conftest$ac_exeext
4654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655  (eval $ac_link) 2>conftest.er1
4656  ac_status=$?
4657  grep -v '^ *+' conftest.er1 >conftest.err
4658  rm -f conftest.er1
4659  cat conftest.err >&5
4660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661  (exit $ac_status); } &&
4662         { ac_try='test -z "$ac_c_werror_flag"
4663                         || test ! -s conftest.err'
4664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665  (eval $ac_try) 2>&5
4666  ac_status=$?
4667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668  (exit $ac_status); }; } &&
4669         { ac_try='test -s conftest$ac_exeext'
4670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671  (eval $ac_try) 2>&5
4672  ac_status=$?
4673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); }; }; then
4675  ac_cv_lib_sdlmain_main=yes
4676else
4677  echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680ac_cv_lib_sdlmain_main=no
4681fi
4682rm -f conftest.err conftest.$ac_objext \
4683      conftest$ac_exeext conftest.$ac_ext
4684LIBS=$ac_check_lib_save_LIBS
4685fi
4686echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4687echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4688if test $ac_cv_lib_sdlmain_main = yes; then
4689  FOUND_sdlmain=yes
4690fi
4691
4692    if test x$FOUND_sdlmain = xyes ; then
4693       LIBS="$LIBS -lsdlmain"
4694    else
4695        echo "------------------"
4696        echo "SDL library not found."
4697        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4698        echo "------------------"
4699        exit 1
4700    fi
4701    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4702echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4703if test "${ac_cv_lib_sdl_main+set}" = set; then
4704  echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706  ac_check_lib_save_LIBS=$LIBS
4707LIBS="-lsdl  $LIBS"
4708cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h.  */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h.  */
4714
4715
4716int
4717main ()
4718{
4719main ();
4720  ;
4721  return 0;
4722}
4723_ACEOF
4724rm -f conftest.$ac_objext conftest$ac_exeext
4725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726  (eval $ac_link) 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } &&
4733         { ac_try='test -z "$ac_c_werror_flag"
4734                         || test ! -s conftest.err'
4735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736  (eval $ac_try) 2>&5
4737  ac_status=$?
4738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739  (exit $ac_status); }; } &&
4740         { ac_try='test -s conftest$ac_exeext'
4741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742  (eval $ac_try) 2>&5
4743  ac_status=$?
4744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745  (exit $ac_status); }; }; then
4746  ac_cv_lib_sdl_main=yes
4747else
4748  echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751ac_cv_lib_sdl_main=no
4752fi
4753rm -f conftest.err conftest.$ac_objext \
4754      conftest$ac_exeext conftest.$ac_ext
4755LIBS=$ac_check_lib_save_LIBS
4756fi
4757echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4758echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4759if test $ac_cv_lib_sdl_main = yes; then
4760  FOUND_sdl=yes
4761fi
4762
4763    if test x$FOUND_sdl = xyes ; then
4764       LIBS="$LIBS -lsdl"
4765    else
4766        echo "------------------"
4767        echo "SDL library not found."
4768        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4769        echo "------------------"
4770        exit -1
4771    fi
4772
4773#---------------#
4774# open-GL (win) #
4775#---------------#
4776# checking gl header
4777
4778for ac_header in GL/gl.h
4779do
4780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782  echo "$as_me:$LINENO: checking for $ac_header" >&5
4783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785  echo $ECHO_N "(cached) $ECHO_C" >&6
4786fi
4787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789else
4790  # Is the header compilable?
4791echo "$as_me:$LINENO: checking $ac_header usability" >&5
4792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4793cat >conftest.$ac_ext <<_ACEOF
4794/* confdefs.h.  */
4795_ACEOF
4796cat confdefs.h >>conftest.$ac_ext
4797cat >>conftest.$ac_ext <<_ACEOF
4798/* end confdefs.h.  */
4799$ac_includes_default
4800#include <$ac_header>
4801_ACEOF
4802rm -f conftest.$ac_objext
4803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804  (eval $ac_compile) 2>conftest.er1
4805  ac_status=$?
4806  grep -v '^ *+' conftest.er1 >conftest.err
4807  rm -f conftest.er1
4808  cat conftest.err >&5
4809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810  (exit $ac_status); } &&
4811         { ac_try='test -z "$ac_c_werror_flag"
4812                         || test ! -s conftest.err'
4813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814  (eval $ac_try) 2>&5
4815  ac_status=$?
4816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817  (exit $ac_status); }; } &&
4818         { ac_try='test -s conftest.$ac_objext'
4819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820  (eval $ac_try) 2>&5
4821  ac_status=$?
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); }; }; then
4824  ac_header_compiler=yes
4825else
4826  echo "$as_me: failed program was:" >&5
4827sed 's/^/| /' conftest.$ac_ext >&5
4828
4829ac_header_compiler=no
4830fi
4831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4833echo "${ECHO_T}$ac_header_compiler" >&6
4834
4835# Is the header present?
4836echo "$as_me:$LINENO: checking $ac_header presence" >&5
4837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4838cat >conftest.$ac_ext <<_ACEOF
4839/* confdefs.h.  */
4840_ACEOF
4841cat confdefs.h >>conftest.$ac_ext
4842cat >>conftest.$ac_ext <<_ACEOF
4843/* end confdefs.h.  */
4844#include <$ac_header>
4845_ACEOF
4846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4847  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4848  ac_status=$?
4849  grep -v '^ *+' conftest.er1 >conftest.err
4850  rm -f conftest.er1
4851  cat conftest.err >&5
4852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853  (exit $ac_status); } >/dev/null; then
4854  if test -s conftest.err; then
4855    ac_cpp_err=$ac_c_preproc_warn_flag
4856    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4857  else
4858    ac_cpp_err=
4859  fi
4860else
4861  ac_cpp_err=yes
4862fi
4863if test -z "$ac_cpp_err"; then
4864  ac_header_preproc=yes
4865else
4866  echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869  ac_header_preproc=no
4870fi
4871rm -f conftest.err conftest.$ac_ext
4872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873echo "${ECHO_T}$ac_header_preproc" >&6
4874
4875# So?  What about this header?
4876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4877  yes:no: )
4878    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4882    ac_header_preproc=yes
4883    ;;
4884  no:yes:* )
4885    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4887    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4888echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4889    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4891    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4892echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4893    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4897    (
4898      cat <<\_ASBOX
4899## ---------------------------------------------- ##
4900## Report this to orxonox-dev at mail.datacore.ch ##
4901## ---------------------------------------------- ##
4902_ASBOX
4903    ) |
4904      sed "s/^/$as_me: WARNING:     /" >&2
4905    ;;
4906esac
4907echo "$as_me:$LINENO: checking for $ac_header" >&5
4908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4909if eval "test \"\${$as_ac_Header+set}\" = set"; then
4910  echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912  eval "$as_ac_Header=\$ac_header_preproc"
4913fi
4914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4916
4917fi
4918if test `eval echo '${'$as_ac_Header'}'` = yes; then
4919  cat >>confdefs.h <<_ACEOF
4920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4921_ACEOF
4922
4923else
4924  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4925echo "$as_me: error: cannot find opengl headers" >&2;}
4926   { (exit 1); exit 1; }; }
4927fi
4928
4929done
4930
4931#   checking for Windows openGl library
4932    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4933echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4934if test "${ac_cv_lib_opengl32_main+set}" = set; then
4935  echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937  ac_check_lib_save_LIBS=$LIBS
4938LIBS="-lopengl32  $LIBS"
4939cat >conftest.$ac_ext <<_ACEOF
4940/* confdefs.h.  */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h.  */
4945
4946
4947int
4948main ()
4949{
4950main ();
4951  ;
4952  return 0;
4953}
4954_ACEOF
4955rm -f conftest.$ac_objext conftest$ac_exeext
4956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4957  (eval $ac_link) 2>conftest.er1
4958  ac_status=$?
4959  grep -v '^ *+' conftest.er1 >conftest.err
4960  rm -f conftest.er1
4961  cat conftest.err >&5
4962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963  (exit $ac_status); } &&
4964         { ac_try='test -z "$ac_c_werror_flag"
4965                         || test ! -s conftest.err'
4966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967  (eval $ac_try) 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); }; } &&
4971         { ac_try='test -s conftest$ac_exeext'
4972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973  (eval $ac_try) 2>&5
4974  ac_status=$?
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); }; }; then
4977  ac_cv_lib_opengl32_main=yes
4978else
4979  echo "$as_me: failed program was:" >&5
4980sed 's/^/| /' conftest.$ac_ext >&5
4981
4982ac_cv_lib_opengl32_main=no
4983fi
4984rm -f conftest.err conftest.$ac_objext \
4985      conftest$ac_exeext conftest.$ac_ext
4986LIBS=$ac_check_lib_save_LIBS
4987fi
4988echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4989echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4990if test $ac_cv_lib_opengl32_main = yes; then
4991  FOUND_opengl32=yes
4992else
4993  "gl/gl.h"
4994fi
4995
4996    if test x$FOUND_opengl32 = xyes ; then
4997        LIBS="$LIBS -lopengl32"
4998    else
4999         echo "------------------"
5000         echo "opengl not found."
5001         echo "please install the opengl package which can be found at http://www.opengl.org"
5002         echo "------------------"
5003         exit -1
5004    fi
5005
5006# cheking for GLU-header
5007
5008for ac_header in GL/glu.h
5009do
5010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011if eval "test \"\${$as_ac_Header+set}\" = set"; then
5012  echo "$as_me:$LINENO: checking for $ac_header" >&5
5013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5014if eval "test \"\${$as_ac_Header+set}\" = set"; then
5015  echo $ECHO_N "(cached) $ECHO_C" >&6
5016fi
5017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5019else
5020  # Is the header compilable?
5021echo "$as_me:$LINENO: checking $ac_header usability" >&5
5022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5023cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h.  */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h.  */
5029$ac_includes_default
5030#include <$ac_header>
5031_ACEOF
5032rm -f conftest.$ac_objext
5033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034  (eval $ac_compile) 2>conftest.er1
5035  ac_status=$?
5036  grep -v '^ *+' conftest.er1 >conftest.err
5037  rm -f conftest.er1
5038  cat conftest.err >&5
5039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040  (exit $ac_status); } &&
5041         { ac_try='test -z "$ac_c_werror_flag"
5042                         || test ! -s conftest.err'
5043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044  (eval $ac_try) 2>&5
5045  ac_status=$?
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); }; } &&
5048         { ac_try='test -s conftest.$ac_objext'
5049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050  (eval $ac_try) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; }; then
5054  ac_header_compiler=yes
5055else
5056  echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059ac_header_compiler=no
5060fi
5061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5063echo "${ECHO_T}$ac_header_compiler" >&6
5064
5065# Is the header present?
5066echo "$as_me:$LINENO: checking $ac_header presence" >&5
5067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5068cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074#include <$ac_header>
5075_ACEOF
5076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078  ac_status=$?
5079  grep -v '^ *+' conftest.er1 >conftest.err
5080  rm -f conftest.er1
5081  cat conftest.err >&5
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); } >/dev/null; then
5084  if test -s conftest.err; then
5085    ac_cpp_err=$ac_c_preproc_warn_flag
5086    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5087  else
5088    ac_cpp_err=
5089  fi
5090else
5091  ac_cpp_err=yes
5092fi
5093if test -z "$ac_cpp_err"; then
5094  ac_header_preproc=yes
5095else
5096  echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099  ac_header_preproc=no
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103echo "${ECHO_T}$ac_header_preproc" >&6
5104
5105# So?  What about this header?
5106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5107  yes:no: )
5108    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112    ac_header_preproc=yes
5113    ;;
5114  no:yes:* )
5115    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5118echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5119    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5122echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5123    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5127    (
5128      cat <<\_ASBOX
5129## ---------------------------------------------- ##
5130## Report this to orxonox-dev at mail.datacore.ch ##
5131## ---------------------------------------------- ##
5132_ASBOX
5133    ) |
5134      sed "s/^/$as_me: WARNING:     /" >&2
5135    ;;
5136esac
5137echo "$as_me:$LINENO: checking for $ac_header" >&5
5138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5139if eval "test \"\${$as_ac_Header+set}\" = set"; then
5140  echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142  eval "$as_ac_Header=\$ac_header_preproc"
5143fi
5144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5146
5147fi
5148if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149  cat >>confdefs.h <<_ACEOF
5150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151_ACEOF
5152
5153else
5154  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5155echo "$as_me: error: cannot find opengl headers" >&2;}
5156   { (exit 1); exit 1; }; }
5157fi
5158
5159done
5160
5161
5162# checking for libGLU
5163    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
5164echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
5165if test "${ac_cv_lib_glu32_main+set}" = set; then
5166  echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168  ac_check_lib_save_LIBS=$LIBS
5169LIBS="-lglu32  $LIBS"
5170cat >conftest.$ac_ext <<_ACEOF
5171/* confdefs.h.  */
5172_ACEOF
5173cat confdefs.h >>conftest.$ac_ext
5174cat >>conftest.$ac_ext <<_ACEOF
5175/* end confdefs.h.  */
5176
5177
5178int
5179main ()
5180{
5181main ();
5182  ;
5183  return 0;
5184}
5185_ACEOF
5186rm -f conftest.$ac_objext conftest$ac_exeext
5187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188  (eval $ac_link) 2>conftest.er1
5189  ac_status=$?
5190  grep -v '^ *+' conftest.er1 >conftest.err
5191  rm -f conftest.er1
5192  cat conftest.err >&5
5193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194  (exit $ac_status); } &&
5195         { ac_try='test -z "$ac_c_werror_flag"
5196                         || test ! -s conftest.err'
5197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198  (eval $ac_try) 2>&5
5199  ac_status=$?
5200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201  (exit $ac_status); }; } &&
5202         { ac_try='test -s conftest$ac_exeext'
5203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204  (eval $ac_try) 2>&5
5205  ac_status=$?
5206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207  (exit $ac_status); }; }; then
5208  ac_cv_lib_glu32_main=yes
5209else
5210  echo "$as_me: failed program was:" >&5
5211sed 's/^/| /' conftest.$ac_ext >&5
5212
5213ac_cv_lib_glu32_main=no
5214fi
5215rm -f conftest.err conftest.$ac_objext \
5216      conftest$ac_exeext conftest.$ac_ext
5217LIBS=$ac_check_lib_save_LIBS
5218fi
5219echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
5220echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5221if test $ac_cv_lib_glu32_main = yes; then
5222  FOUND_glu32=yes
5223fi
5224
5225    if test x$FOUND_glu32 = xyes ; then
5226        LIBS="$LIBS -lGLU32"
5227    else
5228         echo "------------------"
5229         echo "GLU library not found."
5230         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5231         echo "------------------"
5232         exit -1
5233    fi
5234
5235#--------#
5236# openAL #
5237#--------#
5238# checking for openAL-headers
5239
5240for ac_header in AL/al.h
5241do
5242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244  echo "$as_me:$LINENO: checking for $ac_header" >&5
5245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5246if eval "test \"\${$as_ac_Header+set}\" = set"; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248fi
5249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5251else
5252  # Is the header compilable?
5253echo "$as_me:$LINENO: checking $ac_header usability" >&5
5254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5255cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h.  */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h.  */
5261$ac_includes_default
5262#include <$ac_header>
5263_ACEOF
5264rm -f conftest.$ac_objext
5265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266  (eval $ac_compile) 2>conftest.er1
5267  ac_status=$?
5268  grep -v '^ *+' conftest.er1 >conftest.err
5269  rm -f conftest.er1
5270  cat conftest.err >&5
5271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272  (exit $ac_status); } &&
5273         { ac_try='test -z "$ac_c_werror_flag"
5274                         || test ! -s conftest.err'
5275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276  (eval $ac_try) 2>&5
5277  ac_status=$?
5278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279  (exit $ac_status); }; } &&
5280         { ac_try='test -s conftest.$ac_objext'
5281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282  (eval $ac_try) 2>&5
5283  ac_status=$?
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); }; }; then
5286  ac_header_compiler=yes
5287else
5288  echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291ac_header_compiler=no
5292fi
5293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5295echo "${ECHO_T}$ac_header_compiler" >&6
5296
5297# Is the header present?
5298echo "$as_me:$LINENO: checking $ac_header presence" >&5
5299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5300cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h.  */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h.  */
5306#include <$ac_header>
5307_ACEOF
5308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5309  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5310  ac_status=$?
5311  grep -v '^ *+' conftest.er1 >conftest.err
5312  rm -f conftest.er1
5313  cat conftest.err >&5
5314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315  (exit $ac_status); } >/dev/null; then
5316  if test -s conftest.err; then
5317    ac_cpp_err=$ac_c_preproc_warn_flag
5318    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5319  else
5320    ac_cpp_err=
5321  fi
5322else
5323  ac_cpp_err=yes
5324fi
5325if test -z "$ac_cpp_err"; then
5326  ac_header_preproc=yes
5327else
5328  echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
5331  ac_header_preproc=no
5332fi
5333rm -f conftest.err conftest.$ac_ext
5334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5335echo "${ECHO_T}$ac_header_preproc" >&6
5336
5337# So?  What about this header?
5338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5339  yes:no: )
5340    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5342    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5344    ac_header_preproc=yes
5345    ;;
5346  no:yes:* )
5347    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5349    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5350echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5351    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5353    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5354echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5355    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5357    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5359    (
5360      cat <<\_ASBOX
5361## ---------------------------------------------- ##
5362## Report this to orxonox-dev at mail.datacore.ch ##
5363## ---------------------------------------------- ##
5364_ASBOX
5365    ) |
5366      sed "s/^/$as_me: WARNING:     /" >&2
5367    ;;
5368esac
5369echo "$as_me:$LINENO: checking for $ac_header" >&5
5370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5371if eval "test \"\${$as_ac_Header+set}\" = set"; then
5372  echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374  eval "$as_ac_Header=\$ac_header_preproc"
5375fi
5376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5378
5379fi
5380if test `eval echo '${'$as_ac_Header'}'` = yes; then
5381  cat >>confdefs.h <<_ACEOF
5382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5383_ACEOF
5384
5385else
5386  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5387echo "$as_me: error: cannot find openAL header." >&2;}
5388   { (exit 1); exit 1; }; }
5389fi
5390
5391done
5392
5393# checking for openAL-lib
5394  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5395echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5396if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5397  echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399  ac_check_lib_save_LIBS=$LIBS
5400LIBS="-lOpenAL32  $LIBS"
5401cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h.  */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h.  */
5407
5408
5409int
5410main ()
5411{
5412main ();
5413  ;
5414  return 0;
5415}
5416_ACEOF
5417rm -f conftest.$ac_objext conftest$ac_exeext
5418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419  (eval $ac_link) 2>conftest.er1
5420  ac_status=$?
5421  grep -v '^ *+' conftest.er1 >conftest.err
5422  rm -f conftest.er1
5423  cat conftest.err >&5
5424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); } &&
5426         { ac_try='test -z "$ac_c_werror_flag"
5427                         || test ! -s conftest.err'
5428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429  (eval $ac_try) 2>&5
5430  ac_status=$?
5431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432  (exit $ac_status); }; } &&
5433         { ac_try='test -s conftest$ac_exeext'
5434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435  (eval $ac_try) 2>&5
5436  ac_status=$?
5437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438  (exit $ac_status); }; }; then
5439  ac_cv_lib_OpenAL32_main=yes
5440else
5441  echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444ac_cv_lib_OpenAL32_main=no
5445fi
5446rm -f conftest.err conftest.$ac_objext \
5447      conftest$ac_exeext conftest.$ac_ext
5448LIBS=$ac_check_lib_save_LIBS
5449fi
5450echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5451echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5452if test $ac_cv_lib_OpenAL32_main = yes; then
5453  FOUND_openal=yes
5454fi
5455
5456  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5457echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5458if test "${ac_cv_lib_ALut_main+set}" = set; then
5459  echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461  ac_check_lib_save_LIBS=$LIBS
5462LIBS="-lALut  $LIBS"
5463cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469
5470
5471int
5472main ()
5473{
5474main ();
5475  ;
5476  return 0;
5477}
5478_ACEOF
5479rm -f conftest.$ac_objext conftest$ac_exeext
5480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481  (eval $ac_link) 2>conftest.er1
5482  ac_status=$?
5483  grep -v '^ *+' conftest.er1 >conftest.err
5484  rm -f conftest.er1
5485  cat conftest.err >&5
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); } &&
5488         { ac_try='test -z "$ac_c_werror_flag"
5489                         || test ! -s conftest.err'
5490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491  (eval $ac_try) 2>&5
5492  ac_status=$?
5493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494  (exit $ac_status); }; } &&
5495         { ac_try='test -s conftest$ac_exeext'
5496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497  (eval $ac_try) 2>&5
5498  ac_status=$?
5499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); }; }; then
5501  ac_cv_lib_ALut_main=yes
5502else
5503  echo "$as_me: failed program was:" >&5
5504sed 's/^/| /' conftest.$ac_ext >&5
5505
5506ac_cv_lib_ALut_main=no
5507fi
5508rm -f conftest.err conftest.$ac_objext \
5509      conftest$ac_exeext conftest.$ac_ext
5510LIBS=$ac_check_lib_save_LIBS
5511fi
5512echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5513echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5514if test $ac_cv_lib_ALut_main = yes; then
5515  FOUND_ALut=yes
5516fi
5517
5518     if test x$FOUND_openal = xyes ; then
5519      if test x$FOUND_ALut = xyes ; then
5520       LIBS="$LIBS -lALut -lOpenAL32"
5521     else
5522        echo "------------------"
5523        echo "openal library not found."
5524        echo "please install the openal library, which can be found at http://www.openal.org"
5525        echo "------------------"
5526        exit -1
5527      fi
5528     fi
5529    ;;
5530
5531#########
5532#-------#
5533# LINUX #
5534#-------#
5535#########
5536 *-*-linux*)
5537echo "Linux detected"
5538
5539 Linux="yes"
5540
5541CPPFLAGS="-I/usr/include"
5542if test x$SHARED_LIB_PATH != xno; then
5543        echo "setting new LDFlAGS with $SHARED_LIB_PATH"
5544        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH $LDFLAGS"
5545fi
5546LDFLAGS="-L/usr/lib"
5547## LDFLAGS="-L/usr/lib -L$HOME/tmp/lib $LDFLAGS"
5548
5549# checking gl header
5550
5551for ac_header in GL/gl.h
5552do
5553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5554if eval "test \"\${$as_ac_Header+set}\" = set"; then
5555  echo "$as_me:$LINENO: checking for $ac_header" >&5
5556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5557if eval "test \"\${$as_ac_Header+set}\" = set"; then
5558  echo $ECHO_N "(cached) $ECHO_C" >&6
5559fi
5560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5562else
5563  # Is the header compilable?
5564echo "$as_me:$LINENO: checking $ac_header usability" >&5
5565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5566cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h.  */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h.  */
5572$ac_includes_default
5573#include <$ac_header>
5574_ACEOF
5575rm -f conftest.$ac_objext
5576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577  (eval $ac_compile) 2>conftest.er1
5578  ac_status=$?
5579  grep -v '^ *+' conftest.er1 >conftest.err
5580  rm -f conftest.er1
5581  cat conftest.err >&5
5582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); } &&
5584         { ac_try='test -z "$ac_c_werror_flag"
5585                         || test ! -s conftest.err'
5586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587  (eval $ac_try) 2>&5
5588  ac_status=$?
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); }; } &&
5591         { ac_try='test -s conftest.$ac_objext'
5592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593  (eval $ac_try) 2>&5
5594  ac_status=$?
5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596  (exit $ac_status); }; }; then
5597  ac_header_compiler=yes
5598else
5599  echo "$as_me: failed program was:" >&5
5600sed 's/^/| /' conftest.$ac_ext >&5
5601
5602ac_header_compiler=no
5603fi
5604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5606echo "${ECHO_T}$ac_header_compiler" >&6
5607
5608# Is the header present?
5609echo "$as_me:$LINENO: checking $ac_header presence" >&5
5610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5611cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h.  */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h.  */
5617#include <$ac_header>
5618_ACEOF
5619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5620  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5621  ac_status=$?
5622  grep -v '^ *+' conftest.er1 >conftest.err
5623  rm -f conftest.er1
5624  cat conftest.err >&5
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); } >/dev/null; then
5627  if test -s conftest.err; then
5628    ac_cpp_err=$ac_c_preproc_warn_flag
5629    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5630  else
5631    ac_cpp_err=
5632  fi
5633else
5634  ac_cpp_err=yes
5635fi
5636if test -z "$ac_cpp_err"; then
5637  ac_header_preproc=yes
5638else
5639  echo "$as_me: failed program was:" >&5
5640sed 's/^/| /' conftest.$ac_ext >&5
5641
5642  ac_header_preproc=no
5643fi
5644rm -f conftest.err conftest.$ac_ext
5645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5646echo "${ECHO_T}$ac_header_preproc" >&6
5647
5648# So?  What about this header?
5649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5650  yes:no: )
5651    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5653    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5655    ac_header_preproc=yes
5656    ;;
5657  no:yes:* )
5658    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5660    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5661echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5662    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5664    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5665echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5666    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5668    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5670    (
5671      cat <<\_ASBOX
5672## ---------------------------------------------- ##
5673## Report this to orxonox-dev at mail.datacore.ch ##
5674## ---------------------------------------------- ##
5675_ASBOX
5676    ) |
5677      sed "s/^/$as_me: WARNING:     /" >&2
5678    ;;
5679esac
5680echo "$as_me:$LINENO: checking for $ac_header" >&5
5681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5682if eval "test \"\${$as_ac_Header+set}\" = set"; then
5683  echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685  eval "$as_ac_Header=\$ac_header_preproc"
5686fi
5687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5689
5690fi
5691if test `eval echo '${'$as_ac_Header'}'` = yes; then
5692  cat >>confdefs.h <<_ACEOF
5693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5694_ACEOF
5695
5696else
5697  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5698echo "$as_me: error: cannot find opengl headers" >&2;}
5699   { (exit 1); exit 1; }; }
5700fi
5701
5702done
5703
5704
5705#  checking for Unix GL
5706   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5707echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5708if test "${ac_cv_lib_GL_main+set}" = set; then
5709  echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711  ac_check_lib_save_LIBS=$LIBS
5712LIBS="-lGL  $LIBS"
5713cat >conftest.$ac_ext <<_ACEOF
5714/* confdefs.h.  */
5715_ACEOF
5716cat confdefs.h >>conftest.$ac_ext
5717cat >>conftest.$ac_ext <<_ACEOF
5718/* end confdefs.h.  */
5719
5720
5721int
5722main ()
5723{
5724main ();
5725  ;
5726  return 0;
5727}
5728_ACEOF
5729rm -f conftest.$ac_objext conftest$ac_exeext
5730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5731  (eval $ac_link) 2>conftest.er1
5732  ac_status=$?
5733  grep -v '^ *+' conftest.er1 >conftest.err
5734  rm -f conftest.er1
5735  cat conftest.err >&5
5736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737  (exit $ac_status); } &&
5738         { ac_try='test -z "$ac_c_werror_flag"
5739                         || test ! -s conftest.err'
5740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741  (eval $ac_try) 2>&5
5742  ac_status=$?
5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744  (exit $ac_status); }; } &&
5745         { ac_try='test -s conftest$ac_exeext'
5746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747  (eval $ac_try) 2>&5
5748  ac_status=$?
5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750  (exit $ac_status); }; }; then
5751  ac_cv_lib_GL_main=yes
5752else
5753  echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
5756ac_cv_lib_GL_main=no
5757fi
5758rm -f conftest.err conftest.$ac_objext \
5759      conftest$ac_exeext conftest.$ac_ext
5760LIBS=$ac_check_lib_save_LIBS
5761fi
5762echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5763echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5764if test $ac_cv_lib_GL_main = yes; then
5765  FOUND_GL=yes
5766fi
5767
5768   if test x$FOUND_GL = xyes ; then
5769     LIBS="$LIBS -lGL"
5770   else
5771         echo "------------------"
5772         echo "opengl not found."
5773         echo "please install the opengl package which can be found at http://www.opengl.org"
5774         echo "------------------"
5775         exit -1
5776   fi
5777
5778# cheking for GLU-header
5779
5780for ac_header in GL/glu.h
5781do
5782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5783if eval "test \"\${$as_ac_Header+set}\" = set"; then
5784  echo "$as_me:$LINENO: checking for $ac_header" >&5
5785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5786if eval "test \"\${$as_ac_Header+set}\" = set"; then
5787  echo $ECHO_N "(cached) $ECHO_C" >&6
5788fi
5789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5791else
5792  # Is the header compilable?
5793echo "$as_me:$LINENO: checking $ac_header usability" >&5
5794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5795cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h.  */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h.  */
5801$ac_includes_default
5802#include <$ac_header>
5803_ACEOF
5804rm -f conftest.$ac_objext
5805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806  (eval $ac_compile) 2>conftest.er1
5807  ac_status=$?
5808  grep -v '^ *+' conftest.er1 >conftest.err
5809  rm -f conftest.er1
5810  cat conftest.err >&5
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); } &&
5813         { ac_try='test -z "$ac_c_werror_flag"
5814                         || test ! -s conftest.err'
5815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816  (eval $ac_try) 2>&5
5817  ac_status=$?
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); }; } &&
5820         { ac_try='test -s conftest.$ac_objext'
5821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822  (eval $ac_try) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }; }; then
5826  ac_header_compiler=yes
5827else
5828  echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831ac_header_compiler=no
5832fi
5833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5835echo "${ECHO_T}$ac_header_compiler" >&6
5836
5837# Is the header present?
5838echo "$as_me:$LINENO: checking $ac_header presence" >&5
5839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5840cat >conftest.$ac_ext <<_ACEOF
5841/* confdefs.h.  */
5842_ACEOF
5843cat confdefs.h >>conftest.$ac_ext
5844cat >>conftest.$ac_ext <<_ACEOF
5845/* end confdefs.h.  */
5846#include <$ac_header>
5847_ACEOF
5848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5850  ac_status=$?
5851  grep -v '^ *+' conftest.er1 >conftest.err
5852  rm -f conftest.er1
5853  cat conftest.err >&5
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); } >/dev/null; then
5856  if test -s conftest.err; then
5857    ac_cpp_err=$ac_c_preproc_warn_flag
5858    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5859  else
5860    ac_cpp_err=
5861  fi
5862else
5863  ac_cpp_err=yes
5864fi
5865if test -z "$ac_cpp_err"; then
5866  ac_header_preproc=yes
5867else
5868  echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871  ac_header_preproc=no
5872fi
5873rm -f conftest.err conftest.$ac_ext
5874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5875echo "${ECHO_T}$ac_header_preproc" >&6
5876
5877# So?  What about this header?
5878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5879  yes:no: )
5880    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5882    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5884    ac_header_preproc=yes
5885    ;;
5886  no:yes:* )
5887    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5889    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5890echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5891    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5893    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5894echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5895    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5897    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5899    (
5900      cat <<\_ASBOX
5901## ---------------------------------------------- ##
5902## Report this to orxonox-dev at mail.datacore.ch ##
5903## ---------------------------------------------- ##
5904_ASBOX
5905    ) |
5906      sed "s/^/$as_me: WARNING:     /" >&2
5907    ;;
5908esac
5909echo "$as_me:$LINENO: checking for $ac_header" >&5
5910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5911if eval "test \"\${$as_ac_Header+set}\" = set"; then
5912  echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914  eval "$as_ac_Header=\$ac_header_preproc"
5915fi
5916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5918
5919fi
5920if test `eval echo '${'$as_ac_Header'}'` = yes; then
5921  cat >>confdefs.h <<_ACEOF
5922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5923_ACEOF
5924
5925else
5926  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5927echo "$as_me: error: cannot find opengl headers" >&2;}
5928   { (exit 1); exit 1; }; }
5929fi
5930
5931done
5932
5933
5934    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
5935echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
5936if test "${ac_cv_lib_GLU_main+set}" = set; then
5937  echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939  ac_check_lib_save_LIBS=$LIBS
5940LIBS="-lGLU  $LIBS"
5941cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h.  */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h.  */
5947
5948
5949int
5950main ()
5951{
5952main ();
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957rm -f conftest.$ac_objext conftest$ac_exeext
5958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959  (eval $ac_link) 2>conftest.er1
5960  ac_status=$?
5961  grep -v '^ *+' conftest.er1 >conftest.err
5962  rm -f conftest.er1
5963  cat conftest.err >&5
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); } &&
5966         { ac_try='test -z "$ac_c_werror_flag"
5967                         || test ! -s conftest.err'
5968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969  (eval $ac_try) 2>&5
5970  ac_status=$?
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); }; } &&
5973         { ac_try='test -s conftest$ac_exeext'
5974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975  (eval $ac_try) 2>&5
5976  ac_status=$?
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); }; }; then
5979  ac_cv_lib_GLU_main=yes
5980else
5981  echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984ac_cv_lib_GLU_main=no
5985fi
5986rm -f conftest.err conftest.$ac_objext \
5987      conftest$ac_exeext conftest.$ac_ext
5988LIBS=$ac_check_lib_save_LIBS
5989fi
5990echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
5991echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
5992if test $ac_cv_lib_GLU_main = yes; then
5993  FOUND_GLU=yes
5994fi
5995
5996    if test x$FOUND_GLU = xyes ; then
5997      LIBS="$LIBS -lGLU"
5998    else
5999         echo "------------------"
6000         echo "GLU library not found."
6001         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6002         echo "------------------"
6003         exit -1
6004    fi
6005
6006#--------#
6007# openAL #
6008#--------#
6009# checking for openAL-headers
6010
6011for ac_header in AL/al.h
6012do
6013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6014if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015  echo "$as_me:$LINENO: checking for $ac_header" >&5
6016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6017if eval "test \"\${$as_ac_Header+set}\" = set"; then
6018  echo $ECHO_N "(cached) $ECHO_C" >&6
6019fi
6020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022else
6023  # Is the header compilable?
6024echo "$as_me:$LINENO: checking $ac_header usability" >&5
6025echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6026cat >conftest.$ac_ext <<_ACEOF
6027/* confdefs.h.  */
6028_ACEOF
6029cat confdefs.h >>conftest.$ac_ext
6030cat >>conftest.$ac_ext <<_ACEOF
6031/* end confdefs.h.  */
6032$ac_includes_default
6033#include <$ac_header>
6034_ACEOF
6035rm -f conftest.$ac_objext
6036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037  (eval $ac_compile) 2>conftest.er1
6038  ac_status=$?
6039  grep -v '^ *+' conftest.er1 >conftest.err
6040  rm -f conftest.er1
6041  cat conftest.err >&5
6042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043  (exit $ac_status); } &&
6044         { ac_try='test -z "$ac_c_werror_flag"
6045                         || test ! -s conftest.err'
6046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047  (eval $ac_try) 2>&5
6048  ac_status=$?
6049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050  (exit $ac_status); }; } &&
6051         { ac_try='test -s conftest.$ac_objext'
6052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053  (eval $ac_try) 2>&5
6054  ac_status=$?
6055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056  (exit $ac_status); }; }; then
6057  ac_header_compiler=yes
6058else
6059  echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062ac_header_compiler=no
6063fi
6064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6065echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066echo "${ECHO_T}$ac_header_compiler" >&6
6067
6068# Is the header present?
6069echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6071cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h.  */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h.  */
6077#include <$ac_header>
6078_ACEOF
6079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6080  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6081  ac_status=$?
6082  grep -v '^ *+' conftest.er1 >conftest.err
6083  rm -f conftest.er1
6084  cat conftest.err >&5
6085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086  (exit $ac_status); } >/dev/null; then
6087  if test -s conftest.err; then
6088    ac_cpp_err=$ac_c_preproc_warn_flag
6089    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6090  else
6091    ac_cpp_err=
6092  fi
6093else
6094  ac_cpp_err=yes
6095fi
6096if test -z "$ac_cpp_err"; then
6097  ac_header_preproc=yes
6098else
6099  echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
6102  ac_header_preproc=no
6103fi
6104rm -f conftest.err conftest.$ac_ext
6105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6106echo "${ECHO_T}$ac_header_preproc" >&6
6107
6108# So?  What about this header?
6109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6110  yes:no: )
6111    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6112echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6113    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6114echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6115    ac_header_preproc=yes
6116    ;;
6117  no:yes:* )
6118    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6119echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6120    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6121echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6122    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6123echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6124    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6125echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6126    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6127echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6128    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6129echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6130    (
6131      cat <<\_ASBOX
6132## ---------------------------------------------- ##
6133## Report this to orxonox-dev at mail.datacore.ch ##
6134## ---------------------------------------------- ##
6135_ASBOX
6136    ) |
6137      sed "s/^/$as_me: WARNING:     /" >&2
6138    ;;
6139esac
6140echo "$as_me:$LINENO: checking for $ac_header" >&5
6141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6142if eval "test \"\${$as_ac_Header+set}\" = set"; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  eval "$as_ac_Header=\$ac_header_preproc"
6146fi
6147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6149
6150fi
6151if test `eval echo '${'$as_ac_Header'}'` = yes; then
6152  cat >>confdefs.h <<_ACEOF
6153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6154_ACEOF
6155
6156else
6157  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6158echo "$as_me: error: cannot find openAL header." >&2;}
6159   { (exit 1); exit 1; }; }
6160fi
6161
6162done
6163
6164# checking for openAL-lib
6165  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6166echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6167if test "${ac_cv_lib_openal_main+set}" = set; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  ac_check_lib_save_LIBS=$LIBS
6171LIBS="-lopenal  $LIBS"
6172cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h.  */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h.  */
6178
6179
6180int
6181main ()
6182{
6183main ();
6184  ;
6185  return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext conftest$ac_exeext
6189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190  (eval $ac_link) 2>conftest.er1
6191  ac_status=$?
6192  grep -v '^ *+' conftest.er1 >conftest.err
6193  rm -f conftest.er1
6194  cat conftest.err >&5
6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); } &&
6197         { ac_try='test -z "$ac_c_werror_flag"
6198                         || test ! -s conftest.err'
6199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200  (eval $ac_try) 2>&5
6201  ac_status=$?
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); }; } &&
6204         { ac_try='test -s conftest$ac_exeext'
6205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206  (eval $ac_try) 2>&5
6207  ac_status=$?
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); }; }; then
6210  ac_cv_lib_openal_main=yes
6211else
6212  echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215ac_cv_lib_openal_main=no
6216fi
6217rm -f conftest.err conftest.$ac_objext \
6218      conftest$ac_exeext conftest.$ac_ext
6219LIBS=$ac_check_lib_save_LIBS
6220fi
6221echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6222echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6223if test $ac_cv_lib_openal_main = yes; then
6224  FOUND_openal=yes
6225fi
6226
6227     if test x$FOUND_openal = xyes ; then
6228       LIBS="$LIBS -lopenal"
6229     else
6230        echo "------------------"
6231        echo "openal library not found."
6232        echo "please install the openal library, which can be found at http://www.openal.org"
6233        echo "------------------"
6234        exit -1
6235     fi
6236# checking for alut
6237#  AC_CHECK_LIB([alut], [main], [FOUND_openal=yes])
6238#     if test x$FOUND_openal = xyes ; then
6239#       LIBS="$LIBS -lalut"
6240#     fi
6241
6242# checking for SDL
6243  echo "$as_me:$LINENO: checking for SDL-version" >&5
6244echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6245  SDL_VERSION=`sdl-config --version`
6246  echo $SDL_VERSION
6247
6248
6249for ac_header in SDL.h
6250do
6251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6252if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253  echo "$as_me:$LINENO: checking for $ac_header" >&5
6254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6255if eval "test \"\${$as_ac_Header+set}\" = set"; then
6256  echo $ECHO_N "(cached) $ECHO_C" >&6
6257fi
6258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6260else
6261  # Is the header compilable?
6262echo "$as_me:$LINENO: checking $ac_header usability" >&5
6263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6264cat >conftest.$ac_ext <<_ACEOF
6265/* confdefs.h.  */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h.  */
6270$ac_includes_default
6271#include <$ac_header>
6272_ACEOF
6273rm -f conftest.$ac_objext
6274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275  (eval $ac_compile) 2>conftest.er1
6276  ac_status=$?
6277  grep -v '^ *+' conftest.er1 >conftest.err
6278  rm -f conftest.er1
6279  cat conftest.err >&5
6280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281  (exit $ac_status); } &&
6282         { ac_try='test -z "$ac_c_werror_flag"
6283                         || test ! -s conftest.err'
6284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285  (eval $ac_try) 2>&5
6286  ac_status=$?
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); }; } &&
6289         { ac_try='test -s conftest.$ac_objext'
6290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291  (eval $ac_try) 2>&5
6292  ac_status=$?
6293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294  (exit $ac_status); }; }; then
6295  ac_header_compiler=yes
6296else
6297  echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300ac_header_compiler=no
6301fi
6302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6304echo "${ECHO_T}$ac_header_compiler" >&6
6305
6306# Is the header present?
6307echo "$as_me:$LINENO: checking $ac_header presence" >&5
6308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6309cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h.  */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h.  */
6315#include <$ac_header>
6316_ACEOF
6317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6319  ac_status=$?
6320  grep -v '^ *+' conftest.er1 >conftest.err
6321  rm -f conftest.er1
6322  cat conftest.err >&5
6323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324  (exit $ac_status); } >/dev/null; then
6325  if test -s conftest.err; then
6326    ac_cpp_err=$ac_c_preproc_warn_flag
6327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6328  else
6329    ac_cpp_err=
6330  fi
6331else
6332  ac_cpp_err=yes
6333fi
6334if test -z "$ac_cpp_err"; then
6335  ac_header_preproc=yes
6336else
6337  echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
6340  ac_header_preproc=no
6341fi
6342rm -f conftest.err conftest.$ac_ext
6343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6344echo "${ECHO_T}$ac_header_preproc" >&6
6345
6346# So?  What about this header?
6347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6348  yes:no: )
6349    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6351    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6353    ac_header_preproc=yes
6354    ;;
6355  no:yes:* )
6356    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6358    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6359echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6360    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6362    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6363echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6364    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6366    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6368    (
6369      cat <<\_ASBOX
6370## ---------------------------------------------- ##
6371## Report this to orxonox-dev at mail.datacore.ch ##
6372## ---------------------------------------------- ##
6373_ASBOX
6374    ) |
6375      sed "s/^/$as_me: WARNING:     /" >&2
6376    ;;
6377esac
6378echo "$as_me:$LINENO: checking for $ac_header" >&5
6379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6380if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  eval "$as_ac_Header=\$ac_header_preproc"
6384fi
6385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387
6388fi
6389if test `eval echo '${'$as_ac_Header'}'` = yes; then
6390  cat >>confdefs.h <<_ACEOF
6391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6392_ACEOF
6393
6394else
6395
6396for ac_header in SDL/SDL.h
6397do
6398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400  echo "$as_me:$LINENO: checking for $ac_header" >&5
6401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403  echo $ECHO_N "(cached) $ECHO_C" >&6
6404fi
6405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6407else
6408  # Is the header compilable?
6409echo "$as_me:$LINENO: checking $ac_header usability" >&5
6410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6411cat >conftest.$ac_ext <<_ACEOF
6412/* confdefs.h.  */
6413_ACEOF
6414cat confdefs.h >>conftest.$ac_ext
6415cat >>conftest.$ac_ext <<_ACEOF
6416/* end confdefs.h.  */
6417$ac_includes_default
6418#include <$ac_header>
6419_ACEOF
6420rm -f conftest.$ac_objext
6421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422  (eval $ac_compile) 2>conftest.er1
6423  ac_status=$?
6424  grep -v '^ *+' conftest.er1 >conftest.err
6425  rm -f conftest.er1
6426  cat conftest.err >&5
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); } &&
6429         { ac_try='test -z "$ac_c_werror_flag"
6430                         || test ! -s conftest.err'
6431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432  (eval $ac_try) 2>&5
6433  ac_status=$?
6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); }; } &&
6436         { ac_try='test -s conftest.$ac_objext'
6437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438  (eval $ac_try) 2>&5
6439  ac_status=$?
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); }; }; then
6442  ac_header_compiler=yes
6443else
6444  echo "$as_me: failed program was:" >&5
6445sed 's/^/| /' conftest.$ac_ext >&5
6446
6447ac_header_compiler=no
6448fi
6449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6451echo "${ECHO_T}$ac_header_compiler" >&6
6452
6453# Is the header present?
6454echo "$as_me:$LINENO: checking $ac_header presence" >&5
6455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6456cat >conftest.$ac_ext <<_ACEOF
6457/* confdefs.h.  */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h.  */
6462#include <$ac_header>
6463_ACEOF
6464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6466  ac_status=$?
6467  grep -v '^ *+' conftest.er1 >conftest.err
6468  rm -f conftest.er1
6469  cat conftest.err >&5
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); } >/dev/null; then
6472  if test -s conftest.err; then
6473    ac_cpp_err=$ac_c_preproc_warn_flag
6474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6475  else
6476    ac_cpp_err=
6477  fi
6478else
6479  ac_cpp_err=yes
6480fi
6481if test -z "$ac_cpp_err"; then
6482  ac_header_preproc=yes
6483else
6484  echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487  ac_header_preproc=no
6488fi
6489rm -f conftest.err conftest.$ac_ext
6490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6491echo "${ECHO_T}$ac_header_preproc" >&6
6492
6493# So?  What about this header?
6494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6495  yes:no: )
6496    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6498    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6500    ac_header_preproc=yes
6501    ;;
6502  no:yes:* )
6503    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6505    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6506echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6507    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6509    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6510echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6515    (
6516      cat <<\_ASBOX
6517## ---------------------------------------------- ##
6518## Report this to orxonox-dev at mail.datacore.ch ##
6519## ---------------------------------------------- ##
6520_ASBOX
6521    ) |
6522      sed "s/^/$as_me: WARNING:     /" >&2
6523    ;;
6524esac
6525echo "$as_me:$LINENO: checking for $ac_header" >&5
6526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6527if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528  echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530  eval "$as_ac_Header=\$ac_header_preproc"
6531fi
6532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534
6535fi
6536if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537  cat >>confdefs.h <<_ACEOF
6538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539_ACEOF
6540
6541else
6542  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
6543echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
6544   { (exit 1); exit 1; }; }
6545fi
6546
6547done
6548
6549fi
6550
6551done
6552
6553   CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
6554   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
6555echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
6556if test "${ac_cv_lib_SDL_main+set}" = set; then
6557  echo $ECHO_N "(cached) $ECHO_C" >&6
6558else
6559  ac_check_lib_save_LIBS=$LIBS
6560LIBS="-lSDL  $LIBS"
6561cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h.  */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h.  */
6567
6568
6569int
6570main ()
6571{
6572main ();
6573  ;
6574  return 0;
6575}
6576_ACEOF
6577rm -f conftest.$ac_objext conftest$ac_exeext
6578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579  (eval $ac_link) 2>conftest.er1
6580  ac_status=$?
6581  grep -v '^ *+' conftest.er1 >conftest.err
6582  rm -f conftest.er1
6583  cat conftest.err >&5
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); } &&
6586         { ac_try='test -z "$ac_c_werror_flag"
6587                         || test ! -s conftest.err'
6588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589  (eval $ac_try) 2>&5
6590  ac_status=$?
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); }; } &&
6593         { ac_try='test -s conftest$ac_exeext'
6594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595  (eval $ac_try) 2>&5
6596  ac_status=$?
6597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598  (exit $ac_status); }; }; then
6599  ac_cv_lib_SDL_main=yes
6600else
6601  echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604ac_cv_lib_SDL_main=no
6605fi
6606rm -f conftest.err conftest.$ac_objext \
6607      conftest$ac_exeext conftest.$ac_ext
6608LIBS=$ac_check_lib_save_LIBS
6609fi
6610echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
6611echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
6612if test $ac_cv_lib_SDL_main = yes; then
6613  FOUND_SDL=yes
6614fi
6615
6616    if test x$FOUND_SDL = xyes ; then
6617        LIBS="`sdl-config --libs` $LIBS"
6618    else
6619        echo "------------------"
6620        echo "SDL library not found."
6621        echo "please install the SDL library, which can be found at http://www.libsdl.org"
6622        echo "------------------"
6623        exit -1
6624     fi
6625
6626    ;;
6627
6628#############
6629#-----------#
6630# MAC -OS X #
6631#-----------#
6632#############
6633 *darwin*)
6634 echo "OS X detected"
6635
6636 osX="yes"
6637
6638 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
6639# checking gl header
6640
6641for ac_header in OpenGL/gl.h
6642do
6643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644if eval "test \"\${$as_ac_Header+set}\" = set"; then
6645  echo "$as_me:$LINENO: checking for $ac_header" >&5
6646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649fi
6650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6652else
6653  # Is the header compilable?
6654echo "$as_me:$LINENO: checking $ac_header usability" >&5
6655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6656cat >conftest.$ac_ext <<_ACEOF
6657/* confdefs.h.  */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h.  */
6662$ac_includes_default
6663#include <$ac_header>
6664_ACEOF
6665rm -f conftest.$ac_objext
6666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667  (eval $ac_compile) 2>conftest.er1
6668  ac_status=$?
6669  grep -v '^ *+' conftest.er1 >conftest.err
6670  rm -f conftest.er1
6671  cat conftest.err >&5
6672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673  (exit $ac_status); } &&
6674         { ac_try='test -z "$ac_c_werror_flag"
6675                         || test ! -s conftest.err'
6676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677  (eval $ac_try) 2>&5
6678  ac_status=$?
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); }; } &&
6681         { ac_try='test -s conftest.$ac_objext'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; }; then
6687  ac_header_compiler=yes
6688else
6689  echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5
6691
6692ac_header_compiler=no
6693fi
6694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6696echo "${ECHO_T}$ac_header_compiler" >&6
6697
6698# Is the header present?
6699echo "$as_me:$LINENO: checking $ac_header presence" >&5
6700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6701cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707#include <$ac_header>
6708_ACEOF
6709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6711  ac_status=$?
6712  grep -v '^ *+' conftest.er1 >conftest.err
6713  rm -f conftest.er1
6714  cat conftest.err >&5
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); } >/dev/null; then
6717  if test -s conftest.err; then
6718    ac_cpp_err=$ac_c_preproc_warn_flag
6719    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6720  else
6721    ac_cpp_err=
6722  fi
6723else
6724  ac_cpp_err=yes
6725fi
6726if test -z "$ac_cpp_err"; then
6727  ac_header_preproc=yes
6728else
6729  echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
6731
6732  ac_header_preproc=no
6733fi
6734rm -f conftest.err conftest.$ac_ext
6735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6736echo "${ECHO_T}$ac_header_preproc" >&6
6737
6738# So?  What about this header?
6739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6740  yes:no: )
6741    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6743    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6745    ac_header_preproc=yes
6746    ;;
6747  no:yes:* )
6748    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6750    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6751echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6752    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6754    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6755echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6756    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6758    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6760    (
6761      cat <<\_ASBOX
6762## ---------------------------------------------- ##
6763## Report this to orxonox-dev at mail.datacore.ch ##
6764## ---------------------------------------------- ##
6765_ASBOX
6766    ) |
6767      sed "s/^/$as_me: WARNING:     /" >&2
6768    ;;
6769esac
6770echo "$as_me:$LINENO: checking for $ac_header" >&5
6771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6772if eval "test \"\${$as_ac_Header+set}\" = set"; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  eval "$as_ac_Header=\$ac_header_preproc"
6776fi
6777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6779
6780fi
6781if test `eval echo '${'$as_ac_Header'}'` = yes; then
6782  cat >>confdefs.h <<_ACEOF
6783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6784_ACEOF
6785
6786else
6787  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6788echo "$as_me: error: cannot find opengl headers" >&2;}
6789   { (exit 1); exit 1; }; }
6790fi
6791
6792done
6793
6794# cheking for GLU-header
6795
6796for ac_header in OpenGL/glu.h
6797do
6798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6799if eval "test \"\${$as_ac_Header+set}\" = set"; then
6800  echo "$as_me:$LINENO: checking for $ac_header" >&5
6801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6802if eval "test \"\${$as_ac_Header+set}\" = set"; then
6803  echo $ECHO_N "(cached) $ECHO_C" >&6
6804fi
6805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6807else
6808  # Is the header compilable?
6809echo "$as_me:$LINENO: checking $ac_header usability" >&5
6810echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6811cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h.  */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h.  */
6817$ac_includes_default
6818#include <$ac_header>
6819_ACEOF
6820rm -f conftest.$ac_objext
6821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822  (eval $ac_compile) 2>conftest.er1
6823  ac_status=$?
6824  grep -v '^ *+' conftest.er1 >conftest.err
6825  rm -f conftest.er1
6826  cat conftest.err >&5
6827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); } &&
6829         { ac_try='test -z "$ac_c_werror_flag"
6830                         || test ! -s conftest.err'
6831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832  (eval $ac_try) 2>&5
6833  ac_status=$?
6834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835  (exit $ac_status); }; } &&
6836         { ac_try='test -s conftest.$ac_objext'
6837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838  (eval $ac_try) 2>&5
6839  ac_status=$?
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); }; }; then
6842  ac_header_compiler=yes
6843else
6844  echo "$as_me: failed program was:" >&5
6845sed 's/^/| /' conftest.$ac_ext >&5
6846
6847ac_header_compiler=no
6848fi
6849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6851echo "${ECHO_T}$ac_header_compiler" >&6
6852
6853# Is the header present?
6854echo "$as_me:$LINENO: checking $ac_header presence" >&5
6855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6856cat >conftest.$ac_ext <<_ACEOF
6857/* confdefs.h.  */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h.  */
6862#include <$ac_header>
6863_ACEOF
6864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6865  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6866  ac_status=$?
6867  grep -v '^ *+' conftest.er1 >conftest.err
6868  rm -f conftest.er1
6869  cat conftest.err >&5
6870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871  (exit $ac_status); } >/dev/null; then
6872  if test -s conftest.err; then
6873    ac_cpp_err=$ac_c_preproc_warn_flag
6874    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6875  else
6876    ac_cpp_err=
6877  fi
6878else
6879  ac_cpp_err=yes
6880fi
6881if test -z "$ac_cpp_err"; then
6882  ac_header_preproc=yes
6883else
6884  echo "$as_me: failed program was:" >&5
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887  ac_header_preproc=no
6888fi
6889rm -f conftest.err conftest.$ac_ext
6890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6891echo "${ECHO_T}$ac_header_preproc" >&6
6892
6893# So?  What about this header?
6894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6895  yes:no: )
6896    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6898    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6900    ac_header_preproc=yes
6901    ;;
6902  no:yes:* )
6903    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6905    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6906echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6907    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6909    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6910echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6911    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6913    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6915    (
6916      cat <<\_ASBOX
6917## ---------------------------------------------- ##
6918## Report this to orxonox-dev at mail.datacore.ch ##
6919## ---------------------------------------------- ##
6920_ASBOX
6921    ) |
6922      sed "s/^/$as_me: WARNING:     /" >&2
6923    ;;
6924esac
6925echo "$as_me:$LINENO: checking for $ac_header" >&5
6926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6927if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928  echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930  eval "$as_ac_Header=\$ac_header_preproc"
6931fi
6932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6934
6935fi
6936if test `eval echo '${'$as_ac_Header'}'` = yes; then
6937  cat >>confdefs.h <<_ACEOF
6938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6939_ACEOF
6940
6941else
6942  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6943echo "$as_me: error: cannot find opengl headers" >&2;}
6944   { (exit 1); exit 1; }; }
6945fi
6946
6947done
6948
6949
6950   LIBS="$LIBS -framework OpenGL"
6951
6952
6953## SDL-check
6954       SDL_CFLAGS=`sdl-config --cflags`
6955       SDL_LIBS=`sdl-config --libs`
6956       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6957       LIBS="$LIBS $SDL_LIBS"
6958
6959
6960# checking for SDL-headers
6961#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6962#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6963
6964## checking for SDL
6965#    SDL_VERSION=1.2.7
6966#    AM_PATH_SDL($SDL_VERSION,
6967#      :,
6968#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6969#      )
6970
6971
6972    ;;
6973
6974  *)
6975    ;;
6976esac
6977
6978
6979
6980###################################
6981## CHECKING FOR HEADERS AND LIBS ##
6982###################################
6983
6984#---------#
6985# SDL_ttf #
6986#---------#
6987# checking for SDL_ttf-headers
6988
6989for ac_header in SDL_ttf.h
6990do
6991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6992if eval "test \"\${$as_ac_Header+set}\" = set"; then
6993  echo "$as_me:$LINENO: checking for $ac_header" >&5
6994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6995if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996  echo $ECHO_N "(cached) $ECHO_C" >&6
6997fi
6998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7000else
7001  # Is the header compilable?
7002echo "$as_me:$LINENO: checking $ac_header usability" >&5
7003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7004cat >conftest.$ac_ext <<_ACEOF
7005/* confdefs.h.  */
7006_ACEOF
7007cat confdefs.h >>conftest.$ac_ext
7008cat >>conftest.$ac_ext <<_ACEOF
7009/* end confdefs.h.  */
7010$ac_includes_default
7011#include <$ac_header>
7012_ACEOF
7013rm -f conftest.$ac_objext
7014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015  (eval $ac_compile) 2>conftest.er1
7016  ac_status=$?
7017  grep -v '^ *+' conftest.er1 >conftest.err
7018  rm -f conftest.er1
7019  cat conftest.err >&5
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); } &&
7022         { ac_try='test -z "$ac_c_werror_flag"
7023                         || test ! -s conftest.err'
7024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025  (eval $ac_try) 2>&5
7026  ac_status=$?
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); }; } &&
7029         { ac_try='test -s conftest.$ac_objext'
7030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031  (eval $ac_try) 2>&5
7032  ac_status=$?
7033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034  (exit $ac_status); }; }; then
7035  ac_header_compiler=yes
7036else
7037  echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040ac_header_compiler=no
7041fi
7042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7044echo "${ECHO_T}$ac_header_compiler" >&6
7045
7046# Is the header present?
7047echo "$as_me:$LINENO: checking $ac_header presence" >&5
7048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7049cat >conftest.$ac_ext <<_ACEOF
7050/* confdefs.h.  */
7051_ACEOF
7052cat confdefs.h >>conftest.$ac_ext
7053cat >>conftest.$ac_ext <<_ACEOF
7054/* end confdefs.h.  */
7055#include <$ac_header>
7056_ACEOF
7057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7058  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7059  ac_status=$?
7060  grep -v '^ *+' conftest.er1 >conftest.err
7061  rm -f conftest.er1
7062  cat conftest.err >&5
7063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064  (exit $ac_status); } >/dev/null; then
7065  if test -s conftest.err; then
7066    ac_cpp_err=$ac_c_preproc_warn_flag
7067    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7068  else
7069    ac_cpp_err=
7070  fi
7071else
7072  ac_cpp_err=yes
7073fi
7074if test -z "$ac_cpp_err"; then
7075  ac_header_preproc=yes
7076else
7077  echo "$as_me: failed program was:" >&5
7078sed 's/^/| /' conftest.$ac_ext >&5
7079
7080  ac_header_preproc=no
7081fi
7082rm -f conftest.err conftest.$ac_ext
7083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7084echo "${ECHO_T}$ac_header_preproc" >&6
7085
7086# So?  What about this header?
7087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7088  yes:no: )
7089    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7091    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7093    ac_header_preproc=yes
7094    ;;
7095  no:yes:* )
7096    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7098    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7099echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7100    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7102    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7103echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7104    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7106    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7108    (
7109      cat <<\_ASBOX
7110## ---------------------------------------------- ##
7111## Report this to orxonox-dev at mail.datacore.ch ##
7112## ---------------------------------------------- ##
7113_ASBOX
7114    ) |
7115      sed "s/^/$as_me: WARNING:     /" >&2
7116    ;;
7117esac
7118echo "$as_me:$LINENO: checking for $ac_header" >&5
7119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7120if eval "test \"\${$as_ac_Header+set}\" = set"; then
7121  echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123  eval "$as_ac_Header=\$ac_header_preproc"
7124fi
7125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7127
7128fi
7129if test `eval echo '${'$as_ac_Header'}'` = yes; then
7130  cat >>confdefs.h <<_ACEOF
7131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7132_ACEOF
7133
7134else
7135
7136for ac_header in SDL/SDL_ttf.h
7137do
7138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140  echo "$as_me:$LINENO: checking for $ac_header" >&5
7141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7142if eval "test \"\${$as_ac_Header+set}\" = set"; then
7143  echo $ECHO_N "(cached) $ECHO_C" >&6
7144fi
7145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7147else
7148  # Is the header compilable?
7149echo "$as_me:$LINENO: checking $ac_header usability" >&5
7150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7151cat >conftest.$ac_ext <<_ACEOF
7152/* confdefs.h.  */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h.  */
7157$ac_includes_default
7158#include <$ac_header>
7159_ACEOF
7160rm -f conftest.$ac_objext
7161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162  (eval $ac_compile) 2>conftest.er1
7163  ac_status=$?
7164  grep -v '^ *+' conftest.er1 >conftest.err
7165  rm -f conftest.er1
7166  cat conftest.err >&5
7167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168  (exit $ac_status); } &&
7169         { ac_try='test -z "$ac_c_werror_flag"
7170                         || test ! -s conftest.err'
7171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172  (eval $ac_try) 2>&5
7173  ac_status=$?
7174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175  (exit $ac_status); }; } &&
7176         { ac_try='test -s conftest.$ac_objext'
7177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178  (eval $ac_try) 2>&5
7179  ac_status=$?
7180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181  (exit $ac_status); }; }; then
7182  ac_header_compiler=yes
7183else
7184  echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187ac_header_compiler=no
7188fi
7189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7191echo "${ECHO_T}$ac_header_compiler" >&6
7192
7193# Is the header present?
7194echo "$as_me:$LINENO: checking $ac_header presence" >&5
7195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7196cat >conftest.$ac_ext <<_ACEOF
7197/* confdefs.h.  */
7198_ACEOF
7199cat confdefs.h >>conftest.$ac_ext
7200cat >>conftest.$ac_ext <<_ACEOF
7201/* end confdefs.h.  */
7202#include <$ac_header>
7203_ACEOF
7204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7205  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7206  ac_status=$?
7207  grep -v '^ *+' conftest.er1 >conftest.err
7208  rm -f conftest.er1
7209  cat conftest.err >&5
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); } >/dev/null; then
7212  if test -s conftest.err; then
7213    ac_cpp_err=$ac_c_preproc_warn_flag
7214    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7215  else
7216    ac_cpp_err=
7217  fi
7218else
7219  ac_cpp_err=yes
7220fi
7221if test -z "$ac_cpp_err"; then
7222  ac_header_preproc=yes
7223else
7224  echo "$as_me: failed program was:" >&5
7225sed 's/^/| /' conftest.$ac_ext >&5
7226
7227  ac_header_preproc=no
7228fi
7229rm -f conftest.err conftest.$ac_ext
7230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7231echo "${ECHO_T}$ac_header_preproc" >&6
7232
7233# So?  What about this header?
7234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7235  yes:no: )
7236    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7238    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7240    ac_header_preproc=yes
7241    ;;
7242  no:yes:* )
7243    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7245    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7246echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7247    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7249    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7250echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7251    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7253    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7255    (
7256      cat <<\_ASBOX
7257## ---------------------------------------------- ##
7258## Report this to orxonox-dev at mail.datacore.ch ##
7259## ---------------------------------------------- ##
7260_ASBOX
7261    ) |
7262      sed "s/^/$as_me: WARNING:     /" >&2
7263    ;;
7264esac
7265echo "$as_me:$LINENO: checking for $ac_header" >&5
7266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7267if eval "test \"\${$as_ac_Header+set}\" = set"; then
7268  echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270  eval "$as_ac_Header=\$ac_header_preproc"
7271fi
7272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7274
7275fi
7276if test `eval echo '${'$as_ac_Header'}'` = yes; then
7277  cat >>confdefs.h <<_ACEOF
7278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7279_ACEOF
7280
7281else
7282  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7283echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7284   { (exit 1); exit 1; }; }
7285fi
7286
7287done
7288
7289fi
7290
7291done
7292
7293# checking for SDL_ttf-lib
7294  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7295echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7296if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7297  echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299  ac_check_lib_save_LIBS=$LIBS
7300LIBS="-lSDL_ttf  $LIBS"
7301cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h.  */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h.  */
7307
7308/* Override any gcc2 internal prototype to avoid an error.  */
7309#ifdef __cplusplus
7310extern "C"
7311#endif
7312/* We use char because int might match the return type of a gcc2
7313   builtin and then its argument prototype would still apply.  */
7314char TTF_OpenFont ();
7315int
7316main ()
7317{
7318TTF_OpenFont ();
7319  ;
7320  return 0;
7321}
7322_ACEOF
7323rm -f conftest.$ac_objext conftest$ac_exeext
7324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7325  (eval $ac_link) 2>conftest.er1
7326  ac_status=$?
7327  grep -v '^ *+' conftest.er1 >conftest.err
7328  rm -f conftest.er1
7329  cat conftest.err >&5
7330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331  (exit $ac_status); } &&
7332         { ac_try='test -z "$ac_c_werror_flag"
7333                         || test ! -s conftest.err'
7334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335  (eval $ac_try) 2>&5
7336  ac_status=$?
7337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338  (exit $ac_status); }; } &&
7339         { ac_try='test -s conftest$ac_exeext'
7340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341  (eval $ac_try) 2>&5
7342  ac_status=$?
7343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344  (exit $ac_status); }; }; then
7345  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7346else
7347  echo "$as_me: failed program was:" >&5
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7351fi
7352rm -f conftest.err conftest.$ac_objext \
7353      conftest$ac_exeext conftest.$ac_ext
7354LIBS=$ac_check_lib_save_LIBS
7355fi
7356echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7357echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7358if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7359  FOUND_SDL_ttf=yes
7360fi
7361
7362     if test x$FOUND_SDL_ttf = xyes ; then
7363       LIBS="$LIBS -lSDL_ttf"
7364     else
7365        echo "------------------"
7366        echo "SDL_ttf library not found."
7367        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7368        echo "------------------"
7369        exit -1
7370     fi
7371
7372#-----------#
7373# SDL_Image #
7374#-----------#
7375# checking for SDL_image-headers
7376
7377for ac_header in SDL_image.h
7378do
7379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381  echo "$as_me:$LINENO: checking for $ac_header" >&5
7382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385fi
7386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388else
7389  # Is the header compilable?
7390echo "$as_me:$LINENO: checking $ac_header usability" >&5
7391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7392cat >conftest.$ac_ext <<_ACEOF
7393/* confdefs.h.  */
7394_ACEOF
7395cat confdefs.h >>conftest.$ac_ext
7396cat >>conftest.$ac_ext <<_ACEOF
7397/* end confdefs.h.  */
7398$ac_includes_default
7399#include <$ac_header>
7400_ACEOF
7401rm -f conftest.$ac_objext
7402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403  (eval $ac_compile) 2>conftest.er1
7404  ac_status=$?
7405  grep -v '^ *+' conftest.er1 >conftest.err
7406  rm -f conftest.er1
7407  cat conftest.err >&5
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); } &&
7410         { ac_try='test -z "$ac_c_werror_flag"
7411                         || test ! -s conftest.err'
7412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413  (eval $ac_try) 2>&5
7414  ac_status=$?
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); }; } &&
7417         { ac_try='test -s conftest.$ac_objext'
7418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419  (eval $ac_try) 2>&5
7420  ac_status=$?
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); }; }; then
7423  ac_header_compiler=yes
7424else
7425  echo "$as_me: failed program was:" >&5
7426sed 's/^/| /' conftest.$ac_ext >&5
7427
7428ac_header_compiler=no
7429fi
7430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432echo "${ECHO_T}$ac_header_compiler" >&6
7433
7434# Is the header present?
7435echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7437cat >conftest.$ac_ext <<_ACEOF
7438/* confdefs.h.  */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h.  */
7443#include <$ac_header>
7444_ACEOF
7445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7446  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7447  ac_status=$?
7448  grep -v '^ *+' conftest.er1 >conftest.err
7449  rm -f conftest.er1
7450  cat conftest.err >&5
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); } >/dev/null; then
7453  if test -s conftest.err; then
7454    ac_cpp_err=$ac_c_preproc_warn_flag
7455    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7456  else
7457    ac_cpp_err=
7458  fi
7459else
7460  ac_cpp_err=yes
7461fi
7462if test -z "$ac_cpp_err"; then
7463  ac_header_preproc=yes
7464else
7465  echo "$as_me: failed program was:" >&5
7466sed 's/^/| /' conftest.$ac_ext >&5
7467
7468  ac_header_preproc=no
7469fi
7470rm -f conftest.err conftest.$ac_ext
7471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7472echo "${ECHO_T}$ac_header_preproc" >&6
7473
7474# So?  What about this header?
7475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7476  yes:no: )
7477    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7479    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7481    ac_header_preproc=yes
7482    ;;
7483  no:yes:* )
7484    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7486    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7487echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7488    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7490    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7491echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7494    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7496    (
7497      cat <<\_ASBOX
7498## ---------------------------------------------- ##
7499## Report this to orxonox-dev at mail.datacore.ch ##
7500## ---------------------------------------------- ##
7501_ASBOX
7502    ) |
7503      sed "s/^/$as_me: WARNING:     /" >&2
7504    ;;
7505esac
7506echo "$as_me:$LINENO: checking for $ac_header" >&5
7507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  eval "$as_ac_Header=\$ac_header_preproc"
7512fi
7513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7515
7516fi
7517if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518  cat >>confdefs.h <<_ACEOF
7519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520_ACEOF
7521
7522else
7523
7524for ac_header in SDL/SDL_image.h
7525do
7526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527if eval "test \"\${$as_ac_Header+set}\" = set"; then
7528  echo "$as_me:$LINENO: checking for $ac_header" >&5
7529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531  echo $ECHO_N "(cached) $ECHO_C" >&6
7532fi
7533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7535else
7536  # Is the header compilable?
7537echo "$as_me:$LINENO: checking $ac_header usability" >&5
7538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7539cat >conftest.$ac_ext <<_ACEOF
7540/* confdefs.h.  */
7541_ACEOF
7542cat confdefs.h >>conftest.$ac_ext
7543cat >>conftest.$ac_ext <<_ACEOF
7544/* end confdefs.h.  */
7545$ac_includes_default
7546#include <$ac_header>
7547_ACEOF
7548rm -f conftest.$ac_objext
7549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550  (eval $ac_compile) 2>conftest.er1
7551  ac_status=$?
7552  grep -v '^ *+' conftest.er1 >conftest.err
7553  rm -f conftest.er1
7554  cat conftest.err >&5
7555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556  (exit $ac_status); } &&
7557         { ac_try='test -z "$ac_c_werror_flag"
7558                         || test ! -s conftest.err'
7559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560  (eval $ac_try) 2>&5
7561  ac_status=$?
7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563  (exit $ac_status); }; } &&
7564         { ac_try='test -s conftest.$ac_objext'
7565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566  (eval $ac_try) 2>&5
7567  ac_status=$?
7568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569  (exit $ac_status); }; }; then
7570  ac_header_compiler=yes
7571else
7572  echo "$as_me: failed program was:" >&5
7573sed 's/^/| /' conftest.$ac_ext >&5
7574
7575ac_header_compiler=no
7576fi
7577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7578echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7579echo "${ECHO_T}$ac_header_compiler" >&6
7580
7581# Is the header present?
7582echo "$as_me:$LINENO: checking $ac_header presence" >&5
7583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7584cat >conftest.$ac_ext <<_ACEOF
7585/* confdefs.h.  */
7586_ACEOF
7587cat confdefs.h >>conftest.$ac_ext
7588cat >>conftest.$ac_ext <<_ACEOF
7589/* end confdefs.h.  */
7590#include <$ac_header>
7591_ACEOF
7592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7593  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7594  ac_status=$?
7595  grep -v '^ *+' conftest.er1 >conftest.err
7596  rm -f conftest.er1
7597  cat conftest.err >&5
7598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); } >/dev/null; then
7600  if test -s conftest.err; then
7601    ac_cpp_err=$ac_c_preproc_warn_flag
7602    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7603  else
7604    ac_cpp_err=
7605  fi
7606else
7607  ac_cpp_err=yes
7608fi
7609if test -z "$ac_cpp_err"; then
7610  ac_header_preproc=yes
7611else
7612  echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615  ac_header_preproc=no
7616fi
7617rm -f conftest.err conftest.$ac_ext
7618echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7619echo "${ECHO_T}$ac_header_preproc" >&6
7620
7621# So?  What about this header?
7622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7623  yes:no: )
7624    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7626    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7628    ac_header_preproc=yes
7629    ;;
7630  no:yes:* )
7631    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7633    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7634echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7635    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7637    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7638echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7639    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7641    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7643    (
7644      cat <<\_ASBOX
7645## ---------------------------------------------- ##
7646## Report this to orxonox-dev at mail.datacore.ch ##
7647## ---------------------------------------------- ##
7648_ASBOX
7649    ) |
7650      sed "s/^/$as_me: WARNING:     /" >&2
7651    ;;
7652esac
7653echo "$as_me:$LINENO: checking for $ac_header" >&5
7654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7655if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656  echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658  eval "$as_ac_Header=\$ac_header_preproc"
7659fi
7660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7662
7663fi
7664if test `eval echo '${'$as_ac_Header'}'` = yes; then
7665  cat >>confdefs.h <<_ACEOF
7666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7667_ACEOF
7668
7669else
7670  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
7671echo "$as_me: error: SDL_image header not found." >&2;}
7672   { (exit 1); exit 1; }; }
7673fi
7674
7675done
7676
7677fi
7678
7679done
7680
7681# checking for SDL_image-lib
7682echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
7683echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
7684if test "${ac_cv_lib_SDL_image_main+set}" = set; then
7685  echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687  ac_check_lib_save_LIBS=$LIBS
7688LIBS="-lSDL_image  $LIBS"
7689cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h.  */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h.  */
7695
7696
7697int
7698main ()
7699{
7700main ();
7701  ;
7702  return 0;
7703}
7704_ACEOF
7705rm -f conftest.$ac_objext conftest$ac_exeext
7706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707  (eval $ac_link) 2>conftest.er1
7708  ac_status=$?
7709  grep -v '^ *+' conftest.er1 >conftest.err
7710  rm -f conftest.er1
7711  cat conftest.err >&5
7712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713  (exit $ac_status); } &&
7714         { ac_try='test -z "$ac_c_werror_flag"
7715                         || test ! -s conftest.err'
7716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717  (eval $ac_try) 2>&5
7718  ac_status=$?
7719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720  (exit $ac_status); }; } &&
7721         { ac_try='test -s conftest$ac_exeext'
7722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723  (eval $ac_try) 2>&5
7724  ac_status=$?
7725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726  (exit $ac_status); }; }; then
7727  ac_cv_lib_SDL_image_main=yes
7728else
7729  echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732ac_cv_lib_SDL_image_main=no
7733fi
7734rm -f conftest.err conftest.$ac_objext \
7735      conftest$ac_exeext conftest.$ac_ext
7736LIBS=$ac_check_lib_save_LIBS
7737fi
7738echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
7739echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
7740if test $ac_cv_lib_SDL_image_main = yes; then
7741  FOUND_SDL_image=yes
7742fi
7743
7744   if test x$FOUND_SDL_image = xyes ; then
7745     LIBS="$LIBS -lSDL_image"
7746   else
7747      echo "------------------"
7748      echo "SDL_image library not found."
7749      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
7750      echo "------------------"
7751      exit -1
7752   fi
7753
7754#-----#
7755# ogg #
7756#-----#
7757# checking for ogg-headers
7758
7759for ac_header in ogg/ogg.h
7760do
7761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7762if eval "test \"\${$as_ac_Header+set}\" = set"; then
7763  echo "$as_me:$LINENO: checking for $ac_header" >&5
7764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7765if eval "test \"\${$as_ac_Header+set}\" = set"; then
7766  echo $ECHO_N "(cached) $ECHO_C" >&6
7767fi
7768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7770else
7771  # Is the header compilable?
7772echo "$as_me:$LINENO: checking $ac_header usability" >&5
7773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7774cat >conftest.$ac_ext <<_ACEOF
7775/* confdefs.h.  */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
7779/* end confdefs.h.  */
7780$ac_includes_default
7781#include <$ac_header>
7782_ACEOF
7783rm -f conftest.$ac_objext
7784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785  (eval $ac_compile) 2>conftest.er1
7786  ac_status=$?
7787  grep -v '^ *+' conftest.er1 >conftest.err
7788  rm -f conftest.er1
7789  cat conftest.err >&5
7790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791  (exit $ac_status); } &&
7792         { ac_try='test -z "$ac_c_werror_flag"
7793                         || test ! -s conftest.err'
7794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795  (eval $ac_try) 2>&5
7796  ac_status=$?
7797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798  (exit $ac_status); }; } &&
7799         { ac_try='test -s conftest.$ac_objext'
7800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801  (eval $ac_try) 2>&5
7802  ac_status=$?
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); }; }; then
7805  ac_header_compiler=yes
7806else
7807  echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
7809
7810ac_header_compiler=no
7811fi
7812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7814echo "${ECHO_T}$ac_header_compiler" >&6
7815
7816# Is the header present?
7817echo "$as_me:$LINENO: checking $ac_header presence" >&5
7818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7819cat >conftest.$ac_ext <<_ACEOF
7820/* confdefs.h.  */
7821_ACEOF
7822cat confdefs.h >>conftest.$ac_ext
7823cat >>conftest.$ac_ext <<_ACEOF
7824/* end confdefs.h.  */
7825#include <$ac_header>
7826_ACEOF
7827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7829  ac_status=$?
7830  grep -v '^ *+' conftest.er1 >conftest.err
7831  rm -f conftest.er1
7832  cat conftest.err >&5
7833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834  (exit $ac_status); } >/dev/null; then
7835  if test -s conftest.err; then
7836    ac_cpp_err=$ac_c_preproc_warn_flag
7837    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7838  else
7839    ac_cpp_err=
7840  fi
7841else
7842  ac_cpp_err=yes
7843fi
7844if test -z "$ac_cpp_err"; then
7845  ac_header_preproc=yes
7846else
7847  echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850  ac_header_preproc=no
7851fi
7852rm -f conftest.err conftest.$ac_ext
7853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7854echo "${ECHO_T}$ac_header_preproc" >&6
7855
7856# So?  What about this header?
7857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7858  yes:no: )
7859    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7861    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7863    ac_header_preproc=yes
7864    ;;
7865  no:yes:* )
7866    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7868    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7869echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7870    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7872    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7873echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7876    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7878    (
7879      cat <<\_ASBOX
7880## ---------------------------------------------- ##
7881## Report this to orxonox-dev at mail.datacore.ch ##
7882## ---------------------------------------------- ##
7883_ASBOX
7884    ) |
7885      sed "s/^/$as_me: WARNING:     /" >&2
7886    ;;
7887esac
7888echo "$as_me:$LINENO: checking for $ac_header" >&5
7889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7890if eval "test \"\${$as_ac_Header+set}\" = set"; then
7891  echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893  eval "$as_ac_Header=\$ac_header_preproc"
7894fi
7895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7897
7898fi
7899if test `eval echo '${'$as_ac_Header'}'` = yes; then
7900  cat >>confdefs.h <<_ACEOF
7901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7902_ACEOF
7903
7904else
7905  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
7906echo "$as_me: error: cannot find ogg header." >&2;}
7907   { (exit 1); exit 1; }; }
7908fi
7909
7910done
7911
7912# checking for ogg-lib
7913  echo "$as_me:$LINENO: checking for main in -logg" >&5
7914echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
7915if test "${ac_cv_lib_ogg_main+set}" = set; then
7916  echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918  ac_check_lib_save_LIBS=$LIBS
7919LIBS="-logg  $LIBS"
7920cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h.  */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h.  */
7926
7927
7928int
7929main ()
7930{
7931main ();
7932  ;
7933  return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext conftest$ac_exeext
7937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7938  (eval $ac_link) 2>conftest.er1
7939  ac_status=$?
7940  grep -v '^ *+' conftest.er1 >conftest.err
7941  rm -f conftest.er1
7942  cat conftest.err >&5
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); } &&
7945         { ac_try='test -z "$ac_c_werror_flag"
7946                         || test ! -s conftest.err'
7947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948  (eval $ac_try) 2>&5
7949  ac_status=$?
7950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); }; } &&
7952         { ac_try='test -s conftest$ac_exeext'
7953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954  (eval $ac_try) 2>&5
7955  ac_status=$?
7956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957  (exit $ac_status); }; }; then
7958  ac_cv_lib_ogg_main=yes
7959else
7960  echo "$as_me: failed program was:" >&5
7961sed 's/^/| /' conftest.$ac_ext >&5
7962
7963ac_cv_lib_ogg_main=no
7964fi
7965rm -f conftest.err conftest.$ac_objext \
7966      conftest$ac_exeext conftest.$ac_ext
7967LIBS=$ac_check_lib_save_LIBS
7968fi
7969echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
7970echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
7971if test $ac_cv_lib_ogg_main = yes; then
7972  FOUND_ogg=yes
7973fi
7974
7975     if test x$FOUND_ogg = xyes ; then
7976       LIBS="$LIBS -logg"
7977     else
7978        echo "------------------"
7979        echo "ogg library not found."
7980        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7981        echo "------------------"
7982        exit -1
7983     fi
7984
7985#--------#
7986# vorbis #
7987#--------#
7988# checking for vorbis-lib
7989  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
7990echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
7991if test "${ac_cv_lib_vorbis_main+set}" = set; then
7992  echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994  ac_check_lib_save_LIBS=$LIBS
7995LIBS="-lvorbis  $LIBS"
7996cat >conftest.$ac_ext <<_ACEOF
7997/* confdefs.h.  */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h.  */
8002
8003
8004int
8005main ()
8006{
8007main ();
8008  ;
8009  return 0;
8010}
8011_ACEOF
8012rm -f conftest.$ac_objext conftest$ac_exeext
8013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014  (eval $ac_link) 2>conftest.er1
8015  ac_status=$?
8016  grep -v '^ *+' conftest.er1 >conftest.err
8017  rm -f conftest.er1
8018  cat conftest.err >&5
8019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020  (exit $ac_status); } &&
8021         { ac_try='test -z "$ac_c_werror_flag"
8022                         || test ! -s conftest.err'
8023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024  (eval $ac_try) 2>&5
8025  ac_status=$?
8026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027  (exit $ac_status); }; } &&
8028         { ac_try='test -s conftest$ac_exeext'
8029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030  (eval $ac_try) 2>&5
8031  ac_status=$?
8032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033  (exit $ac_status); }; }; then
8034  ac_cv_lib_vorbis_main=yes
8035else
8036  echo "$as_me: failed program was:" >&5
8037sed 's/^/| /' conftest.$ac_ext >&5
8038
8039ac_cv_lib_vorbis_main=no
8040fi
8041rm -f conftest.err conftest.$ac_objext \
8042      conftest$ac_exeext conftest.$ac_ext
8043LIBS=$ac_check_lib_save_LIBS
8044fi
8045echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
8046echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
8047if test $ac_cv_lib_vorbis_main = yes; then
8048  FOUND_vorbis=yes
8049fi
8050
8051     if test x$FOUND_vorbis = xyes ; then
8052       LIBS="$LIBS -lvorbis"
8053     else
8054        echo "------------------"
8055        echo "vorbis library not found."
8056        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8057        echo "------------------"
8058        exit -1
8059     fi
8060
8061#------------#
8062# vorbisfile #
8063#------------#
8064# checking for vorbis-headers
8065
8066for ac_header in vorbis/vorbisfile.h
8067do
8068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8069if eval "test \"\${$as_ac_Header+set}\" = set"; then
8070  echo "$as_me:$LINENO: checking for $ac_header" >&5
8071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8072if eval "test \"\${$as_ac_Header+set}\" = set"; then
8073  echo $ECHO_N "(cached) $ECHO_C" >&6
8074fi
8075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8077else
8078  # Is the header compilable?
8079echo "$as_me:$LINENO: checking $ac_header usability" >&5
8080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8081cat >conftest.$ac_ext <<_ACEOF
8082/* confdefs.h.  */
8083_ACEOF
8084cat confdefs.h >>conftest.$ac_ext
8085cat >>conftest.$ac_ext <<_ACEOF
8086/* end confdefs.h.  */
8087$ac_includes_default
8088#include <$ac_header>
8089_ACEOF
8090rm -f conftest.$ac_objext
8091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8092  (eval $ac_compile) 2>conftest.er1
8093  ac_status=$?
8094  grep -v '^ *+' conftest.er1 >conftest.err
8095  rm -f conftest.er1
8096  cat conftest.err >&5
8097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098  (exit $ac_status); } &&
8099         { ac_try='test -z "$ac_c_werror_flag"
8100                         || test ! -s conftest.err'
8101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102  (eval $ac_try) 2>&5
8103  ac_status=$?
8104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105  (exit $ac_status); }; } &&
8106         { ac_try='test -s conftest.$ac_objext'
8107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108  (eval $ac_try) 2>&5
8109  ac_status=$?
8110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111  (exit $ac_status); }; }; then
8112  ac_header_compiler=yes
8113else
8114  echo "$as_me: failed program was:" >&5
8115sed 's/^/| /' conftest.$ac_ext >&5
8116
8117ac_header_compiler=no
8118fi
8119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8121echo "${ECHO_T}$ac_header_compiler" >&6
8122
8123# Is the header present?
8124echo "$as_me:$LINENO: checking $ac_header presence" >&5
8125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8126cat >conftest.$ac_ext <<_ACEOF
8127/* confdefs.h.  */
8128_ACEOF
8129cat confdefs.h >>conftest.$ac_ext
8130cat >>conftest.$ac_ext <<_ACEOF
8131/* end confdefs.h.  */
8132#include <$ac_header>
8133_ACEOF
8134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8135  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8136  ac_status=$?
8137  grep -v '^ *+' conftest.er1 >conftest.err
8138  rm -f conftest.er1
8139  cat conftest.err >&5
8140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141  (exit $ac_status); } >/dev/null; then
8142  if test -s conftest.err; then
8143    ac_cpp_err=$ac_c_preproc_warn_flag
8144    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8145  else
8146    ac_cpp_err=
8147  fi
8148else
8149  ac_cpp_err=yes
8150fi
8151if test -z "$ac_cpp_err"; then
8152  ac_header_preproc=yes
8153else
8154  echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
8157  ac_header_preproc=no
8158fi
8159rm -f conftest.err conftest.$ac_ext
8160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8161echo "${ECHO_T}$ac_header_preproc" >&6
8162
8163# So?  What about this header?
8164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8165  yes:no: )
8166    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8168    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8170    ac_header_preproc=yes
8171    ;;
8172  no:yes:* )
8173    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8175    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8176echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8177    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8179    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8180echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8181    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8183    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8185    (
8186      cat <<\_ASBOX
8187## ---------------------------------------------- ##
8188## Report this to orxonox-dev at mail.datacore.ch ##
8189## ---------------------------------------------- ##
8190_ASBOX
8191    ) |
8192      sed "s/^/$as_me: WARNING:     /" >&2
8193    ;;
8194esac
8195echo "$as_me:$LINENO: checking for $ac_header" >&5
8196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8197if eval "test \"\${$as_ac_Header+set}\" = set"; then
8198  echo $ECHO_N "(cached) $ECHO_C" >&6
8199else
8200  eval "$as_ac_Header=\$ac_header_preproc"
8201fi
8202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8204
8205fi
8206if test `eval echo '${'$as_ac_Header'}'` = yes; then
8207  cat >>confdefs.h <<_ACEOF
8208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8209_ACEOF
8210
8211else
8212  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8213echo "$as_me: error: cannot find vorbisfile header." >&2;}
8214   { (exit 1); exit 1; }; }
8215fi
8216
8217done
8218
8219# checking for vorbisfile-lib
8220  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8221echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8222if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8223  echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225  ac_check_lib_save_LIBS=$LIBS
8226LIBS="-lvorbisfile  $LIBS"
8227cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h.  */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h.  */
8233
8234
8235int
8236main ()
8237{
8238main ();
8239  ;
8240  return 0;
8241}
8242_ACEOF
8243rm -f conftest.$ac_objext conftest$ac_exeext
8244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245  (eval $ac_link) 2>conftest.er1
8246  ac_status=$?
8247  grep -v '^ *+' conftest.er1 >conftest.err
8248  rm -f conftest.er1
8249  cat conftest.err >&5
8250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251  (exit $ac_status); } &&
8252         { ac_try='test -z "$ac_c_werror_flag"
8253                         || test ! -s conftest.err'
8254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255  (eval $ac_try) 2>&5
8256  ac_status=$?
8257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258  (exit $ac_status); }; } &&
8259         { ac_try='test -s conftest$ac_exeext'
8260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261  (eval $ac_try) 2>&5
8262  ac_status=$?
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); }; }; then
8265  ac_cv_lib_vorbisfile_main=yes
8266else
8267  echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
8270ac_cv_lib_vorbisfile_main=no
8271fi
8272rm -f conftest.err conftest.$ac_objext \
8273      conftest$ac_exeext conftest.$ac_ext
8274LIBS=$ac_check_lib_save_LIBS
8275fi
8276echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8277echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8278if test $ac_cv_lib_vorbisfile_main = yes; then
8279  FOUND_vorbisfile=yes
8280fi
8281
8282     if test x$FOUND_vorbisfile = xyes ; then
8283       LIBS="$LIBS -lvorbisfile"
8284     else
8285        echo "------------------"
8286        echo "vorbisfile library not found."
8287        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8288        echo "------------------"
8289        exit -1
8290     fi
8291
8292#-----#
8293# GTK #
8294#-----#
8295if test x$def_gtk = xyes; then
8296        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
8297        echo "$as_me:$LINENO: checking for gtk2.0" >&5
8298echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
8299        if `$PKG_CONFIG --exists gtk+-2.0`; then
8300                echo "yes"
8301                have_gtk2=yes
8302                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8303                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8304
8305cat >>confdefs.h <<_ACEOF
8306#define HAVE_GTK2 1
8307_ACEOF
8308
8309                if test $DEBUG -ge 3; then
8310                 echo "cflags: $GTK2_CFLAGS"
8311                 echo "libs: $GTK2_LIBS"
8312                fi
8313        else
8314                echo "no"
8315        fi
8316
8317fi
8318
8319
8320
8321
8322if test x$have_gtk2 = xyes; then
8323  HAVE_GTK2_TRUE=
8324  HAVE_GTK2_FALSE='#'
8325else
8326  HAVE_GTK2_TRUE='#'
8327  HAVE_GTK2_FALSE=
8328fi
8329
8330
8331#---------#
8332# libcURL #
8333#---------#
8334if test x$def_curl = xyes; then
8335
8336
8337for ac_header in curl/curl.h
8338do
8339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8340if eval "test \"\${$as_ac_Header+set}\" = set"; then
8341  echo "$as_me:$LINENO: checking for $ac_header" >&5
8342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8343if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344  echo $ECHO_N "(cached) $ECHO_C" >&6
8345fi
8346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8348else
8349  # Is the header compilable?
8350echo "$as_me:$LINENO: checking $ac_header usability" >&5
8351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8352cat >conftest.$ac_ext <<_ACEOF
8353/* confdefs.h.  */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h.  */
8358$ac_includes_default
8359#include <$ac_header>
8360_ACEOF
8361rm -f conftest.$ac_objext
8362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363  (eval $ac_compile) 2>conftest.er1
8364  ac_status=$?
8365  grep -v '^ *+' conftest.er1 >conftest.err
8366  rm -f conftest.er1
8367  cat conftest.err >&5
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); } &&
8370         { ac_try='test -z "$ac_c_werror_flag"
8371                         || test ! -s conftest.err'
8372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373  (eval $ac_try) 2>&5
8374  ac_status=$?
8375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376  (exit $ac_status); }; } &&
8377         { ac_try='test -s conftest.$ac_objext'
8378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379  (eval $ac_try) 2>&5
8380  ac_status=$?
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); }; }; then
8383  ac_header_compiler=yes
8384else
8385  echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388ac_header_compiler=no
8389fi
8390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8392echo "${ECHO_T}$ac_header_compiler" >&6
8393
8394# Is the header present?
8395echo "$as_me:$LINENO: checking $ac_header presence" >&5
8396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8397cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h.  */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h.  */
8403#include <$ac_header>
8404_ACEOF
8405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8407  ac_status=$?
8408  grep -v '^ *+' conftest.er1 >conftest.err
8409  rm -f conftest.er1
8410  cat conftest.err >&5
8411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412  (exit $ac_status); } >/dev/null; then
8413  if test -s conftest.err; then
8414    ac_cpp_err=$ac_c_preproc_warn_flag
8415    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8416  else
8417    ac_cpp_err=
8418  fi
8419else
8420  ac_cpp_err=yes
8421fi
8422if test -z "$ac_cpp_err"; then
8423  ac_header_preproc=yes
8424else
8425  echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428  ac_header_preproc=no
8429fi
8430rm -f conftest.err conftest.$ac_ext
8431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8432echo "${ECHO_T}$ac_header_preproc" >&6
8433
8434# So?  What about this header?
8435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8436  yes:no: )
8437    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8439    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8441    ac_header_preproc=yes
8442    ;;
8443  no:yes:* )
8444    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8446    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8447echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8448    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8450    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8451echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8452    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8454    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8456    (
8457      cat <<\_ASBOX
8458## ---------------------------------------------- ##
8459## Report this to orxonox-dev at mail.datacore.ch ##
8460## ---------------------------------------------- ##
8461_ASBOX
8462    ) |
8463      sed "s/^/$as_me: WARNING:     /" >&2
8464    ;;
8465esac
8466echo "$as_me:$LINENO: checking for $ac_header" >&5
8467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8468if eval "test \"\${$as_ac_Header+set}\" = set"; then
8469  echo $ECHO_N "(cached) $ECHO_C" >&6
8470else
8471  eval "$as_ac_Header=\$ac_header_preproc"
8472fi
8473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8475
8476fi
8477if test `eval echo '${'$as_ac_Header'}'` = yes; then
8478  cat >>confdefs.h <<_ACEOF
8479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8480_ACEOF
8481 curlHeader="yes"
8482else
8483  curlHeader="no"
8484fi
8485
8486done
8487
8488 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
8489echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
8490if test "${ac_cv_lib_curl_main+set}" = set; then
8491  echo $ECHO_N "(cached) $ECHO_C" >&6
8492else
8493  ac_check_lib_save_LIBS=$LIBS
8494LIBS="-lcurl  $LIBS"
8495cat >conftest.$ac_ext <<_ACEOF
8496/* confdefs.h.  */
8497_ACEOF
8498cat confdefs.h >>conftest.$ac_ext
8499cat >>conftest.$ac_ext <<_ACEOF
8500/* end confdefs.h.  */
8501
8502
8503int
8504main ()
8505{
8506main ();
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext conftest$ac_exeext
8512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8513  (eval $ac_link) 2>conftest.er1
8514  ac_status=$?
8515  grep -v '^ *+' conftest.er1 >conftest.err
8516  rm -f conftest.er1
8517  cat conftest.err >&5
8518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519  (exit $ac_status); } &&
8520         { ac_try='test -z "$ac_c_werror_flag"
8521                         || test ! -s conftest.err'
8522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523  (eval $ac_try) 2>&5
8524  ac_status=$?
8525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526  (exit $ac_status); }; } &&
8527         { ac_try='test -s conftest$ac_exeext'
8528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529  (eval $ac_try) 2>&5
8530  ac_status=$?
8531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532  (exit $ac_status); }; }; then
8533  ac_cv_lib_curl_main=yes
8534else
8535  echo "$as_me: failed program was:" >&5
8536sed 's/^/| /' conftest.$ac_ext >&5
8537
8538ac_cv_lib_curl_main=no
8539fi
8540rm -f conftest.err conftest.$ac_objext \
8541      conftest$ac_exeext conftest.$ac_ext
8542LIBS=$ac_check_lib_save_LIBS
8543fi
8544echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
8545echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
8546if test $ac_cv_lib_curl_main = yes; then
8547  FOUND_curl=yes
8548fi
8549
8550 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
8551  have_curl=yes
8552  CURL_LIBS=`curl-config --libs`
8553  CURLCFLAGS=`curl-config --cflags`
8554
8555cat >>confdefs.h <<_ACEOF
8556#define HAVE_CURL 1
8557_ACEOF
8558
8559 else
8560  have_curl=no
8561 fi
8562
8563fi
8564
8565
8566
8567
8568if test x$have_curl = xyes; then
8569  HAVE_CURL_TRUE=
8570  HAVE_CURL_FALSE='#'
8571else
8572  HAVE_CURL_TRUE='#'
8573  HAVE_CURL_FALSE=
8574fi
8575
8576
8577#--------#
8578# efence #
8579#--------#
8580if test x$def_efence = xyes ; then
8581  echo "$as_me:$LINENO: checking for main in -lefence" >&5
8582echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8583if test "${ac_cv_lib_efence_main+set}" = set; then
8584  echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586  ac_check_lib_save_LIBS=$LIBS
8587LIBS="-lefence  $LIBS"
8588cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h.  */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h.  */
8594
8595
8596int
8597main ()
8598{
8599main ();
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604rm -f conftest.$ac_objext conftest$ac_exeext
8605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606  (eval $ac_link) 2>conftest.er1
8607  ac_status=$?
8608  grep -v '^ *+' conftest.er1 >conftest.err
8609  rm -f conftest.er1
8610  cat conftest.err >&5
8611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612  (exit $ac_status); } &&
8613         { ac_try='test -z "$ac_c_werror_flag"
8614                         || test ! -s conftest.err'
8615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616  (eval $ac_try) 2>&5
8617  ac_status=$?
8618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619  (exit $ac_status); }; } &&
8620         { ac_try='test -s conftest$ac_exeext'
8621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622  (eval $ac_try) 2>&5
8623  ac_status=$?
8624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625  (exit $ac_status); }; }; then
8626  ac_cv_lib_efence_main=yes
8627else
8628  echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631ac_cv_lib_efence_main=no
8632fi
8633rm -f conftest.err conftest.$ac_objext \
8634      conftest$ac_exeext conftest.$ac_ext
8635LIBS=$ac_check_lib_save_LIBS
8636fi
8637echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8638echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8639if test $ac_cv_lib_efence_main = yes; then
8640  FOUND_efence=yes
8641fi
8642
8643   if test x$FOUND_efence = xyes ; then
8644      LIBS="$LIBS -lefence"
8645   fi
8646
8647fi
8648
8649# FIXME: Replace `main' with a function in `-lm':
8650
8651echo "$as_me:$LINENO: checking for main in -lm" >&5
8652echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8653if test "${ac_cv_lib_m_main+set}" = set; then
8654  echo $ECHO_N "(cached) $ECHO_C" >&6
8655else
8656  ac_check_lib_save_LIBS=$LIBS
8657LIBS="-lm  $LIBS"
8658cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h.  */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h.  */
8664
8665
8666int
8667main ()
8668{
8669main ();
8670  ;
8671  return 0;
8672}
8673_ACEOF
8674rm -f conftest.$ac_objext conftest$ac_exeext
8675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676  (eval $ac_link) 2>conftest.er1
8677  ac_status=$?
8678  grep -v '^ *+' conftest.er1 >conftest.err
8679  rm -f conftest.er1
8680  cat conftest.err >&5
8681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682  (exit $ac_status); } &&
8683         { ac_try='test -z "$ac_c_werror_flag"
8684                         || test ! -s conftest.err'
8685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686  (eval $ac_try) 2>&5
8687  ac_status=$?
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); }; } &&
8690         { ac_try='test -s conftest$ac_exeext'
8691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692  (eval $ac_try) 2>&5
8693  ac_status=$?
8694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695  (exit $ac_status); }; }; then
8696  ac_cv_lib_m_main=yes
8697else
8698  echo "$as_me: failed program was:" >&5
8699sed 's/^/| /' conftest.$ac_ext >&5
8700
8701ac_cv_lib_m_main=no
8702fi
8703rm -f conftest.err conftest.$ac_objext \
8704      conftest$ac_exeext conftest.$ac_ext
8705LIBS=$ac_check_lib_save_LIBS
8706fi
8707echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8708echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8709if test $ac_cv_lib_m_main = yes; then
8710  cat >>confdefs.h <<_ACEOF
8711#define HAVE_LIBM 1
8712_ACEOF
8713
8714  LIBS="-lm $LIBS"
8715
8716fi
8717
8718
8719
8720# Checks for header files.
8721echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8722echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8723if test "${ac_cv_header_stdc+set}" = set; then
8724  echo $ECHO_N "(cached) $ECHO_C" >&6
8725else
8726  cat >conftest.$ac_ext <<_ACEOF
8727/* confdefs.h.  */
8728_ACEOF
8729cat confdefs.h >>conftest.$ac_ext
8730cat >>conftest.$ac_ext <<_ACEOF
8731/* end confdefs.h.  */
8732#include <stdlib.h>
8733#include <stdarg.h>
8734#include <string.h>
8735#include <float.h>
8736
8737int
8738main ()
8739{
8740
8741  ;
8742  return 0;
8743}
8744_ACEOF
8745rm -f conftest.$ac_objext
8746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747  (eval $ac_compile) 2>conftest.er1
8748  ac_status=$?
8749  grep -v '^ *+' conftest.er1 >conftest.err
8750  rm -f conftest.er1
8751  cat conftest.err >&5
8752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753  (exit $ac_status); } &&
8754         { ac_try='test -z "$ac_c_werror_flag"
8755                         || test ! -s conftest.err'
8756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757  (eval $ac_try) 2>&5
8758  ac_status=$?
8759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760  (exit $ac_status); }; } &&
8761         { ac_try='test -s conftest.$ac_objext'
8762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763  (eval $ac_try) 2>&5
8764  ac_status=$?
8765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766  (exit $ac_status); }; }; then
8767  ac_cv_header_stdc=yes
8768else
8769  echo "$as_me: failed program was:" >&5
8770sed 's/^/| /' conftest.$ac_ext >&5
8771
8772ac_cv_header_stdc=no
8773fi
8774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8775
8776if test $ac_cv_header_stdc = yes; then
8777  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8778  cat >conftest.$ac_ext <<_ACEOF
8779/* confdefs.h.  */
8780_ACEOF
8781cat confdefs.h >>conftest.$ac_ext
8782cat >>conftest.$ac_ext <<_ACEOF
8783/* end confdefs.h.  */
8784#include <string.h>
8785
8786_ACEOF
8787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788  $EGREP "memchr" >/dev/null 2>&1; then
8789  :
8790else
8791  ac_cv_header_stdc=no
8792fi
8793rm -f conftest*
8794
8795fi
8796
8797if test $ac_cv_header_stdc = yes; then
8798  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8799  cat >conftest.$ac_ext <<_ACEOF
8800/* confdefs.h.  */
8801_ACEOF
8802cat confdefs.h >>conftest.$ac_ext
8803cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h.  */
8805#include <stdlib.h>
8806
8807_ACEOF
8808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809  $EGREP "free" >/dev/null 2>&1; then
8810  :
8811else
8812  ac_cv_header_stdc=no
8813fi
8814rm -f conftest*
8815
8816fi
8817
8818if test $ac_cv_header_stdc = yes; then
8819  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8820  if test "$cross_compiling" = yes; then
8821  :
8822else
8823  cat >conftest.$ac_ext <<_ACEOF
8824/* confdefs.h.  */
8825_ACEOF
8826cat confdefs.h >>conftest.$ac_ext
8827cat >>conftest.$ac_ext <<_ACEOF
8828/* end confdefs.h.  */
8829#include <ctype.h>
8830#if ((' ' & 0x0FF) == 0x020)
8831# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8832# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8833#else
8834# define ISLOWER(c) \
8835                   (('a' <= (c) && (c) <= 'i') \
8836                     || ('j' <= (c) && (c) <= 'r') \
8837                     || ('s' <= (c) && (c) <= 'z'))
8838# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8839#endif
8840
8841#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8842int
8843main ()
8844{
8845  int i;
8846  for (i = 0; i < 256; i++)
8847    if (XOR (islower (i), ISLOWER (i))
8848        || toupper (i) != TOUPPER (i))
8849      exit(2);
8850  exit (0);
8851}
8852_ACEOF
8853rm -f conftest$ac_exeext
8854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855  (eval $ac_link) 2>&5
8856  ac_status=$?
8857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860  (eval $ac_try) 2>&5
8861  ac_status=$?
8862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863  (exit $ac_status); }; }; then
8864  :
8865else
8866  echo "$as_me: program exited with status $ac_status" >&5
8867echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870( exit $ac_status )
8871ac_cv_header_stdc=no
8872fi
8873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8874fi
8875fi
8876fi
8877echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8878echo "${ECHO_T}$ac_cv_header_stdc" >&6
8879if test $ac_cv_header_stdc = yes; then
8880
8881cat >>confdefs.h <<\_ACEOF
8882#define STDC_HEADERS 1
8883_ACEOF
8884
8885fi
8886
8887
8888
8889for ac_header in stdlib.h string.h
8890do
8891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8892if eval "test \"\${$as_ac_Header+set}\" = set"; then
8893  echo "$as_me:$LINENO: checking for $ac_header" >&5
8894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8895if eval "test \"\${$as_ac_Header+set}\" = set"; then
8896  echo $ECHO_N "(cached) $ECHO_C" >&6
8897fi
8898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900else
8901  # Is the header compilable?
8902echo "$as_me:$LINENO: checking $ac_header usability" >&5
8903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8904cat >conftest.$ac_ext <<_ACEOF
8905/* confdefs.h.  */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
8909/* end confdefs.h.  */
8910$ac_includes_default
8911#include <$ac_header>
8912_ACEOF
8913rm -f conftest.$ac_objext
8914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915  (eval $ac_compile) 2>conftest.er1
8916  ac_status=$?
8917  grep -v '^ *+' conftest.er1 >conftest.err
8918  rm -f conftest.er1
8919  cat conftest.err >&5
8920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921  (exit $ac_status); } &&
8922         { ac_try='test -z "$ac_c_werror_flag"
8923                         || test ! -s conftest.err'
8924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925  (eval $ac_try) 2>&5
8926  ac_status=$?
8927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928  (exit $ac_status); }; } &&
8929         { ac_try='test -s conftest.$ac_objext'
8930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931  (eval $ac_try) 2>&5
8932  ac_status=$?
8933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); }; }; then
8935  ac_header_compiler=yes
8936else
8937  echo "$as_me: failed program was:" >&5
8938sed 's/^/| /' conftest.$ac_ext >&5
8939
8940ac_header_compiler=no
8941fi
8942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8944echo "${ECHO_T}$ac_header_compiler" >&6
8945
8946# Is the header present?
8947echo "$as_me:$LINENO: checking $ac_header presence" >&5
8948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8949cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h.  */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h.  */
8955#include <$ac_header>
8956_ACEOF
8957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8958  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8959  ac_status=$?
8960  grep -v '^ *+' conftest.er1 >conftest.err
8961  rm -f conftest.er1
8962  cat conftest.err >&5
8963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964  (exit $ac_status); } >/dev/null; then
8965  if test -s conftest.err; then
8966    ac_cpp_err=$ac_c_preproc_warn_flag
8967    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8968  else
8969    ac_cpp_err=
8970  fi
8971else
8972  ac_cpp_err=yes
8973fi
8974if test -z "$ac_cpp_err"; then
8975  ac_header_preproc=yes
8976else
8977  echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980  ac_header_preproc=no
8981fi
8982rm -f conftest.err conftest.$ac_ext
8983echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8984echo "${ECHO_T}$ac_header_preproc" >&6
8985
8986# So?  What about this header?
8987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8988  yes:no: )
8989    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8991    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8993    ac_header_preproc=yes
8994    ;;
8995  no:yes:* )
8996    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8998    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8999echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9000    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9002    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9003echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9004    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9006    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9008    (
9009      cat <<\_ASBOX
9010## ---------------------------------------------- ##
9011## Report this to orxonox-dev at mail.datacore.ch ##
9012## ---------------------------------------------- ##
9013_ASBOX
9014    ) |
9015      sed "s/^/$as_me: WARNING:     /" >&2
9016    ;;
9017esac
9018echo "$as_me:$LINENO: checking for $ac_header" >&5
9019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9020if eval "test \"\${$as_ac_Header+set}\" = set"; then
9021  echo $ECHO_N "(cached) $ECHO_C" >&6
9022else
9023  eval "$as_ac_Header=\$ac_header_preproc"
9024fi
9025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9027
9028fi
9029if test `eval echo '${'$as_ac_Header'}'` = yes; then
9030  cat >>confdefs.h <<_ACEOF
9031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9032_ACEOF
9033
9034fi
9035
9036done
9037
9038
9039# Checks for typedefs, structures, and compiler characteristics.
9040echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9041echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9042if test "${ac_cv_header_stdbool_h+set}" = set; then
9043  echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045  cat >conftest.$ac_ext <<_ACEOF
9046/* confdefs.h.  */
9047_ACEOF
9048cat confdefs.h >>conftest.$ac_ext
9049cat >>conftest.$ac_ext <<_ACEOF
9050/* end confdefs.h.  */
9051
9052#include <stdbool.h>
9053#ifndef bool
9054# error bool is not defined
9055#endif
9056#ifndef false
9057# error false is not defined
9058#endif
9059#if false
9060# error false is not 0
9061#endif
9062#ifndef true
9063# error true is not defined
9064#endif
9065#if true != 1
9066# error true is not 1
9067#endif
9068#ifndef __bool_true_false_are_defined
9069# error __bool_true_false_are_defined is not defined
9070#endif
9071
9072        struct s { _Bool s: 1; _Bool t; } s;
9073
9074        char a[true == 1 ? 1 : -1];
9075        char b[false == 0 ? 1 : -1];
9076        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9077        char d[(bool) -0.5 == true ? 1 : -1];
9078        bool e = &s;
9079        char f[(_Bool) -0.0 == false ? 1 : -1];
9080        char g[true];
9081        char h[sizeof (_Bool)];
9082        char i[sizeof s.t];
9083
9084int
9085main ()
9086{
9087 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9088  ;
9089  return 0;
9090}
9091_ACEOF
9092rm -f conftest.$ac_objext
9093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094  (eval $ac_compile) 2>conftest.er1
9095  ac_status=$?
9096  grep -v '^ *+' conftest.er1 >conftest.err
9097  rm -f conftest.er1
9098  cat conftest.err >&5
9099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100  (exit $ac_status); } &&
9101         { ac_try='test -z "$ac_c_werror_flag"
9102                         || test ! -s conftest.err'
9103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104  (eval $ac_try) 2>&5
9105  ac_status=$?
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); }; } &&
9108         { ac_try='test -s conftest.$ac_objext'
9109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110  (eval $ac_try) 2>&5
9111  ac_status=$?
9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); }; }; then
9114  ac_cv_header_stdbool_h=yes
9115else
9116  echo "$as_me: failed program was:" >&5
9117sed 's/^/| /' conftest.$ac_ext >&5
9118
9119ac_cv_header_stdbool_h=no
9120fi
9121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9122fi
9123echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9124echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9125echo "$as_me:$LINENO: checking for _Bool" >&5
9126echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9127if test "${ac_cv_type__Bool+set}" = set; then
9128  echo $ECHO_N "(cached) $ECHO_C" >&6
9129else
9130  cat >conftest.$ac_ext <<_ACEOF
9131/* confdefs.h.  */
9132_ACEOF
9133cat confdefs.h >>conftest.$ac_ext
9134cat >>conftest.$ac_ext <<_ACEOF
9135/* end confdefs.h.  */
9136$ac_includes_default
9137int
9138main ()
9139{
9140if ((_Bool *) 0)
9141  return 0;
9142if (sizeof (_Bool))
9143  return 0;
9144  ;
9145  return 0;
9146}
9147_ACEOF
9148rm -f conftest.$ac_objext
9149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150  (eval $ac_compile) 2>conftest.er1
9151  ac_status=$?
9152  grep -v '^ *+' conftest.er1 >conftest.err
9153  rm -f conftest.er1
9154  cat conftest.err >&5
9155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156  (exit $ac_status); } &&
9157         { ac_try='test -z "$ac_c_werror_flag"
9158                         || test ! -s conftest.err'
9159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160  (eval $ac_try) 2>&5
9161  ac_status=$?
9162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163  (exit $ac_status); }; } &&
9164         { ac_try='test -s conftest.$ac_objext'
9165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166  (eval $ac_try) 2>&5
9167  ac_status=$?
9168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169  (exit $ac_status); }; }; then
9170  ac_cv_type__Bool=yes
9171else
9172  echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175ac_cv_type__Bool=no
9176fi
9177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9178fi
9179echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9180echo "${ECHO_T}$ac_cv_type__Bool" >&6
9181if test $ac_cv_type__Bool = yes; then
9182
9183cat >>confdefs.h <<_ACEOF
9184#define HAVE__BOOL 1
9185_ACEOF
9186
9187
9188fi
9189
9190if test $ac_cv_header_stdbool_h = yes; then
9191
9192cat >>confdefs.h <<\_ACEOF
9193#define HAVE_STDBOOL_H 1
9194_ACEOF
9195
9196fi
9197
9198
9199# Checks for library functions.
9200
9201for ac_header in stdlib.h
9202do
9203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9204if eval "test \"\${$as_ac_Header+set}\" = set"; then
9205  echo "$as_me:$LINENO: checking for $ac_header" >&5
9206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9207if eval "test \"\${$as_ac_Header+set}\" = set"; then
9208  echo $ECHO_N "(cached) $ECHO_C" >&6
9209fi
9210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212else
9213  # Is the header compilable?
9214echo "$as_me:$LINENO: checking $ac_header usability" >&5
9215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9216cat >conftest.$ac_ext <<_ACEOF
9217/* confdefs.h.  */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h.  */
9222$ac_includes_default
9223#include <$ac_header>
9224_ACEOF
9225rm -f conftest.$ac_objext
9226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9227  (eval $ac_compile) 2>conftest.er1
9228  ac_status=$?
9229  grep -v '^ *+' conftest.er1 >conftest.err
9230  rm -f conftest.er1
9231  cat conftest.err >&5
9232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233  (exit $ac_status); } &&
9234         { ac_try='test -z "$ac_c_werror_flag"
9235                         || test ! -s conftest.err'
9236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237  (eval $ac_try) 2>&5
9238  ac_status=$?
9239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240  (exit $ac_status); }; } &&
9241         { ac_try='test -s conftest.$ac_objext'
9242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243  (eval $ac_try) 2>&5
9244  ac_status=$?
9245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246  (exit $ac_status); }; }; then
9247  ac_header_compiler=yes
9248else
9249  echo "$as_me: failed program was:" >&5
9250sed 's/^/| /' conftest.$ac_ext >&5
9251
9252ac_header_compiler=no
9253fi
9254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9256echo "${ECHO_T}$ac_header_compiler" >&6
9257
9258# Is the header present?
9259echo "$as_me:$LINENO: checking $ac_header presence" >&5
9260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9261cat >conftest.$ac_ext <<_ACEOF
9262/* confdefs.h.  */
9263_ACEOF
9264cat confdefs.h >>conftest.$ac_ext
9265cat >>conftest.$ac_ext <<_ACEOF
9266/* end confdefs.h.  */
9267#include <$ac_header>
9268_ACEOF
9269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9271  ac_status=$?
9272  grep -v '^ *+' conftest.er1 >conftest.err
9273  rm -f conftest.er1
9274  cat conftest.err >&5
9275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276  (exit $ac_status); } >/dev/null; then
9277  if test -s conftest.err; then
9278    ac_cpp_err=$ac_c_preproc_warn_flag
9279    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9280  else
9281    ac_cpp_err=
9282  fi
9283else
9284  ac_cpp_err=yes
9285fi
9286if test -z "$ac_cpp_err"; then
9287  ac_header_preproc=yes
9288else
9289  echo "$as_me: failed program was:" >&5
9290sed 's/^/| /' conftest.$ac_ext >&5
9291
9292  ac_header_preproc=no
9293fi
9294rm -f conftest.err conftest.$ac_ext
9295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296echo "${ECHO_T}$ac_header_preproc" >&6
9297
9298# So?  What about this header?
9299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9300  yes:no: )
9301    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9305    ac_header_preproc=yes
9306    ;;
9307  no:yes:* )
9308    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9310    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9311echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9312    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9314    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9315echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9318    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9320    (
9321      cat <<\_ASBOX
9322## ---------------------------------------------- ##
9323## Report this to orxonox-dev at mail.datacore.ch ##
9324## ---------------------------------------------- ##
9325_ASBOX
9326    ) |
9327      sed "s/^/$as_me: WARNING:     /" >&2
9328    ;;
9329esac
9330echo "$as_me:$LINENO: checking for $ac_header" >&5
9331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9332if eval "test \"\${$as_ac_Header+set}\" = set"; then
9333  echo $ECHO_N "(cached) $ECHO_C" >&6
9334else
9335  eval "$as_ac_Header=\$ac_header_preproc"
9336fi
9337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9339
9340fi
9341if test `eval echo '${'$as_ac_Header'}'` = yes; then
9342  cat >>confdefs.h <<_ACEOF
9343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9344_ACEOF
9345
9346fi
9347
9348done
9349
9350echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9351echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9352if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9353  echo $ECHO_N "(cached) $ECHO_C" >&6
9354else
9355  if test "$cross_compiling" = yes; then
9356  ac_cv_func_malloc_0_nonnull=no
9357else
9358  cat >conftest.$ac_ext <<_ACEOF
9359/* confdefs.h.  */
9360_ACEOF
9361cat confdefs.h >>conftest.$ac_ext
9362cat >>conftest.$ac_ext <<_ACEOF
9363/* end confdefs.h.  */
9364#if STDC_HEADERS || HAVE_STDLIB_H
9365# include <stdlib.h>
9366#else
9367char *malloc ();
9368#endif
9369
9370int
9371main ()
9372{
9373exit (malloc (0) ? 0 : 1);
9374  ;
9375  return 0;
9376}
9377_ACEOF
9378rm -f conftest$ac_exeext
9379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380  (eval $ac_link) 2>&5
9381  ac_status=$?
9382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385  (eval $ac_try) 2>&5
9386  ac_status=$?
9387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388  (exit $ac_status); }; }; then
9389  ac_cv_func_malloc_0_nonnull=yes
9390else
9391  echo "$as_me: program exited with status $ac_status" >&5
9392echo "$as_me: failed program was:" >&5
9393sed 's/^/| /' conftest.$ac_ext >&5
9394
9395( exit $ac_status )
9396ac_cv_func_malloc_0_nonnull=no
9397fi
9398rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9399fi
9400fi
9401echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9402echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9403if test $ac_cv_func_malloc_0_nonnull = yes; then
9404
9405cat >>confdefs.h <<\_ACEOF
9406#define HAVE_MALLOC 1
9407_ACEOF
9408
9409else
9410  cat >>confdefs.h <<\_ACEOF
9411#define HAVE_MALLOC 0
9412_ACEOF
9413
9414   case $LIBOBJS in
9415    "malloc.$ac_objext"   | \
9416  *" malloc.$ac_objext"   | \
9417    "malloc.$ac_objext "* | \
9418  *" malloc.$ac_objext "* ) ;;
9419  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9420esac
9421
9422
9423cat >>confdefs.h <<\_ACEOF
9424#define malloc rpl_malloc
9425_ACEOF
9426
9427fi
9428
9429
9430
9431
9432
9433for ac_func in bzero sqrt
9434do
9435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9436echo "$as_me:$LINENO: checking for $ac_func" >&5
9437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9438if eval "test \"\${$as_ac_var+set}\" = set"; then
9439  echo $ECHO_N "(cached) $ECHO_C" >&6
9440else
9441  cat >conftest.$ac_ext <<_ACEOF
9442/* confdefs.h.  */
9443_ACEOF
9444cat confdefs.h >>conftest.$ac_ext
9445cat >>conftest.$ac_ext <<_ACEOF
9446/* end confdefs.h.  */
9447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9448   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9449#define $ac_func innocuous_$ac_func
9450
9451/* System header to define __stub macros and hopefully few prototypes,
9452    which can conflict with char $ac_func (); below.
9453    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9454    <limits.h> exists even on freestanding compilers.  */
9455
9456#ifdef __STDC__
9457# include <limits.h>
9458#else
9459# include <assert.h>
9460#endif
9461
9462#undef $ac_func
9463
9464/* Override any gcc2 internal prototype to avoid an error.  */
9465#ifdef __cplusplus
9466extern "C"
9467{
9468#endif
9469/* We use char because int might match the return type of a gcc2
9470   builtin and then its argument prototype would still apply.  */
9471char $ac_func ();
9472/* The GNU C library defines this for functions which it implements
9473    to always fail with ENOSYS.  Some functions are actually named
9474    something starting with __ and the normal name is an alias.  */
9475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9476choke me
9477#else
9478char (*f) () = $ac_func;
9479#endif
9480#ifdef __cplusplus
9481}
9482#endif
9483
9484int
9485main ()
9486{
9487return f != $ac_func;
9488  ;
9489  return 0;
9490}
9491_ACEOF
9492rm -f conftest.$ac_objext conftest$ac_exeext
9493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494  (eval $ac_link) 2>conftest.er1
9495  ac_status=$?
9496  grep -v '^ *+' conftest.er1 >conftest.err
9497  rm -f conftest.er1
9498  cat conftest.err >&5
9499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500  (exit $ac_status); } &&
9501         { ac_try='test -z "$ac_c_werror_flag"
9502                         || test ! -s conftest.err'
9503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504  (eval $ac_try) 2>&5
9505  ac_status=$?
9506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507  (exit $ac_status); }; } &&
9508         { ac_try='test -s conftest$ac_exeext'
9509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510  (eval $ac_try) 2>&5
9511  ac_status=$?
9512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513  (exit $ac_status); }; }; then
9514  eval "$as_ac_var=yes"
9515else
9516  echo "$as_me: failed program was:" >&5
9517sed 's/^/| /' conftest.$ac_ext >&5
9518
9519eval "$as_ac_var=no"
9520fi
9521rm -f conftest.err conftest.$ac_objext \
9522      conftest$ac_exeext conftest.$ac_ext
9523fi
9524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9526if test `eval echo '${'$as_ac_var'}'` = yes; then
9527  cat >>confdefs.h <<_ACEOF
9528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9529_ACEOF
9530
9531fi
9532done
9533
9534
9535######################
9536## OUTPUT CONFIGURE ##
9537######################
9538                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
9539
9540
9541cat >confcache <<\_ACEOF
9542# This file is a shell script that caches the results of configure
9543# tests run on this system so they can be shared between configure
9544# scripts and configure runs, see configure's option --config-cache.
9545# It is not useful on other systems.  If it contains results you don't
9546# want to keep, you may remove or edit it.
9547#
9548# config.status only pays attention to the cache file if you give it
9549# the --recheck option to rerun configure.
9550#
9551# `ac_cv_env_foo' variables (set or unset) will be overridden when
9552# loading this file, other *unset* `ac_cv_foo' will be assigned the
9553# following values.
9554
9555_ACEOF
9556
9557# The following way of writing the cache mishandles newlines in values,
9558# but we know of no workaround that is simple, portable, and efficient.
9559# So, don't put newlines in cache variables' values.
9560# Ultrix sh set writes to stderr and can't be redirected directly,
9561# and sets the high bit in the cache file unless we assign to the vars.
9562{
9563  (set) 2>&1 |
9564    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9565    *ac_space=\ *)
9566      # `set' does not quote correctly, so add quotes (double-quote
9567      # substitution turns \\\\ into \\, and sed turns \\ into \).
9568      sed -n \
9569        "s/'/'\\\\''/g;
9570          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9571      ;;
9572    *)
9573      # `set' quotes correctly as required by POSIX, so do not add quotes.
9574      sed -n \
9575        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9576      ;;
9577    esac;
9578} |
9579  sed '
9580     t clear
9581     : clear
9582     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9583     t end
9584     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9585     : end' >>confcache
9586if diff $cache_file confcache >/dev/null 2>&1; then :; else
9587  if test -w $cache_file; then
9588    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9589    cat confcache >$cache_file
9590  else
9591    echo "not updating unwritable cache $cache_file"
9592  fi
9593fi
9594rm -f confcache
9595
9596test "x$prefix" = xNONE && prefix=$ac_default_prefix
9597# Let make expand exec_prefix.
9598test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9599
9600# VPATH may cause trouble with some makes, so we remove $(srcdir),
9601# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9602# trailing colons and then remove the whole line if VPATH becomes empty
9603# (actually we leave an empty line to preserve line numbers).
9604if test "x$srcdir" = x.; then
9605  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9606s/:*\$(srcdir):*/:/;
9607s/:*\${srcdir}:*/:/;
9608s/:*@srcdir@:*/:/;
9609s/^\([^=]*=[     ]*\):*/\1/;
9610s/:*$//;
9611s/^[^=]*=[       ]*$//;
9612}'
9613fi
9614
9615DEFS=-DHAVE_CONFIG_H
9616
9617ac_libobjs=
9618ac_ltlibobjs=
9619for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9620  # 1. Remove the extension, and $U if already installed.
9621  ac_i=`echo "$ac_i" |
9622         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9623  # 2. Add them.
9624  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9625  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9626done
9627LIBOBJS=$ac_libobjs
9628
9629LTLIBOBJS=$ac_ltlibobjs
9630
9631
9632if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9633  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9634Usually this means the macro was only invoked conditionally." >&5
9635echo "$as_me: error: conditional \"AMDEP\" was never defined.
9636Usually this means the macro was only invoked conditionally." >&2;}
9637   { (exit 1); exit 1; }; }
9638fi
9639if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9640  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9641Usually this means the macro was only invoked conditionally." >&5
9642echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9643Usually this means the macro was only invoked conditionally." >&2;}
9644   { (exit 1); exit 1; }; }
9645fi
9646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9647  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9648Usually this means the macro was only invoked conditionally." >&5
9649echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9650Usually this means the macro was only invoked conditionally." >&2;}
9651   { (exit 1); exit 1; }; }
9652fi
9653if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
9654  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
9655Usually this means the macro was only invoked conditionally." >&5
9656echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
9657Usually this means the macro was only invoked conditionally." >&2;}
9658   { (exit 1); exit 1; }; }
9659fi
9660if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
9661  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
9662Usually this means the macro was only invoked conditionally." >&5
9663echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
9664Usually this means the macro was only invoked conditionally." >&2;}
9665   { (exit 1); exit 1; }; }
9666fi
9667if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
9668  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
9669Usually this means the macro was only invoked conditionally." >&5
9670echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
9671Usually this means the macro was only invoked conditionally." >&2;}
9672   { (exit 1); exit 1; }; }
9673fi
9674if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
9675  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
9676Usually this means the macro was only invoked conditionally." >&5
9677echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
9678Usually this means the macro was only invoked conditionally." >&2;}
9679   { (exit 1); exit 1; }; }
9680fi
9681if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
9682  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
9683Usually this means the macro was only invoked conditionally." >&5
9684echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
9685Usually this means the macro was only invoked conditionally." >&2;}
9686   { (exit 1); exit 1; }; }
9687fi
9688
9689: ${CONFIG_STATUS=./config.status}
9690ac_clean_files_save=$ac_clean_files
9691ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9692{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9693echo "$as_me: creating $CONFIG_STATUS" >&6;}
9694cat >$CONFIG_STATUS <<_ACEOF
9695#! $SHELL
9696# Generated by $as_me.
9697# Run this file to recreate the current configuration.
9698# Compiler output produced by configure, useful for debugging
9699# configure, is in config.log if it exists.
9700
9701debug=false
9702ac_cs_recheck=false
9703ac_cs_silent=false
9704SHELL=\${CONFIG_SHELL-$SHELL}
9705_ACEOF
9706
9707cat >>$CONFIG_STATUS <<\_ACEOF
9708## --------------------- ##
9709## M4sh Initialization.  ##
9710## --------------------- ##
9711
9712# Be Bourne compatible
9713if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9714  emulate sh
9715  NULLCMD=:
9716  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9717  # is contrary to our usage.  Disable this feature.
9718  alias -g '${1+"$@"}'='"$@"'
9719elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9720  set -o posix
9721fi
9722DUALCASE=1; export DUALCASE # for MKS sh
9723
9724# Support unset when possible.
9725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9726  as_unset=unset
9727else
9728  as_unset=false
9729fi
9730
9731
9732# Work around bugs in pre-3.0 UWIN ksh.
9733$as_unset ENV MAIL MAILPATH
9734PS1='$ '
9735PS2='> '
9736PS4='+ '
9737
9738# NLS nuisances.
9739for as_var in \
9740  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9741  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9742  LC_TELEPHONE LC_TIME
9743do
9744  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9745    eval $as_var=C; export $as_var
9746  else
9747    $as_unset $as_var
9748  fi
9749done
9750
9751# Required to use basename.
9752if expr a : '\(a\)' >/dev/null 2>&1; then
9753  as_expr=expr
9754else
9755  as_expr=false
9756fi
9757
9758if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9759  as_basename=basename
9760else
9761  as_basename=false
9762fi
9763
9764
9765# Name of the executable.
9766as_me=`$as_basename "$0" ||
9767$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9768         X"$0" : 'X\(//\)$' \| \
9769         X"$0" : 'X\(/\)$' \| \
9770         .     : '\(.\)' 2>/dev/null ||
9771echo X/"$0" |
9772    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9773          /^X\/\(\/\/\)$/{ s//\1/; q; }
9774          /^X\/\(\/\).*/{ s//\1/; q; }
9775          s/.*/./; q'`
9776
9777
9778# PATH needs CR, and LINENO needs CR and PATH.
9779# Avoid depending upon Character Ranges.
9780as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9781as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9782as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9783as_cr_digits='0123456789'
9784as_cr_alnum=$as_cr_Letters$as_cr_digits
9785
9786# The user is always right.
9787if test "${PATH_SEPARATOR+set}" != set; then
9788  echo "#! /bin/sh" >conf$$.sh
9789  echo  "exit 0"   >>conf$$.sh
9790  chmod +x conf$$.sh
9791  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9792    PATH_SEPARATOR=';'
9793  else
9794    PATH_SEPARATOR=:
9795  fi
9796  rm -f conf$$.sh
9797fi
9798
9799
9800  as_lineno_1=$LINENO
9801  as_lineno_2=$LINENO
9802  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9803  test "x$as_lineno_1" != "x$as_lineno_2" &&
9804  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9805  # Find who we are.  Look in the path if we contain no path at all
9806  # relative or not.
9807  case $0 in
9808    *[\\/]* ) as_myself=$0 ;;
9809    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810for as_dir in $PATH
9811do
9812  IFS=$as_save_IFS
9813  test -z "$as_dir" && as_dir=.
9814  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9815done
9816
9817       ;;
9818  esac
9819  # We did not find ourselves, most probably we were run as `sh COMMAND'
9820  # in which case we are not to be found in the path.
9821  if test "x$as_myself" = x; then
9822    as_myself=$0
9823  fi
9824  if test ! -f "$as_myself"; then
9825    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9826echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9827   { (exit 1); exit 1; }; }
9828  fi
9829  case $CONFIG_SHELL in
9830  '')
9831    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9833do
9834  IFS=$as_save_IFS
9835  test -z "$as_dir" && as_dir=.
9836  for as_base in sh bash ksh sh5; do
9837         case $as_dir in
9838         /*)
9839           if ("$as_dir/$as_base" -c '
9840  as_lineno_1=$LINENO
9841  as_lineno_2=$LINENO
9842  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9843  test "x$as_lineno_1" != "x$as_lineno_2" &&
9844  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9845             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9846             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9847             CONFIG_SHELL=$as_dir/$as_base
9848             export CONFIG_SHELL
9849             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9850           fi;;
9851         esac
9852       done
9853done
9854;;
9855  esac
9856
9857  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9858  # uniformly replaced by the line number.  The first 'sed' inserts a
9859  # line-number line before each line; the second 'sed' does the real
9860  # work.  The second script uses 'N' to pair each line-number line
9861  # with the numbered line, and appends trailing '-' during
9862  # substitution so that $LINENO is not a special case at line end.
9863  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9864  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9865  sed '=' <$as_myself |
9866    sed '
9867      N
9868      s,$,-,
9869      : loop
9870      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9871      t loop
9872      s,-$,,
9873      s,^['$as_cr_digits']*\n,,
9874    ' >$as_me.lineno &&
9875  chmod +x $as_me.lineno ||
9876    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9877echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9878   { (exit 1); exit 1; }; }
9879
9880  # Don't try to exec as it changes $[0], causing all sort of problems
9881  # (the dirname of $[0] is not the place where we might find the
9882  # original and so on.  Autoconf is especially sensible to this).
9883  . ./$as_me.lineno
9884  # Exit status is that of the last command.
9885  exit
9886}
9887
9888
9889case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9890  *c*,-n*) ECHO_N= ECHO_C='
9891' ECHO_T='      ' ;;
9892  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9893  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9894esac
9895
9896if expr a : '\(a\)' >/dev/null 2>&1; then
9897  as_expr=expr
9898else
9899  as_expr=false
9900fi
9901
9902rm -f conf$$ conf$$.exe conf$$.file
9903echo >conf$$.file
9904if ln -s conf$$.file conf$$ 2>/dev/null; then
9905  # We could just check for DJGPP; but this test a) works b) is more generic
9906  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9907  if test -f conf$$.exe; then
9908    # Don't use ln at all; we don't have any links
9909    as_ln_s='cp -p'
9910  else
9911    as_ln_s='ln -s'
9912  fi
9913elif ln conf$$.file conf$$ 2>/dev/null; then
9914  as_ln_s=ln
9915else
9916  as_ln_s='cp -p'
9917fi
9918rm -f conf$$ conf$$.exe conf$$.file
9919
9920if mkdir -p . 2>/dev/null; then
9921  as_mkdir_p=:
9922else
9923  test -d ./-p && rmdir ./-p
9924  as_mkdir_p=false
9925fi
9926
9927as_executable_p="test -f"
9928
9929# Sed expression to map a string onto a valid CPP name.
9930as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9931
9932# Sed expression to map a string onto a valid variable name.
9933as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9934
9935
9936# IFS
9937# We need space, tab and new line, in precisely that order.
9938as_nl='
9939'
9940IFS="   $as_nl"
9941
9942# CDPATH.
9943$as_unset CDPATH
9944
9945exec 6>&1
9946
9947# Open the log real soon, to keep \$[0] and so on meaningful, and to
9948# report actual input values of CONFIG_FILES etc. instead of their
9949# values after options handling.  Logging --version etc. is OK.
9950exec 5>>config.log
9951{
9952  echo
9953  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9954## Running $as_me. ##
9955_ASBOX
9956} >&5
9957cat >&5 <<_CSEOF
9958
9959This file was extended by orxonox $as_me 0.3.1_alpha, which was
9960generated by GNU Autoconf 2.59.  Invocation command line was
9961
9962  CONFIG_FILES    = $CONFIG_FILES
9963  CONFIG_HEADERS  = $CONFIG_HEADERS
9964  CONFIG_LINKS    = $CONFIG_LINKS
9965  CONFIG_COMMANDS = $CONFIG_COMMANDS
9966  $ $0 $@
9967
9968_CSEOF
9969echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9970echo >&5
9971_ACEOF
9972
9973# Files that config.status was made for.
9974if test -n "$ac_config_files"; then
9975  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9976fi
9977
9978if test -n "$ac_config_headers"; then
9979  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9980fi
9981
9982if test -n "$ac_config_links"; then
9983  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9984fi
9985
9986if test -n "$ac_config_commands"; then
9987  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9988fi
9989
9990cat >>$CONFIG_STATUS <<\_ACEOF
9991
9992ac_cs_usage="\
9993\`$as_me' instantiates files from templates according to the
9994current configuration.
9995
9996Usage: $0 [OPTIONS] [FILE]...
9997
9998  -h, --help       print this help, then exit
9999  -V, --version    print version number, then exit
10000  -q, --quiet      do not print progress messages
10001  -d, --debug      don't remove temporary files
10002      --recheck    update $as_me by reconfiguring in the same conditions
10003  --file=FILE[:TEMPLATE]
10004                   instantiate the configuration file FILE
10005  --header=FILE[:TEMPLATE]
10006                   instantiate the configuration header FILE
10007
10008Configuration files:
10009$config_files
10010
10011Configuration headers:
10012$config_headers
10013
10014Configuration commands:
10015$config_commands
10016
10017Report bugs to <bug-autoconf@gnu.org>."
10018_ACEOF
10019
10020cat >>$CONFIG_STATUS <<_ACEOF
10021ac_cs_version="\\
10022orxonox config.status 0.3.1_alpha
10023configured by $0, generated by GNU Autoconf 2.59,
10024  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10025
10026Copyright (C) 2003 Free Software Foundation, Inc.
10027This config.status script is free software; the Free Software Foundation
10028gives unlimited permission to copy, distribute and modify it."
10029srcdir=$srcdir
10030INSTALL="$INSTALL"
10031_ACEOF
10032
10033cat >>$CONFIG_STATUS <<\_ACEOF
10034# If no file are specified by the user, then we need to provide default
10035# value.  By we need to know if files were specified by the user.
10036ac_need_defaults=:
10037while test $# != 0
10038do
10039  case $1 in
10040  --*=*)
10041    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10042    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10043    ac_shift=:
10044    ;;
10045  -*)
10046    ac_option=$1
10047    ac_optarg=$2
10048    ac_shift=shift
10049    ;;
10050  *) # This is not an option, so the user has probably given explicit
10051     # arguments.
10052     ac_option=$1
10053     ac_need_defaults=false;;
10054  esac
10055
10056  case $ac_option in
10057  # Handling of the options.
10058_ACEOF
10059cat >>$CONFIG_STATUS <<\_ACEOF
10060  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10061    ac_cs_recheck=: ;;
10062  --version | --vers* | -V )
10063    echo "$ac_cs_version"; exit 0 ;;
10064  --he | --h)
10065    # Conflict between --help and --header
10066    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10067Try \`$0 --help' for more information." >&5
10068echo "$as_me: error: ambiguous option: $1
10069Try \`$0 --help' for more information." >&2;}
10070   { (exit 1); exit 1; }; };;
10071  --help | --hel | -h )
10072    echo "$ac_cs_usage"; exit 0 ;;
10073  --debug | --d* | -d )
10074    debug=: ;;
10075  --file | --fil | --fi | --f )
10076    $ac_shift
10077    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10078    ac_need_defaults=false;;
10079  --header | --heade | --head | --hea )
10080    $ac_shift
10081    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10082    ac_need_defaults=false;;
10083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10084  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10085    ac_cs_silent=: ;;
10086
10087  # This is an error.
10088  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10089Try \`$0 --help' for more information." >&5
10090echo "$as_me: error: unrecognized option: $1
10091Try \`$0 --help' for more information." >&2;}
10092   { (exit 1); exit 1; }; } ;;
10093
10094  *) ac_config_targets="$ac_config_targets $1" ;;
10095
10096  esac
10097  shift
10098done
10099
10100ac_configure_extra_args=
10101
10102if $ac_cs_silent; then
10103  exec 6>/dev/null
10104  ac_configure_extra_args="$ac_configure_extra_args --silent"
10105fi
10106
10107_ACEOF
10108cat >>$CONFIG_STATUS <<_ACEOF
10109if \$ac_cs_recheck; then
10110  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10111  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10112fi
10113
10114_ACEOF
10115
10116cat >>$CONFIG_STATUS <<_ACEOF
10117#
10118# INIT-COMMANDS section.
10119#
10120
10121AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10122
10123_ACEOF
10124
10125
10126
10127cat >>$CONFIG_STATUS <<\_ACEOF
10128for ac_config_target in $ac_config_targets
10129do
10130  case "$ac_config_target" in
10131  # Handling of arguments.
10132  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10133  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10134  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10135  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
10136  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
10137  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
10138  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
10139  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
10140  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
10141  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
10142  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
10143  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
10144  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
10145  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
10146  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10147  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
10148  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
10149  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
10150  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
10151  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10152  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10153  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10154echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10155   { (exit 1); exit 1; }; };;
10156  esac
10157done
10158
10159# If the user did not use the arguments to specify the items to instantiate,
10160# then the envvar interface is used.  Set only those that are not.
10161# We use the long form for the default assignment because of an extremely
10162# bizarre bug on SunOS 4.1.3.
10163if $ac_need_defaults; then
10164  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10165  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10166  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10167fi
10168
10169# Have a temporary directory for convenience.  Make it in the build tree
10170# simply because there is no reason to put it here, and in addition,
10171# creating and moving files from /tmp can sometimes cause problems.
10172# Create a temporary directory, and hook for its removal unless debugging.
10173$debug ||
10174{
10175  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10176  trap '{ (exit 1); exit 1; }' 1 2 13 15
10177}
10178
10179# Create a (secure) tmp directory for tmp files.
10180
10181{
10182  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10183  test -n "$tmp" && test -d "$tmp"
10184}  ||
10185{
10186  tmp=./confstat$$-$RANDOM
10187  (umask 077 && mkdir $tmp)
10188} ||
10189{
10190   echo "$me: cannot create a temporary directory in ." >&2
10191   { (exit 1); exit 1; }
10192}
10193
10194_ACEOF
10195
10196cat >>$CONFIG_STATUS <<_ACEOF
10197
10198#
10199# CONFIG_FILES section.
10200#
10201
10202# No need to generate the scripts if there are no CONFIG_FILES.
10203# This happens for instance when ./config.status config.h
10204if test -n "\$CONFIG_FILES"; then
10205  # Protect against being on the right side of a sed subst in config.status.
10206  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10207   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10208s,@SHELL@,$SHELL,;t t
10209s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10210s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10211s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10212s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10213s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10214s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10215s,@exec_prefix@,$exec_prefix,;t t
10216s,@prefix@,$prefix,;t t
10217s,@program_transform_name@,$program_transform_name,;t t
10218s,@bindir@,$bindir,;t t
10219s,@sbindir@,$sbindir,;t t
10220s,@libexecdir@,$libexecdir,;t t
10221s,@datadir@,$datadir,;t t
10222s,@sysconfdir@,$sysconfdir,;t t
10223s,@sharedstatedir@,$sharedstatedir,;t t
10224s,@localstatedir@,$localstatedir,;t t
10225s,@libdir@,$libdir,;t t
10226s,@includedir@,$includedir,;t t
10227s,@oldincludedir@,$oldincludedir,;t t
10228s,@infodir@,$infodir,;t t
10229s,@mandir@,$mandir,;t t
10230s,@build_alias@,$build_alias,;t t
10231s,@host_alias@,$host_alias,;t t
10232s,@target_alias@,$target_alias,;t t
10233s,@DEFS@,$DEFS,;t t
10234s,@ECHO_C@,$ECHO_C,;t t
10235s,@ECHO_N@,$ECHO_N,;t t
10236s,@ECHO_T@,$ECHO_T,;t t
10237s,@LIBS@,$LIBS,;t t
10238s,@build@,$build,;t t
10239s,@build_cpu@,$build_cpu,;t t
10240s,@build_vendor@,$build_vendor,;t t
10241s,@build_os@,$build_os,;t t
10242s,@host@,$host,;t t
10243s,@host_cpu@,$host_cpu,;t t
10244s,@host_vendor@,$host_vendor,;t t
10245s,@host_os@,$host_os,;t t
10246s,@target@,$target,;t t
10247s,@target_cpu@,$target_cpu,;t t
10248s,@target_vendor@,$target_vendor,;t t
10249s,@target_os@,$target_os,;t t
10250s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10251s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10252s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10253s,@CYGPATH_W@,$CYGPATH_W,;t t
10254s,@PACKAGE@,$PACKAGE,;t t
10255s,@VERSION@,$VERSION,;t t
10256s,@ACLOCAL@,$ACLOCAL,;t t
10257s,@AUTOCONF@,$AUTOCONF,;t t
10258s,@AUTOMAKE@,$AUTOMAKE,;t t
10259s,@AUTOHEADER@,$AUTOHEADER,;t t
10260s,@MAKEINFO@,$MAKEINFO,;t t
10261s,@AMTAR@,$AMTAR,;t t
10262s,@install_sh@,$install_sh,;t t
10263s,@STRIP@,$STRIP,;t t
10264s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10265s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10266s,@mkdir_p@,$mkdir_p,;t t
10267s,@AWK@,$AWK,;t t
10268s,@SET_MAKE@,$SET_MAKE,;t t
10269s,@am__leading_dot@,$am__leading_dot,;t t
10270s,@CXX@,$CXX,;t t
10271s,@CXXFLAGS@,$CXXFLAGS,;t t
10272s,@LDFLAGS@,$LDFLAGS,;t t
10273s,@CPPFLAGS@,$CPPFLAGS,;t t
10274s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10275s,@EXEEXT@,$EXEEXT,;t t
10276s,@OBJEXT@,$OBJEXT,;t t
10277s,@DEPDIR@,$DEPDIR,;t t
10278s,@am__include@,$am__include,;t t
10279s,@am__quote@,$am__quote,;t t
10280s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10281s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10282s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10283s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10284s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10285s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10286s,@RANLIB@,$RANLIB,;t t
10287s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10288s,@CC@,$CC,;t t
10289s,@CFLAGS@,$CFLAGS,;t t
10290s,@ac_ct_CC@,$ac_ct_CC,;t t
10291s,@CCDEPMODE@,$CCDEPMODE,;t t
10292s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10293s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10294s,@CPP@,$CPP,;t t
10295s,@EGREP@,$EGREP,;t t
10296s,@DEBUG@,$DEBUG,;t t
10297s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10298s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
10299s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10300s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
10301s,@DOXYGEN@,$DOXYGEN,;t t
10302s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10303s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
10304s,@GPROF@,$GPROF,;t t
10305s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10306s,@MSBITFIELDS@,$MSBITFIELDS,;t t
10307s,@GTK2_LIBS@,$GTK2_LIBS,;t t
10308s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10309s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10310s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
10311s,@CURL_LIBS@,$CURL_LIBS,;t t
10312s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10313s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10314s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
10315s,@LIBOBJS@,$LIBOBJS,;t t
10316s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10317CEOF
10318
10319_ACEOF
10320
10321  cat >>$CONFIG_STATUS <<\_ACEOF
10322  # Split the substitutions into bite-sized pieces for seds with
10323  # small command number limits, like on Digital OSF/1 and HP-UX.
10324  ac_max_sed_lines=48
10325  ac_sed_frag=1 # Number of current file.
10326  ac_beg=1 # First line for current file.
10327  ac_end=$ac_max_sed_lines # Line after last line for current file.
10328  ac_more_lines=:
10329  ac_sed_cmds=
10330  while $ac_more_lines; do
10331    if test $ac_beg -gt 1; then
10332      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10333    else
10334      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10335    fi
10336    if test ! -s $tmp/subs.frag; then
10337      ac_more_lines=false
10338    else
10339      # The purpose of the label and of the branching condition is to
10340      # speed up the sed processing (if there are no `@' at all, there
10341      # is no need to browse any of the substitutions).
10342      # These are the two extra sed commands mentioned above.
10343      (echo ':t
10344  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10345      if test -z "$ac_sed_cmds"; then
10346        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10347      else
10348        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10349      fi
10350      ac_sed_frag=`expr $ac_sed_frag + 1`
10351      ac_beg=$ac_end
10352      ac_end=`expr $ac_end + $ac_max_sed_lines`
10353    fi
10354  done
10355  if test -z "$ac_sed_cmds"; then
10356    ac_sed_cmds=cat
10357  fi
10358fi # test -n "$CONFIG_FILES"
10359
10360_ACEOF
10361cat >>$CONFIG_STATUS <<\_ACEOF
10362for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10363  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10364  case $ac_file in
10365  - | *:- | *:-:* ) # input from stdin
10366        cat >$tmp/stdin
10367        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10368        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10369  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10370        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10371  * )   ac_file_in=$ac_file.in ;;
10372  esac
10373
10374  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10375  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10376$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10377         X"$ac_file" : 'X\(//\)[^/]' \| \
10378         X"$ac_file" : 'X\(//\)$' \| \
10379         X"$ac_file" : 'X\(/\)' \| \
10380         .     : '\(.\)' 2>/dev/null ||
10381echo X"$ac_file" |
10382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10383          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10384          /^X\(\/\/\)$/{ s//\1/; q; }
10385          /^X\(\/\).*/{ s//\1/; q; }
10386          s/.*/./; q'`
10387  { if $as_mkdir_p; then
10388    mkdir -p "$ac_dir"
10389  else
10390    as_dir="$ac_dir"
10391    as_dirs=
10392    while test ! -d "$as_dir"; do
10393      as_dirs="$as_dir $as_dirs"
10394      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10396         X"$as_dir" : 'X\(//\)[^/]' \| \
10397         X"$as_dir" : 'X\(//\)$' \| \
10398         X"$as_dir" : 'X\(/\)' \| \
10399         .     : '\(.\)' 2>/dev/null ||
10400echo X"$as_dir" |
10401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10402          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10403          /^X\(\/\/\)$/{ s//\1/; q; }
10404          /^X\(\/\).*/{ s//\1/; q; }
10405          s/.*/./; q'`
10406    done
10407    test ! -n "$as_dirs" || mkdir $as_dirs
10408  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10409echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10410   { (exit 1); exit 1; }; }; }
10411
10412  ac_builddir=.
10413
10414if test "$ac_dir" != .; then
10415  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10416  # A "../" for each directory in $ac_dir_suffix.
10417  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10418else
10419  ac_dir_suffix= ac_top_builddir=
10420fi
10421
10422case $srcdir in
10423  .)  # No --srcdir option.  We are building in place.
10424    ac_srcdir=.
10425    if test -z "$ac_top_builddir"; then
10426       ac_top_srcdir=.
10427    else
10428       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10429    fi ;;
10430  [\\/]* | ?:[\\/]* )  # Absolute path.
10431    ac_srcdir=$srcdir$ac_dir_suffix;
10432    ac_top_srcdir=$srcdir ;;
10433  *) # Relative path.
10434    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10435    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10436esac
10437
10438# Do not use `cd foo && pwd` to compute absolute paths, because
10439# the directories may not exist.
10440case `pwd` in
10441.) ac_abs_builddir="$ac_dir";;
10442*)
10443  case "$ac_dir" in
10444  .) ac_abs_builddir=`pwd`;;
10445  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10446  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10447  esac;;
10448esac
10449case $ac_abs_builddir in
10450.) ac_abs_top_builddir=${ac_top_builddir}.;;
10451*)
10452  case ${ac_top_builddir}. in
10453  .) ac_abs_top_builddir=$ac_abs_builddir;;
10454  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10455  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10456  esac;;
10457esac
10458case $ac_abs_builddir in
10459.) ac_abs_srcdir=$ac_srcdir;;
10460*)
10461  case $ac_srcdir in
10462  .) ac_abs_srcdir=$ac_abs_builddir;;
10463  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10464  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10465  esac;;
10466esac
10467case $ac_abs_builddir in
10468.) ac_abs_top_srcdir=$ac_top_srcdir;;
10469*)
10470  case $ac_top_srcdir in
10471  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10472  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10473  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10474  esac;;
10475esac
10476
10477
10478  case $INSTALL in
10479  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10480  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10481  esac
10482
10483  if test x"$ac_file" != x-; then
10484    { echo "$as_me:$LINENO: creating $ac_file" >&5
10485echo "$as_me: creating $ac_file" >&6;}
10486    rm -f "$ac_file"
10487  fi
10488  # Let's still pretend it is `configure' which instantiates (i.e., don't
10489  # use $as_me), people would be surprised to read:
10490  #    /* config.h.  Generated by config.status.  */
10491  if test x"$ac_file" = x-; then
10492    configure_input=
10493  else
10494    configure_input="$ac_file.  "
10495  fi
10496  configure_input=$configure_input"Generated from `echo $ac_file_in |
10497                                     sed 's,.*/,,'` by configure."
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         echo "$f";;
10511      *) # Relative
10512         if test -f "$f"; then
10513           # Build tree
10514           echo "$f"
10515         elif test -f "$srcdir/$f"; then
10516           # Source tree
10517           echo "$srcdir/$f"
10518         else
10519           # /dev/null tree
10520           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10521echo "$as_me: error: cannot find input file: $f" >&2;}
10522   { (exit 1); exit 1; }; }
10523         fi;;
10524      esac
10525    done` || { (exit 1); exit 1; }
10526_ACEOF
10527cat >>$CONFIG_STATUS <<_ACEOF
10528  sed "$ac_vpsub
10529$extrasub
10530_ACEOF
10531cat >>$CONFIG_STATUS <<\_ACEOF
10532:t
10533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10534s,@configure_input@,$configure_input,;t t
10535s,@srcdir@,$ac_srcdir,;t t
10536s,@abs_srcdir@,$ac_abs_srcdir,;t t
10537s,@top_srcdir@,$ac_top_srcdir,;t t
10538s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10539s,@builddir@,$ac_builddir,;t t
10540s,@abs_builddir@,$ac_abs_builddir,;t t
10541s,@top_builddir@,$ac_top_builddir,;t t
10542s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10543s,@INSTALL@,$ac_INSTALL,;t t
10544" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10545  rm -f $tmp/stdin
10546  if test x"$ac_file" != x-; then
10547    mv $tmp/out $ac_file
10548  else
10549    cat $tmp/out
10550    rm -f $tmp/out
10551  fi
10552
10553done
10554_ACEOF
10555cat >>$CONFIG_STATUS <<\_ACEOF
10556
10557#
10558# CONFIG_HEADER section.
10559#
10560
10561# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10562# NAME is the cpp macro being defined and VALUE is the value it is being given.
10563#
10564# ac_d sets the value in "#define NAME VALUE" lines.
10565ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10566ac_dB='[         ].*$,\1#\2'
10567ac_dC=' '
10568ac_dD=',;t'
10569# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10570ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10571ac_uB='$,\1#\2define\3'
10572ac_uC=' '
10573ac_uD=',;t'
10574
10575for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10576  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10577  case $ac_file in
10578  - | *:- | *:-:* ) # input from stdin
10579        cat >$tmp/stdin
10580        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10581        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10582  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10583        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10584  * )   ac_file_in=$ac_file.in ;;
10585  esac
10586
10587  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10588echo "$as_me: creating $ac_file" >&6;}
10589
10590  # First look for the input files in the build tree, otherwise in the
10591  # src tree.
10592  ac_file_inputs=`IFS=:
10593    for f in $ac_file_in; do
10594      case $f in
10595      -) echo $tmp/stdin ;;
10596      [\\/$]*)
10597         # Absolute (can't be DOS-style, as IFS=:)
10598         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10599echo "$as_me: error: cannot find input file: $f" >&2;}
10600   { (exit 1); exit 1; }; }
10601         # Do quote $f, to prevent DOS paths from being IFS'd.
10602         echo "$f";;
10603      *) # Relative
10604         if test -f "$f"; then
10605           # Build tree
10606           echo "$f"
10607         elif test -f "$srcdir/$f"; then
10608           # Source tree
10609           echo "$srcdir/$f"
10610         else
10611           # /dev/null tree
10612           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10613echo "$as_me: error: cannot find input file: $f" >&2;}
10614   { (exit 1); exit 1; }; }
10615         fi;;
10616      esac
10617    done` || { (exit 1); exit 1; }
10618  # Remove the trailing spaces.
10619  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10620
10621_ACEOF
10622
10623# Transform confdefs.h into two sed scripts, `conftest.defines' and
10624# `conftest.undefs', that substitutes the proper values into
10625# config.h.in to produce config.h.  The first handles `#define'
10626# templates, and the second `#undef' templates.
10627# And first: Protect against being on the right side of a sed subst in
10628# config.status.  Protect against being in an unquoted here document
10629# in config.status.
10630rm -f conftest.defines conftest.undefs
10631# Using a here document instead of a string reduces the quoting nightmare.
10632# Putting comments in sed scripts is not portable.
10633#
10634# `end' is used to avoid that the second main sed command (meant for
10635# 0-ary CPP macros) applies to n-ary macro definitions.
10636# See the Autoconf documentation for `clear'.
10637cat >confdef2sed.sed <<\_ACEOF
10638s/[\\&,]/\\&/g
10639s,[\\$`],\\&,g
10640t clear
10641: clear
10642s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10643t end
10644s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10645: end
10646_ACEOF
10647# If some macros were called several times there might be several times
10648# the same #defines, which is useless.  Nevertheless, we may not want to
10649# sort them, since we want the *last* AC-DEFINE to be honored.
10650uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10651sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10652rm -f confdef2sed.sed
10653
10654# This sed command replaces #undef with comments.  This is necessary, for
10655# example, in the case of _POSIX_SOURCE, which is predefined and required
10656# on some systems where configure will not decide to define it.
10657cat >>conftest.undefs <<\_ACEOF
10658s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10659_ACEOF
10660
10661# Break up conftest.defines because some shells have a limit on the size
10662# of here documents, and old seds have small limits too (100 cmds).
10663echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10664echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10665echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10666echo '  :' >>$CONFIG_STATUS
10667rm -f conftest.tail
10668while grep . conftest.defines >/dev/null
10669do
10670  # Write a limited-size here document to $tmp/defines.sed.
10671  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10672  # Speed up: don't consider the non `#define' lines.
10673  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10674  # Work around the forget-to-reset-the-flag bug.
10675  echo 't clr' >>$CONFIG_STATUS
10676  echo ': clr' >>$CONFIG_STATUS
10677  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10678  echo 'CEOF
10679  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10680  rm -f $tmp/in
10681  mv $tmp/out $tmp/in
10682' >>$CONFIG_STATUS
10683  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10684  rm -f conftest.defines
10685  mv conftest.tail conftest.defines
10686done
10687rm -f conftest.defines
10688echo '  fi # grep' >>$CONFIG_STATUS
10689echo >>$CONFIG_STATUS
10690
10691# Break up conftest.undefs because some shells have a limit on the size
10692# of here documents, and old seds have small limits too (100 cmds).
10693echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10694rm -f conftest.tail
10695while grep . conftest.undefs >/dev/null
10696do
10697  # Write a limited-size here document to $tmp/undefs.sed.
10698  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10699  # Speed up: don't consider the non `#undef'
10700  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10701  # Work around the forget-to-reset-the-flag bug.
10702  echo 't clr' >>$CONFIG_STATUS
10703  echo ': clr' >>$CONFIG_STATUS
10704  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10705  echo 'CEOF
10706  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10707  rm -f $tmp/in
10708  mv $tmp/out $tmp/in
10709' >>$CONFIG_STATUS
10710  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10711  rm -f conftest.undefs
10712  mv conftest.tail conftest.undefs
10713done
10714rm -f conftest.undefs
10715
10716cat >>$CONFIG_STATUS <<\_ACEOF
10717  # Let's still pretend it is `configure' which instantiates (i.e., don't
10718  # use $as_me), people would be surprised to read:
10719  #    /* config.h.  Generated by config.status.  */
10720  if test x"$ac_file" = x-; then
10721    echo "/* Generated by configure.  */" >$tmp/config.h
10722  else
10723    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10724  fi
10725  cat $tmp/in >>$tmp/config.h
10726  rm -f $tmp/in
10727  if test x"$ac_file" != x-; then
10728    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10729      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10730echo "$as_me: $ac_file is unchanged" >&6;}
10731    else
10732      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10733$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10734         X"$ac_file" : 'X\(//\)[^/]' \| \
10735         X"$ac_file" : 'X\(//\)$' \| \
10736         X"$ac_file" : 'X\(/\)' \| \
10737         .     : '\(.\)' 2>/dev/null ||
10738echo X"$ac_file" |
10739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10740          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10741          /^X\(\/\/\)$/{ s//\1/; q; }
10742          /^X\(\/\).*/{ s//\1/; q; }
10743          s/.*/./; q'`
10744      { if $as_mkdir_p; then
10745    mkdir -p "$ac_dir"
10746  else
10747    as_dir="$ac_dir"
10748    as_dirs=
10749    while test ! -d "$as_dir"; do
10750      as_dirs="$as_dir $as_dirs"
10751      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10752$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10753         X"$as_dir" : 'X\(//\)[^/]' \| \
10754         X"$as_dir" : 'X\(//\)$' \| \
10755         X"$as_dir" : 'X\(/\)' \| \
10756         .     : '\(.\)' 2>/dev/null ||
10757echo X"$as_dir" |
10758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10759          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10760          /^X\(\/\/\)$/{ s//\1/; q; }
10761          /^X\(\/\).*/{ s//\1/; q; }
10762          s/.*/./; q'`
10763    done
10764    test ! -n "$as_dirs" || mkdir $as_dirs
10765  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10766echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10767   { (exit 1); exit 1; }; }; }
10768
10769      rm -f $ac_file
10770      mv $tmp/config.h $ac_file
10771    fi
10772  else
10773    cat $tmp/config.h
10774    rm -f $tmp/config.h
10775  fi
10776# Compute $ac_file's index in $config_headers.
10777_am_stamp_count=1
10778for _am_header in $config_headers :; do
10779  case $_am_header in
10780    $ac_file | $ac_file:* )
10781      break ;;
10782    * )
10783      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10784  esac
10785done
10786echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10787$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10788         X$ac_file : 'X\(//\)[^/]' \| \
10789         X$ac_file : 'X\(//\)$' \| \
10790         X$ac_file : 'X\(/\)' \| \
10791         .     : '\(.\)' 2>/dev/null ||
10792echo X$ac_file |
10793    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10794          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10795          /^X\(\/\/\)$/{ s//\1/; q; }
10796          /^X\(\/\).*/{ s//\1/; q; }
10797          s/.*/./; q'`/stamp-h$_am_stamp_count
10798done
10799_ACEOF
10800cat >>$CONFIG_STATUS <<\_ACEOF
10801
10802#
10803# CONFIG_COMMANDS section.
10804#
10805for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10806  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10807  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10808  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10809$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10810         X"$ac_dest" : 'X\(//\)[^/]' \| \
10811         X"$ac_dest" : 'X\(//\)$' \| \
10812         X"$ac_dest" : 'X\(/\)' \| \
10813         .     : '\(.\)' 2>/dev/null ||
10814echo X"$ac_dest" |
10815    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10816          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10817          /^X\(\/\/\)$/{ s//\1/; q; }
10818          /^X\(\/\).*/{ s//\1/; q; }
10819          s/.*/./; q'`
10820  { if $as_mkdir_p; then
10821    mkdir -p "$ac_dir"
10822  else
10823    as_dir="$ac_dir"
10824    as_dirs=
10825    while test ! -d "$as_dir"; do
10826      as_dirs="$as_dir $as_dirs"
10827      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10828$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10829         X"$as_dir" : 'X\(//\)[^/]' \| \
10830         X"$as_dir" : 'X\(//\)$' \| \
10831         X"$as_dir" : 'X\(/\)' \| \
10832         .     : '\(.\)' 2>/dev/null ||
10833echo X"$as_dir" |
10834    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10835          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10836          /^X\(\/\/\)$/{ s//\1/; q; }
10837          /^X\(\/\).*/{ s//\1/; q; }
10838          s/.*/./; q'`
10839    done
10840    test ! -n "$as_dirs" || mkdir $as_dirs
10841  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10842echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10843   { (exit 1); exit 1; }; }; }
10844
10845  ac_builddir=.
10846
10847if test "$ac_dir" != .; then
10848  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10849  # A "../" for each directory in $ac_dir_suffix.
10850  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10851else
10852  ac_dir_suffix= ac_top_builddir=
10853fi
10854
10855case $srcdir in
10856  .)  # No --srcdir option.  We are building in place.
10857    ac_srcdir=.
10858    if test -z "$ac_top_builddir"; then
10859       ac_top_srcdir=.
10860    else
10861       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10862    fi ;;
10863  [\\/]* | ?:[\\/]* )  # Absolute path.
10864    ac_srcdir=$srcdir$ac_dir_suffix;
10865    ac_top_srcdir=$srcdir ;;
10866  *) # Relative path.
10867    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10868    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10869esac
10870
10871# Do not use `cd foo && pwd` to compute absolute paths, because
10872# the directories may not exist.
10873case `pwd` in
10874.) ac_abs_builddir="$ac_dir";;
10875*)
10876  case "$ac_dir" in
10877  .) ac_abs_builddir=`pwd`;;
10878  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10879  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10880  esac;;
10881esac
10882case $ac_abs_builddir in
10883.) ac_abs_top_builddir=${ac_top_builddir}.;;
10884*)
10885  case ${ac_top_builddir}. in
10886  .) ac_abs_top_builddir=$ac_abs_builddir;;
10887  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10888  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10889  esac;;
10890esac
10891case $ac_abs_builddir in
10892.) ac_abs_srcdir=$ac_srcdir;;
10893*)
10894  case $ac_srcdir in
10895  .) ac_abs_srcdir=$ac_abs_builddir;;
10896  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10897  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10898  esac;;
10899esac
10900case $ac_abs_builddir in
10901.) ac_abs_top_srcdir=$ac_top_srcdir;;
10902*)
10903  case $ac_top_srcdir in
10904  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10905  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10906  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10907  esac;;
10908esac
10909
10910
10911  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10912echo "$as_me: executing $ac_dest commands" >&6;}
10913  case $ac_dest in
10914    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10915  # Strip MF so we end up with the name of the file.
10916  mf=`echo "$mf" | sed -e 's/:.*$//'`
10917  # Check whether this is an Automake generated Makefile or not.
10918  # We used to match only the files named `Makefile.in', but
10919  # some people rename them; so instead we look at the file content.
10920  # Grep'ing the first line is not enough: some people post-process
10921  # each Makefile.in and add a new line on top of each file to say so.
10922  # So let's grep whole file.
10923  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10924    dirpart=`(dirname "$mf") 2>/dev/null ||
10925$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10926         X"$mf" : 'X\(//\)[^/]' \| \
10927         X"$mf" : 'X\(//\)$' \| \
10928         X"$mf" : 'X\(/\)' \| \
10929         .     : '\(.\)' 2>/dev/null ||
10930echo X"$mf" |
10931    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10932          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10933          /^X\(\/\/\)$/{ s//\1/; q; }
10934          /^X\(\/\).*/{ s//\1/; q; }
10935          s/.*/./; q'`
10936  else
10937    continue
10938  fi
10939  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10940  # Extract the definition of DEP_FILES from the Makefile without
10941  # running `make'.
10942  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10943  test -z "$DEPDIR" && continue
10944  # When using ansi2knr, U may be empty or an underscore; expand it
10945  U=`sed -n 's/^U = //p' < "$mf"`
10946  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10947  # We invoke sed twice because it is the simplest approach to
10948  # changing $(DEPDIR) to its actual value in the expansion.
10949  for file in `sed -n '
10950    /^DEP_FILES = .*\\\\$/ {
10951      s/^DEP_FILES = //
10952      :loop
10953        s/\\\\$//
10954        p
10955        n
10956        /\\\\$/ b loop
10957      p
10958    }
10959    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10960       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10961    # Make sure the directory exists.
10962    test -f "$dirpart/$file" && continue
10963    fdir=`(dirname "$file") 2>/dev/null ||
10964$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10965         X"$file" : 'X\(//\)[^/]' \| \
10966         X"$file" : 'X\(//\)$' \| \
10967         X"$file" : 'X\(/\)' \| \
10968         .     : '\(.\)' 2>/dev/null ||
10969echo X"$file" |
10970    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10971          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10972          /^X\(\/\/\)$/{ s//\1/; q; }
10973          /^X\(\/\).*/{ s//\1/; q; }
10974          s/.*/./; q'`
10975    { if $as_mkdir_p; then
10976    mkdir -p $dirpart/$fdir
10977  else
10978    as_dir=$dirpart/$fdir
10979    as_dirs=
10980    while test ! -d "$as_dir"; do
10981      as_dirs="$as_dir $as_dirs"
10982      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10983$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10984         X"$as_dir" : 'X\(//\)[^/]' \| \
10985         X"$as_dir" : 'X\(//\)$' \| \
10986         X"$as_dir" : 'X\(/\)' \| \
10987         .     : '\(.\)' 2>/dev/null ||
10988echo X"$as_dir" |
10989    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10990          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10991          /^X\(\/\/\)$/{ s//\1/; q; }
10992          /^X\(\/\).*/{ s//\1/; q; }
10993          s/.*/./; q'`
10994    done
10995    test ! -n "$as_dirs" || mkdir $as_dirs
10996  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10997echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10998   { (exit 1); exit 1; }; }; }
10999
11000    # echo "creating $dirpart/$file"
11001    echo '# dummy' > "$dirpart/$file"
11002  done
11003done
11004 ;;
11005  esac
11006done
11007_ACEOF
11008
11009cat >>$CONFIG_STATUS <<\_ACEOF
11010
11011{ (exit 0); exit 0; }
11012_ACEOF
11013chmod +x $CONFIG_STATUS
11014ac_clean_files=$ac_clean_files_save
11015
11016
11017# configure is writing to config.log, and then calls config.status.
11018# config.status does its own redirection, appending to config.log.
11019# Unfortunately, on DOS this fails, as config.log is still kept open
11020# by configure, so config.status won't be able to write to it; its
11021# output is simply discarded.  So we exec the FD to /dev/null,
11022# effectively closing config.log, so it can be properly (re)opened and
11023# appended to by config.status.  When coming back to configure, we
11024# need to make the FD available again.
11025if test "$no_create" != yes; then
11026  ac_cs_success=:
11027  ac_config_status_args=
11028  test "$silent" = yes &&
11029    ac_config_status_args="$ac_config_status_args --quiet"
11030  exec 5>/dev/null
11031  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11032  exec 5>>config.log
11033  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11034  # would make configure fail if this is the last instruction.
11035  $ac_cs_success || { (exit 1); exit 1; }
11036fi
11037
Note: See TracBrowser for help on using the repository browser.