Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/configure @ 3567

Last change on this file since 3567 was 3563, checked in by bensch, 20 years ago

orxonox/branches/levelloader: sorry. did not want to mess this up

  • Property svn:executable set to *
File size: 287.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.2.1-pre-alpha.
4#
5# Report bugs to <orxonox-dev at mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.2.1-pre-alpha'
273PACKAGE_STRING='orxonox 0.2.1-pre-alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE GTHREAD_LIBS GTHREAD_CFLAGS HAVE_GTHREAD_TRUE HAVE_GTHREAD_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.2.1-pre-alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.2.1-pre-alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --enable-sub-projects   also builds the subProjects while make from srcdir
870
871Optional Packages:
872  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874  --without-gtk           Prevents GTK from being loaded
875  --without-gthread       Prevents gThread from being loaded
876  --without-pthread       Prevents pthread from being loaded
877  --without-curl          Prevents libcURL from being loaded
878  --without-sdl-image     Prevents SDL_image from being loaded
879
880Some influential environment variables:
881  CXX         C++ compiler command
882  CXXFLAGS    C++ compiler flags
883  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884              nonstandard directory <lib dir>
885  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886              headers in a nonstandard directory <include dir>
887  CC          C compiler command
888  CFLAGS      C compiler flags
889  CPP         C preprocessor
890
891Use these variables to override the choices made by `configure' or to help
892it to find libraries and programs with nonstandard names/locations.
893
894Report bugs to <orxonox-dev at mail.datacore.ch>.
895_ACEOF
896fi
897
898if test "$ac_init_help" = "recursive"; then
899  # If there are subdirs, report their specific --help.
900  ac_popdir=`pwd`
901  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902    test -d $ac_dir || continue
903    ac_builddir=.
904
905if test "$ac_dir" != .; then
906  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907  # A "../" for each directory in $ac_dir_suffix.
908  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909else
910  ac_dir_suffix= ac_top_builddir=
911fi
912
913case $srcdir in
914  .)  # No --srcdir option.  We are building in place.
915    ac_srcdir=.
916    if test -z "$ac_top_builddir"; then
917       ac_top_srcdir=.
918    else
919       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920    fi ;;
921  [\\/]* | ?:[\\/]* )  # Absolute path.
922    ac_srcdir=$srcdir$ac_dir_suffix;
923    ac_top_srcdir=$srcdir ;;
924  *) # Relative path.
925    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926    ac_top_srcdir=$ac_top_builddir$srcdir ;;
927esac
928
929# Do not use `cd foo && pwd` to compute absolute paths, because
930# the directories may not exist.
931case `pwd` in
932.) ac_abs_builddir="$ac_dir";;
933*)
934  case "$ac_dir" in
935  .) ac_abs_builddir=`pwd`;;
936  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937  *) ac_abs_builddir=`pwd`/"$ac_dir";;
938  esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_builddir=${ac_top_builddir}.;;
942*)
943  case ${ac_top_builddir}. in
944  .) ac_abs_top_builddir=$ac_abs_builddir;;
945  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947  esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_srcdir=$ac_srcdir;;
951*)
952  case $ac_srcdir in
953  .) ac_abs_srcdir=$ac_abs_builddir;;
954  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956  esac;;
957esac
958case $ac_abs_builddir in
959.) ac_abs_top_srcdir=$ac_top_srcdir;;
960*)
961  case $ac_top_srcdir in
962  .) ac_abs_top_srcdir=$ac_abs_builddir;;
963  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965  esac;;
966esac
967
968    cd $ac_dir
969    # Check for guested configure; otherwise get Cygnus style configure.
970    if test -f $ac_srcdir/configure.gnu; then
971      echo
972      $SHELL $ac_srcdir/configure.gnu  --help=recursive
973    elif test -f $ac_srcdir/configure; then
974      echo
975      $SHELL $ac_srcdir/configure  --help=recursive
976    elif test -f $ac_srcdir/configure.ac ||
977           test -f $ac_srcdir/configure.in; then
978      echo
979      $ac_configure --help
980    else
981      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982    fi
983    cd $ac_popdir
984  done
985fi
986
987test -n "$ac_init_help" && exit 0
988if $ac_init_version; then
989  cat <<\_ACEOF
990orxonox configure 0.2.1-pre-alpha
991generated by GNU Autoconf 2.59
992
993Copyright (C) 2003 Free Software Foundation, Inc.
994This configure script is free software; the Free Software Foundation
995gives unlimited permission to copy, distribute and modify it.
996_ACEOF
997  exit 0
998fi
999exec 5>config.log
1000cat >&5 <<_ACEOF
1001This file contains any messages produced by compilers while
1002running configure, to aid debugging if configure makes a mistake.
1003
1004It was created by orxonox $as_me 0.2.1-pre-alpha, which was
1005generated by GNU Autoconf 2.59.  Invocation command line was
1006
1007  $ $0 $@
1008
1009_ACEOF
1010{
1011cat <<_ASUNAME
1012## --------- ##
1013## Platform. ##
1014## --------- ##
1015
1016hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033_ASUNAME
1034
1035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036for as_dir in $PATH
1037do
1038  IFS=$as_save_IFS
1039  test -z "$as_dir" && as_dir=.
1040  echo "PATH: $as_dir"
1041done
1042
1043} >&5
1044
1045cat >&5 <<_ACEOF
1046
1047
1048## ----------- ##
1049## Core tests. ##
1050## ----------- ##
1051
1052_ACEOF
1053
1054
1055# Keep a trace of the command line.
1056# Strip out --no-create and --no-recursion so they do not pile up.
1057# Strip out --silent because we don't want to record it for future runs.
1058# Also quote any args containing shell meta-characters.
1059# Make two passes to allow for proper duplicate-argument suppression.
1060ac_configure_args=
1061ac_configure_args0=
1062ac_configure_args1=
1063ac_sep=
1064ac_must_keep_next=false
1065for ac_pass in 1 2
1066do
1067  for ac_arg
1068  do
1069    case $ac_arg in
1070    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072    | -silent | --silent | --silen | --sile | --sil)
1073      continue ;;
1074    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076    esac
1077    case $ac_pass in
1078    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079    2)
1080      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081      if test $ac_must_keep_next = true; then
1082        ac_must_keep_next=false # Got value, back to normal.
1083      else
1084        case $ac_arg in
1085          *=* | --config-cache | -C | -disable-* | --disable-* \
1086          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088          | -with-* | --with-* | -without-* | --without-* | --x)
1089            case "$ac_configure_args0 " in
1090              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091            esac
1092            ;;
1093          -* ) ac_must_keep_next=true ;;
1094        esac
1095      fi
1096      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097      # Get rid of the leading space.
1098      ac_sep=" "
1099      ;;
1100    esac
1101  done
1102done
1103$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106# When interrupted or exit'd, cleanup temporary files, and complete
1107# config.log.  We remove comments because anyway the quotes in there
1108# would cause problems or look ugly.
1109# WARNING: Be sure not to use single quotes in there, as some shells,
1110# such as our DU 5.0 friend, will then `close' the trap.
1111trap 'exit_status=$?
1112  # Save into config.log some information that might help in debugging.
1113  {
1114    echo
1115
1116    cat <<\_ASBOX
1117## ---------------- ##
1118## Cache variables. ##
1119## ---------------- ##
1120_ASBOX
1121    echo
1122    # The following way of writing the cache mishandles newlines in values,
1123{
1124  (set) 2>&1 |
1125    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126    *ac_space=\ *)
1127      sed -n \
1128        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130      ;;
1131    *)
1132      sed -n \
1133        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134      ;;
1135    esac;
1136}
1137    echo
1138
1139    cat <<\_ASBOX
1140## ----------------- ##
1141## Output variables. ##
1142## ----------------- ##
1143_ASBOX
1144    echo
1145    for ac_var in $ac_subst_vars
1146    do
1147      eval ac_val=$`echo $ac_var`
1148      echo "$ac_var='"'"'$ac_val'"'"'"
1149    done | sort
1150    echo
1151
1152    if test -n "$ac_subst_files"; then
1153      cat <<\_ASBOX
1154## ------------- ##
1155## Output files. ##
1156## ------------- ##
1157_ASBOX
1158      echo
1159      for ac_var in $ac_subst_files
1160      do
1161        eval ac_val=$`echo $ac_var`
1162        echo "$ac_var='"'"'$ac_val'"'"'"
1163      done | sort
1164      echo
1165    fi
1166
1167    if test -s confdefs.h; then
1168      cat <<\_ASBOX
1169## ----------- ##
1170## confdefs.h. ##
1171## ----------- ##
1172_ASBOX
1173      echo
1174      sed "/^$/d" confdefs.h | sort
1175      echo
1176    fi
1177    test "$ac_signal" != 0 &&
1178      echo "$as_me: caught signal $ac_signal"
1179    echo "$as_me: exit $exit_status"
1180  } >&5
1181  rm -f core *.core &&
1182  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183    exit $exit_status
1184     ' 0
1185for ac_signal in 1 2 13 15; do
1186  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187done
1188ac_signal=0
1189
1190# confdefs.h avoids OS command line length limits that DEFS can exceed.
1191rm -rf conftest* confdefs.h
1192# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193echo >confdefs.h
1194
1195# Predefined preprocessor variables.
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_NAME "$PACKAGE_NAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_VERSION "$PACKAGE_VERSION"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_STRING "$PACKAGE_STRING"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219_ACEOF
1220
1221
1222# Let the site file select an alternate cache file if it wants to.
1223# Prefer explicitly selected file to automatically selected ones.
1224if test -z "$CONFIG_SITE"; then
1225  if test "x$prefix" != xNONE; then
1226    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227  else
1228    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229  fi
1230fi
1231for ac_site_file in $CONFIG_SITE; do
1232  if test -r "$ac_site_file"; then
1233    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234echo "$as_me: loading site script $ac_site_file" >&6;}
1235    sed 's/^/| /' "$ac_site_file" >&5
1236    . "$ac_site_file"
1237  fi
1238done
1239
1240if test -r "$cache_file"; then
1241  # Some versions of bash will fail to source /dev/null (special
1242  # files actually), so we avoid doing that.
1243  if test -f "$cache_file"; then
1244    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245echo "$as_me: loading cache $cache_file" >&6;}
1246    case $cache_file in
1247      [\\/]* | ?:[\\/]* ) . $cache_file;;
1248      *)                      . ./$cache_file;;
1249    esac
1250  fi
1251else
1252  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253echo "$as_me: creating cache $cache_file" >&6;}
1254  >$cache_file
1255fi
1256
1257# Check that the precious variables saved in the cache have kept the same
1258# value.
1259ac_cache_corrupted=false
1260for ac_var in `(set) 2>&1 |
1261               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263  eval ac_new_set=\$ac_env_${ac_var}_set
1264  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265  eval ac_new_val="\$ac_env_${ac_var}_value"
1266  case $ac_old_set,$ac_new_set in
1267    set,)
1268      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270      ac_cache_corrupted=: ;;
1271    ,set)
1272      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274      ac_cache_corrupted=: ;;
1275    ,);;
1276    *)
1277      if test "x$ac_old_val" != "x$ac_new_val"; then
1278        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281echo "$as_me:   former value:  $ac_old_val" >&2;}
1282        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283echo "$as_me:   current value: $ac_new_val" >&2;}
1284        ac_cache_corrupted=:
1285      fi;;
1286  esac
1287  # Pass precious variables to config.status.
1288  if test "$ac_new_set" = set; then
1289    case $ac_new_val in
1290    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292    *) ac_arg=$ac_var=$ac_new_val ;;
1293    esac
1294    case " $ac_configure_args " in
1295      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297    esac
1298  fi
1299done
1300if $ac_cache_corrupted; then
1301  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305   { (exit 1); exit 1; }; }
1306fi
1307
1308ac_ext=c
1309ac_cpp='$CPP $CPPFLAGS'
1310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341## Detect the canonical host and target build environment.
1342ac_aux_dir=
1343for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1344  if test -f $ac_dir/install-sh; then
1345    ac_aux_dir=$ac_dir
1346    ac_install_sh="$ac_aux_dir/install-sh -c"
1347    break
1348  elif test -f $ac_dir/install.sh; then
1349    ac_aux_dir=$ac_dir
1350    ac_install_sh="$ac_aux_dir/install.sh -c"
1351    break
1352  elif test -f $ac_dir/shtool; then
1353    ac_aux_dir=$ac_dir
1354    ac_install_sh="$ac_aux_dir/shtool install -c"
1355    break
1356  fi
1357done
1358if test -z "$ac_aux_dir"; then
1359  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1360echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1361   { (exit 1); exit 1; }; }
1362fi
1363ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1364ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1365ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1366
1367# Make sure we can run config.sub.
1368$ac_config_sub sun4 >/dev/null 2>&1 ||
1369  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1370echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1371   { (exit 1); exit 1; }; }
1372
1373echo "$as_me:$LINENO: checking build system type" >&5
1374echo $ECHO_N "checking build system type... $ECHO_C" >&6
1375if test "${ac_cv_build+set}" = set; then
1376  echo $ECHO_N "(cached) $ECHO_C" >&6
1377else
1378  ac_cv_build_alias=$build_alias
1379test -z "$ac_cv_build_alias" &&
1380  ac_cv_build_alias=`$ac_config_guess`
1381test -z "$ac_cv_build_alias" &&
1382  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1383echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1384   { (exit 1); exit 1; }; }
1385ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1386  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1387echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1388   { (exit 1); exit 1; }; }
1389
1390fi
1391echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1392echo "${ECHO_T}$ac_cv_build" >&6
1393build=$ac_cv_build
1394build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397
1398
1399echo "$as_me:$LINENO: checking host system type" >&5
1400echo $ECHO_N "checking host system type... $ECHO_C" >&6
1401if test "${ac_cv_host+set}" = set; then
1402  echo $ECHO_N "(cached) $ECHO_C" >&6
1403else
1404  ac_cv_host_alias=$host_alias
1405test -z "$ac_cv_host_alias" &&
1406  ac_cv_host_alias=$ac_cv_build_alias
1407ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1408  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1409echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1410   { (exit 1); exit 1; }; }
1411
1412fi
1413echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1414echo "${ECHO_T}$ac_cv_host" >&6
1415host=$ac_cv_host
1416host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419
1420
1421echo "$as_me:$LINENO: checking target system type" >&5
1422echo $ECHO_N "checking target system type... $ECHO_C" >&6
1423if test "${ac_cv_target+set}" = set; then
1424  echo $ECHO_N "(cached) $ECHO_C" >&6
1425else
1426  ac_cv_target_alias=$target_alias
1427test "x$ac_cv_target_alias" = "x" &&
1428  ac_cv_target_alias=$ac_cv_host_alias
1429ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1430  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1431echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1432   { (exit 1); exit 1; }; }
1433
1434fi
1435echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1436echo "${ECHO_T}$ac_cv_target" >&6
1437target=$ac_cv_target
1438target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441
1442
1443# The aliases save the names the user supplied, while $host etc.
1444# will get canonicalized.
1445test -n "$target_alias" &&
1446  test "$program_prefix$program_suffix$program_transform_name" = \
1447    NONENONEs,x,x, &&
1448  program_prefix=${target_alias}-
1449
1450am__api_version="1.8"
1451# Find a good install program.  We prefer a C program (faster),
1452# so one script is as good as another.  But avoid the broken or
1453# incompatible versions:
1454# SysV /etc/install, /usr/sbin/install
1455# SunOS /usr/etc/install
1456# IRIX /sbin/install
1457# AIX /bin/install
1458# AmigaOS /C/install, which installs bootblocks on floppy discs
1459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462# OS/2's system install, which has a completely different semantic
1463# ./install, which can be erroneously created by make from ./install.sh.
1464echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1465echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1466if test -z "$INSTALL"; then
1467if test "${ac_cv_path_install+set}" = set; then
1468  echo $ECHO_N "(cached) $ECHO_C" >&6
1469else
1470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471for as_dir in $PATH
1472do
1473  IFS=$as_save_IFS
1474  test -z "$as_dir" && as_dir=.
1475  # Account for people who put trailing slashes in PATH elements.
1476case $as_dir/ in
1477  ./ | .// | /cC/* | \
1478  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1479  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1480  /usr/ucb/* ) ;;
1481  *)
1482    # OSF1 and SCO ODT 3.0 have their own names for install.
1483    # Don't use installbsd from OSF since it installs stuff as root
1484    # by default.
1485    for ac_prog in ginstall scoinst install; do
1486      for ac_exec_ext in '' $ac_executable_extensions; do
1487        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1488          if test $ac_prog = install &&
1489            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1490            # AIX install.  It has an incompatible calling convention.
1491            :
1492          elif test $ac_prog = install &&
1493            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494            # program-specific install script used by HP pwplus--don't use.
1495            :
1496          else
1497            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1498            break 3
1499          fi
1500        fi
1501      done
1502    done
1503    ;;
1504esac
1505done
1506
1507
1508fi
1509  if test "${ac_cv_path_install+set}" = set; then
1510    INSTALL=$ac_cv_path_install
1511  else
1512    # As a last resort, use the slow shell script.  We don't cache a
1513    # path for INSTALL within a source directory, because that will
1514    # break other packages using the cache if that directory is
1515    # removed, or if the path is relative.
1516    INSTALL=$ac_install_sh
1517  fi
1518fi
1519echo "$as_me:$LINENO: result: $INSTALL" >&5
1520echo "${ECHO_T}$INSTALL" >&6
1521
1522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1523# It thinks the first close brace ends the variable substitution.
1524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1525
1526test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1527
1528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1529
1530echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1531echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1532# Just in case
1533sleep 1
1534echo timestamp > conftest.file
1535# Do `set' in a subshell so we don't clobber the current shell's
1536# arguments.  Must try -L first in case configure is actually a
1537# symlink; some systems play weird games with the mod time of symlinks
1538# (eg FreeBSD returns the mod time of the symlink's containing
1539# directory).
1540if (
1541   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1542   if test "$*" = "X"; then
1543      # -L didn't work.
1544      set X `ls -t $srcdir/configure conftest.file`
1545   fi
1546   rm -f conftest.file
1547   if test "$*" != "X $srcdir/configure conftest.file" \
1548      && test "$*" != "X conftest.file $srcdir/configure"; then
1549
1550      # If neither matched, then we have a broken ls.  This can happen
1551      # if, for instance, CONFIG_SHELL is bash and it inherits a
1552      # broken ls alias from the environment.  This has actually
1553      # happened.  Such a system could not be considered "sane".
1554      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1555alias in your environment" >&5
1556echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1557alias in your environment" >&2;}
1558   { (exit 1); exit 1; }; }
1559   fi
1560
1561   test "$2" = conftest.file
1562   )
1563then
1564   # Ok.
1565   :
1566else
1567   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1568Check your system clock" >&5
1569echo "$as_me: error: newly created file is older than distributed files!
1570Check your system clock" >&2;}
1571   { (exit 1); exit 1; }; }
1572fi
1573echo "$as_me:$LINENO: result: yes" >&5
1574echo "${ECHO_T}yes" >&6
1575test "$program_prefix" != NONE &&
1576  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1577# Use a double $ so make ignores it.
1578test "$program_suffix" != NONE &&
1579  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1580# Double any \ or $.  echo might interpret backslashes.
1581# By default was `s,x,x', remove it if useless.
1582cat <<\_ACEOF >conftest.sed
1583s/[\\$]/&&/g;s/;s,x,x,$//
1584_ACEOF
1585program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1586rm conftest.sed
1587
1588# expand $ac_aux_dir to an absolute path
1589am_aux_dir=`cd $ac_aux_dir && pwd`
1590
1591test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1592# Use eval to expand $SHELL
1593if eval "$MISSING --run true"; then
1594  am_missing_run="$MISSING --run "
1595else
1596  am_missing_run=
1597  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1598echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1599fi
1600
1601if mkdir -p -- . 2>/dev/null; then
1602  # Keeping the `.' argument allows $(mkdir_p) to be used without
1603  # argument.  Indeed, we sometimes output rules like
1604  #   $(mkdir_p) $(somedir)
1605  # where $(somedir) is conditionally defined.
1606  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1607  # expensive solution, as it forces Make to start a sub-shell.)
1608  mkdir_p='mkdir -p -- .'
1609else
1610  # On NextStep and OpenStep, the `mkdir' command does not
1611  # recognize any option.  It will interpret all options as
1612  # directories to create, and then abort because `.' already
1613  # exists.
1614  for d in ./-p ./--;
1615  do
1616    test -d $d && rmdir $d
1617  done
1618  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1619  if test -f "$ac_aux_dir/mkinstalldirs"; then
1620    mkdir_p='$(mkinstalldirs)'
1621  else
1622    mkdir_p='$(install_sh) -d'
1623  fi
1624fi
1625
1626for ac_prog in gawk mawk nawk awk
1627do
1628  # Extract the first word of "$ac_prog", so it can be a program name with args.
1629set dummy $ac_prog; ac_word=$2
1630echo "$as_me:$LINENO: checking for $ac_word" >&5
1631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632if test "${ac_cv_prog_AWK+set}" = set; then
1633  echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635  if test -n "$AWK"; then
1636  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1637else
1638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641  IFS=$as_save_IFS
1642  test -z "$as_dir" && as_dir=.
1643  for ac_exec_ext in '' $ac_executable_extensions; do
1644  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645    ac_cv_prog_AWK="$ac_prog"
1646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647    break 2
1648  fi
1649done
1650done
1651
1652fi
1653fi
1654AWK=$ac_cv_prog_AWK
1655if test -n "$AWK"; then
1656  echo "$as_me:$LINENO: result: $AWK" >&5
1657echo "${ECHO_T}$AWK" >&6
1658else
1659  echo "$as_me:$LINENO: result: no" >&5
1660echo "${ECHO_T}no" >&6
1661fi
1662
1663  test -n "$AWK" && break
1664done
1665
1666echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1667echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1668set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1669if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1670  echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672  cat >conftest.make <<\_ACEOF
1673all:
1674        @echo 'ac_maketemp="$(MAKE)"'
1675_ACEOF
1676# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1677eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1678if test -n "$ac_maketemp"; then
1679  eval ac_cv_prog_make_${ac_make}_set=yes
1680else
1681  eval ac_cv_prog_make_${ac_make}_set=no
1682fi
1683rm -f conftest.make
1684fi
1685if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1686  echo "$as_me:$LINENO: result: yes" >&5
1687echo "${ECHO_T}yes" >&6
1688  SET_MAKE=
1689else
1690  echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692  SET_MAKE="MAKE=${MAKE-make}"
1693fi
1694
1695rm -rf .tst 2>/dev/null
1696mkdir .tst 2>/dev/null
1697if test -d .tst; then
1698  am__leading_dot=.
1699else
1700  am__leading_dot=_
1701fi
1702rmdir .tst 2>/dev/null
1703
1704# test to see if srcdir already configured
1705if test "`cd $srcdir && pwd`" != "`pwd`" &&
1706   test -f $srcdir/config.status; then
1707  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1708echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1709   { (exit 1); exit 1; }; }
1710fi
1711
1712# test whether we have cygpath
1713if test -z "$CYGPATH_W"; then
1714  if (cygpath --version) >/dev/null 2>/dev/null; then
1715    CYGPATH_W='cygpath -w'
1716  else
1717    CYGPATH_W=echo
1718  fi
1719fi
1720
1721
1722# Define the identity of the package.
1723 PACKAGE='orxonox'
1724 VERSION='0.2.1-pre-alpha'
1725
1726
1727cat >>confdefs.h <<_ACEOF
1728#define PACKAGE "$PACKAGE"
1729_ACEOF
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define VERSION "$VERSION"
1734_ACEOF
1735
1736# Some tools Automake needs.
1737
1738ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1739
1740
1741AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1742
1743
1744AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1745
1746
1747AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1748
1749
1750MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1751
1752
1753AMTAR=${AMTAR-"${am_missing_run}tar"}
1754
1755install_sh=${install_sh-"$am_aux_dir/install-sh"}
1756
1757# Installed binaries are usually stripped using `strip' when the user
1758# run `make install-strip'.  However `strip' might not be the right
1759# tool to use in cross-compilation environments, therefore Automake
1760# will honor the `STRIP' environment variable to overrule this program.
1761if test "$cross_compiling" != no; then
1762  if test -n "$ac_tool_prefix"; then
1763  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1764set dummy ${ac_tool_prefix}strip; ac_word=$2
1765echo "$as_me:$LINENO: checking for $ac_word" >&5
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_STRIP+set}" = set; then
1768  echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770  if test -n "$STRIP"; then
1771  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1772else
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776  IFS=$as_save_IFS
1777  test -z "$as_dir" && as_dir=.
1778  for ac_exec_ext in '' $ac_executable_extensions; do
1779  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782    break 2
1783  fi
1784done
1785done
1786
1787fi
1788fi
1789STRIP=$ac_cv_prog_STRIP
1790if test -n "$STRIP"; then
1791  echo "$as_me:$LINENO: result: $STRIP" >&5
1792echo "${ECHO_T}$STRIP" >&6
1793else
1794  echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
1796fi
1797
1798fi
1799if test -z "$ac_cv_prog_STRIP"; then
1800  ac_ct_STRIP=$STRIP
1801  # Extract the first word of "strip", so it can be a program name with args.
1802set dummy strip; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1806  echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808  if test -n "$ac_ct_STRIP"; then
1809  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814  IFS=$as_save_IFS
1815  test -z "$as_dir" && as_dir=.
1816  for ac_exec_ext in '' $ac_executable_extensions; do
1817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818    ac_cv_prog_ac_ct_STRIP="strip"
1819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820    break 2
1821  fi
1822done
1823done
1824
1825  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1826fi
1827fi
1828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1829if test -n "$ac_ct_STRIP"; then
1830  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1831echo "${ECHO_T}$ac_ct_STRIP" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837  STRIP=$ac_ct_STRIP
1838else
1839  STRIP="$ac_cv_prog_STRIP"
1840fi
1841
1842fi
1843INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1844
1845# We need awk for the "check" target.  The system "awk" is bad on
1846# some platforms.
1847
1848
1849
1850
1851
1852          ac_config_headers="$ac_config_headers config.h"
1853
1854
1855#########################
1856## Checks for programs ##
1857#########################
1858ac_ext=cc
1859ac_cpp='$CXXCPP $CPPFLAGS'
1860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1863if test -n "$ac_tool_prefix"; then
1864  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1865  do
1866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_CXX+set}" = set; then
1871  echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873  if test -n "$CXX"; then
1874  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1875else
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879  IFS=$as_save_IFS
1880  test -z "$as_dir" && as_dir=.
1881  for ac_exec_ext in '' $ac_executable_extensions; do
1882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885    break 2
1886  fi
1887done
1888done
1889
1890fi
1891fi
1892CXX=$ac_cv_prog_CXX
1893if test -n "$CXX"; then
1894  echo "$as_me:$LINENO: result: $CXX" >&5
1895echo "${ECHO_T}$CXX" >&6
1896else
1897  echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901    test -n "$CXX" && break
1902  done
1903fi
1904if test -z "$CXX"; then
1905  ac_ct_CXX=$CXX
1906  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1907do
1908  # Extract the first word of "$ac_prog", so it can be a program name with args.
1909set dummy $ac_prog; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1913  echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915  if test -n "$ac_ct_CXX"; then
1916  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1917else
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  test -z "$as_dir" && as_dir=.
1923  for ac_exec_ext in '' $ac_executable_extensions; do
1924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925    ac_cv_prog_ac_ct_CXX="$ac_prog"
1926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927    break 2
1928  fi
1929done
1930done
1931
1932fi
1933fi
1934ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1935if test -n "$ac_ct_CXX"; then
1936  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1937echo "${ECHO_T}$ac_ct_CXX" >&6
1938else
1939  echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
1941fi
1942
1943  test -n "$ac_ct_CXX" && break
1944done
1945test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1946
1947  CXX=$ac_ct_CXX
1948fi
1949
1950
1951# Provide some information about the compiler.
1952echo "$as_me:$LINENO:" \
1953     "checking for C++ compiler version" >&5
1954ac_compiler=`set X $ac_compile; echo $2`
1955{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1956  (eval $ac_compiler --version </dev/null >&5) 2>&5
1957  ac_status=$?
1958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959  (exit $ac_status); }
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1961  (eval $ac_compiler -v </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
1971cat >conftest.$ac_ext <<_ACEOF
1972/* confdefs.h.  */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h.  */
1977
1978int
1979main ()
1980{
1981
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986ac_clean_files_save=$ac_clean_files
1987ac_clean_files="$ac_clean_files a.out a.exe b.out"
1988# Try to create an executable without -o first, disregard a.out.
1989# It will help us diagnose broken compilers, and finding out an intuition
1990# of exeext.
1991echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1992echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1993ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1994if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1995  (eval $ac_link_default) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }; then
1999  # Find the output, starting from the most likely.  This scheme is
2000# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2001# resort.
2002
2003# Be careful to initialize this variable, since it used to be cached.
2004# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2005ac_cv_exeext=
2006# b.out is created by i960 compilers.
2007for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2008do
2009  test -f "$ac_file" || continue
2010  case $ac_file in
2011    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2012        ;;
2013    conftest.$ac_ext )
2014        # This is the source file.
2015        ;;
2016    [ab].out )
2017        # We found the default executable, but exeext='' is most
2018        # certainly right.
2019        break;;
2020    *.* )
2021        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2022        # FIXME: I believe we export ac_cv_exeext for Libtool,
2023        # but it would be cool to find out if it's true.  Does anybody
2024        # maintain Libtool? --akim.
2025        export ac_cv_exeext
2026        break;;
2027    * )
2028        break;;
2029  esac
2030done
2031else
2032  echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2036See \`config.log' for more details." >&5
2037echo "$as_me: error: C++ compiler cannot create executables
2038See \`config.log' for more details." >&2;}
2039   { (exit 77); exit 77; }; }
2040fi
2041
2042ac_exeext=$ac_cv_exeext
2043echo "$as_me:$LINENO: result: $ac_file" >&5
2044echo "${ECHO_T}$ac_file" >&6
2045
2046# Check the compiler produces executables we can run.  If not, either
2047# the compiler is broken, or we cross compile.
2048echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2049echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2050# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051# If not cross compiling, check that we can run a simple program.
2052if test "$cross_compiling" != yes; then
2053  if { ac_try='./$ac_file'
2054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055  (eval $ac_try) 2>&5
2056  ac_status=$?
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); }; }; then
2059    cross_compiling=no
2060  else
2061    if test "$cross_compiling" = maybe; then
2062        cross_compiling=yes
2063    else
2064        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2065If you meant to cross compile, use \`--host'.
2066See \`config.log' for more details." >&5
2067echo "$as_me: error: cannot run C++ compiled programs.
2068If you meant to cross compile, use \`--host'.
2069See \`config.log' for more details." >&2;}
2070   { (exit 1); exit 1; }; }
2071    fi
2072  fi
2073fi
2074echo "$as_me:$LINENO: result: yes" >&5
2075echo "${ECHO_T}yes" >&6
2076
2077rm -f a.out a.exe conftest$ac_cv_exeext b.out
2078ac_clean_files=$ac_clean_files_save
2079# Check the compiler produces executables we can run.  If not, either
2080# the compiler is broken, or we cross compile.
2081echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2082echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2083echo "$as_me:$LINENO: result: $cross_compiling" >&5
2084echo "${ECHO_T}$cross_compiling" >&6
2085
2086echo "$as_me:$LINENO: checking for suffix of executables" >&5
2087echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2089  (eval $ac_link) 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }; then
2093  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2094# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2095# work properly (i.e., refer to `conftest.exe'), while it won't with
2096# `rm'.
2097for ac_file in conftest.exe conftest conftest.*; do
2098  test -f "$ac_file" || continue
2099  case $ac_file in
2100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2101    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102          export ac_cv_exeext
2103          break;;
2104    * ) break;;
2105  esac
2106done
2107else
2108  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2111See \`config.log' for more details." >&2;}
2112   { (exit 1); exit 1; }; }
2113fi
2114
2115rm -f conftest$ac_cv_exeext
2116echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2117echo "${ECHO_T}$ac_cv_exeext" >&6
2118
2119rm -f conftest.$ac_ext
2120EXEEXT=$ac_cv_exeext
2121ac_exeext=$EXEEXT
2122echo "$as_me:$LINENO: checking for suffix of object files" >&5
2123echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2124if test "${ac_cv_objext+set}" = set; then
2125  echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127  cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h.  */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h.  */
2133
2134int
2135main ()
2136{
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142rm -f conftest.o conftest.obj
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144  (eval $ac_compile) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }; then
2148  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2149  case $ac_file in
2150    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2151    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2152       break;;
2153  esac
2154done
2155else
2156  echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: cannot compute suffix of object files: cannot compile
2162See \`config.log' for more details." >&2;}
2163   { (exit 1); exit 1; }; }
2164fi
2165
2166rm -f conftest.$ac_cv_objext conftest.$ac_ext
2167fi
2168echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2169echo "${ECHO_T}$ac_cv_objext" >&6
2170OBJEXT=$ac_cv_objext
2171ac_objext=$OBJEXT
2172echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2173echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2174if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2175  echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177  cat >conftest.$ac_ext <<_ACEOF
2178/* confdefs.h.  */
2179_ACEOF
2180cat confdefs.h >>conftest.$ac_ext
2181cat >>conftest.$ac_ext <<_ACEOF
2182/* end confdefs.h.  */
2183
2184int
2185main ()
2186{
2187#ifndef __GNUC__
2188       choke me
2189#endif
2190
2191  ;
2192  return 0;
2193}
2194_ACEOF
2195rm -f conftest.$ac_objext
2196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197  (eval $ac_compile) 2>conftest.er1
2198  ac_status=$?
2199  grep -v '^ *+' conftest.er1 >conftest.err
2200  rm -f conftest.er1
2201  cat conftest.err >&5
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); } &&
2204         { ac_try='test -z "$ac_cxx_werror_flag"
2205                         || test ! -s conftest.err'
2206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207  (eval $ac_try) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; } &&
2211         { ac_try='test -s conftest.$ac_objext'
2212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213  (eval $ac_try) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; }; then
2217  ac_compiler_gnu=yes
2218else
2219  echo "$as_me: failed program was:" >&5
2220sed 's/^/| /' conftest.$ac_ext >&5
2221
2222ac_compiler_gnu=no
2223fi
2224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2226
2227fi
2228echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2229echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2230GXX=`test $ac_compiler_gnu = yes && echo yes`
2231ac_test_CXXFLAGS=${CXXFLAGS+set}
2232ac_save_CXXFLAGS=$CXXFLAGS
2233CXXFLAGS="-g"
2234echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2235echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2236if test "${ac_cv_prog_cxx_g+set}" = set; then
2237  echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239  cat >conftest.$ac_ext <<_ACEOF
2240/* confdefs.h.  */
2241_ACEOF
2242cat confdefs.h >>conftest.$ac_ext
2243cat >>conftest.$ac_ext <<_ACEOF
2244/* end confdefs.h.  */
2245
2246int
2247main ()
2248{
2249
2250  ;
2251  return 0;
2252}
2253_ACEOF
2254rm -f conftest.$ac_objext
2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256  (eval $ac_compile) 2>conftest.er1
2257  ac_status=$?
2258  grep -v '^ *+' conftest.er1 >conftest.err
2259  rm -f conftest.er1
2260  cat conftest.err >&5
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); } &&
2263         { ac_try='test -z "$ac_cxx_werror_flag"
2264                         || test ! -s conftest.err'
2265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266  (eval $ac_try) 2>&5
2267  ac_status=$?
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); }; } &&
2270         { ac_try='test -s conftest.$ac_objext'
2271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272  (eval $ac_try) 2>&5
2273  ac_status=$?
2274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275  (exit $ac_status); }; }; then
2276  ac_cv_prog_cxx_g=yes
2277else
2278  echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281ac_cv_prog_cxx_g=no
2282fi
2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284fi
2285echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2286echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2287if test "$ac_test_CXXFLAGS" = set; then
2288  CXXFLAGS=$ac_save_CXXFLAGS
2289elif test $ac_cv_prog_cxx_g = yes; then
2290  if test "$GXX" = yes; then
2291    CXXFLAGS="-g -O2"
2292  else
2293    CXXFLAGS="-g"
2294  fi
2295else
2296  if test "$GXX" = yes; then
2297    CXXFLAGS="-O2"
2298  else
2299    CXXFLAGS=
2300  fi
2301fi
2302for ac_declaration in \
2303   '' \
2304   'extern "C" void std::exit (int) throw (); using std::exit;' \
2305   'extern "C" void std::exit (int); using std::exit;' \
2306   'extern "C" void exit (int) throw ();' \
2307   'extern "C" void exit (int);' \
2308   'void exit (int);'
2309do
2310  cat >conftest.$ac_ext <<_ACEOF
2311/* confdefs.h.  */
2312_ACEOF
2313cat confdefs.h >>conftest.$ac_ext
2314cat >>conftest.$ac_ext <<_ACEOF
2315/* end confdefs.h.  */
2316$ac_declaration
2317#include <stdlib.h>
2318int
2319main ()
2320{
2321exit (42);
2322  ;
2323  return 0;
2324}
2325_ACEOF
2326rm -f conftest.$ac_objext
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328  (eval $ac_compile) 2>conftest.er1
2329  ac_status=$?
2330  grep -v '^ *+' conftest.er1 >conftest.err
2331  rm -f conftest.er1
2332  cat conftest.err >&5
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); } &&
2335         { ac_try='test -z "$ac_cxx_werror_flag"
2336                         || test ! -s conftest.err'
2337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338  (eval $ac_try) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; } &&
2342         { ac_try='test -s conftest.$ac_objext'
2343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344  (eval $ac_try) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; }; then
2348  :
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353continue
2354fi
2355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356  cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h.  */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h.  */
2362$ac_declaration
2363int
2364main ()
2365{
2366exit (42);
2367  ;
2368  return 0;
2369}
2370_ACEOF
2371rm -f conftest.$ac_objext
2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373  (eval $ac_compile) 2>conftest.er1
2374  ac_status=$?
2375  grep -v '^ *+' conftest.er1 >conftest.err
2376  rm -f conftest.er1
2377  cat conftest.err >&5
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); } &&
2380         { ac_try='test -z "$ac_cxx_werror_flag"
2381                         || test ! -s conftest.err'
2382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383  (eval $ac_try) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; } &&
2387         { ac_try='test -s conftest.$ac_objext'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; }; then
2393  break
2394else
2395  echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398fi
2399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400done
2401rm -f conftest*
2402if test -n "$ac_declaration"; then
2403  echo '#ifdef __cplusplus' >>confdefs.h
2404  echo $ac_declaration      >>confdefs.h
2405  echo '#endif'             >>confdefs.h
2406fi
2407
2408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413DEPDIR="${am__leading_dot}deps"
2414
2415          ac_config_commands="$ac_config_commands depfiles"
2416
2417
2418am_make=${MAKE-make}
2419cat > confinc << 'END'
2420am__doit:
2421        @echo done
2422.PHONY: am__doit
2423END
2424# If we don't find an include directive, just comment out the code.
2425echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2426echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2427am__include="#"
2428am__quote=
2429_am_result=none
2430# First try GNU make style include.
2431echo "include confinc" > confmf
2432# We grep out `Entering directory' and `Leaving directory'
2433# messages which can occur if `w' ends up in MAKEFLAGS.
2434# In particular we don't look at `^make:' because GNU make might
2435# be invoked under some other name (usually "gmake"), in which
2436# case it prints its new name instead of `make'.
2437if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2438   am__include=include
2439   am__quote=
2440   _am_result=GNU
2441fi
2442# Now try BSD make style include.
2443if test "$am__include" = "#"; then
2444   echo '.include "confinc"' > confmf
2445   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2446      am__include=.include
2447      am__quote="\""
2448      _am_result=BSD
2449   fi
2450fi
2451
2452
2453echo "$as_me:$LINENO: result: $_am_result" >&5
2454echo "${ECHO_T}$_am_result" >&6
2455rm -f confinc confmf
2456
2457# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2458if test "${enable_dependency_tracking+set}" = set; then
2459  enableval="$enable_dependency_tracking"
2460
2461fi;
2462if test "x$enable_dependency_tracking" != xno; then
2463  am_depcomp="$ac_aux_dir/depcomp"
2464  AMDEPBACKSLASH='\'
2465fi
2466
2467
2468if test "x$enable_dependency_tracking" != xno; then
2469  AMDEP_TRUE=
2470  AMDEP_FALSE='#'
2471else
2472  AMDEP_TRUE='#'
2473  AMDEP_FALSE=
2474fi
2475
2476
2477
2478
2479depcc="$CXX"  am_compiler_list=
2480
2481echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2482echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2483if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2484  echo $ECHO_N "(cached) $ECHO_C" >&6
2485else
2486  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2487  # We make a subdir and do the tests there.  Otherwise we can end up
2488  # making bogus files that we don't know about and never remove.  For
2489  # instance it was reported that on HP-UX the gcc test will end up
2490  # making a dummy file named `D' -- because `-MD' means `put the output
2491  # in D'.
2492  mkdir conftest.dir
2493  # Copy depcomp to subdir because otherwise we won't find it if we're
2494  # using a relative directory.
2495  cp "$am_depcomp" conftest.dir
2496  cd conftest.dir
2497  # We will build objects and dependencies in a subdirectory because
2498  # it helps to detect inapplicable dependency modes.  For instance
2499  # both Tru64's cc and ICC support -MD to output dependencies as a
2500  # side effect of compilation, but ICC will put the dependencies in
2501  # the current directory while Tru64 will put them in the object
2502  # directory.
2503  mkdir sub
2504
2505  am_cv_CXX_dependencies_compiler_type=none
2506  if test "$am_compiler_list" = ""; then
2507     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2508  fi
2509  for depmode in $am_compiler_list; do
2510    # Setup a source with many dependencies, because some compilers
2511    # like to wrap large dependency lists on column 80 (with \), and
2512    # we should not choose a depcomp mode which is confused by this.
2513    #
2514    # We need to recreate these files for each test, as the compiler may
2515    # overwrite some of them when testing with obscure command lines.
2516    # This happens at least with the AIX C compiler.
2517    : > sub/conftest.c
2518    for i in 1 2 3 4 5 6; do
2519      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2520      : > sub/conftst$i.h
2521    done
2522    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2523
2524    case $depmode in
2525    nosideeffect)
2526      # after this tag, mechanisms are not by side-effect, so they'll
2527      # only be used when explicitly requested
2528      if test "x$enable_dependency_tracking" = xyes; then
2529        continue
2530      else
2531        break
2532      fi
2533      ;;
2534    none) break ;;
2535    esac
2536    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2537    # mode.  It turns out that the SunPro C++ compiler does not properly
2538    # handle `-M -o', and we need to detect this.
2539    if depmode=$depmode \
2540       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2542       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2543         >/dev/null 2>conftest.err &&
2544       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2545       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2546       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2547      # icc doesn't choke on unknown options, it will just issue warnings
2548      # (even with -Werror).  So we grep stderr for any message
2549      # that says an option was ignored.
2550      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2551        am_cv_CXX_dependencies_compiler_type=$depmode
2552        break
2553      fi
2554    fi
2555  done
2556
2557  cd ..
2558  rm -rf conftest.dir
2559else
2560  am_cv_CXX_dependencies_compiler_type=none
2561fi
2562
2563fi
2564echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2565echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2566CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2567
2568
2569
2570if
2571  test "x$enable_dependency_tracking" != xno \
2572  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2573  am__fastdepCXX_TRUE=
2574  am__fastdepCXX_FALSE='#'
2575else
2576  am__fastdepCXX_TRUE='#'
2577  am__fastdepCXX_FALSE=
2578fi
2579
2580
2581ac_ext=c
2582ac_cpp='$CPP $CPPFLAGS'
2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586if test -n "$ac_tool_prefix"; then
2587  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2588set dummy ${ac_tool_prefix}gcc; ac_word=$2
2589echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2591if test "${ac_cv_prog_CC+set}" = set; then
2592  echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594  if test -n "$CC"; then
2595  ac_cv_prog_CC="$CC" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600  IFS=$as_save_IFS
2601  test -z "$as_dir" && as_dir=.
2602  for ac_exec_ext in '' $ac_executable_extensions; do
2603  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606    break 2
2607  fi
2608done
2609done
2610
2611fi
2612fi
2613CC=$ac_cv_prog_CC
2614if test -n "$CC"; then
2615  echo "$as_me:$LINENO: result: $CC" >&5
2616echo "${ECHO_T}$CC" >&6
2617else
2618  echo "$as_me:$LINENO: result: no" >&5
2619echo "${ECHO_T}no" >&6
2620fi
2621
2622fi
2623if test -z "$ac_cv_prog_CC"; then
2624  ac_ct_CC=$CC
2625  # Extract the first word of "gcc", so it can be a program name with args.
2626set dummy gcc; ac_word=$2
2627echo "$as_me:$LINENO: checking for $ac_word" >&5
2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2629if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630  echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632  if test -n "$ac_ct_CC"; then
2633  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640  for ac_exec_ext in '' $ac_executable_extensions; do
2641  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642    ac_cv_prog_ac_ct_CC="gcc"
2643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644    break 2
2645  fi
2646done
2647done
2648
2649fi
2650fi
2651ac_ct_CC=$ac_cv_prog_ac_ct_CC
2652if test -n "$ac_ct_CC"; then
2653  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2654echo "${ECHO_T}$ac_ct_CC" >&6
2655else
2656  echo "$as_me:$LINENO: result: no" >&5
2657echo "${ECHO_T}no" >&6
2658fi
2659
2660  CC=$ac_ct_CC
2661else
2662  CC="$ac_cv_prog_CC"
2663fi
2664
2665if test -z "$CC"; then
2666  if test -n "$ac_tool_prefix"; then
2667  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2668set dummy ${ac_tool_prefix}cc; ac_word=$2
2669echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671if test "${ac_cv_prog_CC+set}" = set; then
2672  echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674  if test -n "$CC"; then
2675  ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682  for ac_exec_ext in '' $ac_executable_extensions; do
2683  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684    ac_cv_prog_CC="${ac_tool_prefix}cc"
2685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689done
2690
2691fi
2692fi
2693CC=$ac_cv_prog_CC
2694if test -n "$CC"; then
2695  echo "$as_me:$LINENO: result: $CC" >&5
2696echo "${ECHO_T}$CC" >&6
2697else
2698  echo "$as_me:$LINENO: result: no" >&5
2699echo "${ECHO_T}no" >&6
2700fi
2701
2702fi
2703if test -z "$ac_cv_prog_CC"; then
2704  ac_ct_CC=$CC
2705  # Extract the first word of "cc", so it can be a program name with args.
2706set dummy cc; ac_word=$2
2707echo "$as_me:$LINENO: checking for $ac_word" >&5
2708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2709if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2710  echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712  if test -n "$ac_ct_CC"; then
2713  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720  for ac_exec_ext in '' $ac_executable_extensions; do
2721  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722    ac_cv_prog_ac_ct_CC="cc"
2723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727done
2728
2729fi
2730fi
2731ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732if test -n "$ac_ct_CC"; then
2733  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2734echo "${ECHO_T}$ac_ct_CC" >&6
2735else
2736  echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738fi
2739
2740  CC=$ac_ct_CC
2741else
2742  CC="$ac_cv_prog_CC"
2743fi
2744
2745fi
2746if test -z "$CC"; then
2747  # Extract the first word of "cc", so it can be a program name with args.
2748set dummy cc; ac_word=$2
2749echo "$as_me:$LINENO: checking for $ac_word" >&5
2750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751if test "${ac_cv_prog_CC+set}" = set; then
2752  echo $ECHO_N "(cached) $ECHO_C" >&6
2753else
2754  if test -n "$CC"; then
2755  ac_cv_prog_CC="$CC" # Let the user override the test.
2756else
2757  ac_prog_rejected=no
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761  IFS=$as_save_IFS
2762  test -z "$as_dir" && as_dir=.
2763  for ac_exec_ext in '' $ac_executable_extensions; do
2764  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2766       ac_prog_rejected=yes
2767       continue
2768     fi
2769    ac_cv_prog_CC="cc"
2770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771    break 2
2772  fi
2773done
2774done
2775
2776if test $ac_prog_rejected = yes; then
2777  # We found a bogon in the path, so make sure we never use it.
2778  set dummy $ac_cv_prog_CC
2779  shift
2780  if test $# != 0; then
2781    # We chose a different compiler from the bogus one.
2782    # However, it has the same basename, so the bogon will be chosen
2783    # first if we set CC to just the basename; use the full file name.
2784    shift
2785    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2786  fi
2787fi
2788fi
2789fi
2790CC=$ac_cv_prog_CC
2791if test -n "$CC"; then
2792  echo "$as_me:$LINENO: result: $CC" >&5
2793echo "${ECHO_T}$CC" >&6
2794else
2795  echo "$as_me:$LINENO: result: no" >&5
2796echo "${ECHO_T}no" >&6
2797fi
2798
2799fi
2800if test -z "$CC"; then
2801  if test -n "$ac_tool_prefix"; then
2802  for ac_prog in cl
2803  do
2804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808if test "${ac_cv_prog_CC+set}" = set; then
2809  echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819  for ac_exec_ext in '' $ac_executable_extensions; do
2820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826done
2827
2828fi
2829fi
2830CC=$ac_cv_prog_CC
2831if test -n "$CC"; then
2832  echo "$as_me:$LINENO: result: $CC" >&5
2833echo "${ECHO_T}$CC" >&6
2834else
2835  echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6
2837fi
2838
2839    test -n "$CC" && break
2840  done
2841fi
2842if test -z "$CC"; then
2843  ac_ct_CC=$CC
2844  for ac_prog in cl
2845do
2846  # Extract the first word of "$ac_prog", so it can be a program name with args.
2847set dummy $ac_prog; ac_word=$2
2848echo "$as_me:$LINENO: checking for $ac_word" >&5
2849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851  echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853  if test -n "$ac_ct_CC"; then
2854  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859  IFS=$as_save_IFS
2860  test -z "$as_dir" && as_dir=.
2861  for ac_exec_ext in '' $ac_executable_extensions; do
2862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863    ac_cv_prog_ac_ct_CC="$ac_prog"
2864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865    break 2
2866  fi
2867done
2868done
2869
2870fi
2871fi
2872ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873if test -n "$ac_ct_CC"; then
2874  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875echo "${ECHO_T}$ac_ct_CC" >&6
2876else
2877  echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879fi
2880
2881  test -n "$ac_ct_CC" && break
2882done
2883
2884  CC=$ac_ct_CC
2885fi
2886
2887fi
2888
2889
2890test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2891See \`config.log' for more details." >&5
2892echo "$as_me: error: no acceptable C compiler found in \$PATH
2893See \`config.log' for more details." >&2;}
2894   { (exit 1); exit 1; }; }
2895
2896# Provide some information about the compiler.
2897echo "$as_me:$LINENO:" \
2898     "checking for C compiler version" >&5
2899ac_compiler=`set X $ac_compile; echo $2`
2900{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2901  (eval $ac_compiler --version </dev/null >&5) 2>&5
2902  ac_status=$?
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); }
2905{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2906  (eval $ac_compiler -v </dev/null >&5) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }
2910{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2911  (eval $ac_compiler -V </dev/null >&5) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }
2915
2916echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2917echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2918if test "${ac_cv_c_compiler_gnu+set}" = set; then
2919  echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921  cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h.  */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h.  */
2927
2928int
2929main ()
2930{
2931#ifndef __GNUC__
2932       choke me
2933#endif
2934
2935  ;
2936  return 0;
2937}
2938_ACEOF
2939rm -f conftest.$ac_objext
2940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941  (eval $ac_compile) 2>conftest.er1
2942  ac_status=$?
2943  grep -v '^ *+' conftest.er1 >conftest.err
2944  rm -f conftest.er1
2945  cat conftest.err >&5
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); } &&
2948         { ac_try='test -z "$ac_c_werror_flag"
2949                         || test ! -s conftest.err'
2950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951  (eval $ac_try) 2>&5
2952  ac_status=$?
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); }; } &&
2955         { ac_try='test -s conftest.$ac_objext'
2956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957  (eval $ac_try) 2>&5
2958  ac_status=$?
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); }; }; then
2961  ac_compiler_gnu=yes
2962else
2963  echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966ac_compiler_gnu=no
2967fi
2968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969ac_cv_c_compiler_gnu=$ac_compiler_gnu
2970
2971fi
2972echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2974GCC=`test $ac_compiler_gnu = yes && echo yes`
2975ac_test_CFLAGS=${CFLAGS+set}
2976ac_save_CFLAGS=$CFLAGS
2977CFLAGS="-g"
2978echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2979echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2980if test "${ac_cv_prog_cc_g+set}" = set; then
2981  echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983  cat >conftest.$ac_ext <<_ACEOF
2984/* confdefs.h.  */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
2988/* end confdefs.h.  */
2989
2990int
2991main ()
2992{
2993
2994  ;
2995  return 0;
2996}
2997_ACEOF
2998rm -f conftest.$ac_objext
2999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000  (eval $ac_compile) 2>conftest.er1
3001  ac_status=$?
3002  grep -v '^ *+' conftest.er1 >conftest.err
3003  rm -f conftest.er1
3004  cat conftest.err >&5
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); } &&
3007         { ac_try='test -z "$ac_c_werror_flag"
3008                         || test ! -s conftest.err'
3009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010  (eval $ac_try) 2>&5
3011  ac_status=$?
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); }; } &&
3014         { ac_try='test -s conftest.$ac_objext'
3015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016  (eval $ac_try) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }; }; then
3020  ac_cv_prog_cc_g=yes
3021else
3022  echo "$as_me: failed program was:" >&5
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
3025ac_cv_prog_cc_g=no
3026fi
3027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3028fi
3029echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3030echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3031if test "$ac_test_CFLAGS" = set; then
3032  CFLAGS=$ac_save_CFLAGS
3033elif test $ac_cv_prog_cc_g = yes; then
3034  if test "$GCC" = yes; then
3035    CFLAGS="-g -O2"
3036  else
3037    CFLAGS="-g"
3038  fi
3039else
3040  if test "$GCC" = yes; then
3041    CFLAGS="-O2"
3042  else
3043    CFLAGS=
3044  fi
3045fi
3046echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3047echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3048if test "${ac_cv_prog_cc_stdc+set}" = set; then
3049  echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051  ac_cv_prog_cc_stdc=no
3052ac_save_CC=$CC
3053cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059#include <stdarg.h>
3060#include <stdio.h>
3061#include <sys/types.h>
3062#include <sys/stat.h>
3063/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3064struct buf { int x; };
3065FILE * (*rcsopen) (struct buf *, struct stat *, int);
3066static char *e (p, i)
3067     char **p;
3068     int i;
3069{
3070  return p[i];
3071}
3072static char *f (char * (*g) (char **, int), char **p, ...)
3073{
3074  char *s;
3075  va_list v;
3076  va_start (v,p);
3077  s = g (p, va_arg (v,int));
3078  va_end (v);
3079  return s;
3080}
3081
3082/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3083   function prototypes and stuff, but not '\xHH' hex character constants.
3084   These don't provoke an error unfortunately, instead are silently treated
3085   as 'x'.  The following induces an error, until -std1 is added to get
3086   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3087   array size at least.  It's necessary to write '\x00'==0 to get something
3088   that's true only with -std1.  */
3089int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3090
3091int test (int i, double x);
3092struct s1 {int (*f) (int a);};
3093struct s2 {int (*f) (double a);};
3094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3095int argc;
3096char **argv;
3097int
3098main ()
3099{
3100return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3101  ;
3102  return 0;
3103}
3104_ACEOF
3105# Don't try gcc -ansi; that turns off useful extensions and
3106# breaks some systems' header files.
3107# AIX                   -qlanglvl=ansi
3108# Ultrix and OSF/1      -std1
3109# HP-UX 10.20 and later -Ae
3110# HP-UX older versions  -Aa -D_HPUX_SOURCE
3111# SVR4                  -Xc -D__EXTENSIONS__
3112for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3113do
3114  CC="$ac_save_CC $ac_arg"
3115  rm -f conftest.$ac_objext
3116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117  (eval $ac_compile) 2>conftest.er1
3118  ac_status=$?
3119  grep -v '^ *+' conftest.er1 >conftest.err
3120  rm -f conftest.er1
3121  cat conftest.err >&5
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); } &&
3124         { ac_try='test -z "$ac_c_werror_flag"
3125                         || test ! -s conftest.err'
3126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127  (eval $ac_try) 2>&5
3128  ac_status=$?
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); }; } &&
3131         { ac_try='test -s conftest.$ac_objext'
3132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133  (eval $ac_try) 2>&5
3134  ac_status=$?
3135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136  (exit $ac_status); }; }; then
3137  ac_cv_prog_cc_stdc=$ac_arg
3138break
3139else
3140  echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143fi
3144rm -f conftest.err conftest.$ac_objext
3145done
3146rm -f conftest.$ac_ext conftest.$ac_objext
3147CC=$ac_save_CC
3148
3149fi
3150
3151case "x$ac_cv_prog_cc_stdc" in
3152  x|xno)
3153    echo "$as_me:$LINENO: result: none needed" >&5
3154echo "${ECHO_T}none needed" >&6 ;;
3155  *)
3156    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3157echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3158    CC="$CC $ac_cv_prog_cc_stdc" ;;
3159esac
3160
3161# Some people use a C++ compiler to compile C.  Since we use `exit',
3162# in C++ we need to declare it.  In case someone uses the same compiler
3163# for both compiling C and C++ we need to have the C++ compiler decide
3164# the declaration of exit, since it's the most demanding environment.
3165cat >conftest.$ac_ext <<_ACEOF
3166#ifndef __cplusplus
3167  choke me
3168#endif
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172  (eval $ac_compile) 2>conftest.er1
3173  ac_status=$?
3174  grep -v '^ *+' conftest.er1 >conftest.err
3175  rm -f conftest.er1
3176  cat conftest.err >&5
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); } &&
3179         { ac_try='test -z "$ac_c_werror_flag"
3180                         || test ! -s conftest.err'
3181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182  (eval $ac_try) 2>&5
3183  ac_status=$?
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }; } &&
3186         { ac_try='test -s conftest.$ac_objext'
3187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188  (eval $ac_try) 2>&5
3189  ac_status=$?
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); }; }; then
3192  for ac_declaration in \
3193   '' \
3194   'extern "C" void std::exit (int) throw (); using std::exit;' \
3195   'extern "C" void std::exit (int); using std::exit;' \
3196   'extern "C" void exit (int) throw ();' \
3197   'extern "C" void exit (int);' \
3198   'void exit (int);'
3199do
3200  cat >conftest.$ac_ext <<_ACEOF
3201/* confdefs.h.  */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h.  */
3206$ac_declaration
3207#include <stdlib.h>
3208int
3209main ()
3210{
3211exit (42);
3212  ;
3213  return 0;
3214}
3215_ACEOF
3216rm -f conftest.$ac_objext
3217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3218  (eval $ac_compile) 2>conftest.er1
3219  ac_status=$?
3220  grep -v '^ *+' conftest.er1 >conftest.err
3221  rm -f conftest.er1
3222  cat conftest.err >&5
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); } &&
3225         { ac_try='test -z "$ac_c_werror_flag"
3226                         || test ! -s conftest.err'
3227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228  (eval $ac_try) 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }; } &&
3232         { ac_try='test -s conftest.$ac_objext'
3233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234  (eval $ac_try) 2>&5
3235  ac_status=$?
3236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237  (exit $ac_status); }; }; then
3238  :
3239else
3240  echo "$as_me: failed program was:" >&5
3241sed 's/^/| /' conftest.$ac_ext >&5
3242
3243continue
3244fi
3245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3246  cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h.  */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h.  */
3252$ac_declaration
3253int
3254main ()
3255{
3256exit (42);
3257  ;
3258  return 0;
3259}
3260_ACEOF
3261rm -f conftest.$ac_objext
3262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263  (eval $ac_compile) 2>conftest.er1
3264  ac_status=$?
3265  grep -v '^ *+' conftest.er1 >conftest.err
3266  rm -f conftest.er1
3267  cat conftest.err >&5
3268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); } &&
3270         { ac_try='test -z "$ac_c_werror_flag"
3271                         || test ! -s conftest.err'
3272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273  (eval $ac_try) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; } &&
3277         { ac_try='test -s conftest.$ac_objext'
3278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279  (eval $ac_try) 2>&5
3280  ac_status=$?
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }; }; then
3283  break
3284else
3285  echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288fi
3289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290done
3291rm -f conftest*
3292if test -n "$ac_declaration"; then
3293  echo '#ifdef __cplusplus' >>confdefs.h
3294  echo $ac_declaration      >>confdefs.h
3295  echo '#endif'             >>confdefs.h
3296fi
3297
3298else
3299  echo "$as_me: failed program was:" >&5
3300sed 's/^/| /' conftest.$ac_ext >&5
3301
3302fi
3303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3304ac_ext=c
3305ac_cpp='$CPP $CPPFLAGS'
3306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309
3310depcc="$CC"   am_compiler_list=
3311
3312echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3313echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3314if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3315  echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3318  # We make a subdir and do the tests there.  Otherwise we can end up
3319  # making bogus files that we don't know about and never remove.  For
3320  # instance it was reported that on HP-UX the gcc test will end up
3321  # making a dummy file named `D' -- because `-MD' means `put the output
3322  # in D'.
3323  mkdir conftest.dir
3324  # Copy depcomp to subdir because otherwise we won't find it if we're
3325  # using a relative directory.
3326  cp "$am_depcomp" conftest.dir
3327  cd conftest.dir
3328  # We will build objects and dependencies in a subdirectory because
3329  # it helps to detect inapplicable dependency modes.  For instance
3330  # both Tru64's cc and ICC support -MD to output dependencies as a
3331  # side effect of compilation, but ICC will put the dependencies in
3332  # the current directory while Tru64 will put them in the object
3333  # directory.
3334  mkdir sub
3335
3336  am_cv_CC_dependencies_compiler_type=none
3337  if test "$am_compiler_list" = ""; then
3338     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3339  fi
3340  for depmode in $am_compiler_list; do
3341    # Setup a source with many dependencies, because some compilers
3342    # like to wrap large dependency lists on column 80 (with \), and
3343    # we should not choose a depcomp mode which is confused by this.
3344    #
3345    # We need to recreate these files for each test, as the compiler may
3346    # overwrite some of them when testing with obscure command lines.
3347    # This happens at least with the AIX C compiler.
3348    : > sub/conftest.c
3349    for i in 1 2 3 4 5 6; do
3350      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3351      : > sub/conftst$i.h
3352    done
3353    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3354
3355    case $depmode in
3356    nosideeffect)
3357      # after this tag, mechanisms are not by side-effect, so they'll
3358      # only be used when explicitly requested
3359      if test "x$enable_dependency_tracking" = xyes; then
3360        continue
3361      else
3362        break
3363      fi
3364      ;;
3365    none) break ;;
3366    esac
3367    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3368    # mode.  It turns out that the SunPro C++ compiler does not properly
3369    # handle `-M -o', and we need to detect this.
3370    if depmode=$depmode \
3371       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3372       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3373       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3374         >/dev/null 2>conftest.err &&
3375       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3376       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3377       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3378      # icc doesn't choke on unknown options, it will just issue warnings
3379      # (even with -Werror).  So we grep stderr for any message
3380      # that says an option was ignored.
3381      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3382        am_cv_CC_dependencies_compiler_type=$depmode
3383        break
3384      fi
3385    fi
3386  done
3387
3388  cd ..
3389  rm -rf conftest.dir
3390else
3391  am_cv_CC_dependencies_compiler_type=none
3392fi
3393
3394fi
3395echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3396echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3397CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3398
3399
3400
3401if
3402  test "x$enable_dependency_tracking" != xno \
3403  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3404  am__fastdepCC_TRUE=
3405  am__fastdepCC_FALSE='#'
3406else
3407  am__fastdepCC_TRUE='#'
3408  am__fastdepCC_FALSE=
3409fi
3410
3411
3412
3413ac_ext=c
3414ac_cpp='$CPP $CPPFLAGS'
3415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3419echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3420# On Suns, sometimes $CPP names a directory.
3421if test -n "$CPP" && test -d "$CPP"; then
3422  CPP=
3423fi
3424if test -z "$CPP"; then
3425  if test "${ac_cv_prog_CPP+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428      # Double quotes because CPP needs to be expanded
3429    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3430    do
3431      ac_preproc_ok=false
3432for ac_c_preproc_warn_flag in '' yes
3433do
3434  # Use a header file that comes with gcc, so configuring glibc
3435  # with a fresh cross-compiler works.
3436  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3437  # <limits.h> exists even on freestanding compilers.
3438  # On the NeXT, cc -E runs the code through the compiler's parser,
3439  # not just through cpp. "Syntax error" is here to catch this case.
3440  cat >conftest.$ac_ext <<_ACEOF
3441/* confdefs.h.  */
3442_ACEOF
3443cat confdefs.h >>conftest.$ac_ext
3444cat >>conftest.$ac_ext <<_ACEOF
3445/* end confdefs.h.  */
3446#ifdef __STDC__
3447# include <limits.h>
3448#else
3449# include <assert.h>
3450#endif
3451                     Syntax error
3452_ACEOF
3453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3454  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3455  ac_status=$?
3456  grep -v '^ *+' conftest.er1 >conftest.err
3457  rm -f conftest.er1
3458  cat conftest.err >&5
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); } >/dev/null; then
3461  if test -s conftest.err; then
3462    ac_cpp_err=$ac_c_preproc_warn_flag
3463    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464  else
3465    ac_cpp_err=
3466  fi
3467else
3468  ac_cpp_err=yes
3469fi
3470if test -z "$ac_cpp_err"; then
3471  :
3472else
3473  echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476  # Broken: fails on valid input.
3477continue
3478fi
3479rm -f conftest.err conftest.$ac_ext
3480
3481  # OK, works on sane cases.  Now check whether non-existent headers
3482  # can be detected and how.
3483  cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489#include <ac_nonexistent.h>
3490_ACEOF
3491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3492  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } >/dev/null; then
3499  if test -s conftest.err; then
3500    ac_cpp_err=$ac_c_preproc_warn_flag
3501    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3502  else
3503    ac_cpp_err=
3504  fi
3505else
3506  ac_cpp_err=yes
3507fi
3508if test -z "$ac_cpp_err"; then
3509  # Broken: success on invalid input.
3510continue
3511else
3512  echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515  # Passes both tests.
3516ac_preproc_ok=:
3517break
3518fi
3519rm -f conftest.err conftest.$ac_ext
3520
3521done
3522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3523rm -f conftest.err conftest.$ac_ext
3524if $ac_preproc_ok; then
3525  break
3526fi
3527
3528    done
3529    ac_cv_prog_CPP=$CPP
3530
3531fi
3532  CPP=$ac_cv_prog_CPP
3533else
3534  ac_cv_prog_CPP=$CPP
3535fi
3536echo "$as_me:$LINENO: result: $CPP" >&5
3537echo "${ECHO_T}$CPP" >&6
3538ac_preproc_ok=false
3539for ac_c_preproc_warn_flag in '' yes
3540do
3541  # Use a header file that comes with gcc, so configuring glibc
3542  # with a fresh cross-compiler works.
3543  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3544  # <limits.h> exists even on freestanding compilers.
3545  # On the NeXT, cc -E runs the code through the compiler's parser,
3546  # not just through cpp. "Syntax error" is here to catch this case.
3547  cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h.  */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h.  */
3553#ifdef __STDC__
3554# include <limits.h>
3555#else
3556# include <assert.h>
3557#endif
3558                     Syntax error
3559_ACEOF
3560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3561  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3562  ac_status=$?
3563  grep -v '^ *+' conftest.er1 >conftest.err
3564  rm -f conftest.er1
3565  cat conftest.err >&5
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); } >/dev/null; then
3568  if test -s conftest.err; then
3569    ac_cpp_err=$ac_c_preproc_warn_flag
3570    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3571  else
3572    ac_cpp_err=
3573  fi
3574else
3575  ac_cpp_err=yes
3576fi
3577if test -z "$ac_cpp_err"; then
3578  :
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583  # Broken: fails on valid input.
3584continue
3585fi
3586rm -f conftest.err conftest.$ac_ext
3587
3588  # OK, works on sane cases.  Now check whether non-existent headers
3589  # can be detected and how.
3590  cat >conftest.$ac_ext <<_ACEOF
3591/* confdefs.h.  */
3592_ACEOF
3593cat confdefs.h >>conftest.$ac_ext
3594cat >>conftest.$ac_ext <<_ACEOF
3595/* end confdefs.h.  */
3596#include <ac_nonexistent.h>
3597_ACEOF
3598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3599  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } >/dev/null; then
3606  if test -s conftest.err; then
3607    ac_cpp_err=$ac_c_preproc_warn_flag
3608    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3609  else
3610    ac_cpp_err=
3611  fi
3612else
3613  ac_cpp_err=yes
3614fi
3615if test -z "$ac_cpp_err"; then
3616  # Broken: success on invalid input.
3617continue
3618else
3619  echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622  # Passes both tests.
3623ac_preproc_ok=:
3624break
3625fi
3626rm -f conftest.err conftest.$ac_ext
3627
3628done
3629# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3630rm -f conftest.err conftest.$ac_ext
3631if $ac_preproc_ok; then
3632  :
3633else
3634  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3635See \`config.log' for more details." >&5
3636echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3637See \`config.log' for more details." >&2;}
3638   { (exit 1); exit 1; }; }
3639fi
3640
3641ac_ext=c
3642ac_cpp='$CPP $CPPFLAGS'
3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
3647
3648echo "$as_me:$LINENO: checking for egrep" >&5
3649echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3650if test "${ac_cv_prog_egrep+set}" = set; then
3651  echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3654    then ac_cv_prog_egrep='grep -E'
3655    else ac_cv_prog_egrep='egrep'
3656    fi
3657fi
3658echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3659echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3660 EGREP=$ac_cv_prog_egrep
3661
3662
3663echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3664echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3665if test "${ac_cv_header_stdc+set}" = set; then
3666  echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668  cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h.  */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h.  */
3674#include <stdlib.h>
3675#include <stdarg.h>
3676#include <string.h>
3677#include <float.h>
3678
3679int
3680main ()
3681{
3682
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689  (eval $ac_compile) 2>conftest.er1
3690  ac_status=$?
3691  grep -v '^ *+' conftest.er1 >conftest.err
3692  rm -f conftest.er1
3693  cat conftest.err >&5
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); } &&
3696         { ac_try='test -z "$ac_c_werror_flag"
3697                         || test ! -s conftest.err'
3698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699  (eval $ac_try) 2>&5
3700  ac_status=$?
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); }; } &&
3703         { ac_try='test -s conftest.$ac_objext'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; }; then
3709  ac_cv_header_stdc=yes
3710else
3711  echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714ac_cv_header_stdc=no
3715fi
3716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3717
3718if test $ac_cv_header_stdc = yes; then
3719  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3720  cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h.  */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h.  */
3726#include <string.h>
3727
3728_ACEOF
3729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730  $EGREP "memchr" >/dev/null 2>&1; then
3731  :
3732else
3733  ac_cv_header_stdc=no
3734fi
3735rm -f conftest*
3736
3737fi
3738
3739if test $ac_cv_header_stdc = yes; then
3740  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3741  cat >conftest.$ac_ext <<_ACEOF
3742/* confdefs.h.  */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h.  */
3747#include <stdlib.h>
3748
3749_ACEOF
3750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3751  $EGREP "free" >/dev/null 2>&1; then
3752  :
3753else
3754  ac_cv_header_stdc=no
3755fi
3756rm -f conftest*
3757
3758fi
3759
3760if test $ac_cv_header_stdc = yes; then
3761  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3762  if test "$cross_compiling" = yes; then
3763  :
3764else
3765  cat >conftest.$ac_ext <<_ACEOF
3766/* confdefs.h.  */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h.  */
3771#include <ctype.h>
3772#if ((' ' & 0x0FF) == 0x020)
3773# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3774# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3775#else
3776# define ISLOWER(c) \
3777                   (('a' <= (c) && (c) <= 'i') \
3778                     || ('j' <= (c) && (c) <= 'r') \
3779                     || ('s' <= (c) && (c) <= 'z'))
3780# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3781#endif
3782
3783#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3784int
3785main ()
3786{
3787  int i;
3788  for (i = 0; i < 256; i++)
3789    if (XOR (islower (i), ISLOWER (i))
3790        || toupper (i) != TOUPPER (i))
3791      exit(2);
3792  exit (0);
3793}
3794_ACEOF
3795rm -f conftest$ac_exeext
3796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797  (eval $ac_link) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; }; then
3806  :
3807else
3808  echo "$as_me: program exited with status $ac_status" >&5
3809echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812( exit $ac_status )
3813ac_cv_header_stdc=no
3814fi
3815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3816fi
3817fi
3818fi
3819echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3820echo "${ECHO_T}$ac_cv_header_stdc" >&6
3821if test $ac_cv_header_stdc = yes; then
3822
3823cat >>confdefs.h <<\_ACEOF
3824#define STDC_HEADERS 1
3825_ACEOF
3826
3827fi
3828
3829
3830##################################
3831## CHECKING  OPTIONAL ARGUMENTS ##
3832##################################
3833
3834#-----------------#
3835# DEBUG-statement #
3836#-----------------#
3837DEBUG=no
3838echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3839echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3840# Check whether --enable-debug or --disable-debug was given.
3841if test "${enable_debug+set}" = set; then
3842  enableval="$enable_debug"
3843  DEBUG=$enableval
3844fi;
3845
3846if test x$DEBUG = xno; then
3847        echo "no"
3848        echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed."
3849        DEBUG=3
3850elif test x$DEBUG = xyes; then
3851        echo "yes"
3852        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3853        DEBUG=4
3854else
3855        echo "yes: setting debuglevel to to $DEBUG"
3856fi
3857
3858cat >>confdefs.h <<_ACEOF
3859#define DEBUG $DEBUG
3860_ACEOF
3861
3862
3863
3864
3865#--------------#
3866# GTK-disabled #
3867#--------------#
3868echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3869echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3870
3871# Check whether --with-gtk or --without-gtk was given.
3872if test "${with_gtk+set}" = set; then
3873  withval="$with_gtk"
3874  def_gtk=no
3875else
3876  def_gtk=yes
3877fi;
3878if test x$def_gtk = xyes; then
3879  echo "yes"
3880fi
3881if test x$def_gtk = xno; then
3882  echo "no"
3883fi
3884
3885#------------------#
3886# gThread-disabled #
3887#------------------#
3888echo "$as_me:$LINENO: checking if gThread should be enabled" >&5
3889echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6
3890
3891# Check whether --with-gthread or --without-gthread was given.
3892if test "${with_gthread+set}" = set; then
3893  withval="$with_gthread"
3894  def_gthread=no
3895else
3896  def_gthread=yes
3897fi;
3898if test x$def_gthread = xyes; then
3899  echo "yes"
3900fi
3901if test x$def_gthread = xno; then
3902  echo "no"
3903fi
3904
3905#------------------#
3906# pthread-disabled #
3907#------------------#
3908echo "$as_me:$LINENO: checking if pthread should be enabled" >&5
3909echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6
3910
3911# Check whether --with-pthread or --without-pthread was given.
3912if test "${with_pthread+set}" = set; then
3913  withval="$with_pthread"
3914  def_pthread=no
3915else
3916  def_pthread=yes
3917fi;
3918if test x$def_pthread = xyes; then
3919  echo "yes"
3920fi
3921if test x$def_pthread = xno; then
3922  echo "no"
3923fi
3924
3925#------------------#
3926# libCurl-disabled #
3927#------------------#
3928echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
3929echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
3930
3931# Check whether --with-curl or --without-curl was given.
3932if test "${with_curl+set}" = set; then
3933  withval="$with_curl"
3934  def_curl=no
3935else
3936  def_curl=yes
3937fi;
3938if test x$def_curl = xyes; then
3939  echo "yes"
3940fi
3941if test x$def_curl = xno; then
3942  echo "no"
3943fi
3944
3945#-------------------#
3946# SDL_image-disable #
3947#-------------------#
3948def_sdl_image=yes
3949echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5
3950echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6
3951
3952# Check whether --with-sdl_image or --without-sdl_image was given.
3953if test "${with_sdl_image+set}" = set; then
3954  withval="$with_sdl_image"
3955  def_sdl_image=no
3956fi;
3957if test x$def_sdl_image = xyes; then
3958  echo "yes"
3959fi
3960if test x$def_sdl_image = xno; then
3961  echo "no"
3962fi
3963#-------------------#
3964# SubProject-enable #
3965#-------------------#
3966def_sub_projects=no
3967echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
3968echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
3969# Check whether --enable-sub-projects or --disable-sub-projects was given.
3970if test "${enable_sub_projects+set}" = set; then
3971  enableval="$enable_sub_projects"
3972  def_sub_projects=yes
3973fi;
3974if test x$def_sub_projects = xyes; then
3975  echo "yes"
3976fi
3977if test x$def_sub_projects = xno; then
3978  echo "no"
3979fi
3980
3981
3982if test x$def_sub_projects = xyes; then
3983  SUB_PROJECTS_TRUE=
3984  SUB_PROJECTS_FALSE='#'
3985else
3986  SUB_PROJECTS_TRUE='#'
3987  SUB_PROJECTS_FALSE=
3988fi
3989
3990
3991#######################
3992## PROGRAMM CHECKING ##
3993## 3. party Programs ##
3994#######################
3995
3996#----------------------#
3997# checking for Doxygen #
3998#----------------------#
3999# Extract the first word of "doxygen", so it can be a program name with args.
4000set dummy doxygen; ac_word=$2
4001echo "$as_me:$LINENO: checking for $ac_word" >&5
4002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003if test "${ac_cv_path_DOXYGEN+set}" = set; then
4004  echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006  case $DOXYGEN in
4007  [\\/]* | ?:[\\/]*)
4008  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4009  ;;
4010  *)
4011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014  IFS=$as_save_IFS
4015  test -z "$as_dir" && as_dir=.
4016  for ac_exec_ext in '' $ac_executable_extensions; do
4017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020    break 2
4021  fi
4022done
4023done
4024
4025  ;;
4026esac
4027fi
4028DOXYGEN=$ac_cv_path_DOXYGEN
4029
4030if test -n "$DOXYGEN"; then
4031  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4032echo "${ECHO_T}$DOXYGEN" >&6
4033else
4034  echo "$as_me:$LINENO: result: no" >&5
4035echo "${ECHO_T}no" >&6
4036fi
4037
4038
4039
4040if test $DOXYGEN; then
4041  DOXYGEN_TRUE=
4042  DOXYGEN_FALSE='#'
4043else
4044  DOXYGEN_TRUE='#'
4045  DOXYGEN_FALSE=
4046fi
4047
4048
4049#########################
4050## CHECKING FOR SYSTEM ##
4051#########################
4052## here the system is checked, and openGL is included
4053## also checking for SDL on differen Systems
4054
4055echo "$as_me:$LINENO: checking for System" >&5
4056echo $ECHO_N "checking for System... $ECHO_C" >&6
4057## checking for openGL-environment and other sys-specific parameters
4058case "$target" in
4059#---------#
4060# WINDOWS #
4061#---------#
4062  *-*-mingw32*)
4063echo "mingw-WINDOWS detected"
4064
4065    mingw="yes"
4066    MSBITFIELDS="-mms-bitfields"
4067    MWINDOWS="-mwindows"
4068
4069# checking gl header
4070        #done before loop
4071
4072# checking gl header
4073   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4084                  inttypes.h stdint.h unistd.h
4085do
4086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4087echo "$as_me:$LINENO: checking for $ac_header" >&5
4088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4089if eval "test \"\${$as_ac_Header+set}\" = set"; then
4090  echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092  cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h.  */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h.  */
4098$ac_includes_default
4099
4100#include <$ac_header>
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104  (eval $ac_compile) 2>conftest.er1
4105  ac_status=$?
4106  grep -v '^ *+' conftest.er1 >conftest.err
4107  rm -f conftest.er1
4108  cat conftest.err >&5
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); } &&
4111         { ac_try='test -z "$ac_c_werror_flag"
4112                         || test ! -s conftest.err'
4113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114  (eval $ac_try) 2>&5
4115  ac_status=$?
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); }; } &&
4118         { ac_try='test -s conftest.$ac_objext'
4119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120  (eval $ac_try) 2>&5
4121  ac_status=$?
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); }; }; then
4124  eval "$as_ac_Header=yes"
4125else
4126  echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129eval "$as_ac_Header=no"
4130fi
4131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132fi
4133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4135if test `eval echo '${'$as_ac_Header'}'` = yes; then
4136  cat >>confdefs.h <<_ACEOF
4137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4138_ACEOF
4139
4140fi
4141
4142done
4143
4144
4145
4146for ac_header in GL/gl.h
4147do
4148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4149if eval "test \"\${$as_ac_Header+set}\" = set"; then
4150  echo "$as_me:$LINENO: checking for $ac_header" >&5
4151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4152if eval "test \"\${$as_ac_Header+set}\" = set"; then
4153  echo $ECHO_N "(cached) $ECHO_C" >&6
4154fi
4155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4157else
4158  # Is the header compilable?
4159echo "$as_me:$LINENO: checking $ac_header usability" >&5
4160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4161cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h.  */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
4166/* end confdefs.h.  */
4167$ac_includes_default
4168#include <$ac_header>
4169_ACEOF
4170rm -f conftest.$ac_objext
4171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172  (eval $ac_compile) 2>conftest.er1
4173  ac_status=$?
4174  grep -v '^ *+' conftest.er1 >conftest.err
4175  rm -f conftest.er1
4176  cat conftest.err >&5
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); } &&
4179         { ac_try='test -z "$ac_c_werror_flag"
4180                         || test ! -s conftest.err'
4181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182  (eval $ac_try) 2>&5
4183  ac_status=$?
4184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185  (exit $ac_status); }; } &&
4186         { ac_try='test -s conftest.$ac_objext'
4187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188  (eval $ac_try) 2>&5
4189  ac_status=$?
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); }; }; then
4192  ac_header_compiler=yes
4193else
4194  echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197ac_header_compiler=no
4198fi
4199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4201echo "${ECHO_T}$ac_header_compiler" >&6
4202
4203# Is the header present?
4204echo "$as_me:$LINENO: checking $ac_header presence" >&5
4205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4206cat >conftest.$ac_ext <<_ACEOF
4207/* confdefs.h.  */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
4211/* end confdefs.h.  */
4212#include <$ac_header>
4213_ACEOF
4214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4215  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216  ac_status=$?
4217  grep -v '^ *+' conftest.er1 >conftest.err
4218  rm -f conftest.er1
4219  cat conftest.err >&5
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); } >/dev/null; then
4222  if test -s conftest.err; then
4223    ac_cpp_err=$ac_c_preproc_warn_flag
4224    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4225  else
4226    ac_cpp_err=
4227  fi
4228else
4229  ac_cpp_err=yes
4230fi
4231if test -z "$ac_cpp_err"; then
4232  ac_header_preproc=yes
4233else
4234  echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237  ac_header_preproc=no
4238fi
4239rm -f conftest.err conftest.$ac_ext
4240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4241echo "${ECHO_T}$ac_header_preproc" >&6
4242
4243# So?  What about this header?
4244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4245  yes:no: )
4246    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4248    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4250    ac_header_preproc=yes
4251    ;;
4252  no:yes:* )
4253    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4254echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4255    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4256echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4257    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4258echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4259    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4260echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4261    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4263    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4265    (
4266      cat <<\_ASBOX
4267## ---------------------------------------------- ##
4268## Report this to orxonox-dev at mail.datacore.ch ##
4269## ---------------------------------------------- ##
4270_ASBOX
4271    ) |
4272      sed "s/^/$as_me: WARNING:     /" >&2
4273    ;;
4274esac
4275echo "$as_me:$LINENO: checking for $ac_header" >&5
4276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4277if eval "test \"\${$as_ac_Header+set}\" = set"; then
4278  echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280  eval "$as_ac_Header=\$ac_header_preproc"
4281fi
4282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4284
4285fi
4286if test `eval echo '${'$as_ac_Header'}'` = yes; then
4287  cat >>confdefs.h <<_ACEOF
4288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4289_ACEOF
4290
4291else
4292  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4293echo "$as_me: error: cannot find opengl headers" >&2;}
4294   { (exit 1); exit 1; }; }
4295fi
4296
4297done
4298
4299#   checking for Windows openGl library
4300    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4301echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4302if test "${ac_cv_lib_opengl32_main+set}" = set; then
4303  echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305  ac_check_lib_save_LIBS=$LIBS
4306LIBS="-lopengl32  $LIBS"
4307cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h.  */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h.  */
4313
4314
4315int
4316main ()
4317{
4318main ();
4319  ;
4320  return 0;
4321}
4322_ACEOF
4323rm -f conftest.$ac_objext conftest$ac_exeext
4324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325  (eval $ac_link) 2>conftest.er1
4326  ac_status=$?
4327  grep -v '^ *+' conftest.er1 >conftest.err
4328  rm -f conftest.er1
4329  cat conftest.err >&5
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); } &&
4332         { ac_try='test -z "$ac_c_werror_flag"
4333                         || test ! -s conftest.err'
4334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335  (eval $ac_try) 2>&5
4336  ac_status=$?
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); }; } &&
4339         { ac_try='test -s conftest$ac_exeext'
4340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341  (eval $ac_try) 2>&5
4342  ac_status=$?
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); }; }; then
4345  ac_cv_lib_opengl32_main=yes
4346else
4347  echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350ac_cv_lib_opengl32_main=no
4351fi
4352rm -f conftest.err conftest.$ac_objext \
4353      conftest$ac_exeext conftest.$ac_ext
4354LIBS=$ac_check_lib_save_LIBS
4355fi
4356echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4357echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4358if test $ac_cv_lib_opengl32_main = yes; then
4359  FOUND_opengl32=yes
4360else
4361  "gl/gl.h"
4362fi
4363
4364    if test x$FOUND_opengl32 = xyes ; then
4365        LIBS="$LIBS -lopengl32"
4366    else
4367         echo "------------------"
4368         echo "opengl not found."
4369         echo "please install the opengl package which can be found at http://www.opengl.org"
4370         echo "------------------"
4371         exit -1
4372    fi
4373
4374# cheking for GLU-header
4375
4376for ac_header in GL/glu.h
4377do
4378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4379if eval "test \"\${$as_ac_Header+set}\" = set"; then
4380  echo "$as_me:$LINENO: checking for $ac_header" >&5
4381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4382if eval "test \"\${$as_ac_Header+set}\" = set"; then
4383  echo $ECHO_N "(cached) $ECHO_C" >&6
4384fi
4385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4387else
4388  # Is the header compilable?
4389echo "$as_me:$LINENO: checking $ac_header usability" >&5
4390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4391cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h.  */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h.  */
4397$ac_includes_default
4398#include <$ac_header>
4399_ACEOF
4400rm -f conftest.$ac_objext
4401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402  (eval $ac_compile) 2>conftest.er1
4403  ac_status=$?
4404  grep -v '^ *+' conftest.er1 >conftest.err
4405  rm -f conftest.er1
4406  cat conftest.err >&5
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); } &&
4409         { ac_try='test -z "$ac_c_werror_flag"
4410                         || test ! -s conftest.err'
4411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412  (eval $ac_try) 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }; } &&
4416         { ac_try='test -s conftest.$ac_objext'
4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418  (eval $ac_try) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; }; then
4422  ac_header_compiler=yes
4423else
4424  echo "$as_me: failed program was:" >&5
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
4427ac_header_compiler=no
4428fi
4429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4431echo "${ECHO_T}$ac_header_compiler" >&6
4432
4433# Is the header present?
4434echo "$as_me:$LINENO: checking $ac_header presence" >&5
4435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4436cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h.  */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h.  */
4442#include <$ac_header>
4443_ACEOF
4444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446  ac_status=$?
4447  grep -v '^ *+' conftest.er1 >conftest.err
4448  rm -f conftest.er1
4449  cat conftest.err >&5
4450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); } >/dev/null; then
4452  if test -s conftest.err; then
4453    ac_cpp_err=$ac_c_preproc_warn_flag
4454    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4455  else
4456    ac_cpp_err=
4457  fi
4458else
4459  ac_cpp_err=yes
4460fi
4461if test -z "$ac_cpp_err"; then
4462  ac_header_preproc=yes
4463else
4464  echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467  ac_header_preproc=no
4468fi
4469rm -f conftest.err conftest.$ac_ext
4470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4471echo "${ECHO_T}$ac_header_preproc" >&6
4472
4473# So?  What about this header?
4474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4475  yes:no: )
4476    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4478    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4480    ac_header_preproc=yes
4481    ;;
4482  no:yes:* )
4483    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4485    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4486echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4487    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4489    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4490echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4491    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4493    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4495    (
4496      cat <<\_ASBOX
4497## ---------------------------------------------- ##
4498## Report this to orxonox-dev at mail.datacore.ch ##
4499## ---------------------------------------------- ##
4500_ASBOX
4501    ) |
4502      sed "s/^/$as_me: WARNING:     /" >&2
4503    ;;
4504esac
4505echo "$as_me:$LINENO: checking for $ac_header" >&5
4506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4507if eval "test \"\${$as_ac_Header+set}\" = set"; then
4508  echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510  eval "$as_ac_Header=\$ac_header_preproc"
4511fi
4512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4514
4515fi
4516if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517  cat >>confdefs.h <<_ACEOF
4518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4519_ACEOF
4520
4521else
4522  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4523echo "$as_me: error: cannot find opengl headers" >&2;}
4524   { (exit 1); exit 1; }; }
4525fi
4526
4527done
4528
4529
4530# checking for libGLU
4531    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4532echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4533if test "${ac_cv_lib_glu32_main+set}" = set; then
4534  echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536  ac_check_lib_save_LIBS=$LIBS
4537LIBS="-lglu32  $LIBS"
4538cat >conftest.$ac_ext <<_ACEOF
4539/* confdefs.h.  */
4540_ACEOF
4541cat confdefs.h >>conftest.$ac_ext
4542cat >>conftest.$ac_ext <<_ACEOF
4543/* end confdefs.h.  */
4544
4545
4546int
4547main ()
4548{
4549main ();
4550  ;
4551  return 0;
4552}
4553_ACEOF
4554rm -f conftest.$ac_objext conftest$ac_exeext
4555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4556  (eval $ac_link) 2>conftest.er1
4557  ac_status=$?
4558  grep -v '^ *+' conftest.er1 >conftest.err
4559  rm -f conftest.er1
4560  cat conftest.err >&5
4561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562  (exit $ac_status); } &&
4563         { ac_try='test -z "$ac_c_werror_flag"
4564                         || test ! -s conftest.err'
4565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566  (eval $ac_try) 2>&5
4567  ac_status=$?
4568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); }; } &&
4570         { ac_try='test -s conftest$ac_exeext'
4571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572  (eval $ac_try) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); }; }; then
4576  ac_cv_lib_glu32_main=yes
4577else
4578  echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581ac_cv_lib_glu32_main=no
4582fi
4583rm -f conftest.err conftest.$ac_objext \
4584      conftest$ac_exeext conftest.$ac_ext
4585LIBS=$ac_check_lib_save_LIBS
4586fi
4587echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4588echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4589if test $ac_cv_lib_glu32_main = yes; then
4590  FOUND_glu32=yes
4591fi
4592
4593    if test x$FOUND_glu32 = xyes ; then
4594        LIBS="$LIBS -lGLU32"
4595    else
4596         echo "------------------"
4597         echo "GLU library not found."
4598         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4599         echo "------------------"
4600         exit -1
4601    fi
4602
4603# checking for mingw32
4604    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4605echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4606if test "${ac_cv_lib_mingw32_main+set}" = set; then
4607  echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609  ac_check_lib_save_LIBS=$LIBS
4610LIBS="-lmingw32  $LIBS"
4611cat >conftest.$ac_ext <<_ACEOF
4612/* confdefs.h.  */
4613_ACEOF
4614cat confdefs.h >>conftest.$ac_ext
4615cat >>conftest.$ac_ext <<_ACEOF
4616/* end confdefs.h.  */
4617
4618
4619int
4620main ()
4621{
4622main ();
4623  ;
4624  return 0;
4625}
4626_ACEOF
4627rm -f conftest.$ac_objext conftest$ac_exeext
4628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629  (eval $ac_link) 2>conftest.er1
4630  ac_status=$?
4631  grep -v '^ *+' conftest.er1 >conftest.err
4632  rm -f conftest.er1
4633  cat conftest.err >&5
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); } &&
4636         { ac_try='test -z "$ac_c_werror_flag"
4637                         || test ! -s conftest.err'
4638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639  (eval $ac_try) 2>&5
4640  ac_status=$?
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); }; } &&
4643         { ac_try='test -s conftest$ac_exeext'
4644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645  (eval $ac_try) 2>&5
4646  ac_status=$?
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); }; }; then
4649  ac_cv_lib_mingw32_main=yes
4650else
4651  echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654ac_cv_lib_mingw32_main=no
4655fi
4656rm -f conftest.err conftest.$ac_objext \
4657      conftest$ac_exeext conftest.$ac_ext
4658LIBS=$ac_check_lib_save_LIBS
4659fi
4660echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4661echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4662if test $ac_cv_lib_mingw32_main = yes; then
4663  FOUND_mingw32=yes
4664fi
4665
4666    if test x$FOUND_mingw32 = xyes; then
4667        LIBS="$LIBS -lmingw32"
4668    fi
4669# checking for SDL-headers
4670
4671for ac_header in SDL/SDL.h
4672do
4673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4674if eval "test \"\${$as_ac_Header+set}\" = set"; then
4675  echo "$as_me:$LINENO: checking for $ac_header" >&5
4676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4677if eval "test \"\${$as_ac_Header+set}\" = set"; then
4678  echo $ECHO_N "(cached) $ECHO_C" >&6
4679fi
4680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4682else
4683  # Is the header compilable?
4684echo "$as_me:$LINENO: checking $ac_header usability" >&5
4685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4686cat >conftest.$ac_ext <<_ACEOF
4687/* confdefs.h.  */
4688_ACEOF
4689cat confdefs.h >>conftest.$ac_ext
4690cat >>conftest.$ac_ext <<_ACEOF
4691/* end confdefs.h.  */
4692$ac_includes_default
4693#include <$ac_header>
4694_ACEOF
4695rm -f conftest.$ac_objext
4696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697  (eval $ac_compile) 2>conftest.er1
4698  ac_status=$?
4699  grep -v '^ *+' conftest.er1 >conftest.err
4700  rm -f conftest.er1
4701  cat conftest.err >&5
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); } &&
4704         { ac_try='test -z "$ac_c_werror_flag"
4705                         || test ! -s conftest.err'
4706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707  (eval $ac_try) 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); }; } &&
4711         { ac_try='test -s conftest.$ac_objext'
4712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713  (eval $ac_try) 2>&5
4714  ac_status=$?
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); }; }; then
4717  ac_header_compiler=yes
4718else
4719  echo "$as_me: failed program was:" >&5
4720sed 's/^/| /' conftest.$ac_ext >&5
4721
4722ac_header_compiler=no
4723fi
4724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4725echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4726echo "${ECHO_T}$ac_header_compiler" >&6
4727
4728# Is the header present?
4729echo "$as_me:$LINENO: checking $ac_header presence" >&5
4730echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4731cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h.  */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h.  */
4737#include <$ac_header>
4738_ACEOF
4739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4740  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4741  ac_status=$?
4742  grep -v '^ *+' conftest.er1 >conftest.err
4743  rm -f conftest.er1
4744  cat conftest.err >&5
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); } >/dev/null; then
4747  if test -s conftest.err; then
4748    ac_cpp_err=$ac_c_preproc_warn_flag
4749    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4750  else
4751    ac_cpp_err=
4752  fi
4753else
4754  ac_cpp_err=yes
4755fi
4756if test -z "$ac_cpp_err"; then
4757  ac_header_preproc=yes
4758else
4759  echo "$as_me: failed program was:" >&5
4760sed 's/^/| /' conftest.$ac_ext >&5
4761
4762  ac_header_preproc=no
4763fi
4764rm -f conftest.err conftest.$ac_ext
4765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4766echo "${ECHO_T}$ac_header_preproc" >&6
4767
4768# So?  What about this header?
4769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4770  yes:no: )
4771    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4773    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4775    ac_header_preproc=yes
4776    ;;
4777  no:yes:* )
4778    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4780    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4781echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4782    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4784    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4785echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4786    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4788    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4790    (
4791      cat <<\_ASBOX
4792## ---------------------------------------------- ##
4793## Report this to orxonox-dev at mail.datacore.ch ##
4794## ---------------------------------------------- ##
4795_ASBOX
4796    ) |
4797      sed "s/^/$as_me: WARNING:     /" >&2
4798    ;;
4799esac
4800echo "$as_me:$LINENO: checking for $ac_header" >&5
4801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4802if eval "test \"\${$as_ac_Header+set}\" = set"; then
4803  echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805  eval "$as_ac_Header=\$ac_header_preproc"
4806fi
4807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4809
4810fi
4811if test `eval echo '${'$as_ac_Header'}'` = yes; then
4812  cat >>confdefs.h <<_ACEOF
4813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4814_ACEOF
4815
4816else
4817  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4818echo "$as_me: error: cannot find SDL headers" >&2;}
4819   { (exit 1); exit 1; }; }
4820fi
4821
4822done
4823
4824
4825#checking for libSDL
4826    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4827echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4828if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  ac_check_lib_save_LIBS=$LIBS
4832LIBS="-lsdlmain  $LIBS"
4833cat >conftest.$ac_ext <<_ACEOF
4834/* confdefs.h.  */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h.  */
4839
4840
4841int
4842main ()
4843{
4844main ();
4845  ;
4846  return 0;
4847}
4848_ACEOF
4849rm -f conftest.$ac_objext conftest$ac_exeext
4850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851  (eval $ac_link) 2>conftest.er1
4852  ac_status=$?
4853  grep -v '^ *+' conftest.er1 >conftest.err
4854  rm -f conftest.er1
4855  cat conftest.err >&5
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); } &&
4858         { ac_try='test -z "$ac_c_werror_flag"
4859                         || test ! -s conftest.err'
4860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861  (eval $ac_try) 2>&5
4862  ac_status=$?
4863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864  (exit $ac_status); }; } &&
4865         { ac_try='test -s conftest$ac_exeext'
4866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867  (eval $ac_try) 2>&5
4868  ac_status=$?
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); }; }; then
4871  ac_cv_lib_sdlmain_main=yes
4872else
4873  echo "$as_me: failed program was:" >&5
4874sed 's/^/| /' conftest.$ac_ext >&5
4875
4876ac_cv_lib_sdlmain_main=no
4877fi
4878rm -f conftest.err conftest.$ac_objext \
4879      conftest$ac_exeext conftest.$ac_ext
4880LIBS=$ac_check_lib_save_LIBS
4881fi
4882echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4883echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4884if test $ac_cv_lib_sdlmain_main = yes; then
4885  FOUND_sdlmain=yes
4886fi
4887
4888    if test x$FOUND_sdlmain = xyes ; then
4889       LIBS="$LIBS -lsdlmain"
4890    else
4891        echo "------------------"
4892        echo "SDL library not found."
4893        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4894        echo "------------------"
4895        exit 1
4896    fi
4897    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4898echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4899if test "${ac_cv_lib_sdl_main+set}" = set; then
4900  echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902  ac_check_lib_save_LIBS=$LIBS
4903LIBS="-lsdl  $LIBS"
4904cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h.  */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h.  */
4910
4911
4912int
4913main ()
4914{
4915main ();
4916  ;
4917  return 0;
4918}
4919_ACEOF
4920rm -f conftest.$ac_objext conftest$ac_exeext
4921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922  (eval $ac_link) 2>conftest.er1
4923  ac_status=$?
4924  grep -v '^ *+' conftest.er1 >conftest.err
4925  rm -f conftest.er1
4926  cat conftest.err >&5
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); } &&
4929         { ac_try='test -z "$ac_c_werror_flag"
4930                         || test ! -s conftest.err'
4931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932  (eval $ac_try) 2>&5
4933  ac_status=$?
4934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935  (exit $ac_status); }; } &&
4936         { ac_try='test -s conftest$ac_exeext'
4937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938  (eval $ac_try) 2>&5
4939  ac_status=$?
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); }; }; then
4942  ac_cv_lib_sdl_main=yes
4943else
4944  echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
4947ac_cv_lib_sdl_main=no
4948fi
4949rm -f conftest.err conftest.$ac_objext \
4950      conftest$ac_exeext conftest.$ac_ext
4951LIBS=$ac_check_lib_save_LIBS
4952fi
4953echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4954echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4955if test $ac_cv_lib_sdl_main = yes; then
4956  FOUND_sdl=yes
4957fi
4958
4959    if test x$FOUND_sdl = xyes ; then
4960       LIBS="$LIBS -lsdl"
4961    else
4962        echo "------------------"
4963        echo "SDL library not found."
4964        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4965        echo "------------------"
4966        exit -1
4967    fi
4968
4969    ;;
4970#-------#
4971# LINUX #
4972#-------#
4973 *-*-linux*)
4974echo "Linux detected"
4975
4976 Linux="yes"
4977
4978CPPFLAGS="-I/usr/X11R6/include"
4979LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
4980# checking gl header
4981
4982for ac_header in GL/gl.h
4983do
4984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986  echo "$as_me:$LINENO: checking for $ac_header" >&5
4987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4988if eval "test \"\${$as_ac_Header+set}\" = set"; then
4989  echo $ECHO_N "(cached) $ECHO_C" >&6
4990fi
4991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4993else
4994  # Is the header compilable?
4995echo "$as_me:$LINENO: checking $ac_header usability" >&5
4996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4997cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h.  */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h.  */
5003$ac_includes_default
5004#include <$ac_header>
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008  (eval $ac_compile) 2>conftest.er1
5009  ac_status=$?
5010  grep -v '^ *+' conftest.er1 >conftest.err
5011  rm -f conftest.er1
5012  cat conftest.err >&5
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } &&
5015         { ac_try='test -z "$ac_c_werror_flag"
5016                         || test ! -s conftest.err'
5017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018  (eval $ac_try) 2>&5
5019  ac_status=$?
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); }; } &&
5022         { ac_try='test -s conftest.$ac_objext'
5023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024  (eval $ac_try) 2>&5
5025  ac_status=$?
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); }; }; then
5028  ac_header_compiler=yes
5029else
5030  echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033ac_header_compiler=no
5034fi
5035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5037echo "${ECHO_T}$ac_header_compiler" >&6
5038
5039# Is the header present?
5040echo "$as_me:$LINENO: checking $ac_header presence" >&5
5041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5042cat >conftest.$ac_ext <<_ACEOF
5043/* confdefs.h.  */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h.  */
5048#include <$ac_header>
5049_ACEOF
5050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5051  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5052  ac_status=$?
5053  grep -v '^ *+' conftest.er1 >conftest.err
5054  rm -f conftest.er1
5055  cat conftest.err >&5
5056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057  (exit $ac_status); } >/dev/null; then
5058  if test -s conftest.err; then
5059    ac_cpp_err=$ac_c_preproc_warn_flag
5060    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5061  else
5062    ac_cpp_err=
5063  fi
5064else
5065  ac_cpp_err=yes
5066fi
5067if test -z "$ac_cpp_err"; then
5068  ac_header_preproc=yes
5069else
5070  echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
5073  ac_header_preproc=no
5074fi
5075rm -f conftest.err conftest.$ac_ext
5076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5077echo "${ECHO_T}$ac_header_preproc" >&6
5078
5079# So?  What about this header?
5080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5081  yes:no: )
5082    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5084    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5086    ac_header_preproc=yes
5087    ;;
5088  no:yes:* )
5089    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5091    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5092echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5093    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5095    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5096echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5097    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5099    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5101    (
5102      cat <<\_ASBOX
5103## ---------------------------------------------- ##
5104## Report this to orxonox-dev at mail.datacore.ch ##
5105## ---------------------------------------------- ##
5106_ASBOX
5107    ) |
5108      sed "s/^/$as_me: WARNING:     /" >&2
5109    ;;
5110esac
5111echo "$as_me:$LINENO: checking for $ac_header" >&5
5112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5113if eval "test \"\${$as_ac_Header+set}\" = set"; then
5114  echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116  eval "$as_ac_Header=\$ac_header_preproc"
5117fi
5118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5120
5121fi
5122if test `eval echo '${'$as_ac_Header'}'` = yes; then
5123  cat >>confdefs.h <<_ACEOF
5124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5125_ACEOF
5126
5127else
5128  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5129echo "$as_me: error: cannot find opengl headers" >&2;}
5130   { (exit 1); exit 1; }; }
5131fi
5132
5133done
5134
5135
5136#  checking for Unix GL
5137   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5138echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5139if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5140  echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142  ac_check_lib_save_LIBS=$LIBS
5143LIBS="-lGL  $LIBS"
5144cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150
5151/* Override any gcc2 internal prototype to avoid an error.  */
5152#ifdef __cplusplus
5153extern "C"
5154#endif
5155/* We use char because int might match the return type of a gcc2
5156   builtin and then its argument prototype would still apply.  */
5157char glLoadIdentity ();
5158int
5159main ()
5160{
5161glLoadIdentity ();
5162  ;
5163  return 0;
5164}
5165_ACEOF
5166rm -f conftest.$ac_objext conftest$ac_exeext
5167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5168  (eval $ac_link) 2>conftest.er1
5169  ac_status=$?
5170  grep -v '^ *+' conftest.er1 >conftest.err
5171  rm -f conftest.er1
5172  cat conftest.err >&5
5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174  (exit $ac_status); } &&
5175         { ac_try='test -z "$ac_c_werror_flag"
5176                         || test ! -s conftest.err'
5177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178  (eval $ac_try) 2>&5
5179  ac_status=$?
5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181  (exit $ac_status); }; } &&
5182         { ac_try='test -s conftest$ac_exeext'
5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184  (eval $ac_try) 2>&5
5185  ac_status=$?
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); }; }; then
5188  ac_cv_lib_GL_glLoadIdentity=yes
5189else
5190  echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193ac_cv_lib_GL_glLoadIdentity=no
5194fi
5195rm -f conftest.err conftest.$ac_objext \
5196      conftest$ac_exeext conftest.$ac_ext
5197LIBS=$ac_check_lib_save_LIBS
5198fi
5199echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5200echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5201if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5202  FOUND_GL=yes
5203fi
5204
5205   if test x$FOUND_GL = xyes ; then
5206     LIBS="$LIBS -lGL"
5207   else
5208         echo "------------------"
5209         echo "opengl not found."
5210         echo "please install the opengl package which can be found at http://www.opengl.org"
5211         echo "------------------"
5212         exit -1
5213   fi
5214
5215# cheking for GLU-header
5216
5217for ac_header in GL/glu.h
5218do
5219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5220if eval "test \"\${$as_ac_Header+set}\" = set"; then
5221  echo "$as_me:$LINENO: checking for $ac_header" >&5
5222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5223if eval "test \"\${$as_ac_Header+set}\" = set"; then
5224  echo $ECHO_N "(cached) $ECHO_C" >&6
5225fi
5226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5228else
5229  # Is the header compilable?
5230echo "$as_me:$LINENO: checking $ac_header usability" >&5
5231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5232cat >conftest.$ac_ext <<_ACEOF
5233/* confdefs.h.  */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h.  */
5238$ac_includes_default
5239#include <$ac_header>
5240_ACEOF
5241rm -f conftest.$ac_objext
5242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5243  (eval $ac_compile) 2>conftest.er1
5244  ac_status=$?
5245  grep -v '^ *+' conftest.er1 >conftest.err
5246  rm -f conftest.er1
5247  cat conftest.err >&5
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); } &&
5250         { ac_try='test -z "$ac_c_werror_flag"
5251                         || test ! -s conftest.err'
5252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253  (eval $ac_try) 2>&5
5254  ac_status=$?
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); }; } &&
5257         { ac_try='test -s conftest.$ac_objext'
5258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259  (eval $ac_try) 2>&5
5260  ac_status=$?
5261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262  (exit $ac_status); }; }; then
5263  ac_header_compiler=yes
5264else
5265  echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268ac_header_compiler=no
5269fi
5270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5272echo "${ECHO_T}$ac_header_compiler" >&6
5273
5274# Is the header present?
5275echo "$as_me:$LINENO: checking $ac_header presence" >&5
5276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5277cat >conftest.$ac_ext <<_ACEOF
5278/* confdefs.h.  */
5279_ACEOF
5280cat confdefs.h >>conftest.$ac_ext
5281cat >>conftest.$ac_ext <<_ACEOF
5282/* end confdefs.h.  */
5283#include <$ac_header>
5284_ACEOF
5285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287  ac_status=$?
5288  grep -v '^ *+' conftest.er1 >conftest.err
5289  rm -f conftest.er1
5290  cat conftest.err >&5
5291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292  (exit $ac_status); } >/dev/null; then
5293  if test -s conftest.err; then
5294    ac_cpp_err=$ac_c_preproc_warn_flag
5295    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5296  else
5297    ac_cpp_err=
5298  fi
5299else
5300  ac_cpp_err=yes
5301fi
5302if test -z "$ac_cpp_err"; then
5303  ac_header_preproc=yes
5304else
5305  echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308  ac_header_preproc=no
5309fi
5310rm -f conftest.err conftest.$ac_ext
5311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5312echo "${ECHO_T}$ac_header_preproc" >&6
5313
5314# So?  What about this header?
5315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5316  yes:no: )
5317    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5319    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5321    ac_header_preproc=yes
5322    ;;
5323  no:yes:* )
5324    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5326    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5327echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5328    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5330    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5331echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5332    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5334    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5336    (
5337      cat <<\_ASBOX
5338## ---------------------------------------------- ##
5339## Report this to orxonox-dev at mail.datacore.ch ##
5340## ---------------------------------------------- ##
5341_ASBOX
5342    ) |
5343      sed "s/^/$as_me: WARNING:     /" >&2
5344    ;;
5345esac
5346echo "$as_me:$LINENO: checking for $ac_header" >&5
5347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349  echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351  eval "$as_ac_Header=\$ac_header_preproc"
5352fi
5353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5355
5356fi
5357if test `eval echo '${'$as_ac_Header'}'` = yes; then
5358  cat >>confdefs.h <<_ACEOF
5359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360_ACEOF
5361
5362else
5363  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5364echo "$as_me: error: cannot find opengl headers" >&2;}
5365   { (exit 1); exit 1; }; }
5366fi
5367
5368done
5369
5370
5371    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5372echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5373if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5374  echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376  ac_check_lib_save_LIBS=$LIBS
5377LIBS="-lGLU  $LIBS"
5378cat >conftest.$ac_ext <<_ACEOF
5379/* confdefs.h.  */
5380_ACEOF
5381cat confdefs.h >>conftest.$ac_ext
5382cat >>conftest.$ac_ext <<_ACEOF
5383/* end confdefs.h.  */
5384
5385/* Override any gcc2 internal prototype to avoid an error.  */
5386#ifdef __cplusplus
5387extern "C"
5388#endif
5389/* We use char because int might match the return type of a gcc2
5390   builtin and then its argument prototype would still apply.  */
5391char gluProject ();
5392int
5393main ()
5394{
5395gluProject ();
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext conftest$ac_exeext
5401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402  (eval $ac_link) 2>conftest.er1
5403  ac_status=$?
5404  grep -v '^ *+' conftest.er1 >conftest.err
5405  rm -f conftest.er1
5406  cat conftest.err >&5
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); } &&
5409         { ac_try='test -z "$ac_c_werror_flag"
5410                         || test ! -s conftest.err'
5411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412  (eval $ac_try) 2>&5
5413  ac_status=$?
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); }; } &&
5416         { ac_try='test -s conftest$ac_exeext'
5417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418  (eval $ac_try) 2>&5
5419  ac_status=$?
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); }; }; then
5422  ac_cv_lib_GLU_gluProject=yes
5423else
5424  echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427ac_cv_lib_GLU_gluProject=no
5428fi
5429rm -f conftest.err conftest.$ac_objext \
5430      conftest$ac_exeext conftest.$ac_ext
5431LIBS=$ac_check_lib_save_LIBS
5432fi
5433echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5434echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5435if test $ac_cv_lib_GLU_gluProject = yes; then
5436  FOUND_GLU=yes
5437fi
5438
5439    if test x$FOUND_GLU = xyes ; then
5440      LIBS="$LIBS -lGLU"
5441    else
5442         echo "------------------"
5443         echo "GLU library not found."
5444         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5445         echo "------------------"
5446         exit -1
5447    fi
5448
5449# checking for SDL-headers
5450
5451for ac_header in SDL/SDL.h
5452do
5453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5454if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455  echo "$as_me:$LINENO: checking for $ac_header" >&5
5456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5457if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458  echo $ECHO_N "(cached) $ECHO_C" >&6
5459fi
5460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5462else
5463  # Is the header compilable?
5464echo "$as_me:$LINENO: checking $ac_header usability" >&5
5465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5466cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h.  */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h.  */
5472$ac_includes_default
5473#include <$ac_header>
5474_ACEOF
5475rm -f conftest.$ac_objext
5476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477  (eval $ac_compile) 2>conftest.er1
5478  ac_status=$?
5479  grep -v '^ *+' conftest.er1 >conftest.err
5480  rm -f conftest.er1
5481  cat conftest.err >&5
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); } &&
5484         { ac_try='test -z "$ac_c_werror_flag"
5485                         || test ! -s conftest.err'
5486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487  (eval $ac_try) 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }; } &&
5491         { ac_try='test -s conftest.$ac_objext'
5492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493  (eval $ac_try) 2>&5
5494  ac_status=$?
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); }; }; then
5497  ac_header_compiler=yes
5498else
5499  echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502ac_header_compiler=no
5503fi
5504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5506echo "${ECHO_T}$ac_header_compiler" >&6
5507
5508# Is the header present?
5509echo "$as_me:$LINENO: checking $ac_header presence" >&5
5510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5511cat >conftest.$ac_ext <<_ACEOF
5512/* confdefs.h.  */
5513_ACEOF
5514cat confdefs.h >>conftest.$ac_ext
5515cat >>conftest.$ac_ext <<_ACEOF
5516/* end confdefs.h.  */
5517#include <$ac_header>
5518_ACEOF
5519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521  ac_status=$?
5522  grep -v '^ *+' conftest.er1 >conftest.err
5523  rm -f conftest.er1
5524  cat conftest.err >&5
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); } >/dev/null; then
5527  if test -s conftest.err; then
5528    ac_cpp_err=$ac_c_preproc_warn_flag
5529    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5530  else
5531    ac_cpp_err=
5532  fi
5533else
5534  ac_cpp_err=yes
5535fi
5536if test -z "$ac_cpp_err"; then
5537  ac_header_preproc=yes
5538else
5539  echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542  ac_header_preproc=no
5543fi
5544rm -f conftest.err conftest.$ac_ext
5545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5546echo "${ECHO_T}$ac_header_preproc" >&6
5547
5548# So?  What about this header?
5549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5550  yes:no: )
5551    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5553    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5555    ac_header_preproc=yes
5556    ;;
5557  no:yes:* )
5558    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5560    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5561echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5562    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5564    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5565echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5568    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5570    (
5571      cat <<\_ASBOX
5572## ---------------------------------------------- ##
5573## Report this to orxonox-dev at mail.datacore.ch ##
5574## ---------------------------------------------- ##
5575_ASBOX
5576    ) |
5577      sed "s/^/$as_me: WARNING:     /" >&2
5578    ;;
5579esac
5580echo "$as_me:$LINENO: checking for $ac_header" >&5
5581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5582if eval "test \"\${$as_ac_Header+set}\" = set"; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585  eval "$as_ac_Header=\$ac_header_preproc"
5586fi
5587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5589
5590fi
5591if test `eval echo '${'$as_ac_Header'}'` = yes; then
5592  cat >>confdefs.h <<_ACEOF
5593#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5594_ACEOF
5595
5596else
5597  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5598echo "$as_me: error: cannot find SDL headers" >&2;}
5599   { (exit 1); exit 1; }; }
5600fi
5601
5602done
5603
5604
5605# checking for SDL-lib
5606    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5607echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5608if test "${ac_cv_lib_SDL_main+set}" = set; then
5609  echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611  ac_check_lib_save_LIBS=$LIBS
5612LIBS="-lSDL  $LIBS"
5613cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619
5620
5621int
5622main ()
5623{
5624main ();
5625  ;
5626  return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext conftest$ac_exeext
5630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631  (eval $ac_link) 2>conftest.er1
5632  ac_status=$?
5633  grep -v '^ *+' conftest.er1 >conftest.err
5634  rm -f conftest.er1
5635  cat conftest.err >&5
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); } &&
5638         { ac_try='test -z "$ac_c_werror_flag"
5639                         || test ! -s conftest.err'
5640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641  (eval $ac_try) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }; } &&
5645         { ac_try='test -s conftest$ac_exeext'
5646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647  (eval $ac_try) 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; }; then
5651  ac_cv_lib_SDL_main=yes
5652else
5653  echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656ac_cv_lib_SDL_main=no
5657fi
5658rm -f conftest.err conftest.$ac_objext \
5659      conftest$ac_exeext conftest.$ac_ext
5660LIBS=$ac_check_lib_save_LIBS
5661fi
5662echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5663echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5664if test $ac_cv_lib_SDL_main = yes; then
5665  FOUND_SDL=yes
5666fi
5667
5668     if test x$FOUND_SDL = xyes ; then
5669       LIBS="$LIBS -lSDL"
5670     else
5671        echo "------------------"
5672        echo "SDL library not found."
5673        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5674        echo "------------------"
5675        exit -1
5676     fi
5677
5678
5679## checking for SDL
5680#    SDL_VERSION=1.2.7
5681#    AM_PATH_SDL($SDL_VERSION,
5682#      :,
5683#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5684#      )
5685#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5686#    LIBS="$LIBS $SDL_LIBS"
5687    ;;
5688#-----------#
5689# MAC -OS X #
5690#-----------#
5691 *darwin*)
5692 echo "OS X detected"
5693
5694 osX="yes"
5695
5696 CPPFLAGS="-I/sw/include $CPPFLAGS"
5697# checking gl header
5698
5699for ac_header in OpenGL/gl.h
5700do
5701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5702if eval "test \"\${$as_ac_Header+set}\" = set"; then
5703  echo "$as_me:$LINENO: checking for $ac_header" >&5
5704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5705if eval "test \"\${$as_ac_Header+set}\" = set"; then
5706  echo $ECHO_N "(cached) $ECHO_C" >&6
5707fi
5708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5710else
5711  # Is the header compilable?
5712echo "$as_me:$LINENO: checking $ac_header usability" >&5
5713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5714cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h.  */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h.  */
5720$ac_includes_default
5721#include <$ac_header>
5722_ACEOF
5723rm -f conftest.$ac_objext
5724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725  (eval $ac_compile) 2>conftest.er1
5726  ac_status=$?
5727  grep -v '^ *+' conftest.er1 >conftest.err
5728  rm -f conftest.er1
5729  cat conftest.err >&5
5730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731  (exit $ac_status); } &&
5732         { ac_try='test -z "$ac_c_werror_flag"
5733                         || test ! -s conftest.err'
5734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735  (eval $ac_try) 2>&5
5736  ac_status=$?
5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738  (exit $ac_status); }; } &&
5739         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5745  ac_header_compiler=yes
5746else
5747  echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750ac_header_compiler=no
5751fi
5752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754echo "${ECHO_T}$ac_header_compiler" >&6
5755
5756# Is the header present?
5757echo "$as_me:$LINENO: checking $ac_header presence" >&5
5758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5759cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h.  */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h.  */
5765#include <$ac_header>
5766_ACEOF
5767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5768  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5769  ac_status=$?
5770  grep -v '^ *+' conftest.er1 >conftest.err
5771  rm -f conftest.er1
5772  cat conftest.err >&5
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); } >/dev/null; then
5775  if test -s conftest.err; then
5776    ac_cpp_err=$ac_c_preproc_warn_flag
5777    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5778  else
5779    ac_cpp_err=
5780  fi
5781else
5782  ac_cpp_err=yes
5783fi
5784if test -z "$ac_cpp_err"; then
5785  ac_header_preproc=yes
5786else
5787  echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790  ac_header_preproc=no
5791fi
5792rm -f conftest.err conftest.$ac_ext
5793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5794echo "${ECHO_T}$ac_header_preproc" >&6
5795
5796# So?  What about this header?
5797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5798  yes:no: )
5799    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5803    ac_header_preproc=yes
5804    ;;
5805  no:yes:* )
5806    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5808    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5809echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5810    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5812    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5813echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5814    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5816    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5818    (
5819      cat <<\_ASBOX
5820## ---------------------------------------------- ##
5821## Report this to orxonox-dev at mail.datacore.ch ##
5822## ---------------------------------------------- ##
5823_ASBOX
5824    ) |
5825      sed "s/^/$as_me: WARNING:     /" >&2
5826    ;;
5827esac
5828echo "$as_me:$LINENO: checking for $ac_header" >&5
5829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5830if eval "test \"\${$as_ac_Header+set}\" = set"; then
5831  echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833  eval "$as_ac_Header=\$ac_header_preproc"
5834fi
5835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5837
5838fi
5839if test `eval echo '${'$as_ac_Header'}'` = yes; then
5840  cat >>confdefs.h <<_ACEOF
5841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5842_ACEOF
5843
5844else
5845  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5846echo "$as_me: error: cannot find opengl headers" >&2;}
5847   { (exit 1); exit 1; }; }
5848fi
5849
5850done
5851
5852# cheking for GLU-header
5853
5854for ac_header in OpenGL/glu.h
5855do
5856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5857if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858  echo "$as_me:$LINENO: checking for $ac_header" >&5
5859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5860if eval "test \"\${$as_ac_Header+set}\" = set"; then
5861  echo $ECHO_N "(cached) $ECHO_C" >&6
5862fi
5863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865else
5866  # Is the header compilable?
5867echo "$as_me:$LINENO: checking $ac_header usability" >&5
5868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5869cat >conftest.$ac_ext <<_ACEOF
5870/* confdefs.h.  */
5871_ACEOF
5872cat confdefs.h >>conftest.$ac_ext
5873cat >>conftest.$ac_ext <<_ACEOF
5874/* end confdefs.h.  */
5875$ac_includes_default
5876#include <$ac_header>
5877_ACEOF
5878rm -f conftest.$ac_objext
5879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880  (eval $ac_compile) 2>conftest.er1
5881  ac_status=$?
5882  grep -v '^ *+' conftest.er1 >conftest.err
5883  rm -f conftest.er1
5884  cat conftest.err >&5
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); } &&
5887         { ac_try='test -z "$ac_c_werror_flag"
5888                         || test ! -s conftest.err'
5889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890  (eval $ac_try) 2>&5
5891  ac_status=$?
5892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893  (exit $ac_status); }; } &&
5894         { ac_try='test -s conftest.$ac_objext'
5895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896  (eval $ac_try) 2>&5
5897  ac_status=$?
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); }; }; then
5900  ac_header_compiler=yes
5901else
5902  echo "$as_me: failed program was:" >&5
5903sed 's/^/| /' conftest.$ac_ext >&5
5904
5905ac_header_compiler=no
5906fi
5907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5909echo "${ECHO_T}$ac_header_compiler" >&6
5910
5911# Is the header present?
5912echo "$as_me:$LINENO: checking $ac_header presence" >&5
5913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5914cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h.  */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h.  */
5920#include <$ac_header>
5921_ACEOF
5922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5924  ac_status=$?
5925  grep -v '^ *+' conftest.er1 >conftest.err
5926  rm -f conftest.er1
5927  cat conftest.err >&5
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); } >/dev/null; then
5930  if test -s conftest.err; then
5931    ac_cpp_err=$ac_c_preproc_warn_flag
5932    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5933  else
5934    ac_cpp_err=
5935  fi
5936else
5937  ac_cpp_err=yes
5938fi
5939if test -z "$ac_cpp_err"; then
5940  ac_header_preproc=yes
5941else
5942  echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945  ac_header_preproc=no
5946fi
5947rm -f conftest.err conftest.$ac_ext
5948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5949echo "${ECHO_T}$ac_header_preproc" >&6
5950
5951# So?  What about this header?
5952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5953  yes:no: )
5954    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5956    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5958    ac_header_preproc=yes
5959    ;;
5960  no:yes:* )
5961    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5963    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5964echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5965    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5967    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5968echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5971    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5973    (
5974      cat <<\_ASBOX
5975## ---------------------------------------------- ##
5976## Report this to orxonox-dev at mail.datacore.ch ##
5977## ---------------------------------------------- ##
5978_ASBOX
5979    ) |
5980      sed "s/^/$as_me: WARNING:     /" >&2
5981    ;;
5982esac
5983echo "$as_me:$LINENO: checking for $ac_header" >&5
5984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5985if eval "test \"\${$as_ac_Header+set}\" = set"; then
5986  echo $ECHO_N "(cached) $ECHO_C" >&6
5987else
5988  eval "$as_ac_Header=\$ac_header_preproc"
5989fi
5990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5992
5993fi
5994if test `eval echo '${'$as_ac_Header'}'` = yes; then
5995  cat >>confdefs.h <<_ACEOF
5996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997_ACEOF
5998
5999else
6000  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6001echo "$as_me: error: cannot find opengl headers" >&2;}
6002   { (exit 1); exit 1; }; }
6003fi
6004
6005done
6006
6007
6008   LIBS="$LIBS -framework OpenGL"
6009
6010       SDL_CFLAGS=`sdl-config --cflags`
6011       SDL_LIBS=`sdl-config --libs`
6012       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6013       LIBS="$LIBS $SDL_LIBS"
6014
6015
6016# checking for SDL-headers
6017#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6018#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6019
6020## checking for SDL
6021#    SDL_VERSION=1.2.7
6022#    AM_PATH_SDL($SDL_VERSION,
6023#      :,
6024#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6025#      )
6026
6027
6028    ;;
6029
6030  *)
6031    ;;
6032esac
6033
6034
6035
6036###################################
6037## CHECKING FOR HEADERS AND LIBS ##
6038###################################
6039
6040#-----------#
6041# SDL_Image #
6042#-----------#
6043if test x$def_sdl_image = xyes; then
6044# checking for SDL_image-headers
6045
6046for ac_header in SDL/SDL_image.h
6047do
6048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6049if eval "test \"\${$as_ac_Header+set}\" = set"; then
6050  echo "$as_me:$LINENO: checking for $ac_header" >&5
6051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6052if eval "test \"\${$as_ac_Header+set}\" = set"; then
6053  echo $ECHO_N "(cached) $ECHO_C" >&6
6054fi
6055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6057else
6058  # Is the header compilable?
6059echo "$as_me:$LINENO: checking $ac_header usability" >&5
6060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6061cat >conftest.$ac_ext <<_ACEOF
6062/* confdefs.h.  */
6063_ACEOF
6064cat confdefs.h >>conftest.$ac_ext
6065cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h.  */
6067$ac_includes_default
6068#include <$ac_header>
6069_ACEOF
6070rm -f conftest.$ac_objext
6071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072  (eval $ac_compile) 2>conftest.er1
6073  ac_status=$?
6074  grep -v '^ *+' conftest.er1 >conftest.err
6075  rm -f conftest.er1
6076  cat conftest.err >&5
6077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078  (exit $ac_status); } &&
6079         { ac_try='test -z "$ac_c_werror_flag"
6080                         || test ! -s conftest.err'
6081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082  (eval $ac_try) 2>&5
6083  ac_status=$?
6084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); }; } &&
6086         { ac_try='test -s conftest.$ac_objext'
6087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088  (eval $ac_try) 2>&5
6089  ac_status=$?
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); }; }; then
6092  ac_header_compiler=yes
6093else
6094  echo "$as_me: failed program was:" >&5
6095sed 's/^/| /' conftest.$ac_ext >&5
6096
6097ac_header_compiler=no
6098fi
6099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6100echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6101echo "${ECHO_T}$ac_header_compiler" >&6
6102
6103# Is the header present?
6104echo "$as_me:$LINENO: checking $ac_header presence" >&5
6105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6106cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h.  */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h.  */
6112#include <$ac_header>
6113_ACEOF
6114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6115  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6116  ac_status=$?
6117  grep -v '^ *+' conftest.er1 >conftest.err
6118  rm -f conftest.er1
6119  cat conftest.err >&5
6120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121  (exit $ac_status); } >/dev/null; then
6122  if test -s conftest.err; then
6123    ac_cpp_err=$ac_c_preproc_warn_flag
6124    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6125  else
6126    ac_cpp_err=
6127  fi
6128else
6129  ac_cpp_err=yes
6130fi
6131if test -z "$ac_cpp_err"; then
6132  ac_header_preproc=yes
6133else
6134  echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137  ac_header_preproc=no
6138fi
6139rm -f conftest.err conftest.$ac_ext
6140echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6141echo "${ECHO_T}$ac_header_preproc" >&6
6142
6143# So?  What about this header?
6144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6145  yes:no: )
6146    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6148    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6150    ac_header_preproc=yes
6151    ;;
6152  no:yes:* )
6153    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6155    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6156echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6157    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6159    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6160echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6161    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6163    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6165    (
6166      cat <<\_ASBOX
6167## ---------------------------------------------- ##
6168## Report this to orxonox-dev at mail.datacore.ch ##
6169## ---------------------------------------------- ##
6170_ASBOX
6171    ) |
6172      sed "s/^/$as_me: WARNING:     /" >&2
6173    ;;
6174esac
6175echo "$as_me:$LINENO: checking for $ac_header" >&5
6176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6177if eval "test \"\${$as_ac_Header+set}\" = set"; then
6178  echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180  eval "$as_ac_Header=\$ac_header_preproc"
6181fi
6182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6184
6185fi
6186if test `eval echo '${'$as_ac_Header'}'` = yes; then
6187  cat >>confdefs.h <<_ACEOF
6188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6189_ACEOF
6190
6191else
6192  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
6193fi
6194
6195done
6196
6197fi
6198if test x$def_sdl_image = xyes; then
6199# checking for SDL_image-lib
6200  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6201echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6202if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6203  echo $ECHO_N "(cached) $ECHO_C" >&6
6204else
6205  ac_check_lib_save_LIBS=$LIBS
6206LIBS="-lSDL_image  $LIBS"
6207cat >conftest.$ac_ext <<_ACEOF
6208/* confdefs.h.  */
6209_ACEOF
6210cat confdefs.h >>conftest.$ac_ext
6211cat >>conftest.$ac_ext <<_ACEOF
6212/* end confdefs.h.  */
6213
6214
6215int
6216main ()
6217{
6218main ();
6219  ;
6220  return 0;
6221}
6222_ACEOF
6223rm -f conftest.$ac_objext conftest$ac_exeext
6224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225  (eval $ac_link) 2>conftest.er1
6226  ac_status=$?
6227  grep -v '^ *+' conftest.er1 >conftest.err
6228  rm -f conftest.er1
6229  cat conftest.err >&5
6230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231  (exit $ac_status); } &&
6232         { ac_try='test -z "$ac_c_werror_flag"
6233                         || test ! -s conftest.err'
6234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235  (eval $ac_try) 2>&5
6236  ac_status=$?
6237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238  (exit $ac_status); }; } &&
6239         { ac_try='test -s conftest$ac_exeext'
6240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241  (eval $ac_try) 2>&5
6242  ac_status=$?
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); }; }; then
6245  ac_cv_lib_SDL_image_main=yes
6246else
6247  echo "$as_me: failed program was:" >&5
6248sed 's/^/| /' conftest.$ac_ext >&5
6249
6250ac_cv_lib_SDL_image_main=no
6251fi
6252rm -f conftest.err conftest.$ac_objext \
6253      conftest$ac_exeext conftest.$ac_ext
6254LIBS=$ac_check_lib_save_LIBS
6255fi
6256echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6257echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6258if test $ac_cv_lib_SDL_image_main = yes; then
6259  FOUND_SDL_image=yes
6260fi
6261
6262     if test x$FOUND_SDL_image = xyes ; then
6263       LIBS="$LIBS -lSDL_image"
6264     else
6265        echo "------------------"
6266        echo "SDL_image library not found."
6267        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6268        echo "------------------"
6269        exit -1
6270     fi
6271fi
6272
6273## case no SDL-image:
6274if test x$def_sdl_image = xno; then
6275#---------#
6276# libjpeg #
6277#---------#
6278
6279for ac_header in jpeglib.h
6280do
6281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6282if eval "test \"\${$as_ac_Header+set}\" = set"; then
6283  echo "$as_me:$LINENO: checking for $ac_header" >&5
6284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6285if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286  echo $ECHO_N "(cached) $ECHO_C" >&6
6287fi
6288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6290else
6291  # Is the header compilable?
6292echo "$as_me:$LINENO: checking $ac_header usability" >&5
6293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6294cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h.  */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h.  */
6300$ac_includes_default
6301#include <$ac_header>
6302_ACEOF
6303rm -f conftest.$ac_objext
6304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305  (eval $ac_compile) 2>conftest.er1
6306  ac_status=$?
6307  grep -v '^ *+' conftest.er1 >conftest.err
6308  rm -f conftest.er1
6309  cat conftest.err >&5
6310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311  (exit $ac_status); } &&
6312         { ac_try='test -z "$ac_c_werror_flag"
6313                         || test ! -s conftest.err'
6314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315  (eval $ac_try) 2>&5
6316  ac_status=$?
6317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318  (exit $ac_status); }; } &&
6319         { ac_try='test -s conftest.$ac_objext'
6320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321  (eval $ac_try) 2>&5
6322  ac_status=$?
6323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324  (exit $ac_status); }; }; then
6325  ac_header_compiler=yes
6326else
6327  echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
6330ac_header_compiler=no
6331fi
6332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6334echo "${ECHO_T}$ac_header_compiler" >&6
6335
6336# Is the header present?
6337echo "$as_me:$LINENO: checking $ac_header presence" >&5
6338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6339cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h.  */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h.  */
6345#include <$ac_header>
6346_ACEOF
6347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6348  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6349  ac_status=$?
6350  grep -v '^ *+' conftest.er1 >conftest.err
6351  rm -f conftest.er1
6352  cat conftest.err >&5
6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354  (exit $ac_status); } >/dev/null; then
6355  if test -s conftest.err; then
6356    ac_cpp_err=$ac_c_preproc_warn_flag
6357    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6358  else
6359    ac_cpp_err=
6360  fi
6361else
6362  ac_cpp_err=yes
6363fi
6364if test -z "$ac_cpp_err"; then
6365  ac_header_preproc=yes
6366else
6367  echo "$as_me: failed program was:" >&5
6368sed 's/^/| /' conftest.$ac_ext >&5
6369
6370  ac_header_preproc=no
6371fi
6372rm -f conftest.err conftest.$ac_ext
6373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6374echo "${ECHO_T}$ac_header_preproc" >&6
6375
6376# So?  What about this header?
6377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6378  yes:no: )
6379    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6381    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6383    ac_header_preproc=yes
6384    ;;
6385  no:yes:* )
6386    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6388    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6389echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6390    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6392    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6393echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6394    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6396    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6398    (
6399      cat <<\_ASBOX
6400## ---------------------------------------------- ##
6401## Report this to orxonox-dev at mail.datacore.ch ##
6402## ---------------------------------------------- ##
6403_ASBOX
6404    ) |
6405      sed "s/^/$as_me: WARNING:     /" >&2
6406    ;;
6407esac
6408echo "$as_me:$LINENO: checking for $ac_header" >&5
6409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  eval "$as_ac_Header=\$ac_header_preproc"
6414fi
6415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6417
6418fi
6419if test `eval echo '${'$as_ac_Header'}'` = yes; then
6420  cat >>confdefs.h <<_ACEOF
6421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422_ACEOF
6423 jpegHeader="yes"
6424else
6425  jpegHeader="no"
6426fi
6427
6428done
6429
6430 if test x$jpegHeader = xno; then
6431        echo " not including jpeg."
6432 else
6433  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
6434echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
6435if test "${ac_cv_lib_jpeg_main+set}" = set; then
6436  echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438  ac_check_lib_save_LIBS=$LIBS
6439LIBS="-ljpeg  $LIBS"
6440cat >conftest.$ac_ext <<_ACEOF
6441/* confdefs.h.  */
6442_ACEOF
6443cat confdefs.h >>conftest.$ac_ext
6444cat >>conftest.$ac_ext <<_ACEOF
6445/* end confdefs.h.  */
6446
6447
6448int
6449main ()
6450{
6451main ();
6452  ;
6453  return 0;
6454}
6455_ACEOF
6456rm -f conftest.$ac_objext conftest$ac_exeext
6457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458  (eval $ac_link) 2>conftest.er1
6459  ac_status=$?
6460  grep -v '^ *+' conftest.er1 >conftest.err
6461  rm -f conftest.er1
6462  cat conftest.err >&5
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); } &&
6465         { ac_try='test -z "$ac_c_werror_flag"
6466                         || test ! -s conftest.err'
6467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468  (eval $ac_try) 2>&5
6469  ac_status=$?
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); }; } &&
6472         { ac_try='test -s conftest$ac_exeext'
6473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474  (eval $ac_try) 2>&5
6475  ac_status=$?
6476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477  (exit $ac_status); }; }; then
6478  ac_cv_lib_jpeg_main=yes
6479else
6480  echo "$as_me: failed program was:" >&5
6481sed 's/^/| /' conftest.$ac_ext >&5
6482
6483ac_cv_lib_jpeg_main=no
6484fi
6485rm -f conftest.err conftest.$ac_objext \
6486      conftest$ac_exeext conftest.$ac_ext
6487LIBS=$ac_check_lib_save_LIBS
6488fi
6489echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
6490echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
6491if test $ac_cv_lib_jpeg_main = yes; then
6492  FOUND_jpeg=yes
6493fi
6494
6495    if test x$FOUND_jpeg = xyes ; then
6496      LIBS="$LIBS -ljpeg"
6497    else
6498         echo "------------------"
6499         echo "jpeg library not found."
6500         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
6501         echo "------------------"
6502         exit -1
6503    fi
6504 fi
6505
6506#--------#
6507# libpng #
6508#--------#
6509
6510for ac_header in png.h
6511do
6512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514  echo "$as_me:$LINENO: checking for $ac_header" >&5
6515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6516if eval "test \"\${$as_ac_Header+set}\" = set"; then
6517  echo $ECHO_N "(cached) $ECHO_C" >&6
6518fi
6519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6521else
6522  # Is the header compilable?
6523echo "$as_me:$LINENO: checking $ac_header usability" >&5
6524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6525cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h.  */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h.  */
6531$ac_includes_default
6532#include <$ac_header>
6533_ACEOF
6534rm -f conftest.$ac_objext
6535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536  (eval $ac_compile) 2>conftest.er1
6537  ac_status=$?
6538  grep -v '^ *+' conftest.er1 >conftest.err
6539  rm -f conftest.er1
6540  cat conftest.err >&5
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); } &&
6543         { ac_try='test -z "$ac_c_werror_flag"
6544                         || test ! -s conftest.err'
6545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546  (eval $ac_try) 2>&5
6547  ac_status=$?
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); }; } &&
6550         { ac_try='test -s conftest.$ac_objext'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; }; then
6556  ac_header_compiler=yes
6557else
6558  echo "$as_me: failed program was:" >&5
6559sed 's/^/| /' conftest.$ac_ext >&5
6560
6561ac_header_compiler=no
6562fi
6563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565echo "${ECHO_T}$ac_header_compiler" >&6
6566
6567# Is the header present?
6568echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6570cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h.  */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h.  */
6576#include <$ac_header>
6577_ACEOF
6578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6579  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6580  ac_status=$?
6581  grep -v '^ *+' conftest.er1 >conftest.err
6582  rm -f conftest.er1
6583  cat conftest.err >&5
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); } >/dev/null; then
6586  if test -s conftest.err; then
6587    ac_cpp_err=$ac_c_preproc_warn_flag
6588    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6589  else
6590    ac_cpp_err=
6591  fi
6592else
6593  ac_cpp_err=yes
6594fi
6595if test -z "$ac_cpp_err"; then
6596  ac_header_preproc=yes
6597else
6598  echo "$as_me: failed program was:" >&5
6599sed 's/^/| /' conftest.$ac_ext >&5
6600
6601  ac_header_preproc=no
6602fi
6603rm -f conftest.err conftest.$ac_ext
6604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605echo "${ECHO_T}$ac_header_preproc" >&6
6606
6607# So?  What about this header?
6608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609  yes:no: )
6610    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614    ac_header_preproc=yes
6615    ;;
6616  no:yes:* )
6617    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6620echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6621    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6624echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6625    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6629    (
6630      cat <<\_ASBOX
6631## ---------------------------------------------- ##
6632## Report this to orxonox-dev at mail.datacore.ch ##
6633## ---------------------------------------------- ##
6634_ASBOX
6635    ) |
6636      sed "s/^/$as_me: WARNING:     /" >&2
6637    ;;
6638esac
6639echo "$as_me:$LINENO: checking for $ac_header" >&5
6640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6641if eval "test \"\${$as_ac_Header+set}\" = set"; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  eval "$as_ac_Header=\$ac_header_preproc"
6645fi
6646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6648
6649fi
6650if test `eval echo '${'$as_ac_Header'}'` = yes; then
6651  cat >>confdefs.h <<_ACEOF
6652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6653_ACEOF
6654 pngHeader="yes"
6655else
6656  pngHeader="no"
6657fi
6658
6659done
6660
6661 if test x$pngHeader = xno; then
6662        echo " not including png."
6663 else
6664  echo "$as_me:$LINENO: checking for main in -lpng" >&5
6665echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6666if test "${ac_cv_lib_png_main+set}" = set; then
6667  echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669  ac_check_lib_save_LIBS=$LIBS
6670LIBS="-lpng  $LIBS"
6671cat >conftest.$ac_ext <<_ACEOF
6672/* confdefs.h.  */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h.  */
6677
6678
6679int
6680main ()
6681{
6682main ();
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687rm -f conftest.$ac_objext conftest$ac_exeext
6688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6689  (eval $ac_link) 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } &&
6696         { ac_try='test -z "$ac_c_werror_flag"
6697                         || test ! -s conftest.err'
6698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699  (eval $ac_try) 2>&5
6700  ac_status=$?
6701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702  (exit $ac_status); }; } &&
6703         { ac_try='test -s conftest$ac_exeext'
6704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705  (eval $ac_try) 2>&5
6706  ac_status=$?
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); }; }; then
6709  ac_cv_lib_png_main=yes
6710else
6711  echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
6713
6714ac_cv_lib_png_main=no
6715fi
6716rm -f conftest.err conftest.$ac_objext \
6717      conftest$ac_exeext conftest.$ac_ext
6718LIBS=$ac_check_lib_save_LIBS
6719fi
6720echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6721echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6722if test $ac_cv_lib_png_main = yes; then
6723  FOUND_png=yes
6724fi
6725
6726    if test x$FOUND_png = xyes ; then
6727      LIBS="$LIBS -lpng"
6728    else
6729         echo "------------------"
6730         echo "png library not found."
6731         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
6732         echo "------------------"
6733         exit -1
6734    fi
6735 fi
6736fi
6737
6738#-----#
6739# GTK #
6740#-----#
6741if test x$def_gtk = xyes; then
6742
6743        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6744        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6745echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6746        if `pkg-config --exists gtk+-2.0`; then
6747                echo "yes"
6748                have_gtk2=yes
6749                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6750                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6751
6752cat >>confdefs.h <<_ACEOF
6753#define HAVE_GTK2 1
6754_ACEOF
6755
6756        else
6757                echo "no"
6758        fi
6759
6760fi
6761
6762
6763
6764
6765if test x$have_gtk2 = xyes; then
6766  HAVE_GTK2_TRUE=
6767  HAVE_GTK2_FALSE='#'
6768else
6769  HAVE_GTK2_TRUE='#'
6770  HAVE_GTK2_FALSE=
6771fi
6772
6773
6774#---------#
6775# gThread #
6776#---------#
6777if test x$def_gthread = xyes; then
6778
6779        echo "$as_me:$LINENO: checking for gthread" >&5
6780echo $ECHO_N "checking for gthread... $ECHO_C" >&6
6781        if `pkg-config --exists gthread-2.0`; then
6782                echo "yes"
6783                have_gthread=yes
6784                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
6785                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
6786
6787cat >>confdefs.h <<_ACEOF
6788#define HAVE_GTHREAD 1
6789_ACEOF
6790
6791        else
6792                echo "no"
6793        fi
6794
6795fi
6796
6797
6798
6799
6800if test x$have_gthread = xyes; then
6801  HAVE_GTHREAD_TRUE=
6802  HAVE_GTHREAD_FALSE='#'
6803else
6804  HAVE_GTHREAD_TRUE='#'
6805  HAVE_GTHREAD_FALSE=
6806fi
6807
6808
6809#---------#
6810# libcURL #
6811#---------#
6812if test x$def_curl = xyes; then
6813
6814
6815for ac_header in curl/curl.h
6816do
6817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6818if eval "test \"\${$as_ac_Header+set}\" = set"; then
6819  echo "$as_me:$LINENO: checking for $ac_header" >&5
6820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6821if eval "test \"\${$as_ac_Header+set}\" = set"; then
6822  echo $ECHO_N "(cached) $ECHO_C" >&6
6823fi
6824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6826else
6827  # Is the header compilable?
6828echo "$as_me:$LINENO: checking $ac_header usability" >&5
6829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6830cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h.  */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h.  */
6836$ac_includes_default
6837#include <$ac_header>
6838_ACEOF
6839rm -f conftest.$ac_objext
6840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6841  (eval $ac_compile) 2>conftest.er1
6842  ac_status=$?
6843  grep -v '^ *+' conftest.er1 >conftest.err
6844  rm -f conftest.er1
6845  cat conftest.err >&5
6846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847  (exit $ac_status); } &&
6848         { ac_try='test -z "$ac_c_werror_flag"
6849                         || test ! -s conftest.err'
6850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851  (eval $ac_try) 2>&5
6852  ac_status=$?
6853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854  (exit $ac_status); }; } &&
6855         { ac_try='test -s conftest.$ac_objext'
6856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857  (eval $ac_try) 2>&5
6858  ac_status=$?
6859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860  (exit $ac_status); }; }; then
6861  ac_header_compiler=yes
6862else
6863  echo "$as_me: failed program was:" >&5
6864sed 's/^/| /' conftest.$ac_ext >&5
6865
6866ac_header_compiler=no
6867fi
6868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6869echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6870echo "${ECHO_T}$ac_header_compiler" >&6
6871
6872# Is the header present?
6873echo "$as_me:$LINENO: checking $ac_header presence" >&5
6874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6875cat >conftest.$ac_ext <<_ACEOF
6876/* confdefs.h.  */
6877_ACEOF
6878cat confdefs.h >>conftest.$ac_ext
6879cat >>conftest.$ac_ext <<_ACEOF
6880/* end confdefs.h.  */
6881#include <$ac_header>
6882_ACEOF
6883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6884  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6885  ac_status=$?
6886  grep -v '^ *+' conftest.er1 >conftest.err
6887  rm -f conftest.er1
6888  cat conftest.err >&5
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); } >/dev/null; then
6891  if test -s conftest.err; then
6892    ac_cpp_err=$ac_c_preproc_warn_flag
6893    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6894  else
6895    ac_cpp_err=
6896  fi
6897else
6898  ac_cpp_err=yes
6899fi
6900if test -z "$ac_cpp_err"; then
6901  ac_header_preproc=yes
6902else
6903  echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
6906  ac_header_preproc=no
6907fi
6908rm -f conftest.err conftest.$ac_ext
6909echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6910echo "${ECHO_T}$ac_header_preproc" >&6
6911
6912# So?  What about this header?
6913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6914  yes:no: )
6915    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6916echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6917    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6918echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6919    ac_header_preproc=yes
6920    ;;
6921  no:yes:* )
6922    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6924    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6925echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6926    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6927echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6928    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6929echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6930    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6931echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6932    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6933echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6934    (
6935      cat <<\_ASBOX
6936## ---------------------------------------------- ##
6937## Report this to orxonox-dev at mail.datacore.ch ##
6938## ---------------------------------------------- ##
6939_ASBOX
6940    ) |
6941      sed "s/^/$as_me: WARNING:     /" >&2
6942    ;;
6943esac
6944echo "$as_me:$LINENO: checking for $ac_header" >&5
6945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6946if eval "test \"\${$as_ac_Header+set}\" = set"; then
6947  echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949  eval "$as_ac_Header=\$ac_header_preproc"
6950fi
6951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6953
6954fi
6955if test `eval echo '${'$as_ac_Header'}'` = yes; then
6956  cat >>confdefs.h <<_ACEOF
6957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6958_ACEOF
6959 curlHeader="yes"
6960else
6961  curlHeader="no"
6962fi
6963
6964done
6965
6966 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
6967echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
6968if test "${ac_cv_lib_curl_main+set}" = set; then
6969  echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971  ac_check_lib_save_LIBS=$LIBS
6972LIBS="-lcurl  $LIBS"
6973cat >conftest.$ac_ext <<_ACEOF
6974/* confdefs.h.  */
6975_ACEOF
6976cat confdefs.h >>conftest.$ac_ext
6977cat >>conftest.$ac_ext <<_ACEOF
6978/* end confdefs.h.  */
6979
6980
6981int
6982main ()
6983{
6984main ();
6985  ;
6986  return 0;
6987}
6988_ACEOF
6989rm -f conftest.$ac_objext conftest$ac_exeext
6990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991  (eval $ac_link) 2>conftest.er1
6992  ac_status=$?
6993  grep -v '^ *+' conftest.er1 >conftest.err
6994  rm -f conftest.er1
6995  cat conftest.err >&5
6996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997  (exit $ac_status); } &&
6998         { ac_try='test -z "$ac_c_werror_flag"
6999                         || test ! -s conftest.err'
7000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001  (eval $ac_try) 2>&5
7002  ac_status=$?
7003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004  (exit $ac_status); }; } &&
7005         { ac_try='test -s conftest$ac_exeext'
7006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007  (eval $ac_try) 2>&5
7008  ac_status=$?
7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010  (exit $ac_status); }; }; then
7011  ac_cv_lib_curl_main=yes
7012else
7013  echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
7016ac_cv_lib_curl_main=no
7017fi
7018rm -f conftest.err conftest.$ac_objext \
7019      conftest$ac_exeext conftest.$ac_ext
7020LIBS=$ac_check_lib_save_LIBS
7021fi
7022echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
7023echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
7024if test $ac_cv_lib_curl_main = yes; then
7025  FOUND_curl=yes
7026fi
7027
7028 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
7029  have_curl=yes
7030  CURL_LIBS=`curl-config --libs`
7031  CURLCFLAGS=`curl-config --cflags`
7032
7033cat >>confdefs.h <<_ACEOF
7034#define HAVE_CURL 1
7035_ACEOF
7036
7037 else
7038  have_curl=no
7039 fi
7040
7041fi
7042
7043
7044
7045
7046if test x$have_curl = xyes; then
7047  HAVE_CURL_TRUE=
7048  HAVE_CURL_FALSE='#'
7049else
7050  HAVE_CURL_TRUE='#'
7051  HAVE_CURL_FALSE=
7052fi
7053
7054
7055#---------#
7056# pthread #
7057#---------#
7058if test x$def_pthread = xyes ; then
7059 if test x$have_gthread = xyes ; then
7060
7061for ac_header in pthread.h
7062do
7063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064if eval "test \"\${$as_ac_Header+set}\" = set"; then
7065  echo "$as_me:$LINENO: checking for $ac_header" >&5
7066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7067if eval "test \"\${$as_ac_Header+set}\" = set"; then
7068  echo $ECHO_N "(cached) $ECHO_C" >&6
7069fi
7070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7072else
7073  # Is the header compilable?
7074echo "$as_me:$LINENO: checking $ac_header usability" >&5
7075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7076cat >conftest.$ac_ext <<_ACEOF
7077/* confdefs.h.  */
7078_ACEOF
7079cat confdefs.h >>conftest.$ac_ext
7080cat >>conftest.$ac_ext <<_ACEOF
7081/* end confdefs.h.  */
7082$ac_includes_default
7083#include <$ac_header>
7084_ACEOF
7085rm -f conftest.$ac_objext
7086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087  (eval $ac_compile) 2>conftest.er1
7088  ac_status=$?
7089  grep -v '^ *+' conftest.er1 >conftest.err
7090  rm -f conftest.er1
7091  cat conftest.err >&5
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); } &&
7094         { ac_try='test -z "$ac_c_werror_flag"
7095                         || test ! -s conftest.err'
7096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097  (eval $ac_try) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); }; } &&
7101         { ac_try='test -s conftest.$ac_objext'
7102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103  (eval $ac_try) 2>&5
7104  ac_status=$?
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); }; }; then
7107  ac_header_compiler=yes
7108else
7109  echo "$as_me: failed program was:" >&5
7110sed 's/^/| /' conftest.$ac_ext >&5
7111
7112ac_header_compiler=no
7113fi
7114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7116echo "${ECHO_T}$ac_header_compiler" >&6
7117
7118# Is the header present?
7119echo "$as_me:$LINENO: checking $ac_header presence" >&5
7120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7121cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h.  */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h.  */
7127#include <$ac_header>
7128_ACEOF
7129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7130  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7131  ac_status=$?
7132  grep -v '^ *+' conftest.er1 >conftest.err
7133  rm -f conftest.er1
7134  cat conftest.err >&5
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); } >/dev/null; then
7137  if test -s conftest.err; then
7138    ac_cpp_err=$ac_c_preproc_warn_flag
7139    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7140  else
7141    ac_cpp_err=
7142  fi
7143else
7144  ac_cpp_err=yes
7145fi
7146if test -z "$ac_cpp_err"; then
7147  ac_header_preproc=yes
7148else
7149  echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152  ac_header_preproc=no
7153fi
7154rm -f conftest.err conftest.$ac_ext
7155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7156echo "${ECHO_T}$ac_header_preproc" >&6
7157
7158# So?  What about this header?
7159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7160  yes:no: )
7161    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7163    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7165    ac_header_preproc=yes
7166    ;;
7167  no:yes:* )
7168    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7170    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7171echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7172    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7174    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7175echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7176    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7178    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7180    (
7181      cat <<\_ASBOX
7182## ---------------------------------------------- ##
7183## Report this to orxonox-dev at mail.datacore.ch ##
7184## ---------------------------------------------- ##
7185_ASBOX
7186    ) |
7187      sed "s/^/$as_me: WARNING:     /" >&2
7188    ;;
7189esac
7190echo "$as_me:$LINENO: checking for $ac_header" >&5
7191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7192if eval "test \"\${$as_ac_Header+set}\" = set"; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195  eval "$as_ac_Header=\$ac_header_preproc"
7196fi
7197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7199
7200fi
7201if test `eval echo '${'$as_ac_Header'}'` = yes; then
7202  cat >>confdefs.h <<_ACEOF
7203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7204_ACEOF
7205 pthreadHeader="yes"
7206else
7207  pthreadHeader="no"
7208fi
7209
7210done
7211
7212  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7213echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7214if test "${ac_cv_lib_pthread_main+set}" = set; then
7215  echo $ECHO_N "(cached) $ECHO_C" >&6
7216else
7217  ac_check_lib_save_LIBS=$LIBS
7218LIBS="-lpthread  $LIBS"
7219cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h.  */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h.  */
7225
7226
7227int
7228main ()
7229{
7230main ();
7231  ;
7232  return 0;
7233}
7234_ACEOF
7235rm -f conftest.$ac_objext conftest$ac_exeext
7236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7237  (eval $ac_link) 2>conftest.er1
7238  ac_status=$?
7239  grep -v '^ *+' conftest.er1 >conftest.err
7240  rm -f conftest.er1
7241  cat conftest.err >&5
7242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243  (exit $ac_status); } &&
7244         { ac_try='test -z "$ac_c_werror_flag"
7245                         || test ! -s conftest.err'
7246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247  (eval $ac_try) 2>&5
7248  ac_status=$?
7249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250  (exit $ac_status); }; } &&
7251         { ac_try='test -s conftest$ac_exeext'
7252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253  (eval $ac_try) 2>&5
7254  ac_status=$?
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); }; }; then
7257  ac_cv_lib_pthread_main=yes
7258else
7259  echo "$as_me: failed program was:" >&5
7260sed 's/^/| /' conftest.$ac_ext >&5
7261
7262ac_cv_lib_pthread_main=no
7263fi
7264rm -f conftest.err conftest.$ac_objext \
7265      conftest$ac_exeext conftest.$ac_ext
7266LIBS=$ac_check_lib_save_LIBS
7267fi
7268echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7269echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7270if test $ac_cv_lib_pthread_main = yes; then
7271  FOUND_pthread=yes
7272fi
7273
7274   if test x$FOUND_pthread = xyes ; then
7275      LIBS="$LIBS -lpthread"
7276   fi
7277 fi
7278fi
7279
7280
7281# FIXME: Replace `main' with a function in `-lm':
7282
7283echo "$as_me:$LINENO: checking for main in -lm" >&5
7284echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7285if test "${ac_cv_lib_m_main+set}" = set; then
7286  echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288  ac_check_lib_save_LIBS=$LIBS
7289LIBS="-lm  $LIBS"
7290cat >conftest.$ac_ext <<_ACEOF
7291/* confdefs.h.  */
7292_ACEOF
7293cat confdefs.h >>conftest.$ac_ext
7294cat >>conftest.$ac_ext <<_ACEOF
7295/* end confdefs.h.  */
7296
7297
7298int
7299main ()
7300{
7301main ();
7302  ;
7303  return 0;
7304}
7305_ACEOF
7306rm -f conftest.$ac_objext conftest$ac_exeext
7307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308  (eval $ac_link) 2>conftest.er1
7309  ac_status=$?
7310  grep -v '^ *+' conftest.er1 >conftest.err
7311  rm -f conftest.er1
7312  cat conftest.err >&5
7313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314  (exit $ac_status); } &&
7315         { ac_try='test -z "$ac_c_werror_flag"
7316                         || test ! -s conftest.err'
7317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318  (eval $ac_try) 2>&5
7319  ac_status=$?
7320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321  (exit $ac_status); }; } &&
7322         { ac_try='test -s conftest$ac_exeext'
7323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324  (eval $ac_try) 2>&5
7325  ac_status=$?
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); }; }; then
7328  ac_cv_lib_m_main=yes
7329else
7330  echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333ac_cv_lib_m_main=no
7334fi
7335rm -f conftest.err conftest.$ac_objext \
7336      conftest$ac_exeext conftest.$ac_ext
7337LIBS=$ac_check_lib_save_LIBS
7338fi
7339echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7340echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7341if test $ac_cv_lib_m_main = yes; then
7342  cat >>confdefs.h <<_ACEOF
7343#define HAVE_LIBM 1
7344_ACEOF
7345
7346  LIBS="-lm $LIBS"
7347
7348fi
7349
7350
7351
7352# Checks for header files.
7353echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7354echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7355if test "${ac_cv_header_stdc+set}" = set; then
7356  echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358  cat >conftest.$ac_ext <<_ACEOF
7359/* confdefs.h.  */
7360_ACEOF
7361cat confdefs.h >>conftest.$ac_ext
7362cat >>conftest.$ac_ext <<_ACEOF
7363/* end confdefs.h.  */
7364#include <stdlib.h>
7365#include <stdarg.h>
7366#include <string.h>
7367#include <float.h>
7368
7369int
7370main ()
7371{
7372
7373  ;
7374  return 0;
7375}
7376_ACEOF
7377rm -f conftest.$ac_objext
7378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379  (eval $ac_compile) 2>conftest.er1
7380  ac_status=$?
7381  grep -v '^ *+' conftest.er1 >conftest.err
7382  rm -f conftest.er1
7383  cat conftest.err >&5
7384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385  (exit $ac_status); } &&
7386         { ac_try='test -z "$ac_c_werror_flag"
7387                         || test ! -s conftest.err'
7388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389  (eval $ac_try) 2>&5
7390  ac_status=$?
7391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392  (exit $ac_status); }; } &&
7393         { ac_try='test -s conftest.$ac_objext'
7394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395  (eval $ac_try) 2>&5
7396  ac_status=$?
7397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398  (exit $ac_status); }; }; then
7399  ac_cv_header_stdc=yes
7400else
7401  echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404ac_cv_header_stdc=no
7405fi
7406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7407
7408if test $ac_cv_header_stdc = yes; then
7409  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7410  cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h.  */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h.  */
7416#include <string.h>
7417
7418_ACEOF
7419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7420  $EGREP "memchr" >/dev/null 2>&1; then
7421  :
7422else
7423  ac_cv_header_stdc=no
7424fi
7425rm -f conftest*
7426
7427fi
7428
7429if test $ac_cv_header_stdc = yes; then
7430  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7431  cat >conftest.$ac_ext <<_ACEOF
7432/* confdefs.h.  */
7433_ACEOF
7434cat confdefs.h >>conftest.$ac_ext
7435cat >>conftest.$ac_ext <<_ACEOF
7436/* end confdefs.h.  */
7437#include <stdlib.h>
7438
7439_ACEOF
7440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7441  $EGREP "free" >/dev/null 2>&1; then
7442  :
7443else
7444  ac_cv_header_stdc=no
7445fi
7446rm -f conftest*
7447
7448fi
7449
7450if test $ac_cv_header_stdc = yes; then
7451  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7452  if test "$cross_compiling" = yes; then
7453  :
7454else
7455  cat >conftest.$ac_ext <<_ACEOF
7456/* confdefs.h.  */
7457_ACEOF
7458cat confdefs.h >>conftest.$ac_ext
7459cat >>conftest.$ac_ext <<_ACEOF
7460/* end confdefs.h.  */
7461#include <ctype.h>
7462#if ((' ' & 0x0FF) == 0x020)
7463# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7464# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7465#else
7466# define ISLOWER(c) \
7467                   (('a' <= (c) && (c) <= 'i') \
7468                     || ('j' <= (c) && (c) <= 'r') \
7469                     || ('s' <= (c) && (c) <= 'z'))
7470# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7471#endif
7472
7473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7474int
7475main ()
7476{
7477  int i;
7478  for (i = 0; i < 256; i++)
7479    if (XOR (islower (i), ISLOWER (i))
7480        || toupper (i) != TOUPPER (i))
7481      exit(2);
7482  exit (0);
7483}
7484_ACEOF
7485rm -f conftest$ac_exeext
7486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7487  (eval $ac_link) 2>&5
7488  ac_status=$?
7489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492  (eval $ac_try) 2>&5
7493  ac_status=$?
7494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495  (exit $ac_status); }; }; then
7496  :
7497else
7498  echo "$as_me: program exited with status $ac_status" >&5
7499echo "$as_me: failed program was:" >&5
7500sed 's/^/| /' conftest.$ac_ext >&5
7501
7502( exit $ac_status )
7503ac_cv_header_stdc=no
7504fi
7505rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7506fi
7507fi
7508fi
7509echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7510echo "${ECHO_T}$ac_cv_header_stdc" >&6
7511if test $ac_cv_header_stdc = yes; then
7512
7513cat >>confdefs.h <<\_ACEOF
7514#define STDC_HEADERS 1
7515_ACEOF
7516
7517fi
7518
7519
7520
7521for ac_header in stdlib.h string.h
7522do
7523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7524if eval "test \"\${$as_ac_Header+set}\" = set"; then
7525  echo "$as_me:$LINENO: checking for $ac_header" >&5
7526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7527if eval "test \"\${$as_ac_Header+set}\" = set"; then
7528  echo $ECHO_N "(cached) $ECHO_C" >&6
7529fi
7530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7532else
7533  # Is the header compilable?
7534echo "$as_me:$LINENO: checking $ac_header usability" >&5
7535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7536cat >conftest.$ac_ext <<_ACEOF
7537/* confdefs.h.  */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h.  */
7542$ac_includes_default
7543#include <$ac_header>
7544_ACEOF
7545rm -f conftest.$ac_objext
7546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547  (eval $ac_compile) 2>conftest.er1
7548  ac_status=$?
7549  grep -v '^ *+' conftest.er1 >conftest.err
7550  rm -f conftest.er1
7551  cat conftest.err >&5
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); } &&
7554         { ac_try='test -z "$ac_c_werror_flag"
7555                         || test ! -s conftest.err'
7556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557  (eval $ac_try) 2>&5
7558  ac_status=$?
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); }; } &&
7561         { ac_try='test -s conftest.$ac_objext'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; }; then
7567  ac_header_compiler=yes
7568else
7569  echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572ac_header_compiler=no
7573fi
7574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7576echo "${ECHO_T}$ac_header_compiler" >&6
7577
7578# Is the header present?
7579echo "$as_me:$LINENO: checking $ac_header presence" >&5
7580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7581cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h.  */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h.  */
7587#include <$ac_header>
7588_ACEOF
7589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7590  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7591  ac_status=$?
7592  grep -v '^ *+' conftest.er1 >conftest.err
7593  rm -f conftest.er1
7594  cat conftest.err >&5
7595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596  (exit $ac_status); } >/dev/null; then
7597  if test -s conftest.err; then
7598    ac_cpp_err=$ac_c_preproc_warn_flag
7599    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7600  else
7601    ac_cpp_err=
7602  fi
7603else
7604  ac_cpp_err=yes
7605fi
7606if test -z "$ac_cpp_err"; then
7607  ac_header_preproc=yes
7608else
7609  echo "$as_me: failed program was:" >&5
7610sed 's/^/| /' conftest.$ac_ext >&5
7611
7612  ac_header_preproc=no
7613fi
7614rm -f conftest.err conftest.$ac_ext
7615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7616echo "${ECHO_T}$ac_header_preproc" >&6
7617
7618# So?  What about this header?
7619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7620  yes:no: )
7621    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7623    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7625    ac_header_preproc=yes
7626    ;;
7627  no:yes:* )
7628    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7630    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7631echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7632    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7634    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7635echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7636    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7638    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7640    (
7641      cat <<\_ASBOX
7642## ---------------------------------------------- ##
7643## Report this to orxonox-dev at mail.datacore.ch ##
7644## ---------------------------------------------- ##
7645_ASBOX
7646    ) |
7647      sed "s/^/$as_me: WARNING:     /" >&2
7648    ;;
7649esac
7650echo "$as_me:$LINENO: checking for $ac_header" >&5
7651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7652if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653  echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655  eval "$as_ac_Header=\$ac_header_preproc"
7656fi
7657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7659
7660fi
7661if test `eval echo '${'$as_ac_Header'}'` = yes; then
7662  cat >>confdefs.h <<_ACEOF
7663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7664_ACEOF
7665
7666fi
7667
7668done
7669
7670
7671# Checks for typedefs, structures, and compiler characteristics.
7672echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7673echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7674if test "${ac_cv_header_stdbool_h+set}" = set; then
7675  echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677  cat >conftest.$ac_ext <<_ACEOF
7678/* confdefs.h.  */
7679_ACEOF
7680cat confdefs.h >>conftest.$ac_ext
7681cat >>conftest.$ac_ext <<_ACEOF
7682/* end confdefs.h.  */
7683
7684#include <stdbool.h>
7685#ifndef bool
7686# error bool is not defined
7687#endif
7688#ifndef false
7689# error false is not defined
7690#endif
7691#if false
7692# error false is not 0
7693#endif
7694#ifndef true
7695# error true is not defined
7696#endif
7697#if true != 1
7698# error true is not 1
7699#endif
7700#ifndef __bool_true_false_are_defined
7701# error __bool_true_false_are_defined is not defined
7702#endif
7703
7704        struct s { _Bool s: 1; _Bool t; } s;
7705
7706        char a[true == 1 ? 1 : -1];
7707        char b[false == 0 ? 1 : -1];
7708        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7709        char d[(bool) -0.5 == true ? 1 : -1];
7710        bool e = &s;
7711        char f[(_Bool) -0.0 == false ? 1 : -1];
7712        char g[true];
7713        char h[sizeof (_Bool)];
7714        char i[sizeof s.t];
7715
7716int
7717main ()
7718{
7719 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7720  ;
7721  return 0;
7722}
7723_ACEOF
7724rm -f conftest.$ac_objext
7725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7726  (eval $ac_compile) 2>conftest.er1
7727  ac_status=$?
7728  grep -v '^ *+' conftest.er1 >conftest.err
7729  rm -f conftest.er1
7730  cat conftest.err >&5
7731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732  (exit $ac_status); } &&
7733         { ac_try='test -z "$ac_c_werror_flag"
7734                         || test ! -s conftest.err'
7735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736  (eval $ac_try) 2>&5
7737  ac_status=$?
7738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739  (exit $ac_status); }; } &&
7740         { ac_try='test -s conftest.$ac_objext'
7741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742  (eval $ac_try) 2>&5
7743  ac_status=$?
7744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745  (exit $ac_status); }; }; then
7746  ac_cv_header_stdbool_h=yes
7747else
7748  echo "$as_me: failed program was:" >&5
7749sed 's/^/| /' conftest.$ac_ext >&5
7750
7751ac_cv_header_stdbool_h=no
7752fi
7753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7754fi
7755echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7756echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7757echo "$as_me:$LINENO: checking for _Bool" >&5
7758echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7759if test "${ac_cv_type__Bool+set}" = set; then
7760  echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762  cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h.  */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h.  */
7768$ac_includes_default
7769int
7770main ()
7771{
7772if ((_Bool *) 0)
7773  return 0;
7774if (sizeof (_Bool))
7775  return 0;
7776  ;
7777  return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext
7781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782  (eval $ac_compile) 2>conftest.er1
7783  ac_status=$?
7784  grep -v '^ *+' conftest.er1 >conftest.err
7785  rm -f conftest.er1
7786  cat conftest.err >&5
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); } &&
7789         { ac_try='test -z "$ac_c_werror_flag"
7790                         || test ! -s conftest.err'
7791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792  (eval $ac_try) 2>&5
7793  ac_status=$?
7794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795  (exit $ac_status); }; } &&
7796         { ac_try='test -s conftest.$ac_objext'
7797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798  (eval $ac_try) 2>&5
7799  ac_status=$?
7800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801  (exit $ac_status); }; }; then
7802  ac_cv_type__Bool=yes
7803else
7804  echo "$as_me: failed program was:" >&5
7805sed 's/^/| /' conftest.$ac_ext >&5
7806
7807ac_cv_type__Bool=no
7808fi
7809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810fi
7811echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7812echo "${ECHO_T}$ac_cv_type__Bool" >&6
7813if test $ac_cv_type__Bool = yes; then
7814
7815cat >>confdefs.h <<_ACEOF
7816#define HAVE__BOOL 1
7817_ACEOF
7818
7819
7820fi
7821
7822if test $ac_cv_header_stdbool_h = yes; then
7823
7824cat >>confdefs.h <<\_ACEOF
7825#define HAVE_STDBOOL_H 1
7826_ACEOF
7827
7828fi
7829
7830
7831# Checks for library functions.
7832
7833for ac_header in stdlib.h
7834do
7835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7836if eval "test \"\${$as_ac_Header+set}\" = set"; then
7837  echo "$as_me:$LINENO: checking for $ac_header" >&5
7838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7839if eval "test \"\${$as_ac_Header+set}\" = set"; then
7840  echo $ECHO_N "(cached) $ECHO_C" >&6
7841fi
7842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7844else
7845  # Is the header compilable?
7846echo "$as_me:$LINENO: checking $ac_header usability" >&5
7847echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7848cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h.  */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h.  */
7854$ac_includes_default
7855#include <$ac_header>
7856_ACEOF
7857rm -f conftest.$ac_objext
7858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7859  (eval $ac_compile) 2>conftest.er1
7860  ac_status=$?
7861  grep -v '^ *+' conftest.er1 >conftest.err
7862  rm -f conftest.er1
7863  cat conftest.err >&5
7864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865  (exit $ac_status); } &&
7866         { ac_try='test -z "$ac_c_werror_flag"
7867                         || test ! -s conftest.err'
7868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869  (eval $ac_try) 2>&5
7870  ac_status=$?
7871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872  (exit $ac_status); }; } &&
7873         { ac_try='test -s conftest.$ac_objext'
7874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875  (eval $ac_try) 2>&5
7876  ac_status=$?
7877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878  (exit $ac_status); }; }; then
7879  ac_header_compiler=yes
7880else
7881  echo "$as_me: failed program was:" >&5
7882sed 's/^/| /' conftest.$ac_ext >&5
7883
7884ac_header_compiler=no
7885fi
7886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7888echo "${ECHO_T}$ac_header_compiler" >&6
7889
7890# Is the header present?
7891echo "$as_me:$LINENO: checking $ac_header presence" >&5
7892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7893cat >conftest.$ac_ext <<_ACEOF
7894/* confdefs.h.  */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h.  */
7899#include <$ac_header>
7900_ACEOF
7901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7902  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7903  ac_status=$?
7904  grep -v '^ *+' conftest.er1 >conftest.err
7905  rm -f conftest.er1
7906  cat conftest.err >&5
7907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908  (exit $ac_status); } >/dev/null; then
7909  if test -s conftest.err; then
7910    ac_cpp_err=$ac_c_preproc_warn_flag
7911    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7912  else
7913    ac_cpp_err=
7914  fi
7915else
7916  ac_cpp_err=yes
7917fi
7918if test -z "$ac_cpp_err"; then
7919  ac_header_preproc=yes
7920else
7921  echo "$as_me: failed program was:" >&5
7922sed 's/^/| /' conftest.$ac_ext >&5
7923
7924  ac_header_preproc=no
7925fi
7926rm -f conftest.err conftest.$ac_ext
7927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7928echo "${ECHO_T}$ac_header_preproc" >&6
7929
7930# So?  What about this header?
7931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7932  yes:no: )
7933    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7937    ac_header_preproc=yes
7938    ;;
7939  no:yes:* )
7940    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7942    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7943echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7944    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7946    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7947echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7948    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7950    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7952    (
7953      cat <<\_ASBOX
7954## ---------------------------------------------- ##
7955## Report this to orxonox-dev at mail.datacore.ch ##
7956## ---------------------------------------------- ##
7957_ASBOX
7958    ) |
7959      sed "s/^/$as_me: WARNING:     /" >&2
7960    ;;
7961esac
7962echo "$as_me:$LINENO: checking for $ac_header" >&5
7963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7964if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965  echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967  eval "$as_ac_Header=\$ac_header_preproc"
7968fi
7969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7971
7972fi
7973if test `eval echo '${'$as_ac_Header'}'` = yes; then
7974  cat >>confdefs.h <<_ACEOF
7975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7976_ACEOF
7977
7978fi
7979
7980done
7981
7982echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7983echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
7984if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7985  echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987  if test "$cross_compiling" = yes; then
7988  ac_cv_func_malloc_0_nonnull=no
7989else
7990  cat >conftest.$ac_ext <<_ACEOF
7991/* confdefs.h.  */
7992_ACEOF
7993cat confdefs.h >>conftest.$ac_ext
7994cat >>conftest.$ac_ext <<_ACEOF
7995/* end confdefs.h.  */
7996#if STDC_HEADERS || HAVE_STDLIB_H
7997# include <stdlib.h>
7998#else
7999char *malloc ();
8000#endif
8001
8002int
8003main ()
8004{
8005exit (malloc (0) ? 0 : 1);
8006  ;
8007  return 0;
8008}
8009_ACEOF
8010rm -f conftest$ac_exeext
8011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012  (eval $ac_link) 2>&5
8013  ac_status=$?
8014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017  (eval $ac_try) 2>&5
8018  ac_status=$?
8019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020  (exit $ac_status); }; }; then
8021  ac_cv_func_malloc_0_nonnull=yes
8022else
8023  echo "$as_me: program exited with status $ac_status" >&5
8024echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027( exit $ac_status )
8028ac_cv_func_malloc_0_nonnull=no
8029fi
8030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8031fi
8032fi
8033echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8034echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8035if test $ac_cv_func_malloc_0_nonnull = yes; then
8036
8037cat >>confdefs.h <<\_ACEOF
8038#define HAVE_MALLOC 1
8039_ACEOF
8040
8041else
8042  cat >>confdefs.h <<\_ACEOF
8043#define HAVE_MALLOC 0
8044_ACEOF
8045
8046   case $LIBOBJS in
8047    "malloc.$ac_objext"   | \
8048  *" malloc.$ac_objext"   | \
8049    "malloc.$ac_objext "* | \
8050  *" malloc.$ac_objext "* ) ;;
8051  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8052esac
8053
8054
8055cat >>confdefs.h <<\_ACEOF
8056#define malloc rpl_malloc
8057_ACEOF
8058
8059fi
8060
8061
8062
8063
8064
8065for ac_func in bzero sqrt
8066do
8067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8068echo "$as_me:$LINENO: checking for $ac_func" >&5
8069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8070if eval "test \"\${$as_ac_var+set}\" = set"; then
8071  echo $ECHO_N "(cached) $ECHO_C" >&6
8072else
8073  cat >conftest.$ac_ext <<_ACEOF
8074/* confdefs.h.  */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h.  */
8079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8081#define $ac_func innocuous_$ac_func
8082
8083/* System header to define __stub macros and hopefully few prototypes,
8084    which can conflict with char $ac_func (); below.
8085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8086    <limits.h> exists even on freestanding compilers.  */
8087
8088#ifdef __STDC__
8089# include <limits.h>
8090#else
8091# include <assert.h>
8092#endif
8093
8094#undef $ac_func
8095
8096/* Override any gcc2 internal prototype to avoid an error.  */
8097#ifdef __cplusplus
8098extern "C"
8099{
8100#endif
8101/* We use char because int might match the return type of a gcc2
8102   builtin and then its argument prototype would still apply.  */
8103char $ac_func ();
8104/* The GNU C library defines this for functions which it implements
8105    to always fail with ENOSYS.  Some functions are actually named
8106    something starting with __ and the normal name is an alias.  */
8107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8108choke me
8109#else
8110char (*f) () = $ac_func;
8111#endif
8112#ifdef __cplusplus
8113}
8114#endif
8115
8116int
8117main ()
8118{
8119return f != $ac_func;
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124rm -f conftest.$ac_objext conftest$ac_exeext
8125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126  (eval $ac_link) 2>conftest.er1
8127  ac_status=$?
8128  grep -v '^ *+' conftest.er1 >conftest.err
8129  rm -f conftest.er1
8130  cat conftest.err >&5
8131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132  (exit $ac_status); } &&
8133         { ac_try='test -z "$ac_c_werror_flag"
8134                         || test ! -s conftest.err'
8135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136  (eval $ac_try) 2>&5
8137  ac_status=$?
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); }; } &&
8140         { ac_try='test -s conftest$ac_exeext'
8141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142  (eval $ac_try) 2>&5
8143  ac_status=$?
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); }; }; then
8146  eval "$as_ac_var=yes"
8147else
8148  echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
8151eval "$as_ac_var=no"
8152fi
8153rm -f conftest.err conftest.$ac_objext \
8154      conftest$ac_exeext conftest.$ac_ext
8155fi
8156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8158if test `eval echo '${'$as_ac_var'}'` = yes; then
8159  cat >>confdefs.h <<_ACEOF
8160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8161_ACEOF
8162
8163fi
8164done
8165
8166
8167######################
8168## OUTPUT CONFIGURE ##
8169######################
8170                                                                                ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile"
8171
8172
8173cat >confcache <<\_ACEOF
8174# This file is a shell script that caches the results of configure
8175# tests run on this system so they can be shared between configure
8176# scripts and configure runs, see configure's option --config-cache.
8177# It is not useful on other systems.  If it contains results you don't
8178# want to keep, you may remove or edit it.
8179#
8180# config.status only pays attention to the cache file if you give it
8181# the --recheck option to rerun configure.
8182#
8183# `ac_cv_env_foo' variables (set or unset) will be overridden when
8184# loading this file, other *unset* `ac_cv_foo' will be assigned the
8185# following values.
8186
8187_ACEOF
8188
8189# The following way of writing the cache mishandles newlines in values,
8190# but we know of no workaround that is simple, portable, and efficient.
8191# So, don't put newlines in cache variables' values.
8192# Ultrix sh set writes to stderr and can't be redirected directly,
8193# and sets the high bit in the cache file unless we assign to the vars.
8194{
8195  (set) 2>&1 |
8196    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8197    *ac_space=\ *)
8198      # `set' does not quote correctly, so add quotes (double-quote
8199      # substitution turns \\\\ into \\, and sed turns \\ into \).
8200      sed -n \
8201        "s/'/'\\\\''/g;
8202          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8203      ;;
8204    *)
8205      # `set' quotes correctly as required by POSIX, so do not add quotes.
8206      sed -n \
8207        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8208      ;;
8209    esac;
8210} |
8211  sed '
8212     t clear
8213     : clear
8214     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8215     t end
8216     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8217     : end' >>confcache
8218if diff $cache_file confcache >/dev/null 2>&1; then :; else
8219  if test -w $cache_file; then
8220    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8221    cat confcache >$cache_file
8222  else
8223    echo "not updating unwritable cache $cache_file"
8224  fi
8225fi
8226rm -f confcache
8227
8228test "x$prefix" = xNONE && prefix=$ac_default_prefix
8229# Let make expand exec_prefix.
8230test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8231
8232# VPATH may cause trouble with some makes, so we remove $(srcdir),
8233# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8234# trailing colons and then remove the whole line if VPATH becomes empty
8235# (actually we leave an empty line to preserve line numbers).
8236if test "x$srcdir" = x.; then
8237  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8238s/:*\$(srcdir):*/:/;
8239s/:*\${srcdir}:*/:/;
8240s/:*@srcdir@:*/:/;
8241s/^\([^=]*=[     ]*\):*/\1/;
8242s/:*$//;
8243s/^[^=]*=[       ]*$//;
8244}'
8245fi
8246
8247DEFS=-DHAVE_CONFIG_H
8248
8249ac_libobjs=
8250ac_ltlibobjs=
8251for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8252  # 1. Remove the extension, and $U if already installed.
8253  ac_i=`echo "$ac_i" |
8254         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8255  # 2. Add them.
8256  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8257  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8258done
8259LIBOBJS=$ac_libobjs
8260
8261LTLIBOBJS=$ac_ltlibobjs
8262
8263
8264if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8265  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8266Usually this means the macro was only invoked conditionally." >&5
8267echo "$as_me: error: conditional \"AMDEP\" was never defined.
8268Usually this means the macro was only invoked conditionally." >&2;}
8269   { (exit 1); exit 1; }; }
8270fi
8271if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8272  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8273Usually this means the macro was only invoked conditionally." >&5
8274echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8275Usually this means the macro was only invoked conditionally." >&2;}
8276   { (exit 1); exit 1; }; }
8277fi
8278if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8279  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8280Usually this means the macro was only invoked conditionally." >&5
8281echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8282Usually this means the macro was only invoked conditionally." >&2;}
8283   { (exit 1); exit 1; }; }
8284fi
8285if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8286  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8287Usually this means the macro was only invoked conditionally." >&5
8288echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8289Usually this means the macro was only invoked conditionally." >&2;}
8290   { (exit 1); exit 1; }; }
8291fi
8292if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
8293  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
8294Usually this means the macro was only invoked conditionally." >&5
8295echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
8296Usually this means the macro was only invoked conditionally." >&2;}
8297   { (exit 1); exit 1; }; }
8298fi
8299if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
8300  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
8301Usually this means the macro was only invoked conditionally." >&5
8302echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
8303Usually this means the macro was only invoked conditionally." >&2;}
8304   { (exit 1); exit 1; }; }
8305fi
8306if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
8307  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined.
8308Usually this means the macro was only invoked conditionally." >&5
8309echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined.
8310Usually this means the macro was only invoked conditionally." >&2;}
8311   { (exit 1); exit 1; }; }
8312fi
8313if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
8314  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
8315Usually this means the macro was only invoked conditionally." >&5
8316echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
8317Usually this means the macro was only invoked conditionally." >&2;}
8318   { (exit 1); exit 1; }; }
8319fi
8320
8321: ${CONFIG_STATUS=./config.status}
8322ac_clean_files_save=$ac_clean_files
8323ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8324{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8325echo "$as_me: creating $CONFIG_STATUS" >&6;}
8326cat >$CONFIG_STATUS <<_ACEOF
8327#! $SHELL
8328# Generated by $as_me.
8329# Run this file to recreate the current configuration.
8330# Compiler output produced by configure, useful for debugging
8331# configure, is in config.log if it exists.
8332
8333debug=false
8334ac_cs_recheck=false
8335ac_cs_silent=false
8336SHELL=\${CONFIG_SHELL-$SHELL}
8337_ACEOF
8338
8339cat >>$CONFIG_STATUS <<\_ACEOF
8340## --------------------- ##
8341## M4sh Initialization.  ##
8342## --------------------- ##
8343
8344# Be Bourne compatible
8345if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8346  emulate sh
8347  NULLCMD=:
8348  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8349  # is contrary to our usage.  Disable this feature.
8350  alias -g '${1+"$@"}'='"$@"'
8351elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8352  set -o posix
8353fi
8354DUALCASE=1; export DUALCASE # for MKS sh
8355
8356# Support unset when possible.
8357if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8358  as_unset=unset
8359else
8360  as_unset=false
8361fi
8362
8363
8364# Work around bugs in pre-3.0 UWIN ksh.
8365$as_unset ENV MAIL MAILPATH
8366PS1='$ '
8367PS2='> '
8368PS4='+ '
8369
8370# NLS nuisances.
8371for as_var in \
8372  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8373  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8374  LC_TELEPHONE LC_TIME
8375do
8376  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8377    eval $as_var=C; export $as_var
8378  else
8379    $as_unset $as_var
8380  fi
8381done
8382
8383# Required to use basename.
8384if expr a : '\(a\)' >/dev/null 2>&1; then
8385  as_expr=expr
8386else
8387  as_expr=false
8388fi
8389
8390if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8391  as_basename=basename
8392else
8393  as_basename=false
8394fi
8395
8396
8397# Name of the executable.
8398as_me=`$as_basename "$0" ||
8399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8400         X"$0" : 'X\(//\)$' \| \
8401         X"$0" : 'X\(/\)$' \| \
8402         .     : '\(.\)' 2>/dev/null ||
8403echo X/"$0" |
8404    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8405          /^X\/\(\/\/\)$/{ s//\1/; q; }
8406          /^X\/\(\/\).*/{ s//\1/; q; }
8407          s/.*/./; q'`
8408
8409
8410# PATH needs CR, and LINENO needs CR and PATH.
8411# Avoid depending upon Character Ranges.
8412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8415as_cr_digits='0123456789'
8416as_cr_alnum=$as_cr_Letters$as_cr_digits
8417
8418# The user is always right.
8419if test "${PATH_SEPARATOR+set}" != set; then
8420  echo "#! /bin/sh" >conf$$.sh
8421  echo  "exit 0"   >>conf$$.sh
8422  chmod +x conf$$.sh
8423  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8424    PATH_SEPARATOR=';'
8425  else
8426    PATH_SEPARATOR=:
8427  fi
8428  rm -f conf$$.sh
8429fi
8430
8431
8432  as_lineno_1=$LINENO
8433  as_lineno_2=$LINENO
8434  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8435  test "x$as_lineno_1" != "x$as_lineno_2" &&
8436  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8437  # Find who we are.  Look in the path if we contain no path at all
8438  # relative or not.
8439  case $0 in
8440    *[\\/]* ) as_myself=$0 ;;
8441    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442for as_dir in $PATH
8443do
8444  IFS=$as_save_IFS
8445  test -z "$as_dir" && as_dir=.
8446  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8447done
8448
8449       ;;
8450  esac
8451  # We did not find ourselves, most probably we were run as `sh COMMAND'
8452  # in which case we are not to be found in the path.
8453  if test "x$as_myself" = x; then
8454    as_myself=$0
8455  fi
8456  if test ! -f "$as_myself"; then
8457    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8458echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8459   { (exit 1); exit 1; }; }
8460  fi
8461  case $CONFIG_SHELL in
8462  '')
8463    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8465do
8466  IFS=$as_save_IFS
8467  test -z "$as_dir" && as_dir=.
8468  for as_base in sh bash ksh sh5; do
8469         case $as_dir in
8470         /*)
8471           if ("$as_dir/$as_base" -c '
8472  as_lineno_1=$LINENO
8473  as_lineno_2=$LINENO
8474  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8475  test "x$as_lineno_1" != "x$as_lineno_2" &&
8476  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8477             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8478             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8479             CONFIG_SHELL=$as_dir/$as_base
8480             export CONFIG_SHELL
8481             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8482           fi;;
8483         esac
8484       done
8485done
8486;;
8487  esac
8488
8489  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8490  # uniformly replaced by the line number.  The first 'sed' inserts a
8491  # line-number line before each line; the second 'sed' does the real
8492  # work.  The second script uses 'N' to pair each line-number line
8493  # with the numbered line, and appends trailing '-' during
8494  # substitution so that $LINENO is not a special case at line end.
8495  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8496  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8497  sed '=' <$as_myself |
8498    sed '
8499      N
8500      s,$,-,
8501      : loop
8502      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8503      t loop
8504      s,-$,,
8505      s,^['$as_cr_digits']*\n,,
8506    ' >$as_me.lineno &&
8507  chmod +x $as_me.lineno ||
8508    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8509echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8510   { (exit 1); exit 1; }; }
8511
8512  # Don't try to exec as it changes $[0], causing all sort of problems
8513  # (the dirname of $[0] is not the place where we might find the
8514  # original and so on.  Autoconf is especially sensible to this).
8515  . ./$as_me.lineno
8516  # Exit status is that of the last command.
8517  exit
8518}
8519
8520
8521case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8522  *c*,-n*) ECHO_N= ECHO_C='
8523' ECHO_T='      ' ;;
8524  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8525  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8526esac
8527
8528if expr a : '\(a\)' >/dev/null 2>&1; then
8529  as_expr=expr
8530else
8531  as_expr=false
8532fi
8533
8534rm -f conf$$ conf$$.exe conf$$.file
8535echo >conf$$.file
8536if ln -s conf$$.file conf$$ 2>/dev/null; then
8537  # We could just check for DJGPP; but this test a) works b) is more generic
8538  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8539  if test -f conf$$.exe; then
8540    # Don't use ln at all; we don't have any links
8541    as_ln_s='cp -p'
8542  else
8543    as_ln_s='ln -s'
8544  fi
8545elif ln conf$$.file conf$$ 2>/dev/null; then
8546  as_ln_s=ln
8547else
8548  as_ln_s='cp -p'
8549fi
8550rm -f conf$$ conf$$.exe conf$$.file
8551
8552if mkdir -p . 2>/dev/null; then
8553  as_mkdir_p=:
8554else
8555  test -d ./-p && rmdir ./-p
8556  as_mkdir_p=false
8557fi
8558
8559as_executable_p="test -f"
8560
8561# Sed expression to map a string onto a valid CPP name.
8562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8563
8564# Sed expression to map a string onto a valid variable name.
8565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8566
8567
8568# IFS
8569# We need space, tab and new line, in precisely that order.
8570as_nl='
8571'
8572IFS="   $as_nl"
8573
8574# CDPATH.
8575$as_unset CDPATH
8576
8577exec 6>&1
8578
8579# Open the log real soon, to keep \$[0] and so on meaningful, and to
8580# report actual input values of CONFIG_FILES etc. instead of their
8581# values after options handling.  Logging --version etc. is OK.
8582exec 5>>config.log
8583{
8584  echo
8585  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8586## Running $as_me. ##
8587_ASBOX
8588} >&5
8589cat >&5 <<_CSEOF
8590
8591This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was
8592generated by GNU Autoconf 2.59.  Invocation command line was
8593
8594  CONFIG_FILES    = $CONFIG_FILES
8595  CONFIG_HEADERS  = $CONFIG_HEADERS
8596  CONFIG_LINKS    = $CONFIG_LINKS
8597  CONFIG_COMMANDS = $CONFIG_COMMANDS
8598  $ $0 $@
8599
8600_CSEOF
8601echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8602echo >&5
8603_ACEOF
8604
8605# Files that config.status was made for.
8606if test -n "$ac_config_files"; then
8607  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8608fi
8609
8610if test -n "$ac_config_headers"; then
8611  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8612fi
8613
8614if test -n "$ac_config_links"; then
8615  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8616fi
8617
8618if test -n "$ac_config_commands"; then
8619  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8620fi
8621
8622cat >>$CONFIG_STATUS <<\_ACEOF
8623
8624ac_cs_usage="\
8625\`$as_me' instantiates files from templates according to the
8626current configuration.
8627
8628Usage: $0 [OPTIONS] [FILE]...
8629
8630  -h, --help       print this help, then exit
8631  -V, --version    print version number, then exit
8632  -q, --quiet      do not print progress messages
8633  -d, --debug      don't remove temporary files
8634      --recheck    update $as_me by reconfiguring in the same conditions
8635  --file=FILE[:TEMPLATE]
8636                   instantiate the configuration file FILE
8637  --header=FILE[:TEMPLATE]
8638                   instantiate the configuration header FILE
8639
8640Configuration files:
8641$config_files
8642
8643Configuration headers:
8644$config_headers
8645
8646Configuration commands:
8647$config_commands
8648
8649Report bugs to <bug-autoconf@gnu.org>."
8650_ACEOF
8651
8652cat >>$CONFIG_STATUS <<_ACEOF
8653ac_cs_version="\\
8654orxonox config.status 0.2.1-pre-alpha
8655configured by $0, generated by GNU Autoconf 2.59,
8656  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8657
8658Copyright (C) 2003 Free Software Foundation, Inc.
8659This config.status script is free software; the Free Software Foundation
8660gives unlimited permission to copy, distribute and modify it."
8661srcdir=$srcdir
8662INSTALL="$INSTALL"
8663_ACEOF
8664
8665cat >>$CONFIG_STATUS <<\_ACEOF
8666# If no file are specified by the user, then we need to provide default
8667# value.  By we need to know if files were specified by the user.
8668ac_need_defaults=:
8669while test $# != 0
8670do
8671  case $1 in
8672  --*=*)
8673    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8674    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8675    ac_shift=:
8676    ;;
8677  -*)
8678    ac_option=$1
8679    ac_optarg=$2
8680    ac_shift=shift
8681    ;;
8682  *) # This is not an option, so the user has probably given explicit
8683     # arguments.
8684     ac_option=$1
8685     ac_need_defaults=false;;
8686  esac
8687
8688  case $ac_option in
8689  # Handling of the options.
8690_ACEOF
8691cat >>$CONFIG_STATUS <<\_ACEOF
8692  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8693    ac_cs_recheck=: ;;
8694  --version | --vers* | -V )
8695    echo "$ac_cs_version"; exit 0 ;;
8696  --he | --h)
8697    # Conflict between --help and --header
8698    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8699Try \`$0 --help' for more information." >&5
8700echo "$as_me: error: ambiguous option: $1
8701Try \`$0 --help' for more information." >&2;}
8702   { (exit 1); exit 1; }; };;
8703  --help | --hel | -h )
8704    echo "$ac_cs_usage"; exit 0 ;;
8705  --debug | --d* | -d )
8706    debug=: ;;
8707  --file | --fil | --fi | --f )
8708    $ac_shift
8709    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8710    ac_need_defaults=false;;
8711  --header | --heade | --head | --hea )
8712    $ac_shift
8713    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8714    ac_need_defaults=false;;
8715  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8716  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8717    ac_cs_silent=: ;;
8718
8719  # This is an error.
8720  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8721Try \`$0 --help' for more information." >&5
8722echo "$as_me: error: unrecognized option: $1
8723Try \`$0 --help' for more information." >&2;}
8724   { (exit 1); exit 1; }; } ;;
8725
8726  *) ac_config_targets="$ac_config_targets $1" ;;
8727
8728  esac
8729  shift
8730done
8731
8732ac_configure_extra_args=
8733
8734if $ac_cs_silent; then
8735  exec 6>/dev/null
8736  ac_configure_extra_args="$ac_configure_extra_args --silent"
8737fi
8738
8739_ACEOF
8740cat >>$CONFIG_STATUS <<_ACEOF
8741if \$ac_cs_recheck; then
8742  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8743  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8744fi
8745
8746_ACEOF
8747
8748cat >>$CONFIG_STATUS <<_ACEOF
8749#
8750# INIT-COMMANDS section.
8751#
8752
8753AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8754
8755_ACEOF
8756
8757
8758
8759cat >>$CONFIG_STATUS <<\_ACEOF
8760for ac_config_target in $ac_config_targets
8761do
8762  case "$ac_config_target" in
8763  # Handling of arguments.
8764  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8765  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8766  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
8767  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
8768  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
8769  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
8770  "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;;
8771  "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;;
8772  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8773  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8774  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8775echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8776   { (exit 1); exit 1; }; };;
8777  esac
8778done
8779
8780# If the user did not use the arguments to specify the items to instantiate,
8781# then the envvar interface is used.  Set only those that are not.
8782# We use the long form for the default assignment because of an extremely
8783# bizarre bug on SunOS 4.1.3.
8784if $ac_need_defaults; then
8785  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8786  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8787  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8788fi
8789
8790# Have a temporary directory for convenience.  Make it in the build tree
8791# simply because there is no reason to put it here, and in addition,
8792# creating and moving files from /tmp can sometimes cause problems.
8793# Create a temporary directory, and hook for its removal unless debugging.
8794$debug ||
8795{
8796  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8797  trap '{ (exit 1); exit 1; }' 1 2 13 15
8798}
8799
8800# Create a (secure) tmp directory for tmp files.
8801
8802{
8803  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8804  test -n "$tmp" && test -d "$tmp"
8805}  ||
8806{
8807  tmp=./confstat$$-$RANDOM
8808  (umask 077 && mkdir $tmp)
8809} ||
8810{
8811   echo "$me: cannot create a temporary directory in ." >&2
8812   { (exit 1); exit 1; }
8813}
8814
8815_ACEOF
8816
8817cat >>$CONFIG_STATUS <<_ACEOF
8818
8819#
8820# CONFIG_FILES section.
8821#
8822
8823# No need to generate the scripts if there are no CONFIG_FILES.
8824# This happens for instance when ./config.status config.h
8825if test -n "\$CONFIG_FILES"; then
8826  # Protect against being on the right side of a sed subst in config.status.
8827  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8828   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8829s,@SHELL@,$SHELL,;t t
8830s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8831s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8832s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8833s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8834s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8835s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8836s,@exec_prefix@,$exec_prefix,;t t
8837s,@prefix@,$prefix,;t t
8838s,@program_transform_name@,$program_transform_name,;t t
8839s,@bindir@,$bindir,;t t
8840s,@sbindir@,$sbindir,;t t
8841s,@libexecdir@,$libexecdir,;t t
8842s,@datadir@,$datadir,;t t
8843s,@sysconfdir@,$sysconfdir,;t t
8844s,@sharedstatedir@,$sharedstatedir,;t t
8845s,@localstatedir@,$localstatedir,;t t
8846s,@libdir@,$libdir,;t t
8847s,@includedir@,$includedir,;t t
8848s,@oldincludedir@,$oldincludedir,;t t
8849s,@infodir@,$infodir,;t t
8850s,@mandir@,$mandir,;t t
8851s,@build_alias@,$build_alias,;t t
8852s,@host_alias@,$host_alias,;t t
8853s,@target_alias@,$target_alias,;t t
8854s,@DEFS@,$DEFS,;t t
8855s,@ECHO_C@,$ECHO_C,;t t
8856s,@ECHO_N@,$ECHO_N,;t t
8857s,@ECHO_T@,$ECHO_T,;t t
8858s,@LIBS@,$LIBS,;t t
8859s,@build@,$build,;t t
8860s,@build_cpu@,$build_cpu,;t t
8861s,@build_vendor@,$build_vendor,;t t
8862s,@build_os@,$build_os,;t t
8863s,@host@,$host,;t t
8864s,@host_cpu@,$host_cpu,;t t
8865s,@host_vendor@,$host_vendor,;t t
8866s,@host_os@,$host_os,;t t
8867s,@target@,$target,;t t
8868s,@target_cpu@,$target_cpu,;t t
8869s,@target_vendor@,$target_vendor,;t t
8870s,@target_os@,$target_os,;t t
8871s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8872s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8873s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8874s,@CYGPATH_W@,$CYGPATH_W,;t t
8875s,@PACKAGE@,$PACKAGE,;t t
8876s,@VERSION@,$VERSION,;t t
8877s,@ACLOCAL@,$ACLOCAL,;t t
8878s,@AUTOCONF@,$AUTOCONF,;t t
8879s,@AUTOMAKE@,$AUTOMAKE,;t t
8880s,@AUTOHEADER@,$AUTOHEADER,;t t
8881s,@MAKEINFO@,$MAKEINFO,;t t
8882s,@AMTAR@,$AMTAR,;t t
8883s,@install_sh@,$install_sh,;t t
8884s,@STRIP@,$STRIP,;t t
8885s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8886s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8887s,@mkdir_p@,$mkdir_p,;t t
8888s,@AWK@,$AWK,;t t
8889s,@SET_MAKE@,$SET_MAKE,;t t
8890s,@am__leading_dot@,$am__leading_dot,;t t
8891s,@CXX@,$CXX,;t t
8892s,@CXXFLAGS@,$CXXFLAGS,;t t
8893s,@LDFLAGS@,$LDFLAGS,;t t
8894s,@CPPFLAGS@,$CPPFLAGS,;t t
8895s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8896s,@EXEEXT@,$EXEEXT,;t t
8897s,@OBJEXT@,$OBJEXT,;t t
8898s,@DEPDIR@,$DEPDIR,;t t
8899s,@am__include@,$am__include,;t t
8900s,@am__quote@,$am__quote,;t t
8901s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8902s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8903s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8904s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8905s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8906s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8907s,@CC@,$CC,;t t
8908s,@CFLAGS@,$CFLAGS,;t t
8909s,@ac_ct_CC@,$ac_ct_CC,;t t
8910s,@CCDEPMODE@,$CCDEPMODE,;t t
8911s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8912s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8913s,@CPP@,$CPP,;t t
8914s,@EGREP@,$EGREP,;t t
8915s,@DEBUG@,$DEBUG,;t t
8916s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
8917s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
8918s,@DOXYGEN@,$DOXYGEN,;t t
8919s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
8920s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
8921s,@MSBITFIELDS@,$MSBITFIELDS,;t t
8922s,@GTK2_LIBS@,$GTK2_LIBS,;t t
8923s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
8924s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
8925s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
8926s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
8927s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
8928s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
8929s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
8930s,@CURL_LIBS@,$CURL_LIBS,;t t
8931s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
8932s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
8933s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
8934s,@LIBOBJS@,$LIBOBJS,;t t
8935s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8936CEOF
8937
8938_ACEOF
8939
8940  cat >>$CONFIG_STATUS <<\_ACEOF
8941  # Split the substitutions into bite-sized pieces for seds with
8942  # small command number limits, like on Digital OSF/1 and HP-UX.
8943  ac_max_sed_lines=48
8944  ac_sed_frag=1 # Number of current file.
8945  ac_beg=1 # First line for current file.
8946  ac_end=$ac_max_sed_lines # Line after last line for current file.
8947  ac_more_lines=:
8948  ac_sed_cmds=
8949  while $ac_more_lines; do
8950    if test $ac_beg -gt 1; then
8951      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8952    else
8953      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8954    fi
8955    if test ! -s $tmp/subs.frag; then
8956      ac_more_lines=false
8957    else
8958      # The purpose of the label and of the branching condition is to
8959      # speed up the sed processing (if there are no `@' at all, there
8960      # is no need to browse any of the substitutions).
8961      # These are the two extra sed commands mentioned above.
8962      (echo ':t
8963  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8964      if test -z "$ac_sed_cmds"; then
8965        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8966      else
8967        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8968      fi
8969      ac_sed_frag=`expr $ac_sed_frag + 1`
8970      ac_beg=$ac_end
8971      ac_end=`expr $ac_end + $ac_max_sed_lines`
8972    fi
8973  done
8974  if test -z "$ac_sed_cmds"; then
8975    ac_sed_cmds=cat
8976  fi
8977fi # test -n "$CONFIG_FILES"
8978
8979_ACEOF
8980cat >>$CONFIG_STATUS <<\_ACEOF
8981for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8982  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8983  case $ac_file in
8984  - | *:- | *:-:* ) # input from stdin
8985        cat >$tmp/stdin
8986        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8987        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8988  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8989        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8990  * )   ac_file_in=$ac_file.in ;;
8991  esac
8992
8993  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8994  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8995$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8996         X"$ac_file" : 'X\(//\)[^/]' \| \
8997         X"$ac_file" : 'X\(//\)$' \| \
8998         X"$ac_file" : 'X\(/\)' \| \
8999         .     : '\(.\)' 2>/dev/null ||
9000echo X"$ac_file" |
9001    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9002          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9003          /^X\(\/\/\)$/{ s//\1/; q; }
9004          /^X\(\/\).*/{ s//\1/; q; }
9005          s/.*/./; q'`
9006  { if $as_mkdir_p; then
9007    mkdir -p "$ac_dir"
9008  else
9009    as_dir="$ac_dir"
9010    as_dirs=
9011    while test ! -d "$as_dir"; do
9012      as_dirs="$as_dir $as_dirs"
9013      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9015         X"$as_dir" : 'X\(//\)[^/]' \| \
9016         X"$as_dir" : 'X\(//\)$' \| \
9017         X"$as_dir" : 'X\(/\)' \| \
9018         .     : '\(.\)' 2>/dev/null ||
9019echo X"$as_dir" |
9020    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9021          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9022          /^X\(\/\/\)$/{ s//\1/; q; }
9023          /^X\(\/\).*/{ s//\1/; q; }
9024          s/.*/./; q'`
9025    done
9026    test ! -n "$as_dirs" || mkdir $as_dirs
9027  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9028echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9029   { (exit 1); exit 1; }; }; }
9030
9031  ac_builddir=.
9032
9033if test "$ac_dir" != .; then
9034  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9035  # A "../" for each directory in $ac_dir_suffix.
9036  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9037else
9038  ac_dir_suffix= ac_top_builddir=
9039fi
9040
9041case $srcdir in
9042  .)  # No --srcdir option.  We are building in place.
9043    ac_srcdir=.
9044    if test -z "$ac_top_builddir"; then
9045       ac_top_srcdir=.
9046    else
9047       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9048    fi ;;
9049  [\\/]* | ?:[\\/]* )  # Absolute path.
9050    ac_srcdir=$srcdir$ac_dir_suffix;
9051    ac_top_srcdir=$srcdir ;;
9052  *) # Relative path.
9053    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9054    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9055esac
9056
9057# Do not use `cd foo && pwd` to compute absolute paths, because
9058# the directories may not exist.
9059case `pwd` in
9060.) ac_abs_builddir="$ac_dir";;
9061*)
9062  case "$ac_dir" in
9063  .) ac_abs_builddir=`pwd`;;
9064  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9065  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9066  esac;;
9067esac
9068case $ac_abs_builddir in
9069.) ac_abs_top_builddir=${ac_top_builddir}.;;
9070*)
9071  case ${ac_top_builddir}. in
9072  .) ac_abs_top_builddir=$ac_abs_builddir;;
9073  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9074  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9075  esac;;
9076esac
9077case $ac_abs_builddir in
9078.) ac_abs_srcdir=$ac_srcdir;;
9079*)
9080  case $ac_srcdir in
9081  .) ac_abs_srcdir=$ac_abs_builddir;;
9082  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9083  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9084  esac;;
9085esac
9086case $ac_abs_builddir in
9087.) ac_abs_top_srcdir=$ac_top_srcdir;;
9088*)
9089  case $ac_top_srcdir in
9090  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9091  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9092  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9093  esac;;
9094esac
9095
9096
9097  case $INSTALL in
9098  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9099  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9100  esac
9101
9102  if test x"$ac_file" != x-; then
9103    { echo "$as_me:$LINENO: creating $ac_file" >&5
9104echo "$as_me: creating $ac_file" >&6;}
9105    rm -f "$ac_file"
9106  fi
9107  # Let's still pretend it is `configure' which instantiates (i.e., don't
9108  # use $as_me), people would be surprised to read:
9109  #    /* config.h.  Generated by config.status.  */
9110  if test x"$ac_file" = x-; then
9111    configure_input=
9112  else
9113    configure_input="$ac_file.  "
9114  fi
9115  configure_input=$configure_input"Generated from `echo $ac_file_in |
9116                                     sed 's,.*/,,'` by configure."
9117
9118  # First look for the input files in the build tree, otherwise in the
9119  # src tree.
9120  ac_file_inputs=`IFS=:
9121    for f in $ac_file_in; do
9122      case $f in
9123      -) echo $tmp/stdin ;;
9124      [\\/$]*)
9125         # Absolute (can't be DOS-style, as IFS=:)
9126         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9127echo "$as_me: error: cannot find input file: $f" >&2;}
9128   { (exit 1); exit 1; }; }
9129         echo "$f";;
9130      *) # Relative
9131         if test -f "$f"; then
9132           # Build tree
9133           echo "$f"
9134         elif test -f "$srcdir/$f"; then
9135           # Source tree
9136           echo "$srcdir/$f"
9137         else
9138           # /dev/null tree
9139           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9140echo "$as_me: error: cannot find input file: $f" >&2;}
9141   { (exit 1); exit 1; }; }
9142         fi;;
9143      esac
9144    done` || { (exit 1); exit 1; }
9145_ACEOF
9146cat >>$CONFIG_STATUS <<_ACEOF
9147  sed "$ac_vpsub
9148$extrasub
9149_ACEOF
9150cat >>$CONFIG_STATUS <<\_ACEOF
9151:t
9152/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9153s,@configure_input@,$configure_input,;t t
9154s,@srcdir@,$ac_srcdir,;t t
9155s,@abs_srcdir@,$ac_abs_srcdir,;t t
9156s,@top_srcdir@,$ac_top_srcdir,;t t
9157s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9158s,@builddir@,$ac_builddir,;t t
9159s,@abs_builddir@,$ac_abs_builddir,;t t
9160s,@top_builddir@,$ac_top_builddir,;t t
9161s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9162s,@INSTALL@,$ac_INSTALL,;t t
9163" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9164  rm -f $tmp/stdin
9165  if test x"$ac_file" != x-; then
9166    mv $tmp/out $ac_file
9167  else
9168    cat $tmp/out
9169    rm -f $tmp/out
9170  fi
9171
9172done
9173_ACEOF
9174cat >>$CONFIG_STATUS <<\_ACEOF
9175
9176#
9177# CONFIG_HEADER section.
9178#
9179
9180# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9181# NAME is the cpp macro being defined and VALUE is the value it is being given.
9182#
9183# ac_d sets the value in "#define NAME VALUE" lines.
9184ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9185ac_dB='[         ].*$,\1#\2'
9186ac_dC=' '
9187ac_dD=',;t'
9188# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9189ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9190ac_uB='$,\1#\2define\3'
9191ac_uC=' '
9192ac_uD=',;t'
9193
9194for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9195  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9196  case $ac_file in
9197  - | *:- | *:-:* ) # input from stdin
9198        cat >$tmp/stdin
9199        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9200        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9201  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9202        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9203  * )   ac_file_in=$ac_file.in ;;
9204  esac
9205
9206  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9207echo "$as_me: creating $ac_file" >&6;}
9208
9209  # First look for the input files in the build tree, otherwise in the
9210  # src tree.
9211  ac_file_inputs=`IFS=:
9212    for f in $ac_file_in; do
9213      case $f in
9214      -) echo $tmp/stdin ;;
9215      [\\/$]*)
9216         # Absolute (can't be DOS-style, as IFS=:)
9217         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9218echo "$as_me: error: cannot find input file: $f" >&2;}
9219   { (exit 1); exit 1; }; }
9220         # Do quote $f, to prevent DOS paths from being IFS'd.
9221         echo "$f";;
9222      *) # Relative
9223         if test -f "$f"; then
9224           # Build tree
9225           echo "$f"
9226         elif test -f "$srcdir/$f"; then
9227           # Source tree
9228           echo "$srcdir/$f"
9229         else
9230           # /dev/null tree
9231           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9232echo "$as_me: error: cannot find input file: $f" >&2;}
9233   { (exit 1); exit 1; }; }
9234         fi;;
9235      esac
9236    done` || { (exit 1); exit 1; }
9237  # Remove the trailing spaces.
9238  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9239
9240_ACEOF
9241
9242# Transform confdefs.h into two sed scripts, `conftest.defines' and
9243# `conftest.undefs', that substitutes the proper values into
9244# config.h.in to produce config.h.  The first handles `#define'
9245# templates, and the second `#undef' templates.
9246# And first: Protect against being on the right side of a sed subst in
9247# config.status.  Protect against being in an unquoted here document
9248# in config.status.
9249rm -f conftest.defines conftest.undefs
9250# Using a here document instead of a string reduces the quoting nightmare.
9251# Putting comments in sed scripts is not portable.
9252#
9253# `end' is used to avoid that the second main sed command (meant for
9254# 0-ary CPP macros) applies to n-ary macro definitions.
9255# See the Autoconf documentation for `clear'.
9256cat >confdef2sed.sed <<\_ACEOF
9257s/[\\&,]/\\&/g
9258s,[\\$`],\\&,g
9259t clear
9260: clear
9261s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9262t end
9263s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9264: end
9265_ACEOF
9266# If some macros were called several times there might be several times
9267# the same #defines, which is useless.  Nevertheless, we may not want to
9268# sort them, since we want the *last* AC-DEFINE to be honored.
9269uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9270sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9271rm -f confdef2sed.sed
9272
9273# This sed command replaces #undef with comments.  This is necessary, for
9274# example, in the case of _POSIX_SOURCE, which is predefined and required
9275# on some systems where configure will not decide to define it.
9276cat >>conftest.undefs <<\_ACEOF
9277s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9278_ACEOF
9279
9280# Break up conftest.defines because some shells have a limit on the size
9281# of here documents, and old seds have small limits too (100 cmds).
9282echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9283echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9284echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9285echo '  :' >>$CONFIG_STATUS
9286rm -f conftest.tail
9287while grep . conftest.defines >/dev/null
9288do
9289  # Write a limited-size here document to $tmp/defines.sed.
9290  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9291  # Speed up: don't consider the non `#define' lines.
9292  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9293  # Work around the forget-to-reset-the-flag bug.
9294  echo 't clr' >>$CONFIG_STATUS
9295  echo ': clr' >>$CONFIG_STATUS
9296  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9297  echo 'CEOF
9298  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9299  rm -f $tmp/in
9300  mv $tmp/out $tmp/in
9301' >>$CONFIG_STATUS
9302  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9303  rm -f conftest.defines
9304  mv conftest.tail conftest.defines
9305done
9306rm -f conftest.defines
9307echo '  fi # grep' >>$CONFIG_STATUS
9308echo >>$CONFIG_STATUS
9309
9310# Break up conftest.undefs because some shells have a limit on the size
9311# of here documents, and old seds have small limits too (100 cmds).
9312echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9313rm -f conftest.tail
9314while grep . conftest.undefs >/dev/null
9315do
9316  # Write a limited-size here document to $tmp/undefs.sed.
9317  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9318  # Speed up: don't consider the non `#undef'
9319  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9320  # Work around the forget-to-reset-the-flag bug.
9321  echo 't clr' >>$CONFIG_STATUS
9322  echo ': clr' >>$CONFIG_STATUS
9323  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9324  echo 'CEOF
9325  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9326  rm -f $tmp/in
9327  mv $tmp/out $tmp/in
9328' >>$CONFIG_STATUS
9329  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9330  rm -f conftest.undefs
9331  mv conftest.tail conftest.undefs
9332done
9333rm -f conftest.undefs
9334
9335cat >>$CONFIG_STATUS <<\_ACEOF
9336  # Let's still pretend it is `configure' which instantiates (i.e., don't
9337  # use $as_me), people would be surprised to read:
9338  #    /* config.h.  Generated by config.status.  */
9339  if test x"$ac_file" = x-; then
9340    echo "/* Generated by configure.  */" >$tmp/config.h
9341  else
9342    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9343  fi
9344  cat $tmp/in >>$tmp/config.h
9345  rm -f $tmp/in
9346  if test x"$ac_file" != x-; then
9347    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9348      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9349echo "$as_me: $ac_file is unchanged" >&6;}
9350    else
9351      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9352$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9353         X"$ac_file" : 'X\(//\)[^/]' \| \
9354         X"$ac_file" : 'X\(//\)$' \| \
9355         X"$ac_file" : 'X\(/\)' \| \
9356         .     : '\(.\)' 2>/dev/null ||
9357echo X"$ac_file" |
9358    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9359          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9360          /^X\(\/\/\)$/{ s//\1/; q; }
9361          /^X\(\/\).*/{ s//\1/; q; }
9362          s/.*/./; q'`
9363      { if $as_mkdir_p; then
9364    mkdir -p "$ac_dir"
9365  else
9366    as_dir="$ac_dir"
9367    as_dirs=
9368    while test ! -d "$as_dir"; do
9369      as_dirs="$as_dir $as_dirs"
9370      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9372         X"$as_dir" : 'X\(//\)[^/]' \| \
9373         X"$as_dir" : 'X\(//\)$' \| \
9374         X"$as_dir" : 'X\(/\)' \| \
9375         .     : '\(.\)' 2>/dev/null ||
9376echo X"$as_dir" |
9377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9378          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9379          /^X\(\/\/\)$/{ s//\1/; q; }
9380          /^X\(\/\).*/{ s//\1/; q; }
9381          s/.*/./; q'`
9382    done
9383    test ! -n "$as_dirs" || mkdir $as_dirs
9384  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9385echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9386   { (exit 1); exit 1; }; }; }
9387
9388      rm -f $ac_file
9389      mv $tmp/config.h $ac_file
9390    fi
9391  else
9392    cat $tmp/config.h
9393    rm -f $tmp/config.h
9394  fi
9395# Compute $ac_file's index in $config_headers.
9396_am_stamp_count=1
9397for _am_header in $config_headers :; do
9398  case $_am_header in
9399    $ac_file | $ac_file:* )
9400      break ;;
9401    * )
9402      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9403  esac
9404done
9405echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9406$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9407         X$ac_file : 'X\(//\)[^/]' \| \
9408         X$ac_file : 'X\(//\)$' \| \
9409         X$ac_file : 'X\(/\)' \| \
9410         .     : '\(.\)' 2>/dev/null ||
9411echo X$ac_file |
9412    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9413          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9414          /^X\(\/\/\)$/{ s//\1/; q; }
9415          /^X\(\/\).*/{ s//\1/; q; }
9416          s/.*/./; q'`/stamp-h$_am_stamp_count
9417done
9418_ACEOF
9419cat >>$CONFIG_STATUS <<\_ACEOF
9420
9421#
9422# CONFIG_COMMANDS section.
9423#
9424for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9425  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9426  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9427  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9428$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9429         X"$ac_dest" : 'X\(//\)[^/]' \| \
9430         X"$ac_dest" : 'X\(//\)$' \| \
9431         X"$ac_dest" : 'X\(/\)' \| \
9432         .     : '\(.\)' 2>/dev/null ||
9433echo X"$ac_dest" |
9434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9435          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9436          /^X\(\/\/\)$/{ s//\1/; q; }
9437          /^X\(\/\).*/{ s//\1/; q; }
9438          s/.*/./; q'`
9439  { if $as_mkdir_p; then
9440    mkdir -p "$ac_dir"
9441  else
9442    as_dir="$ac_dir"
9443    as_dirs=
9444    while test ! -d "$as_dir"; do
9445      as_dirs="$as_dir $as_dirs"
9446      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9447$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9448         X"$as_dir" : 'X\(//\)[^/]' \| \
9449         X"$as_dir" : 'X\(//\)$' \| \
9450         X"$as_dir" : 'X\(/\)' \| \
9451         .     : '\(.\)' 2>/dev/null ||
9452echo X"$as_dir" |
9453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9454          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9455          /^X\(\/\/\)$/{ s//\1/; q; }
9456          /^X\(\/\).*/{ s//\1/; q; }
9457          s/.*/./; q'`
9458    done
9459    test ! -n "$as_dirs" || mkdir $as_dirs
9460  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9461echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9462   { (exit 1); exit 1; }; }; }
9463
9464  ac_builddir=.
9465
9466if test "$ac_dir" != .; then
9467  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9468  # A "../" for each directory in $ac_dir_suffix.
9469  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9470else
9471  ac_dir_suffix= ac_top_builddir=
9472fi
9473
9474case $srcdir in
9475  .)  # No --srcdir option.  We are building in place.
9476    ac_srcdir=.
9477    if test -z "$ac_top_builddir"; then
9478       ac_top_srcdir=.
9479    else
9480       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9481    fi ;;
9482  [\\/]* | ?:[\\/]* )  # Absolute path.
9483    ac_srcdir=$srcdir$ac_dir_suffix;
9484    ac_top_srcdir=$srcdir ;;
9485  *) # Relative path.
9486    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9487    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9488esac
9489
9490# Do not use `cd foo && pwd` to compute absolute paths, because
9491# the directories may not exist.
9492case `pwd` in
9493.) ac_abs_builddir="$ac_dir";;
9494*)
9495  case "$ac_dir" in
9496  .) ac_abs_builddir=`pwd`;;
9497  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9498  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9499  esac;;
9500esac
9501case $ac_abs_builddir in
9502.) ac_abs_top_builddir=${ac_top_builddir}.;;
9503*)
9504  case ${ac_top_builddir}. in
9505  .) ac_abs_top_builddir=$ac_abs_builddir;;
9506  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9507  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9508  esac;;
9509esac
9510case $ac_abs_builddir in
9511.) ac_abs_srcdir=$ac_srcdir;;
9512*)
9513  case $ac_srcdir in
9514  .) ac_abs_srcdir=$ac_abs_builddir;;
9515  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9516  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9517  esac;;
9518esac
9519case $ac_abs_builddir in
9520.) ac_abs_top_srcdir=$ac_top_srcdir;;
9521*)
9522  case $ac_top_srcdir in
9523  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9524  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9525  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9526  esac;;
9527esac
9528
9529
9530  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9531echo "$as_me: executing $ac_dest commands" >&6;}
9532  case $ac_dest in
9533    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9534  # Strip MF so we end up with the name of the file.
9535  mf=`echo "$mf" | sed -e 's/:.*$//'`
9536  # Check whether this is an Automake generated Makefile or not.
9537  # We used to match only the files named `Makefile.in', but
9538  # some people rename them; so instead we look at the file content.
9539  # Grep'ing the first line is not enough: some people post-process
9540  # each Makefile.in and add a new line on top of each file to say so.
9541  # So let's grep whole file.
9542  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9543    dirpart=`(dirname "$mf") 2>/dev/null ||
9544$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9545         X"$mf" : 'X\(//\)[^/]' \| \
9546         X"$mf" : 'X\(//\)$' \| \
9547         X"$mf" : 'X\(/\)' \| \
9548         .     : '\(.\)' 2>/dev/null ||
9549echo X"$mf" |
9550    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9551          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9552          /^X\(\/\/\)$/{ s//\1/; q; }
9553          /^X\(\/\).*/{ s//\1/; q; }
9554          s/.*/./; q'`
9555  else
9556    continue
9557  fi
9558  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9559  # Extract the definition of DEP_FILES from the Makefile without
9560  # running `make'.
9561  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9562  test -z "$DEPDIR" && continue
9563  # When using ansi2knr, U may be empty or an underscore; expand it
9564  U=`sed -n -e '/^U = / s///p' < "$mf"`
9565  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9566  # We invoke sed twice because it is the simplest approach to
9567  # changing $(DEPDIR) to its actual value in the expansion.
9568  for file in `sed -n -e '
9569    /^DEP_FILES = .*\\\\$/ {
9570      s/^DEP_FILES = //
9571      :loop
9572        s/\\\\$//
9573        p
9574        n
9575        /\\\\$/ b loop
9576      p
9577    }
9578    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9579       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9580    # Make sure the directory exists.
9581    test -f "$dirpart/$file" && continue
9582    fdir=`(dirname "$file") 2>/dev/null ||
9583$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9584         X"$file" : 'X\(//\)[^/]' \| \
9585         X"$file" : 'X\(//\)$' \| \
9586         X"$file" : 'X\(/\)' \| \
9587         .     : '\(.\)' 2>/dev/null ||
9588echo X"$file" |
9589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9590          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9591          /^X\(\/\/\)$/{ s//\1/; q; }
9592          /^X\(\/\).*/{ s//\1/; q; }
9593          s/.*/./; q'`
9594    { if $as_mkdir_p; then
9595    mkdir -p $dirpart/$fdir
9596  else
9597    as_dir=$dirpart/$fdir
9598    as_dirs=
9599    while test ! -d "$as_dir"; do
9600      as_dirs="$as_dir $as_dirs"
9601      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9602$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9603         X"$as_dir" : 'X\(//\)[^/]' \| \
9604         X"$as_dir" : 'X\(//\)$' \| \
9605         X"$as_dir" : 'X\(/\)' \| \
9606         .     : '\(.\)' 2>/dev/null ||
9607echo X"$as_dir" |
9608    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9609          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9610          /^X\(\/\/\)$/{ s//\1/; q; }
9611          /^X\(\/\).*/{ s//\1/; q; }
9612          s/.*/./; q'`
9613    done
9614    test ! -n "$as_dirs" || mkdir $as_dirs
9615  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9616echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9617   { (exit 1); exit 1; }; }; }
9618
9619    # echo "creating $dirpart/$file"
9620    echo '# dummy' > "$dirpart/$file"
9621  done
9622done
9623 ;;
9624  esac
9625done
9626_ACEOF
9627
9628cat >>$CONFIG_STATUS <<\_ACEOF
9629
9630{ (exit 0); exit 0; }
9631_ACEOF
9632chmod +x $CONFIG_STATUS
9633ac_clean_files=$ac_clean_files_save
9634
9635
9636# configure is writing to config.log, and then calls config.status.
9637# config.status does its own redirection, appending to config.log.
9638# Unfortunately, on DOS this fails, as config.log is still kept open
9639# by configure, so config.status won't be able to write to it; its
9640# output is simply discarded.  So we exec the FD to /dev/null,
9641# effectively closing config.log, so it can be properly (re)opened and
9642# appended to by config.status.  When coming back to configure, we
9643# need to make the FD available again.
9644if test "$no_create" != yes; then
9645  ac_cs_success=:
9646  ac_config_status_args=
9647  test "$silent" = yes &&
9648    ac_config_status_args="$ac_config_status_args --quiet"
9649  exec 5>/dev/null
9650  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9651  exec 5>>config.log
9652  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9653  # would make configure fail if this is the last instruction.
9654  $ac_cs_success || { (exit 1); exit 1; }
9655fi
9656
Note: See TracBrowser for help on using the repository browser.