Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/configure @ 3423

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

orxonox/trunk: merged branches/updater back into the trunk
merged with command: svn merge branches/updater trunk -r 3241:HEAD
resolved conflicts in debug.h in favor of the trunk.

  • Property svn:executable set to *
File size: 286.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.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 by default
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
1450
1451am__api_version="1.8"
1452# Find a good install program.  We prefer a C program (faster),
1453# so one script is as good as another.  But avoid the broken or
1454# incompatible versions:
1455# SysV /etc/install, /usr/sbin/install
1456# SunOS /usr/etc/install
1457# IRIX /sbin/install
1458# AIX /bin/install
1459# AmigaOS /C/install, which installs bootblocks on floppy discs
1460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1463# OS/2's system install, which has a completely different semantic
1464# ./install, which can be erroneously created by make from ./install.sh.
1465echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1466echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1467if test -z "$INSTALL"; then
1468if test "${ac_cv_path_install+set}" = set; then
1469  echo $ECHO_N "(cached) $ECHO_C" >&6
1470else
1471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472for as_dir in $PATH
1473do
1474  IFS=$as_save_IFS
1475  test -z "$as_dir" && as_dir=.
1476  # Account for people who put trailing slashes in PATH elements.
1477case $as_dir/ in
1478  ./ | .// | /cC/* | \
1479  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1480  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1481  /usr/ucb/* ) ;;
1482  *)
1483    # OSF1 and SCO ODT 3.0 have their own names for install.
1484    # Don't use installbsd from OSF since it installs stuff as root
1485    # by default.
1486    for ac_prog in ginstall scoinst install; do
1487      for ac_exec_ext in '' $ac_executable_extensions; do
1488        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1489          if test $ac_prog = install &&
1490            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1491            # AIX install.  It has an incompatible calling convention.
1492            :
1493          elif test $ac_prog = install &&
1494            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # program-specific install script used by HP pwplus--don't use.
1496            :
1497          else
1498            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1499            break 3
1500          fi
1501        fi
1502      done
1503    done
1504    ;;
1505esac
1506done
1507
1508
1509fi
1510  if test "${ac_cv_path_install+set}" = set; then
1511    INSTALL=$ac_cv_path_install
1512  else
1513    # As a last resort, use the slow shell script.  We don't cache a
1514    # path for INSTALL within a source directory, because that will
1515    # break other packages using the cache if that directory is
1516    # removed, or if the path is relative.
1517    INSTALL=$ac_install_sh
1518  fi
1519fi
1520echo "$as_me:$LINENO: result: $INSTALL" >&5
1521echo "${ECHO_T}$INSTALL" >&6
1522
1523# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1524# It thinks the first close brace ends the variable substitution.
1525test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1526
1527test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1528
1529test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1530
1531echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1532echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1533# Just in case
1534sleep 1
1535echo timestamp > conftest.file
1536# Do `set' in a subshell so we don't clobber the current shell's
1537# arguments.  Must try -L first in case configure is actually a
1538# symlink; some systems play weird games with the mod time of symlinks
1539# (eg FreeBSD returns the mod time of the symlink's containing
1540# directory).
1541if (
1542   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1543   if test "$*" = "X"; then
1544      # -L didn't work.
1545      set X `ls -t $srcdir/configure conftest.file`
1546   fi
1547   rm -f conftest.file
1548   if test "$*" != "X $srcdir/configure conftest.file" \
1549      && test "$*" != "X conftest.file $srcdir/configure"; then
1550
1551      # If neither matched, then we have a broken ls.  This can happen
1552      # if, for instance, CONFIG_SHELL is bash and it inherits a
1553      # broken ls alias from the environment.  This has actually
1554      # happened.  Such a system could not be considered "sane".
1555      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1556alias in your environment" >&5
1557echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1558alias in your environment" >&2;}
1559   { (exit 1); exit 1; }; }
1560   fi
1561
1562   test "$2" = conftest.file
1563   )
1564then
1565   # Ok.
1566   :
1567else
1568   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1569Check your system clock" >&5
1570echo "$as_me: error: newly created file is older than distributed files!
1571Check your system clock" >&2;}
1572   { (exit 1); exit 1; }; }
1573fi
1574echo "$as_me:$LINENO: result: yes" >&5
1575echo "${ECHO_T}yes" >&6
1576test "$program_prefix" != NONE &&
1577  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1578# Use a double $ so make ignores it.
1579test "$program_suffix" != NONE &&
1580  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1581# Double any \ or $.  echo might interpret backslashes.
1582# By default was `s,x,x', remove it if useless.
1583cat <<\_ACEOF >conftest.sed
1584s/[\\$]/&&/g;s/;s,x,x,$//
1585_ACEOF
1586program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1587rm conftest.sed
1588
1589# expand $ac_aux_dir to an absolute path
1590am_aux_dir=`cd $ac_aux_dir && pwd`
1591
1592test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1593# Use eval to expand $SHELL
1594if eval "$MISSING --run true"; then
1595  am_missing_run="$MISSING --run "
1596else
1597  am_missing_run=
1598  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1599echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1600fi
1601
1602if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1603  # Keeping the `.' argument allows $(mkdir_p) to be used without
1604  # argument.  Indeed, we sometimes output rules like
1605  #   $(mkdir_p) $(somedir)
1606  # where $(somedir) is conditionally defined.
1607  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1608  # expensive solution, as it forces Make to start a sub-shell.)
1609  mkdir_p='mkdir -p -- .'
1610else
1611  # On NextStep and OpenStep, the `mkdir' command does not
1612  # recognize any option.  It will interpret all options as
1613  # directories to create, and then abort because `.' already
1614  # exists.
1615  for d in ./-p ./--version;
1616  do
1617    test -d $d && rmdir $d
1618  done
1619  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1620  if test -f "$ac_aux_dir/mkinstalldirs"; then
1621    mkdir_p='$(mkinstalldirs)'
1622  else
1623    mkdir_p='$(install_sh) -d'
1624  fi
1625fi
1626
1627for ac_prog in gawk mawk nawk awk
1628do
1629  # Extract the first word of "$ac_prog", so it can be a program name with args.
1630set dummy $ac_prog; ac_word=$2
1631echo "$as_me:$LINENO: checking for $ac_word" >&5
1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633if test "${ac_cv_prog_AWK+set}" = set; then
1634  echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636  if test -n "$AWK"; then
1637  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1638else
1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642  IFS=$as_save_IFS
1643  test -z "$as_dir" && as_dir=.
1644  for ac_exec_ext in '' $ac_executable_extensions; do
1645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646    ac_cv_prog_AWK="$ac_prog"
1647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648    break 2
1649  fi
1650done
1651done
1652
1653fi
1654fi
1655AWK=$ac_cv_prog_AWK
1656if test -n "$AWK"; then
1657  echo "$as_me:$LINENO: result: $AWK" >&5
1658echo "${ECHO_T}$AWK" >&6
1659else
1660  echo "$as_me:$LINENO: result: no" >&5
1661echo "${ECHO_T}no" >&6
1662fi
1663
1664  test -n "$AWK" && break
1665done
1666
1667echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1668echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1669set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1670if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1671  echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673  cat >conftest.make <<\_ACEOF
1674all:
1675        @echo 'ac_maketemp="$(MAKE)"'
1676_ACEOF
1677# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1678eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1679if test -n "$ac_maketemp"; then
1680  eval ac_cv_prog_make_${ac_make}_set=yes
1681else
1682  eval ac_cv_prog_make_${ac_make}_set=no
1683fi
1684rm -f conftest.make
1685fi
1686if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1687  echo "$as_me:$LINENO: result: yes" >&5
1688echo "${ECHO_T}yes" >&6
1689  SET_MAKE=
1690else
1691  echo "$as_me:$LINENO: result: no" >&5
1692echo "${ECHO_T}no" >&6
1693  SET_MAKE="MAKE=${MAKE-make}"
1694fi
1695
1696rm -rf .tst 2>/dev/null
1697mkdir .tst 2>/dev/null
1698if test -d .tst; then
1699  am__leading_dot=.
1700else
1701  am__leading_dot=_
1702fi
1703rmdir .tst 2>/dev/null
1704
1705# test to see if srcdir already configured
1706if test "`cd $srcdir && pwd`" != "`pwd`" &&
1707   test -f $srcdir/config.status; then
1708  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1709echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1710   { (exit 1); exit 1; }; }
1711fi
1712
1713# test whether we have cygpath
1714if test -z "$CYGPATH_W"; then
1715  if (cygpath --version) >/dev/null 2>/dev/null; then
1716    CYGPATH_W='cygpath -w'
1717  else
1718    CYGPATH_W=echo
1719  fi
1720fi
1721
1722
1723# Define the identity of the package.
1724 PACKAGE='orxonox'
1725 VERSION='0.2.1-pre-alpha'
1726
1727
1728cat >>confdefs.h <<_ACEOF
1729#define PACKAGE "$PACKAGE"
1730_ACEOF
1731
1732
1733cat >>confdefs.h <<_ACEOF
1734#define VERSION "$VERSION"
1735_ACEOF
1736
1737# Some tools Automake needs.
1738
1739ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1740
1741
1742AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1743
1744
1745AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1746
1747
1748AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1749
1750
1751MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1752
1753
1754AMTAR=${AMTAR-"${am_missing_run}tar"}
1755
1756install_sh=${install_sh-"$am_aux_dir/install-sh"}
1757
1758# Installed binaries are usually stripped using `strip' when the user
1759# run `make install-strip'.  However `strip' might not be the right
1760# tool to use in cross-compilation environments, therefore Automake
1761# will honor the `STRIP' environment variable to overrule this program.
1762if test "$cross_compiling" != no; then
1763  if test -n "$ac_tool_prefix"; then
1764  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1765set dummy ${ac_tool_prefix}strip; ac_word=$2
1766echo "$as_me:$LINENO: checking for $ac_word" >&5
1767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768if test "${ac_cv_prog_STRIP+set}" = set; then
1769  echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771  if test -n "$STRIP"; then
1772  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1773else
1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775for as_dir in $PATH
1776do
1777  IFS=$as_save_IFS
1778  test -z "$as_dir" && as_dir=.
1779  for ac_exec_ext in '' $ac_executable_extensions; do
1780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783    break 2
1784  fi
1785done
1786done
1787
1788fi
1789fi
1790STRIP=$ac_cv_prog_STRIP
1791if test -n "$STRIP"; then
1792  echo "$as_me:$LINENO: result: $STRIP" >&5
1793echo "${ECHO_T}$STRIP" >&6
1794else
1795  echo "$as_me:$LINENO: result: no" >&5
1796echo "${ECHO_T}no" >&6
1797fi
1798
1799fi
1800if test -z "$ac_cv_prog_STRIP"; then
1801  ac_ct_STRIP=$STRIP
1802  # Extract the first word of "strip", so it can be a program name with args.
1803set dummy strip; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$ac_ct_STRIP"; then
1810  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_ac_ct_STRIP="strip"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1827fi
1828fi
1829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1830if test -n "$ac_ct_STRIP"; then
1831  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1832echo "${ECHO_T}$ac_ct_STRIP" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838  STRIP=$ac_ct_STRIP
1839else
1840  STRIP="$ac_cv_prog_STRIP"
1841fi
1842
1843fi
1844INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1845
1846# We need awk for the "check" target.  The system "awk" is bad on
1847# some platforms.
1848
1849
1850
1851
1852
1853          ac_config_headers="$ac_config_headers config.h"
1854
1855
1856
1857# Checks for programs.
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      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2521      # Solaris 8's {/usr,}/bin/sh.
2522      touch sub/conftst$i.h
2523    done
2524    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2525
2526    case $depmode in
2527    nosideeffect)
2528      # after this tag, mechanisms are not by side-effect, so they'll
2529      # only be used when explicitly requested
2530      if test "x$enable_dependency_tracking" = xyes; then
2531        continue
2532      else
2533        break
2534      fi
2535      ;;
2536    none) break ;;
2537    esac
2538    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2539    # mode.  It turns out that the SunPro C++ compiler does not properly
2540    # handle `-M -o', and we need to detect this.
2541    if depmode=$depmode \
2542       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2543       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2544       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2545         >/dev/null 2>conftest.err &&
2546       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2547       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2548       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2549      # icc doesn't choke on unknown options, it will just issue warnings
2550      # or remarks (even with -Werror).  So we grep stderr for any message
2551      # that says an option was ignored or not supported.
2552      # When given -MP, icc 7.0 and 7.1 complain thusly:
2553      #   icc: Command line warning: ignoring option '-M'; no argument required
2554      # The diagnosis changed in icc 8.0:
2555      #   icc: Command line remark: option '-MP' not supported
2556      if (grep 'ignoring option' conftest.err ||
2557          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2558        am_cv_CXX_dependencies_compiler_type=$depmode
2559        break
2560      fi
2561    fi
2562  done
2563
2564  cd ..
2565  rm -rf conftest.dir
2566else
2567  am_cv_CXX_dependencies_compiler_type=none
2568fi
2569
2570fi
2571echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2572echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2573CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2574
2575
2576
2577if
2578  test "x$enable_dependency_tracking" != xno \
2579  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2580  am__fastdepCXX_TRUE=
2581  am__fastdepCXX_FALSE='#'
2582else
2583  am__fastdepCXX_TRUE='#'
2584  am__fastdepCXX_FALSE=
2585fi
2586
2587
2588ac_ext=c
2589ac_cpp='$CPP $CPPFLAGS'
2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}gcc; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_CC+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$CC"; then
2602  ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
2622  echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_CC"; then
2631  ac_ct_CC=$CC
2632  # Extract the first word of "gcc", so it can be a program name with args.
2633set dummy gcc; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_CC"; then
2640  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_CC="gcc"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656fi
2657fi
2658ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659if test -n "$ac_ct_CC"; then
2660  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661echo "${ECHO_T}$ac_ct_CC" >&6
2662else
2663  echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6
2665fi
2666
2667  CC=$ac_ct_CC
2668else
2669  CC="$ac_cv_prog_CC"
2670fi
2671
2672if test -z "$CC"; then
2673  if test -n "$ac_tool_prefix"; then
2674  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2675set dummy ${ac_tool_prefix}cc; ac_word=$2
2676echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678if test "${ac_cv_prog_CC+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  if test -n "$CC"; then
2682  ac_cv_prog_CC="$CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689  for ac_exec_ext in '' $ac_executable_extensions; do
2690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691    ac_cv_prog_CC="${ac_tool_prefix}cc"
2692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696done
2697
2698fi
2699fi
2700CC=$ac_cv_prog_CC
2701if test -n "$CC"; then
2702  echo "$as_me:$LINENO: result: $CC" >&5
2703echo "${ECHO_T}$CC" >&6
2704else
2705  echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
2707fi
2708
2709fi
2710if test -z "$ac_cv_prog_CC"; then
2711  ac_ct_CC=$CC
2712  # Extract the first word of "cc", so it can be a program name with args.
2713set dummy cc; ac_word=$2
2714echo "$as_me:$LINENO: checking for $ac_word" >&5
2715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2717  echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719  if test -n "$ac_ct_CC"; then
2720  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727  for ac_exec_ext in '' $ac_executable_extensions; do
2728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729    ac_cv_prog_ac_ct_CC="cc"
2730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734done
2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
2740  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2741echo "${ECHO_T}$ac_ct_CC" >&6
2742else
2743  echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
2745fi
2746
2747  CC=$ac_ct_CC
2748else
2749  CC="$ac_cv_prog_CC"
2750fi
2751
2752fi
2753if test -z "$CC"; then
2754  # Extract the first word of "cc", so it can be a program name with args.
2755set dummy cc; ac_word=$2
2756echo "$as_me:$LINENO: checking for $ac_word" >&5
2757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758if test "${ac_cv_prog_CC+set}" = set; then
2759  echo $ECHO_N "(cached) $ECHO_C" >&6
2760else
2761  if test -n "$CC"; then
2762  ac_cv_prog_CC="$CC" # Let the user override the test.
2763else
2764  ac_prog_rejected=no
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770  for ac_exec_ext in '' $ac_executable_extensions; do
2771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773       ac_prog_rejected=yes
2774       continue
2775     fi
2776    ac_cv_prog_CC="cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783if test $ac_prog_rejected = yes; then
2784  # We found a bogon in the path, so make sure we never use it.
2785  set dummy $ac_cv_prog_CC
2786  shift
2787  if test $# != 0; then
2788    # We chose a different compiler from the bogus one.
2789    # However, it has the same basename, so the bogon will be chosen
2790    # first if we set CC to just the basename; use the full file name.
2791    shift
2792    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2793  fi
2794fi
2795fi
2796fi
2797CC=$ac_cv_prog_CC
2798if test -n "$CC"; then
2799  echo "$as_me:$LINENO: result: $CC" >&5
2800echo "${ECHO_T}$CC" >&6
2801else
2802  echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804fi
2805
2806fi
2807if test -z "$CC"; then
2808  if test -n "$ac_tool_prefix"; then
2809  for ac_prog in cl
2810  do
2811    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815if test "${ac_cv_prog_CC+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  if test -n "$CC"; then
2819  ac_cv_prog_CC="$CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826  for ac_exec_ext in '' $ac_executable_extensions; do
2827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833done
2834
2835fi
2836fi
2837CC=$ac_cv_prog_CC
2838if test -n "$CC"; then
2839  echo "$as_me:$LINENO: result: $CC" >&5
2840echo "${ECHO_T}$CC" >&6
2841else
2842  echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6
2844fi
2845
2846    test -n "$CC" && break
2847  done
2848fi
2849if test -z "$CC"; then
2850  ac_ct_CC=$CC
2851  for ac_prog in cl
2852do
2853  # Extract the first word of "$ac_prog", so it can be a program name with args.
2854set dummy $ac_prog; ac_word=$2
2855echo "$as_me:$LINENO: checking for $ac_word" >&5
2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858  echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860  if test -n "$ac_ct_CC"; then
2861  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  test -z "$as_dir" && as_dir=.
2868  for ac_exec_ext in '' $ac_executable_extensions; do
2869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870    ac_cv_prog_ac_ct_CC="$ac_prog"
2871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872    break 2
2873  fi
2874done
2875done
2876
2877fi
2878fi
2879ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880if test -n "$ac_ct_CC"; then
2881  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882echo "${ECHO_T}$ac_ct_CC" >&6
2883else
2884  echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6
2886fi
2887
2888  test -n "$ac_ct_CC" && break
2889done
2890
2891  CC=$ac_ct_CC
2892fi
2893
2894fi
2895
2896
2897test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: no acceptable C compiler found in \$PATH
2900See \`config.log' for more details." >&2;}
2901   { (exit 1); exit 1; }; }
2902
2903# Provide some information about the compiler.
2904echo "$as_me:$LINENO:" \
2905     "checking for C compiler version" >&5
2906ac_compiler=`set X $ac_compile; echo $2`
2907{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2908  (eval $ac_compiler --version </dev/null >&5) 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }
2912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2913  (eval $ac_compiler -v </dev/null >&5) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }
2917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2918  (eval $ac_compiler -V </dev/null >&5) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }
2922
2923echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2924echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2925if test "${ac_cv_c_compiler_gnu+set}" = set; then
2926  echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928  cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938#ifndef __GNUC__
2939       choke me
2940#endif
2941
2942  ;
2943  return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948  (eval $ac_compile) 2>conftest.er1
2949  ac_status=$?
2950  grep -v '^ *+' conftest.er1 >conftest.err
2951  rm -f conftest.er1
2952  cat conftest.err >&5
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); } &&
2955         { ac_try='test -z "$ac_c_werror_flag"
2956                         || test ! -s conftest.err'
2957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958  (eval $ac_try) 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; } &&
2962         { ac_try='test -s conftest.$ac_objext'
2963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964  (eval $ac_try) 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }; }; then
2968  ac_compiler_gnu=yes
2969else
2970  echo "$as_me: failed program was:" >&5
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
2973ac_compiler_gnu=no
2974fi
2975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976ac_cv_c_compiler_gnu=$ac_compiler_gnu
2977
2978fi
2979echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2980echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2981GCC=`test $ac_compiler_gnu = yes && echo yes`
2982ac_test_CFLAGS=${CFLAGS+set}
2983ac_save_CFLAGS=$CFLAGS
2984CFLAGS="-g"
2985echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2986echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2987if test "${ac_cv_prog_cc_g+set}" = set; then
2988  echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990  cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h.  */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h.  */
2996
2997int
2998main ()
2999{
3000
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007  (eval $ac_compile) 2>conftest.er1
3008  ac_status=$?
3009  grep -v '^ *+' conftest.er1 >conftest.err
3010  rm -f conftest.er1
3011  cat conftest.err >&5
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); } &&
3014         { ac_try='test -z "$ac_c_werror_flag"
3015                         || test ! -s conftest.err'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; } &&
3021         { ac_try='test -s conftest.$ac_objext'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; }; then
3027  ac_cv_prog_cc_g=yes
3028else
3029  echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032ac_cv_prog_cc_g=no
3033fi
3034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3037echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3038if test "$ac_test_CFLAGS" = set; then
3039  CFLAGS=$ac_save_CFLAGS
3040elif test $ac_cv_prog_cc_g = yes; then
3041  if test "$GCC" = yes; then
3042    CFLAGS="-g -O2"
3043  else
3044    CFLAGS="-g"
3045  fi
3046else
3047  if test "$GCC" = yes; then
3048    CFLAGS="-O2"
3049  else
3050    CFLAGS=
3051  fi
3052fi
3053echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3054echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3055if test "${ac_cv_prog_cc_stdc+set}" = set; then
3056  echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058  ac_cv_prog_cc_stdc=no
3059ac_save_CC=$CC
3060cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h.  */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h.  */
3066#include <stdarg.h>
3067#include <stdio.h>
3068#include <sys/types.h>
3069#include <sys/stat.h>
3070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3071struct buf { int x; };
3072FILE * (*rcsopen) (struct buf *, struct stat *, int);
3073static char *e (p, i)
3074     char **p;
3075     int i;
3076{
3077  return p[i];
3078}
3079static char *f (char * (*g) (char **, int), char **p, ...)
3080{
3081  char *s;
3082  va_list v;
3083  va_start (v,p);
3084  s = g (p, va_arg (v,int));
3085  va_end (v);
3086  return s;
3087}
3088
3089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3090   function prototypes and stuff, but not '\xHH' hex character constants.
3091   These don't provoke an error unfortunately, instead are silently treated
3092   as 'x'.  The following induces an error, until -std1 is added to get
3093   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3094   array size at least.  It's necessary to write '\x00'==0 to get something
3095   that's true only with -std1.  */
3096int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3097
3098int test (int i, double x);
3099struct s1 {int (*f) (int a);};
3100struct s2 {int (*f) (double a);};
3101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3102int argc;
3103char **argv;
3104int
3105main ()
3106{
3107return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112# Don't try gcc -ansi; that turns off useful extensions and
3113# breaks some systems' header files.
3114# AIX                   -qlanglvl=ansi
3115# Ultrix and OSF/1      -std1
3116# HP-UX 10.20 and later -Ae
3117# HP-UX older versions  -Aa -D_HPUX_SOURCE
3118# SVR4                  -Xc -D__EXTENSIONS__
3119for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3120do
3121  CC="$ac_save_CC $ac_arg"
3122  rm -f conftest.$ac_objext
3123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124  (eval $ac_compile) 2>conftest.er1
3125  ac_status=$?
3126  grep -v '^ *+' conftest.er1 >conftest.err
3127  rm -f conftest.er1
3128  cat conftest.err >&5
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); } &&
3131         { ac_try='test -z "$ac_c_werror_flag"
3132                         || test ! -s conftest.err'
3133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134  (eval $ac_try) 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; } &&
3138         { ac_try='test -s conftest.$ac_objext'
3139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140  (eval $ac_try) 2>&5
3141  ac_status=$?
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); }; }; then
3144  ac_cv_prog_cc_stdc=$ac_arg
3145break
3146else
3147  echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150fi
3151rm -f conftest.err conftest.$ac_objext
3152done
3153rm -f conftest.$ac_ext conftest.$ac_objext
3154CC=$ac_save_CC
3155
3156fi
3157
3158case "x$ac_cv_prog_cc_stdc" in
3159  x|xno)
3160    echo "$as_me:$LINENO: result: none needed" >&5
3161echo "${ECHO_T}none needed" >&6 ;;
3162  *)
3163    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3164echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3165    CC="$CC $ac_cv_prog_cc_stdc" ;;
3166esac
3167
3168# Some people use a C++ compiler to compile C.  Since we use `exit',
3169# in C++ we need to declare it.  In case someone uses the same compiler
3170# for both compiling C and C++ we need to have the C++ compiler decide
3171# the declaration of exit, since it's the most demanding environment.
3172cat >conftest.$ac_ext <<_ACEOF
3173#ifndef __cplusplus
3174  choke me
3175#endif
3176_ACEOF
3177rm -f conftest.$ac_objext
3178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3179  (eval $ac_compile) 2>conftest.er1
3180  ac_status=$?
3181  grep -v '^ *+' conftest.er1 >conftest.err
3182  rm -f conftest.er1
3183  cat conftest.err >&5
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); } &&
3186         { ac_try='test -z "$ac_c_werror_flag"
3187                         || test ! -s conftest.err'
3188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189  (eval $ac_try) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; } &&
3193         { ac_try='test -s conftest.$ac_objext'
3194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195  (eval $ac_try) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }; }; then
3199  for ac_declaration in \
3200   '' \
3201   'extern "C" void std::exit (int) throw (); using std::exit;' \
3202   'extern "C" void std::exit (int); using std::exit;' \
3203   'extern "C" void exit (int) throw ();' \
3204   'extern "C" void exit (int);' \
3205   'void exit (int);'
3206do
3207  cat >conftest.$ac_ext <<_ACEOF
3208/* confdefs.h.  */
3209_ACEOF
3210cat confdefs.h >>conftest.$ac_ext
3211cat >>conftest.$ac_ext <<_ACEOF
3212/* end confdefs.h.  */
3213$ac_declaration
3214#include <stdlib.h>
3215int
3216main ()
3217{
3218exit (42);
3219  ;
3220  return 0;
3221}
3222_ACEOF
3223rm -f conftest.$ac_objext
3224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225  (eval $ac_compile) 2>conftest.er1
3226  ac_status=$?
3227  grep -v '^ *+' conftest.er1 >conftest.err
3228  rm -f conftest.er1
3229  cat conftest.err >&5
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); } &&
3232         { ac_try='test -z "$ac_c_werror_flag"
3233                         || test ! -s conftest.err'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; } &&
3239         { ac_try='test -s conftest.$ac_objext'
3240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241  (eval $ac_try) 2>&5
3242  ac_status=$?
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); }; }; then
3245  :
3246else
3247  echo "$as_me: failed program was:" >&5
3248sed 's/^/| /' conftest.$ac_ext >&5
3249
3250continue
3251fi
3252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3253  cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h.  */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h.  */
3259$ac_declaration
3260int
3261main ()
3262{
3263exit (42);
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268rm -f conftest.$ac_objext
3269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270  (eval $ac_compile) 2>conftest.er1
3271  ac_status=$?
3272  grep -v '^ *+' conftest.er1 >conftest.err
3273  rm -f conftest.er1
3274  cat conftest.err >&5
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); } &&
3277         { ac_try='test -z "$ac_c_werror_flag"
3278                         || test ! -s conftest.err'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; } &&
3284         { ac_try='test -s conftest.$ac_objext'
3285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286  (eval $ac_try) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }; }; then
3290  break
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295fi
3296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3297done
3298rm -f conftest*
3299if test -n "$ac_declaration"; then
3300  echo '#ifdef __cplusplus' >>confdefs.h
3301  echo $ac_declaration      >>confdefs.h
3302  echo '#endif'             >>confdefs.h
3303fi
3304
3305else
3306  echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309fi
3310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311ac_ext=c
3312ac_cpp='$CPP $CPPFLAGS'
3313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316
3317depcc="$CC"   am_compiler_list=
3318
3319echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3320echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3321if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3325  # We make a subdir and do the tests there.  Otherwise we can end up
3326  # making bogus files that we don't know about and never remove.  For
3327  # instance it was reported that on HP-UX the gcc test will end up
3328  # making a dummy file named `D' -- because `-MD' means `put the output
3329  # in D'.
3330  mkdir conftest.dir
3331  # Copy depcomp to subdir because otherwise we won't find it if we're
3332  # using a relative directory.
3333  cp "$am_depcomp" conftest.dir
3334  cd conftest.dir
3335  # We will build objects and dependencies in a subdirectory because
3336  # it helps to detect inapplicable dependency modes.  For instance
3337  # both Tru64's cc and ICC support -MD to output dependencies as a
3338  # side effect of compilation, but ICC will put the dependencies in
3339  # the current directory while Tru64 will put them in the object
3340  # directory.
3341  mkdir sub
3342
3343  am_cv_CC_dependencies_compiler_type=none
3344  if test "$am_compiler_list" = ""; then
3345     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3346  fi
3347  for depmode in $am_compiler_list; do
3348    # Setup a source with many dependencies, because some compilers
3349    # like to wrap large dependency lists on column 80 (with \), and
3350    # we should not choose a depcomp mode which is confused by this.
3351    #
3352    # We need to recreate these files for each test, as the compiler may
3353    # overwrite some of them when testing with obscure command lines.
3354    # This happens at least with the AIX C compiler.
3355    : > sub/conftest.c
3356    for i in 1 2 3 4 5 6; do
3357      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3358      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3359      # Solaris 8's {/usr,}/bin/sh.
3360      touch sub/conftst$i.h
3361    done
3362    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3363
3364    case $depmode in
3365    nosideeffect)
3366      # after this tag, mechanisms are not by side-effect, so they'll
3367      # only be used when explicitly requested
3368      if test "x$enable_dependency_tracking" = xyes; then
3369        continue
3370      else
3371        break
3372      fi
3373      ;;
3374    none) break ;;
3375    esac
3376    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3377    # mode.  It turns out that the SunPro C++ compiler does not properly
3378    # handle `-M -o', and we need to detect this.
3379    if depmode=$depmode \
3380       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3381       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3382       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3383         >/dev/null 2>conftest.err &&
3384       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3385       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3386       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3387      # icc doesn't choke on unknown options, it will just issue warnings
3388      # or remarks (even with -Werror).  So we grep stderr for any message
3389      # that says an option was ignored or not supported.
3390      # When given -MP, icc 7.0 and 7.1 complain thusly:
3391      #   icc: Command line warning: ignoring option '-M'; no argument required
3392      # The diagnosis changed in icc 8.0:
3393      #   icc: Command line remark: option '-MP' not supported
3394      if (grep 'ignoring option' conftest.err ||
3395          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3396        am_cv_CC_dependencies_compiler_type=$depmode
3397        break
3398      fi
3399    fi
3400  done
3401
3402  cd ..
3403  rm -rf conftest.dir
3404else
3405  am_cv_CC_dependencies_compiler_type=none
3406fi
3407
3408fi
3409echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3410echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3411CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3412
3413
3414
3415if
3416  test "x$enable_dependency_tracking" != xno \
3417  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3418  am__fastdepCC_TRUE=
3419  am__fastdepCC_FALSE='#'
3420else
3421  am__fastdepCC_TRUE='#'
3422  am__fastdepCC_FALSE=
3423fi
3424
3425
3426
3427ac_ext=c
3428ac_cpp='$CPP $CPPFLAGS'
3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3434# On Suns, sometimes $CPP names a directory.
3435if test -n "$CPP" && test -d "$CPP"; then
3436  CPP=
3437fi
3438if test -z "$CPP"; then
3439  if test "${ac_cv_prog_CPP+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442      # Double quotes because CPP needs to be expanded
3443    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3444    do
3445      ac_preproc_ok=false
3446for ac_c_preproc_warn_flag in '' yes
3447do
3448  # Use a header file that comes with gcc, so configuring glibc
3449  # with a fresh cross-compiler works.
3450  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451  # <limits.h> exists even on freestanding compilers.
3452  # On the NeXT, cc -E runs the code through the compiler's parser,
3453  # not just through cpp. "Syntax error" is here to catch this case.
3454  cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h.  */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h.  */
3460#ifdef __STDC__
3461# include <limits.h>
3462#else
3463# include <assert.h>
3464#endif
3465                     Syntax error
3466_ACEOF
3467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } >/dev/null; then
3475  if test -s conftest.err; then
3476    ac_cpp_err=$ac_c_preproc_warn_flag
3477    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3478  else
3479    ac_cpp_err=
3480  fi
3481else
3482  ac_cpp_err=yes
3483fi
3484if test -z "$ac_cpp_err"; then
3485  :
3486else
3487  echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490  # Broken: fails on valid input.
3491continue
3492fi
3493rm -f conftest.err conftest.$ac_ext
3494
3495  # OK, works on sane cases.  Now check whether non-existent headers
3496  # can be detected and how.
3497  cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h.  */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h.  */
3503#include <ac_nonexistent.h>
3504_ACEOF
3505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3507  ac_status=$?
3508  grep -v '^ *+' conftest.er1 >conftest.err
3509  rm -f conftest.er1
3510  cat conftest.err >&5
3511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512  (exit $ac_status); } >/dev/null; then
3513  if test -s conftest.err; then
3514    ac_cpp_err=$ac_c_preproc_warn_flag
3515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3516  else
3517    ac_cpp_err=
3518  fi
3519else
3520  ac_cpp_err=yes
3521fi
3522if test -z "$ac_cpp_err"; then
3523  # Broken: success on invalid input.
3524continue
3525else
3526  echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529  # Passes both tests.
3530ac_preproc_ok=:
3531break
3532fi
3533rm -f conftest.err conftest.$ac_ext
3534
3535done
3536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537rm -f conftest.err conftest.$ac_ext
3538if $ac_preproc_ok; then
3539  break
3540fi
3541
3542    done
3543    ac_cv_prog_CPP=$CPP
3544
3545fi
3546  CPP=$ac_cv_prog_CPP
3547else
3548  ac_cv_prog_CPP=$CPP
3549fi
3550echo "$as_me:$LINENO: result: $CPP" >&5
3551echo "${ECHO_T}$CPP" >&6
3552ac_preproc_ok=false
3553for ac_c_preproc_warn_flag in '' yes
3554do
3555  # Use a header file that comes with gcc, so configuring glibc
3556  # with a fresh cross-compiler works.
3557  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558  # <limits.h> exists even on freestanding compilers.
3559  # On the NeXT, cc -E runs the code through the compiler's parser,
3560  # not just through cpp. "Syntax error" is here to catch this case.
3561  cat >conftest.$ac_ext <<_ACEOF
3562/* confdefs.h.  */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h.  */
3567#ifdef __STDC__
3568# include <limits.h>
3569#else
3570# include <assert.h>
3571#endif
3572                     Syntax error
3573_ACEOF
3574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3576  ac_status=$?
3577  grep -v '^ *+' conftest.er1 >conftest.err
3578  rm -f conftest.er1
3579  cat conftest.err >&5
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); } >/dev/null; then
3582  if test -s conftest.err; then
3583    ac_cpp_err=$ac_c_preproc_warn_flag
3584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585  else
3586    ac_cpp_err=
3587  fi
3588else
3589  ac_cpp_err=yes
3590fi
3591if test -z "$ac_cpp_err"; then
3592  :
3593else
3594  echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597  # Broken: fails on valid input.
3598continue
3599fi
3600rm -f conftest.err conftest.$ac_ext
3601
3602  # OK, works on sane cases.  Now check whether non-existent headers
3603  # can be detected and how.
3604  cat >conftest.$ac_ext <<_ACEOF
3605/* confdefs.h.  */
3606_ACEOF
3607cat confdefs.h >>conftest.$ac_ext
3608cat >>conftest.$ac_ext <<_ACEOF
3609/* end confdefs.h.  */
3610#include <ac_nonexistent.h>
3611_ACEOF
3612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3614  ac_status=$?
3615  grep -v '^ *+' conftest.er1 >conftest.err
3616  rm -f conftest.er1
3617  cat conftest.err >&5
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); } >/dev/null; then
3620  if test -s conftest.err; then
3621    ac_cpp_err=$ac_c_preproc_warn_flag
3622    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623  else
3624    ac_cpp_err=
3625  fi
3626else
3627  ac_cpp_err=yes
3628fi
3629if test -z "$ac_cpp_err"; then
3630  # Broken: success on invalid input.
3631continue
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636  # Passes both tests.
3637ac_preproc_ok=:
3638break
3639fi
3640rm -f conftest.err conftest.$ac_ext
3641
3642done
3643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644rm -f conftest.err conftest.$ac_ext
3645if $ac_preproc_ok; then
3646  :
3647else
3648  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3649See \`config.log' for more details." >&5
3650echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3651See \`config.log' for more details." >&2;}
3652   { (exit 1); exit 1; }; }
3653fi
3654
3655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661
3662echo "$as_me:$LINENO: checking for egrep" >&5
3663echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3664if test "${ac_cv_prog_egrep+set}" = set; then
3665  echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3668    then ac_cv_prog_egrep='grep -E'
3669    else ac_cv_prog_egrep='egrep'
3670    fi
3671fi
3672echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3673echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3674 EGREP=$ac_cv_prog_egrep
3675
3676
3677echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3678echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3679if test "${ac_cv_header_stdc+set}" = set; then
3680  echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682  cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688#include <stdlib.h>
3689#include <stdarg.h>
3690#include <string.h>
3691#include <float.h>
3692
3693int
3694main ()
3695{
3696
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703  (eval $ac_compile) 2>conftest.er1
3704  ac_status=$?
3705  grep -v '^ *+' conftest.er1 >conftest.err
3706  rm -f conftest.er1
3707  cat conftest.err >&5
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); } &&
3710         { ac_try='test -z "$ac_c_werror_flag"
3711                         || test ! -s conftest.err'
3712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713  (eval $ac_try) 2>&5
3714  ac_status=$?
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); }; } &&
3717         { ac_try='test -s conftest.$ac_objext'
3718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719  (eval $ac_try) 2>&5
3720  ac_status=$?
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); }; }; then
3723  ac_cv_header_stdc=yes
3724else
3725  echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728ac_cv_header_stdc=no
3729fi
3730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3731
3732if test $ac_cv_header_stdc = yes; then
3733  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3734  cat >conftest.$ac_ext <<_ACEOF
3735/* confdefs.h.  */
3736_ACEOF
3737cat confdefs.h >>conftest.$ac_ext
3738cat >>conftest.$ac_ext <<_ACEOF
3739/* end confdefs.h.  */
3740#include <string.h>
3741
3742_ACEOF
3743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744  $EGREP "memchr" >/dev/null 2>&1; then
3745  :
3746else
3747  ac_cv_header_stdc=no
3748fi
3749rm -f conftest*
3750
3751fi
3752
3753if test $ac_cv_header_stdc = yes; then
3754  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3755  cat >conftest.$ac_ext <<_ACEOF
3756/* confdefs.h.  */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h.  */
3761#include <stdlib.h>
3762
3763_ACEOF
3764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765  $EGREP "free" >/dev/null 2>&1; then
3766  :
3767else
3768  ac_cv_header_stdc=no
3769fi
3770rm -f conftest*
3771
3772fi
3773
3774if test $ac_cv_header_stdc = yes; then
3775  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3776  if test "$cross_compiling" = yes; then
3777  :
3778else
3779  cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785#include <ctype.h>
3786#if ((' ' & 0x0FF) == 0x020)
3787# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3788# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3789#else
3790# define ISLOWER(c) \
3791                   (('a' <= (c) && (c) <= 'i') \
3792                     || ('j' <= (c) && (c) <= 'r') \
3793                     || ('s' <= (c) && (c) <= 'z'))
3794# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3795#endif
3796
3797#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3798int
3799main ()
3800{
3801  int i;
3802  for (i = 0; i < 256; i++)
3803    if (XOR (islower (i), ISLOWER (i))
3804        || toupper (i) != TOUPPER (i))
3805      exit(2);
3806  exit (0);
3807}
3808_ACEOF
3809rm -f conftest$ac_exeext
3810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3811  (eval $ac_link) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816  (eval $ac_try) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); }; }; then
3820  :
3821else
3822  echo "$as_me: program exited with status $ac_status" >&5
3823echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826( exit $ac_status )
3827ac_cv_header_stdc=no
3828fi
3829rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3830fi
3831fi
3832fi
3833echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3834echo "${ECHO_T}$ac_cv_header_stdc" >&6
3835if test $ac_cv_header_stdc = yes; then
3836
3837cat >>confdefs.h <<\_ACEOF
3838#define STDC_HEADERS 1
3839_ACEOF
3840
3841fi
3842
3843
3844### CHECKING  OPTIONAT ARGUMENTS
3845## DEBUG-statement
3846DEBUG=no
3847echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3848echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3849# Check whether --enable-debug or --disable-debug was given.
3850if test "${enable_debug+set}" = set; then
3851  enableval="$enable_debug"
3852  DEBUG=$enableval
3853fi;
3854
3855if test "$DEBUG" = "no"; then
3856        echo "no"
3857        echo " -> Setting debuglevel to 1. Like this you can still see errors."
3858        DEBUG=1
3859elif test "$DEBUG" = yes; then
3860        echo "yes"
3861        echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!."
3862        DEBUG=3
3863else
3864        echo "yes set to $DEBUG"
3865fi
3866
3867cat >>confdefs.h <<_ACEOF
3868#define DEBUG $DEBUG
3869_ACEOF
3870
3871
3872
3873
3874## GTK-disabled
3875echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3876echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3877
3878# Check whether --with-gtk or --without-gtk was given.
3879if test "${with_gtk+set}" = set; then
3880  withval="$with_gtk"
3881  def_gtk=no
3882else
3883  def_gtk=yes
3884fi;
3885if test "$def_gtk" = yes; then
3886  echo "yes"
3887fi
3888if test "$def_gtk" = no; then
3889  echo "no"
3890fi
3891
3892## gThread-disabled
3893echo "$as_me:$LINENO: checking if gThread should be enabled" >&5
3894echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6
3895
3896# Check whether --with-gthread or --without-gthread was given.
3897if test "${with_gthread+set}" = set; then
3898  withval="$with_gthread"
3899  def_gthread=no
3900else
3901  def_gthread=yes
3902fi;
3903if test "$def_gthread" = yes; then
3904  echo "yes"
3905fi
3906if test "$def_gthread" = no; then
3907  echo "no"
3908fi
3909
3910## pthread-disabled
3911echo "$as_me:$LINENO: checking if pthread should be enabled" >&5
3912echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6
3913
3914# Check whether --with-pthread or --without-pthread was given.
3915if test "${with_pthread+set}" = set; then
3916  withval="$with_pthread"
3917  def_pthread=no
3918else
3919  def_pthread=yes
3920fi;
3921if test "$def_pthread" = yes; then
3922  echo "yes"
3923fi
3924if test "$def_pthread" = no; then
3925  echo "no"
3926fi
3927
3928## libCurl disabled?
3929echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
3930echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
3931
3932# Check whether --with-curl or --without-curl was given.
3933if test "${with_curl+set}" = set; then
3934  withval="$with_curl"
3935  def_curl=no
3936else
3937  def_curl=yes
3938fi;
3939if test "$def_curl" = yes; then
3940  echo "yes"
3941fi
3942if test "$def_curl" = no; then
3943  echo "no"
3944fi
3945
3946### SDL_image-disable
3947def_sdl_image=yes
3948echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5
3949echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6
3950
3951# Check whether --with-sdl_image or --without-sdl_image was given.
3952if test "${with_sdl_image+set}" = set; then
3953  withval="$with_sdl_image"
3954  def_sdl_image=no
3955fi;
3956if test "$def_sdl_image" = yes; then
3957  echo "yes"
3958fi
3959if test "$def_sdl_image" = no; then
3960  echo "no"
3961fi
3962
3963
3964### SubProject-enable
3965def_sdl_image=yes
3966echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
3967echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
3968# Check whether --enable-sub-projects or --disable-sub-projects was given.
3969if test "${enable_sub_projects+set}" = set; then
3970  enableval="$enable_sub_projects"
3971  def_sub_projects=yes
3972fi;
3973if test "$def_sub_projects" = yes; then
3974  echo "yes"
3975fi
3976if test "$def_sub_projects" = no; then
3977  echo "no"
3978fi
3979
3980
3981if test x$def_sub_projects = xyes; then
3982  SUB_PROJECTS_TRUE=
3983  SUB_PROJECTS_FALSE='#'
3984else
3985  SUB_PROJECTS_TRUE='#'
3986  SUB_PROJECTS_FALSE=
3987fi
3988
3989
3990## PROGRAMM CHECKING
3991# checking for Doxygen
3992# Extract the first word of "doxygen", so it can be a program name with args.
3993set dummy doxygen; ac_word=$2
3994echo "$as_me:$LINENO: checking for $ac_word" >&5
3995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996if test "${ac_cv_path_DOXYGEN+set}" = set; then
3997  echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999  case $DOXYGEN in
4000  [\\/]* | ?:[\\/]*)
4001  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4002  ;;
4003  *)
4004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007  IFS=$as_save_IFS
4008  test -z "$as_dir" && as_dir=.
4009  for ac_exec_ext in '' $ac_executable_extensions; do
4010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013    break 2
4014  fi
4015done
4016done
4017
4018  ;;
4019esac
4020fi
4021DOXYGEN=$ac_cv_path_DOXYGEN
4022
4023if test -n "$DOXYGEN"; then
4024  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4025echo "${ECHO_T}$DOXYGEN" >&6
4026else
4027  echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029fi
4030
4031
4032
4033if test $DOXYGEN; then
4034  DOXYGEN_TRUE=
4035  DOXYGEN_FALSE='#'
4036else
4037  DOXYGEN_TRUE='#'
4038  DOXYGEN_FALSE=
4039fi
4040
4041
4042### CHECKING FOR SYSTEM ###
4043
4044echo "$as_me:$LINENO: checking for System" >&5
4045echo $ECHO_N "checking for System... $ECHO_C" >&6
4046## checking for openGL-environment and other sys-specific parameters
4047case "$target" in
4048### WINDOWS ###
4049  *-*-mingw32*)
4050echo "mingw-WINDOWS detected"
4051
4052    mingw="yes"
4053    MSBITFIELDS="-mms-bitfields"
4054    MWINDOWS="-mwindows"
4055
4056# checking gl header
4057        #done before loop
4058
4059# checking gl header
4060   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4071                  inttypes.h stdint.h unistd.h
4072do
4073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4074echo "$as_me:$LINENO: checking for $ac_header" >&5
4075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4076if eval "test \"\${$as_ac_Header+set}\" = set"; then
4077  echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079  cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h.  */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h.  */
4085$ac_includes_default
4086
4087#include <$ac_header>
4088_ACEOF
4089rm -f conftest.$ac_objext
4090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091  (eval $ac_compile) 2>conftest.er1
4092  ac_status=$?
4093  grep -v '^ *+' conftest.er1 >conftest.err
4094  rm -f conftest.er1
4095  cat conftest.err >&5
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); } &&
4098         { ac_try='test -z "$ac_c_werror_flag"
4099                         || test ! -s conftest.err'
4100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101  (eval $ac_try) 2>&5
4102  ac_status=$?
4103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104  (exit $ac_status); }; } &&
4105         { ac_try='test -s conftest.$ac_objext'
4106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107  (eval $ac_try) 2>&5
4108  ac_status=$?
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); }; }; then
4111  eval "$as_ac_Header=yes"
4112else
4113  echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
4116eval "$as_ac_Header=no"
4117fi
4118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119fi
4120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4122if test `eval echo '${'$as_ac_Header'}'` = yes; then
4123  cat >>confdefs.h <<_ACEOF
4124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4125_ACEOF
4126
4127fi
4128
4129done
4130
4131
4132
4133for ac_header in GL/gl.h
4134do
4135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136if eval "test \"\${$as_ac_Header+set}\" = set"; then
4137  echo "$as_me:$LINENO: checking for $ac_header" >&5
4138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4139if eval "test \"\${$as_ac_Header+set}\" = set"; then
4140  echo $ECHO_N "(cached) $ECHO_C" >&6
4141fi
4142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4144else
4145  # Is the header compilable?
4146echo "$as_me:$LINENO: checking $ac_header usability" >&5
4147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4148cat >conftest.$ac_ext <<_ACEOF
4149/* confdefs.h.  */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h.  */
4154$ac_includes_default
4155#include <$ac_header>
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159  (eval $ac_compile) 2>conftest.er1
4160  ac_status=$?
4161  grep -v '^ *+' conftest.er1 >conftest.err
4162  rm -f conftest.er1
4163  cat conftest.err >&5
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); } &&
4166         { ac_try='test -z "$ac_c_werror_flag"
4167                         || test ! -s conftest.err'
4168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169  (eval $ac_try) 2>&5
4170  ac_status=$?
4171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172  (exit $ac_status); }; } &&
4173         { ac_try='test -s conftest.$ac_objext'
4174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175  (eval $ac_try) 2>&5
4176  ac_status=$?
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); }; }; then
4179  ac_header_compiler=yes
4180else
4181  echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184ac_header_compiler=no
4185fi
4186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4188echo "${ECHO_T}$ac_header_compiler" >&6
4189
4190# Is the header present?
4191echo "$as_me:$LINENO: checking $ac_header presence" >&5
4192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4193cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h.  */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h.  */
4199#include <$ac_header>
4200_ACEOF
4201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4202  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4203  ac_status=$?
4204  grep -v '^ *+' conftest.er1 >conftest.err
4205  rm -f conftest.er1
4206  cat conftest.err >&5
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); } >/dev/null; then
4209  if test -s conftest.err; then
4210    ac_cpp_err=$ac_c_preproc_warn_flag
4211    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4212  else
4213    ac_cpp_err=
4214  fi
4215else
4216  ac_cpp_err=yes
4217fi
4218if test -z "$ac_cpp_err"; then
4219  ac_header_preproc=yes
4220else
4221  echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224  ac_header_preproc=no
4225fi
4226rm -f conftest.err conftest.$ac_ext
4227echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4228echo "${ECHO_T}$ac_header_preproc" >&6
4229
4230# So?  What about this header?
4231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4232  yes:no: )
4233    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4235    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4236echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4237    ac_header_preproc=yes
4238    ;;
4239  no:yes:* )
4240    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4241echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4242    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4243echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4244    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4245echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4246    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4247echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4248    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4250    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4251echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4252    (
4253      cat <<\_ASBOX
4254## ---------------------------------------------- ##
4255## Report this to orxonox-dev at mail.datacore.ch ##
4256## ---------------------------------------------- ##
4257_ASBOX
4258    ) |
4259      sed "s/^/$as_me: WARNING:     /" >&2
4260    ;;
4261esac
4262echo "$as_me:$LINENO: checking for $ac_header" >&5
4263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4264if eval "test \"\${$as_ac_Header+set}\" = set"; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  eval "$as_ac_Header=\$ac_header_preproc"
4268fi
4269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4271
4272fi
4273if test `eval echo '${'$as_ac_Header'}'` = yes; then
4274  cat >>confdefs.h <<_ACEOF
4275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276_ACEOF
4277
4278else
4279  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4280echo "$as_me: error: cannot find opengl headers" >&2;}
4281   { (exit 1); exit 1; }; }
4282fi
4283
4284done
4285
4286#   checking for Windows openGl library
4287    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4288echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4289if test "${ac_cv_lib_opengl32_main+set}" = set; then
4290  echo $ECHO_N "(cached) $ECHO_C" >&6
4291else
4292  ac_check_lib_save_LIBS=$LIBS
4293LIBS="-lopengl32  $LIBS"
4294cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h.  */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h.  */
4300
4301
4302int
4303main ()
4304{
4305main ();
4306  ;
4307  return 0;
4308}
4309_ACEOF
4310rm -f conftest.$ac_objext conftest$ac_exeext
4311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4312  (eval $ac_link) 2>conftest.er1
4313  ac_status=$?
4314  grep -v '^ *+' conftest.er1 >conftest.err
4315  rm -f conftest.er1
4316  cat conftest.err >&5
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); } &&
4319         { ac_try='test -z "$ac_c_werror_flag"
4320                         || test ! -s conftest.err'
4321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322  (eval $ac_try) 2>&5
4323  ac_status=$?
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); }; } &&
4326         { ac_try='test -s conftest$ac_exeext'
4327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328  (eval $ac_try) 2>&5
4329  ac_status=$?
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); }; }; then
4332  ac_cv_lib_opengl32_main=yes
4333else
4334  echo "$as_me: failed program was:" >&5
4335sed 's/^/| /' conftest.$ac_ext >&5
4336
4337ac_cv_lib_opengl32_main=no
4338fi
4339rm -f conftest.err conftest.$ac_objext \
4340      conftest$ac_exeext conftest.$ac_ext
4341LIBS=$ac_check_lib_save_LIBS
4342fi
4343echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4344echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4345if test $ac_cv_lib_opengl32_main = yes; then
4346  FOUND_opengl32=yes
4347else
4348  "gl/gl.h"
4349fi
4350
4351    if test "$FOUND_opengl32" = "yes" ; then
4352        LIBS="$LIBS -lopengl32"
4353    else
4354         echo "------------------"
4355         echo "opengl not found."
4356         echo "please install the opengl package which can be found at http://www.opengl.org"
4357         echo "------------------"
4358         exit -1
4359    fi
4360
4361# cheking for GLU-header
4362
4363for ac_header in GL/glu.h
4364do
4365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366if eval "test \"\${$as_ac_Header+set}\" = set"; then
4367  echo "$as_me:$LINENO: checking for $ac_header" >&5
4368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4369if eval "test \"\${$as_ac_Header+set}\" = set"; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371fi
4372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4374else
4375  # Is the header compilable?
4376echo "$as_me:$LINENO: checking $ac_header usability" >&5
4377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4378cat >conftest.$ac_ext <<_ACEOF
4379/* confdefs.h.  */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h.  */
4384$ac_includes_default
4385#include <$ac_header>
4386_ACEOF
4387rm -f conftest.$ac_objext
4388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389  (eval $ac_compile) 2>conftest.er1
4390  ac_status=$?
4391  grep -v '^ *+' conftest.er1 >conftest.err
4392  rm -f conftest.er1
4393  cat conftest.err >&5
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); } &&
4396         { ac_try='test -z "$ac_c_werror_flag"
4397                         || test ! -s conftest.err'
4398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399  (eval $ac_try) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; } &&
4403         { ac_try='test -s conftest.$ac_objext'
4404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405  (eval $ac_try) 2>&5
4406  ac_status=$?
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); }; }; then
4409  ac_header_compiler=yes
4410else
4411  echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414ac_header_compiler=no
4415fi
4416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4418echo "${ECHO_T}$ac_header_compiler" >&6
4419
4420# Is the header present?
4421echo "$as_me:$LINENO: checking $ac_header presence" >&5
4422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4423cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h.  */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h.  */
4429#include <$ac_header>
4430_ACEOF
4431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4432  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433  ac_status=$?
4434  grep -v '^ *+' conftest.er1 >conftest.err
4435  rm -f conftest.er1
4436  cat conftest.err >&5
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); } >/dev/null; then
4439  if test -s conftest.err; then
4440    ac_cpp_err=$ac_c_preproc_warn_flag
4441    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442  else
4443    ac_cpp_err=
4444  fi
4445else
4446  ac_cpp_err=yes
4447fi
4448if test -z "$ac_cpp_err"; then
4449  ac_header_preproc=yes
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454  ac_header_preproc=no
4455fi
4456rm -f conftest.err conftest.$ac_ext
4457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4458echo "${ECHO_T}$ac_header_preproc" >&6
4459
4460# So?  What about this header?
4461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4462  yes:no: )
4463    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4465    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4467    ac_header_preproc=yes
4468    ;;
4469  no:yes:* )
4470    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4472    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4473echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4474    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4476    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4477echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4478    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4480    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4482    (
4483      cat <<\_ASBOX
4484## ---------------------------------------------- ##
4485## Report this to orxonox-dev at mail.datacore.ch ##
4486## ---------------------------------------------- ##
4487_ASBOX
4488    ) |
4489      sed "s/^/$as_me: WARNING:     /" >&2
4490    ;;
4491esac
4492echo "$as_me:$LINENO: checking for $ac_header" >&5
4493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4494if eval "test \"\${$as_ac_Header+set}\" = set"; then
4495  echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497  eval "$as_ac_Header=\$ac_header_preproc"
4498fi
4499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4501
4502fi
4503if test `eval echo '${'$as_ac_Header'}'` = yes; then
4504  cat >>confdefs.h <<_ACEOF
4505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4506_ACEOF
4507
4508else
4509  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4510echo "$as_me: error: cannot find opengl headers" >&2;}
4511   { (exit 1); exit 1; }; }
4512fi
4513
4514done
4515
4516
4517# checking for libGLU
4518    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4519echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4520if test "${ac_cv_lib_glu32_main+set}" = set; then
4521  echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523  ac_check_lib_save_LIBS=$LIBS
4524LIBS="-lglu32  $LIBS"
4525cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h.  */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h.  */
4531
4532
4533int
4534main ()
4535{
4536main ();
4537  ;
4538  return 0;
4539}
4540_ACEOF
4541rm -f conftest.$ac_objext conftest$ac_exeext
4542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543  (eval $ac_link) 2>conftest.er1
4544  ac_status=$?
4545  grep -v '^ *+' conftest.er1 >conftest.err
4546  rm -f conftest.er1
4547  cat conftest.err >&5
4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); } &&
4550         { ac_try='test -z "$ac_c_werror_flag"
4551                         || test ! -s conftest.err'
4552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553  (eval $ac_try) 2>&5
4554  ac_status=$?
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); }; } &&
4557         { ac_try='test -s conftest$ac_exeext'
4558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559  (eval $ac_try) 2>&5
4560  ac_status=$?
4561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562  (exit $ac_status); }; }; then
4563  ac_cv_lib_glu32_main=yes
4564else
4565  echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568ac_cv_lib_glu32_main=no
4569fi
4570rm -f conftest.err conftest.$ac_objext \
4571      conftest$ac_exeext conftest.$ac_ext
4572LIBS=$ac_check_lib_save_LIBS
4573fi
4574echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4575echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4576if test $ac_cv_lib_glu32_main = yes; then
4577  FOUND_glu32=yes
4578fi
4579
4580    if test "$FOUND_glu32" = "yes" ; then
4581        LIBS="$LIBS -lGLU32"
4582    else
4583         echo "------------------"
4584         echo "GLU library not found."
4585         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4586         echo "------------------"
4587         exit -1
4588    fi
4589
4590# checking for mingw32
4591    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4592echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4593if test "${ac_cv_lib_mingw32_main+set}" = set; then
4594  echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596  ac_check_lib_save_LIBS=$LIBS
4597LIBS="-lmingw32  $LIBS"
4598cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h.  */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h.  */
4604
4605
4606int
4607main ()
4608{
4609main ();
4610  ;
4611  return 0;
4612}
4613_ACEOF
4614rm -f conftest.$ac_objext conftest$ac_exeext
4615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4616  (eval $ac_link) 2>conftest.er1
4617  ac_status=$?
4618  grep -v '^ *+' conftest.er1 >conftest.err
4619  rm -f conftest.er1
4620  cat conftest.err >&5
4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622  (exit $ac_status); } &&
4623         { ac_try='test -z "$ac_c_werror_flag"
4624                         || test ! -s conftest.err'
4625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626  (eval $ac_try) 2>&5
4627  ac_status=$?
4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); }; } &&
4630         { ac_try='test -s conftest$ac_exeext'
4631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632  (eval $ac_try) 2>&5
4633  ac_status=$?
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); }; }; then
4636  ac_cv_lib_mingw32_main=yes
4637else
4638  echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641ac_cv_lib_mingw32_main=no
4642fi
4643rm -f conftest.err conftest.$ac_objext \
4644      conftest$ac_exeext conftest.$ac_ext
4645LIBS=$ac_check_lib_save_LIBS
4646fi
4647echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4648echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4649if test $ac_cv_lib_mingw32_main = yes; then
4650  FOUND_mingw32=yes
4651fi
4652
4653    if test $FOUND_mingw32 = "yes"; then
4654        LIBS="$LIBS -lmingw32"
4655    fi
4656# checking for SDL-headers
4657
4658for ac_header in SDL/SDL.h
4659do
4660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4661if eval "test \"\${$as_ac_Header+set}\" = set"; then
4662  echo "$as_me:$LINENO: checking for $ac_header" >&5
4663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4664if eval "test \"\${$as_ac_Header+set}\" = set"; then
4665  echo $ECHO_N "(cached) $ECHO_C" >&6
4666fi
4667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4669else
4670  # Is the header compilable?
4671echo "$as_me:$LINENO: checking $ac_header usability" >&5
4672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4673cat >conftest.$ac_ext <<_ACEOF
4674/* confdefs.h.  */
4675_ACEOF
4676cat confdefs.h >>conftest.$ac_ext
4677cat >>conftest.$ac_ext <<_ACEOF
4678/* end confdefs.h.  */
4679$ac_includes_default
4680#include <$ac_header>
4681_ACEOF
4682rm -f conftest.$ac_objext
4683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684  (eval $ac_compile) 2>conftest.er1
4685  ac_status=$?
4686  grep -v '^ *+' conftest.er1 >conftest.err
4687  rm -f conftest.er1
4688  cat conftest.err >&5
4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690  (exit $ac_status); } &&
4691         { ac_try='test -z "$ac_c_werror_flag"
4692                         || test ! -s conftest.err'
4693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694  (eval $ac_try) 2>&5
4695  ac_status=$?
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); }; } &&
4698         { ac_try='test -s conftest.$ac_objext'
4699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700  (eval $ac_try) 2>&5
4701  ac_status=$?
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); }; }; then
4704  ac_header_compiler=yes
4705else
4706  echo "$as_me: failed program was:" >&5
4707sed 's/^/| /' conftest.$ac_ext >&5
4708
4709ac_header_compiler=no
4710fi
4711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4713echo "${ECHO_T}$ac_header_compiler" >&6
4714
4715# Is the header present?
4716echo "$as_me:$LINENO: checking $ac_header presence" >&5
4717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4718cat >conftest.$ac_ext <<_ACEOF
4719/* confdefs.h.  */
4720_ACEOF
4721cat confdefs.h >>conftest.$ac_ext
4722cat >>conftest.$ac_ext <<_ACEOF
4723/* end confdefs.h.  */
4724#include <$ac_header>
4725_ACEOF
4726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4728  ac_status=$?
4729  grep -v '^ *+' conftest.er1 >conftest.err
4730  rm -f conftest.er1
4731  cat conftest.err >&5
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); } >/dev/null; then
4734  if test -s conftest.err; then
4735    ac_cpp_err=$ac_c_preproc_warn_flag
4736    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4737  else
4738    ac_cpp_err=
4739  fi
4740else
4741  ac_cpp_err=yes
4742fi
4743if test -z "$ac_cpp_err"; then
4744  ac_header_preproc=yes
4745else
4746  echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749  ac_header_preproc=no
4750fi
4751rm -f conftest.err conftest.$ac_ext
4752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4753echo "${ECHO_T}$ac_header_preproc" >&6
4754
4755# So?  What about this header?
4756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4757  yes:no: )
4758    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4760    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4762    ac_header_preproc=yes
4763    ;;
4764  no:yes:* )
4765    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4767    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4768echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4769    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4771    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4772echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4773    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4775    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4777    (
4778      cat <<\_ASBOX
4779## ---------------------------------------------- ##
4780## Report this to orxonox-dev at mail.datacore.ch ##
4781## ---------------------------------------------- ##
4782_ASBOX
4783    ) |
4784      sed "s/^/$as_me: WARNING:     /" >&2
4785    ;;
4786esac
4787echo "$as_me:$LINENO: checking for $ac_header" >&5
4788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4789if eval "test \"\${$as_ac_Header+set}\" = set"; then
4790  echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792  eval "$as_ac_Header=\$ac_header_preproc"
4793fi
4794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796
4797fi
4798if test `eval echo '${'$as_ac_Header'}'` = yes; then
4799  cat >>confdefs.h <<_ACEOF
4800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4801_ACEOF
4802
4803else
4804  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4805echo "$as_me: error: cannot find SDL headers" >&2;}
4806   { (exit 1); exit 1; }; }
4807fi
4808
4809done
4810
4811
4812#checking for libSDL
4813    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4814echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4815if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4816  echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818  ac_check_lib_save_LIBS=$LIBS
4819LIBS="-lsdlmain  $LIBS"
4820cat >conftest.$ac_ext <<_ACEOF
4821/* confdefs.h.  */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h.  */
4826
4827
4828int
4829main ()
4830{
4831main ();
4832  ;
4833  return 0;
4834}
4835_ACEOF
4836rm -f conftest.$ac_objext conftest$ac_exeext
4837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4838  (eval $ac_link) 2>conftest.er1
4839  ac_status=$?
4840  grep -v '^ *+' conftest.er1 >conftest.err
4841  rm -f conftest.er1
4842  cat conftest.err >&5
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); } &&
4845         { ac_try='test -z "$ac_c_werror_flag"
4846                         || test ! -s conftest.err'
4847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848  (eval $ac_try) 2>&5
4849  ac_status=$?
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); }; } &&
4852         { ac_try='test -s conftest$ac_exeext'
4853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854  (eval $ac_try) 2>&5
4855  ac_status=$?
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); }; }; then
4858  ac_cv_lib_sdlmain_main=yes
4859else
4860  echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863ac_cv_lib_sdlmain_main=no
4864fi
4865rm -f conftest.err conftest.$ac_objext \
4866      conftest$ac_exeext conftest.$ac_ext
4867LIBS=$ac_check_lib_save_LIBS
4868fi
4869echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4870echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4871if test $ac_cv_lib_sdlmain_main = yes; then
4872  FOUND_sdlmain=yes
4873fi
4874
4875    if test "$FOUND_sdlmain" = "yes" ; then
4876       LIBS="$LIBS -lsdlmain"
4877    else
4878        echo "------------------"
4879        echo "SDL library not found."
4880        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4881        echo "------------------"
4882        exit 1
4883    fi
4884    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4885echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4886if test "${ac_cv_lib_sdl_main+set}" = set; then
4887  echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889  ac_check_lib_save_LIBS=$LIBS
4890LIBS="-lsdl  $LIBS"
4891cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h.  */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h.  */
4897
4898
4899int
4900main ()
4901{
4902main ();
4903  ;
4904  return 0;
4905}
4906_ACEOF
4907rm -f conftest.$ac_objext conftest$ac_exeext
4908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909  (eval $ac_link) 2>conftest.er1
4910  ac_status=$?
4911  grep -v '^ *+' conftest.er1 >conftest.err
4912  rm -f conftest.er1
4913  cat conftest.err >&5
4914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915  (exit $ac_status); } &&
4916         { ac_try='test -z "$ac_c_werror_flag"
4917                         || test ! -s conftest.err'
4918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919  (eval $ac_try) 2>&5
4920  ac_status=$?
4921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922  (exit $ac_status); }; } &&
4923         { ac_try='test -s conftest$ac_exeext'
4924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925  (eval $ac_try) 2>&5
4926  ac_status=$?
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); }; }; then
4929  ac_cv_lib_sdl_main=yes
4930else
4931  echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934ac_cv_lib_sdl_main=no
4935fi
4936rm -f conftest.err conftest.$ac_objext \
4937      conftest$ac_exeext conftest.$ac_ext
4938LIBS=$ac_check_lib_save_LIBS
4939fi
4940echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4941echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4942if test $ac_cv_lib_sdl_main = yes; then
4943  FOUND_sdl=yes
4944fi
4945
4946    if test "$FOUND_sdl" = "yes" ; then
4947       LIBS="$LIBS -lsdl"
4948    else
4949        echo "------------------"
4950        echo "SDL library not found."
4951        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4952        echo "------------------"
4953        exit -1
4954    fi
4955
4956    ;;
4957
4958### LINUX ###
4959 *-*-linux*)
4960echo "Linux detected"
4961
4962 Linux="yes"
4963
4964CPPFLAGS="-I/usr/X11R6/include"
4965LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
4966# checking gl header
4967
4968for ac_header in GL/gl.h
4969do
4970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4971if eval "test \"\${$as_ac_Header+set}\" = set"; then
4972  echo "$as_me:$LINENO: checking for $ac_header" >&5
4973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4974if eval "test \"\${$as_ac_Header+set}\" = set"; then
4975  echo $ECHO_N "(cached) $ECHO_C" >&6
4976fi
4977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4979else
4980  # Is the header compilable?
4981echo "$as_me:$LINENO: checking $ac_header usability" >&5
4982echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4983cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h.  */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h.  */
4989$ac_includes_default
4990#include <$ac_header>
4991_ACEOF
4992rm -f conftest.$ac_objext
4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994  (eval $ac_compile) 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } &&
5001         { ac_try='test -z "$ac_c_werror_flag"
5002                         || test ! -s conftest.err'
5003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004  (eval $ac_try) 2>&5
5005  ac_status=$?
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); }; } &&
5008         { ac_try='test -s conftest.$ac_objext'
5009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010  (eval $ac_try) 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); }; }; then
5014  ac_header_compiler=yes
5015else
5016  echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019ac_header_compiler=no
5020fi
5021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5023echo "${ECHO_T}$ac_header_compiler" >&6
5024
5025# Is the header present?
5026echo "$as_me:$LINENO: checking $ac_header presence" >&5
5027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5028cat >conftest.$ac_ext <<_ACEOF
5029/* confdefs.h.  */
5030_ACEOF
5031cat confdefs.h >>conftest.$ac_ext
5032cat >>conftest.$ac_ext <<_ACEOF
5033/* end confdefs.h.  */
5034#include <$ac_header>
5035_ACEOF
5036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5037  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5038  ac_status=$?
5039  grep -v '^ *+' conftest.er1 >conftest.err
5040  rm -f conftest.er1
5041  cat conftest.err >&5
5042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043  (exit $ac_status); } >/dev/null; then
5044  if test -s conftest.err; then
5045    ac_cpp_err=$ac_c_preproc_warn_flag
5046    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5047  else
5048    ac_cpp_err=
5049  fi
5050else
5051  ac_cpp_err=yes
5052fi
5053if test -z "$ac_cpp_err"; then
5054  ac_header_preproc=yes
5055else
5056  echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059  ac_header_preproc=no
5060fi
5061rm -f conftest.err conftest.$ac_ext
5062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5063echo "${ECHO_T}$ac_header_preproc" >&6
5064
5065# So?  What about this header?
5066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5067  yes:no: )
5068    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5070    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5071echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5072    ac_header_preproc=yes
5073    ;;
5074  no:yes:* )
5075    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5076echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5077    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5078echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5079    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5080echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5081    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5082echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5083    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5085    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5086echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5087    (
5088      cat <<\_ASBOX
5089## ---------------------------------------------- ##
5090## Report this to orxonox-dev at mail.datacore.ch ##
5091## ---------------------------------------------- ##
5092_ASBOX
5093    ) |
5094      sed "s/^/$as_me: WARNING:     /" >&2
5095    ;;
5096esac
5097echo "$as_me:$LINENO: checking for $ac_header" >&5
5098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5099if eval "test \"\${$as_ac_Header+set}\" = set"; then
5100  echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102  eval "$as_ac_Header=\$ac_header_preproc"
5103fi
5104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5106
5107fi
5108if test `eval echo '${'$as_ac_Header'}'` = yes; then
5109  cat >>confdefs.h <<_ACEOF
5110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111_ACEOF
5112
5113else
5114  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5115echo "$as_me: error: cannot find opengl headers" >&2;}
5116   { (exit 1); exit 1; }; }
5117fi
5118
5119done
5120
5121
5122#  checking for Unix GL
5123   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5124echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5125if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5126  echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128  ac_check_lib_save_LIBS=$LIBS
5129LIBS="-lGL  $LIBS"
5130cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h.  */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h.  */
5136
5137/* Override any gcc2 internal prototype to avoid an error.  */
5138#ifdef __cplusplus
5139extern "C"
5140#endif
5141/* We use char because int might match the return type of a gcc2
5142   builtin and then its argument prototype would still apply.  */
5143char glLoadIdentity ();
5144int
5145main ()
5146{
5147glLoadIdentity ();
5148  ;
5149  return 0;
5150}
5151_ACEOF
5152rm -f conftest.$ac_objext conftest$ac_exeext
5153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154  (eval $ac_link) 2>conftest.er1
5155  ac_status=$?
5156  grep -v '^ *+' conftest.er1 >conftest.err
5157  rm -f conftest.er1
5158  cat conftest.err >&5
5159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160  (exit $ac_status); } &&
5161         { ac_try='test -z "$ac_c_werror_flag"
5162                         || test ! -s conftest.err'
5163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164  (eval $ac_try) 2>&5
5165  ac_status=$?
5166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167  (exit $ac_status); }; } &&
5168         { ac_try='test -s conftest$ac_exeext'
5169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170  (eval $ac_try) 2>&5
5171  ac_status=$?
5172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173  (exit $ac_status); }; }; then
5174  ac_cv_lib_GL_glLoadIdentity=yes
5175else
5176  echo "$as_me: failed program was:" >&5
5177sed 's/^/| /' conftest.$ac_ext >&5
5178
5179ac_cv_lib_GL_glLoadIdentity=no
5180fi
5181rm -f conftest.err conftest.$ac_objext \
5182      conftest$ac_exeext conftest.$ac_ext
5183LIBS=$ac_check_lib_save_LIBS
5184fi
5185echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5186echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5187if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5188  FOUND_GL=yes
5189fi
5190
5191   if test "$FOUND_GL" = "yes" ; then
5192     LIBS="$LIBS -lGL"
5193   else
5194         echo "------------------"
5195         echo "opengl not found."
5196         echo "please install the opengl package which can be found at http://www.opengl.org"
5197         echo "------------------"
5198         exit -1
5199   fi
5200
5201# cheking for GLU-header
5202
5203for ac_header in GL/glu.h
5204do
5205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206if eval "test \"\${$as_ac_Header+set}\" = set"; then
5207  echo "$as_me:$LINENO: checking for $ac_header" >&5
5208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5209if eval "test \"\${$as_ac_Header+set}\" = set"; then
5210  echo $ECHO_N "(cached) $ECHO_C" >&6
5211fi
5212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5214else
5215  # Is the header compilable?
5216echo "$as_me:$LINENO: checking $ac_header usability" >&5
5217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5218cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h.  */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h.  */
5224$ac_includes_default
5225#include <$ac_header>
5226_ACEOF
5227rm -f conftest.$ac_objext
5228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229  (eval $ac_compile) 2>conftest.er1
5230  ac_status=$?
5231  grep -v '^ *+' conftest.er1 >conftest.err
5232  rm -f conftest.er1
5233  cat conftest.err >&5
5234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235  (exit $ac_status); } &&
5236         { ac_try='test -z "$ac_c_werror_flag"
5237                         || test ! -s conftest.err'
5238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239  (eval $ac_try) 2>&5
5240  ac_status=$?
5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); }; } &&
5243         { ac_try='test -s conftest.$ac_objext'
5244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245  (eval $ac_try) 2>&5
5246  ac_status=$?
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); }; }; then
5249  ac_header_compiler=yes
5250else
5251  echo "$as_me: failed program was:" >&5
5252sed 's/^/| /' conftest.$ac_ext >&5
5253
5254ac_header_compiler=no
5255fi
5256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5258echo "${ECHO_T}$ac_header_compiler" >&6
5259
5260# Is the header present?
5261echo "$as_me:$LINENO: checking $ac_header presence" >&5
5262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5263cat >conftest.$ac_ext <<_ACEOF
5264/* confdefs.h.  */
5265_ACEOF
5266cat confdefs.h >>conftest.$ac_ext
5267cat >>conftest.$ac_ext <<_ACEOF
5268/* end confdefs.h.  */
5269#include <$ac_header>
5270_ACEOF
5271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5272  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5273  ac_status=$?
5274  grep -v '^ *+' conftest.er1 >conftest.err
5275  rm -f conftest.er1
5276  cat conftest.err >&5
5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278  (exit $ac_status); } >/dev/null; then
5279  if test -s conftest.err; then
5280    ac_cpp_err=$ac_c_preproc_warn_flag
5281    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5282  else
5283    ac_cpp_err=
5284  fi
5285else
5286  ac_cpp_err=yes
5287fi
5288if test -z "$ac_cpp_err"; then
5289  ac_header_preproc=yes
5290else
5291  echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
5294  ac_header_preproc=no
5295fi
5296rm -f conftest.err conftest.$ac_ext
5297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5298echo "${ECHO_T}$ac_header_preproc" >&6
5299
5300# So?  What about this header?
5301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5302  yes:no: )
5303    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5305    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5307    ac_header_preproc=yes
5308    ;;
5309  no:yes:* )
5310    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5312    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5313echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5314    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5316    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5317echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5318    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5320    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5322    (
5323      cat <<\_ASBOX
5324## ---------------------------------------------- ##
5325## Report this to orxonox-dev at mail.datacore.ch ##
5326## ---------------------------------------------- ##
5327_ASBOX
5328    ) |
5329      sed "s/^/$as_me: WARNING:     /" >&2
5330    ;;
5331esac
5332echo "$as_me:$LINENO: checking for $ac_header" >&5
5333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5334if eval "test \"\${$as_ac_Header+set}\" = set"; then
5335  echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337  eval "$as_ac_Header=\$ac_header_preproc"
5338fi
5339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5341
5342fi
5343if test `eval echo '${'$as_ac_Header'}'` = yes; then
5344  cat >>confdefs.h <<_ACEOF
5345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5346_ACEOF
5347
5348else
5349  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5350echo "$as_me: error: cannot find opengl headers" >&2;}
5351   { (exit 1); exit 1; }; }
5352fi
5353
5354done
5355
5356
5357    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5358echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5359if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5360  echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362  ac_check_lib_save_LIBS=$LIBS
5363LIBS="-lGLU  $LIBS"
5364cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h.  */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h.  */
5370
5371/* Override any gcc2 internal prototype to avoid an error.  */
5372#ifdef __cplusplus
5373extern "C"
5374#endif
5375/* We use char because int might match the return type of a gcc2
5376   builtin and then its argument prototype would still apply.  */
5377char gluProject ();
5378int
5379main ()
5380{
5381gluProject ();
5382  ;
5383  return 0;
5384}
5385_ACEOF
5386rm -f conftest.$ac_objext conftest$ac_exeext
5387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388  (eval $ac_link) 2>conftest.er1
5389  ac_status=$?
5390  grep -v '^ *+' conftest.er1 >conftest.err
5391  rm -f conftest.er1
5392  cat conftest.err >&5
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } &&
5395         { ac_try='test -z "$ac_c_werror_flag"
5396                         || test ! -s conftest.err'
5397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398  (eval $ac_try) 2>&5
5399  ac_status=$?
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); }; } &&
5402         { ac_try='test -s conftest$ac_exeext'
5403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404  (eval $ac_try) 2>&5
5405  ac_status=$?
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); }; }; then
5408  ac_cv_lib_GLU_gluProject=yes
5409else
5410  echo "$as_me: failed program was:" >&5
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
5413ac_cv_lib_GLU_gluProject=no
5414fi
5415rm -f conftest.err conftest.$ac_objext \
5416      conftest$ac_exeext conftest.$ac_ext
5417LIBS=$ac_check_lib_save_LIBS
5418fi
5419echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5420echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5421if test $ac_cv_lib_GLU_gluProject = yes; then
5422  FOUND_GLU=yes
5423fi
5424
5425    if test "$FOUND_GLU" = "yes" ; then
5426      LIBS="$LIBS -lGLU"
5427    else
5428         echo "------------------"
5429         echo "GLU library not found."
5430         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5431         echo "------------------"
5432         exit -1
5433    fi
5434
5435# checking for SDL-headers
5436
5437for ac_header in SDL/SDL.h
5438do
5439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5440if eval "test \"\${$as_ac_Header+set}\" = set"; then
5441  echo "$as_me:$LINENO: checking for $ac_header" >&5
5442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5443if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444  echo $ECHO_N "(cached) $ECHO_C" >&6
5445fi
5446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5448else
5449  # Is the header compilable?
5450echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5452cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h.  */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h.  */
5458$ac_includes_default
5459#include <$ac_header>
5460_ACEOF
5461rm -f conftest.$ac_objext
5462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463  (eval $ac_compile) 2>conftest.er1
5464  ac_status=$?
5465  grep -v '^ *+' conftest.er1 >conftest.err
5466  rm -f conftest.er1
5467  cat conftest.err >&5
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); } &&
5470         { ac_try='test -z "$ac_c_werror_flag"
5471                         || test ! -s conftest.err'
5472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473  (eval $ac_try) 2>&5
5474  ac_status=$?
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); }; } &&
5477         { ac_try='test -s conftest.$ac_objext'
5478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479  (eval $ac_try) 2>&5
5480  ac_status=$?
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); }; }; then
5483  ac_header_compiler=yes
5484else
5485  echo "$as_me: failed program was:" >&5
5486sed 's/^/| /' conftest.$ac_ext >&5
5487
5488ac_header_compiler=no
5489fi
5490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5492echo "${ECHO_T}$ac_header_compiler" >&6
5493
5494# Is the header present?
5495echo "$as_me:$LINENO: checking $ac_header presence" >&5
5496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5497cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h.  */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h.  */
5503#include <$ac_header>
5504_ACEOF
5505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5507  ac_status=$?
5508  grep -v '^ *+' conftest.er1 >conftest.err
5509  rm -f conftest.er1
5510  cat conftest.err >&5
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); } >/dev/null; then
5513  if test -s conftest.err; then
5514    ac_cpp_err=$ac_c_preproc_warn_flag
5515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5516  else
5517    ac_cpp_err=
5518  fi
5519else
5520  ac_cpp_err=yes
5521fi
5522if test -z "$ac_cpp_err"; then
5523  ac_header_preproc=yes
5524else
5525  echo "$as_me: failed program was:" >&5
5526sed 's/^/| /' conftest.$ac_ext >&5
5527
5528  ac_header_preproc=no
5529fi
5530rm -f conftest.err conftest.$ac_ext
5531echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5532echo "${ECHO_T}$ac_header_preproc" >&6
5533
5534# So?  What about this header?
5535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5536  yes:no: )
5537    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5539    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5541    ac_header_preproc=yes
5542    ;;
5543  no:yes:* )
5544    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5546    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5547echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5548    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5550    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5551echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5552    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5554    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5556    (
5557      cat <<\_ASBOX
5558## ---------------------------------------------- ##
5559## Report this to orxonox-dev at mail.datacore.ch ##
5560## ---------------------------------------------- ##
5561_ASBOX
5562    ) |
5563      sed "s/^/$as_me: WARNING:     /" >&2
5564    ;;
5565esac
5566echo "$as_me:$LINENO: checking for $ac_header" >&5
5567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5568if eval "test \"\${$as_ac_Header+set}\" = set"; then
5569  echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571  eval "$as_ac_Header=\$ac_header_preproc"
5572fi
5573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5575
5576fi
5577if test `eval echo '${'$as_ac_Header'}'` = yes; then
5578  cat >>confdefs.h <<_ACEOF
5579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5580_ACEOF
5581
5582else
5583  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5584echo "$as_me: error: cannot find SDL headers" >&2;}
5585   { (exit 1); exit 1; }; }
5586fi
5587
5588done
5589
5590
5591# checking for SDL-lib
5592    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5593echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5594if test "${ac_cv_lib_SDL_main+set}" = set; then
5595  echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597  ac_check_lib_save_LIBS=$LIBS
5598LIBS="-lSDL  $LIBS"
5599cat >conftest.$ac_ext <<_ACEOF
5600/* confdefs.h.  */
5601_ACEOF
5602cat confdefs.h >>conftest.$ac_ext
5603cat >>conftest.$ac_ext <<_ACEOF
5604/* end confdefs.h.  */
5605
5606
5607int
5608main ()
5609{
5610main ();
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615rm -f conftest.$ac_objext conftest$ac_exeext
5616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617  (eval $ac_link) 2>conftest.er1
5618  ac_status=$?
5619  grep -v '^ *+' conftest.er1 >conftest.err
5620  rm -f conftest.er1
5621  cat conftest.err >&5
5622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623  (exit $ac_status); } &&
5624         { ac_try='test -z "$ac_c_werror_flag"
5625                         || test ! -s conftest.err'
5626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627  (eval $ac_try) 2>&5
5628  ac_status=$?
5629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630  (exit $ac_status); }; } &&
5631         { ac_try='test -s conftest$ac_exeext'
5632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633  (eval $ac_try) 2>&5
5634  ac_status=$?
5635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); }; }; then
5637  ac_cv_lib_SDL_main=yes
5638else
5639  echo "$as_me: failed program was:" >&5
5640sed 's/^/| /' conftest.$ac_ext >&5
5641
5642ac_cv_lib_SDL_main=no
5643fi
5644rm -f conftest.err conftest.$ac_objext \
5645      conftest$ac_exeext conftest.$ac_ext
5646LIBS=$ac_check_lib_save_LIBS
5647fi
5648echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5649echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5650if test $ac_cv_lib_SDL_main = yes; then
5651  FOUND_SDL=yes
5652fi
5653
5654     if test "$FOUND_SDL" = "yes" ; then
5655       LIBS="$LIBS -lSDL"
5656     else
5657        echo "------------------"
5658        echo "SDL library not found."
5659        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5660        echo "------------------"
5661        exit -1
5662     fi
5663
5664
5665## checking for SDL
5666#    SDL_VERSION=1.2.7
5667#    AM_PATH_SDL($SDL_VERSION,
5668#      :,
5669#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5670#      )
5671#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5672#    LIBS="$LIBS $SDL_LIBS"
5673    ;;
5674
5675### OS X ###
5676 *darwin*)
5677echo "OS X detected"
5678
5679 osX="yes"
5680
5681 CPPFLAGS="-I/sw/include $CPPFLAGS"
5682# checking gl header
5683
5684for ac_header in OpenGL/gl.h
5685do
5686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5687if eval "test \"\${$as_ac_Header+set}\" = set"; then
5688  echo "$as_me:$LINENO: checking for $ac_header" >&5
5689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5690if eval "test \"\${$as_ac_Header+set}\" = set"; then
5691  echo $ECHO_N "(cached) $ECHO_C" >&6
5692fi
5693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5695else
5696  # Is the header compilable?
5697echo "$as_me:$LINENO: checking $ac_header usability" >&5
5698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5699cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h.  */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h.  */
5705$ac_includes_default
5706#include <$ac_header>
5707_ACEOF
5708rm -f conftest.$ac_objext
5709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710  (eval $ac_compile) 2>conftest.er1
5711  ac_status=$?
5712  grep -v '^ *+' conftest.er1 >conftest.err
5713  rm -f conftest.er1
5714  cat conftest.err >&5
5715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716  (exit $ac_status); } &&
5717         { ac_try='test -z "$ac_c_werror_flag"
5718                         || test ! -s conftest.err'
5719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720  (eval $ac_try) 2>&5
5721  ac_status=$?
5722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723  (exit $ac_status); }; } &&
5724         { ac_try='test -s conftest.$ac_objext'
5725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726  (eval $ac_try) 2>&5
5727  ac_status=$?
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); }; }; then
5730  ac_header_compiler=yes
5731else
5732  echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735ac_header_compiler=no
5736fi
5737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5739echo "${ECHO_T}$ac_header_compiler" >&6
5740
5741# Is the header present?
5742echo "$as_me:$LINENO: checking $ac_header presence" >&5
5743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5744cat >conftest.$ac_ext <<_ACEOF
5745/* confdefs.h.  */
5746_ACEOF
5747cat confdefs.h >>conftest.$ac_ext
5748cat >>conftest.$ac_ext <<_ACEOF
5749/* end confdefs.h.  */
5750#include <$ac_header>
5751_ACEOF
5752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5753  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5754  ac_status=$?
5755  grep -v '^ *+' conftest.er1 >conftest.err
5756  rm -f conftest.er1
5757  cat conftest.err >&5
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); } >/dev/null; then
5760  if test -s conftest.err; then
5761    ac_cpp_err=$ac_c_preproc_warn_flag
5762    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5763  else
5764    ac_cpp_err=
5765  fi
5766else
5767  ac_cpp_err=yes
5768fi
5769if test -z "$ac_cpp_err"; then
5770  ac_header_preproc=yes
5771else
5772  echo "$as_me: failed program was:" >&5
5773sed 's/^/| /' conftest.$ac_ext >&5
5774
5775  ac_header_preproc=no
5776fi
5777rm -f conftest.err conftest.$ac_ext
5778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5779echo "${ECHO_T}$ac_header_preproc" >&6
5780
5781# So?  What about this header?
5782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5783  yes:no: )
5784    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5786    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5788    ac_header_preproc=yes
5789    ;;
5790  no:yes:* )
5791    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5793    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5794echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5795    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5797    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5798echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5799    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5801    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5803    (
5804      cat <<\_ASBOX
5805## ---------------------------------------------- ##
5806## Report this to orxonox-dev at mail.datacore.ch ##
5807## ---------------------------------------------- ##
5808_ASBOX
5809    ) |
5810      sed "s/^/$as_me: WARNING:     /" >&2
5811    ;;
5812esac
5813echo "$as_me:$LINENO: checking for $ac_header" >&5
5814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5815if eval "test \"\${$as_ac_Header+set}\" = set"; then
5816  echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818  eval "$as_ac_Header=\$ac_header_preproc"
5819fi
5820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5822
5823fi
5824if test `eval echo '${'$as_ac_Header'}'` = yes; then
5825  cat >>confdefs.h <<_ACEOF
5826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5827_ACEOF
5828
5829else
5830  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5831echo "$as_me: error: cannot find opengl headers" >&2;}
5832   { (exit 1); exit 1; }; }
5833fi
5834
5835done
5836
5837# cheking for GLU-header
5838
5839for ac_header in OpenGL/glu.h
5840do
5841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5842if eval "test \"\${$as_ac_Header+set}\" = set"; then
5843  echo "$as_me:$LINENO: checking for $ac_header" >&5
5844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5845if eval "test \"\${$as_ac_Header+set}\" = set"; then
5846  echo $ECHO_N "(cached) $ECHO_C" >&6
5847fi
5848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5850else
5851  # Is the header compilable?
5852echo "$as_me:$LINENO: checking $ac_header usability" >&5
5853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5854cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h.  */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h.  */
5860$ac_includes_default
5861#include <$ac_header>
5862_ACEOF
5863rm -f conftest.$ac_objext
5864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865  (eval $ac_compile) 2>conftest.er1
5866  ac_status=$?
5867  grep -v '^ *+' conftest.er1 >conftest.err
5868  rm -f conftest.er1
5869  cat conftest.err >&5
5870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871  (exit $ac_status); } &&
5872         { ac_try='test -z "$ac_c_werror_flag"
5873                         || test ! -s conftest.err'
5874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875  (eval $ac_try) 2>&5
5876  ac_status=$?
5877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878  (exit $ac_status); }; } &&
5879         { ac_try='test -s conftest.$ac_objext'
5880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881  (eval $ac_try) 2>&5
5882  ac_status=$?
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); }; }; then
5885  ac_header_compiler=yes
5886else
5887  echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
5889
5890ac_header_compiler=no
5891fi
5892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5894echo "${ECHO_T}$ac_header_compiler" >&6
5895
5896# Is the header present?
5897echo "$as_me:$LINENO: checking $ac_header presence" >&5
5898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5899cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h.  */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h.  */
5905#include <$ac_header>
5906_ACEOF
5907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5909  ac_status=$?
5910  grep -v '^ *+' conftest.er1 >conftest.err
5911  rm -f conftest.er1
5912  cat conftest.err >&5
5913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914  (exit $ac_status); } >/dev/null; then
5915  if test -s conftest.err; then
5916    ac_cpp_err=$ac_c_preproc_warn_flag
5917    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5918  else
5919    ac_cpp_err=
5920  fi
5921else
5922  ac_cpp_err=yes
5923fi
5924if test -z "$ac_cpp_err"; then
5925  ac_header_preproc=yes
5926else
5927  echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930  ac_header_preproc=no
5931fi
5932rm -f conftest.err conftest.$ac_ext
5933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5934echo "${ECHO_T}$ac_header_preproc" >&6
5935
5936# So?  What about this header?
5937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5938  yes:no: )
5939    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5941    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5943    ac_header_preproc=yes
5944    ;;
5945  no:yes:* )
5946    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5948    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5949echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5950    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5952    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5953echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5954    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5956    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5958    (
5959      cat <<\_ASBOX
5960## ---------------------------------------------- ##
5961## Report this to orxonox-dev at mail.datacore.ch ##
5962## ---------------------------------------------- ##
5963_ASBOX
5964    ) |
5965      sed "s/^/$as_me: WARNING:     /" >&2
5966    ;;
5967esac
5968echo "$as_me:$LINENO: checking for $ac_header" >&5
5969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5970if eval "test \"\${$as_ac_Header+set}\" = set"; then
5971  echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973  eval "$as_ac_Header=\$ac_header_preproc"
5974fi
5975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5977
5978fi
5979if test `eval echo '${'$as_ac_Header'}'` = yes; then
5980  cat >>confdefs.h <<_ACEOF
5981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5982_ACEOF
5983
5984else
5985  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5986echo "$as_me: error: cannot find opengl headers" >&2;}
5987   { (exit 1); exit 1; }; }
5988fi
5989
5990done
5991
5992
5993   LIBS="$LIBS -framework OpenGL"
5994
5995# checking for SDL-headers
5996#    AC_CHECK_HEADERS(SDL/SDL.h ,,
5997#      [AC_MSG_ERROR([cannot find SDL headers]) ])
5998
5999## checking for SDL
6000#    SDL_VERSION=1.2.7
6001#    AM_PATH_SDL($SDL_VERSION,
6002#      :,
6003#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6004#      )
6005
6006       SDL_CFLAGS=`sdl-config --cflags`
6007       SDL_LIBS=`sdl-config --libs`
6008       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6009       LIBS="$LIBS $SDL_LIBS"
6010
6011    ;;
6012
6013  *)
6014    ;;
6015esac
6016
6017
6018
6019## check for SDL_Image
6020if test "$def_sdl_image" = "yes"; then
6021# checking for SDL_image-headers
6022
6023for ac_header in SDL/SDL_image.h
6024do
6025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027  echo "$as_me:$LINENO: checking for $ac_header" >&5
6028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6029if eval "test \"\${$as_ac_Header+set}\" = set"; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031fi
6032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6034else
6035  # Is the header compilable?
6036echo "$as_me:$LINENO: checking $ac_header usability" >&5
6037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6038cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h.  */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h.  */
6044$ac_includes_default
6045#include <$ac_header>
6046_ACEOF
6047rm -f conftest.$ac_objext
6048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049  (eval $ac_compile) 2>conftest.er1
6050  ac_status=$?
6051  grep -v '^ *+' conftest.er1 >conftest.err
6052  rm -f conftest.er1
6053  cat conftest.err >&5
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } &&
6056         { ac_try='test -z "$ac_c_werror_flag"
6057                         || test ! -s conftest.err'
6058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059  (eval $ac_try) 2>&5
6060  ac_status=$?
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); }; } &&
6063         { ac_try='test -s conftest.$ac_objext'
6064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065  (eval $ac_try) 2>&5
6066  ac_status=$?
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); }; }; then
6069  ac_header_compiler=yes
6070else
6071  echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074ac_header_compiler=no
6075fi
6076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078echo "${ECHO_T}$ac_header_compiler" >&6
6079
6080# Is the header present?
6081echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6083cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h.  */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h.  */
6089#include <$ac_header>
6090_ACEOF
6091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6092  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6093  ac_status=$?
6094  grep -v '^ *+' conftest.er1 >conftest.err
6095  rm -f conftest.er1
6096  cat conftest.err >&5
6097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098  (exit $ac_status); } >/dev/null; then
6099  if test -s conftest.err; then
6100    ac_cpp_err=$ac_c_preproc_warn_flag
6101    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6102  else
6103    ac_cpp_err=
6104  fi
6105else
6106  ac_cpp_err=yes
6107fi
6108if test -z "$ac_cpp_err"; then
6109  ac_header_preproc=yes
6110else
6111  echo "$as_me: failed program was:" >&5
6112sed 's/^/| /' conftest.$ac_ext >&5
6113
6114  ac_header_preproc=no
6115fi
6116rm -f conftest.err conftest.$ac_ext
6117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6118echo "${ECHO_T}$ac_header_preproc" >&6
6119
6120# So?  What about this header?
6121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6122  yes:no: )
6123    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6125    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6127    ac_header_preproc=yes
6128    ;;
6129  no:yes:* )
6130    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6132    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6133echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6134    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6136    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6137echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6138    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6140    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6142    (
6143      cat <<\_ASBOX
6144## ---------------------------------------------- ##
6145## Report this to orxonox-dev at mail.datacore.ch ##
6146## ---------------------------------------------- ##
6147_ASBOX
6148    ) |
6149      sed "s/^/$as_me: WARNING:     /" >&2
6150    ;;
6151esac
6152echo "$as_me:$LINENO: checking for $ac_header" >&5
6153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6154if eval "test \"\${$as_ac_Header+set}\" = set"; then
6155  echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157  eval "$as_ac_Header=\$ac_header_preproc"
6158fi
6159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6161
6162fi
6163if test `eval echo '${'$as_ac_Header'}'` = yes; then
6164  cat >>confdefs.h <<_ACEOF
6165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6166_ACEOF
6167
6168else
6169  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
6170fi
6171
6172done
6173
6174fi
6175if test "$def_sdl_image" = "yes"; then
6176# checking for SDL_image-lib
6177  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6178echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6179if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6180  echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
6182  ac_check_lib_save_LIBS=$LIBS
6183LIBS="-lSDL_image  $LIBS"
6184cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h.  */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h.  */
6190
6191
6192int
6193main ()
6194{
6195main ();
6196  ;
6197  return 0;
6198}
6199_ACEOF
6200rm -f conftest.$ac_objext conftest$ac_exeext
6201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6202  (eval $ac_link) 2>conftest.er1
6203  ac_status=$?
6204  grep -v '^ *+' conftest.er1 >conftest.err
6205  rm -f conftest.er1
6206  cat conftest.err >&5
6207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208  (exit $ac_status); } &&
6209         { ac_try='test -z "$ac_c_werror_flag"
6210                         || test ! -s conftest.err'
6211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212  (eval $ac_try) 2>&5
6213  ac_status=$?
6214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215  (exit $ac_status); }; } &&
6216         { ac_try='test -s conftest$ac_exeext'
6217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218  (eval $ac_try) 2>&5
6219  ac_status=$?
6220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221  (exit $ac_status); }; }; then
6222  ac_cv_lib_SDL_image_main=yes
6223else
6224  echo "$as_me: failed program was:" >&5
6225sed 's/^/| /' conftest.$ac_ext >&5
6226
6227ac_cv_lib_SDL_image_main=no
6228fi
6229rm -f conftest.err conftest.$ac_objext \
6230      conftest$ac_exeext conftest.$ac_ext
6231LIBS=$ac_check_lib_save_LIBS
6232fi
6233echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6234echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6235if test $ac_cv_lib_SDL_image_main = yes; then
6236  FOUND_SDL_image=yes
6237fi
6238
6239     if test "$FOUND_SDL_image" = "yes" ; then
6240       LIBS="$LIBS -lSDL_image"
6241     else
6242        echo "------------------"
6243        echo "SDL_image library not found."
6244        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6245        echo "------------------"
6246        exit -1
6247     fi
6248fi
6249
6250
6251if test "$def_sdl_image" = "no"; then
6252 ## checking for libjpeg
6253
6254for ac_header in jpeglib.h
6255do
6256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6257if eval "test \"\${$as_ac_Header+set}\" = set"; then
6258  echo "$as_me:$LINENO: checking for $ac_header" >&5
6259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6260if eval "test \"\${$as_ac_Header+set}\" = set"; then
6261  echo $ECHO_N "(cached) $ECHO_C" >&6
6262fi
6263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6265else
6266  # Is the header compilable?
6267echo "$as_me:$LINENO: checking $ac_header usability" >&5
6268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6269cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h.  */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h.  */
6275$ac_includes_default
6276#include <$ac_header>
6277_ACEOF
6278rm -f conftest.$ac_objext
6279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280  (eval $ac_compile) 2>conftest.er1
6281  ac_status=$?
6282  grep -v '^ *+' conftest.er1 >conftest.err
6283  rm -f conftest.er1
6284  cat conftest.err >&5
6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); } &&
6287         { ac_try='test -z "$ac_c_werror_flag"
6288                         || test ! -s conftest.err'
6289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290  (eval $ac_try) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); }; } &&
6294         { ac_try='test -s conftest.$ac_objext'
6295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296  (eval $ac_try) 2>&5
6297  ac_status=$?
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); }; }; then
6300  ac_header_compiler=yes
6301else
6302  echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305ac_header_compiler=no
6306fi
6307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6309echo "${ECHO_T}$ac_header_compiler" >&6
6310
6311# Is the header present?
6312echo "$as_me:$LINENO: checking $ac_header presence" >&5
6313echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6314cat >conftest.$ac_ext <<_ACEOF
6315/* confdefs.h.  */
6316_ACEOF
6317cat confdefs.h >>conftest.$ac_ext
6318cat >>conftest.$ac_ext <<_ACEOF
6319/* end confdefs.h.  */
6320#include <$ac_header>
6321_ACEOF
6322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6324  ac_status=$?
6325  grep -v '^ *+' conftest.er1 >conftest.err
6326  rm -f conftest.er1
6327  cat conftest.err >&5
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); } >/dev/null; then
6330  if test -s conftest.err; then
6331    ac_cpp_err=$ac_c_preproc_warn_flag
6332    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6333  else
6334    ac_cpp_err=
6335  fi
6336else
6337  ac_cpp_err=yes
6338fi
6339if test -z "$ac_cpp_err"; then
6340  ac_header_preproc=yes
6341else
6342  echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345  ac_header_preproc=no
6346fi
6347rm -f conftest.err conftest.$ac_ext
6348echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6349echo "${ECHO_T}$ac_header_preproc" >&6
6350
6351# So?  What about this header?
6352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6353  yes:no: )
6354    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6356    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6358    ac_header_preproc=yes
6359    ;;
6360  no:yes:* )
6361    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6363    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6364echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6365    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6367    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6368echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6369    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6371    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6373    (
6374      cat <<\_ASBOX
6375## ---------------------------------------------- ##
6376## Report this to orxonox-dev at mail.datacore.ch ##
6377## ---------------------------------------------- ##
6378_ASBOX
6379    ) |
6380      sed "s/^/$as_me: WARNING:     /" >&2
6381    ;;
6382esac
6383echo "$as_me:$LINENO: checking for $ac_header" >&5
6384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6385if eval "test \"\${$as_ac_Header+set}\" = set"; then
6386  echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388  eval "$as_ac_Header=\$ac_header_preproc"
6389fi
6390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6392
6393fi
6394if test `eval echo '${'$as_ac_Header'}'` = yes; then
6395  cat >>confdefs.h <<_ACEOF
6396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6397_ACEOF
6398 jpegHeader="yes"
6399else
6400  jpegHeader="no"
6401fi
6402
6403done
6404
6405 if test $jpegHeader = "no"; then
6406        echo " not including jpeg."
6407 else
6408  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
6409echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
6410if test "${ac_cv_lib_jpeg_main+set}" = set; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  ac_check_lib_save_LIBS=$LIBS
6414LIBS="-ljpeg  $LIBS"
6415cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h.  */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h.  */
6421
6422
6423int
6424main ()
6425{
6426main ();
6427  ;
6428  return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext conftest$ac_exeext
6432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433  (eval $ac_link) 2>conftest.er1
6434  ac_status=$?
6435  grep -v '^ *+' conftest.er1 >conftest.err
6436  rm -f conftest.er1
6437  cat conftest.err >&5
6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439  (exit $ac_status); } &&
6440         { ac_try='test -z "$ac_c_werror_flag"
6441                         || test ! -s conftest.err'
6442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443  (eval $ac_try) 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); }; } &&
6447         { ac_try='test -s conftest$ac_exeext'
6448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449  (eval $ac_try) 2>&5
6450  ac_status=$?
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); }; }; then
6453  ac_cv_lib_jpeg_main=yes
6454else
6455  echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
6458ac_cv_lib_jpeg_main=no
6459fi
6460rm -f conftest.err conftest.$ac_objext \
6461      conftest$ac_exeext conftest.$ac_ext
6462LIBS=$ac_check_lib_save_LIBS
6463fi
6464echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
6465echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
6466if test $ac_cv_lib_jpeg_main = yes; then
6467  FOUND_jpeg=yes
6468fi
6469
6470    if test "$FOUND_jpeg" = "yes" ; then
6471      LIBS="$LIBS -ljpeg"
6472    else
6473         echo "------------------"
6474         echo "jpeg library not found."
6475         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
6476         echo "------------------"
6477         exit -1
6478    fi
6479 fi
6480
6481 ## checking for libpng
6482
6483for ac_header in png.h
6484do
6485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487  echo "$as_me:$LINENO: checking for $ac_header" >&5
6488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490  echo $ECHO_N "(cached) $ECHO_C" >&6
6491fi
6492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6494else
6495  # Is the header compilable?
6496echo "$as_me:$LINENO: checking $ac_header usability" >&5
6497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6498cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h.  */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h.  */
6504$ac_includes_default
6505#include <$ac_header>
6506_ACEOF
6507rm -f conftest.$ac_objext
6508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509  (eval $ac_compile) 2>conftest.er1
6510  ac_status=$?
6511  grep -v '^ *+' conftest.er1 >conftest.err
6512  rm -f conftest.er1
6513  cat conftest.err >&5
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); } &&
6516         { ac_try='test -z "$ac_c_werror_flag"
6517                         || test ! -s conftest.err'
6518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519  (eval $ac_try) 2>&5
6520  ac_status=$?
6521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522  (exit $ac_status); }; } &&
6523         { ac_try='test -s conftest.$ac_objext'
6524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525  (eval $ac_try) 2>&5
6526  ac_status=$?
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); }; }; then
6529  ac_header_compiler=yes
6530else
6531  echo "$as_me: failed program was:" >&5
6532sed 's/^/| /' conftest.$ac_ext >&5
6533
6534ac_header_compiler=no
6535fi
6536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6538echo "${ECHO_T}$ac_header_compiler" >&6
6539
6540# Is the header present?
6541echo "$as_me:$LINENO: checking $ac_header presence" >&5
6542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6543cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h.  */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h.  */
6549#include <$ac_header>
6550_ACEOF
6551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6552  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6553  ac_status=$?
6554  grep -v '^ *+' conftest.er1 >conftest.err
6555  rm -f conftest.er1
6556  cat conftest.err >&5
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); } >/dev/null; then
6559  if test -s conftest.err; then
6560    ac_cpp_err=$ac_c_preproc_warn_flag
6561    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6562  else
6563    ac_cpp_err=
6564  fi
6565else
6566  ac_cpp_err=yes
6567fi
6568if test -z "$ac_cpp_err"; then
6569  ac_header_preproc=yes
6570else
6571  echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574  ac_header_preproc=no
6575fi
6576rm -f conftest.err conftest.$ac_ext
6577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6578echo "${ECHO_T}$ac_header_preproc" >&6
6579
6580# So?  What about this header?
6581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6582  yes:no: )
6583    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6585    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6587    ac_header_preproc=yes
6588    ;;
6589  no:yes:* )
6590    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6592    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6593echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6594    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6596    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6597echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6598    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6600    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6602    (
6603      cat <<\_ASBOX
6604## ---------------------------------------------- ##
6605## Report this to orxonox-dev at mail.datacore.ch ##
6606## ---------------------------------------------- ##
6607_ASBOX
6608    ) |
6609      sed "s/^/$as_me: WARNING:     /" >&2
6610    ;;
6611esac
6612echo "$as_me:$LINENO: checking for $ac_header" >&5
6613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615  echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
6617  eval "$as_ac_Header=\$ac_header_preproc"
6618fi
6619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6621
6622fi
6623if test `eval echo '${'$as_ac_Header'}'` = yes; then
6624  cat >>confdefs.h <<_ACEOF
6625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6626_ACEOF
6627 pngHeader="yes"
6628else
6629  pngHeader="no"
6630fi
6631
6632done
6633
6634 if test $pngHeader = "no"; then
6635        echo " not including png."
6636 else
6637  echo "$as_me:$LINENO: checking for main in -lpng" >&5
6638echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6639if test "${ac_cv_lib_png_main+set}" = set; then
6640  echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642  ac_check_lib_save_LIBS=$LIBS
6643LIBS="-lpng  $LIBS"
6644cat >conftest.$ac_ext <<_ACEOF
6645/* confdefs.h.  */
6646_ACEOF
6647cat confdefs.h >>conftest.$ac_ext
6648cat >>conftest.$ac_ext <<_ACEOF
6649/* end confdefs.h.  */
6650
6651
6652int
6653main ()
6654{
6655main ();
6656  ;
6657  return 0;
6658}
6659_ACEOF
6660rm -f conftest.$ac_objext conftest$ac_exeext
6661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6662  (eval $ac_link) 2>conftest.er1
6663  ac_status=$?
6664  grep -v '^ *+' conftest.er1 >conftest.err
6665  rm -f conftest.er1
6666  cat conftest.err >&5
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); } &&
6669         { ac_try='test -z "$ac_c_werror_flag"
6670                         || test ! -s conftest.err'
6671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672  (eval $ac_try) 2>&5
6673  ac_status=$?
6674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675  (exit $ac_status); }; } &&
6676         { ac_try='test -s conftest$ac_exeext'
6677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678  (eval $ac_try) 2>&5
6679  ac_status=$?
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); }; }; then
6682  ac_cv_lib_png_main=yes
6683else
6684  echo "$as_me: failed program was:" >&5
6685sed 's/^/| /' conftest.$ac_ext >&5
6686
6687ac_cv_lib_png_main=no
6688fi
6689rm -f conftest.err conftest.$ac_objext \
6690      conftest$ac_exeext conftest.$ac_ext
6691LIBS=$ac_check_lib_save_LIBS
6692fi
6693echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6694echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6695if test $ac_cv_lib_png_main = yes; then
6696  FOUND_png=yes
6697fi
6698
6699    if test "$FOUND_png" = "yes" ; then
6700      LIBS="$LIBS -lpng"
6701    else
6702         echo "------------------"
6703         echo "png library not found."
6704         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
6705         echo "------------------"
6706         exit -1
6707    fi
6708 fi
6709fi
6710
6711## checking for GTK
6712if test "$def_gtk" = yes; then
6713
6714        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6715        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6716echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6717        if `pkg-config --exists gtk+-2.0`; then
6718                echo "yes"
6719                have_gtk2=yes
6720                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6721                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6722
6723cat >>confdefs.h <<_ACEOF
6724#define HAVE_GTK2 1
6725_ACEOF
6726
6727        else
6728                echo "no"
6729        fi
6730
6731fi
6732
6733
6734
6735
6736if test x$have_gtk2 = xyes; then
6737  HAVE_GTK2_TRUE=
6738  HAVE_GTK2_FALSE='#'
6739else
6740  HAVE_GTK2_TRUE='#'
6741  HAVE_GTK2_FALSE=
6742fi
6743
6744
6745## checking for gThread
6746if test "$def_gthread" = yes; then
6747
6748        echo "$as_me:$LINENO: checking for gthread" >&5
6749echo $ECHO_N "checking for gthread... $ECHO_C" >&6
6750        if `pkg-config --exists gthread-2.0`; then
6751                echo "yes"
6752                have_gthread=yes
6753                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
6754                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
6755
6756cat >>confdefs.h <<_ACEOF
6757#define HAVE_GTHREAD 1
6758_ACEOF
6759
6760        else
6761                echo "no"
6762        fi
6763
6764fi
6765
6766
6767
6768
6769if test x$have_gthread = xyes; then
6770  HAVE_GTHREAD_TRUE=
6771  HAVE_GTHREAD_FALSE='#'
6772else
6773  HAVE_GTHREAD_TRUE='#'
6774  HAVE_GTHREAD_FALSE=
6775fi
6776
6777
6778## checking for libcURL
6779if test "$def_curl" = yes; then
6780
6781
6782for ac_header in curl/curl.h
6783do
6784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6785if eval "test \"\${$as_ac_Header+set}\" = set"; then
6786  echo "$as_me:$LINENO: checking for $ac_header" >&5
6787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6788if eval "test \"\${$as_ac_Header+set}\" = set"; then
6789  echo $ECHO_N "(cached) $ECHO_C" >&6
6790fi
6791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6793else
6794  # Is the header compilable?
6795echo "$as_me:$LINENO: checking $ac_header usability" >&5
6796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6797cat >conftest.$ac_ext <<_ACEOF
6798/* confdefs.h.  */
6799_ACEOF
6800cat confdefs.h >>conftest.$ac_ext
6801cat >>conftest.$ac_ext <<_ACEOF
6802/* end confdefs.h.  */
6803$ac_includes_default
6804#include <$ac_header>
6805_ACEOF
6806rm -f conftest.$ac_objext
6807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808  (eval $ac_compile) 2>conftest.er1
6809  ac_status=$?
6810  grep -v '^ *+' conftest.er1 >conftest.err
6811  rm -f conftest.er1
6812  cat conftest.err >&5
6813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814  (exit $ac_status); } &&
6815         { ac_try='test -z "$ac_c_werror_flag"
6816                         || test ! -s conftest.err'
6817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818  (eval $ac_try) 2>&5
6819  ac_status=$?
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); }; } &&
6822         { ac_try='test -s conftest.$ac_objext'
6823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824  (eval $ac_try) 2>&5
6825  ac_status=$?
6826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); }; }; then
6828  ac_header_compiler=yes
6829else
6830  echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833ac_header_compiler=no
6834fi
6835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6837echo "${ECHO_T}$ac_header_compiler" >&6
6838
6839# Is the header present?
6840echo "$as_me:$LINENO: checking $ac_header presence" >&5
6841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6842cat >conftest.$ac_ext <<_ACEOF
6843/* confdefs.h.  */
6844_ACEOF
6845cat confdefs.h >>conftest.$ac_ext
6846cat >>conftest.$ac_ext <<_ACEOF
6847/* end confdefs.h.  */
6848#include <$ac_header>
6849_ACEOF
6850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6851  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6852  ac_status=$?
6853  grep -v '^ *+' conftest.er1 >conftest.err
6854  rm -f conftest.er1
6855  cat conftest.err >&5
6856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857  (exit $ac_status); } >/dev/null; then
6858  if test -s conftest.err; then
6859    ac_cpp_err=$ac_c_preproc_warn_flag
6860    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6861  else
6862    ac_cpp_err=
6863  fi
6864else
6865  ac_cpp_err=yes
6866fi
6867if test -z "$ac_cpp_err"; then
6868  ac_header_preproc=yes
6869else
6870  echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873  ac_header_preproc=no
6874fi
6875rm -f conftest.err conftest.$ac_ext
6876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6877echo "${ECHO_T}$ac_header_preproc" >&6
6878
6879# So?  What about this header?
6880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6881  yes:no: )
6882    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6884    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6886    ac_header_preproc=yes
6887    ;;
6888  no:yes:* )
6889    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6891    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6892echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6893    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6895    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6896echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6897    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6899    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6901    (
6902      cat <<\_ASBOX
6903## ---------------------------------------------- ##
6904## Report this to orxonox-dev at mail.datacore.ch ##
6905## ---------------------------------------------- ##
6906_ASBOX
6907    ) |
6908      sed "s/^/$as_me: WARNING:     /" >&2
6909    ;;
6910esac
6911echo "$as_me:$LINENO: checking for $ac_header" >&5
6912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6913if eval "test \"\${$as_ac_Header+set}\" = set"; then
6914  echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916  eval "$as_ac_Header=\$ac_header_preproc"
6917fi
6918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6920
6921fi
6922if test `eval echo '${'$as_ac_Header'}'` = yes; then
6923  cat >>confdefs.h <<_ACEOF
6924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6925_ACEOF
6926 curlHeader="yes"
6927else
6928  curlHeader="no"
6929fi
6930
6931done
6932
6933 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
6934echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
6935if test "${ac_cv_lib_curl_main+set}" = set; then
6936  echo $ECHO_N "(cached) $ECHO_C" >&6
6937else
6938  ac_check_lib_save_LIBS=$LIBS
6939LIBS="-lcurl  $LIBS"
6940cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h.  */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h.  */
6946
6947
6948int
6949main ()
6950{
6951main ();
6952  ;
6953  return 0;
6954}
6955_ACEOF
6956rm -f conftest.$ac_objext conftest$ac_exeext
6957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958  (eval $ac_link) 2>conftest.er1
6959  ac_status=$?
6960  grep -v '^ *+' conftest.er1 >conftest.err
6961  rm -f conftest.er1
6962  cat conftest.err >&5
6963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964  (exit $ac_status); } &&
6965         { ac_try='test -z "$ac_c_werror_flag"
6966                         || test ! -s conftest.err'
6967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968  (eval $ac_try) 2>&5
6969  ac_status=$?
6970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971  (exit $ac_status); }; } &&
6972         { ac_try='test -s conftest$ac_exeext'
6973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974  (eval $ac_try) 2>&5
6975  ac_status=$?
6976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977  (exit $ac_status); }; }; then
6978  ac_cv_lib_curl_main=yes
6979else
6980  echo "$as_me: failed program was:" >&5
6981sed 's/^/| /' conftest.$ac_ext >&5
6982
6983ac_cv_lib_curl_main=no
6984fi
6985rm -f conftest.err conftest.$ac_objext \
6986      conftest$ac_exeext conftest.$ac_ext
6987LIBS=$ac_check_lib_save_LIBS
6988fi
6989echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
6990echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
6991if test $ac_cv_lib_curl_main = yes; then
6992  FOUND_curl=yes
6993fi
6994
6995 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
6996  have_curl=yes
6997  CURL_LIBS=`curl-config --libs`
6998  CURLCFLAGS=`curl-config --cflags`
6999
7000cat >>confdefs.h <<_ACEOF
7001#define HAVE_CURL 1
7002_ACEOF
7003
7004 else
7005  have_curl=no
7006 fi
7007
7008fi
7009
7010
7011
7012
7013if test x$have_curl = xyes; then
7014  HAVE_CURL_TRUE=
7015  HAVE_CURL_FALSE='#'
7016else
7017  HAVE_CURL_TRUE='#'
7018  HAVE_CURL_FALSE=
7019fi
7020
7021
7022
7023##checking for pthread
7024if test x$def_pthread = xyes ; then
7025 if test x$have_gthread = xyes ; then
7026
7027for ac_header in pthread.h
7028do
7029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030if eval "test \"\${$as_ac_Header+set}\" = set"; then
7031  echo "$as_me:$LINENO: checking for $ac_header" >&5
7032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7033if eval "test \"\${$as_ac_Header+set}\" = set"; then
7034  echo $ECHO_N "(cached) $ECHO_C" >&6
7035fi
7036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7038else
7039  # Is the header compilable?
7040echo "$as_me:$LINENO: checking $ac_header usability" >&5
7041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7042cat >conftest.$ac_ext <<_ACEOF
7043/* confdefs.h.  */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h.  */
7048$ac_includes_default
7049#include <$ac_header>
7050_ACEOF
7051rm -f conftest.$ac_objext
7052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053  (eval $ac_compile) 2>conftest.er1
7054  ac_status=$?
7055  grep -v '^ *+' conftest.er1 >conftest.err
7056  rm -f conftest.er1
7057  cat conftest.err >&5
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); } &&
7060         { ac_try='test -z "$ac_c_werror_flag"
7061                         || test ! -s conftest.err'
7062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063  (eval $ac_try) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); }; } &&
7067         { ac_try='test -s conftest.$ac_objext'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; }; then
7073  ac_header_compiler=yes
7074else
7075  echo "$as_me: failed program was:" >&5
7076sed 's/^/| /' conftest.$ac_ext >&5
7077
7078ac_header_compiler=no
7079fi
7080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7082echo "${ECHO_T}$ac_header_compiler" >&6
7083
7084# Is the header present?
7085echo "$as_me:$LINENO: checking $ac_header presence" >&5
7086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7087cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h.  */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h.  */
7093#include <$ac_header>
7094_ACEOF
7095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7096  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7097  ac_status=$?
7098  grep -v '^ *+' conftest.er1 >conftest.err
7099  rm -f conftest.er1
7100  cat conftest.err >&5
7101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102  (exit $ac_status); } >/dev/null; then
7103  if test -s conftest.err; then
7104    ac_cpp_err=$ac_c_preproc_warn_flag
7105    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7106  else
7107    ac_cpp_err=
7108  fi
7109else
7110  ac_cpp_err=yes
7111fi
7112if test -z "$ac_cpp_err"; then
7113  ac_header_preproc=yes
7114else
7115  echo "$as_me: failed program was:" >&5
7116sed 's/^/| /' conftest.$ac_ext >&5
7117
7118  ac_header_preproc=no
7119fi
7120rm -f conftest.err conftest.$ac_ext
7121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7122echo "${ECHO_T}$ac_header_preproc" >&6
7123
7124# So?  What about this header?
7125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7126  yes:no: )
7127    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7129    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7131    ac_header_preproc=yes
7132    ;;
7133  no:yes:* )
7134    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7136    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7137echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7138    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7140    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7141echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7142    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7144    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7146    (
7147      cat <<\_ASBOX
7148## ---------------------------------------------- ##
7149## Report this to orxonox-dev at mail.datacore.ch ##
7150## ---------------------------------------------- ##
7151_ASBOX
7152    ) |
7153      sed "s/^/$as_me: WARNING:     /" >&2
7154    ;;
7155esac
7156echo "$as_me:$LINENO: checking for $ac_header" >&5
7157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158if eval "test \"\${$as_ac_Header+set}\" = set"; then
7159  echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161  eval "$as_ac_Header=\$ac_header_preproc"
7162fi
7163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7165
7166fi
7167if test `eval echo '${'$as_ac_Header'}'` = yes; then
7168  cat >>confdefs.h <<_ACEOF
7169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7170_ACEOF
7171 pthreadHeader="yes"
7172else
7173  pthreadHeader="no"
7174fi
7175
7176done
7177
7178  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7179echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7180if test "${ac_cv_lib_pthread_main+set}" = set; then
7181  echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183  ac_check_lib_save_LIBS=$LIBS
7184LIBS="-lpthread  $LIBS"
7185cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h.  */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h.  */
7191
7192
7193int
7194main ()
7195{
7196main ();
7197  ;
7198  return 0;
7199}
7200_ACEOF
7201rm -f conftest.$ac_objext conftest$ac_exeext
7202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203  (eval $ac_link) 2>conftest.er1
7204  ac_status=$?
7205  grep -v '^ *+' conftest.er1 >conftest.err
7206  rm -f conftest.er1
7207  cat conftest.err >&5
7208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209  (exit $ac_status); } &&
7210         { ac_try='test -z "$ac_c_werror_flag"
7211                         || test ! -s conftest.err'
7212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213  (eval $ac_try) 2>&5
7214  ac_status=$?
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); }; } &&
7217         { ac_try='test -s conftest$ac_exeext'
7218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219  (eval $ac_try) 2>&5
7220  ac_status=$?
7221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222  (exit $ac_status); }; }; then
7223  ac_cv_lib_pthread_main=yes
7224else
7225  echo "$as_me: failed program was:" >&5
7226sed 's/^/| /' conftest.$ac_ext >&5
7227
7228ac_cv_lib_pthread_main=no
7229fi
7230rm -f conftest.err conftest.$ac_objext \
7231      conftest$ac_exeext conftest.$ac_ext
7232LIBS=$ac_check_lib_save_LIBS
7233fi
7234echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7235echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7236if test $ac_cv_lib_pthread_main = yes; then
7237  FOUND_pthread=yes
7238fi
7239
7240   if test "$FOUND_pthread" = "yes" ; then
7241      LIBS="$LIBS -lpthread"
7242   fi
7243 fi
7244fi
7245# FIXME: Replace `main' with a function in `-lm':
7246
7247echo "$as_me:$LINENO: checking for main in -lm" >&5
7248echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7249if test "${ac_cv_lib_m_main+set}" = set; then
7250  echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252  ac_check_lib_save_LIBS=$LIBS
7253LIBS="-lm  $LIBS"
7254cat >conftest.$ac_ext <<_ACEOF
7255/* confdefs.h.  */
7256_ACEOF
7257cat confdefs.h >>conftest.$ac_ext
7258cat >>conftest.$ac_ext <<_ACEOF
7259/* end confdefs.h.  */
7260
7261
7262int
7263main ()
7264{
7265main ();
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270rm -f conftest.$ac_objext conftest$ac_exeext
7271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272  (eval $ac_link) 2>conftest.er1
7273  ac_status=$?
7274  grep -v '^ *+' conftest.er1 >conftest.err
7275  rm -f conftest.er1
7276  cat conftest.err >&5
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); } &&
7279         { ac_try='test -z "$ac_c_werror_flag"
7280                         || test ! -s conftest.err'
7281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282  (eval $ac_try) 2>&5
7283  ac_status=$?
7284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285  (exit $ac_status); }; } &&
7286         { ac_try='test -s conftest$ac_exeext'
7287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288  (eval $ac_try) 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }; }; then
7292  ac_cv_lib_m_main=yes
7293else
7294  echo "$as_me: failed program was:" >&5
7295sed 's/^/| /' conftest.$ac_ext >&5
7296
7297ac_cv_lib_m_main=no
7298fi
7299rm -f conftest.err conftest.$ac_objext \
7300      conftest$ac_exeext conftest.$ac_ext
7301LIBS=$ac_check_lib_save_LIBS
7302fi
7303echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7304echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7305if test $ac_cv_lib_m_main = yes; then
7306  cat >>confdefs.h <<_ACEOF
7307#define HAVE_LIBM 1
7308_ACEOF
7309
7310  LIBS="-lm $LIBS"
7311
7312fi
7313
7314
7315
7316# Checks for header files.
7317echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7318echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7319if test "${ac_cv_header_stdc+set}" = set; then
7320  echo $ECHO_N "(cached) $ECHO_C" >&6
7321else
7322  cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h.  */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h.  */
7328#include <stdlib.h>
7329#include <stdarg.h>
7330#include <string.h>
7331#include <float.h>
7332
7333int
7334main ()
7335{
7336
7337  ;
7338  return 0;
7339}
7340_ACEOF
7341rm -f conftest.$ac_objext
7342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343  (eval $ac_compile) 2>conftest.er1
7344  ac_status=$?
7345  grep -v '^ *+' conftest.er1 >conftest.err
7346  rm -f conftest.er1
7347  cat conftest.err >&5
7348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349  (exit $ac_status); } &&
7350         { ac_try='test -z "$ac_c_werror_flag"
7351                         || test ! -s conftest.err'
7352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353  (eval $ac_try) 2>&5
7354  ac_status=$?
7355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356  (exit $ac_status); }; } &&
7357         { ac_try='test -s conftest.$ac_objext'
7358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359  (eval $ac_try) 2>&5
7360  ac_status=$?
7361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362  (exit $ac_status); }; }; then
7363  ac_cv_header_stdc=yes
7364else
7365  echo "$as_me: failed program was:" >&5
7366sed 's/^/| /' conftest.$ac_ext >&5
7367
7368ac_cv_header_stdc=no
7369fi
7370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371
7372if test $ac_cv_header_stdc = yes; then
7373  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7374  cat >conftest.$ac_ext <<_ACEOF
7375/* confdefs.h.  */
7376_ACEOF
7377cat confdefs.h >>conftest.$ac_ext
7378cat >>conftest.$ac_ext <<_ACEOF
7379/* end confdefs.h.  */
7380#include <string.h>
7381
7382_ACEOF
7383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384  $EGREP "memchr" >/dev/null 2>&1; then
7385  :
7386else
7387  ac_cv_header_stdc=no
7388fi
7389rm -f conftest*
7390
7391fi
7392
7393if test $ac_cv_header_stdc = yes; then
7394  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7395  cat >conftest.$ac_ext <<_ACEOF
7396/* confdefs.h.  */
7397_ACEOF
7398cat confdefs.h >>conftest.$ac_ext
7399cat >>conftest.$ac_ext <<_ACEOF
7400/* end confdefs.h.  */
7401#include <stdlib.h>
7402
7403_ACEOF
7404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7405  $EGREP "free" >/dev/null 2>&1; then
7406  :
7407else
7408  ac_cv_header_stdc=no
7409fi
7410rm -f conftest*
7411
7412fi
7413
7414if test $ac_cv_header_stdc = yes; then
7415  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7416  if test "$cross_compiling" = yes; then
7417  :
7418else
7419  cat >conftest.$ac_ext <<_ACEOF
7420/* confdefs.h.  */
7421_ACEOF
7422cat confdefs.h >>conftest.$ac_ext
7423cat >>conftest.$ac_ext <<_ACEOF
7424/* end confdefs.h.  */
7425#include <ctype.h>
7426#if ((' ' & 0x0FF) == 0x020)
7427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7429#else
7430# define ISLOWER(c) \
7431                   (('a' <= (c) && (c) <= 'i') \
7432                     || ('j' <= (c) && (c) <= 'r') \
7433                     || ('s' <= (c) && (c) <= 'z'))
7434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7435#endif
7436
7437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7438int
7439main ()
7440{
7441  int i;
7442  for (i = 0; i < 256; i++)
7443    if (XOR (islower (i), ISLOWER (i))
7444        || toupper (i) != TOUPPER (i))
7445      exit(2);
7446  exit (0);
7447}
7448_ACEOF
7449rm -f conftest$ac_exeext
7450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451  (eval $ac_link) 2>&5
7452  ac_status=$?
7453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456  (eval $ac_try) 2>&5
7457  ac_status=$?
7458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459  (exit $ac_status); }; }; then
7460  :
7461else
7462  echo "$as_me: program exited with status $ac_status" >&5
7463echo "$as_me: failed program was:" >&5
7464sed 's/^/| /' conftest.$ac_ext >&5
7465
7466( exit $ac_status )
7467ac_cv_header_stdc=no
7468fi
7469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7470fi
7471fi
7472fi
7473echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7474echo "${ECHO_T}$ac_cv_header_stdc" >&6
7475if test $ac_cv_header_stdc = yes; then
7476
7477cat >>confdefs.h <<\_ACEOF
7478#define STDC_HEADERS 1
7479_ACEOF
7480
7481fi
7482
7483
7484
7485for ac_header in stdlib.h string.h
7486do
7487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7488if eval "test \"\${$as_ac_Header+set}\" = set"; then
7489  echo "$as_me:$LINENO: checking for $ac_header" >&5
7490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7491if eval "test \"\${$as_ac_Header+set}\" = set"; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493fi
7494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7496else
7497  # Is the header compilable?
7498echo "$as_me:$LINENO: checking $ac_header usability" >&5
7499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7500cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h.  */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h.  */
7506$ac_includes_default
7507#include <$ac_header>
7508_ACEOF
7509rm -f conftest.$ac_objext
7510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7511  (eval $ac_compile) 2>conftest.er1
7512  ac_status=$?
7513  grep -v '^ *+' conftest.er1 >conftest.err
7514  rm -f conftest.er1
7515  cat conftest.err >&5
7516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517  (exit $ac_status); } &&
7518         { ac_try='test -z "$ac_c_werror_flag"
7519                         || test ! -s conftest.err'
7520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521  (eval $ac_try) 2>&5
7522  ac_status=$?
7523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524  (exit $ac_status); }; } &&
7525         { ac_try='test -s conftest.$ac_objext'
7526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527  (eval $ac_try) 2>&5
7528  ac_status=$?
7529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530  (exit $ac_status); }; }; then
7531  ac_header_compiler=yes
7532else
7533  echo "$as_me: failed program was:" >&5
7534sed 's/^/| /' conftest.$ac_ext >&5
7535
7536ac_header_compiler=no
7537fi
7538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7540echo "${ECHO_T}$ac_header_compiler" >&6
7541
7542# Is the header present?
7543echo "$as_me:$LINENO: checking $ac_header presence" >&5
7544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7545cat >conftest.$ac_ext <<_ACEOF
7546/* confdefs.h.  */
7547_ACEOF
7548cat confdefs.h >>conftest.$ac_ext
7549cat >>conftest.$ac_ext <<_ACEOF
7550/* end confdefs.h.  */
7551#include <$ac_header>
7552_ACEOF
7553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7554  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7555  ac_status=$?
7556  grep -v '^ *+' conftest.er1 >conftest.err
7557  rm -f conftest.er1
7558  cat conftest.err >&5
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); } >/dev/null; then
7561  if test -s conftest.err; then
7562    ac_cpp_err=$ac_c_preproc_warn_flag
7563    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7564  else
7565    ac_cpp_err=
7566  fi
7567else
7568  ac_cpp_err=yes
7569fi
7570if test -z "$ac_cpp_err"; then
7571  ac_header_preproc=yes
7572else
7573  echo "$as_me: failed program was:" >&5
7574sed 's/^/| /' conftest.$ac_ext >&5
7575
7576  ac_header_preproc=no
7577fi
7578rm -f conftest.err conftest.$ac_ext
7579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7580echo "${ECHO_T}$ac_header_preproc" >&6
7581
7582# So?  What about this header?
7583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7584  yes:no: )
7585    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7587    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7589    ac_header_preproc=yes
7590    ;;
7591  no:yes:* )
7592    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7594    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7595echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7596    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7598    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7599echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7600    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7602    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7604    (
7605      cat <<\_ASBOX
7606## ---------------------------------------------- ##
7607## Report this to orxonox-dev at mail.datacore.ch ##
7608## ---------------------------------------------- ##
7609_ASBOX
7610    ) |
7611      sed "s/^/$as_me: WARNING:     /" >&2
7612    ;;
7613esac
7614echo "$as_me:$LINENO: checking for $ac_header" >&5
7615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7616if eval "test \"\${$as_ac_Header+set}\" = set"; then
7617  echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619  eval "$as_ac_Header=\$ac_header_preproc"
7620fi
7621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7623
7624fi
7625if test `eval echo '${'$as_ac_Header'}'` = yes; then
7626  cat >>confdefs.h <<_ACEOF
7627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7628_ACEOF
7629
7630fi
7631
7632done
7633
7634
7635# Checks for typedefs, structures, and compiler characteristics.
7636echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7637echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7638if test "${ac_cv_header_stdbool_h+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  cat >conftest.$ac_ext <<_ACEOF
7642/* confdefs.h.  */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h.  */
7647
7648#include <stdbool.h>
7649#ifndef bool
7650# error bool is not defined
7651#endif
7652#ifndef false
7653# error false is not defined
7654#endif
7655#if false
7656# error false is not 0
7657#endif
7658#ifndef true
7659# error true is not defined
7660#endif
7661#if true != 1
7662# error true is not 1
7663#endif
7664#ifndef __bool_true_false_are_defined
7665# error __bool_true_false_are_defined is not defined
7666#endif
7667
7668        struct s { _Bool s: 1; _Bool t; } s;
7669
7670        char a[true == 1 ? 1 : -1];
7671        char b[false == 0 ? 1 : -1];
7672        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7673        char d[(bool) -0.5 == true ? 1 : -1];
7674        bool e = &s;
7675        char f[(_Bool) -0.0 == false ? 1 : -1];
7676        char g[true];
7677        char h[sizeof (_Bool)];
7678        char i[sizeof s.t];
7679
7680int
7681main ()
7682{
7683 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7684  ;
7685  return 0;
7686}
7687_ACEOF
7688rm -f conftest.$ac_objext
7689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7690  (eval $ac_compile) 2>conftest.er1
7691  ac_status=$?
7692  grep -v '^ *+' conftest.er1 >conftest.err
7693  rm -f conftest.er1
7694  cat conftest.err >&5
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); } &&
7697         { ac_try='test -z "$ac_c_werror_flag"
7698                         || test ! -s conftest.err'
7699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700  (eval $ac_try) 2>&5
7701  ac_status=$?
7702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703  (exit $ac_status); }; } &&
7704         { ac_try='test -s conftest.$ac_objext'
7705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706  (eval $ac_try) 2>&5
7707  ac_status=$?
7708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); }; }; then
7710  ac_cv_header_stdbool_h=yes
7711else
7712  echo "$as_me: failed program was:" >&5
7713sed 's/^/| /' conftest.$ac_ext >&5
7714
7715ac_cv_header_stdbool_h=no
7716fi
7717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7718fi
7719echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7720echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7721echo "$as_me:$LINENO: checking for _Bool" >&5
7722echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7723if test "${ac_cv_type__Bool+set}" = set; then
7724  echo $ECHO_N "(cached) $ECHO_C" >&6
7725else
7726  cat >conftest.$ac_ext <<_ACEOF
7727/* confdefs.h.  */
7728_ACEOF
7729cat confdefs.h >>conftest.$ac_ext
7730cat >>conftest.$ac_ext <<_ACEOF
7731/* end confdefs.h.  */
7732$ac_includes_default
7733int
7734main ()
7735{
7736if ((_Bool *) 0)
7737  return 0;
7738if (sizeof (_Bool))
7739  return 0;
7740  ;
7741  return 0;
7742}
7743_ACEOF
7744rm -f conftest.$ac_objext
7745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746  (eval $ac_compile) 2>conftest.er1
7747  ac_status=$?
7748  grep -v '^ *+' conftest.er1 >conftest.err
7749  rm -f conftest.er1
7750  cat conftest.err >&5
7751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752  (exit $ac_status); } &&
7753         { ac_try='test -z "$ac_c_werror_flag"
7754                         || test ! -s conftest.err'
7755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756  (eval $ac_try) 2>&5
7757  ac_status=$?
7758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759  (exit $ac_status); }; } &&
7760         { ac_try='test -s conftest.$ac_objext'
7761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762  (eval $ac_try) 2>&5
7763  ac_status=$?
7764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765  (exit $ac_status); }; }; then
7766  ac_cv_type__Bool=yes
7767else
7768  echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7771ac_cv_type__Bool=no
7772fi
7773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774fi
7775echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7776echo "${ECHO_T}$ac_cv_type__Bool" >&6
7777if test $ac_cv_type__Bool = yes; then
7778
7779cat >>confdefs.h <<_ACEOF
7780#define HAVE__BOOL 1
7781_ACEOF
7782
7783
7784fi
7785
7786if test $ac_cv_header_stdbool_h = yes; then
7787
7788cat >>confdefs.h <<\_ACEOF
7789#define HAVE_STDBOOL_H 1
7790_ACEOF
7791
7792fi
7793
7794
7795# Checks for library functions.
7796
7797for ac_header in stdlib.h
7798do
7799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7800if eval "test \"\${$as_ac_Header+set}\" = set"; then
7801  echo "$as_me:$LINENO: checking for $ac_header" >&5
7802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7803if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804  echo $ECHO_N "(cached) $ECHO_C" >&6
7805fi
7806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7808else
7809  # Is the header compilable?
7810echo "$as_me:$LINENO: checking $ac_header usability" >&5
7811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7812cat >conftest.$ac_ext <<_ACEOF
7813/* confdefs.h.  */
7814_ACEOF
7815cat confdefs.h >>conftest.$ac_ext
7816cat >>conftest.$ac_ext <<_ACEOF
7817/* end confdefs.h.  */
7818$ac_includes_default
7819#include <$ac_header>
7820_ACEOF
7821rm -f conftest.$ac_objext
7822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823  (eval $ac_compile) 2>conftest.er1
7824  ac_status=$?
7825  grep -v '^ *+' conftest.er1 >conftest.err
7826  rm -f conftest.er1
7827  cat conftest.err >&5
7828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829  (exit $ac_status); } &&
7830         { ac_try='test -z "$ac_c_werror_flag"
7831                         || test ! -s conftest.err'
7832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833  (eval $ac_try) 2>&5
7834  ac_status=$?
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); }; } &&
7837         { ac_try='test -s conftest.$ac_objext'
7838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839  (eval $ac_try) 2>&5
7840  ac_status=$?
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); }; }; then
7843  ac_header_compiler=yes
7844else
7845  echo "$as_me: failed program was:" >&5
7846sed 's/^/| /' conftest.$ac_ext >&5
7847
7848ac_header_compiler=no
7849fi
7850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7852echo "${ECHO_T}$ac_header_compiler" >&6
7853
7854# Is the header present?
7855echo "$as_me:$LINENO: checking $ac_header presence" >&5
7856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7857cat >conftest.$ac_ext <<_ACEOF
7858/* confdefs.h.  */
7859_ACEOF
7860cat confdefs.h >>conftest.$ac_ext
7861cat >>conftest.$ac_ext <<_ACEOF
7862/* end confdefs.h.  */
7863#include <$ac_header>
7864_ACEOF
7865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7866  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7867  ac_status=$?
7868  grep -v '^ *+' conftest.er1 >conftest.err
7869  rm -f conftest.er1
7870  cat conftest.err >&5
7871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872  (exit $ac_status); } >/dev/null; then
7873  if test -s conftest.err; then
7874    ac_cpp_err=$ac_c_preproc_warn_flag
7875    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7876  else
7877    ac_cpp_err=
7878  fi
7879else
7880  ac_cpp_err=yes
7881fi
7882if test -z "$ac_cpp_err"; then
7883  ac_header_preproc=yes
7884else
7885  echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
7888  ac_header_preproc=no
7889fi
7890rm -f conftest.err conftest.$ac_ext
7891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7892echo "${ECHO_T}$ac_header_preproc" >&6
7893
7894# So?  What about this header?
7895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7896  yes:no: )
7897    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7899    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7901    ac_header_preproc=yes
7902    ;;
7903  no:yes:* )
7904    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7906    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7907echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7908    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7910    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7911echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7912    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7914    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7916    (
7917      cat <<\_ASBOX
7918## ---------------------------------------------- ##
7919## Report this to orxonox-dev at mail.datacore.ch ##
7920## ---------------------------------------------- ##
7921_ASBOX
7922    ) |
7923      sed "s/^/$as_me: WARNING:     /" >&2
7924    ;;
7925esac
7926echo "$as_me:$LINENO: checking for $ac_header" >&5
7927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7928if eval "test \"\${$as_ac_Header+set}\" = set"; then
7929  echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931  eval "$as_ac_Header=\$ac_header_preproc"
7932fi
7933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7935
7936fi
7937if test `eval echo '${'$as_ac_Header'}'` = yes; then
7938  cat >>confdefs.h <<_ACEOF
7939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7940_ACEOF
7941
7942fi
7943
7944done
7945
7946echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7947echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
7948if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7949  echo $ECHO_N "(cached) $ECHO_C" >&6
7950else
7951  if test "$cross_compiling" = yes; then
7952  ac_cv_func_malloc_0_nonnull=no
7953else
7954  cat >conftest.$ac_ext <<_ACEOF
7955/* confdefs.h.  */
7956_ACEOF
7957cat confdefs.h >>conftest.$ac_ext
7958cat >>conftest.$ac_ext <<_ACEOF
7959/* end confdefs.h.  */
7960#if STDC_HEADERS || HAVE_STDLIB_H
7961# include <stdlib.h>
7962#else
7963char *malloc ();
7964#endif
7965
7966int
7967main ()
7968{
7969exit (malloc (0) ? 0 : 1);
7970  ;
7971  return 0;
7972}
7973_ACEOF
7974rm -f conftest$ac_exeext
7975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7976  (eval $ac_link) 2>&5
7977  ac_status=$?
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981  (eval $ac_try) 2>&5
7982  ac_status=$?
7983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984  (exit $ac_status); }; }; then
7985  ac_cv_func_malloc_0_nonnull=yes
7986else
7987  echo "$as_me: program exited with status $ac_status" >&5
7988echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991( exit $ac_status )
7992ac_cv_func_malloc_0_nonnull=no
7993fi
7994rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7995fi
7996fi
7997echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7998echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
7999if test $ac_cv_func_malloc_0_nonnull = yes; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define HAVE_MALLOC 1
8003_ACEOF
8004
8005else
8006  cat >>confdefs.h <<\_ACEOF
8007#define HAVE_MALLOC 0
8008_ACEOF
8009
8010   case $LIBOBJS in
8011    "malloc.$ac_objext"   | \
8012  *" malloc.$ac_objext"   | \
8013    "malloc.$ac_objext "* | \
8014  *" malloc.$ac_objext "* ) ;;
8015  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8016esac
8017
8018
8019cat >>confdefs.h <<\_ACEOF
8020#define malloc rpl_malloc
8021_ACEOF
8022
8023fi
8024
8025
8026
8027
8028
8029for ac_func in bzero sqrt
8030do
8031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8032echo "$as_me:$LINENO: checking for $ac_func" >&5
8033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8034if eval "test \"\${$as_ac_var+set}\" = set"; then
8035  echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037  cat >conftest.$ac_ext <<_ACEOF
8038/* confdefs.h.  */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
8042/* end confdefs.h.  */
8043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8044   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8045#define $ac_func innocuous_$ac_func
8046
8047/* System header to define __stub macros and hopefully few prototypes,
8048    which can conflict with char $ac_func (); below.
8049    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8050    <limits.h> exists even on freestanding compilers.  */
8051
8052#ifdef __STDC__
8053# include <limits.h>
8054#else
8055# include <assert.h>
8056#endif
8057
8058#undef $ac_func
8059
8060/* Override any gcc2 internal prototype to avoid an error.  */
8061#ifdef __cplusplus
8062extern "C"
8063{
8064#endif
8065/* We use char because int might match the return type of a gcc2
8066   builtin and then its argument prototype would still apply.  */
8067char $ac_func ();
8068/* The GNU C library defines this for functions which it implements
8069    to always fail with ENOSYS.  Some functions are actually named
8070    something starting with __ and the normal name is an alias.  */
8071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8072choke me
8073#else
8074char (*f) () = $ac_func;
8075#endif
8076#ifdef __cplusplus
8077}
8078#endif
8079
8080int
8081main ()
8082{
8083return f != $ac_func;
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088rm -f conftest.$ac_objext conftest$ac_exeext
8089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090  (eval $ac_link) 2>conftest.er1
8091  ac_status=$?
8092  grep -v '^ *+' conftest.er1 >conftest.err
8093  rm -f conftest.er1
8094  cat conftest.err >&5
8095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096  (exit $ac_status); } &&
8097         { ac_try='test -z "$ac_c_werror_flag"
8098                         || test ! -s conftest.err'
8099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100  (eval $ac_try) 2>&5
8101  ac_status=$?
8102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103  (exit $ac_status); }; } &&
8104         { ac_try='test -s conftest$ac_exeext'
8105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106  (eval $ac_try) 2>&5
8107  ac_status=$?
8108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109  (exit $ac_status); }; }; then
8110  eval "$as_ac_var=yes"
8111else
8112  echo "$as_me: failed program was:" >&5
8113sed 's/^/| /' conftest.$ac_ext >&5
8114
8115eval "$as_ac_var=no"
8116fi
8117rm -f conftest.err conftest.$ac_objext \
8118      conftest$ac_exeext conftest.$ac_ext
8119fi
8120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8122if test `eval echo '${'$as_ac_var'}'` = yes; then
8123  cat >>confdefs.h <<_ACEOF
8124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8125_ACEOF
8126
8127fi
8128done
8129
8130
8131                                                  ac_config_files="$ac_config_files Makefile src/Makefile src/importer/Makefile src/console/Makefile src/gui/Makefile"
8132
8133
8134cat >confcache <<\_ACEOF
8135# This file is a shell script that caches the results of configure
8136# tests run on this system so they can be shared between configure
8137# scripts and configure runs, see configure's option --config-cache.
8138# It is not useful on other systems.  If it contains results you don't
8139# want to keep, you may remove or edit it.
8140#
8141# config.status only pays attention to the cache file if you give it
8142# the --recheck option to rerun configure.
8143#
8144# `ac_cv_env_foo' variables (set or unset) will be overridden when
8145# loading this file, other *unset* `ac_cv_foo' will be assigned the
8146# following values.
8147
8148_ACEOF
8149
8150# The following way of writing the cache mishandles newlines in values,
8151# but we know of no workaround that is simple, portable, and efficient.
8152# So, don't put newlines in cache variables' values.
8153# Ultrix sh set writes to stderr and can't be redirected directly,
8154# and sets the high bit in the cache file unless we assign to the vars.
8155{
8156  (set) 2>&1 |
8157    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8158    *ac_space=\ *)
8159      # `set' does not quote correctly, so add quotes (double-quote
8160      # substitution turns \\\\ into \\, and sed turns \\ into \).
8161      sed -n \
8162        "s/'/'\\\\''/g;
8163          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8164      ;;
8165    *)
8166      # `set' quotes correctly as required by POSIX, so do not add quotes.
8167      sed -n \
8168        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8169      ;;
8170    esac;
8171} |
8172  sed '
8173     t clear
8174     : clear
8175     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8176     t end
8177     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8178     : end' >>confcache
8179if diff $cache_file confcache >/dev/null 2>&1; then :; else
8180  if test -w $cache_file; then
8181    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8182    cat confcache >$cache_file
8183  else
8184    echo "not updating unwritable cache $cache_file"
8185  fi
8186fi
8187rm -f confcache
8188
8189test "x$prefix" = xNONE && prefix=$ac_default_prefix
8190# Let make expand exec_prefix.
8191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8192
8193# VPATH may cause trouble with some makes, so we remove $(srcdir),
8194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8195# trailing colons and then remove the whole line if VPATH becomes empty
8196# (actually we leave an empty line to preserve line numbers).
8197if test "x$srcdir" = x.; then
8198  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8199s/:*\$(srcdir):*/:/;
8200s/:*\${srcdir}:*/:/;
8201s/:*@srcdir@:*/:/;
8202s/^\([^=]*=[     ]*\):*/\1/;
8203s/:*$//;
8204s/^[^=]*=[       ]*$//;
8205}'
8206fi
8207
8208DEFS=-DHAVE_CONFIG_H
8209
8210ac_libobjs=
8211ac_ltlibobjs=
8212for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8213  # 1. Remove the extension, and $U if already installed.
8214  ac_i=`echo "$ac_i" |
8215         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8216  # 2. Add them.
8217  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8218  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8219done
8220LIBOBJS=$ac_libobjs
8221
8222LTLIBOBJS=$ac_ltlibobjs
8223
8224
8225if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8226  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8227Usually this means the macro was only invoked conditionally." >&5
8228echo "$as_me: error: conditional \"AMDEP\" was never defined.
8229Usually this means the macro was only invoked conditionally." >&2;}
8230   { (exit 1); exit 1; }; }
8231fi
8232if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8233  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8234Usually this means the macro was only invoked conditionally." >&5
8235echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8236Usually this means the macro was only invoked conditionally." >&2;}
8237   { (exit 1); exit 1; }; }
8238fi
8239if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8240  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8241Usually this means the macro was only invoked conditionally." >&5
8242echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8243Usually this means the macro was only invoked conditionally." >&2;}
8244   { (exit 1); exit 1; }; }
8245fi
8246if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8247  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8248Usually this means the macro was only invoked conditionally." >&5
8249echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8250Usually this means the macro was only invoked conditionally." >&2;}
8251   { (exit 1); exit 1; }; }
8252fi
8253if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
8254  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
8255Usually this means the macro was only invoked conditionally." >&5
8256echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
8257Usually this means the macro was only invoked conditionally." >&2;}
8258   { (exit 1); exit 1; }; }
8259fi
8260if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
8261  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
8262Usually this means the macro was only invoked conditionally." >&5
8263echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
8264Usually this means the macro was only invoked conditionally." >&2;}
8265   { (exit 1); exit 1; }; }
8266fi
8267if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
8268  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined.
8269Usually this means the macro was only invoked conditionally." >&5
8270echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined.
8271Usually this means the macro was only invoked conditionally." >&2;}
8272   { (exit 1); exit 1; }; }
8273fi
8274if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
8275  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
8276Usually this means the macro was only invoked conditionally." >&5
8277echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
8278Usually this means the macro was only invoked conditionally." >&2;}
8279   { (exit 1); exit 1; }; }
8280fi
8281
8282: ${CONFIG_STATUS=./config.status}
8283ac_clean_files_save=$ac_clean_files
8284ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8285{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8286echo "$as_me: creating $CONFIG_STATUS" >&6;}
8287cat >$CONFIG_STATUS <<_ACEOF
8288#! $SHELL
8289# Generated by $as_me.
8290# Run this file to recreate the current configuration.
8291# Compiler output produced by configure, useful for debugging
8292# configure, is in config.log if it exists.
8293
8294debug=false
8295ac_cs_recheck=false
8296ac_cs_silent=false
8297SHELL=\${CONFIG_SHELL-$SHELL}
8298_ACEOF
8299
8300cat >>$CONFIG_STATUS <<\_ACEOF
8301## --------------------- ##
8302## M4sh Initialization.  ##
8303## --------------------- ##
8304
8305# Be Bourne compatible
8306if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8307  emulate sh
8308  NULLCMD=:
8309  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8310  # is contrary to our usage.  Disable this feature.
8311  alias -g '${1+"$@"}'='"$@"'
8312elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8313  set -o posix
8314fi
8315DUALCASE=1; export DUALCASE # for MKS sh
8316
8317# Support unset when possible.
8318if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8319  as_unset=unset
8320else
8321  as_unset=false
8322fi
8323
8324
8325# Work around bugs in pre-3.0 UWIN ksh.
8326$as_unset ENV MAIL MAILPATH
8327PS1='$ '
8328PS2='> '
8329PS4='+ '
8330
8331# NLS nuisances.
8332for as_var in \
8333  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8334  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8335  LC_TELEPHONE LC_TIME
8336do
8337  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8338    eval $as_var=C; export $as_var
8339  else
8340    $as_unset $as_var
8341  fi
8342done
8343
8344# Required to use basename.
8345if expr a : '\(a\)' >/dev/null 2>&1; then
8346  as_expr=expr
8347else
8348  as_expr=false
8349fi
8350
8351if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8352  as_basename=basename
8353else
8354  as_basename=false
8355fi
8356
8357
8358# Name of the executable.
8359as_me=`$as_basename "$0" ||
8360$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8361         X"$0" : 'X\(//\)$' \| \
8362         X"$0" : 'X\(/\)$' \| \
8363         .     : '\(.\)' 2>/dev/null ||
8364echo X/"$0" |
8365    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8366          /^X\/\(\/\/\)$/{ s//\1/; q; }
8367          /^X\/\(\/\).*/{ s//\1/; q; }
8368          s/.*/./; q'`
8369
8370
8371# PATH needs CR, and LINENO needs CR and PATH.
8372# Avoid depending upon Character Ranges.
8373as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8374as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8375as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8376as_cr_digits='0123456789'
8377as_cr_alnum=$as_cr_Letters$as_cr_digits
8378
8379# The user is always right.
8380if test "${PATH_SEPARATOR+set}" != set; then
8381  echo "#! /bin/sh" >conf$$.sh
8382  echo  "exit 0"   >>conf$$.sh
8383  chmod +x conf$$.sh
8384  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8385    PATH_SEPARATOR=';'
8386  else
8387    PATH_SEPARATOR=:
8388  fi
8389  rm -f conf$$.sh
8390fi
8391
8392
8393  as_lineno_1=$LINENO
8394  as_lineno_2=$LINENO
8395  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8396  test "x$as_lineno_1" != "x$as_lineno_2" &&
8397  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8398  # Find who we are.  Look in the path if we contain no path at all
8399  # relative or not.
8400  case $0 in
8401    *[\\/]* ) as_myself=$0 ;;
8402    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403for as_dir in $PATH
8404do
8405  IFS=$as_save_IFS
8406  test -z "$as_dir" && as_dir=.
8407  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8408done
8409
8410       ;;
8411  esac
8412  # We did not find ourselves, most probably we were run as `sh COMMAND'
8413  # in which case we are not to be found in the path.
8414  if test "x$as_myself" = x; then
8415    as_myself=$0
8416  fi
8417  if test ! -f "$as_myself"; then
8418    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8419echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8420   { (exit 1); exit 1; }; }
8421  fi
8422  case $CONFIG_SHELL in
8423  '')
8424    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8426do
8427  IFS=$as_save_IFS
8428  test -z "$as_dir" && as_dir=.
8429  for as_base in sh bash ksh sh5; do
8430         case $as_dir in
8431         /*)
8432           if ("$as_dir/$as_base" -c '
8433  as_lineno_1=$LINENO
8434  as_lineno_2=$LINENO
8435  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8436  test "x$as_lineno_1" != "x$as_lineno_2" &&
8437  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8438             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8439             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8440             CONFIG_SHELL=$as_dir/$as_base
8441             export CONFIG_SHELL
8442             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8443           fi;;
8444         esac
8445       done
8446done
8447;;
8448  esac
8449
8450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8451  # uniformly replaced by the line number.  The first 'sed' inserts a
8452  # line-number line before each line; the second 'sed' does the real
8453  # work.  The second script uses 'N' to pair each line-number line
8454  # with the numbered line, and appends trailing '-' during
8455  # substitution so that $LINENO is not a special case at line end.
8456  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8457  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8458  sed '=' <$as_myself |
8459    sed '
8460      N
8461      s,$,-,
8462      : loop
8463      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8464      t loop
8465      s,-$,,
8466      s,^['$as_cr_digits']*\n,,
8467    ' >$as_me.lineno &&
8468  chmod +x $as_me.lineno ||
8469    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8470echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8471   { (exit 1); exit 1; }; }
8472
8473  # Don't try to exec as it changes $[0], causing all sort of problems
8474  # (the dirname of $[0] is not the place where we might find the
8475  # original and so on.  Autoconf is especially sensible to this).
8476  . ./$as_me.lineno
8477  # Exit status is that of the last command.
8478  exit
8479}
8480
8481
8482case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8483  *c*,-n*) ECHO_N= ECHO_C='
8484' ECHO_T='      ' ;;
8485  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8486  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8487esac
8488
8489if expr a : '\(a\)' >/dev/null 2>&1; then
8490  as_expr=expr
8491else
8492  as_expr=false
8493fi
8494
8495rm -f conf$$ conf$$.exe conf$$.file
8496echo >conf$$.file
8497if ln -s conf$$.file conf$$ 2>/dev/null; then
8498  # We could just check for DJGPP; but this test a) works b) is more generic
8499  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8500  if test -f conf$$.exe; then
8501    # Don't use ln at all; we don't have any links
8502    as_ln_s='cp -p'
8503  else
8504    as_ln_s='ln -s'
8505  fi
8506elif ln conf$$.file conf$$ 2>/dev/null; then
8507  as_ln_s=ln
8508else
8509  as_ln_s='cp -p'
8510fi
8511rm -f conf$$ conf$$.exe conf$$.file
8512
8513if mkdir -p . 2>/dev/null; then
8514  as_mkdir_p=:
8515else
8516  test -d ./-p && rmdir ./-p
8517  as_mkdir_p=false
8518fi
8519
8520as_executable_p="test -f"
8521
8522# Sed expression to map a string onto a valid CPP name.
8523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8524
8525# Sed expression to map a string onto a valid variable name.
8526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8527
8528
8529# IFS
8530# We need space, tab and new line, in precisely that order.
8531as_nl='
8532'
8533IFS="   $as_nl"
8534
8535# CDPATH.
8536$as_unset CDPATH
8537
8538exec 6>&1
8539
8540# Open the log real soon, to keep \$[0] and so on meaningful, and to
8541# report actual input values of CONFIG_FILES etc. instead of their
8542# values after options handling.  Logging --version etc. is OK.
8543exec 5>>config.log
8544{
8545  echo
8546  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8547## Running $as_me. ##
8548_ASBOX
8549} >&5
8550cat >&5 <<_CSEOF
8551
8552This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was
8553generated by GNU Autoconf 2.59.  Invocation command line was
8554
8555  CONFIG_FILES    = $CONFIG_FILES
8556  CONFIG_HEADERS  = $CONFIG_HEADERS
8557  CONFIG_LINKS    = $CONFIG_LINKS
8558  CONFIG_COMMANDS = $CONFIG_COMMANDS
8559  $ $0 $@
8560
8561_CSEOF
8562echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8563echo >&5
8564_ACEOF
8565
8566# Files that config.status was made for.
8567if test -n "$ac_config_files"; then
8568  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8569fi
8570
8571if test -n "$ac_config_headers"; then
8572  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8573fi
8574
8575if test -n "$ac_config_links"; then
8576  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8577fi
8578
8579if test -n "$ac_config_commands"; then
8580  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8581fi
8582
8583cat >>$CONFIG_STATUS <<\_ACEOF
8584
8585ac_cs_usage="\
8586\`$as_me' instantiates files from templates according to the
8587current configuration.
8588
8589Usage: $0 [OPTIONS] [FILE]...
8590
8591  -h, --help       print this help, then exit
8592  -V, --version    print version number, then exit
8593  -q, --quiet      do not print progress messages
8594  -d, --debug      don't remove temporary files
8595      --recheck    update $as_me by reconfiguring in the same conditions
8596  --file=FILE[:TEMPLATE]
8597                   instantiate the configuration file FILE
8598  --header=FILE[:TEMPLATE]
8599                   instantiate the configuration header FILE
8600
8601Configuration files:
8602$config_files
8603
8604Configuration headers:
8605$config_headers
8606
8607Configuration commands:
8608$config_commands
8609
8610Report bugs to <bug-autoconf@gnu.org>."
8611_ACEOF
8612
8613cat >>$CONFIG_STATUS <<_ACEOF
8614ac_cs_version="\\
8615orxonox config.status 0.2.1-pre-alpha
8616configured by $0, generated by GNU Autoconf 2.59,
8617  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8618
8619Copyright (C) 2003 Free Software Foundation, Inc.
8620This config.status script is free software; the Free Software Foundation
8621gives unlimited permission to copy, distribute and modify it."
8622srcdir=$srcdir
8623INSTALL="$INSTALL"
8624_ACEOF
8625
8626cat >>$CONFIG_STATUS <<\_ACEOF
8627# If no file are specified by the user, then we need to provide default
8628# value.  By we need to know if files were specified by the user.
8629ac_need_defaults=:
8630while test $# != 0
8631do
8632  case $1 in
8633  --*=*)
8634    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8635    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8636    ac_shift=:
8637    ;;
8638  -*)
8639    ac_option=$1
8640    ac_optarg=$2
8641    ac_shift=shift
8642    ;;
8643  *) # This is not an option, so the user has probably given explicit
8644     # arguments.
8645     ac_option=$1
8646     ac_need_defaults=false;;
8647  esac
8648
8649  case $ac_option in
8650  # Handling of the options.
8651_ACEOF
8652cat >>$CONFIG_STATUS <<\_ACEOF
8653  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8654    ac_cs_recheck=: ;;
8655  --version | --vers* | -V )
8656    echo "$ac_cs_version"; exit 0 ;;
8657  --he | --h)
8658    # Conflict between --help and --header
8659    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8660Try \`$0 --help' for more information." >&5
8661echo "$as_me: error: ambiguous option: $1
8662Try \`$0 --help' for more information." >&2;}
8663   { (exit 1); exit 1; }; };;
8664  --help | --hel | -h )
8665    echo "$ac_cs_usage"; exit 0 ;;
8666  --debug | --d* | -d )
8667    debug=: ;;
8668  --file | --fil | --fi | --f )
8669    $ac_shift
8670    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8671    ac_need_defaults=false;;
8672  --header | --heade | --head | --hea )
8673    $ac_shift
8674    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8675    ac_need_defaults=false;;
8676  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8677  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8678    ac_cs_silent=: ;;
8679
8680  # This is an error.
8681  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8682Try \`$0 --help' for more information." >&5
8683echo "$as_me: error: unrecognized option: $1
8684Try \`$0 --help' for more information." >&2;}
8685   { (exit 1); exit 1; }; } ;;
8686
8687  *) ac_config_targets="$ac_config_targets $1" ;;
8688
8689  esac
8690  shift
8691done
8692
8693ac_configure_extra_args=
8694
8695if $ac_cs_silent; then
8696  exec 6>/dev/null
8697  ac_configure_extra_args="$ac_configure_extra_args --silent"
8698fi
8699
8700_ACEOF
8701cat >>$CONFIG_STATUS <<_ACEOF
8702if \$ac_cs_recheck; then
8703  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8704  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8705fi
8706
8707_ACEOF
8708
8709cat >>$CONFIG_STATUS <<_ACEOF
8710#
8711# INIT-COMMANDS section.
8712#
8713
8714AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8715
8716_ACEOF
8717
8718
8719
8720cat >>$CONFIG_STATUS <<\_ACEOF
8721for ac_config_target in $ac_config_targets
8722do
8723  case "$ac_config_target" in
8724  # Handling of arguments.
8725  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8726  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8727  "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;;
8728  "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
8729  "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
8730  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8731  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8732  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8733echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8734   { (exit 1); exit 1; }; };;
8735  esac
8736done
8737
8738# If the user did not use the arguments to specify the items to instantiate,
8739# then the envvar interface is used.  Set only those that are not.
8740# We use the long form for the default assignment because of an extremely
8741# bizarre bug on SunOS 4.1.3.
8742if $ac_need_defaults; then
8743  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8744  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8745  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8746fi
8747
8748# Have a temporary directory for convenience.  Make it in the build tree
8749# simply because there is no reason to put it here, and in addition,
8750# creating and moving files from /tmp can sometimes cause problems.
8751# Create a temporary directory, and hook for its removal unless debugging.
8752$debug ||
8753{
8754  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8755  trap '{ (exit 1); exit 1; }' 1 2 13 15
8756}
8757
8758# Create a (secure) tmp directory for tmp files.
8759
8760{
8761  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8762  test -n "$tmp" && test -d "$tmp"
8763}  ||
8764{
8765  tmp=./confstat$$-$RANDOM
8766  (umask 077 && mkdir $tmp)
8767} ||
8768{
8769   echo "$me: cannot create a temporary directory in ." >&2
8770   { (exit 1); exit 1; }
8771}
8772
8773_ACEOF
8774
8775cat >>$CONFIG_STATUS <<_ACEOF
8776
8777#
8778# CONFIG_FILES section.
8779#
8780
8781# No need to generate the scripts if there are no CONFIG_FILES.
8782# This happens for instance when ./config.status config.h
8783if test -n "\$CONFIG_FILES"; then
8784  # Protect against being on the right side of a sed subst in config.status.
8785  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8786   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8787s,@SHELL@,$SHELL,;t t
8788s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8789s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8790s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8791s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8792s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8793s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8794s,@exec_prefix@,$exec_prefix,;t t
8795s,@prefix@,$prefix,;t t
8796s,@program_transform_name@,$program_transform_name,;t t
8797s,@bindir@,$bindir,;t t
8798s,@sbindir@,$sbindir,;t t
8799s,@libexecdir@,$libexecdir,;t t
8800s,@datadir@,$datadir,;t t
8801s,@sysconfdir@,$sysconfdir,;t t
8802s,@sharedstatedir@,$sharedstatedir,;t t
8803s,@localstatedir@,$localstatedir,;t t
8804s,@libdir@,$libdir,;t t
8805s,@includedir@,$includedir,;t t
8806s,@oldincludedir@,$oldincludedir,;t t
8807s,@infodir@,$infodir,;t t
8808s,@mandir@,$mandir,;t t
8809s,@build_alias@,$build_alias,;t t
8810s,@host_alias@,$host_alias,;t t
8811s,@target_alias@,$target_alias,;t t
8812s,@DEFS@,$DEFS,;t t
8813s,@ECHO_C@,$ECHO_C,;t t
8814s,@ECHO_N@,$ECHO_N,;t t
8815s,@ECHO_T@,$ECHO_T,;t t
8816s,@LIBS@,$LIBS,;t t
8817s,@build@,$build,;t t
8818s,@build_cpu@,$build_cpu,;t t
8819s,@build_vendor@,$build_vendor,;t t
8820s,@build_os@,$build_os,;t t
8821s,@host@,$host,;t t
8822s,@host_cpu@,$host_cpu,;t t
8823s,@host_vendor@,$host_vendor,;t t
8824s,@host_os@,$host_os,;t t
8825s,@target@,$target,;t t
8826s,@target_cpu@,$target_cpu,;t t
8827s,@target_vendor@,$target_vendor,;t t
8828s,@target_os@,$target_os,;t t
8829s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8830s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8831s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8832s,@CYGPATH_W@,$CYGPATH_W,;t t
8833s,@PACKAGE@,$PACKAGE,;t t
8834s,@VERSION@,$VERSION,;t t
8835s,@ACLOCAL@,$ACLOCAL,;t t
8836s,@AUTOCONF@,$AUTOCONF,;t t
8837s,@AUTOMAKE@,$AUTOMAKE,;t t
8838s,@AUTOHEADER@,$AUTOHEADER,;t t
8839s,@MAKEINFO@,$MAKEINFO,;t t
8840s,@AMTAR@,$AMTAR,;t t
8841s,@install_sh@,$install_sh,;t t
8842s,@STRIP@,$STRIP,;t t
8843s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8844s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8845s,@mkdir_p@,$mkdir_p,;t t
8846s,@AWK@,$AWK,;t t
8847s,@SET_MAKE@,$SET_MAKE,;t t
8848s,@am__leading_dot@,$am__leading_dot,;t t
8849s,@CXX@,$CXX,;t t
8850s,@CXXFLAGS@,$CXXFLAGS,;t t
8851s,@LDFLAGS@,$LDFLAGS,;t t
8852s,@CPPFLAGS@,$CPPFLAGS,;t t
8853s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8854s,@EXEEXT@,$EXEEXT,;t t
8855s,@OBJEXT@,$OBJEXT,;t t
8856s,@DEPDIR@,$DEPDIR,;t t
8857s,@am__include@,$am__include,;t t
8858s,@am__quote@,$am__quote,;t t
8859s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8860s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8861s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8862s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8863s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8864s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8865s,@CC@,$CC,;t t
8866s,@CFLAGS@,$CFLAGS,;t t
8867s,@ac_ct_CC@,$ac_ct_CC,;t t
8868s,@CCDEPMODE@,$CCDEPMODE,;t t
8869s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8870s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8871s,@CPP@,$CPP,;t t
8872s,@EGREP@,$EGREP,;t t
8873s,@DEBUG@,$DEBUG,;t t
8874s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
8875s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
8876s,@DOXYGEN@,$DOXYGEN,;t t
8877s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
8878s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
8879s,@MSBITFIELDS@,$MSBITFIELDS,;t t
8880s,@GTK2_LIBS@,$GTK2_LIBS,;t t
8881s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
8882s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
8883s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
8884s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
8885s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
8886s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
8887s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
8888s,@CURL_LIBS@,$CURL_LIBS,;t t
8889s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
8890s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
8891s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
8892s,@LIBOBJS@,$LIBOBJS,;t t
8893s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8894CEOF
8895
8896_ACEOF
8897
8898  cat >>$CONFIG_STATUS <<\_ACEOF
8899  # Split the substitutions into bite-sized pieces for seds with
8900  # small command number limits, like on Digital OSF/1 and HP-UX.
8901  ac_max_sed_lines=48
8902  ac_sed_frag=1 # Number of current file.
8903  ac_beg=1 # First line for current file.
8904  ac_end=$ac_max_sed_lines # Line after last line for current file.
8905  ac_more_lines=:
8906  ac_sed_cmds=
8907  while $ac_more_lines; do
8908    if test $ac_beg -gt 1; then
8909      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8910    else
8911      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8912    fi
8913    if test ! -s $tmp/subs.frag; then
8914      ac_more_lines=false
8915    else
8916      # The purpose of the label and of the branching condition is to
8917      # speed up the sed processing (if there are no `@' at all, there
8918      # is no need to browse any of the substitutions).
8919      # These are the two extra sed commands mentioned above.
8920      (echo ':t
8921  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8922      if test -z "$ac_sed_cmds"; then
8923        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8924      else
8925        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8926      fi
8927      ac_sed_frag=`expr $ac_sed_frag + 1`
8928      ac_beg=$ac_end
8929      ac_end=`expr $ac_end + $ac_max_sed_lines`
8930    fi
8931  done
8932  if test -z "$ac_sed_cmds"; then
8933    ac_sed_cmds=cat
8934  fi
8935fi # test -n "$CONFIG_FILES"
8936
8937_ACEOF
8938cat >>$CONFIG_STATUS <<\_ACEOF
8939for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8940  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8941  case $ac_file in
8942  - | *:- | *:-:* ) # input from stdin
8943        cat >$tmp/stdin
8944        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8945        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8946  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8947        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8948  * )   ac_file_in=$ac_file.in ;;
8949  esac
8950
8951  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8952  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8953$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8954         X"$ac_file" : 'X\(//\)[^/]' \| \
8955         X"$ac_file" : 'X\(//\)$' \| \
8956         X"$ac_file" : 'X\(/\)' \| \
8957         .     : '\(.\)' 2>/dev/null ||
8958echo X"$ac_file" |
8959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8960          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8961          /^X\(\/\/\)$/{ s//\1/; q; }
8962          /^X\(\/\).*/{ s//\1/; q; }
8963          s/.*/./; q'`
8964  { if $as_mkdir_p; then
8965    mkdir -p "$ac_dir"
8966  else
8967    as_dir="$ac_dir"
8968    as_dirs=
8969    while test ! -d "$as_dir"; do
8970      as_dirs="$as_dir $as_dirs"
8971      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8973         X"$as_dir" : 'X\(//\)[^/]' \| \
8974         X"$as_dir" : 'X\(//\)$' \| \
8975         X"$as_dir" : 'X\(/\)' \| \
8976         .     : '\(.\)' 2>/dev/null ||
8977echo X"$as_dir" |
8978    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8979          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8980          /^X\(\/\/\)$/{ s//\1/; q; }
8981          /^X\(\/\).*/{ s//\1/; q; }
8982          s/.*/./; q'`
8983    done
8984    test ! -n "$as_dirs" || mkdir $as_dirs
8985  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8986echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8987   { (exit 1); exit 1; }; }; }
8988
8989  ac_builddir=.
8990
8991if test "$ac_dir" != .; then
8992  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8993  # A "../" for each directory in $ac_dir_suffix.
8994  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8995else
8996  ac_dir_suffix= ac_top_builddir=
8997fi
8998
8999case $srcdir in
9000  .)  # No --srcdir option.  We are building in place.
9001    ac_srcdir=.
9002    if test -z "$ac_top_builddir"; then
9003       ac_top_srcdir=.
9004    else
9005       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9006    fi ;;
9007  [\\/]* | ?:[\\/]* )  # Absolute path.
9008    ac_srcdir=$srcdir$ac_dir_suffix;
9009    ac_top_srcdir=$srcdir ;;
9010  *) # Relative path.
9011    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9012    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9013esac
9014
9015# Do not use `cd foo && pwd` to compute absolute paths, because
9016# the directories may not exist.
9017case `pwd` in
9018.) ac_abs_builddir="$ac_dir";;
9019*)
9020  case "$ac_dir" in
9021  .) ac_abs_builddir=`pwd`;;
9022  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9023  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9024  esac;;
9025esac
9026case $ac_abs_builddir in
9027.) ac_abs_top_builddir=${ac_top_builddir}.;;
9028*)
9029  case ${ac_top_builddir}. in
9030  .) ac_abs_top_builddir=$ac_abs_builddir;;
9031  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9032  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9033  esac;;
9034esac
9035case $ac_abs_builddir in
9036.) ac_abs_srcdir=$ac_srcdir;;
9037*)
9038  case $ac_srcdir in
9039  .) ac_abs_srcdir=$ac_abs_builddir;;
9040  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9041  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9042  esac;;
9043esac
9044case $ac_abs_builddir in
9045.) ac_abs_top_srcdir=$ac_top_srcdir;;
9046*)
9047  case $ac_top_srcdir in
9048  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9049  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9050  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9051  esac;;
9052esac
9053
9054
9055  case $INSTALL in
9056  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9057  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9058  esac
9059
9060  if test x"$ac_file" != x-; then
9061    { echo "$as_me:$LINENO: creating $ac_file" >&5
9062echo "$as_me: creating $ac_file" >&6;}
9063    rm -f "$ac_file"
9064  fi
9065  # Let's still pretend it is `configure' which instantiates (i.e., don't
9066  # use $as_me), people would be surprised to read:
9067  #    /* config.h.  Generated by config.status.  */
9068  if test x"$ac_file" = x-; then
9069    configure_input=
9070  else
9071    configure_input="$ac_file.  "
9072  fi
9073  configure_input=$configure_input"Generated from `echo $ac_file_in |
9074                                     sed 's,.*/,,'` by configure."
9075
9076  # First look for the input files in the build tree, otherwise in the
9077  # src tree.
9078  ac_file_inputs=`IFS=:
9079    for f in $ac_file_in; do
9080      case $f in
9081      -) echo $tmp/stdin ;;
9082      [\\/$]*)
9083         # Absolute (can't be DOS-style, as IFS=:)
9084         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9085echo "$as_me: error: cannot find input file: $f" >&2;}
9086   { (exit 1); exit 1; }; }
9087         echo "$f";;
9088      *) # Relative
9089         if test -f "$f"; then
9090           # Build tree
9091           echo "$f"
9092         elif test -f "$srcdir/$f"; then
9093           # Source tree
9094           echo "$srcdir/$f"
9095         else
9096           # /dev/null tree
9097           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9098echo "$as_me: error: cannot find input file: $f" >&2;}
9099   { (exit 1); exit 1; }; }
9100         fi;;
9101      esac
9102    done` || { (exit 1); exit 1; }
9103_ACEOF
9104cat >>$CONFIG_STATUS <<_ACEOF
9105  sed "$ac_vpsub
9106$extrasub
9107_ACEOF
9108cat >>$CONFIG_STATUS <<\_ACEOF
9109:t
9110/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9111s,@configure_input@,$configure_input,;t t
9112s,@srcdir@,$ac_srcdir,;t t
9113s,@abs_srcdir@,$ac_abs_srcdir,;t t
9114s,@top_srcdir@,$ac_top_srcdir,;t t
9115s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9116s,@builddir@,$ac_builddir,;t t
9117s,@abs_builddir@,$ac_abs_builddir,;t t
9118s,@top_builddir@,$ac_top_builddir,;t t
9119s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9120s,@INSTALL@,$ac_INSTALL,;t t
9121" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9122  rm -f $tmp/stdin
9123  if test x"$ac_file" != x-; then
9124    mv $tmp/out $ac_file
9125  else
9126    cat $tmp/out
9127    rm -f $tmp/out
9128  fi
9129
9130done
9131_ACEOF
9132cat >>$CONFIG_STATUS <<\_ACEOF
9133
9134#
9135# CONFIG_HEADER section.
9136#
9137
9138# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9139# NAME is the cpp macro being defined and VALUE is the value it is being given.
9140#
9141# ac_d sets the value in "#define NAME VALUE" lines.
9142ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9143ac_dB='[         ].*$,\1#\2'
9144ac_dC=' '
9145ac_dD=',;t'
9146# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9147ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9148ac_uB='$,\1#\2define\3'
9149ac_uC=' '
9150ac_uD=',;t'
9151
9152for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9153  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9154  case $ac_file in
9155  - | *:- | *:-:* ) # input from stdin
9156        cat >$tmp/stdin
9157        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9158        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9159  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9160        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9161  * )   ac_file_in=$ac_file.in ;;
9162  esac
9163
9164  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9165echo "$as_me: creating $ac_file" >&6;}
9166
9167  # First look for the input files in the build tree, otherwise in the
9168  # src tree.
9169  ac_file_inputs=`IFS=:
9170    for f in $ac_file_in; do
9171      case $f in
9172      -) echo $tmp/stdin ;;
9173      [\\/$]*)
9174         # Absolute (can't be DOS-style, as IFS=:)
9175         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9176echo "$as_me: error: cannot find input file: $f" >&2;}
9177   { (exit 1); exit 1; }; }
9178         # Do quote $f, to prevent DOS paths from being IFS'd.
9179         echo "$f";;
9180      *) # Relative
9181         if test -f "$f"; then
9182           # Build tree
9183           echo "$f"
9184         elif test -f "$srcdir/$f"; then
9185           # Source tree
9186           echo "$srcdir/$f"
9187         else
9188           # /dev/null tree
9189           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9190echo "$as_me: error: cannot find input file: $f" >&2;}
9191   { (exit 1); exit 1; }; }
9192         fi;;
9193      esac
9194    done` || { (exit 1); exit 1; }
9195  # Remove the trailing spaces.
9196  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9197
9198_ACEOF
9199
9200# Transform confdefs.h into two sed scripts, `conftest.defines' and
9201# `conftest.undefs', that substitutes the proper values into
9202# config.h.in to produce config.h.  The first handles `#define'
9203# templates, and the second `#undef' templates.
9204# And first: Protect against being on the right side of a sed subst in
9205# config.status.  Protect against being in an unquoted here document
9206# in config.status.
9207rm -f conftest.defines conftest.undefs
9208# Using a here document instead of a string reduces the quoting nightmare.
9209# Putting comments in sed scripts is not portable.
9210#
9211# `end' is used to avoid that the second main sed command (meant for
9212# 0-ary CPP macros) applies to n-ary macro definitions.
9213# See the Autoconf documentation for `clear'.
9214cat >confdef2sed.sed <<\_ACEOF
9215s/[\\&,]/\\&/g
9216s,[\\$`],\\&,g
9217t clear
9218: clear
9219s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9220t end
9221s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9222: end
9223_ACEOF
9224# If some macros were called several times there might be several times
9225# the same #defines, which is useless.  Nevertheless, we may not want to
9226# sort them, since we want the *last* AC-DEFINE to be honored.
9227uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9228sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9229rm -f confdef2sed.sed
9230
9231# This sed command replaces #undef with comments.  This is necessary, for
9232# example, in the case of _POSIX_SOURCE, which is predefined and required
9233# on some systems where configure will not decide to define it.
9234cat >>conftest.undefs <<\_ACEOF
9235s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9236_ACEOF
9237
9238# Break up conftest.defines because some shells have a limit on the size
9239# of here documents, and old seds have small limits too (100 cmds).
9240echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9241echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9242echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9243echo '  :' >>$CONFIG_STATUS
9244rm -f conftest.tail
9245while grep . conftest.defines >/dev/null
9246do
9247  # Write a limited-size here document to $tmp/defines.sed.
9248  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9249  # Speed up: don't consider the non `#define' lines.
9250  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9251  # Work around the forget-to-reset-the-flag bug.
9252  echo 't clr' >>$CONFIG_STATUS
9253  echo ': clr' >>$CONFIG_STATUS
9254  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9255  echo 'CEOF
9256  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9257  rm -f $tmp/in
9258  mv $tmp/out $tmp/in
9259' >>$CONFIG_STATUS
9260  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9261  rm -f conftest.defines
9262  mv conftest.tail conftest.defines
9263done
9264rm -f conftest.defines
9265echo '  fi # grep' >>$CONFIG_STATUS
9266echo >>$CONFIG_STATUS
9267
9268# Break up conftest.undefs because some shells have a limit on the size
9269# of here documents, and old seds have small limits too (100 cmds).
9270echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9271rm -f conftest.tail
9272while grep . conftest.undefs >/dev/null
9273do
9274  # Write a limited-size here document to $tmp/undefs.sed.
9275  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9276  # Speed up: don't consider the non `#undef'
9277  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9278  # Work around the forget-to-reset-the-flag bug.
9279  echo 't clr' >>$CONFIG_STATUS
9280  echo ': clr' >>$CONFIG_STATUS
9281  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9282  echo 'CEOF
9283  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9284  rm -f $tmp/in
9285  mv $tmp/out $tmp/in
9286' >>$CONFIG_STATUS
9287  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9288  rm -f conftest.undefs
9289  mv conftest.tail conftest.undefs
9290done
9291rm -f conftest.undefs
9292
9293cat >>$CONFIG_STATUS <<\_ACEOF
9294  # Let's still pretend it is `configure' which instantiates (i.e., don't
9295  # use $as_me), people would be surprised to read:
9296  #    /* config.h.  Generated by config.status.  */
9297  if test x"$ac_file" = x-; then
9298    echo "/* Generated by configure.  */" >$tmp/config.h
9299  else
9300    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9301  fi
9302  cat $tmp/in >>$tmp/config.h
9303  rm -f $tmp/in
9304  if test x"$ac_file" != x-; then
9305    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9306      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9307echo "$as_me: $ac_file is unchanged" >&6;}
9308    else
9309      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9311         X"$ac_file" : 'X\(//\)[^/]' \| \
9312         X"$ac_file" : 'X\(//\)$' \| \
9313         X"$ac_file" : 'X\(/\)' \| \
9314         .     : '\(.\)' 2>/dev/null ||
9315echo X"$ac_file" |
9316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9317          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9318          /^X\(\/\/\)$/{ s//\1/; q; }
9319          /^X\(\/\).*/{ s//\1/; q; }
9320          s/.*/./; q'`
9321      { if $as_mkdir_p; then
9322    mkdir -p "$ac_dir"
9323  else
9324    as_dir="$ac_dir"
9325    as_dirs=
9326    while test ! -d "$as_dir"; do
9327      as_dirs="$as_dir $as_dirs"
9328      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9330         X"$as_dir" : 'X\(//\)[^/]' \| \
9331         X"$as_dir" : 'X\(//\)$' \| \
9332         X"$as_dir" : 'X\(/\)' \| \
9333         .     : '\(.\)' 2>/dev/null ||
9334echo X"$as_dir" |
9335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9336          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9337          /^X\(\/\/\)$/{ s//\1/; q; }
9338          /^X\(\/\).*/{ s//\1/; q; }
9339          s/.*/./; q'`
9340    done
9341    test ! -n "$as_dirs" || mkdir $as_dirs
9342  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9343echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9344   { (exit 1); exit 1; }; }; }
9345
9346      rm -f $ac_file
9347      mv $tmp/config.h $ac_file
9348    fi
9349  else
9350    cat $tmp/config.h
9351    rm -f $tmp/config.h
9352  fi
9353# Compute $ac_file's index in $config_headers.
9354_am_stamp_count=1
9355for _am_header in $config_headers :; do
9356  case $_am_header in
9357    $ac_file | $ac_file:* )
9358      break ;;
9359    * )
9360      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9361  esac
9362done
9363echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9364$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9365         X$ac_file : 'X\(//\)[^/]' \| \
9366         X$ac_file : 'X\(//\)$' \| \
9367         X$ac_file : 'X\(/\)' \| \
9368         .     : '\(.\)' 2>/dev/null ||
9369echo X$ac_file |
9370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9371          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9372          /^X\(\/\/\)$/{ s//\1/; q; }
9373          /^X\(\/\).*/{ s//\1/; q; }
9374          s/.*/./; q'`/stamp-h$_am_stamp_count
9375done
9376_ACEOF
9377cat >>$CONFIG_STATUS <<\_ACEOF
9378
9379#
9380# CONFIG_COMMANDS section.
9381#
9382for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9383  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9384  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9385  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9386$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9387         X"$ac_dest" : 'X\(//\)[^/]' \| \
9388         X"$ac_dest" : 'X\(//\)$' \| \
9389         X"$ac_dest" : 'X\(/\)' \| \
9390         .     : '\(.\)' 2>/dev/null ||
9391echo X"$ac_dest" |
9392    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9393          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9394          /^X\(\/\/\)$/{ s//\1/; q; }
9395          /^X\(\/\).*/{ s//\1/; q; }
9396          s/.*/./; q'`
9397  { if $as_mkdir_p; then
9398    mkdir -p "$ac_dir"
9399  else
9400    as_dir="$ac_dir"
9401    as_dirs=
9402    while test ! -d "$as_dir"; do
9403      as_dirs="$as_dir $as_dirs"
9404      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9406         X"$as_dir" : 'X\(//\)[^/]' \| \
9407         X"$as_dir" : 'X\(//\)$' \| \
9408         X"$as_dir" : 'X\(/\)' \| \
9409         .     : '\(.\)' 2>/dev/null ||
9410echo X"$as_dir" |
9411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9412          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9413          /^X\(\/\/\)$/{ s//\1/; q; }
9414          /^X\(\/\).*/{ s//\1/; q; }
9415          s/.*/./; q'`
9416    done
9417    test ! -n "$as_dirs" || mkdir $as_dirs
9418  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9419echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9420   { (exit 1); exit 1; }; }; }
9421
9422  ac_builddir=.
9423
9424if test "$ac_dir" != .; then
9425  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9426  # A "../" for each directory in $ac_dir_suffix.
9427  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9428else
9429  ac_dir_suffix= ac_top_builddir=
9430fi
9431
9432case $srcdir in
9433  .)  # No --srcdir option.  We are building in place.
9434    ac_srcdir=.
9435    if test -z "$ac_top_builddir"; then
9436       ac_top_srcdir=.
9437    else
9438       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9439    fi ;;
9440  [\\/]* | ?:[\\/]* )  # Absolute path.
9441    ac_srcdir=$srcdir$ac_dir_suffix;
9442    ac_top_srcdir=$srcdir ;;
9443  *) # Relative path.
9444    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9445    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9446esac
9447
9448# Do not use `cd foo && pwd` to compute absolute paths, because
9449# the directories may not exist.
9450case `pwd` in
9451.) ac_abs_builddir="$ac_dir";;
9452*)
9453  case "$ac_dir" in
9454  .) ac_abs_builddir=`pwd`;;
9455  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9456  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9457  esac;;
9458esac
9459case $ac_abs_builddir in
9460.) ac_abs_top_builddir=${ac_top_builddir}.;;
9461*)
9462  case ${ac_top_builddir}. in
9463  .) ac_abs_top_builddir=$ac_abs_builddir;;
9464  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9465  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9466  esac;;
9467esac
9468case $ac_abs_builddir in
9469.) ac_abs_srcdir=$ac_srcdir;;
9470*)
9471  case $ac_srcdir in
9472  .) ac_abs_srcdir=$ac_abs_builddir;;
9473  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9474  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9475  esac;;
9476esac
9477case $ac_abs_builddir in
9478.) ac_abs_top_srcdir=$ac_top_srcdir;;
9479*)
9480  case $ac_top_srcdir in
9481  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9482  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9483  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9484  esac;;
9485esac
9486
9487
9488  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9489echo "$as_me: executing $ac_dest commands" >&6;}
9490  case $ac_dest in
9491    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9492  # Strip MF so we end up with the name of the file.
9493  mf=`echo "$mf" | sed -e 's/:.*$//'`
9494  # Check whether this is an Automake generated Makefile or not.
9495  # We used to match only the files named `Makefile.in', but
9496  # some people rename them; so instead we look at the file content.
9497  # Grep'ing the first line is not enough: some people post-process
9498  # each Makefile.in and add a new line on top of each file to say so.
9499  # So let's grep whole file.
9500  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9501    dirpart=`(dirname "$mf") 2>/dev/null ||
9502$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9503         X"$mf" : 'X\(//\)[^/]' \| \
9504         X"$mf" : 'X\(//\)$' \| \
9505         X"$mf" : 'X\(/\)' \| \
9506         .     : '\(.\)' 2>/dev/null ||
9507echo X"$mf" |
9508    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9509          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9510          /^X\(\/\/\)$/{ s//\1/; q; }
9511          /^X\(\/\).*/{ s//\1/; q; }
9512          s/.*/./; q'`
9513  else
9514    continue
9515  fi
9516  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9517  # Extract the definition of DEP_FILES from the Makefile without
9518  # running `make'.
9519  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9520  test -z "$DEPDIR" && continue
9521  # When using ansi2knr, U may be empty or an underscore; expand it
9522  U=`sed -n 's/^U = //p' < "$mf"`
9523  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9524  # We invoke sed twice because it is the simplest approach to
9525  # changing $(DEPDIR) to its actual value in the expansion.
9526  for file in `sed -n '
9527    /^DEP_FILES = .*\\\\$/ {
9528      s/^DEP_FILES = //
9529      :loop
9530        s/\\\\$//
9531        p
9532        n
9533        /\\\\$/ b loop
9534      p
9535    }
9536    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9537       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9538    # Make sure the directory exists.
9539    test -f "$dirpart/$file" && continue
9540    fdir=`(dirname "$file") 2>/dev/null ||
9541$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9542         X"$file" : 'X\(//\)[^/]' \| \
9543         X"$file" : 'X\(//\)$' \| \
9544         X"$file" : 'X\(/\)' \| \
9545         .     : '\(.\)' 2>/dev/null ||
9546echo X"$file" |
9547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9548          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9549          /^X\(\/\/\)$/{ s//\1/; q; }
9550          /^X\(\/\).*/{ s//\1/; q; }
9551          s/.*/./; q'`
9552    { if $as_mkdir_p; then
9553    mkdir -p $dirpart/$fdir
9554  else
9555    as_dir=$dirpart/$fdir
9556    as_dirs=
9557    while test ! -d "$as_dir"; do
9558      as_dirs="$as_dir $as_dirs"
9559      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9561         X"$as_dir" : 'X\(//\)[^/]' \| \
9562         X"$as_dir" : 'X\(//\)$' \| \
9563         X"$as_dir" : 'X\(/\)' \| \
9564         .     : '\(.\)' 2>/dev/null ||
9565echo X"$as_dir" |
9566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9567          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9568          /^X\(\/\/\)$/{ s//\1/; q; }
9569          /^X\(\/\).*/{ s//\1/; q; }
9570          s/.*/./; q'`
9571    done
9572    test ! -n "$as_dirs" || mkdir $as_dirs
9573  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9574echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9575   { (exit 1); exit 1; }; }; }
9576
9577    # echo "creating $dirpart/$file"
9578    echo '# dummy' > "$dirpart/$file"
9579  done
9580done
9581 ;;
9582  esac
9583done
9584_ACEOF
9585
9586cat >>$CONFIG_STATUS <<\_ACEOF
9587
9588{ (exit 0); exit 0; }
9589_ACEOF
9590chmod +x $CONFIG_STATUS
9591ac_clean_files=$ac_clean_files_save
9592
9593
9594# configure is writing to config.log, and then calls config.status.
9595# config.status does its own redirection, appending to config.log.
9596# Unfortunately, on DOS this fails, as config.log is still kept open
9597# by configure, so config.status won't be able to write to it; its
9598# output is simply discarded.  So we exec the FD to /dev/null,
9599# effectively closing config.log, so it can be properly (re)opened and
9600# appended to by config.status.  When coming back to configure, we
9601# need to make the FD available again.
9602if test "$no_create" != yes; then
9603  ac_cs_success=:
9604  ac_config_status_args=
9605  test "$silent" = yes &&
9606    ac_config_status_args="$ac_config_status_args --quiet"
9607  exec 5>/dev/null
9608  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9609  exec 5>>config.log
9610  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9611  # would make configure fail if this is the last instruction.
9612  $ac_cs_success || { (exit 1); exit 1; }
9613fi
9614
Note: See TracBrowser for help on using the repository browser.